release-train
Skill11 starsChanged 10 days agoApache-2.0View on GitHub
Run OpenScout commit, pull-request, review, merge, release, and WIP-convergence trains as deterministic resumable cycles. Use when Codex must inventory delivery work, preserve concurrent lanes, advance ready branches through GitHub gates, coordinate Scout owner polls or independent reviews, verify a canonical release, resume a prior train checkpoint, or perform the scheduled 09:00/17:00 America/Montreal release-train cycle.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- 5thlayer/skillworkstheir own version, first seen Nov 8, 2026
- qyndex/claude-inittheir own version, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- qyndex/claude-init★ 2same name
- 5thlayer/skillworks★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Run exactly one checkpointed cycle at a time.
- Very specific: line 14
Read repository instructions and docs/releases.md before mutations.
- Distinctive: line 15
Run the checker from the repository root:
- Very specific: line 27
Run status or ledger after every mutation and attach the receipt before advancing.
- Distinctive: line 49
Never use a new name to evade an active or frozen run.
- Distinctive: line 56
create/resume a checkpoint and finish its current stage output.
- Very specific: line 62
Read-only validate, init, status, and next calls are preflight.
- Distinctive: line 66
If this skill, its workflow definition, or runner is missing or invalid, report that as the blocker.
- Very specific: line 95
Never mutate HOLD, BLOCK, or EXCLUDE lanes.
- Very specific: line 98
Do not classify Scout as unavailable from a connection failure observed inside a restricted execution sandbox.
- Very specific: line 107
Read recipes.md before discovery, GitHub review, Scout polling, rebase/reconciliation, or release verification.
- Very specific: line 136
Use --run-id to select a specific checkpoint and --state-dir for an alternate state root.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Release Train
Run exactly one checkpointed cycle at a time. Treat the workflow definition and runner as the state authority; use judgment only at the explicit planning, review, and release gates.
Start or resume
- Read repository instructions and
docs/releases.mdbefore mutations. Run the checker from the repository root:
bun .agents/skills/release-train/scripts/release-train.ts validate bun .agents/skills/release-train/scripts/release-train.ts initBoth commands are read-only by default.
initprints the checkpoint it would create or reports the incomplete run it would resume.- Pass
--writeonly to persist checkpoint state. The runner never commits, pushes, opens or merges PRs, tags, publishes, or rebases; perform those as explicit agent actions after the runner reports the gate open. - Run
statusorledgerafter every mutation and attach the receipt before advancing.
Scheduled write commands renew an expired lease within the same gated command
when the persisted run id and lock token still match. After the read-only
preflight, perform the one legal stage action directly; do not spend a scheduled
cycle on a separate init --write lease renewal. Missing, malformed, foreign,
released, or token-mismatched locks still fail closed and require explicit
recovery.
The runner serializes checkpoint and lease writes with a per-repository update guard, re-reads the checkpoint under that guard, and rejects stale writers. It reclaims a leftover guard only when the recorded local process no longer exists; a live or malformed guard fails closed.
Live state belongs under
~/.openscout/control-plane/release-train/runs/<run-id>/checkpoint.json, not in
Git. Override with OPENSCOUT_RELEASE_TRAIN_HOME or --state-dir for tests.
The runner resumes the newest incomplete checkpoint before creating a new
09:00/17:00 America/Montreal slot. Explicit interactive runs may add a short
name before the repository hash, for example rt-20260913-17-local-84cf9160.
They share the same repository lock and resume the newest incomplete run.
Never use a new name to evade an active or frozen run; terminally preserve a
superseded scope first.
Execute one resumable cycle
For a scheduled heartbeat, do at most one of these before returning:
- create/resume a checkpoint and finish its current stage output;
- advance one legal stage;
- execute one explicitly gated external action, record its receipt, and stop;
- take one legal S70/S80 recovery loop step;
- quarantine one blocked lane while leaving independent READY lanes eligible.
Read-only validate, init, status, and next calls are preflight. Exactly
one subsequent write or explicitly gated external action is the resumable cycle.
Invoke this skill with: Use $release-train for exactly one resumable cycle.
If this skill, its workflow definition, or runner is missing or invalid, report
that as the blocker. Never replace it with a free-form delivery sweep.
Follow the encoded graph
Load workflow-v1.json for the normative stage graph, typed outputs, transition rules, review-escalation matrix, retry policy, idempotency operations, and stop conditions. The checked-in checkpoint-v1.schema.json documents the persisted shape; the runner applies corresponding typed validators before recording or advancing.
S00: acquire the run lock and capture the immutable baseline.S10: discover WIP and record the source/ownership ledger.S20: poll owners and classify every laneREADY,HOLD,BLOCK, orEXCLUDE.S30: freeze scope and record commit, PR, and release plans.S40: create logical commits only for approved READY lanes.S50: run proportional checks and attach exact receipts.S60: reuse, open, or update coherent PRs idempotently.S70: recordSELF,INDEPENDENT, orMULTI_AGENTreview. Changes loop toS40orS50.S80: require exact-revision validation evidence, current base, mergeability, and no blocking feedback. Local receipts are authoritative by default; hosted CI requires explicit operator opt-in. Failures loop toS40orS50.S90: merge and verify the canonical release decision.AMBIGUOUSstops.S100: poll participating owners and reconcile only authorized READY work.S110: record the final ledger, stable receipts, unresolved work, and next checkpoint, then complete and release the lock.
Never mutate HOLD, BLOCK, or EXCLUDE lanes. Preserve owner vetoes. Never
force-push or rewrite an owner branch without explicit authorization.
Do not classify Scout as unavailable from a connection failure observed inside
a restricted execution sandbox. Follow the transport diagnostic gate in
references/recipes.md: preserve the initial error, retry the exact read or
action with loopback/network access, and require that second receipt before
recording a transport BLOCK. Never restart or repoint the broker merely to
work around sandbox isolation.
Use deterministic recipes
Read recipes.md before discovery, GitHub review, Scout polling, rebase/reconciliation, or release verification. Use the commands there as evidence recipes, not as permission to mutate. Keep repository and GitHub state authoritative when agent reports disagree.
Runner commands
# Read-only preview/resume/status
bun .agents/skills/release-train/scripts/release-train.ts init
bun .agents/skills/release-train/scripts/release-train.ts status
bun .agents/skills/release-train/scripts/release-train.ts ledger
bun .agents/skills/release-train/scripts/release-train.ts next
# Persist local checkpoint state only
bun .agents/skills/release-train/scripts/release-train.ts init --write
bun .agents/skills/release-train/scripts/release-train.ts record-stage \
--stage S10 --artifact /absolute/source-ledger.json --write
bun .agents/skills/release-train/scripts/release-train.ts advance --to S20 --write
bun .agents/skills/release-train/scripts/release-train.ts receipt \
--kind pr_open --lane <lane-id> --target pr:<number> \
--external-id <url-or-number> --write
bun .agents/skills/release-train/scripts/release-train.ts quarantine \
--lane <lane-id> --reason <evidence-backed-blocker> --write
bun .agents/skills/release-train/scripts/release-train.ts stop \
--reason <terminal-blocker-or-exhausted-retry-budget> --write
bun .agents/skills/release-train/scripts/release-train.ts complete --writeUse --run-id to select a specific checkpoint and --state-dir for an
alternate state root. Use discover to render a read-only worktree/branch
starter ledger. Run help for the complete contract.
Validate changes to this skill
python3 /Users/art/.codex/skills/.system/skill-creator/scripts/quick_validate.py \
.agents/skills/release-train
bun test ./.agents/skills/release-train/scripts/release-train.test.ts
bun .agents/skills/release-train/scripts/release-train.ts validate
bun .agents/skills/release-train/scripts/release-train.ts initForward-test risky changes with an independent Scout reviewer using the compact
brief in references/recipes.md. Record the Scout flight/conversation/work ref
and classify findings as must_fix, should_fix, follow_up, or reject.
For the exact local validation contract and release limits, read
local-delivery.md. Historical receipts remain
readable; a legacy bare checks: PASS cannot authorize a new merge.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

