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.
Command
Run from <PRIVATE_REPO_C> root:
bash
python tools/trace_validate.py <path-to-ndjson>
Required Fields
- •
packet_id - •
ts_unix_ms - •
token_id - •
emotion_ttl - •
kv - •
policy - •
trust_anchor
Reference
- •
references/trace-contract.md