Collapse Implementation#fail! and #escalate! onto one private terminate! method #661
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#661
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/model/implementation/instance_methods.rb:33 and :38 differ by one symbol. Both methods call stamp! with the same position/reason transformation and then lifecycle.close(root). The rule "close the LSP daemon on a terminal state" (ADR-0201) is written twice. flay reports Similar, mass 46.
Reproduce
n/a: refactor ticket, no runtime defect
Approach
Add a private
terminate!(column, position:, reason:, root: nil, lifecycle: Pipeline::LspDaemonLifecycle)holding the sequence. fail! and escalate! become one-line delegations that pass :failed_at or :escalated_at. Public signatures unchanged.Required work:
Acceptance criteria
Owner sketch
A private
terminate!inlib/os_sdlc/model/implementation/instance_methods.rbowns the terminal-state sequence: stamp the column, record the reason, close the LSP daemon.Public signatures of
fail!andescalate!are unchanged.Origin
Session: 24f1de09-c081-4958-902b-0512a5d86e04
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/24f1de09-c081-4958-902b-0512a5d86e04.jsonl
Where: lib/os_sdlc/model/implementation/instance_methods.rb
Source: flay duplication sweep (bin/dup-sweep) run 2026-09-23 on plugins/os-sdlc; lib+bin score 726.
Work started via /os-sdlc:implement on branch ticket-661 (session 24f1de09), coding.yaml map: behavior-preserving refactor, no red test.
Resolution
Done: fail! and escalate! are one-line delegations to a private terminate!(column, ...) that stamps, records the reason, and closes the LSP daemon. Public signatures unchanged.
Evidence: Pipeline impl 1 on coding.yaml: programmer gates test+lint green twice, reviewer fail then pass. flay lib+bin 598 -> 552; pair no longer listed. Branch ticket-661.
Follow-ups: none
jared referenced this issue2026-09-24 01:55:08 +00:00
- [ ]but the template and Required-work parsers require numbered lines #664