API Reference / auditChronosenseCursor · function
Function: auditChronosenseCursor()
function auditChronosenseCursor(
envelope,
cursor,
opts?): ChronosenseAuditResult;
Deterministic pre-tool write-back cursor and citation auditor.
Verifies:
clockIddigest match ("clock_id_mismatch")turnmonotonicity ("turn_mismatch")nightCrossedAckwheneverenvelope.nightCrossed === true("night_crossed_unacked")deadlineEtaMinwithindeadlineToleranceMinwhen a deadline is active, or absent/null when no deadline is active ("deadline_drift")- optional
citedFactsmap against authoritative envelope values withinfactTolerance("fact_mismatch:<key>"/"unknown_fact:<key>")
Parameters
| Parameter | Type |
|---|---|
envelope | ChronosenseEnvelope |
cursor | unknown |
opts | ChronosenseAuditOptions |