Brief builder gives no test_changes when the project root resolves outside the worktree #1227
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#1227
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
Implementation 110 (#1217) failed. Test-reviewer dispatch 859 got a brief with no
test_changesorred_testssection. The orchestrator session cwd was the main checkout, not the ticket worktree.Brief::Facts#test_changes(plugins/os-sdlc/lib/os_sdlc/dispatch/brief/facts.rb:86) returns nil when@projectis nil.changes.test_diffreturns "" when test_paths is empty. The reviewer correctly returned verdict error.Reproduce
n/a: needs a live implementation run with the orchestrator cwd in the main checkout and the ticket in a worktree.
Approach
The brief builder fails loudly when it cannot build
test_changesfor a test-reviewer. It raises an error that names the dispatch and the project root. It must not return nil or an empty diff for that role. Also take the project root from the dispatch's worktree, not from the orchestrator cwd.Required work:
test_changeswhen the project is missing — check: presentraiseinplugins/os-sdlc/lib/os_sdlc/dispatch/brief/facts.rbworktreeinplugins/os-sdlc/lib/os_sdlc/dispatch/brief/facts.rbAcceptance criteria
test_changessection from the worktree.Owner sketch
Origin
VERDICT: CREATE