Repo C Trace NDJSON Validate
Use this skill to protect packet stream contract integrity.
Workflow
- Generate or capture NDJSON packet streams.
- Validate required packet fields and monotonic packet IDs.
- Re-check guardian decision counters when reroute logic changes.
Scope Boundary
Use this skill for NDJSON packet envelope integrity and trace-stream monotonicity.
Do not use this skill for:
- Policy manifest/schema conformance gates.
- Ranking/report scoring semantics and schema compatibility.
- Cross-repo architecture governance boundary reviews.
Command
Run from <PRIVATE_REPO_C> root:
python tools/trace_validate.py <path-to-ndjson>
Required Fields
packet_idts_unix_mstoken_idemotion_ttlkvpolicytrust_anchor
Reference
references/trace-contract.md
Loopback
If this lane is unresolved, blocked, or ambiguous:
- Capture current evidence and failure context.
- Route back through
$skill-hubfor chain recalculation. - Resume only after the updated chain returns a deterministic next step.