CRC wave 4: apply Agent, Handoff, Lint, Loud, Project, Verdict renames and moves #1095
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#1095
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
Apply 11 ledger rows (rename and move) for Agent, Handoff, Lint, Loud, Project, Verdict. Each row's path, constant, and test path change as listed in Approach.
Reproduce
n/a: structure-only refactor, no behavior change.
Approach
plugins/os-sdlc/lib/os_sdlc/agent_type.rb->plugins/os-sdlc/lib/os_sdlc/agent/type.rbOsSdlc::AgentType->OsSdlc::Agent::Typeplugins/os-sdlc/tests/agent_type_test.rb->plugins/os-sdlc/tests/agent/type_test.rbplugins/os-sdlc/lib/os_sdlc/agent_type/unknown_error.rb->plugins/os-sdlc/lib/os_sdlc/agent/type/unknown_error.rbOsSdlc::AgentType::UnknownError->OsSdlc::Agent::Type::UnknownErrorplugins/os-sdlc/lib/os_sdlc/handoff_content/mutation.rb->plugins/os-sdlc/lib/os_sdlc/handoff/content/mutation.rbOsSdlc::HandoffContent::Mutation->OsSdlc::Handoff::Content::Mutationplugins/os-sdlc/lib/os_sdlc/handoff_content.rb->plugins/os-sdlc/lib/os_sdlc/handoff/content.rbOsSdlc::HandoffContent->OsSdlc::Handoff::Contentplugins/os-sdlc/tests/handoff_content_reroute_test.rb->plugins/os-sdlc/tests/handoff/content_reroute_test.rb,plugins/os-sdlc/tests/handoff_content_test.rb->plugins/os-sdlc/tests/handoff/content_test.rbplugins/os-sdlc/lib/os_sdlc/handoff_content/malformed_error.rb->plugins/os-sdlc/lib/os_sdlc/handoff/content/malformed_error.rbOsSdlc::HandoffContent::MalformedError->OsSdlc::Handoff::Content::MalformedErrorplugins/os-sdlc/lib/os_sdlc/lint_output.rb->plugins/os-sdlc/lib/os_sdlc/lint/output.rbOsSdlc::LintOutput->OsSdlc::Lint::Outputplugins/os-sdlc/tests/lint_output_test.rb->plugins/os-sdlc/tests/lint/output_test.rbplugins/os-sdlc/lib/os_sdlc/lint_output/offense.rb->plugins/os-sdlc/lib/os_sdlc/lint/output/offense.rbOsSdlc::LintOutput::Offense->OsSdlc::Lint::Output::Offenseplugins/os-sdlc/lib/os_sdlc/loud_exit.rb->plugins/os-sdlc/lib/os_sdlc/loud/exit.rbOsSdlc::LoudExit->OsSdlc::Loud::Exitplugins/os-sdlc/lib/os_sdlc/loud_error.rb->plugins/os-sdlc/lib/os_sdlc/loud/error.rbOsSdlc::LoudError->OsSdlc::Loud::Errorplugins/os-sdlc/lib/os_sdlc/project_shell.rb->plugins/os-sdlc/lib/os_sdlc/project/shell.rbOsSdlc::ProjectShell->OsSdlc::Project::Shellplugins/os-sdlc/tests/project_shell_test.rb->plugins/os-sdlc/tests/project/shell_test.rbplugins/os-sdlc/lib/os_sdlc/verdict_outcome.rb->plugins/os-sdlc/lib/os_sdlc/verdict/outcome.rbOsSdlc::VerdictOutcome->OsSdlc::Verdict::OutcomeBefore you finish, grep the repository for each old file path and each old constant, not only the constant. Config and docs keep old paths (for example .rubocop.yml, loader collapse lists).
Acceptance criteria
ruby plugins/os-sdlc/tests/all.rb0 failures.ruby -e 'require "./plugins/os-sdlc/lib/os_sdlc"; OsSdlc::Db.connect!(":memory:"); OsSdlc.loader.eager_load'silent.Owner sketch
Each constant matches its new path; callers follow the new name.
Non-goals
Origin
1d0cce87 (pure moves, intermediate) + 68f0f263 (renames and nesting; suite green at HEAD); rows applied 9/11; rows deviated 0; rows blocked 2 (agent_type.rb, agent_type/unknown_error.rb: Event uses AgentType before the bind, Agent::Type would load the Agent Sequel model with no database; Event.new(...).agent_type raised)
Resolution
Done: Applied 9 of 11 rows (R133): Handoff::Content with MalformedError and Mutation, Lint::Output with Offense, Loud::Error, Loud::Exit, Project::Shell, Verdict::Outcome. The 2 Agent::Type rows are blocked and recorded as question cells in the ledger.
Evidence:
4403f485(squash of 1d0cce87 and 68f0f263, which the work comment names), records270f4ad3; suite 2055 runs, 0 failures, 0 errors; eager load silent; lint-sweep 1425 files, 206 offenses (baseline 209: 9 unmapped gone, 6 existing outward edges now mapped, deviations.md)Follow-ups: Agent::Type needs a ruling (keep top-level, or move the pre-bind Event use out of the Agent model namespace); Implementation::CompletionIntake defines its own VerdictOutcome, and the ledger evidence names it as a caller of Verdict::Outcome