os-sdlc: .sdlc/tickets/<n> vanished before teardown -- archiver crashed on ENOENT #269
Labels
No labels
P0
P1
P2
P3
bug
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
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#269
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?
During ticket #263's run, the worktree's .sdlc/tickets/263/ (artifact.yml, ticket.txt, review.txt) disappeared between the last gate run and teardown; no 263 dir existed anywhere under .sdlc/ afterward. First teardown attempt crashed in WorkspaceTicketArchiver#preserve_ticket_dir (FileUtils.cp_r realpath ENOENT on the missing source). Nothing in the session deleted it explicitly (workspace-housekeeping cleans .sdlc/tmp only; one lint-fixer disclosed an accidental git checkout, which shouldn't touch ignored .sdlc/ content). Two threads: (1) find what deletes the tickets dir; (2) archiver should degrade gracefully (skip + warn) when the ticket dir is absent instead of crashing.
Triage: current WorkspaceTicketArchiver#archivable_ticket_dir already guards with File.directory?(source), returning nil so #archive no-ops instead of crashing (thread 2 addressed). Thread 1 (what deletes .sdlc/tickets/N) remains uninvestigated -- leaving open.
Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.