agentleFS
oscoutoscout/scout/.agents/skills/release-train/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. qyndex/claude-init★ 2same name
    2. 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.

  • In this repository4 other files it gives its agents.

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
  1. Distinctive:

    Run exactly one checkpointed cycle at a time.

    line 8
  2. Very specific:

    Read repository instructions and docs/releases.md before mutations.

    line 14
  3. Distinctive:

    Run the checker from the repository root:

    line 15
  4. Very specific:

    Run status or ledger after every mutation and attach the receipt before advancing.

    line 27
  5. Distinctive:

    Never use a new name to evade an active or frozen run.

    line 49
  6. Distinctive:

    create/resume a checkpoint and finish its current stage output.

    line 56
  7. Very specific:

    Read-only validate, init, status, and next calls are preflight.

    line 62
  8. Distinctive:

    If this skill, its workflow definition, or runner is missing or invalid, report that as the blocker.

    line 66
  9. Very specific:

    Never mutate HOLD, BLOCK, or EXCLUDE lanes.

    line 95
  10. Very specific:

    Do not classify Scout as unavailable from a connection failure observed inside a restricted execution sandbox.

    line 98
  11. Very specific:

    Read recipes.md before discovery, GitHub review, Scout polling, rebase/reconciliation, or release verification.

    line 107
  12. Very specific:

    Use --run-id to select a specific checkpoint and --state-dir for an alternate state root.

    line 136

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read repository instructions and docs/releases.md before mutations.
  2. 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 init

    Both commands are read-only by default. init prints the checkpoint it would create or reports the incomplete run it would resume.

  3. Pass --write only 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.
  4. Run status or ledger after 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 lane READY, HOLD, BLOCK, or EXCLUDE.
  • 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: record SELF, INDEPENDENT, or MULTI_AGENT review. Changes loop to S40 or S50.
  • 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 to S40 or S50.
  • S90: merge and verify the canonical release decision. AMBIGUOUS stops.
  • 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 --write

Use --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 init

Forward-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.