Resume autonomous release runs from durable checkpoints #331

Closed
opened 2026-08-08 19:10:27 +00:00 by rockachopa · 0 comments
Member

Evidence

The release engine persists claimed, agent_complete, tests_passed, and pushed states, but production execution never calls StateStore.load(). A worker restart therefore repeats completed coding/testing stages and can repeat mutations. Open issues have no eligible timmy/unassigned item; existing #11 is assigned to rockachopa and historical issue/commit review found no checkpoint-resume implementation.

User impact

Operators can restart an interrupted autonomous release safely. The engine validates repository, issue, deterministic branch, and commit identity, skips only proven completed stages, and reuses/opens exactly one PR without rerunning expensive work.

Acceptance tests

  • Restart from agent_complete with matching branch/SHA skips claim and coding, then tests, pushes, and opens one linked PR.
  • Restart from tests_passed skips claim, coding, and tests, then pushes and opens one linked PR.
  • Restart from pushed verifies the remote branch SHA and opens one linked PR without earlier stages.
  • Mismatched repository, issue, branch, local SHA, or remote SHA fails closed before push/PR mutation.
  • Fresh runs persist versioned repository and commit-bound checkpoints atomically.
  • Existing PR reuse and dry-run behavior remain idempotent.
## Evidence The release engine persists `claimed`, `agent_complete`, `tests_passed`, and `pushed` states, but production execution never calls `StateStore.load()`. A worker restart therefore repeats completed coding/testing stages and can repeat mutations. Open issues have no eligible timmy/unassigned item; existing #11 is assigned to rockachopa and historical issue/commit review found no checkpoint-resume implementation. ## User impact Operators can restart an interrupted autonomous release safely. The engine validates repository, issue, deterministic branch, and commit identity, skips only proven completed stages, and reuses/opens exactly one PR without rerunning expensive work. ## Acceptance tests - Restart from `agent_complete` with matching branch/SHA skips claim and coding, then tests, pushes, and opens one linked PR. - Restart from `tests_passed` skips claim, coding, and tests, then pushes and opens one linked PR. - Restart from `pushed` verifies the remote branch SHA and opens one linked PR without earlier stages. - Mismatched repository, issue, branch, local SHA, or remote SHA fails closed before push/PR mutation. - Fresh runs persist versioned repository and commit-bound checkpoints atomically. - Existing PR reuse and dry-run behavior remain idempotent.
timmy was assigned by rockachopa 2026-08-08 19:10:27 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#331
No description provided.