os-sdlc: resume --action retry crashes on agentless states (NOT NULL dispatches.agent) #404
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#404
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?
Found during #403. The lint state has agent: null (pure gate, retries: 0). After its escalation,
os-sdlc-runner resume <t> --action retryraises Sequel::NotNullConstraintViolation (NOT NULL constraint failed: dispatches.agent) — the Resumer tries to create a dispatch for an agentless state instead of re-running the gate. Workaround used: --action skip after verifying the gate manually. Also noted in #403's review: the reviewer packet carried no programmer/lint evidence and gate-log.txt held a stale error — packet evidence assembly may deserve its own look.Starting work on the agentless-state resume crash: Resumer#retry! will delegate to TicketFlow#emit_action (mirroring skip!), so :automated rows re-run their gate instead of creating a NULL-agent dispatch. The reviewer-packet evidence gap in this ticket is NOT addressed by this change.
jared referenced this issue2026-08-15 16:17:22 +00:00
Resolution
Done: Fixed the resume --retry NOT NULL crash on agentless states: Resumer#retry! now delegates to TicketFlow#emit_action (ADR-0097); agentless retries re-run the gate, no dispatch row created; retry guidance note still delivered via TicketFlow note:.
Evidence: Commit
76e3c8eon main (3 files: resumer.rb, ticket_flow.rb, escalation_test.rb). Verified 2026-08-15: full os-sdlc suite 917 runs, 2253 assertions, 0 failures; rubocop clean on changed files; plugin cache refreshed.Follow-ups: Reviewer-packet evidence gap split into #405.