Relevance step must not return needs_ruling when an Accepted ADR resolves the conflict #1006
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1006
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The takedown relevance step returns
needs_rulingeven when an Accepted amending ADR resolves the conflict. The step then stops the run and adds thewaitinglabel. A ruling request must mean a real heuristic violation. Here the judge had already resolved the conflict.Observed
Runs
docs/takedown/1003-20261014-120014anddocs/takedown/1003-20261014-120213both stopped at relevance with "needs ruling 0283". In run 2 the judge said that Accepted ADR-0290 resolves the conflict. The verdict stayedneeds_rulingand the step addedwaiting.Reproduce
n/a: the failure shows in the two #1003 run records named above.
Approach
Required work: none beyond the acceptance criteria.
Acceptance criteria
needs_rulingand the step adds nowaitinglabel.needs_ruling.Owner sketch
Blocking edges
Blocks #1005. The next tracer can touch ADR-0283 or ADR-0291, and this defect can stop it.
Origin
bin/takedown-runon #1003, runs1003-20261014-120014and1003-20261014-120213needs_ruling←Relevance#verdictreturnsneeds_rulingwheneverconflicts.any?←DESIGN: ADR-0283 and ADR-0291 amend each other; verdict ignores the judge's resolved flagTicket-skeptic verdict was DROP (depth-1 rule). Jared overrode it on 2026-10-14 and ordered the ticket filed as blocking #1005.
VERDICT: CREATE — owner override of the skeptic DROP on 2026-10-14.
Blocks #1005. Ticket-skeptic gave DROP (depth-1); Jared overrode it on 2026-10-14.
Takedown relevance: needs a ruling
Harm: A takedown run whose judge names an ADR conflict that an Accepted amending ADR already resolves stops at relevance with
needs_rulingand gets thewaitinglabel, so a ticket that needs no ruling blocks the run.Protects: The ruling gate that Accepted ADR-0289 sets: Jared's ruling is requested only for a real heuristic violation, and the
waitinglabel means a real blocker.Harm path:
bin/takedown-runon a live ticket runs the relevance step (run_builder.rb:34,plan.relevance?is true in live mode), which callsRelevance#verdict(relevance.rb:19) and addswaitingwhen the verdict isneeds_ruling(relevance_step.rb:58). (live: true)Evidence:
Conflicting ADRs:
The ticket is waiting for Jared's ruling on the ADRs above.
Work started 2026-10-14 on branch prism-architect. Jared ruled on the ADR-0289 conflict: ADR-0292 (Accepted, commit
8ecfc46e) amends ADR-0289 decisions 3-5. The takedown run stopped at relevance because this gate cannot judge its own fix, so #1006 is built on the freeform test-first path. Thewaitingblocker is resolved.Resolution
Done: Relevance verdict now counts only unresolved ADR conflicts. Each adr_conflicts entry has a required resolved_by; code accepts it only when docs/adr has that ADR, status Accepted, with a higher number than the conflicting ADR (new Takedown::AdrRecords adapter). waiting is added only for unresolved conflicts; the comment and refusal list only unresolved ADRs. Built test-first on the freeform path per Jared's 2026-10-14 ruling (ADR-0292, amends ADR-0289).
Evidence: Commit
a753dfacon prism-architect (ADR-0292 in8ecfc46e). rake test in plugins/os-sdlc/eval/ticket-takedown: 558 runs, 1042 assertions, 0 failures, 0 errors. New tests: RelevanceTest#test_a_conflict_resolved_by_a_later_accepted_adr_does_not_need_a_ruling, RelevanceTest#test_a_resolved_conflict_falls_through_to_the_harm_path_and_stays_out_of_the_refusal, RunCliTest#test_a_conflict_resolved_by_a_later_accepted_adr_passes_without_the_waiting_label.Follow-ups: Dropped: RelevanceStep parameter threading (run, relevance) and relevance.rb:27 line length. Both rubocop offenses exist before this ticket (git blame
12d2f052); #1006 did not cause them.