Skip to content

feat(spec): review findings that indict a source route back, never apply - #957

Open
leeovery wants to merge 2 commits into
incoherence-reality-triggerfrom
review-source-routing
Open

feat(spec): review findings that indict a source route back, never apply#957
leeovery wants to merge 2 commits into
incoherence-reality-triggerfrom
review-source-routing

Conversation

@leeovery

Copy link
Copy Markdown
Owner

Why

Idea 40: process-review-findings.md had exactly three verbs — apply, adjust, skip — all against the spec. A finding revealing that the source is wrong had no route; the observed session could only patch the spec and leave the completed discussion asserting falsehoods. Separately, 16 undiscussed design decisions sat in the spec behind invented "Decision required" markers, shielded from review, and gap findings auto-applied orchestrator-authored content under finding_gate_mode: auto.

What

  • Two source-lane categories (review-tracking-format.md): Source defect and Unsourced decision — never applied/adjusted/skipped, never ride auto; the orchestrator routes them through resolve-source-incoherence.md (new Route Source-Lane Findings section in process-review-findings.md), resolution lands as Routed. A gap exit pauses the spec via the existing machinery; the in-progress tracking entry re-processes at next entry.
  • Reverse fidelity in the input agent: spec content tracing to no source — a decision the sources never made — is a finding; open-decision markers count. Doc-vs-doc, would have caught all 16.
  • Marker detection in the gap-analysis agent: any "Decision required"/"TBD" marker is Critical — a spec decides nothing and defers nothing.
  • Engine: render finding accepts an optional category; gap renders its gate even under auto — a question never auto-applies. Unknown categories throw (routed categories reaching this surface is a caller bug). Tests added.

Stacks on #955. Part 3 of the idea-40 stack.

🤖 Generated with Claude Code

The review loop's only verbs were apply, adjust, skip — all against the
spec — so a finding revealing a source defect could land nowhere but the
spec, and the discussion stayed wrong on disk. Two new finding
categories (Source defect, Unsourced decision) route through
resolve-source-incoherence.md instead of the finding gate, landing as
Routed in the tracking file; the input agent gains the reverse fidelity
check (spec content tracing to no source), the gap-analysis agent flags
open-decision markers as Critical, and the finding surface refuses auto
for gap findings — a question never auto-applies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
At review time the defective content is already extracted — landing the
correction in the source alone would leave the spec asserting what the
record no longer does. The route branch now updates the affected spec
content to match the corrected source before marking the finding
Routed; the record settles it, so no gate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant