Plan: Merge trains as the gate — a staged, host-free battery on the 4xlarge runner, and a five-minute hook
- Archive record
- Status
- Context
- Scope
- Design
- Units — U1 ∥ U2 → U3 → U4
- U1 (w3) —
chore: a five-minute pre-push gate(in parallel with U2) - U2 (w5) —
refactor(devstack): a host-free compose project - U3 (w5) —
refactor(xtask): the battery as `cargo xtask cistages; the YAML as orchestration only` (closes #1739) - U4 (w3) —
chore(ci): merge trains on the 4xlarge are the merge gate (ADR-081)
- U1 (w3) —
- Files Touched
- Risks
- Verification
- Documentation Updates
- Review log
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
-
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.dockerignoreprobes);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’srun_devstack_battery: debris scan, fault-preflight, pre-warm, nextestintegration, 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 orcargo xtask validate, which becomes a thin sequencer over the same verbs with--profile fast|full. No stage shells out todocker composeby hand from YAML; no YAML step does what a verb does. -
What leaves xtask. Three YAML scripts re-implement verbs in shell:
secrets-policy(a bash/awk sops check:xtask lints sops-policyandxtask secrets checkexist),hooks-exec-check(file-mode check: a 4-line verb or nothing),docker-promote(a 12-service build-and-push loop: becomesxtask ci images --push). They move into the verbs. The opposite direction:validate’s visibility check (`check_visibility, aglabcall) and its signing-config check leave the battery (they are developer-machine checks, not properties of the tree) and becomecargo xtask doctor; the.ports.envreservation and reconciliation machinery (docker.rsreserve_ports:1326,write_ports_env:1682,reconcile_ports_env:2155;validate.rsreconciled_test_env:1460) is deleted with the host ports (design 3).check_visibilityandcheck_signingare at validate.rs:2520 and :2594. -
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_HOSTNAMEthe 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, andcargo xtask dev startprints them. Host-side callers (the battery’s nextest, Playwright, k6, ZAP, the SDK suites) run inside the project network: thebattery,e2eandauxstages 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. Sohost.docker.internal,extra_hosts,/etc/hosts, the iptables rules of ADR-080 D4 and.ports.envall go. Everyhost.docker.internalsite goes: Rust tests readTestConfig; e2e TypeScript readsCRAIG_E2E_*_URL, whichci e2esets 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 thedevprofile’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_checkoutkeeps 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_CHECKOUTgoes). -
The train pipeline.
workflow.rulesadmitsmerge_train. Stages:check→build→test→verify. Jobs:lint,clippy,unit(parallel,dhs-aws-autoscaler-docker.medium, 8 min each);build-testsandimages(parallel on the 4xlarge;imagespushes to$CI_REGISTRY_IMAGE/ci/<sha>);battery(4xlarge, DinD, consumes the image digests and the test-binary cache, 15–20 min);e2eandaux(parallel afterbattery, 4xlarge). Every job isallow_failure: falseonmerge_train; on a plainmerge_request_eventpipeline the devstack stages keep today’schanges:filter (early signal only).interruptible: trueeverywhere; a car’s pipeline is the whole DAG, about 35 minutes wall on a warm cache. Caches:cargoregistry +target/keyed by therust-toolchain+Cargo.lockhash,policy: pull-pushonmain,pullon cars. Erratum (2026-11-05): train and merged-results pipelines arrive as$CI_PIPELINE_SOURCE == "merge_request_event"(there is nomerge_trainsource);$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 adocker:dindservice 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 andcraig-toolsas sibling containers and declare noservices: [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-upfrom those digests,ci battery) ande2e(its ownci devstack-up,ci e2e,ci aux), the last two afterbuild. The nine stage verbs stay individually callable. On that runner/buildsis 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). -
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. -
Project settings flip after U4 merges, by API:
merge_pipelines_enabled,merge_trains_enabled,only_allow_merge_if_pipeline_succeedstrue;allow_merge_on_skipped_pipelineandmerge_trains_skip_train_allowedfalse. Landing becomesPUT …/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). -
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_TAGvariable, default the 4xlarge, settable tocma-runner-craigwithout a code change). -
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 atdevstack/hooks/pre-push; the maintainer copies it to.githooks/pre-push;xtask/src/githooks_tests.rspins 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.
-
--profile fast|full(defaultfull):fastruns, 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 theciunit 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 aconst 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 outsidefast(the range above contradicted the skip list), and [49] (source ownership from dep-info) is not in it. -
devstack/hooks/pre-pushper design 8, with a header naming the copy instruction and this plan; the pin test. -
Tests: a unit test that
fast’s step list is exactly its const; `the_installed_hook_is_the_published_hook. -
Verification:
time cargo xtask validate --profile fastwarm 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 fullvalidateon its MR. Erratum (2026-11-05): fullvalidatenever 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 asdevstack/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).
-
Compose per design 3: container-DNS defaults, no published ports outside
--profile dev, Keycloak’s hostname the container name,extra_hostsand thehost.docker.internalanchor deleted. -
craig-toolstarget: the toolchain, Playwright’s browsers, k6, the SDK runtimes; mountstarget/and the checkout read-only;cargo xtask dev exec — <cmd>runs a command in it on the project network.e2e,perf,security,sdk-testandtest --fault-gaterun their processes through it. (Local developers still run unit tests on the host; only devstack-facing processes move.) -
.ports.env,reserve_ports,reconcile_ports_env,reconciled_test_envand their tests go;TestConfigdefaults become the container names;CRAIG_TEST__*stays the override. -
require_primary_checkout→ project name from the checkout path; the allow-secondary env var goes. -
The
host.docker.internalcensus (29 files onmain, 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 testscrates/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; e2etests/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; productionservices/craig-intake/src/main.rs:244(the SAN) and the comments inservices/craig-intake/src/ui.rs:374andstatic/js/copy-helper.js:6; the generated.ports.envfiles (deleted).build/site/andtest-results/are build outputs, not sources. -
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 inxtask lintsover every tracked file butdocs/**andCHANGELOG.adoc, so a reintroduction in any language failsci lint); the full battery green throughcraig-toolson the maintainer’s host;cargo xtask dev start --profile devserves craig-web on the printed port (the behaviour, observed). -
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.
-
The nine stages per design 1, each
cargo xtask ci <stage> [--json], withvalidatesequencing 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. -
doctortakes the visibility and signing checks;secrets-policy’s shell becomes `xtask secrets policy;docker-promote’s loop becomes `ci images --push;hooks-exec-checkbecomes a lint inci lint. -
The YAML: the DAG of design 4 on today’s runners (
cma-runner-craigfor the devstack stages until U4), every jobscript: - cargo xtask ci <stage>plus artifacts;ci-integrationandci-testsare deleted; the scheduled jobs call the verbs they already call. Lines: about 1,280 → under 500. -
Tests (contract, over the parsed YAML and the verbs):
validate --profile full’s stage order equals the YAML DAG’s topological order (`needs:); everyscript:line of every job iscargo xtask <verb> …, an artifact move, or arelease-cli/antoracall from an allow-list held in the test, so a reintroduced shell step fails the test; every stage’s--jsonoutput round-trips; the real tree passes every stage. Erratum (2026-11-06): the step bodies stay invalidate.rs(eachci/<stage>.rscomposes them, labels unchanged); the gitleaks and.dockerignoreprobes run inimages, notlint, since thecheckjob’s runner has no Docker; source ownership runs inlint, sofaststays U1’s list; the scheduled stacks build from their own commit throughci devstack-upinstead of pullinglatest; caches arepull-pushon 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.
-
A first MR commit adds a
runner-smokejob on the 4xlarge (docker info,nproc,free -g,df -h, a 10 GBfallocate) 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. -
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).
-
Tests (contract, over the parsed YAML and nextest.toml): every
test/verifyjob is blocking onmerge_trainand carries nochanges:there; the integration profile has no retries; the runner tag comes from the variable. -
Verification: a car lands through the train;
PUT …/mergewithoutauto_mergeis 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 setsretries, so nextest’s default of 0 applies. U4 deletesdevstack/hooks/pre-push-legacyand 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 |
|---|---|
|
The published fast hook and its byte-identity pin (U1) |
|
|
|
Container-DNS parameters, the |
|
Host ports and |
|
Container-name defaults; no |
|
The nine stages; the checks that leave the battery (U3) |
|
Orchestration only: stages, rules, tags, caches, artifacts (U3); the train and the 4xlarge (U4) |
|
Profile comments; |
|
The reversal, the landing procedure, the devstack’s new shape, the stages, the override (U2–U4) |
|
One |
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
validaterun recorded on the MR until then (U1’s verification line), andci-integrationkeeps 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 aci lintfailure.
Verification
-
Each unit passes the battery of its day: U1 and U2 the full local
validate; U3 and U4 thecistages on CI and locally. -
U2: the whole battery green through
craig-toolswith no published port but thedevprofile’s;git grep host.docker.internalis empty outside ADR history. -
U3:
.gitlab-ci.ymlunder 500 lines; noscript:line runs compose, nextest or cargo build directly; the DAG order equals `validate --profile full’s. -
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, |
2 |
gemini-4-argon |
FLAGS (the same P1/P2 points, plus test categories and the unnamed fast-step list); fixed in the draft |