Show staged changes in the code_changes brief fact #887
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#887
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
code_changesbrief fact does not show a file deletion that the programmer staged withgit rm. The behavior-verifier reads that fact. It then reports a deletion ticket's acceptance criteria as outstanding, although the files are deleted. The run goes back to the test-writer, which cannot write a red test, and the Runner escalates withunexpected_pass.Observed
In #883 implementation 2, the programmer deleted
plugins/os-sdlc/maps/coding.yamlandplugins/os-sdlc/maps/poodr-implementation.yaml.git status --shortshowed both as staged deletions (D). Behavior-verifier dispatch 13 failed AC 1 and AC 2 because its production diff showed no deletion. Its handoff said that staged deletions may be missing fromcode_changes. Test-writer dispatch 14 found no red test possible. The Runner returned:The orchestrator finished the ticket by hand.
Reproduce
n/a: needs a live pipeline run; stage a deletion with
git rmin a programmer dispatch, then read the behavior-verifier brief'scode_changes.Origin
code_changes(query/brief/facts.rb:99) is built fromProject::Changes#code_diff(query/project/changes.rb:31) ←Git::Repo#changed_paths(adapter/git/repo.rb:55) runsgit diff --name-onlyplus untracked files, which omits every staged change;staged_pathsexists but is not used ← DESIGN (plugins/os-sdlc/lib/os_sdlc/adapter/git/repo.rb)changed_paths)VERDICT: CREATE — the source confirms that
changed_pathsomits staged changes, so agit rmdeletion never reaches the behavior-verifier (ticket-skeptic, 2026-10-01).Resolution
Done: Folded into #726 as evidence
Evidence: Same mechanism; see occurrence comment on #726
Follow-ups: none