Plan: Administrative Authority — A Jurisdiction-Declared Office Hierarchy Resolved from Ruleset Data (#1614)
- Archive record
- Status
- Context
- Decisions (recorded in ADR-074; ADR-054 amended in two parts)
- Declaration key + GA mapping
- The #1115 unblock criterion (mechanical)
- Units — each
Relates to #1614; U0Closes #1614 - Test matrix (by risk)
- Verification
- Rollout
- Risks
- Rulings (approved 2026-09-12, plan mode)
- Review log
Archive record
Merge requests: !1614 (U0 plan page + ADR-074, Closes #1614) + !1615 (U1, Closes #1786) + !1617 (U2, Closes #1787) + !1618 (U3, Closes #1788) + !1619 (U4, Closes #1789) + the close-out MR (U5, Closes #1790)
2026-09-12 — the hardcoded county / regional / state office matrix in craig-financial (Office by derive(Ord),
required_level, two reason lists) became RULESET DATA: ONE first-hit table per jurisdiction,
{j}-administrative-authority, declaring the office hierarchy (metadata.authority.offices[] — tokens ARE realm
roles ⊂ craig_auth::OFFICE_REALM_ROLES, ranked) and every per-action floor over the key (operation, from_status,
to_status, reason_code, head_reason), fail-closed on a trailing unconfigured sentinel (GA = the former matrix arm
for arm; a 2-tier TX twin; ⁂ backpay floors). craig-financial resolves floors from a service-local VERIFIED surface
(service-bearer by-name read, structural checks + JDM compile behind an atomic gate, the Critical verifier) through a
BOUNDED evaluator (250 ms per key), mints proofs carrying PROVENANCE (authorize_resolved; covers by KEY EQUALITY
under the lock — a miss is 409 SUBSIDY_APPROVAL_CONTEXT_STALE / sweep drift) and persists authority_rule_set_id
authority_revision on the stamped rows; every human approval act — the import class, backpay’s three variants, and
the eleven acts of the former matrix — resolves at the point of need before any lock, ONE verified snapshot per manual
sweep run; Office / required_level / the legacy proof path DELETED. Maintained offline evidence
(cargo xtask authority-evidence) replaces the thin promotion canary; cargo xtask rules-bootstrap seeds a fresh
environment BEFORE the financial image. craig-web flashes the four typed outcomes verbatim (503 SUBSIDY_AUTHORITY_
NOT_READY with its closed reason token, 403 SUBSIDY_AUTHORITY_UNCONFIGURED, 500 SUBSIDY_AUTHORITY_EVALUATION_FAILED,
the 409). Unblocks the #1115 backpay plan. Follow-ups #1791–#1797; battery interleaves #1799 (fixed), #1800–#1802.
Status
Done (2026-09-12) — !1614, !1615, !1617, !1618, !1619
Erratum (2026-09-12, U3 #1788): decisions 6–7 as built — a mint site RESOLVES AT THE POINT OF NEED (the in-window
schedule, an honest replay and the pre-linkage completion return before any resolution; no Resolution value is
threaded), the two head-keyed handler sites and the sweep’s per-row proofs resolve INSIDE the transaction from the
freshly read head BEFORE any lock (the handoff leg reads the head before the pay-exclusion lock, then locks and
re-verifies), and the sweep CANDIDATES do NOT carry head_status / head_reason — one verified snapshot per run
(review_sweep::Executor) plus the store’s key-equality re-check make the pinned head unnecessary. Every human
mint goes through ONE helper (api::subsidy_shared::resolved_proof). The U3 row below is corrected to as-built.
- Anchors
-
#1614 (epic &86; children #1786 U1, #1787 U2, #1788 U3, #1789 U4, #1790 U5), ADR-074 (Accepted at U2; as-built notes U2–U4), ADR-072 § "Administrative authority: tier 1, single source" (the ruling this program executes), ADR-054 (the as-built matrix — amended in two parts), ADR-057 (
ImportHistoryat StateOffice), ADR-062 (replay precheck ordering), ADR-070 (row citations), the #1115 backpay plan (UNBLOCKED — the criterion below is met, evidence on #1115), follow-ups #1791 (nonefloor / a 4th tier), #1792 (paula in the identity model + e2e states), #1793 (the screening actor-role hierarchy + the deadstate_officeoverride rows), #1794 (leg_admitsliterals), #1795 (twin-parity lint), #1796 (server-side promotion corpora), #1797 (require_georgiaretirement); ⁂ readings on #1073 (the backpay floors).
Context
The subsidy office-authority matrix is hardcoded Rust: Office (county < regional < state by derive(Ord) declaration
order), required_level(action) and two reason lists in services/craig-financial/src/subsidy/approvals.rs:56-210,
consumed by 12 proof mints and 7 in-transaction covers re-checks. ADR-072 ruled it "tier-1 policy in a tier-3
costume": the replacement is a jurisdiction-declared unit hierarchy + per-action floors, fail-closed when unconfigured,
SINGLE SOURCE = ruleset data (operation-discriminated, versioned, promotable, auditable; StateBundles do NOT
double-declare) — and until that seam is operational no new hardcoded floor may land, which blocks backpay (#1115
U1..U4; its U-AUTHZ unit consumes the floors for subsidy_backpay.stage / supersede / finalize).
The #1614 census (on the issue: 123 surfaces, every sampled citation re-verified) fixes the shape of the work:
-
The ONLY office ordering + floor matrix lives in craig-financial; craig-auth exposes a flat nine-role list (
REALM_ROLES,crates/craig-auth/src/claims.rs:24-34); the office vocabulary is copied three times (Office::as_str/from_level,APPROVAL_LEVELSinsubsidy/error.rs:59, four DDL CHECKs);require_georgia(api/subsidy_shared.rs:106, 14 call sites) makes GA the only reachable matrix; rulesets deliberately do NOT carry the office axis; craig-cases' screening policy roles are a SECOND hierarchy for a different act. -
coversis sync and pure, called underSELECT … FOR UPDATE(subsidy/store.rs:2908-2912;check_transition_authorityat:3553re-derivesfrom/head_reasonfrom the LOCKED row). Two transition mints build their action from IN-TX truth on purpose —api/subsidy_mutations.rs:194-221andapi/subsidy_review_completion.rs:287-302read the head inside the tx AFTER the assignment / session check ("post-authz by design: the head status is a row attribute — unauthorized callers never learn it"). -
The scheduled sweep has no HTTP actor (
subsidy/review_sweep.rs:1564-1571); its handoff candidates carry neither head status nor head reason (:309-323; the query admits active AND suspended heads);SweepAuthority::authorize(:245-251) is sync and called per row; changed-world store errors count asskipped_driftviais_drift(:874-882,:1216-1220). -
zen-engine futures are
!Send, so in-process evaluation runs on a dedicated thread behind a bounded queue (crates/craig-authz/src/eval_thread.rs— private module,spawn_eval_threadispub(crate), thread name and deadman label hardcodedauthz-eval, 256 slots,with_eval_budget, a deadman slot). -
Two mint sites are CONDITIONAL — in-window scheduling needs no office (
api/subsidy_review_ops.rs:225-248) and honest replays never reach the check (:95-100). -
rules-promotetargets an EXISTING set (xtask/src/cmd/rules_promote.rs:103) and its canary replaysrule_evaluations(services/craig-rules/src/store.rs:517-535), which in-process evaluations never populate; the by-name response already carriesid+revision(store::RuleSet,:10-18) but the client’sRuleSetWiredecodes only name / version / content.
Precedents reused: the cases ScreeningSurfaceClient (services/craig-cases/src/screening_surface_client.rs — one
overall timeout around bearer + GET at :976-990, decode-time structural checks, a closed reason vocabulary behind an
atomic gate, a Critical verifier worker, typed 503, and derive_actor_role at :434-438 for the held-role shape);
craig-authz’s in-process zen compile (crates/craig-authz/src/source.rs:43-56; zen-engine is already in financial’s tree
via craig-authz); the metadata.<family> + rules check validator template (rulesets § metadata
block extension; xtask/src/cmd/rules.rs:486-680); the ADR-070 row-granularity manifest; the twin-loop tests
(services/craig-rules/tests/response_rulesets.rs:53-82, 500-519).
Decisions (recorded in ADR-074; ADR-054 amended in two parts)
-
Family =
{j}-administrative-authority.json, ONE first-hit table, trailing sentinel. Never-authz-in the name (that substring buckets a file to FILE-level citations,crates/craig-policy/src/audit.rs:548-552, and craig-authz boot-loads the{j}-authz-prefix). Inputsoperation, from_status, to_status, reason_code, head_reason; outputofficewith a CLOSED enum = declared tokens ∪"unconfigured"; the last row is the ADR-072 fail-closed sentinel (""×5 →unconfigured; zen drops null outputs). Input schema:operationand both statuses are CLOSED enums (AuthorityOperation::ALL;SubsidyAgreementStatus∪"none"— pinned by the lint, so the resolver can never send an unknown value), the two reasons are free strings ∪"none"(an unknown reason falls through to the wildcard row — today’s fail-closed defaults, rows 4 / 6). Absent = the literal"none"; the resolver never omits a key, so== nullnever arises. One table: the operation is a discriminating INPUT — one sentinel, one citation key space, one golden test. -
Hierarchy declared in
metadata.authority.offices[] { token, realm_roles[], rank }; output tokens ARE realm-role names.rules checkgainsvalidate_authority: tokens unique,token ∈ realm_roles,realm_roles ⊂a NEWcraig_auth::OFFICE_REALM_ROLES(the three ADR-054 office roles), AT MOST one owner per realm role (an unowned role holds no office in that jurisdiction), ranks unique integers ≥ 1, output enum == tokens ∪ {unconfigured},hitPolicy: first, a total trailing row, everyofficeoutput cell a quoted string literal ∈ that enum (an expression or an unquoted token is refused), Draft-7 schemas compile (the screening branch’s checks reused); a-administrative-authorityname MUST carry the block. *Held office = the max-rank entry whoserealm_rolesintersects the session’s realm roles (the screeningderive_actor_roleshape); no intersection → the existing no-office 400. This turnsOffice’s `derive(Ord)into DATA (GA declares 1/2/3 = today’s order) and keeps ADR-054’s one vocabulary (persistedapproval_level== realm role == token). The TX twin declares TWO entries —regional_director { realm_roles: ["regional_director"], rank: 1 },state_office { realm_roles: ["state_office"], rank: 2 }— so acounty_directorsession holds no office there. A 4th tier is a fleet contract change (new realm role + IdP configs + DDL) — #1791, not presupposed. The DDL CHECKs stay: every declarable hierarchy ⊂ their set. -
No
noneFLOOR in v1. EveryApprovalActionis an approval act by construction; anonefloor would needapproval_level = 'none'persisted and is the one output that widens privilege on a typo.noneis the HELD side only (#1791). -
Vocabulary and parsers single-sourced in
crates/craig-financial-contracts/src/subsidy_authority.rs, shared by financial and the xtask lint:AuthorityOperation::ALL(subsidy_agreement.transition,.amend_terms,.schedule_outside_window,.sweep_execute,.create_active,.create_pending,.activate_guardianship,.import_history,subsidy_backpay.stage,.supersede,.finalize),OfficeToken,AuthorityKey(the five-tuple),AuthorityDeclaration::parse(+ its closedAuthorityDeclarationError, whose tokens ARE the structural 503 reasons) andAuthorityEvidence::parse(decision 13). Service-side types live inservices/craig-financial/src/subsidy/authority/:AuthoritySurface,VerifiedAuthority,ResolvedFloor { floor, floor_rank, held, held_rank, rule_set_id, revision },Resolution = Result<ResolvedFloor, AuthorityError>,AuthorityError::{NotReady(reason), Unconfigured { operation, ruleset, revision }, EvaluationFailed(detail) }→ 503 / 403 / 500. -
Resolver = a service-local VERIFIED surface + a BOUNDED evaluator; resolved BEFORE the row lock, never under it; re-checked by KEY EQUALITY in-tx.
-
Surface:
AuthoritySurface { rules: RulesClient (SERVICE bearer — financial already holds `br.service_token,main.rs:225, but builds its RulesClient withNone,main.rs:236), jurisdiction, gate: AuthorityGate(AtomicU8), snapshot: RwLock<Option<Arc<VerifiedAuthority>>>, evaluator: EvalHandle }`;VerifiedAuthority { rule_set_id, revision, version, hierarchy, decision: Arc<zen_engine::Decision> }.RuleSetWireis widened ONCE to decodeid
revision;RulesClient::get_by_name_pinned → PinnedRuleset { id, name, version, revision, content }and the existingFetchedRulesetare both projections of it (one decoder). -
Verifier: boot + cadence (60 s once verified; the #1727 ladder 2 s doubling to 60 s after a failure), a Critical worker
authority-surface-verifier, gaugeauthority_surface_verified{jurisdiction}; ONE overalltokio::time::timeout(AUTHORITY_VERIFY_BUDGET = 4 s)around bearer acquisition + the by-name GET + body read (the screeningfetch_uncachedshape); runsAuthorityDeclaration::parse, compiles the JDM, swaps the snapshot. -
Evaluator: a NEW
pub craig_authz::eval_thread::EvalHandleover the existingspawn_eval_threadmachinery with the thread name and deadman label parameterized (authz keepsauthz-evalunchanged; financial spawnsauthority-eval);resolve=handle.evaluate(decision, input)underAUTHORITY_EVAL_BUDGET = 250 ms(queue wait + eval); a timeout / full queue / dead thread isAuthorityError::NotReady(eval-timeout | evaluator-down)→ 503, never a defaulted floor; the eval thread is a Critical worker (death fails/readyzlike authz’s); cancellation = the caller’s timeout abandons the oneshot, the thread finishes its microsecond eval and drops the reply. -
Freshness: a verified snapshot stays usable until the verifier OBSERVES failure — ≤ cadence + budget (64 s) after a rules outage or a promotion; the live probe polls the gate before asserting 503.
-
Ordering: sites whose key is known from the request resolve before
execute_within_tx; the two sites whose key needs the head (subsidy_mutations.rs:221,subsidy_review_completion.rs:302) resolve INSIDE the tx closure, after the assignment / session check and before the store call takesFOR UPDATE— a connection held ≤ 250 ms, never a row lock, and no row attribute leaks to an unauthorized caller. -
Per-act
/v1/rules/evaluateis REJECTED: it needs an actor the sweep lacks, puts a 4 s hop before 12 mint sites, and cannot serve the in-tx re-check.
-
-
Lazy consumption at conditional sites. Every mint site resolves eagerly into a
Resolutionand CONSUMES it only where a fresh approval is required:require_window_or_officetakes theResolutionand reads it only when the due falls outside the window (in-window → never inspected); the replay-exempt path returns before it;transition_statusreads it only on the non-replay branch. A resolution error therefore rejects exactly the requests that would have needed the office. -
What the proof carries; how
coverschanges.-
Proof:
ApprovedActiongainsprovenance: Resolved { entries: Vec<{ key: AuthorityKey, floor: OfficeToken, floor_rank }>, held, held_rank, rule_set_id, revision } | SystemLeg.ActivateGuardianshipproofs carry TWO entries — their own key and the implied(transition, pending, active, none, none)the binding admits (approvals.rs:288-296; the store re-derives it fromstamp.reason_code+ the pending head’sreason_code, both absent on that path).InsufficientOffice.requiredbecomesOfficeToken. -
coversstays sync and pure:binding.admits(action)(unchanged);SystemLegpasses on binding admission alone (today’sLegarm,approvals.rs:401-405); forResolvedthe STORE buildsAuthorityKey::of(action)from the LOCKED row (head reason from the DATABASE) and requires an entry with an EQUAL key andheld_rank >= floor_rank. A missing entry is the NEWProofContextStale, DISTINCT from an insufficient office end to end:SubsidyStoreError::ProofContextStalejoinsis_drift(the sweep counts it asskipped_drift), HTTP maps it to 409SUBSIDY_APPROVAL_CONTEXT_STALE(the row moved between mint and lock — re-read and retry);InsufficientApprovalstays a real failure everywhere. Not weaker than today: every DB fact that can change the floor is IN the key, so key equality under one pinned revision implies floor equality; strictly stricter on replay. -
Sweep:
HandoffCandidate(and the suspend / terminate candidates) gainhead_status+head_reasonfrom their queries, so the key is exact for active AND suspended heads; the manual executor resolves EVERY candidate’s key from ONEsnapshot()BEFORE the enforcement loop and carries the pre-resolved proofs, soSweepAuthority::authorizestays sync.
-
-
Durable provenance (pre-1.0
Changed). A migration addsauthority_rule_set_id UUID NULL+authority_revision BIGINT NULLto FOUR tables:subsidy_agreements(written from the proof that CONSENTED the creation — create-active, create-pending, import finalize; the import class has no other row of its own, its terms / intervals carry historical stamps) and the three stamped tablessubsidy_agreement_terms,subsidy_agreement_status_intervals,subsidy_agreement_reviews(as_stampcarries them; NULL for historical import stamps andsystem); thesubsidy_agreement_created/_importedpayloads gainauthority_revision. The consenting row then names the policy that authorized it, across promotions and cache convergence. -
Historical stamps validate against the FLEET vocabulary, not the current hierarchy.
validate_approval_level(store.rs:1273, the import / stamp path at:2434) checks ∈OFFICE_REALM_ROLES(+systemwhere the column admits it); a 2-tier declaration never rejects authentic county-approved history.APPROVAL_LEVELSis replaced by that const; the DDL CHECKs stay. -
systemstays the 4th token OUTSIDE the hierarchy.authorize_systemnever touches the surface or the evaluator; consented enforcement legs keep running while the surface is unverified. -
Fail-closed map (typed; craig-web renders verbatim): surface not verified / evaluator unavailable → 503
SUBSIDY_AUTHORITY_NOT_READY(detail = the closed reason:pending | no-service-principal | unreachable | ruleset-absent | metadata-absent | metadata-invalid | schema-invalid | output-enum-mismatch | operation-vocabulary-drift | compile-failed | eval-timeout | evaluator-down); sentinel hit → 403SUBSIDY_AUTHORITY_UNCONFIGURED(operation, ruleset, revision); zen error / output key missing → 500SUBSIDY_AUTHORITY_EVALUATION_FAILED; held below floor / no office → the existing 400approval_errortext; stale context → 409SUBSIDY_APPROVAL_CONTEXT_STALE(sweep: drift). -
GA content = behaviour identity, row order =
required_level’s arm order(table below); the two asymmetric fail-closed defaults are explicit rows. Backpay floors ship as ⁂ best readings on #1073: stage `county_director, supersedecounty_director, finalizestate_office(mirrors ImportHistory; backpay U-AUTHZ additionally enforces STAGER ≠ FINALIZER). Citations: 22-09 PAMMS rows pinned viapolicy sync-cache georgia --pinwhere the cache resolves them, elsemanual(crates/craig-policy/src/citation.rs:85) with the ADR-054 / ADR-057 source andverified_by. TX twin = the 2-tier curated fixture of decision 2; TX subsidy writes stay behindrequire_georgia. -
Evidence replaces the empty canary. In-process resolutions never populate
rule_evaluations, so this family’s promotion canary would be THIN forever. Adopt maintained OFFLINE evidence explicitly:rulesets/<j>/evidence/administrative-authority.tomlwith two tables —key = { operation, from_status, to_status, reason_code, head_reason }, office = "<token>"for every key, andtoken = "<declared token>", key = {…}, verdict = "allow" | "refuse"for every declared token × key (so rank-only and mapping-only changes are both visible) — read by the ONEAuthorityEvidence::parseand consumed by (i) the rules-side golden test, (ii) the financial-sideverify_documenttest, (iii) a NEWcargo xtask authority-evidence <ruleset.json> <evidence.toml>check (invalidate, and run against a candidate BEFORErules-promote); the--acknowledged-thin-corpusreason must name the evidence run’s digest. Server-side corpora for promotion previews: #1796. -
Production bootstrap. A NEW
cargo xtask rules-bootstrap <file> --rules-url --bearer-token: create-if-absent viaPOST /v1/rules/sets(client_request_id, name / version / description / content), then the ordinaryrules-promotepath for later versions. Deployment order per environment: bootstrap →GET by-nameshows the family → deploy the financial image → theauthority-surface-verifiergauge reads verified → human approval acts admitted. Devstack:seed.shalready creates from its directory loop. -
Scope rulings (approved 2026-09-12). Migrate the WHOLE matrix in this program (U2 the import class + the backpay variants first — that alone unblocks #1115 — then U3 the remaining eleven sites, which keep the legacy matrix until U3 lands, and DELETE
Office/required_level/ the reason consts).require_georgiaSTAYS (message reworded in U4; retirement #1797). OUT, filed at U0: thenonefloor / a 4th tier (#1791); paula in the xtask identity model
e2e states for rita / sam / paula (#1792); the screening policy-role hierarchy incl. the deadstate_officeoverride rows (#1793 — ADR-074 records the coexistence); theleg_admitsreason-literal duplication (#1794); a twin-parity lint across families (#1795); server-side external promotion corpora (#1796).
Declaration key + GA mapping
Key = (operation, from_status, to_status, reason_code, head_reason); "" = wildcard; first hit.
| # | required_level arm (approvals.rs) |
Row | GA office |
|---|---|---|---|
1–3 |
l.183-186 terminated→active, head ∈ {caregiver_request, age_limit_reached, child_no_longer_in_home} |
transition, terminated, active, "", "<each>" |
regional_director |
4 |
l.187 terminated→active, other / absent head (fail-closed) |
transition, terminated, active, "", "" |
state_office |
5 |
l.193-196 →terminated, reason guardianship_dissolved |
transition, "", terminated, guardianship_dissolved, "" |
regional_director |
6 |
l.197 →terminated, other / absent reason |
transition, "", terminated, "", "" |
county_director |
7 |
l.199 any other transition |
transition, "", "", "", "" |
county_director |
8–11 |
l.200-203 amend_terms, create_active, create_pending, activate_guardianship |
op, none, none, none, none |
county_director |
12–13 |
l.204-206 schedule_outside_window, sweep_execute |
op, none… |
regional_director |
14 |
l.208 import_history (#1071 D12) |
op, none… |
state_office |
15–16 |
⁂ subsidy_backpay.stage / .supersede |
op, none… |
county_director |
17 |
⁂ subsidy_backpay.finalize |
op, none… |
state_office |
18 |
sentinel (new) |
"" ×5 |
unconfigured |
Identity proven three ways: the rules-side golden evaluates all 18 keys against a literal copy of l.176-210; the
financial-side test loads the same file through verify_document and asserts the evidence file’s outcome table through
the consumer’s path; after U3 every existing dana / rita / sam suite passes unchanged.
The #1115 unblock criterion (mechanical)
Met when U1’s content is bootstrapped in the target environment AND U2 is merged:
-
The family exists as ruleset data (GA + TX twin),
rules check+policy audit+authority-evidencegreen, scenario rows bound (U1). -
Per-action floor from the declared hierarchy; output vocabulary = declared tokens ∪ {unconfigured}; absent row → 403, unknown token refused at verify AND lint (U1 + U2). (
noneis the held side only.) -
A resolver in craig-financial mints the proof before the lock carrying floor +
rule_set_id+revision, and the row that consented the act persists that identity — for the import class,subsidy_agreements(U2). -
Tests: allow-at-floor, refuse-below, refuse-when-absent (503 surface / 403 row), refuse
system-as-human,ProofContextStaleon key mismatch (409 / drift), evaluator timeout → 503 (U2). -
ApprovalAction::{BackpayStage, BackpaySupersede, BackpayFinalize}+ bindings resolve county / county / state from the family; the legacy fn answersLegacyFloor::ResolvedOnlyfor them (U2). -
The import class migrated:
api/subsidy_imports.rs:257,import_batch/finalize.rs:71-73,store.rs:2274; theImportHistory ⇒ StateOfficearm deleted (U2). -
No interim hardcoded floor anywhere (U2 removes one arm, adds none; U3 deletes the rest).
Units — each Relates to #1614; U0 Closes #1614
| MR | Issue | Scope | W |
|---|---|---|---|
U0 |
#1614 |
This page (Active nav), ADR-074 (Proposed), the ADR-072 pointer, the epic &86 children U1–U5, the decision-15 follow-ups #1791–#1797 |
1 |
U1 |
#1786 |
Tier-1 content + lint + evidence + bootstrap: |
5 |
U2 |
#1787 |
Resolver + evaluator + provenance + import class + backpay variants: |
5 |
U3 |
#1788 |
Migrate the matrix, delete the residue: the eleven remaining mint sites ( |
5 |
U4 |
#1789 |
Web + docs: |
2 |
U5 |
#1790 |
Close-out: plan Done, nav → Archive + |
1 |
U1 is additive and independent (dormant content until U2 consumes it); U2 requires U1’s content BOOTSTRAPPED in the target environment; U3 and U4 are sequential on U2. Collisions: none with the backpay plan (#1115 starts AFTER the unblock criterion is met); #1086 (admin-unit scope) untouched.
Test matrix (by risk)
-
rules: the 18-key GA golden (identity with l.176-210 incl. rows 4 / 6), the evidence outcome table, TX twin structure (two entries, a county session holds none),
hitPolicy first+ total-row pins, output enum == declared ∪ {unconfigured},rules checknegatives (dup rank, token ∉ realm_roles, two owners of one realm role, missing block on a*-administrative-authorityname, anofficecell that is not a quoted literal in the enum),authority-evidencerefuses a candidate whose rank or mapping changed,policy auditgreen. -
financial surface + evaluator:
verify_documenton the shipped file; each closed reason token reachable (absent ruleset, metadata absent / invalid, enum mismatch, vocabulary drift, compile failure, unreachable, no service principal, eval timeout under a saturated queue, evaluator down); gate transitions; the freshness window (a snapshot survives an outage until the verifier observes it; then 503);resolvefor every operation;Unconfigured→ 403; evaluation drift → 500. -
proofs (proptest over action shapes, stated exactly so): for the concrete action
aa proof was minted for,covers(a)succeeds iffheld_rank >= floor(a); for anyb ≠ athe binding admits (another transition shape),covers(b)fails withProofContextStale— neverOk, never a panic; forbthe binding does not admit,ProofActionMismatch;ActivateGuardianship’s two entries; `SystemLegon its leg passes, on a human action refused. -
conditional sites: in-window scheduling succeeds with the surface DOWN; outside-window fails 503 down / 403 unconfigured / 400 below floor; an honest replay never consults the resolution.
-
integration (devstack): import finalize as sam (200, the
subsidy_agreementsrow carriesauthority_revision) / rita (400 namingstate_office) / surface down (503 after the freshness window); a transition whose head moved between mint and lock →StaleHeadbefore authority; an unassigned caller at the two in-tx sites still gets the assignment refusal, never an office name; a handoff on a SUSPENDED head resolves and enforces; the manual sweep’s per-row keys equal the store’s derivation; a stale-context row counts asskipped_drift, an insufficient office as an error; after U3 the existing dana / rita / sam suites unchanged. -
web: the 403 / 409 / 503 flashes verbatim; the BFF gates unchanged.
Verification
Per MR: fmt, clippy, budgets (B1 on approvals.rs, store.rs), the lint suite, rules check, policy audit,
authority-evidence, scenarios, axis-coverage, check-docs, plan-lint; the pre-push battery. Live probe on
the devstack (U2, repeated at U3): bootstrap + promote the GA family, finalize an import batch as sam.state → 200 and
the agreement row’s authority_revision equals the promoted revision, as rita.regional → 400 naming state_office;
stop craig-rules, poll the gauge until the gate flips (≤ 64 s), then the next human act 503s while the scheduled
sweep’s system legs still run.
Rollout
Per environment: rules-bootstrap the U1 content (later versions via the rules-promote two-step with the
authority-evidence digest named in the thin-corpus acknowledgement) BEFORE the U2 / U3 image; verify by-name + the
verifier gauge; then deploy. A U2 / U3 image without the content answers 503 on every human approval act and writes
nothing; consented automation continues. Pre-1.0 breaking (Changed, each in its own MR’s entry): the persisted
provenance columns, the event field, the 409 stale-context class, the deleted Office surface; no N−1 rollback
requirement and no old-shape sweep JSON preserved (maintainer ruling, 2026-09-12). Devstack: seed.sh loads the new
files from its directory loop.
Risks
Revision skew — eliminated (one resolution, key equality, revision on the proof AND the row; one snapshot per sweep
run). Verifier-not-ready blocks money acts — deliberate; system legs + the generator unaffected; freshness window
stated; runbook order. A mint-site key that differs from the store’s derivation refuses as ProofContextStale (drift
in the sweep, 409 for humans) — fixed in the candidate query, never in covers. 2-tier vs DDL — tokens ⊂
OFFICE_REALM_ROLES by lint; history validates against the fleet set. THIN canary — replaced by maintained evidence.
Evaluator saturation — bounded queue + 250 ms budget → 503, never a wait under a row lock (the two in-tx sites hold a
connection, not a row). TX twin — fixture, behind require_georgia.
Rulings (approved 2026-09-12, plan mode)
R1 whole-matrix migration in this program (U3). R2 hierarchy = metadata.authority.offices[] with ranks; tokens =
realm roles; no none floor. R3 service-local verified surface + bounded eval thread (not per-act evaluate). R4
backpay ⁂ floors county / county / state. R5 require_georgia stays. R6 persisted provenance columns (pre-1.0
Changed). R7 maintained offline evidence replaces the promotion canary for this family. R8 the OUT list in
decision 15. Also ruled: pre-1.0 cutovers may break; preserving the old sweep JSON and supporting N−1 rollback are
NOT requirements.
Review log
Rev 1 took the maintainer’s 9-finding plan-mode gate (2026-09-12: evaluator execution model, conditional sites,
historical stamps, handoff head status, ProofContextStale distinctness, the proof property, production bootstrap,
durable provenance, the empty canary; plus the freshness window, U2 coverage honesty and the overall verifier
timeout); rev 2 was approved and entered round 1.
| Round | Vendor | Resolved model | Verdict |
|---|---|---|---|
1 |
Anthropic — one fresh contextless subagent, the four plan-lifecycle questions, over this page + ADR-074 (six-plus citation spot-checks, all but one matching) |
Claude Fable 5.1 |
no-ship (2026-09-12; 4 blockers, 14 advisories) → folded: B1 provenance also on |
2 |
open — run by the maintainer through another vendor’s model |
open |
open |