runner-watch
Sync the preloop runner with upstream GitHub Actions runner releases
TLDR
SYNOPSIS
runner-watch [--config file] command [options]
DESCRIPTION
runner-watch is the maintainer CLI for keeping preloop aligned with the official GitHub Actions runner. It polls releases, diffs two tags, turns the delta into per-change specs, can invoke Codex and Claude on those specs, replays recorded HTTP flows against a running preloop, and writes tiered draft pull requests with gh. It is not the runner that executes jobs; that is preloop-runner.State and artifacts live under .runner-watch (delta, specs, golden captures, coverage, PR bodies). --config defaults to .runner-watch/config.toml and is global. init writes that config and docs/preloop-surface.toml when they are missing.run always finishes by writing PR body files only. It does not call gh. Use pr without --dry-run to open the drafts.The binary is the runner-watch crate in the preloop workspace. From a checkout, cargo run -p runner-watch -- init.
PARAMETERS
--config file
Path to the runner-watch config. Default .runner-watch/config.toml. Global
COMMANDS
init [--force]
Write the default config and docs/preloop-surface.toml. --force overwrites bothwatch [--feed-url url]
Poll actions/runner releases and update state when a new tag appears. The default feed is the GitHub releases atom for actions/runnerdiff --from tag --to tag
Clone the two tags and write .runner-watch/delta.jsontriage [--no-agents]
Turn the delta into per-change TOML specs. --no-agents does not call the configured triage agent for unknown entriesimplement [--dry-run]
Invoke Codex over the generated specs. --dry-run writes prompts and does not invoke Codexreview [--dry-run]
Invoke Claude to review implementation diffs. --dry-run writes prompts onlyrecord-golden --runner version [--scenario name] [--non-interactive] [--target official]
Record a golden capture through the mitm worktree's record script. --target defaults to official, the only value. --non-interactive is forwarded to that script. --scenario limits the recordingconform --runner version --preloop-url url [--scenario name] [--cell name] [--skip-cargo-test] [--value-gate-strict]
Replay flows.jsonl from the golden directory for that runner version against a running preloop and compare responses. --cell selects a directory under the version (for example gh-official). --skip-cargo-test skips cargo test --workspace first. --value-gate-strict also fails on normalized response values; the default gate checks status and schema and only reports value diffscoverage [--runner version] [--routes-src file] [--strict]
Report golden coverage of implemented runner-facing routes. --runner defaults to the last reconciled version in .runner-watch/state.json. --routes-src defaults to crates/preloop-runner-server/src/routes.rs. --strict fails when a route has no golden coverage after the allowlist in .runner-watch/coverage-allow.txtflows-diff --left dir --right dir [--left-label text] [--right-label text] [--status-ignore substr] [--schema-gate substr] [--value-gate-except substr] [--json]
Compare two capture directories that each contain flows.jsonl. Labels default to reference and candidate. --status-ignore and --schema-gate are repeatable; a schema gate of an asterisk covers every endpoint. --json prints the machine-readable resultpr [--base branch] [--head branch] [--dry-run]
Create tiered draft PRs (critical, high, low) via gh pr create --draft, labeled protocol-sync and priority:critical, priority:high, or priority:low. --dry-run only writes the body files under .runner-watch/prsrun --from tag --to tag [--preloop-url url] [--no-agents] [--skip-implementation] [--skip-review] [--skip-cargo-test]
Run diff, triage, then implement and review unless skipped. Conformance runs only when --preloop-url is set; otherwise a skipped report is written. PR bodies are written with dry-run forced
CAVEATS
implement and review shell out to Codex and Claude unless --dry-run or --no-agents says not to. pr needs the gh CLI and a GitHub remote; run never opens those PRs. record-golden needs the mitm worktree named in the config. conform needs a preloop already listening at --preloop-url. This tool rewrites protocol-sync artifacts in the preloop checkout; it does not register a runner or execute a workflow.
HISTORY
runner-watch is the runner-watch crate in preloopdev/preloop, beside the preloop and preloop-runner binaries.
SEE ALSO
preloop(1), preloop-server(1), preloop-runner(1), gh(1), git(1), act(1)
