Skip to content
Like what we’re building? Star on GitHub

Push to main — operator runbook ​

The operator direct-landing lane is admin-only. It requires the exhaustive local gate (task ci:gate and its checked-in mapping of required CI jobs), a converged review loop and an integration train. If that target or mapping is absent at the checkout's SHA, the lane is closed: task check alone does not replace race, vendor and Mongo conformance checks. The separate incident bypass retains its own requirements.

A parked revi/review is its own, narrower opening and does not go through this runbook: when the gate is paused on an exhausted LLM quota and every other required check is green on the PR — under the ci:full label, since a light PR's run skips race-shard and test-e2e — the operator merges THAT PR with the parked gate bypassed: no push to main, and after task ci:gate (not task check alone) on the PR merged into current main, the tree no CI run tested. It also owes the converged local adversarial loop standing in for the reviewer, and the trailers that make the bypass greppable: the parked-gate merge.

Prepare a fresh worktree ​

Use a dedicated worktree, confirm its branch and base SHA, and keep all generated files and scratch evidence there. Provision dependencies before starting a timed gate; setup downloads are not test egress.

sh
devbox run -- pnpm -C studio install --prefer-offline
# Stage intended new/deleted documentation: generators enumerate git ls-files.
devbox run -- task gen
devbox run -- task corpus:reading
# Inspect generated diffs before validation.
devbox run -- task check

A doc edit needs no re-pin of the reading golden. Re-pin only on the check's word, never as a routine step:

  • the check reports the golden under its floor: devbox run -- task corpus:reading -- --write;
  • the check names moved readings and the change is a deliberate reader change (internal/mdcode): devbox run -- task corpus:reading -- --write --accept-moved, then review those lines. On a change that is not a reader change, a moved reading is the regression the check exists to catch.

task ci:gate fetches the Helm chart's untracked sub-chart archives itself, before its first member (its map's prepare, one network step the first time); a fetch that fails refuses the gate, exit 2 (#3892).

--prefer-offline uses the package cache where possible; a cold cache still needs an explicitly provisioned setup network. A gate run keeps egress denied by default. A test that genuinely needs an external service names its target, endpoint and explicit opt-in; opening all gate traffic is not a hang fix. Missing dependencies, sandbox capabilities and credentials are named refusals, not invisible success. Record machine effects in the flake register.

Review, integrate, push, witness ​

  1. Give peers notice. Before the first push of a wave, notify sessions with unpushed branches: each main advance costs them a rebase. Identify the scope, base and intended wave. A wave whose PRs are open trains the exact set — the extended train lane, which disarms their auto-merge and lands them without waiting for their CI — never an admin merge beside the wave's own auto-merging PRs (one lane per burst).
  2. Review the exact diff. Run the adversarial loop, verify findings, fix their class and re-attack the fixes. An explicitly operator-authorized self-review + admin bypass records that it is self review, its mutations and residual findings; it is not a fabricated peer review or Revi verdict. It does not waive the local gate or train. Existing PRs still owe revi/review under the normal merge contract, save where a parked gate opens the narrower admin merge (below) or a burst lands end to end (one lane per burst).
  3. Integrate before taking the verdict. Rebase onto current origin/main in the integration branch. Run the complete local gate, task ci:gate, on that integrated tree — task check alone runs nothing under -race — retaining each member's log, exit code, SHA and machine class. Never hide an exit code behind a pipe. Fix a red train before pushing; an advance of main requires reintegration and a fresh verdict.
  4. Carry the evidence in trailers. The landing commit contains Adversarial-Rounds: (actual count, estimate and ceiling), Adversarial-Model: (actual reviewer, explicitly marked self when relevant) and Landing-Train: (train and evidence directory). Use the loop's trailer format; do not invent counts or a green check for a queued job.
  5. Let the authorized operator land. Push the reviewed train to main without force, respecting the lane's preconditions. Verify the landed SHA and follow the CI witness runs. Queued, missing and cancelled runs are unverified; a red main takes priority until it is green.