os-sdlc: root-less namespaces — CLI nests under Project, Lsp becomes Daemon #829
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#829
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
The
CLInamespace has no root file.Zeitwerk builds it from the inflection
"cli" => "CLI"(lib/os_sdlc.rb:22) and four directories.All four hold project-configuration code, and
CLInames a transport, not a noun.module Lspin controller/lsp/probe_cli.rb is an orphan:ProbeCLIdrives the ruby-lsp daemon (Server/Daemon), notProbe::Lspand notLspSession.User ruling on the #781 follow-up (a), 2026-09-29.
Reproduce
n/a: naming and namespace change, nothing to reproduce.
Approach
Paths are relative to plugins/os-sdlc/lib/os_sdlc/.
Current files: model/cli/target_selection_error.rb, parser/cli/option_parser_builder.rb, command/cli/project_config_command.rb, presenter/cli/project_config_command/error_message.rb.
Evidencestays as it is.Required work:
CLI::TargetSelectionErrortoProject::TargetSelectionError. About 11 lib sites and 7 test files use it. — check:grep -rn "CLI::" plugins/os-sdlcCLI::OptionParserBuildertoProject::OptionParserBuilder.CLI::ProjectConfigCommandtoProject::ConfigCommand, and itsErrorMessagetoProject::ConfigCommand::ErrorMessage."cli"inflection in lib/os_sdlc.rb, and the"cli"key in lint/inward_dependencies.rb INFLECTIONS if that constant still exists.Lsp::ProbeCLItoDaemon::ProbeCLIin controller/daemon/probe_cli.rb. Update bin/lsp-probe:7 and tests/controller/lsp/probe_cli_resolves_root_from_subdirectory_test.rb.Lsp::Listing/LspProbe::Listinginconsistency in presenter/lsp_probe/listing.rb, and make the namespace consistent.Acceptance criteria
CLI::andmodule Lsp, then no constant remains.Owner sketch
Origin
CLIandLspnamespaces ←"cli" => "CLI"inflection in lib/os_sdlc.rb:22 ← DESIGN (ADR-0236, controller/ layout by noun)Resolution
Done: CLI::TargetSelectionError, OptionParserBuilder and ProjectConfigCommand (+ErrorMessage) moved under Project (Project::ConfigCommand); cli inflection removed; Lsp::ProbeCLI and LspProbe::Listing moved to Daemon::ProbeCLI and Daemon::Listing.
Evidence: Commit
858349econ main (fast-forwarded to65ae0cd3); ADR-0246; suite 1328 runs 0 failures; bin/os-sdlc and bin/lsp-probe output byte-identical before/after.Follow-ups: none captured; listed as untracked follow-ups in docs/crc/os-sdlc/HANDOFF.md (OsSdlcLspProbe*Test names, Probe::Lsp orphan check)
os-sdlc project-config --helptreats --help as a project name and writes .sdlc/project.yaml #860