Skip to content

Scheduled Release Pass, shipped-path gate, and single-session minor / patch selection #2158

Closed

Description

@JacobStephens2

Parent

#2054

What to build

Extend thirdshift release with unattended Pass mode whenever no positional <version> is supplied (thirdshift release, --patch, --minor, --major), including Pass admission gates, the shipped-path change filter, and single-session sandboxed minor vs patch bump selection.

  • Invoking thirdshift release without <version> runs as a Pass (supporting optional mutually exclusive --patch, --minor, or --major flags; passing both <version> and a bump flag is rejected immediately).
  • Before locking or cutting, Pass mode honors the live Experiment gate and Quota wait gate, and skips quietly (exit 0, no Run notification) if either gate is active or if the local release lock or origin release reservation is already held. Skipped Release run Passes record deduplicated skip reasons in the Activity log (logging again only when the skip reason changes) and update Pass last-fired timestamps surfaced on Cron jobs.
  • When scanning first-parent origin/main commits descending from the last v* release tag, Pass mode considers only commits whose diff from that tag touches at least one shipped-artifact or release-pipeline path (compiled Rust source, embedded skills and process definitions, Cargo manifest and lockfile, dist and Rust toolchain configuration, README.md, LICENSE, release/publish workflows, or release scripts). If only non-shipped paths (such as documentation, website, Day shift agent skills, or tests) changed—or nothing changed since the last tag—the Pass skips quietly.
  • Among eligible shipped-change commits on origin/main, Pass mode immediately selects the newest commit with completed green push CI, polls with progress lines while any eligible commit still has push CI queued or running, and skips quietly naming the failing main CI if every eligible commit completed non-green.
  • When neither <version> nor a bump flag was given, one fresh-home-sandboxed, traced Session receives the merged pull requests since the last release tag together with the candidate minor and patch version strings, chooses minor (new CLI commands/flags, Console pages/actions, config keys, or user-visible contract changes) or patch (bug fixes, edge-case hardening, or internal refinements)—never major—and writes the release summary in the same call. If the model emits major, malformed output, or fails, automatic selection falls back to patch (with non-duplicated generated fallback notes when the summary is unusable). When --patch, --minor, or --major is passed, that bump level is pinned and the Session writes only the summary.
  • Expose versionless Pass invocation and optional bump mode (major, minor, patch) in admin-scoped POST /api/v1/start and Console Start controls.

Acceptance criteria

  • <version> and --major / --minor / --patch are validated as mutually exclusive on both CLI and POST /api/v1/start.
  • Versionless thirdshift release (with or without --patch / --minor / --major) acts as a Pass: it skips quietly with exit code 0, no Run notification, deduplicated Activity log skip entries, and updated Pass last-fired age on Cron jobs during a live Experiment, during a Quota wait, when the release lock/reservation is held, when nothing changed since the last v* tag, when only non-shipped paths changed, or when all shipped-change main commits completed push CI non-green.
  • When shipped-artifact or release-pipeline paths changed since the last v* tag and push CI is green (or finishes green after polling), thirdshift release with no version or bump flag chooses minor or patch and writes the summary in a single sandboxed, traced Session.
  • Automatic bump selection never selects major: model output requesting major, returning malformed output, or failing falls back to patch (and non-duplicated fallback notes when summary output is missing/invalid), while explicit --major, --minor, and --patch flags cut the requested bump level.
  • POST /api/v1/start and Console Start controls support starting versionless and bump-flagged release runs under admin scope, verified by API and parity tests.

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