Plan: Administrative Authority — A Jurisdiction-Declared Office Hierarchy Resolved from Ruleset Data (#1614)

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 (ImportHistory at 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 (none floor / a 4th tier), #1792 (paula in the identity model + e2e states), #1793 (the screening actor-role hierarchy + the dead state_office override rows), #1794 (leg_admits literals), #1795 (twin-parity lint), #1796 (server-side promotion corpora), #1797 (require_georgia retirement); ⁂ 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_LEVELS in subsidy/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.

  • covers is sync and pure, called under SELECT … FOR UPDATE (subsidy/store.rs:2908-2912; check_transition_authority at :3553 re-derives from / head_reason from the LOCKED row). Two transition mints build their action from IN-TX truth on purpose — api/subsidy_mutations.rs:194-221 and api/subsidy_review_completion.rs:287-302 read 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 as skipped_drift via is_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_thread is pub(crate), thread name and deadman label hardcoded authz-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-promote targets an EXISTING set (xtask/src/cmd/rules_promote.rs:103) and its canary replays rule_evaluations (services/craig-rules/src/store.rs:517-535), which in-process evaluations never populate; the by-name response already carries id + revision (store::RuleSet, :10-18) but the client’s RuleSetWire decodes 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)

  1. 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). Inputs operation, from_status, to_status, reason_code, head_reason; output office with a CLOSED enum = declared tokens ∪ "unconfigured"; the last row is the ADR-072 fail-closed sentinel ("" ×5 → unconfigured; zen drops null outputs). Input schema: operation and 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 == null never arises. One table: the operation is a discriminating INPUT — one sentinel, one citation key space, one golden test.

  2. Hierarchy declared in metadata.authority.offices[] { token, realm_roles[], rank }; output tokens ARE realm-role names. rules check gains validate_authority: tokens unique, token ∈ realm_roles, realm_roles ⊂ a NEW craig_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, every office output 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-authority name MUST carry the block. *Held office = the max-rank entry whose realm_roles intersects the session’s realm roles (the screening derive_actor_role shape); no intersection → the existing no-office 400. This turns Office’s `derive(Ord) into DATA (GA declares 1/2/3 = today’s order) and keeps ADR-054’s one vocabulary (persisted approval_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 a county_director session 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.

  3. No none FLOOR in v1. Every ApprovalAction is an approval act by construction; a none floor would need approval_level = 'none' persisted and is the one output that widens privilege on a typo. none is the HELD side only (#1791).

  4. 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 closed AuthorityDeclarationError, whose tokens ARE the structural 503 reasons) and AuthorityEvidence::parse (decision 13). Service-side types live in services/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.

  5. 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 with None, 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> }. RuleSetWire is widened ONCE to decode id
      revision; RulesClient::get_by_name_pinned → PinnedRuleset { id, name, version, revision, content } and the existing FetchedRuleset are 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, gauge authority_surface_verified{jurisdiction}; ONE overall tokio::time::timeout(AUTHORITY_VERIFY_BUDGET = 4 s) around bearer acquisition + the by-name GET + body read (the screening fetch_uncached shape); runs AuthorityDeclaration::parse, compiles the JDM, swaps the snapshot.

    • Evaluator: a NEW pub craig_authz::eval_thread::EvalHandle over the existing spawn_eval_thread machinery with the thread name and deadman label parameterized (authz keeps authz-eval unchanged; financial spawns authority-eval); resolve = handle.evaluate(decision, input) under AUTHORITY_EVAL_BUDGET = 250 ms (queue wait + eval); a timeout / full queue / dead thread is AuthorityError::NotReady(eval-timeout | evaluator-down) → 503, never a defaulted floor; the eval thread is a Critical worker (death fails /readyz like 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 takes FOR UPDATE — a connection held ≤ 250 ms, never a row lock, and no row attribute leaks to an unauthorized caller.

    • Per-act /v1/rules/evaluate is 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.

  6. Lazy consumption at conditional sites. Every mint site resolves eagerly into a Resolution and CONSUMES it only where a fresh approval is required: require_window_or_office takes the Resolution and reads it only when the due falls outside the window (in-window → never inspected); the replay-exempt path returns before it; transition_status reads it only on the non-replay branch. A resolution error therefore rejects exactly the requests that would have needed the office.

  7. What the proof carries; how covers changes.

    • Proof: ApprovedAction gains provenance: Resolved { entries: Vec<{ key: AuthorityKey, floor: OfficeToken, floor_rank }>, held, held_rank, rule_set_id, revision } | SystemLeg. ActivateGuardianship proofs 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 from stamp.reason_code + the pending head’s reason_code, both absent on that path). InsufficientOffice.required becomes OfficeToken.

    • covers stays sync and pure: binding.admits(action) (unchanged); SystemLeg passes on binding admission alone (today’s Leg arm, approvals.rs:401-405); for Resolved the STORE builds AuthorityKey::of(action) from the LOCKED row (head reason from the DATABASE) and requires an entry with an EQUAL key and held_rank >= floor_rank. A missing entry is the NEW ProofContextStale, DISTINCT from an insufficient office end to end: SubsidyStoreError::ProofContextStale joins is_drift (the sweep counts it as skipped_drift), HTTP maps it to 409 SUBSIDY_APPROVAL_CONTEXT_STALE (the row moved between mint and lock — re-read and retry); InsufficientApproval stays 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) gain head_status + head_reason from their queries, so the key is exact for active AND suspended heads; the manual executor resolves EVERY candidate’s key from ONE snapshot() BEFORE the enforcement loop and carries the pre-resolved proofs, so SweepAuthority::authorize stays sync.

  8. Durable provenance (pre-1.0 Changed). A migration adds authority_rule_set_id UUID NULL + authority_revision BIGINT NULL to 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 tables subsidy_agreement_terms, subsidy_agreement_status_intervals, subsidy_agreement_reviews (as_stamp carries them; NULL for historical import stamps and system); the subsidy_agreement_created / _imported payloads gain authority_revision. The consenting row then names the policy that authorized it, across promotions and cache convergence.

  9. 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 (+ system where the column admits it); a 2-tier declaration never rejects authentic county-approved history. APPROVAL_LEVELS is replaced by that const; the DDL CHECKs stay.

  10. system stays the 4th token OUTSIDE the hierarchy. authorize_system never touches the surface or the evaluator; consented enforcement legs keep running while the surface is unverified.

  11. 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 → 403 SUBSIDY_AUTHORITY_UNCONFIGURED (operation, ruleset, revision); zen error / output key missing → 500 SUBSIDY_AUTHORITY_EVALUATION_FAILED; held below floor / no office → the existing 400 approval_error text; stale context → 409 SUBSIDY_APPROVAL_CONTEXT_STALE (sweep: drift).

  12. 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, supersede county_director, finalize state_office (mirrors ImportHistory; backpay U-AUTHZ additionally enforces STAGER ≠ FINALIZER). Citations: 22-09 PAMMS rows pinned via policy sync-cache georgia --pin where the cache resolves them, else manual (crates/craig-policy/src/citation.rs:85) with the ADR-054 / ADR-057 source and verified_by. TX twin = the 2-tier curated fixture of decision 2; TX subsidy writes stay behind require_georgia.

  13. 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.toml with two tables — key = { operation, from_status, to_status, reason_code, head_reason }, office = "<token>" for every key, and token = "<declared token>", key = {…}, verdict = "allow" | "refuse" for every declared token × key (so rank-only and mapping-only changes are both visible) — read by the ONE AuthorityEvidence::parse and consumed by (i) the rules-side golden test, (ii) the financial-side verify_document test, (iii) a NEW cargo xtask authority-evidence <ruleset.json> <evidence.toml> check (in validate, and run against a candidate BEFORE rules-promote); the --acknowledged-thin-corpus reason must name the evidence run’s digest. Server-side corpora for promotion previews: #1796.

  14. Production bootstrap. A NEW cargo xtask rules-bootstrap <file> --rules-url --bearer-token: create-if-absent via POST /v1/rules/sets (client_request_id, name / version / description / content), then the ordinary rules-promote path for later versions. Deployment order per environment: bootstrap → GET by-name shows the family → deploy the financial image → the authority-surface-verifier gauge reads verified → human approval acts admitted. Devstack: seed.sh already creates from its directory loop.

  15. 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_georgia STAYS (message reworded in U4; retirement #1797). OUT, filed at U0: the none floor / a 4th tier (#1791); paula in the xtask identity model
    e2e states for rita / sam / paula (#1792); the screening policy-role hierarchy incl. the dead state_office override rows (#1793 — ADR-074 records the coexistence); the leg_admits reason-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:

  1. The family exists as ruleset data (GA + TX twin), rules check + policy audit + authority-evidence green, scenario rows bound (U1).

  2. Per-action floor from the declared hierarchy; output vocabulary = declared tokens ∪ {unconfigured}; absent row → 403, unknown token refused at verify AND lint (U1 + U2). (none is the held side only.)

  3. 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).

  4. Tests: allow-at-floor, refuse-below, refuse-when-absent (503 surface / 403 row), refuse system-as-human, ProofContextStale on key mismatch (409 / drift), evaluator timeout → 503 (U2).

  5. ApprovalAction::{BackpayStage, BackpaySupersede, BackpayFinalize} + bindings resolve county / county / state from the family; the legacy fn answers LegacyFloor::ResolvedOnly for them (U2).

  6. The import class migrated: api/subsidy_imports.rs:257, import_batch/finalize.rs:71-73, store.rs:2274; the ImportHistory ⇒ StateOffice arm deleted (U2).

  7. 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: OFFICE_REALM_ROLES; craig-financial-contracts::subsidy_authority (AuthorityOperation, OfficeToken, AuthorityKey, AuthorityDeclaration::parse with the closed reason tokens, AuthorityEvidence::parse); georgia-administrative-authority.json + texas-… (the decision-2 two entries); citations.toml rows (+ sync-cache --pin); rulesets/<j>/evidence/administrative-authority.toml; scenario rows (georgia.subsidy.administrative-authority-floors; policy_refs on the georgia.subsidy.reinstatement-office-floor scenario, its oracle key reinstatement_office_matrix_fail_closed unchanged); rules check validate_authority (+ negatives); cargo xtask authority-evidence (in validate) + cargo xtask rules-bootstrap; the rules-side golden looping ["georgia","texas"]; rulesets.adoc § metadata.authority; deployment-guide bootstrap procedure; CHANGELOG Added. Financial untouched

5

U2

#1787

Resolver + evaluator + provenance + import class + backpay variants: RuleSetWire widened + RulesClient::get_by_name_pinned; the pub EvalHandle (name / label parameterized); subsidy/authority/* (surface, verifier + eval-thread Critical workers in EXPECTED_WORKERS, gate, Resolution); service-bearer RulesClient in main.rs; Extension<Arc<AuthoritySurface>> in api/assembly.rs; four problem types in craig-common; Provenance + key-equality covers + ProofContextStale (store variant, is_drift, 409 map); required_level → LegacyFloor::{Office(Office), ResolvedOnly}; migration authority_rule_set_id / authority_revision on the four tables + the two event payloads; the three backpay variants + bindings; the import-class sites migrated; direct zen-engine dep; unit + integration + the proof property; ADR-054 amendment part 1; CHANGELOG Changed (columns, event field, 409 class); a comment on #1115 mapping the seven clauses. The MR states plainly: the eleven other human mints keep the legacy matrix until U3

5

U3

#1788

Migrate the matrix, delete the residue: the eleven remaining mint sites (api/subsidy_mutations.rs:221, :305 and api/subsidy_review_completion.rs:227, :302 — the in-tx pre-lock resolve of decision 5; api/subsidy_review_ops.rs:249 (resolved only outside the window); api/subsidy_review_sweep.rs:315; api/subsidy_create.rs:293; api/subsidy_create_guardianship.rs:116; api/subsidy_activate.rs:151; subsidy/review_sweep.rs:249, :1798 — per-row proofs resolved in-tx from the re-read head BEFORE any lock, from ONE snapshot per run (review_sweep::Executor; the candidates are unchanged — erratum above); the subsidy_agreement_created event gains authority_revision; delete Office, required_level, LegacyFloor, REGIONAL_*, the legacy path; validate_approval_level on OFFICE_REALM_ROLES; InsufficientOffice.required: OfficeToken; contracts doc strings; ADR-054 amendment part 2 (D1 table → "GA content of the family; Ord → declared rank"); guide/admin.adoc:65, guide/supervisor.adoc:214, deployment-guide.adoc:589; CHANGELOG Changed / Removed (the Office surface, the wire)

5

U4

#1789

Web + docs: services/craig-web/src/middleware.rs:358 + the three ["county_director","admin"] templates annotated (GA stacking assumption; the backend floor is declared — behaviour unchanged); verbatim render of the new problem types; require_georgia message reworded; CHANGELOG (the web render surface only)

2

U5

#1790

Close-out: plan Done, nav → Archive + archive.adoc row, ADR-074 → Accepted, .claude/CLAUDE.md, the #1115 status line, plan-lint --done

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 check negatives (dup rank, token ∉ realm_roles, two owners of one realm role, missing block on a *-administrative-authority name, an office cell that is not a quoted literal in the enum), authority-evidence refuses a candidate whose rank or mapping changed, policy audit green.

  • financial surface + evaluator: verify_document on 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); resolve for every operation; Unconfigured → 403; evaluation drift → 500.

  • proofs (proptest over action shapes, stated exactly so): for the concrete action a a proof was minted for, covers(a) succeeds iff held_rank >= floor(a); for any b ≠ a the binding admits (another transition shape), covers(b) fails with ProofContextStale — never Ok, never a panic; for b the binding does not admit, ProofActionMismatch; ActivateGuardianship’s two entries; `SystemLeg on 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_agreements row carries authority_revision) / rita (400 naming state_office) / surface down (503 after the freshness window); a transition whose head moved between mint and lock → StaleHead before 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 as skipped_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 subsidy_agreements (the import class had no stamped row); B2 "pre-tx" → "before the lock, never under it" with the two in-tx-truth sites named; B3 held-office derivation, at-most-one owner, the TX twin’s realm_roles; B4 CHANGELOG per MR. Advisories folded: EvalHandle does not exist yet (the one mismatch), type homes, input-schema shape, the literal-cell check, one evidence parser + shapes, the SystemLeg arm, the second ActivateGuardianship key, pre-loop sweep resolution, policy_refs wording, one RuleSetWire decoder, LegacyFloor, decisions 5 / 7 bulleted, 14 call sites. Kept: the W column (archived-plan precedent)

2

open — run by the maintainer through another vendor’s model

open

open

Edit this page · latest