Plan: AFCARS Cases Capture — Demographics, the Effective-Dated Child Facts, ICWA, Parents and Parental Rights, the Permanency Ledgers and the Plan Projection (#1964, P-C of #949)
- Archive record
- Status
- Context (census 2026-09-22, anchors verified on
main) - Design
- D1 — Three capture classes, one correction model, one projection rule (R-C5)
- D2 — Demographics: identity facts on
persons(U1a; R-C1) and the demographics ledger (U1b; R-C4, F7, F9, F10, F13) - D3 — The child-fact ledgers (U2)
- D4 — ICWA at the 2028 superset (U3; R-C6)
- D5 — Parents and parental rights (U4; R-C8, F11, F12, F15)
- D6 — The permanency ledgers (U5; R-C7, F4, F16, F17, F18, F21)
- D7 — The plan projection and financial’s re-point (U6a) and the eligibility field removal (U6b; F3, F22)
- D8 — Registry, seed, docs, governance, followers
- D9 — What this plan does not do
- Units
- Test matrix (by risk)
- Verification
- Rollout + risks
- Rulings requested (recommendation first; U0 records each as approved and D1–D9 are then binding)
- Review log
Archive record
Merge requests: !1701 (U0 plan page + ADR-078 Proposed, Relates #1964) + !1703 (U1a, Closes #1990) + !1704 (U1b, Closes #1991) + !1705 (U2, Closes #1992) + !1706 (U3, Closes #1993) + !1707 (U4, Closes #1994) + !1708 (U5, Closes #1995) + !1709 (U6a, Closes #1996) + !1710 (U6b, Closes #1997) + !1711 (U7, Closes #1998 / #1964 / #2010)
2026-09-23 — rev 3 approved in plan mode 2026-09-22 (rulings R-C1–R-C11 as recommended) after a contextless round 1
(23 blockers), the maintainer’s gate on rev 2 (27 findings), a two-auditor check (a 27-item checklist and 15 adversarial
findings) and a verifier pass; what landed — ONE correction model (ADR-078, now Accepted: identity facts in place, window
and event ledgers, supersede / retire / close with two trigger-admitted UPDATE shapes and the btree_gist exclusion)
over twelve new craig-cases tables on two generic cores: the demographics ledger (eight-category race, the five-value
ethnicity, the tribal facts; persons.gender → sex, the DOB indicator, the declared year), four child-fact ledgers
and person_siblings, ICWA at the 2028 superset with the federal-icwa-status precedence, parents and parental-rights
actions with the pure (c) projection, per-child permanency plans (the event carries current) and review events written
by the court-order hearing act, contact visits; AFCARS_ELEMENT_COLUMNS leaf-complete to the dictionary (57 keys);
four destructive re-cuts (floors 20260922130000, 20260922150000, 20260923140000, 20260923180000); financial’s
reunification refusal re-pointed to the one allowlisted service read and PlacementSubsidyEligibility.permanency_goal
removed after the drain; persons/federal-export removed. Follow-ups: #1999 (the (c)(5) dictionary arms, before P-D),
#2000 (the sensitive-fact posture), #2009 (a durable actor for retract / close); P-B’s input — the portal label and the
placements.permanency_goal drop.
Status
Done (2026-09-23) — !1711
| Anchor | What binds here |
|---|---|
#1964; the program AFCARS 2020 Program (#949) |
A5 (capture-first, effective-dated, immutable
|
P-A2 (#1973) + |
every value set, cardinality, anchor and applicability arm quoted below is the dictionary’s; ONE erratum requested (R-C11) |
ADR-072 § Amendment — #949 |
state variance lives ONLY in |
every cases column takes a |
|
ADR-063 D3 |
a DROP bumps |
|
|
the ICWA carriers placement matching reads — amended by U3 |
|
|
|
ADR-037 § Amendment — #634 |
the one governed surface; no P-C field lands on it |
ADR-078 (new, U0) |
the hard-to-reverse choices: the three capture classes and the correction model (D1), the demographics ledger
(D2), the ICWA superset and the |
Sibling plans |
P-B placement #1963, P-D pipeline #1965, P-E financial #1966; epic &99; ⁂ = a reading DFCS may rule otherwise, each logged on #1073 |
Context (census 2026-09-22, anchors verified on main)
-
What the dictionary asks of cases. 45 rows in force from 2022-10-01 under (a) / (b) / (c) / (f): 7 captured today a)(1)–(4), (b)(2) sex, (b)(4)(ii) tribes, (f)(4) hearings), 19 in the WRONG SHAPE ((f)(2) has only
created_at), 19 ABSENT; the 17-row 2028 ICWA re-cut ((b)(3)(i)–(vii), (b)(4)(i)–(iv), (b)(5)(i)–(iii), (b)(6)(i)–(iii with 15 absent; group (i)'s three per-child elements — seven rows: (i)(2)(i)–(iii), (i)(3)(i)–(iii), (i)(9). Anchors areperiod_end(period_end_or_exitfor (b)(11)); cardinalitiesmost_recent/per_parent/per_plan/repeating_dates/per_visit. -
The wrong shapes.
persons.race TEXTholds ONE of five tokens (the CFR asks eight yes / no answers);persons.ethnicityholdsunable_to_determine(the CFR distinguishesunknown,abandoned,declined);persons.genderholds the CFR’ssex;persons.icwa_eligible BOOLEAN NOT NULL DEFAULT falsecannot say "no" from "unasked"; parents arecase_householdrows with no child link, no legal-responsibility mark and no per-parent TPR (court_ordershas no parties); the permanency goal is a per-CASE column oncase_plansand a per-PLACEMENT column onplacements(the CFR asks each plan per CHILD with its date);contactsnames neither the child visited nor the location; siblings are a household role, not a count nor a relation. None of these carries history: a later value overwrites the answer the file needed at an earlier period end. -
craig-cases as built. Five registry entities behind ONE
DEFAULT_REGISTRY; a new table = acraig-cases-fieldsmodule + the registry tuple +EffectiveRegistries+ the seed intern / walk + verify-seed; boot verify picks it up. Every write boundary isclaim_firstinsideexecute_claimed_txwith a handler-minted id; human-only acts open withdeny_pure_service; every case mutation passesstore::cases::require_case_open(409CaseClosedotherwise);case_householdrows carryactive+added_at(no end date). The authz-case and authz-person rulesets admit GENERIC service reads (georgia-authz-case.json"Service caller: case read"), so a read route that does not deny pure services is open to every service. Financial’s activation readsplacements.permanency_goalthroughPlacementSubsidyEligibility(subsidy_activate.rs:117) and treatsNoneas passing. Cases has no ADR-037 tenant. The over-disclosingpersons/federal-exporthas no production caller. -
Precedents copied. Half-open DATE windows with close-only mutation and the at-date predicate (
subsidy_agreement_terms); the immutable fact row withsupersedes_idand the one-successor index (ssa_benefit_facts); the refuse-on-data re-cut with-- devstack: wipe-before-applyon line 2 and the floor bump last (disposition_recut.sql; the devstack wipes + reseeds once); the seed’s DERIVED discipline (#1761: no new RNG draw; a render change = one "bless" of the seed identity); the service-only read under an allowlist of ONE (outbound_principals.rs, #1827:require_service_caller()thenservice_id() == OUTBOUND_CONSUMER); the S2S budget partition const-asserted under the Standard ceiling (subsidy/age_check.rsDOB_S2S_BUDGET). Terms: "jurisdiction clock" =BusinessClock::for_jurisdiction; "unit stamp" = the ADR-077 admin-unit column fetched before every check; "the battery" = the pre-push hook. -
What already lives elsewhere. craig-placement holds per-child
education_records(grade_levelfree text,enrollment_date/withdrawal_date,iep_flag) andhealth_records(typed visits,diagnosis), both ADR-037-governed — the home for the (b)(9)–(b)(12) / (b)(14) capture (R-C2; NEW columns, not a rename).
Shape: persons identity (U1a) → the demographics ledger (U1b) → the child-fact ledgers (U2) → ICWA (U3) → parents and parental rights (U4) → the permanency ledgers (U5) → the re-point (U6a) → the eligibility field removal (U6b) → close-out (U7).
Design
D1 — Three capture classes, one correction model, one projection rule (R-C5)
Classes. (1) Identity facts on persons, mutated in place under the existing audited update: sex, date_of_birth (+ its
indicator), year_of_birth_declared. A later write is a correction of an identity, never a dated change. (2) Window ledgers —
facts whose value holds over a period: keyed (person_id) (demographics, parentage), (child_person_id, parent_person_id) (the
parent relation), (person_a, person_b) (the sibling relation) or (person_id, case_id) (the child facts, ICWA). (3) Event ledgers — dated occurrences: parental-rights actions, permanency plans,
review events. Every ledger row carries id UUID PRIMARY KEY (v7, handler-minted before the claim), recorded_at TIMESTAMPTZ NOT
NULL DEFAULT now(), recorded_by UUID NOT NULL, supersedes_id UUID NULL (one successor per row: partial unique on
supersedes_id), retired_at TIMESTAMPTZ NULL, retired_reason TEXT (both or neither; CHECK over the closed set
corrected | retracted | order_corrected | order_deleted) and retired_note TEXT (the retraction’s free-text reason); window
rows add effective_from DATE NOT NULL, effective_until DATE (CHECK effective_until IS NULL OR effective_until >
effective_from). The tables below list DOMAIN columns only.
The correction model (every ledger, the same four acts under the ledger’s route):
| Act | Semantics |
|---|---|
|
a NEW fact: an event row, or a window row. An OPEN-ENDED window |
|
a CORRECTION: a new row whose body is the COMPLETE domain state (like a |
|
a RETRACTION (entered in error, no replacement): the row is RETIRED with |
|
the open row’s |
The predecessor named by {id} is read FOR UPDATE inside the act’s tx and must be NON-retired, un-superseded, and carry EXACTLY the
route + body identity (person_id, case_id, and parent_person_id / the sibling pair where the ledger has one); any mismatch or
absence is a typed 404 with NOTHING written — a row of another case, child or parent is unaddressable from this route. Reads
consider retired_at IS NULL rows only: the at-date read effective_from ⇐ d AND (effective_until IS NULL OR d < effective_until)
(a change entered ON the anchor day is the value at the anchor); the overlap read effective_from ⇐ to AND (effective_until IS
NULL OR from < effective_until) for the "at any point during the report period" elements; the CURRENT row = the open (window) or
latest (event) non-retired row by the ledger’s order key with id DESC as the final key (rows inserted in one tx share now()).
Non-overlap is a DB fact on every window ledger: EXCLUDE USING gist (<identity columns> WITH =, daterange(effective_from,
effective_until, '[)') WITH &&) WHERE (retired_at IS NULL) (CREATE EXTENSION IF NOT EXISTS btree_gist in U1b’s migration), so a
POST after a retraction or a close cannot overlap the latest CLOSED row and a boundary correction cannot overlap a neighbour
(either is the typed 409 LEDGER_WINDOW_OVERLAP, nothing written); the one-open rule stays explicit beside it: partial unique
WHERE effective_until IS NULL AND retired_at IS NULL. Event ledgers read at an anchor by the event’s own date (established_on
⇐ as_of, held_on ⇐ as_of, the action date for rights actions — recorded_at is provenance, never the anchor). Event identity =
the row id (a new event is a new root; there is NO chain-root uniqueness — a child has many plans and many reviews). Triggers (BEFORE
UPDATE OR DELETE): refuse_fact_row_mutation() on window tables admits exactly two UPDATE shapes — CLOSE (effective_until NULL →
value, every other column equal by to_jsonb(NEW) - 'effective_until' = to_jsonb(OLD) - 'effective_until') and RETIRE (retired_at
+ retired_reason [+ retired_note] NULL → value, all else equal) — and refuses every DELETE; refuse_event_row_mutation() on event tables admits
RETIRE only. Both functions land in U1b’s migration (the first ledger) and are attached per table.
Every P-C route, READ and WRITE: deny_pure_service(&claims)? FIRST — the ONE service read of P-C data is D7’s allowlisted
projection, and the pre-existing person GET (which service rows of the person ruleset may call) serves NO demographic key to a
service principal (D2); then
the resource ref + action (case_resource_ref with the unit stamp for case routes, person_resource_ref — the persons-PUT
authority — for person routes; Action::Update on writes, Action::Read on reads); writes additionally: client_request_id
REQUIRED, claim_first as the tx’s first statement; every date ≤ today on the jurisdiction clock. Lifecycle vs record: a NEW
fact, a CHANGE and a CLOSE are events in the case’s life: on the CASE routes (D3, D4, D5’s actions, D6) they take
require_case_open(tx) INSIDE the claimed tx, right after claim_first (the court_orders.rs shape; 409 CaseClosed — the fleet
guard; a closed case is never reopened: the transition table admits open → closed | transferred only); the PERSON routes
(demographics, parentage, child_parents, person_siblings) take NO case-open guard — a person’s facts outlive any one case; a
CORRECTION and a RETRACTION are admitted on a closed or transferred case under the same authority (the record may always be
corrected; the audit row carries the act). A window POST is the COMPLETE state of the ledger’s domain columns from
effective_from (every column in the body, NULL = unanswered; the handler never copies from the open row; web / CLI pre-fill from
it); a POST carrying effective_until is the BACKFILL of the acts table. The child of a case route must hold a child-role case_household row in
the case, ACTIVE OR NOT (a late entry or correction after the membership ended is admitted; a child never a member is typed 400
CHILD_NOT_IN_CASE). No new authz resource type or ruleset row.
One captured column per dictionary leaf; the projection derives nothing across elements. Every value-set column is TEXT
carrying the dictionary token — or, for the two vocabularies a {j}-afcars-crosswalk table binds (ethnicity, plan), the FLEET
token — under a CHECK over the quoted set (LogicalType::Text); BOOLEAN is used only where the dictionary
atom is an indicator — present / absent — (the eight race_* responses, dob_estimated_abandoned, parents_abandoned) or where
the column is a ledger flag that is not itself a dictionary value (legal_responsibility, sole_legal_parent, parent_deceased).
Consistency across
elements is the §1355.46 validator’s (P-D, the bulletin rows): the capture refuses nothing between categories — unknown = yes
beside white = yes is a LEGITIMATE partially-known response ((b)(7)(vi): "at least one race unknown"). The map is CODE:
pub const AFCARS_ELEMENT_COLUMNS: &[(&str /* element key incl. date /, Mapping)] in craig-cases-fields, with
enum Mapping { Column { table, column }, DateWithIndicator { table, date, indicator }, Each { table, prefix, categories:
&[(&str / category /, &str / column */)] }, Gated { table, parent, prefix, categories } } — one entry per owned row of EVERY
version (2022, 2028, the owned group-(i) rows). The map is the source of the NAMES; the dictionary is the source of the SHAPE, and
the test (crates/craig-cases-fields/tests/afcars_elements.rs) asserts per key: the mapping’s variant matches the row’s atom
(enum / date / year / integer / text / month_year → Column, exactly one column; <value> + indicator(x)[ →
indicator(y)]DateWithIndicator-style: the value column(s) plus one BOOLEAN per named indicator; each → Each; gated →
Gated), an Each / Gated category set EQUALS the dictionary’s category set exactly and every category column is
<prefix>_<category> (the seven 2028 (b)(3) rows are seven enum rows → seven Column`s, not an `Each), and every named column
exists in the registry (the dictionary is loaded from rulesets/federal/federal-afcars-2020.json by path). Two keys carry a
NAMED OVERRIDE the test reads instead of the shape rule: (c)(1) → persons.birth_year + persons.year_of_birth_declared
person_parentage_facts.parents_abandoned; (c)(2) → the same plus person_parentage_facts.sole_legal_parent. It is STAGED: pub const AFCARS_CAPTURE_STAGE: CaptureUnit (U1a | U1b | U2 |
U3 | U4 | U5, bumped by each landing MR) and owned_after_unit(key) gate which keys must be present and complete, so each unit’s
MR is green alone and the whole owned set is mandatory once U5 sets the stage to U5.
Erratum (2026-09-22): P-C U1b (#1991, R6) — (a)(1)–(a)(4) (the state agency, the report period, the local agency, the record number) are header facts P-D’s projection supplies from jurisdiction config, the period, cases.admin_unit and the record-number scheme; they are not captured columns, not in OWNED_ELEMENTS and not in AFCARS_ELEMENT_COLUMNS.
Erratum (2026-09-22): P-C U1b (#1991, R7) — the (b)(7) race atom is each(<the eight categories>; yes|no), not an indicator: it maps to Mapping::Each { table: person_demographic_facts, prefix: race, categories: <the eight> }, and the two-value response set is stored BOOLEAN (D2’s BOOLEAN ×8 stands); the "indicator" wording above is corrected for race.
Erratum (2026-09-23): P-C U4 (#1994) — the two named overrides are a fifth Mapping variant, Named { columns: &[(table, column)] } (the column set in projection order): (c)(1) and (c)(2) map to Named with the column lists above, and the element test’s NAMED_OVERRIDES pins Named to exactly those two keys and exactly those columns (a Named entry on any other key is a problem — a_named_override_on_an_unlisted_key_is_a_problem).
D2 — Demographics: identity facts on persons (U1a; R-C1) and the demographics ledger (U1b; R-C4, F7, F9, F10, F13)
U1a — persons. (b)(2) gender → sex (CHECK male | female unchanged); craig_reference::Gender → Sex; the six crosswalk
tables gender-- → sex-- in georgia + testonia (their citations.toml / citation-exceptions.toml keys follow;
fleet_vocabularies()); NCANDS gender_to_chsex → sex_to_chsex; parse_never_panics.rs keeps its prop_no_panic! line on the
renamed type. (b)(1) dob_estimated_abandoned BOOLEAN NOT NULL DEFAULT false — the indicator that the date of birth is an
ESTIMATE because the child was abandoned (the child’s own record; independent of the parents' indicator in U4). (c)(1)–(2)
year_of_birth_declared SMALLINT NULL CHECK (1850..2100) — a year known without a date; REFUSED (typed 400
YEAR_OF_BIRTH_WITH_DATE) on a person carrying a date_of_birth, and cleared by the act that sets one; the reported year of a
parent = the derived birth_year when a date exists, else year_of_birth_declared, else blank. ADR-041 § Amendment: birth_year
stays "never wire-supplied", and P-D’s projection serialises a YEAR (never the date) for parents. Migration: RENAME (voluntary
floor bump) + the two adds. persons/federal-export is DELETED in U1a (route, openapi entry, tests, the test-lib client
method; the person_pii_exported event constant stays for P-D).
U1b — person_demographic_facts (window ledger keyed person_id; route POST /v1/cases/persons/{id}/demographics + the four
acts; GET …/demographics?as_of=):
| Column | Values | Element |
|---|---|---|
|
BOOLEAN ×8,
all-or-none CHECK (one answer act); wire |
(b)(7) |
|
|
(b)(8) |
|
|
(b)(4)(i) |
|
|
(c)(3), (c)(4) |
|
text — no CHECK against membership (the blank-unless- |
(b)(4)(ii) |
A demographics POST is a COMPLETE statement of the five facts (every column in the body, NULL where unanswered; nothing is copied
forward — a change to ethnicity alone restates race). The person GET serves the CURRENT row’s values under the existing keys
(race, ethnicity, tribal_affiliation) plus the two membership keys to HUMAN principals; a SERVICE principal’s person GET
(the person ruleset’s service rows — financial’s DOB lookup and the like — are unchanged) carries NONE of the five demographic
keys (no service consumes them today; the exchange outbound-principals projection is its own allowlisted read), and the ledger’s
history GET …/demographics?as_of= denies services outright; the person PUT loses the keys (typed 400 naming the demographics act). persons.race / ethnicity /
tribal_affiliation are DROPPED (floor bump) after a refuse-on-data guard over any non-NULL value (the seven unselected race
categories and the split of unable_to_determine are policy guesses), -- devstack: wipe-before-apply — … (#1964) on line 2.
Followers: race_to_ncands(&RaceResponses) folds unknown / abandoned / declined into ChRacUD; race_to_shines_id(&RaceResponses)
→ u16 — exactly one yes among the five named categories → 1..5 as today, anything else → 6 (a PLACEHOLDER RefVal, ⁂ #692;
joins appendix_b_placeholder_pins) with a lossy fidelity entry keyed race; ethnicity_to_ncands folds the three new values
into the unable-to-determine code; the intake and web forms render a checkbox group over the five plus unknown / declined
(staff forms add abandoned). Crosswalk: ethnicity—oohc_b8 and ethnicity—assist_b4 map hispanic → yes, non_hispanic → no,
the rest identity — no collapse rows; ethnicity—oohc_e12 / e17 / h6 / h11 (value set yes|no|unknown|declined) keep ONE collapse
row abandoned → unmapped citing the (e)(12) / (h)(6) sentence.
Erratum (2026-09-22): P-C U1b (#1991, R1) — the person CREATE refuses race / ethnicity / tribal_affiliation exactly as the PUT does (the same typed 400 DEMOGRAPHICS_VIA_LEDGER, naming POST /v1/cases/persons/{id}/demographics): the ledger is the one write path. craig-web has no create-with-demographics form, so no create → demographics chaining exists.
D3 — The child-fact ledgers (U2)
Window ledgers keyed (person_id, case_id) under POST /v1/cases/cases/{case_id}/children/{child_id}/<segment> + the four acts
GET …/<segment>?as_of=:
| Ledger | Segment | Domain columns | Elements |
|---|---|---|---|
|
|
|
(b)(13)(i)–(iii) |
|
|
|
(b)(15)–(16) |
|
|
|
(b)(17) |
|
|
|
(b)(19) |
person_siblings (window ledger, no case): person_a, person_b (CHECK person_a < person_b); POST /v1/cases/persons/{id}/siblings
(body {sibling_person_id, effective_from}; person update; stored as (min, max); a missing person is 404) + the four acts (an
erroneous link is RETRACTED, an ended one CLOSED); GET …/siblings?as_of= = the at-date read on either side. P-B counts these for
(b)(20) / (b)(21). Web: a "Federal facts" panel per child on the case detail (data / empty / error states; the correction and
retraction acts behind a per-row "correct" / "retract"); CLI craig case child-facts <segment> set|correct|retract|close …; the
seed derives one row per placed child from the scenario.
D4 — ICWA at the 2028 superset (U3; R-C6)
child_icwa_facts (window ledger keyed (person_id, case_id), segment icwa-facts; every column NULL until answered):
| Column | Values | Element | Gate CHECK |
|---|---|---|---|
|
|
2022 (b)(3) |
— |
|
|
2028 (b)(3)(i)–(ii) |
— |
|
|
(b)(3)(iii) |
— |
|
|
(b)(3)(iv)–(vi) |
— |
|
|
(b)(3)(vii) |
— |
|
|
(b)(4)(iii)–(iv) |
date ← |
|
|
2022 (b)(5)(i)–(ii) |
date ← |
|
|
2022 (b)(6) ≡ 2028 (b)(5)(i) / (b)(5)(ii) |
NO gate on
|
|
|
(b)(5)(iii) |
— |
|
|
(b)(6)(i)–(iii) |
date, text ← |
|
|
(i)(9) |
← |
persons.icwa_eligible is DROPPED (floor bump) behind a refuse-on-data guard: any icwa_eligible = true row refuses the migration
(a synthesized ledger row would guess WHICH ICWA fact the flag meant; pre-1.0, the devstack wipes). Placement matching’s
icwa_person (ADR-073 § Amendment) reads the case’s CURRENT child_icwa_facts row with this precedence: court_determination =
yes_icwa_applies → true; court_determination = no_icwa_does_not_apply → false; otherwise (no_court_determination or NULL) →
reason_to_know = yes OR icwa_applies = yes (25 CFR 23.107(b)(2): a child with reason to know is treated as an Indian child UNTIL
the court determines otherwise — the determination, either way, is final over the presumption); no row → false. cases.icwa_flag
keeps feeding the icwa_case field — the case-level triage flag carried from the referral, a different fact. Group (i)'s
per-removal / per-arrangement / per-exit rows are P-B’s (erratum requested).
Erratum (2026-09-23): P-C U3 (#1993) — the precedence above is 25 CFR 23.107(b)(2), federal text binding every jurisdiction, so it is not craig-cases Rust: it is the federal decision ruleset rulesets/federal/federal-icwa-status.json (ADR-072 § Amendment — #949), cited row by row to 25 CFR 23.107, which craig-cases' placement-facts projection always consults through craig-rules (rule set federal-icwa-status, relaying the acting worker, budget ICWA_STATUS_BUDGET = 2 s inside placement’s facts-read budget) over the case’s current child_icwa_facts row — a closed or retracted ledger reads as no row, every input null — and icwa_person_precedence_is_total_over_the_value_lattice evaluates the committed ruleset in-process in craig-rules; a principal whose rule_evaluation rows do not let it create an evaluation (the realm-flat readonly auditor) now receives the typed 403 rules-consult-denied from placement-facts (ADR-073 § Amendment); the PlacementFacts wire and placement’s person-OR-case table are unchanged. The gate CHECKs are one-way and NULL-safe — CHECK (<dep> IS NULL OR <gate> IS NOT DISTINCT FROM '<tok>'), garde present_only_if: a dependent may be present only when its gate holds the enabling token, a gate stands without its dependent, and tribe_notified is ungated.
Erratum (2026-10-11, #2004): 2028 (b)(5)(i) and (b)(5)(iii) ask whether notice was sent "prior to the first child custody proceeding", which tribe_notified and parent_or_indian_custodian_notified do not record, so the tribe_notified ≡ 2028 (b)(5)(i) and the parent_or_indian_custodian_notified → (b)(5)(iii) rows above no longer hold: plan afcars-2028-series D4 adds the qualified columns tribe_notified_before_first_proceeding and parent_or_indian_custodian_notified_before_first_proceeding, tribe_notified answers 2022 (b)(6) only, and the unqualified parent column is retired unread (no answer is copied into a qualified column).
D5 — Parents and parental rights (U4; R-C8, F11, F12, F15)
-
person_parentage_facts(window ledger keyedperson_id— the CHILD; route…/persons/{id}/parentage+ the four acts):parents_abandoned BOOLEAN NOT NULL DEFAULT false(the (c)(1) / (c)(2) indicator — the parents' identity unknown; independent of the DOB indicator) andsole_legal_parent BOOLEAN NULL(ASSESSED: exactly one parent or legal guardian holds legal responsibility; NULL = not assessed). -
child_parents(window ledger keyedperson_id— the child; route…/persons/{child_id}/parents+ the four acts;GET …/parents?as_of=):parent_person_id,role mother|father|legal_guardian|putative_parent,legal_responsibility BOOLEAN(CHECKrole <> 'putative_parent' OR NOT legal_responsibility— the CFR excludes putative parents from (c)(1)–(2)); one open row per (child, parent). Reads for (c)(1) / (c)(2): the legally-responsible rows in force at the anchor ordered by role rank (mother,father,legal_guardian),effective_from,recorded_at,id(total; the CFR’s "first" / "second" carry no meaning, ⁂ #1073); (c)(1) = the first row’s year, elseabandonedwhenparents_abandoned, else blank; (c)(2) = the second row’s year, elsenot_applicablewhensole_legal_parent, elseabandonedwhenparents_abandoned, else BLANK (one recorded parent is not evidence that no second exists). A parent’s year = D2’s rule on the parent’s ownpersonsrow; (c)(3) / (c)(4) =tribal_memberin force at the anchor on the demographics ledger of the firstrole = mother(resp.father)child_parentsrow in force at the anchor by the same total order, REGARDLESS oflegal_responsibility(the CFR asks the biological or adoptive mother / father, not the legal guardian); no such row → blank. -
parental_rights_actions(event ledger keyed(person_id, case_id, parent_person_id); route…/cases/{case_id}/children/{child_id}/parental-rights-actions+ the three event acts;GET …):effective_on DATE NOT NULL— the date the row is in force from: on avoluntary/involuntaryrow the EARLIEST ofpetition_filed_on,terminated_on,died_on(CHECK), on anot_applicablerow the assessment date; the anchor read iseffective_on ⇐ as_of, and a component date later than the anchor projects BLANK (a petition on file with the termination still pending at the anchor answers (c)(5)(i) and leaves (c)(5)(ii) blank);kind voluntary|involuntary|not_applicableNOT NULL —not_applicableis the CFR’s own ASSESSED response ("no termination / modification"; CHECK: nopetition_filed_on, noterminated_on, no flags —parent_deceased/died_onARE admitted, a death is a fact independent of any termination), and NO row means MISSING (blank), nevernot_applicable;petition_filed_on DATE(NULL = no petition);parent_deceased BOOLEAN NOT NULL+died_on DATE(iff deceased; CHECK);terminated_on DATE(NULL = pending); CHECK: avoluntary/involuntaryrow carries at least one ofpetition_filed_on,terminated_on,died_on(soeffective_onis always defined);court_order_id UUID NULL(else an order of THIS case withorder_type = termination_of_parental_rights, typed 400);parent_person_idmust hold a non-retiredchild_parentsrow for(child, parent)(typed 400PARENT_NOT_LINKED— the (c)(5) projection iterates D5’s parents); order key per parent(recorded_at, id); the six ICWA flagsyes|no(involuntary:beyond_a_reasonable_doubt,qualified_expert_witnesses,active_efforts; voluntary:executed_in_writing,recorded_before_a_court,accompanied_with_a_certification; CHECK: the other kind’s three NULL). The flags are admitted only when the case’schild_icwa_factsrow IN FORCE ATeffective_onhascourt_determination = yes_icwa_applies— an at-date read, so a historical action stays enterable and correctable after the determination changes (a cross-table handler rule, typed 400). The court-order act does NOT write action rows. Projection per parent from the row in force at the anchor: (c)(5) =kind— a parent who died with NO termination isnot_applicablewith (i) / (ii) BLANK (the CFR’s explicit "leave (c)(5)(i) and (ii) blank" instruction governs; ⁂ #1073 that the "indicate deceased" sentence might be read otherwise); on avoluntary/involuntaryrow (c)(5)(i) =deceasedwhenparent_deceased, elsepetition_filed_on(blank when none), and (c)(5)(ii) =died_onwhenparent_deceased, elseterminated_on(blank while pending). R-C11: the dictionary’s (c)(5)(i) armc5i_petition_filedbecomesc5i_petition_filed_or_parent_deceasedand (c)(5)(ii)'sc5_terminatedreads "terminated or deceased" (the CFR’s "indicate deceased" / "enter the date of death" sentences) — the P-A2 follow-up #1999 under the existing predicate grammar, landed BEFORE P-D reads the rows.
Erratum (2026-09-23): P-C U4 (#1994) — the (c)(5) projection’s parent set is every parent with a non-retired child_parents row for the child whose effective_from is on or before the anchor — in force at the anchor OR ended before it (a terminated parent’s closed link stays in the file) — of ANY role (the CFR asks "biological, legal and/or putative"; putative_parent ranks fourth in the order), ordered by the (c)(1) total order over each parent’s latest such row; PARENT_NOT_LINKED is date-free — a live link, open or closed, admits the action on record and on correction.
Erratum (2026-09-23): P-C U4 (#1994) — a child is never its own parent: child_parents carries chk_child_parents_not_self CHECK (parent_person_id <> person_id), and the record route refuses a parent_person_id equal to the path child with the typed 400 bad-request (field parent_person_id) before any write — the sibling self-link precedent; parental_rights_actions carries no self CHECK (PARENT_NOT_LINKED over a self-refusing link implies it).
Erratum (2026-10-07, #2006): the ICWA flags are gated at the TERMINATION, not at effective_on — the case’s child_icwa_facts row in force at terminated_on must have court_determination = yes_icwa_applies, and only an action with no terminated_on (a pending termination) reads the row in force at the resolved effective_on; the typed 400 names the field it read. The federal text places the findings at the termination itself (89 FR 96589, §1355.44(i)(2)(ii)-(iii); (i)(3) asks about the consent to termination), so a petition filed before the determination is admitted when the termination comes after it, and an action whose termination falls after the determination stopped applying is refused, a correction that adds such a date included (ruled 2026-10-06, option A). The read stays at-date: a historical action keeps its flags after the determination changes.
D6 — The permanency ledgers (U5; R-C7, F4, F16, F17, F18, F21)
-
permanency_plans(event ledger keyed(person_id, case_id); route…/children/{child_id}/permanency-plans+ the three event acts;GET …= the history):planover the fleetPermanencyGoal(KEPT — the (f)(1) crosswalk stands,emancipation → unmapped⁂ #1073, the activation literal"reunification"untouched),established_on DATE; each plan established is a NEW root ((f)(1)per_plan, (f)(2) its date); CURRENT = the non-retired row with the latest (established_on,recorded_at,id). Every act publishescase.permanency_plan_established { event_id, person_id, case_id, action: established|corrected|retracted, plan, established_on, supersedes_id, act_id, act_at, current: { event_id, plan, established_on } | null }in the same tx —act_ida v7 minted per ACT andact_atthe act’s tx time (a retraction publishes the retracted row’sevent_idunder a NEWact_id, so it never ties with the row’s ownestablishedmessage);currentcomputed AFTER the change, so a consumer projects the authoritative state without a call and applies the LATEST message per(person_id, case_id)by(act_at, act_id), discarding older ones (redelivery- and reorder-safe). Migrationpermanency_plans: REFUSES on data whencase_planshas ANY row (a per-case goal cannot be honestly split into per-child plans; pre-1.0;wipe-before-apply), thenDROP COLUMN case_plans.permanency_goal(floor bump). Existing PLACEMENT goals are never migrated either: an environment carryingplacements.permanency_goalvalues also carries case plans (every seed does; production carries no data), so it refuses here and is wiped — this guard is cases-local and cannot see placement; the placement side is closed by P-B’s own refuse-on-data overplacements(the program’s R2), and until P-B lands a deployment that wiped for U5 holds no placement goal either; the seed’s derived per-child plans are what financial reads after U6a — no child that refused activation on a placement goal passes on an empty ledger; thepermanency_goalkey leavescase.plan_created(craig-reporting’s test payload mirrors it); the web case-plan form loses the select and the child panel gains "Establish plan"; CLIcraig case child-facts permanency-plan set|correct|retract; the seed derives per-child rows from its scenario. -
child_review_events(event ledger keyed(person_id, case_id)):kind periodic_review|permanency_hearing,held_on DATE,court_order_id UUID NULL— (f)(3) / (f)(4)repeating_datesper child. The court-order create act gainshearing: { held_on, children: [person_id] }— REQUIRED forreview_hearing(→periodic_review) andpermanency_hearing(→permanency_hearing), REFUSED (typed 400) on any other type — and writes one row per child (each holding achildmembership) in the SAME claimed tx;UpdateCourtOrderRequestgains the optionalhearing(omitted = unchanged; a type change INTO a hearing type without it is typed 400; a type change OUT of a hearing type retires the rows):update_court_orderon a type / hearing change RETIRES the order’s rows (reasonorder_corrected) and writes the new set in the same tx;delete_court_order(soft-delete) RETIRES them (reasonorder_deleted); administrative reviews without an order:POST …/children/{child_id}/review-events. The three event acts apply to EVERY review row, order-written or not (a correction’s successor COPIEScourt_order_id), and an order update / delete retires EVERY non-retired row carrying itscourt_order_id— corrected successors included — before rewriting; so an order-written row on a closed case (where the order acts are refused by the lifecycle guard) is corrected directly like any other, and a later order update supersedes that correction wholesale. -
contactsgainsvisited_child_id UUID NULL REFERENCES persons(must hold achild-rolecase_householdrow in the contact’s case —CHILD_NOT_IN_CASEotherwise) andlocation childs_residence|other_location— truth table:(visited_child_id IS NULL) = (location IS NULL); when set,contact_type IN ('home_visit','office_visit','school_visit'); a home visit with a parent only sets neither;phone_call/video_call/collateralcan never set them; existing rows carry NULL; the create AND update acts set them. (f)(5) =occurred_aton the jurisdiction clock for rows with a visited child; (f)(6) =location. Additive.
Erratum (2026-09-23): P-C U5 (#1995) — D1’s "`court_order_id` copied from the predecessor when omitted" narrows to ALWAYS copied: court_order_id is provenance only the court-order act writes and is never stated by a request (a review body carrying court_order_id is a 422; the field is read-only and served on every row), so an administrative POST …/review-events row carries none and a correction’s successor always keeps its predecessor’s (EventFacts::inherit, which replaced with_event_on).
Erratum (2026-09-23): P-C U5 (#1995) — act_at is the clock after the per-case plan lock, not the act’s tx time: the plan ledger’s publish locks the case row FOR NO KEY UPDATE, THEN reads current and clock_timestamp() as act_at, then mints act_id, so acts on one case’s plans serialize and act_at follows their order — the premise of the consumer’s latest-by-(act_at, act_id) rule, which a tx START time does not give two concurrent acts.
Erratum (2026-09-23): P-C U5 (#1995) — contacts joins the field registry: a NEW craig-cases-fields::contacts module (every column, Plaintext) in DEFAULT_REGISTRY (eighteen tables), since D8’s "every new column takes a FieldSpec`" and the element test demand it for `visited_child_id / location.
Erratum (2026-09-23): P-C U5 (#1995) — the CLI is craig case permanency-plans <case> <child> record|correct|retract|get and craig case review-events <case> <child> record|correct|retract|get on U4’s generic event commands (the case parental-rights-actions precedent), replacing “craig case child-facts permanency-plan set|correct|retract”; the court-order commands gain --hearing-held-on + a repeatable --hearing-child, the contact commands --visited-child + --location (+ --clear-visit on update).
D7 — The plan projection and financial’s re-point (U6a) and the eligibility field removal (U6b; F3, F22)
-
GET /v1/cases/cases/{case_id}/children/{child_id}/permanency-plans/current?as_of=— the ONE service read:require_service_caller()thenservice_id() == "craig-financial"(theOUTBOUND_CONSUMERshape);200 { event_id, plan, established_on }= the non-retired row with the latest (established_on,recorded_at,id) among rows withestablished_on ⇐ as_of, or204when none;no-store. P-D’spersons/afcars-exportis its own allowlisted projection. -
Financial (U6a):
CasesClient::current_permanency_plan(child_id, case_id, as_of)on the existing service-token client underPLAN_S2S_BUDGET: Duration = 4 swith its OWN const-assert for the ACTIVATION route’s legs — placement 5 s +DOB_S2S_BUDGET4 s +RULES_CONSULT_BUDGET4 s +PLAN_S2S_BUDGET4 s +ceiling::MARGIN_MS2 s = 19 s < the 20 s Standard ceiling (activation runs no party sweep:subsidy_activate.rs:130-132); the existing ENROLLMENT assert (age_check.rs, which carriesPARTIES_S2S_BUDGETand already sums to 19 s) is untouched — the plan leg is NOT added to it; elapse → its own typed 503 (the leg’s name in the detail), never the generic 504. The re-point site is the F7 arm ofactivate_subsidy_agreement(subsidy_activate.rs:113-123): afterverify_guardianship_endingreturns, the handler calls it witheligibility.child_id,eligibility.case_id,as_of = transfer_on(the derived end date);Err/ timeout → the fail-closed 503;204→ passes;plan == "reunification"→ the existing typed 400.verify_guardianship_endingand the F9 termination witness are untouched. The testreunification_goal_is_refusedkeeps its ASSERTION (400 +reunification); its fixture moves the goal fromPlacementBuilder::permanency_goalto one casespermanency-plansrow (planreunification,established_on= the placement start) through the harness’s case-update client.PlacementSubsidyEligibility.permanency_goalis STILL SERVED in U6a. -
U6b removes
PlacementSubsidyEligibility.permanency_goal(contract, placement’s producer, financial’s fixture) — its only reader is gone. Recorded Q3 exception: serving the field for one more unit and the drain step exist ONLY so the reunification refusal is never dark during a rolling deploy (the maintainer’s F3 ruling on rev 2); no consumer of the field survives U6a. Rollout (the reunification refusal is never disabled): cases (U5 + U6a) → financial (U6a) → DRAIN every old financial instance (an old financial deserialises a missing field asNoneand passes) → placement (U6b). P-B keeps the column drop and the portal label; recorded as P-B’s input: the portal’s permanency-goal label needs a placement-side projection ofcase.permanency_plan_established(the event carriescurrent) before the column drops.
Erratum (2026-09-23): P-C U6a (#1996) — the service read answers exactly the two answers above, 200 or 204: the allowlist guard runs before any read, then the at-anchor read over (case, child) takes the one row — no case-existence 404 and no child-membership 400 (the ledger routes' child-not-in-case); an unknown case or a non-member child holds no live row (every plan write requires membership) and answers 204, so the seeded guardianship fixtures' pinned children, which are not household members, keep activating.
D8 — Registry, seed, docs, governance, followers
-
Every new column takes a
FieldSpec; every new table acraig-cases-fieldsmodule +DEFAULT_REGISTRYtuple
EffectiveRegistriesfield + the seed intern / walk + verify-seed. SchemePlaintextthroughout (the cases posture: only identifiers are encrypted; the sensitive-fact posture is the follow-up #2000, R-C10). The seed DERIVES every new value from existing scenario facts (the race response = the former draw’s category;unable_to_determine→unknown;sex= the former value; per-child plans from the former case goal); the identity flips once per unit — one bless per MR. -
data-model-cases.adocis the canonical page for every unit (the new tables, the persons re-cut, the dropped columns, the acts and events, the element → column table rendered fromAFCARS_ELEMENT_COLUMNS); ADR-078 carries the four decisions only. -
ADR-037: no P-C table or column lands on a governed surface (the only tenant is placement’s
foster_home_portal); U7 records the statement in ADR-078. The caregiver portal shows none of the new facts. -
ADR-078 also records that ledger columns are SCHEME-FROZEN at
Plaintext: the two triggers admit no other UPDATE shape, so the ADR-049rewrite-schemetool’s per-rowUPDATE … SET <base> …would be refused on them; the R-C10 follow-up #2000 names the extra admission it would need (a livecrypto_field_rewritesrow forTG_TABLE_NAMEundercurrent_user, thescheme_rewrite_fence()owner test) before any ledger column may move toOpaque. -
Followers per unit, named in the unit issue: intake DTO /
validation.rs/report.html/ i18n, the Rust SDK +refval.json(the Python / TypeScript SDKs carry demographics untyped — vectors only), SHINES mapper + fidelity, the exchange partner mappers + the outbound-principals projection, matching signals +georgia-person-match.json, web, CLI, test-lib builders +given, seed + verify-seed, NCANDS (ncands.rs+ncands_mapping.rs+ncands_child_rows), craig-reporting’scase.plan_createdtest payload, the api-docs regeneration.
Erratum (2026-09-23): P-C U2 (#1992) — the EffectiveRegistries ledger field is omitted: no boundary consumes an all-plaintext ledger’s registry, so EffectiveRegistries carries no ledger field (U1b’s person_demographic_facts field is removed too; eleven fields also broke the 256-byte pass-by-value lint); DEFAULT_REGISTRY still carries every ledger (boot verification, verify-seed), and from_parts is replaced by with_persons(self, persons).
D9 — What this plan does not do
Health and education b)(9)–(b)(12), (b)(14 — P-B captures them on placement’s records with NEW columns (R-C2); (b)(18) and
the assistance cohort — financial (P-D / P-E); (b)(20) / (b)(21) — P-B over person_siblings; the AFCARS cases projection — P-D;
the placements.permanency_goal drop and the portal label — P-B; no fleet re-cut of PermanencyGoal; no encryption of the new
columns (R-C10); no migration of existing goals or ICWA flags into the ledgers (refuse-on-data, pre-1.0).
Units
Each MR Relates to #1964 and Relates to #949; U1a–U7 Close their own unit issue; U7 also Closes #1964.
| MR | Issue | Scope | W |
|---|---|---|---|
U0 |
— |
This page (Active nav; every |
1 |
U1a |
#1990 |
PERSONS IDENTITY (D2): |
2 |
U1b |
#1991 |
THE DEMOGRAPHICS LEDGER (D2): |
5 |
U2 |
#1992 |
THE CHILD-FACT LEDGERS (D3): the four ledgers + |
3 |
U3 |
#1993 |
ICWA (D4): |
3 |
U4 |
#1994 |
PARENTS AND PARENTAL RIGHTS (D5): |
3 |
U5 |
#1995 |
THE PERMANENCY LEDGERS (D6): |
3 |
U6a |
#1996 |
THE RE-POINT (D7): the service-only read, |
2 |
U6b |
#1997 |
THE FIELD REMOVAL (D7): |
1 |
U7 |
#1998 |
CLOSE-OUT: ADR-078 Accepted, the governance statement, |
1 |
Weight 24 against the program page’s 8 — U0 records the erratum. Every MR green alone; CHANGELOG per MR (pre-1.0 Changed /
Removed: the sex rename, the demographics wire, icwa_eligible, case_plans.permanency_goal, persons/federal-export,
PlacementSubsidyEligibility.permanency_goal, the court-order hearing requirement, the person PUT losing its demographic keys);
// @axis: on every new test; each destructive migration bumps the floor in its own file and names the rollback (N−1 images AND
a restore).
Test matrix (by risk)
-
Evil (each a typed refusal, named
a_…_is_refused/…_is_a_404): a service principal reading OR writing any ledger; asupersedes_idof another case, child or parent (404, nothing written); a correction naming a retired or already-superseded row; a same-day re-entry throughPOST(refused, names the correction act); a partial race answer (three of eight columns); a second open window row for one identity; an UPDATE to a closed window row other than RETIRE, any UPDATE to an event row other than RETIRE, any DELETE (the two triggers); a dependent column without its gate; a hearing order withouthearing,hearingon a non-hearing type; a child never a member of the case; a NEW fact, change or close on a closed case (409CaseClosed); a declared year beside a date of birth; anot_applicablerights row carrying a date or a flag; an ICWA flag when noyes_icwa_appliesdetermination was in force at the action’s date; a phone call carrying a visited child; a putative parent with legal responsibility; the plan projection under every principal but financial. -
Sad:
a_fact_changed_on_the_anchor_day_is_the_value_at_the_anchor;a_correction_keeps_the_window_and_hides_the_predecessor;a_retracted_open_row_leaves_no_open_row_and_the_ledger_reopens_by_post;an_overlap_read_finds_a_source_that_applied_mid_period;a_child_with_no_plan_answers_204_and_activation_passes_as_before;unreachable_cases_refuses_activation_fail_closed;a_hung_cases_lookup_is_the_plan_legs_503_inside_the_ceiling;no_icwa_does_not_apply_overrides_reason_to_know;icwa_person_is_true_on_reason_to_know_before_any_determination;a_second_parent_absent_is_blank_not_not_applicable;sole_legal_parent_makes_c2_not_applicable;no_rights_row_is_blank_and_a_not_applicable_row_is_not_applicable;a_deceased_parent_projects_deceased_and_the_date_of_death;a_deceased_parent_with_no_termination_projects_not_applicable;a_boundary_correction_that_overlaps_a_neighbour_is_a_409;a_post_after_a_retraction_cannot_overlap_the_closed_history;a_backfill_post_with_effective_until_fills_a_free_gap;a_visited_child_outside_the_contacts_case_is_refused;an_action_on_an_unlinked_parent_is_refused;an_order_update_supersedes_a_direct_correction_of_its_rows;a_parent_without_a_date_reports_the_declared_year;a_historical_action_keeps_its_flags_after_the_determination_flips;equal_dates_and_timestamps_order_by_id;an_updated_hearing_order_retires_and_rewrites_its_review_rows;a_deleted_order_retires_its_review_rows;a_late_entry_for_an_ended_membership_is_admitted;a_correction_and_a_retraction_are_admitted_on_a_closed_case;existing_case_plans_refuse_the_plans_migration;existing_icwa_eligible_rows_refuse_the_icwa_migration;unknown_yes_beside_white_yes_is_admitted. -
Happy:
every_owned_leaf_maps_to_its_full_column_set(crates/craig-cases-fields/tests/afcars_elements.rs: expected columns DERIVED from the dictionary’s value sets by the naming rule, per version, staged byowned_after_unit);the_reunification_refusal_and_its_assertion_are_unchanged;the_plan_event_carries_the_current_state_and_a_retraction_outranks_its_own_established_message;a_service_person_get_carries_no_demographic_keys;a_termination_pending_at_the_anchor_projects_the_petition_only;the_hearing_act_writes_one_review_event_per_child_in_the_order_tx;the_seed_derives_demographics_without_a_new_draw;the_child_ethnicity_tables_verify_without_unmapped_rows;race_to_ncands_folds_unknown_abandoned_declined_into_ud;the_shines_mapper_records_multi_race_as_lossy_refval_6;the_person_get_serves_the_current_demographics_row. -
Property (DB-free):
race_responses_roundtrip;window_change_and_correction_never_overlap_or_orphan;the_at_date_and_overlap_reads_agree_on_a_single_day_period;parent_ordering_is_total_and_stable;icwa_person_precedence_is_total_over_the_value_lattice. -
Live: the dana.county e2e extended with one child’s federal facts, a plan, a correction and a retraction;
child_criteria_raceon the newicwa_person.
Verification
-
Per MR: fmt, clippy, budgets at their locks,
cargo xtask rules check,policy drift,contested-census,check-docs,plan-lint,verify-seed --expect keyed, the battery. -
Close-out greps (ACTIVE code only —
--glob '!/migrations/' --glob '!CHANGELOG.adoc' --glob '!docs/'; migration history is immutable and carries the old names by design):rg -n 'icwa_eligible|Option<Race>|unable_to_determine|federal_export| federal-export' crates services tools sdksEMPTY — U1a removes everyfederal[-_]exportmention it leaves today (theperson_pii_exporteddoc comment inevents.rs, the twopersons_ssn_release.rscomment sites, theFederalExportRequestDTO
its 5 000 cap incraig-cases-contracts/src/persons.rs, thepersons_ssn.rstest, thecraig-searchcomment + test name) and U1b theunable_to_determineexamples incraig-reporting-contractsafcars_crosswalkandafcars_surface/tests.rs(the collapse rows they illustrate retire);rg -n 'permanency_goal' services/craig-cases/src crates/craig-cases-contracts crates/craig-placement-contracts --glob '!/field_ownership.rs'EMPTY (the governed tokenplacements.permanency_goalis P-B’s column and lives until P-B drops it);rg -n '\bgender\b' crates/craig-cases-*/src services/craig-cases/srcEMPTY (partner wire fields named by their specs are exempt and listed in ADR-078).Erratum (2026-09-23): P-C U1b (#1991) — the retired
unable_to_determinetoken stays as a test literal where a test pins its refusal (intake validation, the craig-web demographics BFF, the CLI) or its unanswered reading (craig-web’s intake report view), and in thecraig-referenceVARIANTS test doc recording the re-cut; U7’s grep excludes those test and doc literals rather than deleting the tests.
Rollout + risks
Order per environment: promote the crosswalk family (sex--*, the ethnicity re-cut) BEFORE any reporting image — nothing reads it
before P-D; roll cases with each unit’s gate (U1a, U1b, U3, U5 are destructive: rollback = N−1 images AND a restore; U1b, U3, U5
REFUSE on existing demographics / ICWA flags / case plans — pre-1.0, no production data exists; the devstack wipes + reseeds once
per such unit); then cases (U6a) → financial (U6a) → drain old financial → placement (U6b). Risks — the U1a / U1b follower sweep is
wide (partner mappers, SHINES fidelity, intake forms): mechanical, each site named in the issue; the Race / Ethnicity / Sex
re-cut invalidates every fixture literal in the tree: the rg census runs before the battery; the correction model is new fleet
vocabulary (supersede / retire / close): ADR-078 defines it once and every ledger cites it; the parent ordering is a convention:
⁂ recorded; P-B’s portal label depends on U5’s event: recorded as P-B’s input; the R-C11 dictionary erratum must land before P-D.
Rulings requested (recommendation first; U0 records each as approved and D1–D9 are then binding)
-
R-C1
persons.gender→sexfleet-wide (the CFR’s fact under its name; pre-1.0) — vs keepinggender. -
R-C2 (b)(9)–(b)(12), (b)(14) are P-B’s, as NEW columns on placement’s
education_records/health_records— vs a second cases home. Program erratum: P-B’s scope + weight. -
R-C3 (b)(17) is a cases capture of all eight sources (four are outside financial’s ledger) — vs a financial derivation. Erratum on `rulesets.adoc’s D4 prose and the program page.
-
R-C4
Ethnicityre-cut to five with refuse-on-data — vs keepingunable_to_determine → unmapped. -
R-C5 three capture classes under ONE correction model (supersede / retire / close; two admitted UPDATE shapes) — vs UPDATE-in-place or history rows for every fact.
-
R-C6 ICWA at the 2028 superset now;
icwa_eligibledropped behind refuse-on-data;icwa_person= the determination when one exists, else reason-to-know OR applies (ADR-073 amendment) — vs the 2022 shape only / synthesized ledger rows. -
R-C7
case_plans.permanency_goaldropped behind refuse-on-data;PermanencyGoalkept — vs splitting the case goal per child. -
R-C8 parents by role with a total ordering; the year from
birth_year, elseyear_of_birth_declared— vs a captured ordinal. -
R-C9 (b)(19) a captured count AND
person_siblingsfor P-B — vs a count alone. -
R-C10
Plaintextfor every new column; a follow-up issue for the sensitive-fact posture — vsOpaqueon the parenting columns. -
R-C11 the (c)(5)(i)–(ii) deceased-parent arms corrected in the dictionary as a P-A2 follow-up before P-D — vs projecting around the current arms.
-
Errata requested on the program page: the P-C weight (24, not 8); P-B gains the health / education capture and group (i)'s per-removal / per-arrangement / per-exit rows; (b)(17) is P-C capture; A5’s
effective_toreadseffective_until.
Review log
| Round | Vendor | Resolved model | Verdict |
|---|---|---|---|
1 |
Anthropic — three fresh contextless lens subagents + an anchor verifier over rev 1 |
Claude Fable 5.1 |
no-ship — 23 blockers
folded into rev 2 (the four xrefs; the SHA removed; the missing acts and their authority; the two triggers; the column typing and route
segments; the code home of the element map and its test crate; the re-point site and the fixture; the eligibility field removed;
|
gate |
maintainer (plan mode; rev 2 rejected 2026-09-22, rev 3 APPROVED 2026-09-22 with rulings R-C1–R-C11 as recommended) |
— |
rev 2: no-ship — 27 findings folded into rev 3 (service reads denied; predecessor ownership; the
rollout order and the U6 split; refuse-on-data for existing goals and ICWA flags; the determination precedence; the demographics
ledger with history; the correction model with same-day and post-closure corrections; membership vs eligibility; the two abandoned
indicators; assessed absence; the deceased-parent projection + the dictionary erratum; the declared year; close / retract acts;
date-anchored ICWA gating; the hearing date; court-order update / delete; the visit truth table; event identity and retraction;
the case-open guard and ended memberships; the event’s |
check |
Anthropic — two fresh contextless auditors over rev 3 (a 27-finding checklist; an adversarial gap hunt) |
Claude Fable 5.1 |
checklist: 21 addressed / 6 partial / 6 contradictions; adversarial: NO-SHIP, 15 findings — all folded before this presentation
(window-boundary corrections + the |
verify |
Anthropic — one fresh contextless verifier over the folded text against the combined 27 + 15 + gaps list |
Claude Fable 5.1 |
4 residues + 5 wording contradictions, all folded (the correction body’s completeness; CLOSE-then-INSERT on a change; |
2 |
open — run by the maintainer through another vendor’s model |
open |
open |