Plan: AFCARS Federal Ruleset Class, Dictionary Tooling, the Crosswalk Verifier and the Verified Surface (#1962, P-A of #949)
- Archive record
- Status
- Context (census 2026-09-21, anchors verified on
main) - Design
- D1 — The class:
federalis a directory, not a jurisdiction - D2 — The document: identity, tables, the value-set language, the tether, the generator
- D3 —
sources.toml, the manifest, the two authorities, attestation - D4 — Drift: the
urlkind, per-authority dispatch, committed bulletins, the stated limit - D5 — The parsers, the vocabulary registry, the crosswalk verifier
- D6 — The surface: shape, order, identity, contract, jurisdiction, metadata
- D7 — The pins-presence contract
- D8 — Deletion, hygiene, CI, promotion
- D1 — The class:
- Units — each
Relates to #1962andRelates to #949(U4Closes #1962); each MR alsoClosesits own unit issue - Test matrix (by risk)
- Verification
- Rollout + risks
- Rulings (approved 2026-09-21, rev 3)
- Review log
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’sversion;aggregationin 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 checkwalksRULESET_DIRS(xtask/src/cmd/rules.rs:60; its census test reads every registered dir,:1480); the blocking set isBLOCKING_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 manifestvalueequals the row’s_descriptionby scalar equality (crates/craig-policy/src/ruleset_ref.rs:387-405,:411-419); slug ids (:136-140). -
The discovery smoke needs
inputNode+outputNode+ ≥ 1decisionTableNode, 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 driftneedspolicy-source.toml(policy.rs:227-228); pins are PAMMS-only and written intocitations.toml(:445-468,:482);run_driftwrites ONE report and bails on a raise (:186-217); the job test:896-935. -
Citationisdeny_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_dateare 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 ispub(crate) canonical_content_sha256(services/craig-rules/src/ store.rs:369-378). The rules URL is resolved fleet-wide bycraig_bootstrap::authz_source::resolve_rules_engine_url(crates/craig-bootstrap/src/authz_source.rs:59-60,:80-82; reporting boots it atsrc/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’ssnapshot()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) ethnicityyes | 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 |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
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) inservices/craig-reporting/src/afcars_surface/.craig-rules-clientdirect dep; the URL =craig_bootstrap::authz_source::rules_engine_url("CRAIG_REPORTING")(the existing resolver madepub; 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 undertokio::time::timeout; parse +verify+ retain behind an atomic gate; a Criticalafcars-surface-verifierworker BEFORE the executor’swatchwith the positional re-point in one MR (.watch.3 → .watch.4:contested-surfaces.toml:1355-1364,src/jobs.rs:399, commentsmain.rs:235/341/1733,jobs.rs:9,tests/api/health.rs:84, the worker table:70-90,EXPECTED_WORKERSmain.rs:237), a report-only worker entry (:2166-2179shape) and acovereds2s-client.craig-reporting.rulesentry (:691-700; legs = the wiremock 404 / timeout / 5xx); gaugeafcars_surface_verified{jurisdiction}(src/metrics.rs:2244-2276shape). -
Constructor
AfcarsSurfaceClient::new(rules: RulesClient, configured_jurisdiction: String, bundle_jurisdiction: &'static str, contract: &'static RecordSchemaContract)—bundle_jurisdiction= the active bundle’sjurisdiction_code()from a newfederal_mapping::active_bundle_jurisdiction()(the same activationboot_federal_mapping_registry_forperforms);jurisdiction-unregisterediffBusinessClock::try_for_jurisdiction(&configured)(NEW; the totalfor_jurisdictionkeeps its UTC fallback for its callers — bounded, not scaffolding) isNoneORbundle_jurisdiction != configured; testa_settings_bundle_jurisdiction_mismatch_is_refused_by_name. -
Check order (503
afcars-surface-not-ready, closedreason):dictionary-absent→crosswalk-absent→read-timeout→ structural tokens (DictionaryError::REASON_TOKENS/CrosswalkFinding::reason(), thesubsidy_authority.rs:343-361pattern) →crosswalk-incomplete→layout-unpinned(D7) →dictionary-unsupported-by-binary→jurisdiction-unregistered→ verified. A pass that parses structurally but fails a later check RETAINS aCandidate { 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_sha256LIFTED intocraig-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-namecontentwith the same fn ⇒RulesetIdentity { rule_set_id, revision, content_sha256 }(NEW) ×2 equalsrule_set_snapshots.content_sha256by construction.VerifiedSnapshot { dictionary, crosswalk, identity }exposesview_for(period_end)andpolicy_snapshot() → AfcarsPolicySnapshot(NEW; the type P-D writes). -
Contract —
RecordSchemaContract(NEW; tokens × cardinalities × types + supported layouts) withcovers(&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 U4not_ready(layout-unpinned); after P-A2’s pinsnot_ready(dictionary-unsupported-by-binary); gauge 1 only when P-D extends the const. A deploy-order miss isdictionary-absent, benign — nothing consumes the surface before P-D. -
GET /v1/reporting/afcars/metadata— DTOcraig_reporting_contracts::afcars::AfcarsMetadata { surface: { state: "verified" | "not_ready", reason?, dictionary?, crosswalk? }, current_period: Option<{ label, start, end, due }>, supported_from: Option<String> }—current_periodfrom the CANDIDATE dictionary’speriodsviaview_for(null when absent, malformed or the view cannot serve the date),supported_fromfrom 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-idreadrows onAfcarsSubmission(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;generateuntouched. 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-58shape,#[path]-wired per test binary);wiremockdev-dep. Rejected: a surface-side hash under another encoding;content_sha256on the wire alone; a settings-struct lift ofrules_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; |
1 |
U1a |
#1968 |
HYGIENE: |
1 |
U1 |
#1969 |
THE CLASS: |
3 |
U2 |
#1970 |
DRIFT: per-authority dispatch in a |
2 |
U3 |
#1971 |
THE VERIFIER: |
2 |
U4 |
#1972 |
THE SURFACE: the hash lifted (+ golden; store repointed); |
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/srcEMPTY (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
urlsource kind with per-authority dispatch inside the federal dir (D4). -
R-A2 georgia / texas
federal_registerURL rows stay out of drift in P-A — the follow-up is #1974. -
R-A3
canonical_content_sha256is lifted intocraig-rules-contractsas 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; |
2 |
open — run by the maintainer through another vendor’s model |
open |
open |