runthrough is a CLI that runs a repository's GitHub Actions workflows locally (in Docker or on the host), used to rehearse CI before pushing. Conventions live in CLAUDE.md; this file says what matters when reviewing a change here.
- It lies: a workflow that would fail on GitHub passes locally (or the reverse), because an expression,
if:, matrix, orneedsresult differs from GitHub's semantics, or the exit code does not reflect the job results. - It leaks or damages: a secret is printed unmasked, or a step writes into the user's real repository or host when it should be confined to the job's scratch directory.
Flag as Important only when a change can:
- Diverge from GitHub's expression semantics in
src/expr.rs(loose equality and coercion, case-insensitive comparison,&&/||returning operands,.*filters, status functions driven byCtx.failed/cancelled). - Change which jobs run or in what order: stage grouping and
-jclosure insrc/planner.rs, matrixinclude/exclude, the trigger filter insrc/main.rs, orif:/continue-on-error/fail-fasthandling insrc/runner.rs. - Let a secret reach stdout: any output path in
src/runner.rsthat does not go throughLogger::line, or a change tomaskinsrc/commands.rsor to how::add-mask::values are registered. - Mis-propagate step state:
GITHUB_OUTPUT/ENV/PATH/STATEfile handling inJobRun::exec, env precedence (runner → workflow → job → CLI--env→ step), or post steps not running in reverse order. - Write outside the job scratch root:
--bindmakes the workspace the user's real repository,copy_repoinsrc/actions.rscopies.git, andsrc/backend.rsrelies on the scratch dir being mounted at the same absolute path in the container. - Change CLI behaviour scripts depend on: flag names or defaults in
Cli(src/main.rs), exit codes (0ok,1job failed,2internal error), or the per-job summary line (✅ CI / test: success). - Break
make check(cargo check,cargo fmt --check,cargo clippy -- -D warnings, andcargo test, whosetests/e2e.rsasserts on stdout text).
Everything else is a Nit or is not posted.
A person reviews any change touching these, whatever the automated result:
src/commands.rs— holdsmask; a regression prints users' secrets to their terminal and CI logs.src/backend.rs— builds theruncommand line fordockerand Apple'scontainer(mounts,--entrypoint, options); a wrong mount exposes or modifies host paths.src/actions.rs— clones and executes third-party action code into the shared action cache and copies the user's repository; a mistake runs the wrong code or writes into the user's tree.src/servers.rs— listens on host ports (all interfaces for Apple containers) and writes uploaded caches and artifacts to disk; a path or bind mistake exposes or overwrites host files.tests/fixtures/— the e2e tests' only input; weakening a fixture silently removes coverage.
Do not review (generated, vendored, or lock files):
Cargo.lock— lockfile; review dependency changes inCargo.tomlinstead.
- At most 3 Nits per review, after every Important finding.
- Never flag what
rustfmtorclippy(default lints) already enforce.
- Every finding cites
file:lineand the concrete input or sequence that fails (a workflow snippet, an expression, a CLI invocation). No guesses: an unproven worry is a question, not a finding. - For semantics findings, state what GitHub Actions does for the same input and what
runthroughdoes instead. - A bug in lines this change did not touch is tagged Pre-existing, not charged to the author.
- Flag the class of bug once with every location, not one comment per line.
Start with the count: <n> Important, <n> Nit, <n> Pre-existing. When nothing needs fixing, say "Nothing to fix" and stop.
Rules promoted from repeated review comments, reverts and incidents. Each line names its source.
- None yet (2 commits, no reverts or fix history).