Plan: Merge trains as the gate — a staged, host-free battery on the 4xlarge runner, and a five-minute hook

Archive record

5 MRs across 2026-11-05 → 2026-11-06: !2154 (U1: the fast pre-push hook, validate --profile fast), !2156 (U2: the host-free devstack by container DNS, craig-tools), !2157 (U3: the battery as cargo xtask ci <stage> behind a car DAG; YAML orchestration only), !2158 (#2931: registry images by digest, BuildKit and cargo caches, the 4xlarge for the stack jobs), !2159 (U4: merge trains are the gate, ADR-086). Proof: !2162 landed through the train.

Status

Done (2026-11-06) — U1–U4 merged (!2154, !2156, !2157, !2159); merge trains on the 4xlarge are the gate (ADR-086), and the first car landed through the train (!2162)

Epic: &111 (gate integrity and tooling audit).
Issues: U1 #2921, U2 #2922, U3 #1739 (the ci-integration decomposition), U4 #2923; all under &111.
Branches: chore/fast-pre-push, refactor/devstack-host-free, refactor/xtask-ci-stages, chore/ci-merge-trains.

A Design + Scope plan: GitLab owns tracking; the plan freezes when the first unit starts.

Context

The gate today. The merge gate is the local pre-push hook (.githooks/pre-push, 246 lines), ruled in ADR-080 § D3 (docs/modules/ROOT/pages/adrs/adr-080-ci-server-side-test-gate.adoc) and operated per known-issues.adoc § Landing an MR (lines 144–200: push, then PUT …/merge; never auto-merge). It runs cargo xtask validate --skip-docker, then cargo deny, cargo xtask e2e, the doc gates, perf --profile smoke, security --skip-zap --skip-fuzz, sdk-test and e2e --degraded: 23–41 minutes per push on the maintainer’s host, which serialises every car behind one devstack.

validate is one function of 70 steps (xtask/src/cmd/validate.rs, ~4,500 lines; the step list is in that file’s steps.mark labels). By class: about 55 pure lints that each have a standalone cargo xtask lints <name> or verb (under a minute combined); fmt, clippy (50 s), cargo machete; the doc gates (now 11 s after #2362); the test-binary build inside the contested-surface census (270 s); two Docker probes (gitleaks, the .dockerignore canary); and the devstack phase: refresh, debris scan, fault-preflight, verify-seed, template pre-warm, nextest --profile integration (510–620 s), the invariants gate and the coverage-matrix gate. cargo xtask test --fault-gate runs that devstack phase alone against a running stack (run_devstack_battery_standalone, validate.rs:1724, which calls run_devstack_battery, validate.rs:1895).

CI duplicates the bring-up in YAML. .gitlab-ci.yml (1,280 lines) carries ci-tests (validate --skip-devstack --skip-docker, ~22 min) and ci-integration (lines 415–560, allow_failure: true, mean 51 min): a bash script that mints a field key from /dev/urandom, writes host.docker.internal into /etc/hosts, inserts four iptables rules (ADR-080 D4), builds and starts the stack with raw docker compose (not cargo xtask dev, which the devstack rules require), then calls xtask test --fault-gate, reseeds with raw compose, and runs e2e, sdk-test, security and perf one after another, all in one 2-hour job. Both run on cma-runner-craig, a fleeting bare instance executor chosen because the shared docker-executor pool ran out of disk linking the test binaries (#1645) and because the devstack assumes it owns the host. Of its last five runs, one died runner_interrupted and one failed a single flaky leg. Retries are banned by ruling (.config/nextest.toml, #1165: a retry leaves state that poisons later tests).

The host coupling. The OIDC issuer is http://host.docker.internal:8180/realms/craig (docker-compose.yml:37, KC_HOSTNAME at :373), resolved inside containers by extra_hosts: host-gateway (:1740) and on the host by an /etc/hosts line; xtask/src/docker.rs reserves ephemeral host ports for 27 published services (reserve_ports, :1326; write_ports_env / render_ports_env, :1682 / :1714; reconcile_ports_env, :2155) and writes .ports.env, which craig_test_lib::TestConfig::from_env (crates/craig-test-lib/src/config.rs:72), the e2e container (tests/e2e/playwright.config.ts:79, :293, CRAIG_E2E_*_URL) and the SDK suites read. host.docker.internal appears in 29 non-doc files (the census is in U2): compose, the Keycloak realm’s redirect URIs, 45 sites in docker.rs, xtask’s perf.rs and security.rs, 7 Rust test files, 10 e2e TypeScript files, the ZAP auth hook, and two production sites (services/craig-intake/src/main.rs:244, a self-signed-TLS SAN behind a dev feature, and the intake copy-helper’s secure-context comment). A docker-executor job has no host: its "host" is the docker:dind service, reachable as docker on the job network, and it cannot edit the runner’s /etc/hosts or iptables.

The new runner. Group runner 58561694, tag dhs-aws-autoscaler-docker-4xlarge, online, 19.4.1, amd64, 1 TB disk, visible to the project, untested here. The repo already runs Docker-in-Docker on this family (cluster-tests, .gitlab-ci.yml:956–1000: image: docker:27, services: [docker:27-dind]).

Rulings (maintainer, 2026-11-05): the hook shrinks now, in parallel; no retries on the train; the new hook text is written outside .githooks/ and the maintainer copies it in; xtask holds what is architecturally xtask’s and loses what is not; the devstack is decoupled properly (the issuer and every service URL become compose-project parameters on one network with container DNS), so the battery runs identically on a laptop, under dind, or on a VM.

Scope

In scope: the four units below: the fast hook; the host-free devstack; the staged cargo xtask ci verbs with the YAML reduced to stages, rules, tags and artifacts; merge trains on the 4xlarge as the gate, with ADR-081, the landing procedure and the AGENTS.md override.

Out of scope: changing what any test asserts; the scheduled jobs' content (pentest, perf-load/stress, policy-drift, cluster-tests, triage) beyond retargeting them onto the ci verbs where one exists; the cache node, warm runners and a fixer agent (issues after the train runs); changelog fragments (its own issue); GitLab’s own SAST / secret-detection / dependency-scanning templates (they stay as included templates).

Design

  1. A battery is a DAG of pure stages, and xtask owns the stages, not the orchestration. Each stage is a cargo xtask ci <stage> verb that reads the checkout (and, for the devstack stages, a stack it is pointed at) and exits 0 or non-0 with a timing table. The stages: lint (fmt, machete, the ~55 pure lints and gates, the doc gates, api-docs --check, the gitleaks and .dockerignore probes); clippy; unit (nextest --profile ci --lib --bins); build-tests (the nextest list / test-binary build, which the devstack stage reuses from cache); images (the service images, serial per #1347, pushed to the job’s registry namespace by digest); devstack-up (compose from those digests, migrate, seed, verify-seed; prints the stack’s URL env); battery (today’s run_devstack_battery: debris scan, fault-preflight, pre-warm, nextest integration, invariants, coverage matrix); e2e (Playwright, then --degraded); aux (sdk-test, security regression, perf smoke). The orchestration (which stage after which, on which runner, with what artifacts) is GitLab’s job: the YAML, and locally the hook or cargo xtask validate, which becomes a thin sequencer over the same verbs with --profile fast|full. No stage shells out to docker compose by hand from YAML; no YAML step does what a verb does.

  2. What leaves xtask. Three YAML scripts re-implement verbs in shell: secrets-policy (a bash/awk sops check: xtask lints sops-policy and xtask secrets check exist), hooks-exec-check (file-mode check: a 4-line verb or nothing), docker-promote (a 12-service build-and-push loop: becomes xtask ci images --push). They move into the verbs. The opposite direction: validate’s visibility check (`check_visibility, a glab call) and its signing-config check leave the battery (they are developer-machine checks, not properties of the tree) and become cargo xtask doctor; the .ports.env reservation and reconciliation machinery (docker.rs reserve_ports :1326, write_ports_env :1682, reconcile_ports_env :2155; validate.rs reconciled_test_env :1460) is deleted with the host ports (design 3). check_visibility and check_signing are at validate.rs:2520 and :2594.

  3. The devstack is host-free. One compose network; every URL a service or test needs is a compose-project parameter with a container-DNS default: OIDC_ISSUER=http://keycloak:8080/realms/craig, KC_HOSTNAME the same, CRAIG_TEST__<SVC>_URL=http://craig-<svc>:<port>. Nothing publishes a host port by default; the browser-facing profile (--profile dev) publishes Keycloak, craig-web, craig-portal and intake on fixed localhost ports for a developer’s browser, and cargo xtask dev start prints them. Host-side callers (the battery’s nextest, Playwright, k6, ZAP, the SDK suites) run inside the project network: the battery, e2e and aux stages run their processes in a tools container attached to the network (craig-tools, a Dockerfile target holding the toolchain and the test binaries mounted from the cache), locally and on CI alike. So host.docker.internal, extra_hosts, /etc/hosts, the iptables rules of ADR-080 D4 and .ports.env all go. Every host.docker.internal site goes: Rust tests read TestConfig; e2e TypeScript reads CRAIG_E2E_*_URL, which ci e2e sets to the container names; the ZAP hook and k6 scripts take their base URL from the verb that runs them; the realm’s redirect URIs name the dev profile’s localhost ports and the container names; intake’s self-signed SAN list drops it. The gate over all of it is a grep over every tracked file, not a Rust-only one (U2). require_primary_checkout keeps its meaning (one stack per checkout) but keys the compose project on the checkout path hash, so a worktree can run its own stack when asked (CRAIG_XTASK_ALLOW_SECONDARY_CHECKOUT goes).

  4. The train pipeline. workflow.rules admits merge_train. Stages: check → build → test → verify. Jobs: lint, clippy, unit (parallel, dhs-aws-autoscaler-docker.medium, 8 min each); build-tests and images (parallel on the 4xlarge; images pushes to $CI_REGISTRY_IMAGE/ci/<sha>); battery (4xlarge, DinD, consumes the image digests and the test-binary cache, 15–20 min); e2e and aux (parallel after battery, 4xlarge). Every job is allow_failure: false on merge_train; on a plain merge_request_event pipeline the devstack stages keep today’s changes: filter (early signal only). interruptible: true everywhere; a car’s pipeline is the whole DAG, about 35 minutes wall on a warm cache. Caches: cargo registry + target/ keyed by the rust-toolchain + Cargo.lock hash, policy: pull-push on main, pull on cars. Erratum (2026-11-05): train and merged-results pipelines arrive as $CI_PIPELINE_SOURCE == "merge_request_event" (there is no merge_train source); $CI_MERGE_REQUEST_EVENT_TYPE (merge_train | merged_result | detached) tells them apart, so the blocking rules key on $CI_MERGE_REQUEST_EVENT_TYPE == "merge_train". The 4xlarge’s job containers are privileged, but a docker:dind service does not start there (it fails on the service and network path); its jobs reach the VM’s own Docker through a mounted socket, so the devstack stages run the stack and craig-tools as sibling containers and declare no services: [docker:dind] (#2923, runner smoke). Erratum (2026-11-06): fat jobs, not one job per stage. Each job pays three to four minutes of fixed cost (a fresh VM, the toolchain, the cache restore) and the twelve 4xlarge hosts are shared with another project, so the car pipeline is four jobs: check (ci lint, ci clippy, ci unit; medium runner), build (ci build-tests, ci images, which pushes the images by digest to $CI_REGISTRY_IMAGE/ci/<sha> and writes the digests to an artifact), battery (ci devstack-up from those digests, ci battery) and e2e (its own ci devstack-up, ci e2e, ci aux), the last two after build. The nine stage verbs stay individually callable. On that runner /builds is a per-job Docker volume, so each stack stage first re-runs itself from the volume’s VM path under a bind mount (#1739, #2923).

  5. No retries (ruling): the integration profile keeps retries = 0; a flake fails the car; the car’s author files the flake issue and fixes it. ADR-081 names the tripwire: a flake rate over one car in ten over a rolling twenty.

  6. Project settings flip after U4 merges, by API: merge_pipelines_enabled, merge_trains_enabled, only_allow_merge_if_pipeline_succeeds true; allow_merge_on_skipped_pipeline and merge_trains_skip_train_allowed false. Landing becomes PUT …/merge?auto_merge=true; a direct merge is a 405, the normal and documented state. known-issues.adoc § Landing an MR, `contributor-onboarding.adoc’s guard patterns and AGENTS.md’s 2026-11-01 override are rewritten (the override by the agent at the maintainer’s instruction in this plan).

  7. ADR-081 supersedes ADR-080 § D3 and D4 (D1 and D2 stand: one battery body, run server-side). Tripwires: car wall time over 60 min; flake rate (design 5); the 4xlarge offline for an hour (fallback: CI_BATTERY_RUNNER_TAG variable, default the 4xlarge, settable to cma-runner-craig without a code change).

  8. The fast hook. cargo xtask validate --profile fast = ci lint --quick (fmt + the sub-second lints) + ci clippy + ci unit; about 5 minutes warm. The hook body: commit-signature verification (kept verbatim), validate --profile fast, git lfs pre-push. Its text lives at devstack/hooks/pre-push; the maintainer copies it to .githooks/pre-push; xtask/src/githooks_tests.rs pins the two byte-identical (red until the copy, named in U1’s MR).

Units — U1 ∥ U2 → U3 → U4

Weights: 1 trivial · 2 small · 3 medium · 5 large · 8 program-sized. One unit = one MR = one issue; each adds its CHANGELOG.adoc entry and updates the pages named.

U1 (w3) — chore: a five-minute pre-push gate (in parallel with U2)

Files: xtask/src/cmd/validate.rs (the --profile flag and a fast arm; no step moves yet), devstack/hooks/pre-push (new), xtask/src/githooks_tests.rs, docs/modules/ROOT/pages/local-dev.adoc, quality-gates.adoc § battery.

  1. --profile fast|full (default full): fast runs, in order, steps [1] fmt, [4]–[25] and [30]–[45] (the pure lints, each 0–5 s on the 2026-11-05 timing tables), [47] machete, [48] clippy and the ci unit nextest (phase_ci_unit_tests, validate.rs:1447). It skips [2]–[3] (developer-machine checks), [26]–[29] and [31] (the test-binary build and the migration audits, 270 s), [46] and [52] (Docker probes), [50]–[51] (the doc gates and api-docs, which the train runs) and everything from [53]. The list is a const FAST_STEPS: &[&str] of step labels; a unit test asserts a fast run marks exactly those labels. Erratum (2026-11-05): steps [30] (nextest filter terms, which needs [29]'s test-binary list) and [31] are outside fast (the range above contradicted the skip list), and [49] (source ownership from dep-info) is not in it.

  2. devstack/hooks/pre-push per design 8, with a header naming the copy instruction and this plan; the pin test.

  3. Tests: a unit test that fast’s step list is exactly its const; `the_installed_hook_is_the_published_hook.

  4. Verification: time cargo xtask validate --profile fast warm on the maintainer’s host under 6 min; a push with a clippy error refused. Until U4’s flip, every car the agent lands records a full validate on its MR. Erratum (2026-11-05): full validate never ran the old hook’s extra stages (cargo deny, e2e, the degraded matrix, sdk-test, the security regression, perf smoke, cargo doc), so the by-hand battery until U4 is the old hook itself, kept as devstack/hooks/pre-push-legacy (U4 deletes it); the two xtask tests that pinned the installed hook’s text (the_pre_push_tail_runs_the_degraded_stage_last, the doc-gate twin) read that file instead.

U2 (w5) — refactor(devstack): a host-free compose project

Files: docker-compose.yml, docker-compose.fault.yml, Dockerfile (the craig-tools target), xtask/src/docker.rs, xtask/src/devstack.rs, xtask/src/workspace.rs, xtask/src/cmd/{dev,e2e,perf,security, sdk_test,test}.rs, crates/craig-test-lib/src/config.rs, devstack/keycloak/craig-realm.json, tests/e2e/playwright.config.ts, tests/security/zap-auth-hook.js, services/craig-intake/src/main.rs (the SAN list) and the host.docker.internal census below, docs/modules/ROOT/pages/{local-dev,devstack,testing-reference}.adoc, ADR-080 (a note on D4).

  1. Compose per design 3: container-DNS defaults, no published ports outside --profile dev, Keycloak’s hostname the container name, extra_hosts and the host.docker.internal anchor deleted.

  2. craig-tools target: the toolchain, Playwright’s browsers, k6, the SDK runtimes; mounts target/ and the checkout read-only; cargo xtask dev exec — <cmd> runs a command in it on the project network. e2e, perf, security, sdk-test and test --fault-gate run their processes through it. (Local developers still run unit tests on the host; only devstack-facing processes move.)

  3. .ports.env, reserve_ports, reconcile_ports_env, reconciled_test_env and their tests go; TestConfig defaults become the container names; CRAIG_TEST__* stays the override.

  4. require_primary_checkout → project name from the checkout path; the allow-secondary env var goes.

  5. The host.docker.internal census (29 files on main, every one changed or deleted here): docker-compose.yml; .gitlab-ci.yml; devstack/keycloak/craig-realm.json (2 redirect-URI entries); xtask/src/docker.rs (45), xtask/src/cmd/perf.rs (2), xtask/src/cmd/security.rs (5); Rust tests crates/craig-api/tests/{fault/degradation,request_claims_battery}.rs, crates/craig-auth/src/oidc_discovery.rs (test fixtures), crates/craig-test-lib/src/csp.rs (a doc comment), services/craig-{cases,financial,placement}/ tests/api/tx_live_http.rs, services/craig-intake/src/router_lost_response_replay_tests.rs; e2e tests/e2e/lib/{keycloak-admin,ssa-fixture,toxiproxy}.ts, tests/e2e/lib/given/{backpay,context}.ts, tests/e2e/specs/{intake-embedded-ui-shines,intake-keygen-signed,intake-person-link,intake-review,portal-edge}.spec.ts; tests/security/zap-auth-hook.js; production services/craig-intake/src/main.rs:244 (the SAN) and the comments in services/craig-intake/src/ui.rs:374 and static/js/copy-helper.js:6; the generated .ports.env files (deleted). build/site/ and test-results/ are build outputs, not sources.

  6. Tests: the_compose_file_publishes_no_port_outside_the_dev_profile (contract; parses the YAML); nothing_outside_the_adrs_names_the_host_gateway (contract; a grep gate in xtask lints over every tracked file but docs/** and CHANGELOG.adoc, so a reintroduction in any language fails ci lint); the full battery green through craig-tools on the maintainer’s host; cargo xtask dev start --profile dev serves craig-web on the printed port (the behaviour, observed).

  7. Risk (fail-closed): the biggest unit; it touches every devstack-facing xtask verb. A verb that cannot reach the stack errors at its first connection, since no host URL remains to fall back to; never silently. It lands behind U1’s fast hook with the full battery run by hand, and U3 depends on it.

U3 (w5) — refactor(xtask): the battery as `cargo xtask ci stages; the YAML as orchestration only` (closes #1739)

Files: xtask/src/cmd/ci/ (new: mod.rs, one file per stage), xtask/src/cmd/validate.rs (becomes the local sequencer; the step bodies move into the stages), xtask/src/cmd/doctor.rs (new), xtask/src/cmd/secrets.rs, xtask/src/main.rs (the ci and doctor verbs), .gitlab-ci.yml, .config/nextest.toml (profile comments), docs/modules/ROOT/pages/{quality-gates,testing-reference,known-issues, local-dev}.adoc.

  1. The nine stages per design 1, each cargo xtask ci <stage> [--json], with validate sequencing them (--profile full = all nine against the local stack, fast = U1’s three). The step labels and timing table survive per stage so the quality-gates page’s step references stay true.

  2. doctor takes the visibility and signing checks; secrets-policy’s shell becomes `xtask secrets policy; docker-promote’s loop becomes `ci images --push; hooks-exec-check becomes a lint in ci lint.

  3. The YAML: the DAG of design 4 on today’s runners (cma-runner-craig for the devstack stages until U4), every job script: - cargo xtask ci <stage> plus artifacts; ci-integration and ci-tests are deleted; the scheduled jobs call the verbs they already call. Lines: about 1,280 → under 500.

  4. Tests (contract, over the parsed YAML and the verbs): validate --profile full’s stage order equals the YAML DAG’s topological order (`needs:); every script: line of every job is cargo xtask <verb> …, an artifact move, or a release-cli / antora call from an allow-list held in the test, so a reintroduced shell step fails the test; every stage’s --json output round-trips; the real tree passes every stage. Erratum (2026-11-06): the step bodies stay in validate.rs (each ci/<stage>.rs composes them, labels unchanged); the gitleaks and .dockerignore probes run in images, not lint, since the check job’s runner has no Docker; source ownership runs in lint, so fast stays U1’s list; the scheduled stacks build from their own commit through ci devstack-up instead of pulling latest; caches are pull-push on cars until the cache node.

U4 (w3) — chore(ci): merge trains on the 4xlarge are the merge gate (ADR-081)

Files: .gitlab-ci.yml (tags, merge_train rules, allow_failure, caches, CI_BATTERY_RUNNER_TAG), docs/modules/ROOT/pages/adrs/adr-081-merge-trains-are-the-gate.adoc (new), adr-080-…adoc (status), known-issues.adoc § Landing an MR, contributor-onboarding.adoc, AGENTS.md, CHANGELOG.adoc.

Erratum (2026-11-06): the stack jobs' runner default flips to the 4xlarge in #2931’s MR, not here. On cma-runner-craig that car’s build sat queued for 24 minutes, and the 4xlarge was already proven (#2923). U4 keeps the train rules, the blocking flags, the ADR and the settings flip.

  1. A first MR commit adds a runner-smoke job on the 4xlarge (docker info, nproc, free -g, df -h, a 10 GB fallocate) and runs the U3 DAG’s devstack stages there under a label; its result (executor, wall time) goes on the issue before the second commit retargets the stages for good and deletes the smoke job.

  2. Design 4’s rules and blocking flags; design 7’s ADR; design 6’s docs. Merge under the old procedure, then flip the settings (design 6) and land the next car through the train as the proof (MR, train pipeline id, wall time on the issue).

  3. Tests (contract, over the parsed YAML and nextest.toml): every test/verify job is blocking on merge_train and carries no changes: there; the integration profile has no retries; the runner tag comes from the variable.

  4. Verification: a car lands through the train; PUT …/merge without auto_merge is 405; a car with a failing leg is dropped from the train and its MR stays open; the 4xlarge’s wall time for the whole DAG is recorded. Erratum (2026-11-06): ADR-081 was already taken (custody episodes), so the ADR is ADR-086, adrs/adr-086-merge-trains-are-the-gate.adoc; read every "ADR-081" in this plan as ADR-086. The runner smoke ran ahead of U4 (MR !2153, pipeline 3034044930, results on #2923), and the U4 MR’s own pipeline runs the stack jobs on the 4xlarge, so U4 has no separate smoke commit. The required jobs outside the car DAG (secrets-policy, cargo-audit, cargo-deny, docs-xref-check, docs-content-lints) keep their path filters, since each filter is the job’s inputs, and a contract test holds them never to allow failure on a train. The no-retries pin also reads [profile.default]: no table sets retries, so nextest’s default of 0 applies. U4 deletes devstack/hooks/pre-push-legacy and the degraded-stage test that read it; the doc-gate twin test becomes a pin of the gate’s own args, flags and scrub. `CONTRIBUTING.adoc’s hook and MR steps change with the landing procedure.

Files Touched

File Change

devstack/hooks/pre-push, xtask/src/githooks_tests.rs

The published fast hook and its byte-identity pin (U1)

xtask/src/cmd/validate.rs

--profile fast|full (U1); becomes the sequencer over ci stages (U3)

docker-compose.yml, docker-compose.fault.yml, Dockerfile

Container-DNS parameters, the dev publishing profile, the craig-tools target (U2)

xtask/src/{docker,devstack,workspace}.rs, xtask/src/cmd/{dev,e2e,perf,security,sdk_test,test}.rs

Host ports and .ports.env deleted; dev exec; processes run on the project network (U2)

crates/craig-test-lib/src/config.rs, the U2 census’s files

Container-name defaults; no host.docker.internal (U2)

xtask/src/cmd/ci/*, xtask/src/cmd/{doctor,secrets}.rs

The nine stages; the checks that leave the battery (U3)

.gitlab-ci.yml

Orchestration only: stages, rules, tags, caches, artifacts (U3); the train and the 4xlarge (U4)

.config/nextest.toml

Profile comments; retries = 0 pinned as a ruling (U3)

docs/modules/ROOT/pages/adrs/adr-081-…adoc, adr-080-…adoc, known-issues.adoc, contributor-onboarding.adoc, local-dev.adoc, devstack.adoc, testing-reference.adoc, quality-gates.adoc, AGENTS.md

The reversal, the landing procedure, the devstack’s new shape, the stages, the override (U2–U4)

CHANGELOG.adoc

One === Changed entry per unit

Risks

  • U2 breaks a devstack-facing verb the battery does not exercise (a dev sql, a scheduled job’s bring-up). Fail-closed: the verb errors at its first connection, since no host URL remains to fall back to. Mitigation: each verb is listed in U2 and run once by hand on the maintainer’s host; the scheduled jobs are retargeted in U3 and their first scheduled run after U3 is watched.

  • The 4xlarge’s docker executor cannot run the dind battery (resource limits, a seccomp profile). Fail-closed: the smoke job and the battery job fail; nothing merges on their account. Mitigation: U4’s smoke commit measures it before the stages move; the fallback is the variable’s cma-runner-craig, on which U3’s DAG already runs.

  • Flakes fail cars (one in five runs today). Fail-closed by ruling: a flake drops the car; each is an issue; the tripwire names the rate at which the ruling is revisited.

  • A window with a weaker local gate (U1 lands first). Fail-open for the local hook alone: a devstack regression passes the hook until U4’s flip. Mitigation: the agent’s cars keep a full validate run recorded on the MR until then (U1’s verification line), and ci-integration keeps running as the detector.

  • Throughput: one car per ~35 min pipeline, off the maintainer’s host. Not a failure mode; the pure stages parallelise now, the devstack stages after the cache node (out of scope).

  • A YAML step quietly regrows (someone adds a shell step). Silent by nature, so U3’s contract test over every script: line turns it into a ci lint failure.

Verification

  1. Each unit passes the battery of its day: U1 and U2 the full local validate; U3 and U4 the ci stages on CI and locally.

  2. U2: the whole battery green through craig-tools with no published port but the dev profile’s; git grep host.docker.internal is empty outside ADR history.

  3. U3: .gitlab-ci.yml under 500 lines; no script: line runs compose, nextest or cargo build directly; the DAG order equals `validate --profile full’s.

  4. U4: the train lands a car; direct merge is 405; a failing car is dropped; the DAG’s wall time on the 4xlarge is on the issue.

Documentation Updates

  • local-dev.adoc, quality-gates.adoc (U1, U3); devstack.adoc, testing-reference.adoc (U2, U3)

  • ADR-081; ADR-080 status; known-issues.adoc § Landing an MR; contributor-onboarding.adoc; AGENTS.md (U4)

  • CHANGELOG.adoc == Unreleased, every unit

  • Delivery: at approval, file U1/U2/U4’s issues under &111 and write their numbers into § Status; each unit’s MR carries Closes #N; after each merge, one note with the merge SHA on the issue; U4’s note carries the settings flip’s API responses and the first train car’s pipeline id.

Review log

Round Vendor Resolved model Verdict

1

Anthropic

claude-fable-5-1

FLAGS (P1 risk modes and unnamed issues; P2 stale line refs, the host-gateway census, doctor.rs not new); fixed in the draft

2

Google

gemini-4-argon

FLAGS (the same P1/P2 points, plus test categories and the unnamed fast-step list); fixed in the draft

Edit this page · latest