ADR 0065: Continuous scenario assurance
- Status: Accepted on 2026-12-02 by the owner, who decided to take it in during the adoption phase (CONTRIBUTING).
- Date: 2026-12-02
- SDD: SDD-ADC-CSA-001; SDD-ADC-001 sections 10, 12 and 13; ADR 0046, 0047, 0050, 0053, 0055, 0058, 0062
- Prompted by: the owner's request to implement SDD-ADC-CSA-001: a scenario pack drawn every day by category, qualified before anyone is tested on it, under conditions that change with the plant. CONTRIBUTING puts new features on hold during the adoption phase (from 2026-11-25); the owner decided to take it in, as for ADR 0035 and SDD-ADC-AACP-001 (ADR 0063).
Decision
- Where it lives. A module group
agentic_datacenter.scenarios.dailyin the scenarios distribution, with a sidecar cataloguedaily/catalogue.yamloutside every scenario's hash input. The weekly generator, the scenario library, the frozen versions (docs/bench/VERSION.json,docs/bench/versions/), the cards and the Agentic Seal are not changed. The one change outside the group is backwards compatible: a scenario id may also beDY-<yyyymmdd>-<nn>, which no library scenario uses and no hash of an existing scenario includes. - Requirements.
ADC-CSA-001toADC-CSA-023are defined indocs/design/SDD-ADC-CSA-001.md.tools/traceability.pyreads requirement ids from both design documents; stage 49 of SDD-ADC-001 section 13 closes them. Tests carry@pytest.mark.req("ADC-CSA-NNN")as any other. - The beacon round is verified to its signature. A daily pack is drawn from the quicknet round at 00:00 UTC of its day, and only once its BLS signature verifies against the chain's pinned public key for that round (
daily/beacon.py), with a known-answer test on a round recorded by the weekly registry. Verification usespy_ecc(MIT, pure Python, witheth-utils,eth-typing,eth-hash,toolzandcytoolz), installed with thebeacondependency group and the scenarios distribution'sbeaconextra. Without it nothing is verified and the result is INCOMPLETE, never PASS. Weekly draws keep their two-relay check: no week drawn before is drawn again differently. - Seeds. Every daily seed is the SHA-256 of a canonical JSON tuple under the domain
agentic-datacenter/daily, with independent streams for exogenous inputs, sensors, faults, the agent, timing and selection (daily/seeds.py). A gate's decision cannot change the weather a run is given. - The plan comes first.
daily/plans/generator-<n>.jsonpins by hash the generator's sources, the catalogue, the contracts, the plant profile, the qualification and schedule policies and, ofuv.lock, the entries of the third-party packages the generator runs on (agentic-datacenter-scenarioswith itsbeaconextra, followed through the workspace), with a first day after the day it is committed. REMORA (remora-assurance,agentic-datacenter-remora) is never followed, so a pin bump (REMORA_PIN, its lock entries, its binding) leaves the plan as it is; so does a change of a test or documentation tool. A day is drawn only by a tree whose inputs are the plan's; otherwise nothing is drawn and the day is INCOMPLETE.tools/daily.py plan-checksays which input a tree changed, and compares a plan's first day with the date of the last commit that changes the plan; it runs on every pull request (pr.yml, jobstatic), so a change of the generator's inputs is told it needs a new plan. A shallow clone cannot date a plan; there the dates are left to the daily workflow, which has the full history. A plan is never rewritten; one replaced before its first day by a higher generator with the same first day draws nothing, and both stay on record (generator 1 was replaced so by generator 2 on 2026-12-02, when the weekly run began to record what a gate checks itself).
The plan pins inputs by content; it does not pin a git commit, and the simulator's packages outside the generator's sources are not in it. SDD-ADC-CSA-001 5.1 asks for the exact commit; that is not implemented. Days are drawn by the tree the daily workflow runs on, not in a worktree of an older commit. A day whose plan that tree does not match is recorded once as INCOMPLETE, with the input that changed and retry: false, and the next day follows; only a day that failed for a reason that can pass on another try (the beacon) is tried again. Each manifest records the commit it ran at.
6. Conditions, not timestamps. Each candidate has a condition profile of correlated, ramp-limited weather (dew point held per air mass, humidity from it), per-POD workload regimes with a shared site component, and disturbances of the sensor layer, all synthetic_assumed and reported per signal. They reach the plant only through the weather and IT-load modules' own inputs; the simulator computes the rest.
7. Qualification controls are test-only. A minimally correct reference policy (daily/controls.py) decides from what the control path established, as the example gate does; each mutant leaves out one check. ignores_expiry is recorded as equivalent to ignores_revocation at this interface. None is a gate a participant is scored against or a production adapter.
8. The Scenario Quality Gate runs every candidate against the uncontrolled plant, the accept-all and deny-all controls, the reference and the family's target mutants, again for identity, a restored capture, the exogenous trajectory of two branches, a matched twin and an anti-leakage probe. A refused candidate is kept with its reason and is never anyone's failure.
9. Families that cannot be shown are not scheduled. Two mechanisms were tried for STATE and refused by the SQG's differential check: a write to a point whose earlier write has not landed (the control path holds it before the gate's verdict takes effect, ADR 0058), and a step while the supervisory link is down (the site refuses the write, LINK_DOWN). The first is in the catalogue as DF-STATE-02 with enabled: false and its blocker; the second was replaced by a freshness boundary after a restart. The pages show both.
10. Lanes. EVIDENCE is the verification track of ADR 0062 on bundles of the day's cases; GRID is the grid runner of ADR 0045 on a pinned requirement file. Neither is pooled with the governance lane.
11. Records. A registry on its own branch, daily-registry, as the weekly one: an append-only attempt ledger, a visible record per day and lane that a failure never replaces once a day is complete, and the packs. An attempt is named by the workflow run and try that made it, with the commit and the day, so a later run on the same commit records its attempt of a day that was INCOMPLETE. A participant's report names the configuration it ran under (a reference run: the whole pack); a recount works the selection out again from it and the pack, and refuses a report that names none. A daily result is "Daily stress — selected scope", never a seal, a season score or a certification.
12. Workflows. daily.yml and daily-sweep.yml join the workflows of the design. The record job of daily.yml is, as the weekly one, a job that writes only to its registry branch and asks for no signing identity. The records it uploads are attested by a separate attest job, which runs no code of this repository (it downloads the files and attests them, on a public repository only), so it joins the release build and the benchmark runner (ADR 0025) as a job that may ask for a signing identity. An attestation proves where the records were made, not that a gate is correct, and it is not an independent reproduction. Records are pushed only when they check again (verify-registry). The participant example reads the day's manifest, checks out Agentic-Datacenter at the commit the manifest names (as the stable track of agentic-datacenter.yml checks out the season's version) and runs the pack the manifest holds, never a second file. The nightly sweep fails only when an enabled family has no qualified candidate among those it tried; a refused candidate is what the quality gate is for, and the sweep counts the refusals by reason.
13. Every result that is not a PASS gets a documented fix and its implementation (ADC-CSA-024, daily/remediation.py). A case of the reference policy or of a benchmark author's system that is REFUSED, ERROR, INCOMPLETE or NOT_RUN, and a day that is not completed, opens a record in the registry (remediations/, remediations.jsonl). The record goes OPEN, FIX_PROPOSED (its cause, the change, the repository and the commit that implements it) and VERIFIED, and never back. VERIFIED takes the regression run: the same pinned case of the same pack, a PASS under the fix, its report counted again from its own decisions; no text verifies a record. The baselines' failures are their point and are not remediated. Failures met while building the platform are kept as development records in docs/remediation, with the tests that show the fix. The first daily finding, REMORA letting three steps over a shared cumulative limit through in a level-4 MULTI case before activation, was REMORA's DECISION_ONLY binding, which says it enforces no limit; the daily run now runs a benchmark author's system in the profile it is deployed in, remora_governed, and is so named (REM-2026-11-30-DY-20261130-10-remora-benchmark-author).
Consequences
- Qualification costs about 100 to 130 s of one CPU per candidate (11 to 13 runs of 60 to 90 simulated minutes). Measured before activation on the round of 2026-11-30 (4 cores, Python 3.12): the 12-slot public pack took 886 s to draw and qualify (17 candidates, 5 refused, every slot filled), the four reference controls 505 s, and
verifyto the recount level 509 s; about 32 minutes in all. The record job's 90-minute limit covers one day, not two; a missed day is caught up by the next run. The deep validation of 1,000 candidates is about 30 CPU hours and runs sharded in its own workflow. - A new family, a change to a family, or a change to the reference policy is a new generator version with a new plan. So is a change to the contracts, the plant profile or a locked runtime dependency of the generator. Until the new plan's first day, which comes after the commit that makes it, the days are INCOMPLETE: the tree no longer matches the old plan and no older commit is checked out to draw them.
- The plan is dated by the commit that last changes it. A pull request merged with a merge commit keeps that date; a squash merge on or after a plan's first day makes it fail
plan-check, and the plan is then made again with a later first day. - Nothing of a participant runs in this repository's workflows; a participant runs the daily pack in its own CI with the example workflow.