AgentSkillsCN

repo-c-trace-ndjson-validate

在<PRIVATE_REPO_C>中,对Repo C/repo_c_trace NDJSON数据包的完整性进行验证。在变更追踪数据包字段、守护者重路由行为,或用于检查数据包单调性与必要封装密钥的校验工具时,请务必使用此方法。

SKILL.md
--- frontmatter
name: repo-c-trace-ndjson-validate
description: Validate Repo C/repo_c_trace NDJSON packet integrity in <PRIVATE_REPO_C>. Use when changing trace packet fields, guardian reroute behavior, or validation tooling that checks packet monotonicity and required envelope keys.

Repo C Trace NDJSON Validate

Use this skill to protect packet stream contract integrity.

Workflow

  1. Generate or capture NDJSON packet streams.
  2. Validate required packet fields and monotonic packet IDs.
  3. 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