Sweep::Settings answers root, ledger and run_dir; drop the run_path chain #1179
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#1179
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
Three Sweep files reach through the settings object into its
run_pathto get the root, the ledger and the run directory:request.run_path.root,request.run_path.ledgerandrequest.run_path.relative.Crc::Sweep::Settingsalready answersledger_pathandplugin_root. Ruling S67 makes it answer the three questions too.Reproduce
n/a: structure-wave reach-through answer, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/crc/sweep/settings.rb, adddef root = run_path.root,def ledger = run_path.ledgeranddef run_dir = run_path.relativenext toledger_pathandplugin_root. — check: presentdef run_dirinplugins/os-sdlc/lib/os_sdlc/crc/sweep/settings.rbplugins/os-sdlc/lib/os_sdlc/crc/sweep/file_classification.rb:12, replacerequest.run_path.relativewithrequest.run_dir. — check: absentrequest.run_pathinplugins/os-sdlc/lib/os_sdlc/crc/sweep/file_classification.rbplugins/os-sdlc/lib/os_sdlc/crc/sweep/files.rb:24, replacerequest.run_path.rootwithrequest.root. — check: absentrequest.run_pathinplugins/os-sdlc/lib/os_sdlc/crc/sweep/files.rbplugins/os-sdlc/lib/os_sdlc/crc/sweep/substitutions.rb:8, replacerequest.run_path.ledgerwithrequest.ledger. — check: absentrequest.run_pathinplugins/os-sdlc/lib/os_sdlc/crc/sweep/substitutions.rbAcceptance criteria
Crc::Sweep::Settings, whenroot,ledgerandrun_dirare called, then they returnrun_path.root,run_path.ledgerandrun_path.relative.request.run_path, then none remains.Owner sketch
Non-goals
crc/sweep/run.rbsends the settings four messages (run_path,target,excludes,histories). Ruling S68 keeps that. Add no test.Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (structure-change map).
Resolution
Done: S67 applied: Sweep::Settings answers root, ledger and run_dir; file_classification.rb, files.rb and substitutions.rb call them.
Evidence:
ca392ee6(Runner commit, gate green, 3 min 2 s). Implementation 91, dispatch 773.Follow-ups: none; crc/sweep/run.rb still sends @request.run_path.ledger?/.relative/.root at 4 sites outside S67; the post-step re-measure decides whether it is a row.