Add OsSdlc::Error root and reparent harness and policy errors under it #1182
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#1182
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 harness has no single error root.
HarnessErrorand about 30 other error classes inheritStandardErrordirectly. A rescue site cannot name "any error this library raises". Ruling S31 designs oneOsSdlc::Errorroot with policy subclasses.Loud::Errorstays the exit-3 policy class, so the ADR-0232 exit contract and the ADR-0088 target-list message stay the same. Rulings S32, S33, S83, S85, S86 and S87 reparent the classes.Reproduce
n/a: structure-wave error design, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/error.rbwithclass OsSdlc::Error < StandardError. — check: presentError < StandardErrorinplugins/os-sdlc/lib/os_sdlc/error.rbplugins/os-sdlc/lib/os_sdlc/harness_error.rb, changeHarnessError < StandardErrortoHarnessError < OsSdlc::Error. The six class-wideHarnessErrorrescues catch nothing new. — check: presentHarnessError < OsSdlc::Errorinplugins/os-sdlc/lib/os_sdlc/harness_error.rb< StandardErrorto< OsSdlc::Errorfor each class below. Each keeps its path and name. Paths are underplugins/os-sdlc/lib/os_sdlc/. — check: absent< StandardErrorinplugins/os-sdlc/lib/os_sdlc/boot/refusal_error.rbBoot::RefusalError(boot/refusal_error.rb)Brief::MissingFileError(brief/missing_file_error.rb)CollaboratorPass::Command::UsageError(collaborator_pass/command/usage_error.rb)Crc::Score::MissingError(crc/score/missing_error.rb)Gate::UnknownError(gate/unknown_error.rb)HandoffContent::MalformedError(handoff_content/malformed_error.rb)Implementation::AlreadyRoutedError(implementation/already_routed_error.rb)Implementation::CompletionIntake::RoleMismatchError(implementation/completion_intake/role_mismatch_error.rb)Implementation::NotActiveError(implementation/not_active_error.rb)Implementation::Reroute::RefusedError(implementation/reroute/refused_error.rb)Implementation::StaleDispatchError(implementation/stale_dispatch_error.rb)Lint::Worklist::UnmappedCopError(lint/worklist/unmapped_cop_error.rb;Class.new(StandardError)becomesClass.new(OsSdlc::Error))Verdict::UnknownError(verdict/unknown_error.rb)Dispatch::UnknownError(dispatch/unknown_error.rb),Dispatch::NotPendingError(dispatch/not_pending_error.rb) andEvent::UnknownAgentError(event/unknown_agent_error.rb) subclasses ofOsSdlc::Error. They stay in their files. — check: absent< StandardErrorinplugins/os-sdlc/lib/os_sdlc/dispatch/not_pending_error.rbplugins/os-sdlc/lib/os_sdlc/crc/error_lineage.rb:11, add"#{root_constant}::Error"to the policy bases in@bases, before"StandardError". — check: present::Error"inplugins/os-sdlc/lib/os_sdlc/crc/error_lineage.rbAcceptance criteria
OsSdlc::Erroris one of them.OsSdlc::HarnessError, when its ancestors are listed, thenOsSdlc::Erroris one of them, and eachHarnessErrorsubclass inherits it.Owner sketch
Non-goals
No rescue site changes. Out of scope: the moves and folds in rulings S35 to S50, S89, S90 and S92. They are wave 4 moves with their own tickets. Add no test.
Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (os-sdlc CRC run 3), structure-change map.
Resolution
Done: Added OsSdlc::Error < StandardError (lib/os_sdlc/error.rb); reparented HarnessError, the 13 listed classes, Dispatch::UnknownError, Dispatch::NotPendingError and Event::UnknownAgentError under it; ErrorLineage counts OsSdlc::Error as a policy base.
Evidence: Runner commit
43829353(19 files), implementation 94, dispatch 780 gate green: required-work, lint, test-lint, suite, unchanged.Follow-ups: none; error classes outside S31-S33/S83-S87 that still inherit StandardError are judged in the wave 0 re-measure of this run