* test(#1963): add failing-first prevention/postmortem contract tests Epic #1957 Phase 3B. Source-text-is-the-product contract tests: blameless 5-Whys that BRANCHES per Phase 2A RCA (not a single-cause chain; treats agent error as 'why was that possible?'), the 'why wasn't this caught?' question, the recurrence-guard taxonomy (regression test / assertion / lint rule / KB pattern), the KB-entry why_not_caught + recurrence_guard fields with backward compat, the session-manager prevention summary line, and the Zawinski scope-boundary (a block, not a subsystem). Failing-first: reference, archive_session edit, KB schema extension, and session-manager summary do not yet exist. * feat(#1963): emit blameless-postmortem Prevention block at resolution Epic #1957 Phase 3B. At archive_session the debugger now produces a Prevention block with three blame-free components: a branching 5-Whys causal chain (branches per Phase 2A RCA, not a single chain; 'agent error' prompts 'why was that possible?', never blame), a 'why wasn't this caught?' answer naming the missed gate (test/typecheck/lint/review/verify), and a concrete recurrence guard (regression test / assertion / lint rule / KB pattern). The knowledge-base entry gains two structured fields (why_not_caught + recurrence_guard) so future Phase-0 recall surfaces the prior prevention, not just the prior fix. Additive: old entries without the fields still load. The session-manager compact summary surfaces a one-line prevention summary. Full rules extracted to gsd-core/references/debugger-prevention.md (slim archive_session step + 2 KB fields kept in the agent). INVENTORY + manifest + agent-size baseline + install-parity goldens + AGENTS.md updated. * fix(#1963): address orthogonal review (CRITICAL append-template drift + Phase-0 consumption + parity test) - CRITICAL: the archive_session KB append template omitted Why not caught + Recurrence guard (only the Entry Format had them) — the feature's core deliverable silently did not happen. Added both fields to the append template the agent actually follows (nearest-instruction wins). - HIGH: Phase 0 (KB read) only surfaced root_cause + fix; the new fields were dead data. Extended the Phase 0 Evidence line to consume why_not_caught + recurrence_guard when present (absent on old entries — backward compat holds). - MEDIUM: added a cross-section parity test (every Entry-Format field must also appear in the append template — the guard that would have caught the Critical) + a Phase-0-consumption assertion. - MEDIUM: the 'branches per Phase 2A' claim is now wired — reuses reasoning_checkpoint.candidate_causes across the four categories. - MEDIUM: recurrence-guard taxonomy gains type refinement + config-default change; LOW: added 'build' gate to both surfaces for parity. - NIT: compact-summary fallback shape ('no gate existed'); verify the guard artifact exists before recording it. * test(#1963): anchor Phase-0 consumption test on the specific heading The regex /Phase 0[\s\S]{0,1200}/ matched the first 'Phase 0' in the file (in knowledge_base_protocol prose), not the Phase 0 block in investigation_loop. Anchor on '**Phase 0: Check knowledge base**' and widen to 1500 chars. * chore(#1963): backfill changeset pr number (PR #2410)
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"gsd-advisor-researcher.md": 4727,
|
|
"gsd-ai-researcher.md": 5943,
|
|
"gsd-assumptions-analyzer.md": 4646,
|
|
"gsd-code-fixer.md": 36640,
|
|
"gsd-code-reviewer.md": 16870,
|
|
"gsd-codebase-mapper.md": 21485,
|
|
"gsd-debug-session-manager.md": 17161,
|
|
"gsd-debugger.md": 56835,
|
|
"gsd-doc-classifier.md": 11717,
|
|
"gsd-doc-synthesizer.md": 13154,
|
|
"gsd-doc-verifier.md": 12403,
|
|
"gsd-doc-writer.md": 38924,
|
|
"gsd-domain-researcher.md": 7032,
|
|
"gsd-eval-auditor.md": 12496,
|
|
"gsd-eval-planner.md": 7008,
|
|
"gsd-executor.md": 45338,
|
|
"gsd-framework-selector.md": 6778,
|
|
"gsd-integration-checker.md": 15238,
|
|
"gsd-intel-updater.md": 18166,
|
|
"gsd-mempalace-curator.md": 4325,
|
|
"gsd-nyquist-auditor.md": 7345,
|
|
"gsd-pattern-mapper.md": 12487,
|
|
"gsd-phase-researcher.md": 40866,
|
|
"gsd-plan-checker.md": 44780,
|
|
"gsd-planner.md": 49314,
|
|
"gsd-project-researcher.md": 22242,
|
|
"gsd-research-synthesizer.md": 13847,
|
|
"gsd-roadmapper.md": 22273,
|
|
"gsd-security-auditor.md": 9431,
|
|
"gsd-ui-auditor.md": 17249,
|
|
"gsd-ui-checker.md": 14118,
|
|
"gsd-ui-researcher.md": 19557,
|
|
"gsd-user-profiler.md": 8516,
|
|
"gsd-verifier.md": 49147
|
|
}
|