Behavior-verifier misses changes outside code_path #629
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#629
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
Found in /os-sdlc:implement 627, implementation 12, dispatch 150 (behavior-verifier). The verifier's only evidence is the
code_changesbrief fact.Observed
code_changescomes fromModel::Project::Changes#code_diff(plugins/os-sdlc/lib/os_sdlc/model/project/changes.rb). This method diffs only changed paths inside the target'scode_path(plugins/os-sdlc/lib for target os-sdlc). #627 cases 6 and 7 edit plugins/os-sdlc/agents/wiring.md and .claude/settings.json. Both files were outsidecode_path. Both edits were present in the working tree, but the verifier did not see them and failed the increment as missing.The fail routed to test-writer (bound 2, progress_reset). test-writer's tests for cases 6 and 7 already passed, so the run escalated with reason
unexpected_pass:test-writer/diff-test. The ticket was hand-finished.Reproduce
Run /os-sdlc:implement on any ticket whose
## Casesinclude a file outside the target'scode_pathandtest_path.Expected
The behavior-verifier sees every changed file the increment produced, including files outside
code_pathandtest_path.Illustration
Origin
Skeptic verdict: CREATE — genuine defect in a real /os-sdlc:implement run (dispatch 150, behavior-verifier); code_changes evidence is scoped to code_path and silently drops in-scope case files outside it, causing false "missing" verdicts and wasted escalation/hand-finish cycles; Origin chain traces to a DESIGN root (Changes#code_diff scope), with this ticket as that root.
Absorbed into #645: the fix moves from verifier-only to an explicit target root for every role and the diff-test gate.
#645 (main
1725c5bc, ADR-0208) fixes the Ruby part: bin/ and other Ruby files under the target root_path now reach code_changes and the diff-test gate. This ticket stays open for the remaining part: non-Ruby files under root_path (agent charters .md, settings.json; #627 impl 12 wiring.md) are still not in behavior-verifier code_changes. Ticket-skeptic verdict 2026-09-23: merge that follow-up here rather than file a new ticket.Resolution
Done: Absorbed by #655: every file under the target, including non-Ruby files, enters code_changes.
Evidence: #655 Acceptance criteria cover agents/wiring.md in code_changes.
Follow-ups: none