Reject blank or location-free cause in Research#verify! #1001
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#1001
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
One unchecked researcher
causesteers the designers and grades them in live mode (lib/takedown/query/live_grade_inputs.rb:13-16), and a blank or location-free cause passesResearch#verify!. Child of #980 (AC 1-2); parent work #974. Constraint: do not changeharness/cards/grader.mdor its schema.Approach
Add a shape check to
CHECKSinplugins/os-sdlc/eval/ticket-takedown/lib/takedown/model/research.rb: refuse a blankcause.mechanismorcause.defect_class, and refuse amechanismthat does not match the existingLOCATIONpattern (path:line). This checks shape only; ADR-0288 allows shape checks and forbids truth checks.Required work:
Research#verify!— check: presentdefect_classinplugins/os-sdlc/eval/ticket-takedown/lib/takedown/model/research.rbAcceptance criteria
mechanismordefect_class, whenResearch#verify!runs, then it rejects the reply.mechanismwith nopath:lineanywhere in it, whenResearch#verify!runs, then it rejects the reply; the shape check looks for apath:lineanywhere in the mechanism, not only at its start.Note (2026-10-27): the former AC 3 (a filled cause is accepted) was removed: it described existing behavior, so its test could never be red (implementation 183, test-reviewer dispatch 1594). Acceptance of a
path:linein mid-prose is now part of AC 2.Owner sketch
Takedown::Researchalready owns reply validation.Origin
causewith no check (ADR-0285) ← DESIGN (ADR-0285)Work started on branch ticket-1001 through /os-sdlc:implement (map poodr-ticket-implementation, target takedown). Note: ADR-0288 was deleted in
c5240610as habit-only, so the shape check needs no ADR permission.Resolution
Done: Research#verify! now refuses a blank cause mechanism or defect_class (AC1) and a mechanism with no path:line anywhere in it (AC2), through a caused? entry in Research::CHECKS with an unanchored CAUSE_LOCATION. The RESEARCH fixture mechanism gained a path:line. A live run with no researched cause now fails at the research step, not at the first grade. The former AC3 was removed mid-run because it only described existing behavior.
Evidence: Commits
5f5eed1aand06533959, implementation 183: 13 dispatches, 2 retries, takedown suite green on reroute (12.97 s), contract-auditor pass. Escalation 85: programmer-repair could not edit the stale run_cli_test.rb assertion; the orchestrator hand-fixed it and rerouted to suite-check.Follow-ups: none