Boot parses argv for Lint::Remediation so ArgvOption can move under Boot #1147
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#1147
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
lib/os_sdlc/lint/remediation.rb:12 reads argv itself through OsSdlc::ArgvOption.
That one Lint caller is why ArgvOption cannot nest under Boot.
CRC run 2 rulings R89 and Q30 kept it top-level with a deviation line.
Standing-rules Precedence 3 says the entry layer parses and passes the value in.
Reproduce
n/a: design.
Approach
Required work:
plugins/os-sdlc/bin/lint-worklist, the only caller of Remediation; no Boot command spec exists for it) parses--target NAMEand passes the value toLint::Remediation.runastarget:. — check: presentBoot::ArgvOption.take!(ARGV, "--target NAME")inplugins/os-sdlc/bin/lint-worklistLint::Remediation.runtakestarget:(default nil) and stops naming ArgvOption. — check: presentdef self.run(argv:, cwd:, target: nil)inplugins/os-sdlc/lib/os_sdlc/lint/remediation.rbArgvOptioninplugins/os-sdlc/lib/os_sdlc/lint/**/*.rbOsSdlc::Boot::ArgvOption(a structure-only move; the Boot callers resolve it by nesting). — check: presentmodule ArgvOptioninplugins/os-sdlc/lib/os_sdlc/boot/argv_option.rbOsSdlc::Boot::ArgvOption; the assertions stay the same. — check: absentOsSdlc::ArgvOptioninplugins/os-sdlc/tests/**/*.rbAcceptance criteria
ArgvOptionreference exists under lib/os_sdlc/lint/.grep -rn 'ArgvOption' plugins/os-sdlc/libshows only boot/.Owner sketch
Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (persistent worktree, run 3 collaborator round), structure-change map.
Resolution
Done: ArgvOption moved to OsSdlc::Boot::ArgvOption (lib/os_sdlc/boot/argv_option.rb, tests/boot/argv_option_test.rb). Lint::Remediation.run takes target:; bin/lint-worklist parses --target NAME. Merged to main.
Evidence:
052849c5,0d04165e(old-path deletions the Runner commit left staged). Gate green on dispatch 790: required-work, lint, test-lint, suite 47.7 s, unchanged.Follow-ups: Recorded in docs/crc/os-sdlc/HANDOFF.md for the close-out skeptic: Runner commit leaves git mv deletions staged and uncommitted (dirty_paths); tests/all.rb measures suite wall time with Time.now, which counts machine suspend (use CLOCK_MONOTONIC).