Plan: AFCARS Federal Ruleset Class, Dictionary Tooling, the Crosswalk Verifier and the Verified Surface (#1962, P-A of #949)

Archive record

Merge requests: !1682 (U0 plan page, Relates #1962) + !1683 (U1a, Closes #1968) + !1684 (U1, Closes #1969) + !1685 (U2, Closes #1970) + !1687 (U3, Closes #1971) + !1688 (U4, Closes #1972 / #1962)

2026-09-21 — rev 3 approved in plan mode 2026-09-21 after a contextless round 1 (11 blockers + 7 wrong anchors) and the maintainer’s gate (12 findings + 5 corrections); what landed — the federal ruleset DIRECTORY rulesets/federal/ with its blocking citation manifest, the cfr + acf_technical_bulletin authorities with per-authority url drift and sources.toml as the pin store, the shared dictionary / crosswalk parsers with the crosswalk verifier proven on (b)(2) sex ↔ Gender, and the AfcarsSurfaceClient verified surface (the afcars-surface-verifier worker, the afcars_surface_verified gauge, GET /v1/reporting/afcars/metadata) with the EMPTY RecordSchemaContract — layout-unpinned by design until P-A2 pins the layout and P-D extends the contract; the transcription and the per-element Georgia crosswalk derivation are P-A2 #1973.

Status

Done (2026-09-21) — !1688

Anchors

#1962 (P-A; U4 closes it) and the sibling plan P-A2 afcars-dictionary-transcription (#1973; its page follows U3); the program AFCARS 2020 Program (#949) — A1–A4 and rulings R0, R1, R7, R13 BIND here; four program-page errata land at U0 (P-A as two pages; dictionary_version = the document’s version; aggregation in the A2 tether grammar; the surface parses + verifies, it does not compile); epic &99; ADR-070 § Amendment — #949 (the tether erratum too); ADR-072 § Amendment — #949; ADR-074 (the verified-surface shape copied here); #1073.

Context (census 2026-09-21, anchors verified on main)

  • Every rulesets/* dir is audited the moment it exists (crates/craig-policy/src/audit.rs:156-175; committed_corpus_audits_finding_free, xtask/src/cmd/policy.rs:972-991); rules check walks RULESET_DIRS (xtask/src/cmd/rules.rs:60; its census test reads every registered dir, :1480); the blocking set is BLOCKING_JURISDICTIONS (policy.rs:87). The MR that creates the dir ships manifest + registrations together.

  • Every content.rules[i] is a citable row (audit.rs:597-616) whose manifest value equals the row’s _description by scalar equality (crates/craig-policy/src/ruleset_ref.rs:387-405, :411-419); slug ids (:136-140).

  • The discovery smoke needs inputNode + outputNode + ≥ 1 decisionTableNode, evaluating NON-NULL on a schema-derived default (services/craig-rules/tests/ruleset_discovery.rs:69-125, :186-204, :345-353); walkers are one level deep.

  • Drift is per directory: SourceKind = PammsGit | Manual (crates/craig-policy/src/source.rs:333-338, spec :317-328); policy drift needs policy-source.toml (policy.rs:227-228); pins are PAMMS-only and written into citations.toml (:445-468, :482); run_drift writes ONE report and bails on a raise (:186-217); the job test :896-935.

  • Citation is deny_unknown_fields (crates/craig-policy/src/citation.rs:103-162; Authority :73-86; arms :500-537); a manifest resolves keys in its OWN dir (:556-586); verified_by / verified_date are HUMAN attestations (adr-070 § Attestation honesty).

  • The identity hash is not on the wire: PinnedRuleset (crates/craig-rules-client/src/lib.rs:455-467); the by-name read has no timeout (:292-308); the ONLY hash body is pub(crate) canonical_content_sha256 (services/craig-rules/src/ store.rs:369-378). The rules URL is resolved fleet-wide by craig_bootstrap::authz_source::resolve_rules_engine_url (crates/craig-bootstrap/src/authz_source.rs:59-60, :80-82; reporting boots it at src/main.rs:136).

  • Reporting boots the active bundle for the federal mapping only (src/federal_mapping.rs:87-99; StateBundle:: jurisdiction_code, crates/craig-state-bundle/src/bundle.rs:30); the clock is TOTAL (crates/craig-common/src/clock.rs: 55-63); the executor is the LAST .watch( with positional contested anchors (src/main.rs:232-237; contested-surfaces.toml:1355-1364); ADR-074’s snapshot() rejects every unverified state (services/craig-financial/ src/subsidy/authority/mod.rs:383-392).

  • The CFR (LII + govinfo, 2026-09-21): (b)(2) Child’s sex male | female; (b)(1) DOB "or estimated if abandoned"; (b)(7) race = yes / no per eight categories; (b)(8) ethnicity yes | no | unknown | abandoned | declined; the removal group (d)(1)–(6) has no manner element; §1355.46(c)(2)'s 100 % set is §1355.44(a), (b)(1)–(2) and §1355.45(a), (b)(1). Erratum (2026-09-21, P-A2 #1973): the 100 % set also names §1355.45(b)(2) — §1355.44(a), (b)(1)–(2) and §1355.45(a), (b)(1)–(2). The ACF bulletins are not fetchable by automation (acf.gov 403) — R1 inputs the maintainer supplies; nothing here needs them.

Shape: the class on a one-element dictionary in its final grammar (U1), drift (U2), the verifier proven on the sourced element (U3), the surface (U4). P-A2 transcribes the dictionary, derives the Georgia crosswalk set per element, lands the bulletin rows, pins and committed schemas — and carries Blocked honestly while the bulletins are unsupplied.

Design

D1 — The class: federal is a directory, not a jurisdiction

U1 creates rulesets/federal/ AND registers it in RULESET_DIRS (rules.rs:60, prose :5-6) and BLOCKING_JURISDICTIONS (policy.rs:87) in the same MR (the census test rules.rs:1480 reads every registered dir). No clock arm, no StateBundle, no scenario pack (xtask/src/cmd/scenarios.rs:658-685 discovers only dirs WITH scenarios/), no authority_evidence::SHIPPED entry (xtask/src/cmd/authority_evidence.rs:34). The seed bootstrap converges every rulesets//.json and compares jq -cS content (seed.sh:178-185, :298-303): name + version top-level, numbers as strings or integers. testing-reference.adoc:1577-1583 is corrected. Rejected: a compiled crate (R0); a bundle.

D2 — The document: identity, tables, the value-set language, the tether, the generator

rulesets/federal/federal-afcars-2020.json — name = "federal-afcars-2020", version (SemVer = dictionary_version), description (cited by the #description row); tables with slug ids, hitPolicy: "first"; the runtime and the lint READ content.rules[i] through the shared parser (zen is the compile / discovery smoke only); every table TOTAL by a trailing sentinel row (services/craig-rules/tests/administrative_authority_ruleset.rs:414-425 shape; [plumbing] on citation-exceptions.toml). metadata.afcars carries ONLY the pins (A1); everything else lives in the TOML sibling rulesets/federal/sources.toml (D3). Row identity everywhere (tether, sources.toml, crosswalk targets, lookups): <file>.<paragraph>.<effective_from> — oohc.b2.2020-10-01 (§1355.44), assist.b1.2020-10-01 (§1355.45), so two Erratum (2026-09-21, P-A2 #1973 D1): the anchor date of every 2020-rule row is the compliance date 2022-10-01 (85 FR 28410’s DATES section), not 2020-10-01 — the examples here, at the tether and at the U3 crosswalk target keep the old date as the record; P-A2 U1a renames the committed row and every consumer. versions of one element or the same paragraph in both files never collide. Effective intervals on EVERY table (o_effective_from, o_effective_until, empty = open); the parser refuses overlapping rows for one key (DictionaryError::OverlappingRows) and view_for(period_end) returns Err(ViewUnavailable { table, key, date }) when a key has no covering row (a period the view cannot serve is refused by name; P-D consults the same fn).

Table Inputs → outputs Sentinel

elements

i_key → o_token, o_name (verbatim CFR), o_file (oohc | assist), o_group, o_cardinality (most_recent | per_removal | per_living_arrangement | repeating_dates), o_requiredness, o_clean_class (hundred_percent | ten_percent), o_temporal_anchor (period_end | exit_date | removal_date | arrangement_date | most_recent_at_report), o_aggregation (per_record or a bulletin-cited token), o_effective_from, o_effective_until, o_value_set (the language below)

i_key = "" → o_token = "unconfigured"

periods

i_half (A | B) → o_start_mmdd, o_end_mmdd, o_due_mmdd, o_weekend_roll (next_monday), the two effective columns

i_half = "" → o_start_mmdd = "unconfigured"

applicability

i_key, i_predicate (a token of the closed Predicate enum the parser defines — always, exit_recorded, removal_recorded, adoption_or_guardianship_exit, icwa_straddle_cohort, …; P-D binds tokens to facts) → o_applies (required | blank), the two effective columns

i_key = "" → o_applies = "unconfigured"

exemptions

i_class (turned_18_prior_period | assistance_ive_guardianship) → o_file, o_compliance (exempt), o_file_membership (retained | excluded), o_cfr, the two effective columns

i_class = "" → o_compliance = "unconfigured"

Value-set language (closed; parsed to ValueSet; P-D’s validator consumes the parsed form): Atom := enum(a|b|…) | date | year | month_year | integer(min..max) | text(max) | indicator(token); ValueSet := Atom ('+' Atom)* — unions are typed, e.g. (b)(1) date + indicator(estimated_abandoned), a TPR petition date + indicator(deceased), (b)(8) enum(yes|no|unknown|abandoned|declined); anything else is DictionaryError::ValueSetGrammar. consistency / recurrence are bulletin content (P-A2’s second unit defines them). The tether = A2’s grammar plus aggregation: afcars:elements:<key>|<token>|<name>|<file>|<group>|<cardinality>|<requiredness>|<clean_class>|<temporal_anchor>|<aggregation>|<from>..<until>|<value_set> — \ and | escaped as \\ / \| in every field, value_set LAST; the other tables tether afcars:<table>:<key>|<out>=<val>|… in output order incl. the effective columns. ONE fn craig_reporting_contracts::afcars_dictionary::tether(&Row) → String; the bijection golden (parse → tether == _description for every row of the committed file; in-module test + a rules check arm). The U1 row: afcars:elements:oohc.b2.2020-10-01|sex|Child’s sex|oohc|b|most_recent|required|hundred_percent|period_end|per_record|2020-10-01..|enum(male\|female). The generator cargo xtask rules afcars-manifest [--check] emits every manifest row from the document through tether() (format-preserving toml_edit, xtask/Cargo.toml:55-59) with provenance + attestation from sources.toml; --check is the lint. Rejected: cell citations as the tether (scalars only); hand-authoring rows twice.

D3 — sources.toml, the manifest, the two authorities, attestation

sources.toml is the federal dir’s ONE store of provenance, pins and review: [source."<key>"] authority, source_ref, federal_citation, source_sha256, fetched_at (machine — written by policy sync-cache --pin) and [review."<key>"] verified_by, verified_date, attested_sha256 (human — written only by cargo xtask rules afcars-attest <key> --by <who>, which records the CURRENT source hash). The generator copies the review fields verbatim and REFUSES to emit a row whose source_sha256 != attested_sha256 ("re-attest <key>"): a re-fetch never re-dates a review (ADR-070 § Attestation honesty). rulesets/federal/citations.toml ([meta] jurisdiction = "federal") is generated output, complete for the committed document. Authority gains Cfr (requires federal_citation 45 CFR 1355.44(b)(2), a govinfo annual-edition section source_ref — the fetched https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol5/xml/CFR-2025-title45-vol5- sec1355-44.xml; the volume differs per edition, so sources.toml records the exact URL — and a source_sha256 pin, the first pin-required federal family, audit.rs:305-315) and AcfTechnicalBulletin (requires bulletin, bulletin_version, source_sha256; source_ref = the committed file, D4; no federal_citation — ADR-070’s "three federal families", adr-070:78-79, becomes four, one bulletin-keyed). Citation gains bulletin, bulletin_version (Option<String>) and the two arms. Georgia’s crosswalk rows are cited in rulesets/georgia/citations.toml with authority = "cfr" and the dictionary row’s source_ref / source_sha256 (own-dir resolution; the FR rows :31-40 are the shape); a collapse = true row’s embedded citation cell is cross-checked against that georgia row by rules check.

D4 — Drift: the url kind, per-authority dispatch, committed bulletins, the stated limit

policy-source.toml for federal: type = "url" (SourceKind::Url; U1 adds the variant with arms at policy.rs:229, :333-339 behaving as manual; U2 lands the dispatch). Erratum (2026-09-21, U1a #1968): the variant + arms landed in U1a; the interim url arm renders a no-op report (0 raises), not Unpinned (which raises); repos on a url spec is refused. In a url dir: cfr / federal_register rows are re-fetched from source_ref into rulesets/federal/.policy-cache/<sha256-of-url>.xml and hashed (the cached file is the pin’s subject; 403 / timeout is MissingUpstream { pinned } or Unpinned — crates/craig-policy/src/drift.rs:87, :89 — never Changed); acf_technical_bulletin rows pin a COMMITTED public document under rulesets/federal/sources/acf/<bulletin>- <version>.pdf (R-A7; CI-visible, unlike the gitignored .policy-cache/, .gitignore:32). --pin in a url dir writes sources.toml (the pamms writer policy.rs:482 is untouched) and re-runs the generator — one pin store, one regeneration. PolicyFetcher is an injectable trait (blocking reqwest in xtask, xtask/Cargo.toml:68; a fixture impl in tests; craig-policy stays HTTP-free). policy drift --jurisdiction is repeatable (georgia --jurisdiction federal) rendering ONE aggregated report; a raise never skips the other dir; the job test is updated with .gitlab-ci.yml:747. Limit, stated in the deployment guide: drift detects change to the PINNED artefact; a new annual edition or an amendment published at another URL is not discovered — an October annual-edition check and the FR amendment watch are a maintainer task (the automation follow-up is #1975). Georgia’s / Texas’s federal_register URL rows stay OUT (#1974). Rejected: manual for federal (R1); per-row source kinds. Erratum (2026-09-21, U2 #1970): the deployment guide has no drift section — the limit is stated in quality-gates.adoc § Citation audit gate and rulesets.adoc § The federal ruleset class; the deployment guide’s CI/CD Pipeline section carries one pointer sentence.

D5 — The parsers, the vocabulary registry, the crosswalk verifier

Home crates/craig-reporting-contracts (src/lib.rs:3-17 gates; leaf comment Cargo.toml:9-15) + serde_json, thiserror, craig-reference (never zen-engine); xtask a NORMAL dep, craig-rules a dev-dep; modules beside src/afcars.rs. afcars_dictionary::{Dictionary, ElementKey, Element, ValueSet, Period, Applicability, Predicate, Exemption, Pins, DictionaryView, DictionaryError, parse, tether, view_for} — Pins and the bulletin tables Option here, REQUIRED after P-A2’s second unit. afcars_crosswalk::{Crosswalk, CrosswalkFinding, verify(&Crosswalk, &Dictionary, &VocabularyRegistry)}: (a) totality by EQUALITY with the enum’s VariantNames (a NEW rules check arm; check_token_enums rules.rs:805-817 stays SUBSET); (b) every output inside the target element’s ValueSet; (c) a collapse = true row carries a non-empty citation cell. VocabularyRegistry = token → &'static [&'static str]; U3 derives VariantNames on Gender only — each further enum gets it when P-A2 derives its crosswalk. Which fleet enums are crosswalked is DERIVED per transcribed element (R-A9, on the P-A2 page): an enum maps only where its semantics coincide with the element’s — (b)(7) race is eight yes/no responses, a P-C capture; (d)(1)–(6) has no manner element, so RemovalManner has no target. Completeness is the SURFACE’s rule (crosswalk-incomplete: a table for every crosswalked element the crosswalk’s metadata.afcars.crosswalked_elements names — a list P-A2 fills); the verifier checks each PRESENT table. georgia-afcars-crosswalk.json lands in U3 with ONE table (Gender → oohc.b2.2020-10-01) and metadata.afcars.supported_from (<end-year>A|B); testonia-afcars-crosswalk.json mirrors it (the testonia_fixture.rs: 64-80 leak tripwire; rules_drift.rs:22-24 reports it fixture). rules check dispatches by stem (rules_authority.rs: 26-40): federal-afcars-2020 → parse + bijection + sentinel + smoke; *-afcars-crosswalk → verify against rulesets/federal/federal-afcars-2020.json; any other .json in rulesets/federal/ is refused. The craig-rules golden tests/afcars_dictionary.rs asserts row counts, the sentinel and the compile + default-input smoke. Rejected: the registry in craig-reference; zen-compiling anything here (R-A8).

D6 — The surface: shape, order, identity, contract, jurisdiction, metadata

  • Shape — ADR-074’s (authority/mod.rs: new :320, gate :366, verify_once :397, spawn_verifier :445, the 4 s budget :58, the 2 s → 60 s ladder :12-13) in services/craig-reporting/src/afcars_surface/. craig-rules-client direct dep; the URL = craig_bootstrap::authz_source::rules_engine_url("CRAIG_REPORTING") (the existing resolver made pub; the SAME value reporting’s authz source boots with, main.rs:136 — R-A10); TWO by-name reads sequential in ONE 4 s budget, each under tokio::time::timeout; parse + verify + retain behind an atomic gate; a Critical afcars-surface-verifier worker BEFORE the executor’s watch with the positional re-point in one MR (.watch.3 → .watch.4: contested-surfaces.toml:1355-1364, src/jobs.rs:399, comments main.rs:235/341/1733, jobs.rs:9, tests/api/health.rs:84, the worker table :70-90, EXPECTED_WORKERS main.rs:237), a report-only worker entry (:2166-2179 shape) and a covered s2s-client.craig-reporting.rules entry (:691-700; legs = the wiremock 404 / timeout / 5xx); gauge afcars_surface_verified{jurisdiction} (src/metrics.rs:2244-2276 shape).

  • Constructor AfcarsSurfaceClient::new(rules: RulesClient, configured_jurisdiction: String, bundle_jurisdiction: &'static str, contract: &'static RecordSchemaContract) — bundle_jurisdiction = the active bundle’s jurisdiction_code() from a new federal_mapping::active_bundle_jurisdiction() (the same activation boot_federal_mapping_registry_for performs); jurisdiction-unregistered iff BusinessClock::try_for_jurisdiction(&configured) (NEW; the total for_jurisdiction keeps its UTC fallback for its callers — bounded, not scaffolding) is None OR bundle_jurisdiction != configured; test a_settings_bundle_jurisdiction_mismatch_is_refused_by_name.

  • Check order (503 afcars-surface-not-ready, closed reason): dictionary-absent → crosswalk-absent → read-timeout → structural tokens (DictionaryError::REASON_TOKENS / CrosswalkFinding::reason(), the subsidy_authority.rs:343-361 pattern) → crosswalk-incomplete → layout-unpinned (D7) → dictionary-unsupported-by-binary → jurisdiction-unregistered → verified. A pass that parses structurally but fails a later check RETAINS a Candidate { dictionary, crosswalk } beside the gate (the metadata GET reads it); snapshot() keeps ADR-074’s contract (Err(NotReady) unless verified, authority/mod.rs:383-392).

  • Identity — canonical_content_sha256 LIFTED into craig-rules-contracts (its one body; craig-rules' store calls it; xtask prints server-sent hashes only, rules_promote.rs:316-317), pinned by a golden; the surface hashes the by-name content with the same fn ⇒ RulesetIdentity { rule_set_id, revision, content_sha256 } (NEW) ×2 equals rule_set_snapshots.content_sha256 by construction. VerifiedSnapshot { dictionary, crosswalk, identity } exposes view_for(period_end) and policy_snapshot() → AfcarsPolicySnapshot (NEW; the type P-D writes).

  • Contract — RecordSchemaContract (NEW; tokens × cardinalities × types + supported layouts) with covers(&Dictionary) → Result<(), Vec<Delta>> (NEW); the production const is EMPTY in P-A; hermetic legs inject a fixture covering the committed dictionary + a synthetic layout. States: after U4 not_ready(layout-unpinned); after P-A2’s pins not_ready(dictionary-unsupported-by-binary); gauge 1 only when P-D extends the const. A deploy-order miss is dictionary-absent, benign — nothing consumes the surface before P-D.

  • GET /v1/reporting/afcars/metadata — DTO craig_reporting_contracts::afcars::AfcarsMetadata { surface: { state: "verified" | "not_ready", reason?, dictionary?, crosswalk? }, current_period: Option<{ label, start, end, due }>, supported_from: Option<String> } — current_period from the CANDIDATE dictionary’s periods via view_for (null when absent, malformed or the view cannot serve the date), supported_from from the candidate crosswalk (null likewise); current_period = the last COMPLETED half while the business date ≤ its due date, else the half in progress (the jurisdiction clock, the Monday roll). Authz = the existing nil-id read rows on AfcarsSubmission (georgia-authz-afcars_submission.json:112-121, the Texas twin; pinned by test, no new rows); registered before /reporting/afcars/{id} (src/api/mod.rs:268) with a literal-beats-param pin; generate untouched. Example: {"surface":{"state":"not_ready","reason":"layout-unpinned"},"current_period":{"label":"2026A","start":"2025-10-01", "end":"2026-03-31","due":"2026-05-15"},"supported_from":"2026A"}.

  • For P-D — services/craig-reporting/tests/support/afcars_surface.rs (in-process verified snapshot from the committed files; services/craig-financial/tests/support/authority.rs:24-58 shape, #[path]-wired per test binary); wiremock dev-dep. Rejected: a surface-side hash under another encoding; content_sha256 on the wire alone; a settings-struct lift of rules_engine_url (three services read it three ways today — the resolver IS the shared site).

D7 — The pins-presence contract

Until P-A2 lands them the document has no metadata.afcars.file_layout / record_number and no consistency / recurrence tables: the parser treats all four as optional; rules check passes; the surface reports layout-unpinned and stays NOT verified; the hermetic verified-path legs mount SYNTHETIC pins (a test blob’s sha256 — never a bulletin claim). No draft flag.

D8 — Deletion, hygiene, CI, promotion

U1a deletes craig_reference::afcars (afcars.rs; lib.rs:90, :100; translate.rs:11, :38-71, :156-175; prose crates/craig-reference/Cargo.toml:8, shared-crates.adoc:747, :756; the completed plan page plans/reference-data- management.adoc stays a record) — zero code consumers; CHANGELOG pre-1.0 Removed. U1a adds rulesets//.policy-cache/ to .dockerignore (:10) and "rulesets/*" to ci-tests changes: (.gitlab-ci.yml:301-314; a rulesets-only MR then runs the full validate — accepted). Promotion of the family: cargo xtask rules-promote rulesets/federal/federal-afcars- 2020.json --reason "<sha256 of the committed document> …" → the preview id → … --confirm-preview <id> --acknowledged-thin-corpus (the in-process family never populates rule_evaluations); the evidence-digest check (rules_promote.rs:363-388) is the administrative-authority family’s and is NOT extended — the --reason naming the document hash is the recorded convention (deployment guide § "AFCARS federal ruleset bootstrap", P-A2).

Units — each Relates to #1962 and Relates to #949 (U4 Closes #1962); each MR also Closes its own unit issue

MR Issue Scope W

U0

#1962

This page (Active nav at U0; docs/modules/ROOT/pages/plans/archive/afcars-federal-ruleset.adoc since U4); the unit issues #1968–#1972 under epic &99 (Plan::AFCARS); the P-A2 issue #1973 (Plan::NEEDED, ≈ 5); the follow-ups #1974 (FR rows) and #1975 (publication discovery); the four program-page errata + the ADR-070 tether erratum

1

U1a

#1968

HYGIENE: craig_reference::afcars DELETED with its prose; .dockerignore; ci-tests changes:; SourceKind::Url parsed with manual-like arms; testing-reference.adoc corrected — green with no federal dir

1

U1

#1969

THE CLASS: rulesets/federal/{federal-afcars-2020.json ((b)(2) sex, final grammar, all four tables with sentinels), sources.toml, policy-source.toml, citations.toml (generated)}; RULESET_DIRS + BLOCKING_JURISDICTIONS
prose; Authority::{Cfr, AcfTechnicalBulletin} + Citation.{bulletin, bulletin_version} + arms + the Cfr pin requirement; afcars_dictionary (parse, ValueSet, view_for, tether) + the bijection golden + parser proptests
rules afcars-manifest + rules afcars-attest + the rules check arms; crates/craig-policy/tests/federal_manifest.rs; the craig-rules golden; rulesets.adoc § AFCARS

3

U2

#1970

DRIFT: per-authority dispatch in a url dir, PolicyFetcher + impls, --pin writing sources.toml
regeneration, the committed-bulletin convention, repeatable --jurisdiction + one report + the job test
.gitlab-ci.yml:747; the deployment-guide limit

2

U3

#1971

THE VERIFIER: afcars_crosswalk::verify + VocabularyRegistry + VariantNames on Gender + the EQUALITY arm
crosswalk proptests; georgia-afcars-crosswalk.json (one table, (b)(2)) + its georgia manifest row + the collapse cross-check; testonia-afcars-crosswalk.json + the leak tripwire

2

U4

#1972

THE SURFACE: the hash lifted (+ golden; store repointed); rules_engine_url made pub; active_bundle_ jurisdiction(); AfcarsSurfaceClient + gate + candidate + verifier worker + the .watch.4 set + gauge + reason tokens
RecordSchemaContract / covers + try_for_jurisdiction + RulesetIdentity / VerifiedSnapshot / AfcarsPolicySnapshot; the metadata GET + route pin; contested entries; wiremock legs (authority/tests.rs:133-532 shape); tests/support/afcars_surface.rs; the deployment-guide "what a new jurisdiction registers" list; closes #1962

3

Weight 12 here + P-A2 ≈ 5 against the program’s 13 for all of P-A — recorded. Every MR green alone; CHANGELOG per MR (pre-1.0 Changed / Removed); // @axis: on every new test; devstack legs #[ignore = "requires devstack"].

Test matrix (by risk)

  • Evil: a_crosswalk_collapse_without_an_embedded_citation_fails_verification_at_runtime (program-level); a_crosswalk_code_outside_the_target_value_set_is_refused; a_crosswalk_missing_one_variant_fails_totality_by_equality; a_promoted_dictionary_outside_the_binary_contract_is_refused (program-level); a_tampered_by_name_document_changes_ the_retained_hash; a_second_json_in_the_federal_dir_is_refused_by_rules_check; a_source_hash_moved_past_its_ attestation_blocks_generation; a_bulletin_row_without_a_pin_fails_the_blocking_audit; the_testonia_crosswalk_never_ leaks_into_a_seeded_jurisdiction.

  • Sad: the_surface_reports_layout_unpinned_until_the_pins_exist; a_pinned_layout_outside_the_empty_contract_is_ unsupported_by_binary; a_settings_bundle_jurisdiction_mismatch_is_refused_by_name; dictionary_absent_and_crosswalk_ absent_are_distinct_reason_tokens; a_by_name_read_past_its_timeout_is_read_timeout; a_crosswalk_missing_a_listed_ element_is_crosswalk_incomplete; overlapping_effective_rows_are_refused_at_parse; view_for_refuses_a_date_no_row_ covers; metadata_fields_are_null_when_the_candidate_is_absent; a_url_row_whose_upstream_answers_403_is_missing_ upstream_never_changed; drift_over_georgia_and_federal_renders_one_report_and_a_raise_in_one_does_not_skip_the_other; the_discovery_smoke_evaluates_every_federal_table_non_null; metadata_get_is_literal_before_the_id_route; the_reason_token_follows_the_documented_check_order.

  • Happy: every_dictionary_row_is_effective_dated_and_cited (program-level); every_row_tethers_bijectively; the_generated_manifest_matches_the_committed_one; re_pin_regenerates_and_preserves_the_review_attestation; the_surface_verifies_the_committed_files_under_a_fixture_contract_and_synthetic_pins (hermetic); the_identity_triple_equals_the_snapshot_hash (devstack); federal_manifest_is_finding_free; view_for_selects_rows_by_ period_end; current_period_follows_the_due_date_rule; afcars_surface_verified_gauge_follows_the_gate.

  • Property (DB-free): dictionary_parse_never_panics_on_arbitrary_json; value_set_language_roundtrips; tether_is_injective_over_generated_rows (aggregation and value-set unions included); tether_roundtrips_escaped_names; crosswalk_parse_roundtrips; verify_is_total_over_arbitrary_crosswalks.

Verification

  • Per MR: fmt, clippy, budgets at their locks, rules check, policy drift (federal from U2), contested-census (U4), check-docs, plan-lint, the battery.

  • Close-out greps: rg -n 'afcars' crates/craig-reference/src EMPTY (U1a); rg -n 'fn canonical_content_sha256' services crates xtask → the contracts crate only (U4); rg -n 'fn resolve_rules_engine_url' crates services → one body (U4).

Rollout + risks

Deploy order: rules-bootstrap federal-afcars-2020 + georgia-afcars-crosswalk (from U3) BEFORE the U4 reporting image; the gauge reads 0 by design until P-A2 and P-D. Risks: the hash lift touches promotion (golden + existing promote tests); the .watch.4 re-point is positional (BLOCKING census — a miss fails the battery, never production); the attestation gate makes a stale review a HARD stop for regeneration (intended); the transcription long pole and the bulletin dependency are P-A2’s, whose Status carries Blocked honestly.

Rulings (approved 2026-09-21, rev 3)

  • R-A1 the url source kind with per-authority dispatch inside the federal dir (D4).

  • R-A2 georgia / texas federal_register URL rows stay out of drift in P-A — the follow-up is #1974.

  • R-A3 canonical_content_sha256 is lifted into craig-rules-contracts as the single hash body (D6).

  • R-A4 testonia carries ONE complete crosswalk table (Gender); completeness is the surface’s rule (D5).

  • R-A5 the reporting image copies rulesets/federal/schemas/ (P-A2 decides the detail).

  • R-A6 P-A ships as two pages: this one (U0–U4) and P-A2 afcars-dictionary-transcription (#1973).

  • R-A7 the ACF bulletins are COMMITTED under rulesets/federal/sources/acf/ as public federal documents (D4).

  • R-A8 no zen compile in P-A — parse + verify + retain (D5 / D6); a program-page erratum.

  • R-A9 the Georgia crosswalk SET is derived per transcribed element on the P-A2 page; this page maps only (b)(2) (D5).

  • R-A10 the rules URL comes from the fleet resolver made pub (D6), not a settings-struct lift.

Review log

Round

Vendor

Resolved model

Verdict

1

Anthropic — three fresh contextless lens subagents + an anchors verifier over rev 1

Claude Fable 5.1

no-ship — 11 blockers + 7 wrong anchors, folded into rev 2 (the P-A2 split; the injected contract; the tether order; table grammars; the metadata wire; the source table out of the pins; the settings leaf; proptests with the parser)

gate

maintainer (plan mode; rev 2 against the checkout and the CFR)

—

no-ship — 12 findings + 5 corrections (U3 impossible on one element; unfaithful crosswalk list; aggregation missing from the tether; the generator as attester; effective intervals; row identity; typed value sets; the U1a census test; metadata fields when unverified; the settings field; the bundle input; the pin store; (b)(2) / 100 %; the volume-5 URL; the drift limit; four errata; the promote sequence) — folded into rev 3; rev 3 APPROVED 2026-09-21 with R-A1–R-A10 as recommended

2

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

open

open

Edit this page · latest