Skip to main content

audit_task_trace

Function audit_task_trace 

Source
pub fn audit_task_trace(
    raw_tasks: &[u32],
    context: u8,
    generation: u8,
) -> Result<TaskAudit, TaskTraceError>
Expand description

Validate canonical encoding, context/generation routing, total serial order, exact length, and exact per-class counts for a baseline-sequencer trace.

This auditor is a focused oracle for the historical/foundational serial sequencer. It is not a validator for the active crate::top::Sha256SignerTop, whose three crate::cluster::LaneLocalCluster instances each schedule four contexts and may legally interleave independent work.

§Errors

Returns TaskTraceError at the first malformed, stale, misrouted, reordered, missing, extra, or miscounted task.

§Panics

Panics if context does not fit the four-bit tag field.