claude-skills/engineering/agent-run-forensics/.claude-plugin/authoring-notes.json
Claude d0b479c2a3
feat(engineering): agent-run-forensics, answer about past runs from the trace
Agents answer questions about their own earlier work from memory, and memory
drops the failed test run, the file a sed one-liner rewrote and the edit made
after the last green run. Claude Code and Codex already record every call,
result and exit code on disk; this plugin reads that record instead.

- trace_finder.py: find the run by repo, window, touched file or command text
- trace_timeline.py: numbered steps, --files with SILENT changes, --why STEP
  with every causal edge labelled recorded or inferred by a named rule
- claim_checker.py: typed claims vs the run; STALE, PARTIAL, CONTRADICTED
- UserPromptSubmit hook names the session transcript for questions about the
  past; fail-open, AGENT_RUN_FORENSICS_HOOK=0 disables it
- secrets redacted in every output, no off switch

Idea from PR #1016, rebuilt without the proposer's npm tool (no-vendor rule).
Bundle engineering-advanced-skills 2.14.10 -> 2.14.11; G12 baseline raised by
the new skill's 272 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLjaj5gnwaZdF3RyDn
2026-10-31 09:13:30 +00:00

7 lines
1.1 KiB
JSON

{
"source": {
"spec": "Community proposal in PR #1016 (read the trace before answering about past runs; label causal edges recorded or inferred). That PR drove the proposer's own npm tool and was closed under the no-vendor rule; the idea was kept. Built independently over the transcripts Claude Code and Codex already write; no code or text from the PR or its tool was used",
"build_pattern": "Three read-only stdlib CLIs over local session JSONL (finder, timeline with recorded/inferred causal chain and SILENT file changes, typed claim checker with STALE and PARTIAL verdicts) plus a fail-open UserPromptSubmit hook that hands over the current transcript path; always-on secret redaction; rules cited to CoT-faithfulness research, postmortem practice, POSIX pipeline semantics and the Claude Code hooks reference",
"distinct_from": "zero-hallucination-coder (code not yet read); self-eval (quality of the current session); skill-retro (skill use across many sessions); collab-proof (who drove a session); session-handoff and handoff (write summaries, which this checks); agent-regression-evals (repeated trials of a task, not one recorded run)"
}
}