Plan: Identity-Based Placement Matching — Child Facts from the Authoritative Record (#972)
Archive record
Merge requests: !1608 (U0 plan page + ADR-073, Relates to #972) + !1609 (MR-1, Closes #1774) + !1611 (MR-2, Closes #1775) + !1612 (MR-3, Closes #1776 / #1779) + the close-out MR (MR-4, Closes #1777 / #972 / #1785)
2026-09-12 — GET /v1/placement/matching is a search FOR A CHILD: case_id + child_id (the attribute params
deleted pre-1.0), the age / ICWA / sibling facts read synchronously from craig-cases' data-minimised
placement-facts projection under the acting worker’s relayed credentials (ADR-073: no PII copy into placement,
no event-fed replica, fail-closed and bounded at 4 s), the criteria decided by the tier-1 {j}-placement-eligibility
v1.3 child_criteria tables (GA + TX; ICWA person OR case ⇒ require, siblings ≥ 2 ⇒ prefer, ⁂ #1073) and
applied MECHANICALLY (require a WHERE arm, prefer a rank prefix) by the ONE consult that also answers the #1721
scope; both activation sites prove the same facts (a child leg with or without a home, CHILD_CRITERIA_VIOLATED
naming the arm, re-checked under the home lock); craig-web’s case → child cascade, the CLI, the test-lib, the e2e
and the placement / CLI / financial test corpora moved onto real cases. Follow-ups #1778–#1783.
Status
Done (2026-09-12) — !1608, !1609, !1611, !1612
- Anchors
-
#972 (epic &94; children #1773 U0, #1774 MR-1, #1775 MR-2, #1776 MR-3, #1777 MR-4), ADR-073 (Proposed at U0), ADR-072 (tier doctrine — the child criteria are tier 1), ADR-068 (ceilings; Appendix A hop census), ADR-062 (replay precheck ordering), ADR-058 (
rule_evaluationsretention), the #1721 as-built (matching-scope, the one consult per search MR-3 extends), the #1107 / #1158 projection posture (data-minimised reads, never the whole PII row), #1660 / #1666 (the tier-1 waves on the orphaned{j}-placement-matching), follow-ups #1778 (retiresibling_placements), #1779 (CLI column driftfix:), #1780 (child care-needs facts + level-of-care criterion — the deferred #1666 RTC precedence), #1781 (ADR-068 Appendix A census refresh), #1783 (test(mq): thesubscriber_shutdownsession build trips the 15 s #1528 budget under battery load — surfaced by the MR-3 battery), ⁂ readings on #1073 (sibling count, ICWA carrier).
Context
GET /v1/placement/matching is attribute-based: the caller supplies child_age / icwa_required / sibling_group_size
and MATCHING_FILTER_SQL (services/craig-placement/src/store/foster_homes.rs:534-538 after #1721) matches homes against
those client-supplied values; #837 deleted the vestigial required child_id and named #972 as the identity-based redesign.
For a CCWIS the match must be FOR A CHILD: the attributes come from the authoritative record (craig-cases persons + case
household), never from the client, and the search is scoped by the child’s case assignment. The blocker named on #972 —
cases owns the child, placement owns the search — is a cross-service consistency decision:
ADR-073.
Design-shaping facts (the research map + #1721 validation on the issue) are ADR-073 § Context’s constraint list; the ones
the units lean on: placements.child_id / case_id are UNVERIFIED bare UUIDs and placement holds NO cases client; the
#1641 memo key (EligibilityFacts) carries home facts only; "the child’s case" is undefined without a case_id
(case_household has no (case_id, person_id) uniqueness); persons.date_of_birth is BlindIndex ciphertext; ICWA has
THREE worker-entered carriers; sibling structure = the case’s child-role household; person events are id-only; the
financial→cases CasesClient has NO per-request .timeout; #1086 (admin-unit scoping) is open — no county scoping here.
Decisions (recorded in ADR-073)
-
Identity wire.
GET /v1/placement/matching?case_id=<uuid>&child_id=<uuid>[&page&per_page]— BOTH required (thecreate_placementshape).child_age/icwa_required/sibling_group_sizeare DELETED (pre-1.0; plan-lifecycle Q3 — no fallback, no dual-accept).per_page=0keeps its shape (an EMPTY page withtotal: 0, no consult, no cases call — not a computed count).MatchingQuerygainsdeny_unknown_fieldsAND the handler takesResult<Query<MatchingQuery>, QueryRejection>(axum’s rawQueryrejects as plain text; no wrapper exists in craig-common / craig-api) mapped tobad_request_typed(problem_types::STRUCTURAL_MISMATCH, rejection.body_text(), None)— the test asserts the problemtype+application/problem+json, not just 400 — so a stale client’s attribute params are a typed 400. -
Authoritative facts = a cases-side PROJECTION, not the person row.
services/craig-cases/src/api/placement_facts.rs:GET /v1/cases/cases/{case_id}/children/{child_id}/placement-facts?on=YYYY-MM-DD→craig_cases_contracts::PlacementFacts { age_years: u8, icwa_person: bool, icwa_case: bool, sibling_group_size: u32 }(BOTH ICWA carriers raw — the derivation is a cited ruleset row, decision 4; nocohort_revision: a closed projection carries only what the consumer reads). Handler order:deny_pure_service(ruling A = worker-attributed only) →get_case404 →authz.check(case_resource_ref, Read)(thelist_householdshape) → clock rule (|on − BusinessClock::today()| > 1 day⇒ typed 400PLACEMENT_FACTS_CLOCK_DRIFT, fieldon) →list_household(active rows): the child must be achild-role member else typed 400CHILD_NOT_IN_CASE(fieldchild_id— theIVE_CHILD_NOT_IN_COHORTprecedent;ApiError::NotFoundhas no typed constructor and is not grown here);sibling_group_size = count(DISTINCT person_id where role == child)(case_householdpermits duplicate(case_id, person_id)rows and the add path does not dedupe — the IV-E snapshot’sHashSetshape; a duplicate-membership test pins it); the DOB via the narrowed decrypt (dob_fields/age_in_yearslifted topub(crate)fromive_children.rs); a missing DOB, OR no age derivable aton(age_in_yearsisNonewhenonprecedes the DOB; a value outsideu8likewise) ⇒ the same typed 422CHILD_DOB_MISSING(placement passes ITS business date — one clock per request).PlacementFactsQuery { on: NaiveDate }isdeny_unknown_fields; the shared response struct is NOT (cases deploys first) — the closed wire shape is pinned by a strict local struct in the cases test. utoipa path + schema registered; a TYPED test-libCasesClient::placement_facts(B7 counts untyped methods);route-to-client-method.tomlregen. -
Scoping at the source: relayed acting worker (RULED 2026-09-10). Placement forwards the caller’s bearer (+
X-Craig-Actor) to the projection endpoint — therelayed_authpair already lifted for rules — so cases evaluates the ACTING WORKER against the case with its existingcase: readrows (caseworker →i_assigned; supervisor / admin;readonlyallowed at cases but still 403 at the rules consult, as today — recorded). Placement keeps itsFosterHome / Listcheck as the entry gate. No newResourceRefshape, no ruleset text change, no duplicated scoping logic in placement. Mechanics:relayed_authliftsauthorizationVERBATIM (withBearer `) — the client sets `.header(AUTHORIZATION, bearer)exactly asRulesClient::evaluatedoes, never.bearer_auth(); cases' auth layer needsaud ∋ craig-cases, which the BFF pair and the devstackcraig-apiclient both already carry (a deployment precondition the ADR records).readonlyperforms one cases read and is then refused at the merged consult (recorded). Alternative B (a service-principal read + placement-side scoping): rejected, ADR-073 § Alternatives. -
ICWA source (RULED 2026-09-10: person OR case).
child_criteriarow:icwa_person == true OR icwa_case == true⇒icwa: require(an ICWA-compliant home is REQUIRED — the conservative reading of 25 USC §1915(b) placement preferences; good-cause departures are a worker act outside matching), cited in the row; recorded ⁂ on #1073 until DFCS names the authoritative carrier.referrals.icwa_flagis intake-time evidence and NOT an input. -
Sibling semantics (⁂).
sibling_group_size= the count of ACTIVEchild-role members of the case, INCLUDING the focus child. The criterion for ≥ 2 isprefer(sibling-capable homes rank first) — the reading the #1660 wave recorded: 42 USC §671(a)(31)(A) is a "reasonable efforts" duty, so "required" over-reads the statute; a jurisdiction that wants a hard bar flips the row’s token (require) with its own citation.role = 'sibling'rows and the dormantsibling_placementstable are NOT consulted (#1778 retires the table). Recorded ⁂ on #1073. -
Child facts move into the ruleset NOW (RULED 2026-09-10) — as per-REQUEST
child_criteriatables, not a per-home fact.{j}-placement-eligibilityv1.3 (on the #1721 v1.2) gains FOUR first-hit tables merged at the output node, the as-built shape oflicense-gate/training-gate/matching-scope(one first-hit table per independent output — a single table would need a cross-product row set;collectis unused corpus-wide):child-age-band(inputchild.age_years→age_band),child-icwa(child.icwa_person,child.icwa_case→icwa; rows: person ⇒require, case ⇒require, neither ⇒ignore— decision 4),child-sibling(child.sibling_group_size→sibling;>= 2⇒preferper decision 5, elseignore),child-matchability(→child_refusal_reason, an OPEN vocabulary:none= matchable — Georgia’s one row; any other string is a jurisdiction’s reason, added as a row above it and relayed VERBATIM as the 409 detail). Output vocabularyrequire | prefer | ignoreon the three mode keys (CLOSED); every row cited (§B); the Texas twin gets the same four nodes with 26 TAC / DFPS citations. Deferred, explicitly: #1666’s RTC-vs-ICWA precedence needs level-of-care facts (care-needs inputs) thatPlacementFactsdoes not carry and a result the three modes cannot express (residential-treatment selection); it stays in the orphaned{j}-placement-matchingruleset — #1780, not a v1.3 row. ONE consult per request — it IS the #1721 scope consult: the facts-freeScopeProbe {}becomesMatchingProbe { child }({ "child": { age_years, icwa_person, icwa_case, sibling_group_size } }); the sameevaluateanswersmatching_scope_statusesAND the four child keys (the gates' keys on a child-only document are ignored — the #1721 test already proves zen tolerates missing inputs).ConsultContext::MatchingScope→MatchingRequest(child_id)=("placement-matching-criteria", Some(child_id))(theplacement-matching-scopetoken retires, pre-1.0; the #1721 devstack pinmatching_runs_at_least_one_scope_consult_per_searchis re-pointed). Placement decodesChildCriteria { age_band, icwa, sibling: CriterionMode, refusal: Option<String> }(parse_child_criteriabesideparse_matching_scope; an unknown mode token, or a missing / non-stringchild_refusal_reason, ⇒ the named drift 500) and applies it MECHANICALLY:require⇒ a WHERE arm ofMATCHING_FILTER_SQL,prefer⇒ a rank prefix ofMATCHING_ORDER_SQL,ignore⇒ neither;MATCHING_SCOPE_PREDICATE_SQLand the free-bed fact (current_occupancy < max_capacity— a SQL fact by the #1721 citation) are untouched; achild_refusal_reason⇒ typed 409CHILD_NOT_MATCHABLE(detail = the reason) BEFORE the candidate scan. Binding:MatchingCriteria { child_age, age_band, icwa, sibling }replacesMatchingFilters;$1 child_age(INT),$2 icwa_mode/$3 sibling_mode/$6 age_mode(TEXT mode tokens — today$2::BOOL/$3::INT, soMATCHING_FILTER_SQLchanges),$4 today/$5 scopekept in place so the scope predicate + its byte pin stay identical (the tails shift: phase-1 limit →$7; phase-2 ids / limit / offset →$7 / $8 / $9); onebind_criteriafor both phases; a new pinmatching_criteria_are_bound_not_hard_coded. The per-homeEligibilityFactsdocument and its memo (MAX_DISTINCT_TUPLES = 64) are UNTOUCHED — home×child compatibility varies PER HOME and would multiply every (license, training) tuple by up to eight (or by the fleet’s age-band variety), tripping the 503 cap on an ordinary search. Activation parity at BOTH activation sites, child leg SEPARATE from home leg (there is no/activateroute): birth-activecreate_placementandplanned → activeupdate_placementrun achild_validationstep for EVERY activating transition — with or without afoster_home_id(today both paths skip the gate entirely when the home isNone; a home-less active placement must still prove membership, DOB and matchability) — AFTER the ADR-062 replay precheck (a committed replay makes no S2S call) and only on the activating branch (planning stays ungated): fetchChildFactsfor the placement’s own(case_id, child_id)under the relay, run the merged consult (MatchingProbe { child }underMatchingRequest(child_id)when there is no home — no home owns the audit row;ActivationProbe { #[serde(flatten)] facts, child }underActivation(home_id)when there is), refusechild_refusal_reason(409CHILD_NOT_MATCHABLE); then, ONLY when a home exists, the home leg: license → training →home_meets_child_criteria(409CHILD_CRITERIA_VIOLATED, naming the arm and the home’s value) → capacity 400; the locked-row gatecheck_home_admits_activationre-runshome_meets_child_criteriaon the locked home (pure in-memory; child facts are not re-derived under the lock — recorded). The orphaned{j}-placement-matchingruleset stays orphaned (its #1660 / #1666 fixes landed as the tier-1 waves;child_criterialives in a different file). MR-3 is authored against the #1721 as-built. -
Failure posture: fail-closed, bounded.
FactsError(thiserror:Transport,Unauthorized,Forbidden,NotFound,Refused{status, body},Upstream,Malformed) folded bymap_facts_errorbesidemap_consult_error: timeout / transport / 5xx / 429 → typed 503MATCHING_FACTS_UNAVAILABLE(the generic no-Retry-After#784 posture, naming the 4 s budget);Forbidden→forbidden_policy(problem_types::FORBIDDEN, detail)(403;ApiError::Forbiddencarries no detail); the cases 400 / 422 (CHILD_NOT_IN_CASE/CHILD_DOB_MISSING/PLACEMENT_FACTS_CLOCK_DRIFT) re-emitted with the SAME type + status;Malformed/ unknown type → the named 500 — but a timeout / transport error WHILE READING THE BODY staysTransport→ 503 (do not copy the rules client’s blanketjson() → Malformedfold). Never "degrade to attributes". Budgets (ADR-068 Standard 20 s, strict<): matchingCASES_FACTS_BUDGET 4 s + RULES_CONSULT_BUDGET 4 s + MATCHING_CONSULT_BUDGET 8 s + MARGIN 2 s = 18 s(the const-assert extended;MATCHING_CONSULT_BUDGETstays 8 s); both activation routes4 + 4 + 2 = 10 s; the tx statement timeout runs after the S2S legs (outside the asserted partition, as today; the ADR says so).per_page = 0returns BEFORE the cases read (the #1721 observable: an empty page consults nothing and calls nothing; membership is not verified for it — recorded). ADR-068 Appendix A gains the placement → cases hop (4 s; synchronous depth 3 on a COLD authz cache — cases'authz.checkmay lazily load a missing ruleset over the rules HTTP client; placement’s own 4 s bound caps its wait). -
Plumbing.
cases_base_urlbecomes a SHARED leaf onServiceSettings(moved OUT ofExchangeSettings, same#[serde(default = "default_cases_base_url")], read assettings.cases_base_urlby exchange AND placement; env names unchanged —CRAIG_EXCHANGECASES_BASE_URL/CRAIG_PLACEMENTCASES_BASE_URL):ServiceSettingsflattens the five extension structs in order and serde hands a duplicated leaf to the FIRST struct that declares it, so aPlacementSettings.cases_base_urlwould silently keep its localhost default under a real env override and every container search would 503; the exchange pins move to the shared leaf and a NEW pin proves a non-defaultCRAIG_PLACEMENTCASES_BASE_URLreaches placement.services/craig-placement/src/cases_client.rsCasesClient { http, base_url }— relay only, NO service token,.timeout(CASES_FACTS_BUDGET)on the request (the financial precedent lacks one — an unwrapped call inherits the 30 s client total),send_with_metrics(.., "craig-placement", "craig-cases");craig-cases-contractsadded to placement’sCargo.toml; wired inmain.rs→build_router→api::routes→.layer(Extension(cases))beside the rules layer;docker-compose.ymlplacement envCRAIG_PLACEMENTCASES_BASE_URL: http://craig-cases:8002(+ the cluster compose); acontested-surfaces.tomls2s-client.craig-placement.casesentry (status = covered, anchorcases_client.rs::placement_facts, legs timeout / 5xx / malformed; the handler 503 fold recorded as the accepted gap, the financial precedent). -
Consumers move in the SAME MR as the wire (the battery’s e2e would break otherwise): the craig-web matching page becomes case → child (the htmx household cascade copied from
routes/placement/placements.rs+new_placement.html; the age / ICWA inputs and the deadchild_idtext box go; withcase_id/child_idABSENT the BFF renders the form and calls nothing — the bare/placement/matchingload the screenshot / a11y / placement specs make; with both present it calls the backend; the paginationextracarries&case_id=…&child_id=…so page 2 keeps the identity — an e2e multi-page search pins it), theweb.ftlkeys (i18n coverage test), the caseworker guide, CLIplacement match --case-id --child-id(the dead--child-id-only shape and the phantomcapacity/match_scorecolumns go — the column drift is the pre-existing defect #1779, closed by MR-3 because the table is rewritten there), test-libPlacementClient::search_matchingtyped, e2eplacement.spec.ts+ theplacement-expiry.spec.tsURL loops onto ONE?case_id=&child_id=fromgivenCase(its child is ~10 — a seeded child can be 19 and fall outside the specs'acceptsAges: [0, 18]band, failing the counter for the wrong reason), api pages regen,route-to-client-method.toml, CHANGELOGChanged(pre-1.0 BREAKING; names theplacement-matching-scope→placement-matching-criteriatoken change) +Removed. Placement’s own test corpus moves too: every birth-active / planned→active leg today uses syntheticUuid::now_v7()child / case ids across ~11 test files (placements,activation_provenance,activation_events,concurrent_transitions,license_gate_race,training_gate_race,service_row_tightening,create_assignment_authority,authz_recheck_race,request_claims_placement,replay_guards) and the tentests/api/matching.rscalls pass only paging — all convert togiven_case(a real case + child); the race tests must not let the extra S2S call widen their windows, and a NEW race leg changes the home’s age band / ICWA / sibling flag between the consult and the lock (the existing license / training races do not exercise the locked child check). Positive fixtures need compatible homes: both home builders leave the age band NULL (crates/craig-test-lib/src/given/placement.rsgiven_home;tests/e2e/lib/given/placement.tsgivenHome), whichage_band: requirescopes OUT — the builders default to a wide band (accepts_ages 0–18) with the NULL band kept as an explicit option for the intentional NULL-band tests. Consumers outside placement’s tests move too: the CLI prerequisites (services/craig-cli/tests/cli/placement.rscreate_prerequisites,tests/cli/financial.rs) create a case + person WITHOUT household membership — they gain thechild-role membership; craig-financial’s tests that seed ACTIVE placements from synthetic case ids (subsidy_create.rsseed_placement_for,sg_create_api.rs,sg_activate_api.rs; with test-libworkflows.rsand the two CLI files, SIX files outside placement build placements) convert togiven_casebecause the home-less activation gap is closed. This is the largest single cost in MR-3 and is budgeted in its weight. -
Consistency model (the ADR’s core, also answering #1688’s reverse-hop question): cross-service child facts are read SYNCHRONOUSLY at request time from a purpose-built, data-minimised projection endpoint owned by the authoritative service, under the acting worker’s relayed credentials, bounded and fail-closed; NO PII copy INTO PLACEMENT, NO event-fed replica (person events are id-only by design); the only placement-side cases replica stays
case_assignments(assignment facts, not child facts). One retained data flow is recorded, not hidden: the merged consult sends the derived child facts (age in years, two ICWA booleans, a sibling count) withcontext_id = child_id(home_idfor a with-home activation, unchanged), and craig-rules persists every evaluation’s input + context inrule_evaluations(archived whole under ADR-058’s evaluations class) — ADR-073 names this snapshot, its minimisation (no DOB, no name), its access (the rules admin surface,rule_evaluationauthz) and its retention (the ADR-058 window). The reverse hop (cases ← placement history, #1688) follows the same rule when it lands.
Units — each Relates to #972; MR-4 Closes #972
| MR | Issue | Scope | W |
|---|---|---|---|
U0 |
#1773 |
This page (Active nav), ADR-073 (Proposed) + the ADR-072 / ADR-068 pointers, epic &94 + child issues, the follow-ups #1778 / #1779 / #1780 / #1781 + the sibling-count and ICWA-carrier ⁂ on #1073; §B — the codebook / statute citation for every |
1 |
MR-1 |
#1774 |
craig-cases: the projection endpoint (contracts |
3 |
MR-2 |
#1775 |
Tier-1 content: |
3 |
MR-3 |
#1776 |
craig-placement: identity wire + |
8 |
MR-4 |
#1777 |
Close-out: plan Status Done, nav → Archive + |
1 |
MR-1 and MR-2 are additive and independent of each other (the v1.3 tables are dormant until a consumer sends child.*
facts); MR-3 is the pre-1.0 cutover and requires both. Collisions: none with #1721 (on main; MR-3 builds on it), #1723
(training arm — orthogonal), #1086 (no admin-unit scope — recorded, not attempted).
Test matrix (by risk)
-
cases: membership (active
childrole only; inactive /sibling-role / other-case → typed 400CHILD_NOT_IN_CASE; a missing case → 404), a duplicated membership row counts ONE child, DOB missing → 422, age onon(leap-day
birthday-today edges; proptestyears_sincemonotone inon), the ICWA OR-derivation table, sibling count (1 / 2 / 3 children; inactive excluded), clock rule (on= today ±1 accepted, ±2 → 400), authz (assigned caseworker 200, unassigned caseworker 403, supervisor 200, readonly 200, bare service token → per ruling A), no PII field on the wire (adeny_unknown_fieldsdecode of the response pins the closed shape). -
rules: the four v1.3 tables on
json!({})and on full documents (age bandrequire; ICWA person / case / both ⇒require, neither ⇒ignore; sibling 1 ⇒ignore, 2 / 3 ⇒prefer; matchabilitynone); v1.3 changes NO gate verdict and NO scope answer on the existingga_eligibility_docdocuments; TX twins;cargo xtask rules check+policy audit(every new row cited,pammsrows pinned viapolicy sync-cache --pin); scenario-inventory rows. -
placement: the criteria verdict → WHERE / ORDER binding table (
requirefilters,preferranks — a 2-child case lists sibling-capable homes first,ignoredrops the arm; a NULL age band is scoped out underrequireand ranked last underprefer; achild_refusal_reason⇒ 409 before any home scan); the merged consult answers scope AND criteria in ONE evaluation (the re-pointed devstack pin countsplacement-matching-criteriarows); activation parity at both sites (arequireviolation ⇒ 409 naming the arm; an admitted home activates; a committed replay makes no cases call);deny_unknown_fieldson the query (stalechild_age→ 400); the fail-closed matrix (cases timeout / 5xx / malformed / 404 / 422 / 403 → the typed status each maps to, under the fault registry’s L1 legs); the budget const-asserts;per_page=0count shape unchanged; readonly → 403 at the consult (unchanged); the memo tuple count unaffected by child facts (pinned: a fleet of 65 distinct age bands still consults ≤ 64 home tuples). -
web / CLI / e2e: the case → child cascade renders the case’s children; a bare
/placement/matchingrenders the form and calls nothing; a match for a 2-child case lists BOTH kinds of otherwise-eligible homes with the sibling-accepting ones FIRST (preferis an ordering, not a filter); a multi-page search keepscase_id/child_idon page 2; the expiry loops (agivenCasechild) still see the license / training exclusions; CLIplacement matchcolumns = the DTO; a stale?child_age=→ the typed 400 (application/problem+json).
Verification
Per MR: fmt, clippy -D warnings --locked, budgets (B1: services/craig-placement/src/api/matching.rs
services/craig-cases/src/api/cases/*.rs line counts), the 22 lints, validate-authz-coverage, api-docs regen (cases
placement), coverage-matrix-mapping, contested-registry census, check-docs, plan-lint. Devstack: placement + cases batteries
--run-ignored all, placement e2e specs, CLI legs, a live probe (a match for a seeded 2-child case; the same call as an
unassigned caseworker → 403; cases stopped → 503 within 4 s).
Rollout
MR-1 + MR-2 additive (cases image; ruleset upsert via the seed / rules loader — the v1.3 tables fire only when a consumer
sends child.* facts). MR-3: promote v1.3 AND the cases image BEFORE the placement image (a v1.2 answer lacks the child
keys ⇒ the parser’s typed 500 on every search — #1721 doctrine), then placement + web + CLI in one window (the wire has no
dual-accept); rollback in reverse = N−1 images (no schema change). Ruleset rollback = re-publish v1.2 (rows are data).
Rulings (recorded 2026-09-10 / 2026-09-11)
Decisions 3 (relayed acting worker — A), 4 (ICWA = person OR case) and 6 (child facts into the ruleset NOW) carry their rulings inline. Merge policy: "if prepush passes you may always merge" (2026-09-10), extended 2026-09-11 to tier-1 ruleset content ("Yes — merge them all on green pre-push") — every MR of this plan.
Citations (§B) — one record per child_criteria row, the #1721 record shape
MR-2’s citations.toml records (value, authority, source_ref, section, manual_transmittal, effective_date, verified_date,
verified_by, notes, derivation, source_sha256) carry these sources; each file’s #description header is refreshed to
declare the four tables (the #1721 precedent). Verified in-tree = the governing sentence is already quoted verbatim by an
existing record (agent-verified against the synced PAMMS-CWS cache dfcs-cws 1b77b6d6 / uscode.house.gov "Current 2024 Main
Ed. (1/6/2025)"); the gitignored .policy-cache/ is absent from a fresh checkout, so anything not quoted in-tree is
UNVERIFIED — MR-2 confirms after policy sync-cache --pin — never invented here. GA rows: authority = "pamms" (USC text
restated by the PAMMS page, the #1660 shape); TX rows: "manual" / "federal_statute", no source_sha256 (manual policy
source). Total rows (ignore / none) carry a derivation; MR-2 decides whether each rides the exception ledger as
[plumbing] (the #1641 catch-all precedent). A require row whose sentence MR-2 cannot locate keeps its output and rides
the ledger as [source-not-located] (the class the ledger header names) — MR-2 does not stall on it.
Row (<file>#nodes[id=…].content.rules[n]) |
Output | Intended source — governing sentence (verbatim) + anchor | Status |
|---|---|---|---|
GA |
|
PAMMS 10.4 Selecting a Placement Resource ( |
UNVERIFIED — MR-2 confirms |
GA |
|
25 USC §1915(b) ( |
statute verified in-tree; PAMMS 10.4 anchor UNVERIFIED — MR-2 confirms |
GA |
|
§1915(b) governs "the Indian child" only — |
as above |
GA |
|
PAMMS 10.20 Preserving Sibling Connections ( |
verified in-tree (the #1660 |
GA |
|
total row — the duty is over "siblings removed from their home"; a single child has none to co-place ( |
as above |
GA |
|
Georgia refuses matching for no child fact — the total row; |
MR-2 confirms |
TX |
|
26 TAC ch. 749 Subchapter G foster-home verification (the ages / number of children a home is verified for; |
UNVERIFIED — MR-2 confirms |
TX |
|
25 USC §1915(b) as the GA row (the record above, reused verbatim); the CPS Handbook ICWA restatement UNVERIFIED |
statute verified in-tree; handbook anchor UNVERIFIED — MR-2 confirms |
TX |
|
CPS Handbook |
verified in-tree (the #1622 |
TX |
|
as Georgia; the deferred #1666 RTC-vs-ICWA precedence is NOT a v1.3 row (#1780) |
MR-2 confirms |
Review log
Rev 1–3 folded a 12-finding maintainer plan-mode gate (2026-09-11) before review; rev 4 entered round 1.
| Round | Vendor | Resolved model | Verdict |
|---|---|---|---|
1 |
Anthropic — one fresh contextless subagent, the four plan-lifecycle questions, over this page + ADR-073 |
Claude Fable 5.1 |
no-ship (2026-09-11; 2 blockers, 7 advisories) → folded: B1 |
2 |
open — run by the maintainer through another vendor’s model |
open |
open |
Errata
-
Erratum (2026-09-12): Decision 9 / test matrix — the bare
/placement/matchingload fetches the case list that fills the select (oneGET /v1/cases/cases); it calls NO matching endpoint ("calls nothing" reads as "calls no matching endpoint"). -
Erratum (2026-09-12): Decision 9 — the pagination
extracarriesper_pagebesidecase_id/child_id(the multi-page e2e pins the size too). -
Erratum (2026-09-12): Decision 7 —
FactsError::Refused { status, problem: ProblemBody }(a decoded RFC-9457 body:type_url,detail,field) rather thanRefused{status, body};Upstreamfolds 5xx / 429 → 503 and any other unexpected status → the named 500; 401 and 403 both →forbidden_policy(FORBIDDEN, detail). -
Erratum (2026-09-12): Decision 6 — home-less activations STAMP
activation_evaluation_id/activation_rule_set_revisionfrom the child-only consult (placement-matching-criteria, context = the child id); the activation_provenance test is renamed accordingly. -
Erratum (2026-09-12): Decision 6 — the #1721 devstack pin is
matching_runs_one_criteria_consult_per_search(no inventory row bound the old name) and EXACT (+1 row,context_id = child_id). -
Erratum (2026-09-12): Test matrix — "NULL band ranked last under
prefer`" is pinned at the STORE level (`foster_homes.rsdevstack unit test) and the 409-before-scan seam by a stub-driven unit test inapi/matching.rs; thechild-not-matchable409 has no integration leg (Georgia’schild-matchabilityanswersnone) — unit-pinned. -
Erratum (2026-09-12): Decision 9 — the CLI
home listcapacitycolumn drift is #1782 (out of scope); the docs screenshot23-placement-matching.pngis refreshed in the close-out MR. -
Erratum (2026-09-12): Decision 9 / test corpus — MR-3’s first live battery corrected three test classes (the wire detail is
placement: <arm>becauseApiError::Conflictrenders{entity}: {detail}; a seededend_reason: "test"main had silently ignored; the #1317 window arms serialized in a nextest group with per-arm park windows) and moved the e2ecreate placementspec ontogivenCase/givenHome— the plan’s own fixture rule, applied to one more spec.