Repository navigation
Closed
Labels
Description
Parent
What to build
Introduce thirdshift release <version> as a first-class Release run Command that cuts a specified semantic version end-to-end from origin/main without touching the Launch directory's working tree, integrated across Command lifecycle, Cron jobs, Inbox, Run notifications, and Console admin start controls. Keep the legacy release shell script, Python experiment helper, and hidden --release-summary flag intact in this slice so existing release script tests stay green until the final cutover ticket.
When a maintainer (or admin-scoped Console caller) runs thirdshift release <version> with --harness, --model, --effort, and standard notification flags (--email, --email-unless-merged, --no-email):
thirdshift releaseenforces Linux-only execution, refuses immediately when called from inside a factory Session (THIRDSHIFT_SESSIONorTHIRDSHIFT_PARENT_RECORDset), refuses Launch directories whoseoriginremote is notJacobStephens2/thirdshift, and validates<version>asX.Y.Zstrictly greater than the current version onmainbefore pushing anything.- It coordinates via a dedicated machine-local release lock and an atomic
originrelease reservation outside the repository's Command limit (plusin-progresson the open bump pull request while live), failing cleanly in direct<version>mode if another release holds the lock or reservation. - Working exclusively from the running
thirdshiftbinary against freshly fetchedorigin/maincommits in temporary detached worktrees, it finds the newestmaincommit descending from the lastv*release tag whose push CI succeeded, waiting with periodic progress lines while push CI is queued or running and failing if all candidate commits completed non-green. - It generates the release summary in a single tool-less, recorded Session inside the fresh-home sandbox with no host filesystem read access and its Session trace attached to the Release run (adding the release prompt to the compiled prompt catalog and regenerating prompts artifacts). If the Harness fails or returns empty output, it logs a warning and places GitHub's generated notes outside the summary markers on the bump pull request so the post-release notes job never duplicates
## What's Changedon the GitHub Release page. - It commits only the Cargo manifest and lockfile version bump, pushes
release-<version>, opensRelease <version>intomain(recording the content-base commit marker), waits for pull-request checks and mergeability with periodic progress lines, pushesv<version>on the validated bump head, polls the release workflow to completion, mergesRelease <version>intomain, and exits without runningthirdshift update. - Live Release runs appear in Working in the Inbox and clean up locks/reservations on
thirdshift stop. A run that both publishes the GitHub Release and merges the bump pull request lands in Done (quiet underemail-unless-merged); a run that fails before publication—or publishes the GitHub Release but fails to merge the bump pull request—lands in Needs you and emails even underemail-unless-merged, settling once the bump pull request merges or closes, a later Release run starts or succeeds, or it receives a Dismissal. - Cron jobs recognizes
thirdshift release, andPOST /api/v1/startplus Console Start controls exposereleasebehindadminscope (rejectingrun-only tokens and narrowed viewers with403).
Acceptance criteria
-
thirdshift release <version>cuts a happy-path release end-to-end from fetchedorigin/mainin temporary detached worktrees without reading or compiling the Launch directory's working tree, pushingrelease-<version>, waiting on PR checks, pushingv<version>, waiting on the release workflow, mergingRelease <version>, and stopping without runningthirdshift update. - Non-
X.Y.Zor non-increasing<version>arguments, non-JacobStephens2/thirdshiftremotes, factory Session environments (THIRDSHIFT_SESSION/THIRDSHIFT_PARENT_RECORD), and active local release locks ororiginrelease reservations are refused cleanly before pushing branches or tags, while active Spec runs or Ticket runs at the repository Command limit do not blockthirdshift release. - Candidate
mainselection picks the newest green commit since the lastv*tag immediately, polls with progress lines while push CI is queued or running, and fails in direct<version>mode when all candidate commits completed non-green. - The summary Session runs inside the fresh-home sandbox with no host filesystem read access, records a Session trace under the Release run, updates the compiled prompt catalog cleanly, and on Harness failure places fallback generated notes outside the release-summary markers so
## What's Changedis not duplicated. - Release runs write Command records, Command logs, Activity log entries, and Run metrics, respond to
thirdshift stop, appear in Cron jobs, and transition through Working, Done, and Needs you (includingemail-unless-mergedsuppression on published+merged success, Needs you + email when published without merging the bump PR, and settlement on PR merge/close, newer Release run, or Dismissal). -
POST /api/v1/startand Console Start controls acceptreleaseforadmin-scoped callers, return403forrun-only tokens and narrowed viewers, and pass Console API parity and OpenAPI checks while keeping the legacy release script tests passing.
Activity
thirdshift releaseCommand and Pass for scheduled and on-demand releases #2054minor/patchselection #2158JacobStephens2 commentedon Nov 14, 2026
Closed by #2163, merged into issue-2054 by a thirdshift Ticket run with Self-merge.