ticket-takedown: start and finish its worktree via /os:worktree #957
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#957
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
plugins/os-sdlc/skills/ticket-takedown/SKILL.mdhas no worktree step and no cleanup step. Onlyos-sdlc:implementcalls/os:worktree finish(implement/SKILL.md:163). When implement is blocked (cc-os #864/#859), a takedown run falls back to freeform TDD and nothing removes the worktree.Evidence: cc-plugins session 262f79ce (2026-10-05) ran takedowns for tickets #83, #86, #87. It made worktrees by hand (
git worktree add -q -b ticket-$n-impl "$wt" origin/main), merged via a subagent with plaingit rebase main+git merge --no-ff, told it "Do not remove worktrees", and reported finished. Three merged worktrees remained at /home/jared/dev/cc-plugins-wt/ticket-{83,86,87}. Two held uncommitted docs/takedown/scratch-* files, which became the reason to keep them.Approach
ticket-takedown calls
/os:worktree startbefore implementation and/os:worktree finishafter merge, whichever path the run takes (pipeline or freeform). Agents never create worktrees by hand. Scratch files are committed or deleted; they are not a reason to keep a worktree.Required work: none beyond the acceptance criteria.
Acceptance criteria
git worktree listshows no worktree for the ticket.Discoverer: /home/jared/dev/cc-plugins, session 6b76ee92-4cf9-4498-b0ba-06ee55ac21b0, 2026-10-05. Takedown runs in session 262f79ce left merged worktrees behind because ticket-takedown has no worktree start/finish step.
Related: #864, #859. These block the os-sdlc implement pipeline. While they are open, a takedown run falls back to freeform TDD, never reaches the
/os:worktree finishstep in implement, and leaves its worktree behind. This ticket removes that dependency by giving ticket-takedown its own start and finish steps.Resolution
Done: ticket-takedown SKILL.md step 4 now states the worktree hand-off: on the pipeline path /os-sdlc:implement runs /os:worktree start and finish; on the freeform path the skill runs start before the first edit and finish after merge-ready; scratch files are committed or deleted; done when no ticket worktree remains and the branch is merged.
Evidence: Commit
aed4a605(merged to maina059ba70). Takedown run on #1004 (docs/takedown/1004-20261014-124517) plus implementation 44: after worktree finish, git worktree list shows no worktree and git branch shows no branch for 1004; prism-architect merged into main. Limit: the run used the persistent prism-architect worktree, so the freeform-path text was not exercised; the edited skill loads from the next session.Follow-ups: none