Repo C Policy Schema Gate
Use this skill to enforce policy/schema correctness.
Workflow
- Validate policy files with the CLI.
- Confirm schema updates remain backward-compatible for consumers.
- Run lint/tests for affected policy and schema code.
Scope Boundary
Use this skill for policy manifests, schema files, and policy validation tooling.
Do not use this skill for:
- NDJSON trace packet integrity checks.
- Ranking engine scoring/report contract changes.
- Cross-repo boundary governance wording/architecture checks.
Core Commands
Run from <PRIVATE_REPO_C> root:
python -m tools.policy_validate policies/repo-c_policy.yaml
python -m tools.policy_validate policies/device_policy.json
ruff check .
pytest -q
Output Requirements
- No policy validation failures.
- Any schema change includes matching test updates.
- Policy docs reflect new required/optional fields.
Reference
references/policy-files.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.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.