Batch a release without the stale work
Exclude unfinished or stale branches, combine the valid changes, and ship a complete artifact from the latest integrated main.
Use this when
Use this when several branches or pull requests may be ready at once and the release must avoid stale worktrees, partial overlays, and incomplete changes.
How it runs
- Fetch current repository and pull-request state, then inspect every candidate change for freshness, completeness, ownership, checks, and dependencies.
- Exclude stale, superseded, conflicting, or unfinished work and record why each candidate was omitted.
- Integrate the valid changes, rerun the combined checks, and select the newest main revision that contains the full batch.
- Release complete artifacts from a clean checkout, serialize the deployment, and verify production before closing the batch.
Done when
✓ Only current, complete changes ship in the combined release. The released revision is the latest integrated main that contains every selected change.
Why it works
Evaluating all candidates before integration prevents stale code from entering a release through convenience or worktree confusion. Releasing from integrated main proves the deployed artifact matches the reviewed batch.
Implementation note
The candidate diff selects what belongs in the batch, but deployment must use complete artifacts from the latest integrated main. Never deploy from a task worktree or partial file overlay.
More devops loops
Check whether the deploy finished and summarize what changed
A 5-minute watch loop that polls whether a deploy has finished and, once it lands, summarizes what changed. It is a read-only status watcher rather than an agent driving toward a finish condition.
Deploy-poll loop
A hands-free ops loop that polls your deploy every two minutes, runs the smoke test the moment it goes live, and stops with a report if any check fails.
Docker image slimming
Iteratively shrink a Docker image under a size target using multi-stage builds, smaller base images, and layer cleanup, verifying the container still boots each turn.