traceback
Skill0 starsChanged 58 days agoMITView on GitHub
Check delivery against an approved design, fix plan, acceptance list, or public contract: source → implementation → mapped, executed tests. Trigger on "检查交付一致性", "对齐检查", "gap scan", "delivery check", or "方案和代码一致吗". Runs after validation and Review Gate, before closeout; not for runtime stack traces or line coverage.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- acquisitionSkill
- after-actionSkill
- breachSkill
- cartographic-reconSkill
- chartSkill
- codifySkill
- conopsSkill
- coverSkill
- dossierSkill
- executeSkill
- go-nogoSkill
- herdrSkill
- netease-mailSkill
- neutralizeSkill
- paperworkSkill
- passdownSkill
- repairSkill
- sanitizeSkill
- taskingSkill
- warroomSkill
- x-likes-digestSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Verify one chain with file evidence:
- Distinctive: line 16
Use at an independently verifiable delivery milestone, after validation and Review Gate.
- Very specific: line 25
Treat summaries as views; 'alignment.json' is the machine truth source.
- Distinctive: line 45
If no approved source exists, use 'mode: skipped'.
- Distinctive: line 46
Do not invent a specification from code.
- Very specific: line 57
Read 'references/alignment-schema.md' before creating or updating 'alignment.json'.
- Very specific: line 64
Do not recreate the retired document/dev/test checklist files.
- Distinctive: line 92
Never hand-edit 'alignment.md'.
- Very specific: line 106
Follow '/home/yhr/.agents/repos/agent-skills/references/canon-output-contract.md'.
- Distinctive: line 108
Update the Canon task page with blockers, missing tests, boundary drift, waivers, skip reason, and absolute paths to all three artifacts.
- Distinctive: line 132
Keep IDs stable; update existing rows rather than regenerate them.
- Distinctive: line 133
Do not reuse a gate after code, untracked source, or approved inputs change.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
traceback — Delivery Alignment Gate
Verify one chain with file evidence:
approved source -> implementation -> test mapping -> executed validationtraceback is not a linter, test runner, or duplicate code review. Review Gate judges code quality; traceback proves delivery traceability.
Use at an independently verifiable delivery milestone, after validation and Review Gate; do not run it for every exploratory iteration. Data admissibility and changing hypotheses belong to research/execution, not this gate. A completed analysis does not satisfy an outstanding physical/runtime acceptance requirement.
Hard rules
- Derive requirements only from approved source artifacts.
- Preserve stable requirement IDs across reruns.
- Treat summaries as views; 'alignment.json' is the machine truth source.
- Distinguish test mapping from an actually passed validation run.
- Re-read files. Never infer coverage from naming or proximity alone.
- Block stale evidence when source hashes, Git HEAD, or workspace fingerprint changed.
- Record critical gaps, waivers, and skipped traceback in Canon.
- For changed scope or acceptance, retain the prior requirement, change reason, and user approval reference in the approved source or Canon. Use the approved revision; an unapproved proposal cannot replace the baseline. Never rewrite requirements to match finished code merely to pass this gate.
Input resolution
Resolve the first available approved source:
- Canon task page § Artifacts: 'design_doc_path', 'fix_plan_path', 'acceptance_checklist_path', or public contract.
- Project + branch -> Canon task page using '/home/yhr/.agents/repos/agent-skills/references/canon-task-resolution.md'.
- Explicit user-provided path.
If no approved source exists, use 'mode: skipped'; record the reason in Canon. Do not invent a specification from code.
Output contract
Write only:
.planning/<task-or-workflow-slug>/
├── alignment.json
├── alignment.md
└── traceback-gate.jsonRead 'references/alignment-schema.md' before creating or updating 'alignment.json'.
- 'alignment.json': evidence and status truth source.
- 'alignment.md': deterministic human view generated from JSON.
- 'traceback-gate.json': current verdict, blockers, warnings, and fingerprint.
Do not recreate the retired document/dev/test checklist files.
Workflow
1. Capture current workspace identity
python3 <skill-dir>/scripts/traceback_gate.py --repo <repo-root> --fingerprintCopy 'checked_commit' and 'workspace_fingerprint' into 'alignment.json'. Hash every approved input file with SHA-256.
2. Extract stable requirements
For every testable requirement, record stable ID, exact source reference, severity, implementation evidence, test mapping, passed validation-run IDs, and explicit waiver when applicable. Scan public interfaces and changed module ownership for 'boundary_drift'. Do not create code-derived requirements to hide drift.
3. Record validation runs
Record exact commands and results in 'validation_runs'. A test is 'covered' only when it has direct/inferred mapping evidence and references at least one passed validation run. Preserve failed runs; they block.
4. Render the human view
python3 <skill-dir>/scripts/render_alignment.py --input .planning/<slug>/alignment.json --output .planning/<slug>/alignment.mdNever hand-edit 'alignment.md'; rerender it.
5. Run the gate
python3 <skill-dir>/scripts/traceback_gate.py --dir .planning/<slug> --repo <repo-root> --jsonVerdicts:
- 'pass': current evidence is valid; blocker policy passes.
- 'blocked': malformed, stale, failed validation, or blocking delivery gaps.
- 'skipped': no approved source; Canon contains the explicit skip reason.
6. Promote durable state
Follow '/home/yhr/.agents/repos/agent-skills/references/canon-output-contract.md'.
Update the Canon task page with blockers, missing tests, boundary drift, waivers, skip reason, and absolute paths to all three artifacts. Create an update-card when the result changes a durable decision or residual risk.
Blocker policy
- Any open P1 gap -> block.
- Three or more open P2 gaps -> block.
- Any failed validation run -> block.
- Invalid/missing evidence, stale fingerprint, or stale rendered view -> block.
- P3 and at most two P2 gaps -> pass with warnings; record them in Canon.
- Waivers require 'by', 'reason', and 'date'; waived risk remains visible.
tasking integration
tasking Engage reruns this gate from '.planning/<demand-id>/' and consumes
'traceback-gate.json'. Do not write or trust 'state.json.traceback_done'.
Gotchas
- 'implemented' requires existing implementation evidence.
- 'covered' requires existing test evidence plus a passed validation-run ID.
- 'not-applicable' requires a reason.
- Passing tests do not excuse undocumented public-interface expansion.
- Keep IDs stable; update existing rows rather than regenerate them.
- Do not reuse a gate after code, untracked source, or approved inputs change.
- Canon is durable truth; '.planning/' remains runtime evidence.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

