Machine-dependent tests — annotate, measure, re-check
Record each machine-dependent failure: test, machine, evidence, disposition and re-check date. Keep assertions; a missing prerequisite means unverified, not green. Record rerun timing beside the first failure. Fix the class and prove a reverted fix fails. Fixtures own scratch directories, HOME, config and children; see hermetic gates.
Quarantine
A ticketed flake that keeps costing reruns leaves the gate: a row of scripts/ci/test-quarantine.tsv (package, test, open ticket) makes every gating go test skip it, and the nightly test-quarantine workflow runs only those tests, plain and under -race, red on a failure or a closed ticket. The fix removes the row. Keep the list small. On main, main-watch files the ticket and the row itself when a rerun passes every failed job; a skipped one is a regression (merge policy).
Register
| Test / check | Machine class | Evidence (log / SHA) | Disposition | Re-check |
|---|---|---|---|---|
| Huge tool values in the delegate run log | Loaded ARC race runner | #3412: 3.059 s against a 3 s ceiling | Count bytes entering the real redactor for tool inputs and success/error results. Whole-value and skipped-redactor mutants fail. Proof boundary. | 2026-11-19, and on run-log redaction changes |
TestFmtRefusesAFileASaveHoldsAndFormatsTheRest | Loaded local train | #3338: both free and held files refused | Real files and locks in virtual time; keep the 300 ms deadline and 10 s watchdog. Dropping the context or the free-file write fails. Proof boundary. | 2026-11-19, and on formatter lock changes |
| WebSocket unsubscribe/close | Concurrent cleanup | #3013: 5/100 under race | Cancel and join producers before cleanup. Evidence. | Stream fixture changes |
| Native Kubernetes Pi Close witness | Supervisor receives group TERM before the host | #2945: stop host, cancel, resume; Bubblewrap killed it before client cleanup | Supervisor ignores TERM/INT; Go host handles them. Keep read-only mounts and parent-death cleanup. Scheduled witness passes; Pi SIGKILL mutant leaks the plugin. | 2026-11-12; fixture or cancellation changes |
| Real Pi smoke and RPC fixtures | Operator agent directory contains extensions | #3178: an installed ask_user extension conflicts with the test extension; ambient MCP policy also refuses calls | requirePiBinary owns both agent-directory overrides per scenario. TestPiBinaryFixtureOwnsAgentDirectories checks both precedence paths, cleanup and untouched operator files; the full real-binary family is replayed under two canary operator profiles whose extensions must remain unread, including a direct native session. No suite-wide override: environment-precedence tests require the variables absent. | 2026-11-11, and on Pi fixture changes |
| Background wrap-up take | Loaded host | Proof and fix | Read barrier; no deadline change | 2026-11-11 |
TestDetectResolvesNoKubectlUnderAPlantedPATH | ARC namespace mount | T41 6cedc5599; audit/proof | Pin an owned absent namespace path; unpinning fails in a simulated pod. | 2026-11-10; detection changes |
openapi:check:dry | Concurrent worktrees | #3037: a passing check restored another tree’s global /tmp backups | Generate privately and compare with the index; never write or restore checkout files. Pipe-ordered worktrees and original symlink/hardlink witnesses preserve bytes and inode identity during generation and on failure/cancellation. Full gates still run singly. | 2026-11-11, and on generator changes |
| Background-session no-wait witnesses | Loaded ARC runner; fake CLI startup counted in the session duration | #3008: correct result at 1.509 s against 1.5 s; a startup-only delay reproduces it at 1.661 s | Twelve no-wait ceilings become explicit-clock close/idle decisions while retaining the real CLI scenarios. Inventory and proof boundary; the fourteen duration-budget assertions remain separate. | 2026-11-10, and on background lifecycle decisions |
TestConnectWaitsForABrokerThatIsNotUpYet, TestWaitForBrokerIsBounded… (pkg/queue/nats) | Loaded ARC merge-group runner | run 41687370688, #3010: calls = 1; 31 attempts, last an i/o timeout | Corrected, verified 2026-11-04: loop, Connect and store twin in synctest; Connect needs natsgo's verdict, timeouts past the attempt, exact budget. Mutants redden them | 2026-11-11 |
TestEngineRun_IsolatedSubbotSiblingsOverlap | Concurrent isolated children registering worktrees in one repository | #2670; an empty commondir in a pending registration reproduces Git's exact refusal | Runtime setup, reconstruction and cleanup serialize their Git registry commands in-process, keyed by the physical common directory. A virtual-time witness holds an incomplete registration, checks main/linked/symlink spellings and an independent repository, then releases it; removing the gate or making it global fails it. The three-child overlap witness is unchanged. | 2026-11-04, and on runtime worktree lifecycle changes |
TestRunSpreadCoverageStrictCheck/a_Forbidden_plus_an_expired_deadline_still_names_the_Role | Loaded ARC test-unit runner; shell startup races a 200 ms probe | #2571, PR run | spreadCoverageFailureCause decides from the explicit cluster and probe errors; the witness stages both, other rows keep real kubectl shims (Forbidden, timeout, node coverage). Reversing the precedence or dropping the probe error at the caller fails it. Budget and Loki cases already repaired by 20e4aeb4c, 5ee792110; ARC tracked in #2564. | 2026-11-04, and on doctor diagnostic changes |
TestShutdown_DrainDoesNotLeakAgainstASerializingTracker | Loaded ARC merge-queue runner under -race | #2072, merge-group failure: 1/32 claims leaked despite the deadline-bucket assertion | Virtual time drives the serial tracker; the native store's kernel watcher stays outside the bubble. Refresh and release must each enter with their whole budget, every call must have a deadline, and all 32 real cards must return to Ready unclaimed. Moving the revert budget before admission, dropping its bound, or skipping release fails it. | 2026-11-04, and on drain budget changes |
TestBackground_NoWrapUpInsideATurnTheCLIStarted | Loaded ARC merge-queue runner; fake CLI and stream reader scheduled independently | #2745 merge-group failure, commit b7f7f0ca8; a local 800ms reader delay reproduces it | Corrected, verified 2026-10-27: keeping the CLI round trip, the explicit-clock lifecycle fixture tests the expired timer before and after assistant text and at the turn's close; removing either in-turn guard fails it. Ten race repetitions and the delayed-reader scenario pass. | 2026-11-03, and on lifecycle timer changes |
internal/ciguard's script guards — every helper that hands a script path to a child shell | Any machine with a warm GOCACHE, including a CI job that restored one | Measured 2026-10-29 mutating scripts/ci/baked-actions-manifest.sh for #2435: two mutants deleting a generator rule came back ok (cached) | go test caches on the files the TEST process opened, not a script a child shell reads: every such helper reads it through scriptUnderTest (refusing an empty one) before exec.Command, and both mutants then redden on their own subtests with a warm cache. -count=1 hides the class for one run only | 2026-11-05, and whenever a new guard shells out |
🧪 Tests workflow, queued jobs | Saturated ARC runner pool | Operator observation, #2585 mission: runs queued for hours; no run URL | Infrastructure delay, no test verdict. On recurrence attach run URL, SHA, queued/start times and runner class; measure queue wait apart from execution (queue runbook). Missing/cancelled jobs never count as passing. | 2026-10-31, and at the next landing |
| Mongo conformance deadline | Slow ARC runner | Cancelled at 15 min | Store harness isolated; job budget 55 min. Evidence. | Next cancellation |
| Lease idle, handover and backoff (pkg/lease, pkg/server) | Loaded ARC runner | #2854, #3060, #3400 | Six scenarios use synctest; renewal, voluntary handover, refusal and retry remain asserted. Inventory and evidence. | 2026-11-19, and on lease timers |
| Mongo replay/watch boundary | Producer unfinished at deadline | #3060: 29 delivered, only 29 persisted | Real command replies force gap and overlap; a live marker ends the assertion. Proof boundary. | 2026-11-11 |
| Broken-list lookup and splices (pkg/dsl/parser) | Loaded ARC race shard | #2858, #3060 | Lookup and splices count operations, not time (#3731); rescan mutants, recopies through Lexer.splice's counted branch and splices that bypass Lexer.splice fail; a recopy in its uncounted branches and direct token-slice lookbacks are not covered. Scope and history. | 2026-11-11 |
| Ingress pre-proof buckets | Loaded race shard | #3413 | Two exhaustion witnesses freeze the limiter clock; +1 ms/request makes both red. Limits and isolation stay asserted. | 2026-11-20; limiter changes |
signOutMachineTransitions (studio) | Any machine | #3160 | Timer-ordered parker; retry removal fails. Full evidence. | 2026-11-19, and on the ladder’s cadence |
| Fan-out deadline | Loaded host | #3013: 2.2 s setup reproduces the flake | Virtual time preserves the 2 s deadline and 25 ms grace. Evidence. | Fan-out lifecycle changes |
TestRound2HeldIntentDoesNotRerunConsumedGuard (pkg/cloudsched) | Any machine in the minute before a daily cron slot | CI run 42191154907: launches=1 guard executions=2; a time.Now() base lets the second tick's +1m step cross the 09:00 instant and correctly fire the NEW slot | Test-harness artifact, ticker correct per-slot: the base is pinned a day off the next slot, guard executions are counted per slot (the invariant under test) and a second materialized slot fails loudly. Mutating the consumption write or the prepared-retry guard blanking reddens it on its own assertion | 2026-11-13, and on cron ticker changes |
Loaded-runner bounds re-priced by ratio or an explicit margin: load-margins.
Process capture, scan, socket-reservation, checkout-root and installed-binary witnesses: process fixtures.
