Pass PATH into Inspector::ExecutablePath from the wiring instead of reading ENV in a default argument #1041
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#1041
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
Backlog::Inspector::ExecutablePath#initialize(path = ENV.fetch("PATH", ""))reads the environment inside a library object (lens A6: the entry layer reads ENV, the library receives values).Observed
Evidence: lib/backlog/inspector/executable_path.rb:5; lib/backlog/inspector/command.rb:7 builds
ExecutablePath.newas a default; tests already inject a path (tests/support/inspect_command_sandbox.rb:11, tests/inspector/command_executable_path_test.rb:37). Ruling R29, follow-up 6.Reproduce
n/a: ENV read found in a crc-refactor tuning run; the defect is structural, not a runtime failure.
Acceptance criteria
ExecutablePath#initializetakespathas required with no ENV reference;Inspector::Commandtakesexecutables:with no default; cli_command_wiring.rb buildsExecutablePath.new(ENV.fetch("PATH", "")); inspect tests pass; grep finds noENVunder lib/backlog/inspector/.Skeptic: VERDICT: CREATE — the ENV default is real; ruling R29 recorded it as a lens A6 gap.
Origin