Move the close family onto Ticket and Resolution #1618
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#1618
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
close, review,occurrence, anddecision-sweepeach apply close rules by hand. The rules differ between them, and that difference causes the defects below.Approach
Move the rules to
Ticket#close,Ticket#request_review,Ticket#record_occurrence, andResolution. Owned rules: inventory 1.1, 1.2, and 1.8. Keep## Resolutionand**Follow-ups:**unchanged.Required work:
Ticketmethods — check: presentdef record_occurrenceinplugins/os-backlog/lib/backlog/**/*.rbclose,close --needs-review,occurrence, anddecision-sweepthroughTicket.close.rband defect 6.Acceptance criteria
recurringticket, whencloseordecision-sweepruns, then it refuses before any other check.closerepeats, then it adds no comment and still closes.close --needs-review, when it runs, then no second comment appears.--needs-review, when the command ends, then thereviewlabel is absent.closeruns, then the failure reaches the caller and no duplicate comment appears.decision-sweepruns, then the error namesdecision-sweeponce.closeruns, then the error carries the same prefix ascategorize.occurrenceon arecurringticket, when it runs, then one comment appears and the ticket stays open.Owner sketch
Non-goals
Do not rename a command before slice 9. Do not change
## Resolution,**Follow-ups:**, the body headings, the check form, the label names, or theissue-showJSON keys. Do not make a behavior change that this ticket does not name.Blocking edges
Blocked by #1617
Origin
docs/system-design-format/proof/2026-11-06-os-backlog-domain-objects.md, slice 5plugins/os-backlog/CONTEXT.md)VERDICT: CREATE
From #1615: add the state step to Tracker#save here, last in the order.
Work started on branch ticket-1618.
Resolution
Done: close, close --needs-review, occurrence, and decision-sweep run through Ticket and Resolution. State is the last step of Tracker#save. Close is deleted and Ticket::Refused replaces Close::Failed. Defects 5 (close.rb), 6, 14, 15, and 17 are fixed. After the Runner finished, I fixed a behavior change it missed: a repeat close with missing parts refuses again, with a pin.
Evidence: Implementation 254 complete, commit
e0e1e358, follow-up commit on the same branch. os-backlog 497 runs on seed 19992, os-sdlc 3508 runs, ticket-takedown 623 runs (before the follow-up edit), 0 failures. This close ran on the new code.Follow-ups: none. Lens A11 is a code defect: required work added to #1621.