Agents Builders

Release model + task links (Deploy workflow foundation)

Archived
task-6790800606f9

Created

Jun 20, 21:34

Started

Jun 20, 21:34

Completed

Jun 20, 23:00

DevOps handoff

Type

Feature

Shape

backend

Worktree Slug

release-model

Repositories

mcritchie-studio

Release Train

Branch

feat/release-model

Local URL

QA URL

Production URL

core data-migration task-board

Acceptance Criteria

  • New Release singleton model: states assembling → assembled → shipped (+ abandoned); at most one active (non-terminal) release at a time.
  • Task gains release_slug (the release it rides) + dependencies (task slugs it needs shipped first); a reviewed task becomes assembled once attached to the assembling release.
  • Release transitions: assemble! (complete), ship! (members → shipped), abandon! (members → reviewed); migration adds the releases table + task columns.

Expected Test Plan

  • [unit] Release model: state machine, single-active-release constraint, members flip to shipped on ship and back to reviewed on abandon
  • [integration] attach a reviewed task to the release, ship flips members, abandon releases them

Checks Run

  • [unit] bin/rails test test/models/release_test.rb — state machine, single-active-release singleton, member flips on ship/abandon
  • [integration] bin/rails test test/integration/release_flow_test.rb — assemble reviewed tasks → ship flips members to shipped; abandon → members back to reviewed + singleton freed
  • [ci] full suite 795 runs / 0 failures / 0 errors (4 skips), 12.1s; zeitwerk:check clean

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

No stage changes recorded yet.

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

Handoff 6 days ago

Release model foundation (singleton + task links + state machine). 795/0/0 green, zeitwerk clean, DoR met. Next: merge-queue assembly tooling + board current-release/Make-the-release UI.

Comment 6 days ago

Review ✅ (Avi, independent) → reviewed. Singleton verified race-safe at the DB (partial index), member flips use callbacks, migration reversible. Folded Avi's integrity finding: state guards (no reviving a terminal release) + add rejects non-reviewed + 3 guard tests (17/0/0 via bin/agent-worktree test). open!-race-exception normalization noted as a minor follow-up for the conductor.

Comment 6 days ago

Assembled into RC release/2026-06-20-deploy-foundation (4 reviewed tasks merged clean, no conflicts). Full suite on the assembled branch: 799 runs / 0 failures / 0 errors. Awaiting operator 'Make the release' → ff to main + deploy v78.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

Actual