GateEvaluator gate subprocesses inherit caller cwd instead of chdir to project root #520
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#520
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?
Context
GateEvaluator#run_gate shells out via Open3.capture3 with no chdir, so gate commands run from the invoking process's real cwd, not the target project root. Second independent collision in two days: the diff-test quoting fix (
2eb29a6) noted the cwd boundary, and the lint-lessons TDD run (merge87aaf9a) had to wrap its integration tests in Dir.chdir plus seed a .rubocop.yml to get real gate JSON. Existing tests masked it with substring-only assertions.Tasks
Acceptance criteria
Origin
Resolution
Done: Closed in the 2026-09-23 relevance pass of retired-template tickets: DONE.
Evidence: plugins/os-sdlc/lib/os_sdlc/pipeline/gate_evaluator.rb:20 uses ProjectShell.capture3(command, chdir: @root); fixed by
8615acc9(#624)Follow-ups: none