Skip to content

Tracer-bullet thirdshift release <version>: Release run Command, Console admin start, Cron jobs, and happy-path release #2157

Closed

Description

@JacobStephens2

Parent

#2054

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 release enforces Linux-only execution, refuses immediately when called from inside a factory Session (THIRDSHIFT_SESSION or THIRDSHIFT_PARENT_RECORD set), refuses Launch directories whose origin remote is not JacobStephens2/thirdshift, and validates <version> as X.Y.Z strictly greater than the current version on main before pushing anything.
  • It coordinates via a dedicated machine-local release lock and an atomic origin release reservation outside the repository's Command limit (plus in-progress on 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 thirdshift binary against freshly fetched origin/main commits in temporary detached worktrees, it finds the newest main commit descending from the last v* 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 Changed on the GitHub Release page.
  • It commits only the Cargo manifest and lockfile version bump, pushes release-<version>, opens Release <version> into main (recording the content-base commit marker), waits for pull-request checks and mergeability with periodic progress lines, pushes v<version> on the validated bump head, polls the release workflow to completion, merges Release <version> into main, and exits without running thirdshift 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 under email-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 under email-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, and POST /api/v1/start plus Console Start controls expose release behind admin scope (rejecting run-only tokens and narrowed viewers with 403).

Acceptance criteria

  • thirdshift release <version> cuts a happy-path release end-to-end from fetched origin/main in temporary detached worktrees without reading or compiling the Launch directory's working tree, pushing release-<version>, waiting on PR checks, pushing v<version>, waiting on the release workflow, merging Release <version>, and stopping without running thirdshift update.
  • Non-X.Y.Z or non-increasing <version> arguments, non-JacobStephens2/thirdshift remotes, factory Session environments (THIRDSHIFT_SESSION / THIRDSHIFT_PARENT_RECORD), and active local release locks or origin release reservations are refused cleanly before pushing branches or tags, while active Spec runs or Ticket runs at the repository Command limit do not block thirdshift release.
  • Candidate main selection picks the newest green commit since the last v* 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 Changed is 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 (including email-unless-merged suppression 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/start and Console Start controls accept release for admin-scoped callers, return 403 for run-only tokens and narrowed viewers, and pass Console API parity and OpenAPI checks while keeping the legacy release script tests passing.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 13, 2026
  2. JacobStephens2 commented on Nov 14, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #2163, merged into issue-2054 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions