ADR-076: Portal Identity — The Subject-Token Channel and the Caregiver Binding Ledger
Status
Proposed (2026-09-13). Drafted FIRST per the draft-first path as U0 (#1841) of the Phase-11
portals program (epics &13 / &50); plan: Constituent & Provider Portals. The design took the
maintainer’s 28-finding plan-mode gate on rev 1 (2026-09-13; the fold table is the last section) and was approved as rev 2
with rulings R0–R7 (recorded on the plan page). Accepted (2026-09-14) with U3 (#1844), the first consumer of the channel, and U6 (#1848), the first binding
ledger. As-built notes from U6: the fleet guard is craig_auth::middleware::apply_portal_policy and
Claims::channel() is a method; claims.channel rides the engine’s SCOPE input as well as its check input (the
foster_portal units LIST row is the first shipped custom scope); ONE resource type, foster_home_caregiver,
governs the ledger for BOTH unit kinds (a kinship unit’s ref carries the placement’s assignment pair); the
invitation code is an ADR-062 one-time secret with the lifetime backstop pair on its row; ending a binding is
effective_from ⇐ ended_on ⇐ today, where ended_on = effective_from is the CANCEL of an entry that never took
effect (#1879 — an empty interval, never current, kept as the record; the open-binding slot is freed); the
create-time refusals (a homed or ended kinship placement) never apply to the acts on an existing binding, so a
binding on a placement that has since ended is still ended, and its codes and identity still revoked, by staff.
As-built notes from U8 (#1851), the first projections on the channel: craig_authz::PortalScope is STRICT — only
Custom({"binding":"caregiver"}) decodes, and every other handler in the fleet keeps Custom fail-closed (the
redacted 500). The scope rule: a subject with ZERO current bindings (or a revoked identity) is 403 on EVERY portal
route (the BFF ends the session); a subject with bindings asking for a unit outside them is 404; ListScope::Denied
is 403; a refused request stages no audit row. D4’s audit event is placement.portal_read { sub, role, jurisdiction,
surface, unit_id }, one per ADMITTED request (surfaces units / unit / training / documents /
document_download / document_upload), attributed to sub; craig-security records it as action
portal_read on resource_type foster_portal with resource_id = unit_id (NULL on the units list; its own arm and
family since #2249); one outbox row + one audit_log row per portal request. D5’s authoritative read is
GET /v1/placement/internal/caregiver-bindings?sub= — service-only behind craig-financial’s scoped row on
{j}-authz-foster_home_caregiver 1.1.0 (service_id == 'craig-financial' ∧ projection == 'caregiver_bindings'),
outside PORTAL_PATHS, Cache-Control: no-store, unpaged. D8’s ?as_of= rule (as amended by U9, #1852): the
intervals are the bindings COVERING as_of under a CLOSED upper bound — effective_from ⇐ as_of AND (ended_on IS NULL
OR ended_on >= as_of), a cancelled entry (ended_on = effective_from) never covering — because SG/NRSG activation
evaluates the transfer day and staff closing the outgoing caregiver’s binding that day can only enter ended_on ⇐ today
(the portal-scope CURRENT predicate stays half-open: two questions, two bounds); absent → the placement’s own evidence
date — the jurisdiction business date while it is planned/active, its ended_on (the jurisdiction date of ended_at,
never ahead of the business date) once ended, so the activation read answers the transfer day in ONE call; any past date
accepted; more than one day ahead of the business date → 400 invalid-date; a homed placement’s caregivers are the
home’s, a kinship placement’s its own; no ruleset change. U9’s consumer is as-built on craig-financial (#1852): GET /v1/financial/portal/units/{unit}/payments
— the nine-key payments projection — is authorised by that bindings read on financial’s OWN principal on EVERY request
(403 / 404 / typed 503 portal-bindings-unavailable under the same scope rule) and stages
financial.portal_read { sub, role, jurisdiction, surface: payments, unit_id } once per admitted request, audited
as portal_read on foster_portal with its unit_id (#2330). The plan’s attempt refused for a binding revoked
between the upload attempt and the finalize does not exist in the ADR-062 §U machine — the finalizer’s locked re-check
(FOR NO KEY UPDATE OF b FOR UPDATE OF i) answers AttemptError::TargetGone: 404 upload target on the handler
path, failed(target_gone) by the reconciler after the grace (#1886). BOTH D7 name arms DEGRADE the unit projection
the same way — child_display / caseworker_name: null with names_unavailable: true, never a 503; a security 403
logs the missing {j}-authz-worker_identity remedy, the #1857 revision’s contact row
(MISSING_ROW_REMEDY, security_projection_client.rs). A kinship placement unit answers empty training and
documents lists, a 404 download and a typed 422 upload (home_documents attach to a foster home). The realm seeds ONE
portal user, so U8 pins the sequential single-subject leakage matrix plus a store-level two-subject predicate test;
the second seeded foster parent lands with U12’s e2e journeys.
As-built notes from U10 (#1853), the portal pages: the BFF’s access reading supersedes the U8 note’s "the BFF ends the
session" — a backend 403 (zero current bindings, or a revoked identity) on GET /units renders the honest
not-connected state (the fact, the why, the enrol form) and on every other page or action redirects to /units with
one neutral "not connected to that home right now" flash, the SESSION KEPT in both cases, because placement and
financial re-derive scope on every request (D5 — containment is theirs), the IdP SSO session outlives the BFF cookie
anyway, and the same 403 answers a never-enrolled caregiver opening a stale link, for whom "access ended" would be
false (a one-line switch to clear_session if overruled; flagged on the MR). A unit outside the subject’s bindings
(404) is the portal’s own 404 page; a 401 is the shared session-expired redirect; every unit page resolves the unit
from the caregiver’s units list first, so a page costs two or three audited reads (payments and the download:
three — payments = list + unit detail + the page; the download = list + the documents list that proves the doc and
supplies its Content-Type + the bytes). The enrol act’s 409 — answered by placement only after the code passed every
check, for two populations
(this account already holds a live identity; the invitation’s person is enrolled under ANOTHER account) — is
disambiguated by THIS account’s own state, never the code: a units probe answering 200 flashes "already connected",
a probe answering 403 flashes the ONE uniform refusal (nothing about the other account). Failure copy splits by
owner: D6’s shared bff.ftl is the CLOSED sign-in vocabulary of craig-bff; the portal’s page, enrol and upload
failures are its own .ftl keys (craig-bff’s UploadError prose mapped per variant; the admit-refusal and CSRF
bodies stay #1865). Two recorded deviations from the four-state contract: the error state is Retry ONLY (the failing
service named, "your information is safe", a Retry link — no Status link, no last-sync time: the portal has no
status surface and holds no synced copy), and loading is not applicable to a synchronous server render (no skeleton
is faked; data | empty | error per page, pinned by a template test). Ruling R3 is met by U10, not U5:
craig-state-bundle ships The Foundation (theme/foundation.toml, foundation_palette()) and the portal declares
it; U5 had rendered the product default under a Foundation label.
As-built notes from U11 (#634), the ADR-037 §4–§7 tenant of D10 — recorded in full as
ADR-037 § Amendment (2026-09-15, #634); the readings in
brief: (a) the caregiver’s propose is DERIVED from the owner map after the shipped foster_portal create ×
projection == 'proposal' row admits the act (the staff families see neither channel nor foster_parent); the
prepended field_permission rows govern staff only. (b) The queue is pending_edits_foster_home_portal with
unit_kind / unit_id, target_table / target_id and reason beyond the ruled columns; previous_value is
server-read at propose; one open proposal per (target_id, field); decided rows retained. (c) Lock state rides along on
GET …/portal/units/{unit} — field_permissions, home_contact (the home’s own phone / primary contact, widening
ruling R5 for the bound caregiver) and proposals (pending + 30 days decided, with the reason) — no extra call, the
dashboard budget stays 2. (d) The propose act stages ONE portal_read (surface proposal) after its claimed
transaction, like the upload; the field audit is placement.field_proposed (sub), placement.field_proposal_decided
(approved_by; the caregiver as proposed_by_sub) and placement.field_written (user_id) — {field, old_value,
new_value}, governed values only, audited under field_proposal (proposal_id) and, for a write, the target
record’s type (#2330). (e) Staff CREATES are governed too — all
touched tokens consulted before any write, before the row transaction; 403 field-permission-denied names the token.
(f) Accept = Action::Approve on the target row’s own type under the SHIPPED rows: Georgia admin + supervisor, Texas
admin + regional; a Texas plain supervisor is denied (403) and lists an empty queue. (g) Accept locks the proposal then
the target FOR NO KEY UPDATE (education / health active = true), compares the live text to previous_value (moved →
409 concurrent-modification; an education / health target gone → 409 field-proposal-target-gone; the row stays pending,
reject drains; a foster-home row that is gone → 404 foster home before the check on accept AND reject — #1902, ADR-077 D5), writes
under the lock (foster_homes bumps version, no If-Match) and stages the audit in the same transaction; ADR-062
claims on propose AND accept / reject. (h) Values are validated and canonicalised at propose per token kind; a
proposal cannot clear a field. (i) The Studio "Pending changes" view is gated {admin, supervisor}, the standing reading
ruled 2026-10-06 (#1927, recorded in ADR-037 § Amendment (2026-09-15, #634)): an approver a shipped ruleset admits only at
the placement API (since #1904 the Texas foster_home ruleset’s IN-UNIT regional_director, ADR-077 D7) accepts there, the
API-only path. (j) craig-placement is a state-bundle consumer:
CRAIG__ACTIVE_STATE_BUNDLES + a valid rulesets/<j>/field_ownership.toml (schema_version = 1, [surface.<name>],
georgia + texas) are boot requirements, fail-closed; the migrate gate needs neither; reload is boot-only.
As-built notes from U12 (#1854), the close-out: the program is COMPLETE for the foster-parent portal — #87 closed, epic
&50 closed with U11, epic &13 open only as the tracker of the provider (P-A, #1855) and family (P-B, #1856) programs.
The decision is proven LIVE by the e2e journey journey-portal-caregiver (project journey): jane.doe binds ONE Foster
person to a home through the Caregivers panel and to a kinship placement and issues the one-time code; pat.foster
enrols through the form, sees both units in en and es, is answered the portal’s own 404 page for an unbound home and a
malformed id, asks for a new school that the same worker accepts in Studio (previous / proposed text asserted), and the
security audit reads back under both subjects — portal_read + field_proposed under the caregiver’s sub,
field_proposal_decided + field_written under the worker’s (D4’s attribution keys end to end); an ended placement
drops the child from the unit (D5’s ACTIVE-placement scope); ending both bindings on today’s date renders the
not-connected state with the session KEPT (the U10 reading); the caregiver at craig-web is refused at the callback with
no cookie (D6’s gate). D3 is pinned at the live edge with real IdP tokens by portal-edge (project portal): a
foster_parent bearer is 401 on the portal AND the staff paths, a worker bearer on a portal path is 403 (no channel —
require_portal_channel refuses before the rows, which also condition on claims.channel), a subject header on a non-portal bearer is 401; the wrong-aud / forged-signer arms
cannot be driven from outside the BFF (its service bearer is a secret) and stay with the craig-auth middleware unit
tests and the Rust suites. The U8 note’s "second seeded foster parent" did NOT land: the journey and the portal specs
share pat.foster sequentially (one live identity, enrolled fresh per spec and revoked after), so the two-subject
leakage predicate stays the store-level test. The open questions below stay open for P-A and P-B.
As-built note from P-B1 U6b (#2022, ADR-079 D4): D8’s absent-as_of evidence date of an ENDED placement is the
served episode_exit.exit_on whenever the subsidy-eligibility read serves episode_exit, else its ended_on, never
ahead of the business date. craig-financial’s guardianship witness requires the two to be equal, so the activation
read still answers the transfer day in ONE call.
Context
CRAIG has no public-user identity. craig-intake (ADR-043) authenticates
nobody — its public routes are CAPTCHA + limiter + an IP hash — and records "IdP-rooted identity" as the pickup for
anything that must know WHO is asking. The realm holds nine worker roles and the service:* roles; token lifespans are
realm-wide. craig-web is strictly staff: a session is "a valid craig-ui token", role gates are opt-in per route, and
backend calls carry the BFF’s service token plus an X-Craig-Actor whose sub is SUPPLIED BY THE SIGNER
(crates/craig-auth/src/actor_token.rs) and honoured whenever the bearer is a service. Claims::service_id() falls back
to azp, so a public-client USER token answers the same client id a BFF would. Every reusable BFF convention is
pub(crate) inside the craig-web binary.
The authz engine scopes on the ACTING principal; ListScope::Custom fails closed everywhere; per-resource rulesets admit
service reads fleet-wide; resolve_field_permission (ADR-037 §2/§3) shipped
dormant, waiting for a second tenant. The security audit attributes an event to created_by / approved_by / user_id /
archived_by / sub, else "system".
The first audience with facts in the system is the foster parent: foster_homes (no caregiver persons; updated by admin,
supervisor and caseworker alike), placements (a nullable home for kinship care), education and health records (the staff
handlers return full models — diagnosis, medications, treatment, notes), training with its expiry ledger, home documents
of every kind, and financial’s per-diem and subsidy rows keyed by home and by party person. Subsidy enrollment cannot
verify that a signer IS the placement’s caregiver (#634’s named criterion) because nothing binds a person to a home.
Providers have no entity at all; families have a household role, parent-responsible tasks and hearing dates, but no
messaging, no document kind and no caseworker phone anywhere.
Constraints: a portal user is an EXTERNAL tenant reading a child’s record — every byte that leaves a backend for that user must be a deliberate projection; a compromised public BFF must not be able to name an arbitrary caregiver; revocation must be immediate on every service that honours a binding; the design must serve three audiences and two more programs without a second identity system; pre-1.0 wire changes are permitted.
Decision
-
One realm, one public client, roles that grant nothing by themselves. Portal users authenticate against the same realm through a PUBLIC client
craig-portal-ui(authorization code + PKCE — thecraig-ui/craig-webnaming precedent:-uiis the browser client, the bare service namecraig-portalthe BFF’s confidential client) with CLIENT-level lifespans (access 300 s, idle 1800 s, max 28800 s) and realm rolesfoster_parent/family/provider, kept incraig_auth::PORTAL_REALM_ROLES— disjoint fromREALM_ROLESby test. Both portal clients carry audience mappers for the two portal-serving backends only and no self-audience. AUTHORITY comes only from a staff-issued invitation redeemed into a binding row on the owning backend; the role is a routing hint the guard checks, never a grant. -
The subject-token channel. A portal BFF calls a backend with ITS service token as the bearer (the CHANNEL proof) and the user’s OWN IdP access token in
X-Craig-Subject(the IDENTITY proof). The auth middleware verifies the subject against the same JWKS withaud == this serviceandazp ∈a configured allowlist of public clients (default empty = refuse), then composes claims:acting= the subject’s IdP-signed claims;channel= the outer bearer’sservice:<id>ROLE, neverazp. The BFF mints nothing, caches no identity, and cannot outlive the IdP’s deadlines.X-Craig-ActorandX-Craig-Subjecton one request is a refusal. -
Fleet-wide containment before any ruleset (
craig_api::portal_channel_guard, on every service): (i) a BEARER whose roles intersectPORTAL_REALM_ROLES→ 401 — a portal principal never calls a backend directly; (ii) an outer bearer carrying theservice:craig-portalrole without an honoured subject → 401 (channelis set only when a subject was honoured, so the rule keys on the raw role); (iii) under that channel the subject’s roles ⊆PORTAL_REALM_ROLES(else 401) and the path is under the service’s configured/v1/<svc>/portal/allowlist (else 403; empty by default). The BFF’s confidential client carries audience mappers only for the services with a portal surface. Erratum (2026-11-01, #2521):craig_api::portal_channel_guardwas never built; the as-built fleet guard is craig-auth’smiddleware::apply_portal_policy, as the Status notes record. Amendment (2026-11-02, #2517): (iv) a verifiedX-Craig-Actorwhose roles intersectPORTAL_REALM_ROLES→ 401 in craig-auth’sauth_middleware, before it is lifted: a lifted actor acts as staff, so a portal-role identity never acts through a service bearer, whatever minted the actor JWT. -
Portal reads are dedicated projection routes only. Each answers a named data-minimised DTO; no staff handler is ever authorised for the channel. Authz uses ONE
ResourceType::FosterPortalvariant — one ruleset per jurisdiction, loaded by every service with a portal surface — whose rows gate on the channel, the role andresource.attrs.projection; the list scope isListScope::Custom({"binding": "caregiver"}), decoded bycraig_authz::PortalScopeand fail-closed everywhere else. Every portal request emits one*.portal_readaudit event keyed by the subject’ssub. -
The caregiver binding ledger lives on craig-placement and is read authoritatively.
caregiver_bindingsbinds a CAREGIVING UNIT — a foster home XOR a kinship placement — to a cases person, effective-dated on the jurisdiction clock (effective_from ⇐ today AND (ended_on IS NULL OR ended_on > today));caregiver_identitiesbinds an IdPsubto that person through a redeemedportal_invitationsrow (SHA-256 of 128 random bits, single-use under a row lock, one indistinguishable 404 for every failure). Portal scope = ACTIVE placements in bound units; a child’s records are reachable only through such a placement. Financial resolves a subject’s units by an S2S read of placement on EVERY request (no projection, no cache; placement unavailable → typed 503), so ending a binding revokes both surfaces at once. -
Host. A new
services/craig-portalBFF overcrates/craig-bff, extracted from craig-web and parameterised byBffConfig { client_id, verifiers, callback_path, post_login_redirect, cookie_prefix, refresh_failure: Drop | Preserve, locale_policy }; the portal drops the session on any refresh failure and renders categorical failures from a sharedbff.ftl(en + es). craig-web’s audience gate (a session requires a worker role) ships before any portal identity exists. -
The foster-parent portal never calls craig-cases. Names reach it through batched, data-minimised, service-only arms on cases (first name + last initial) and security (worker display name), each behind an allowlist-of-one row, read on placement’s own principal under one deadline; an unavailable name is
names_unavailable, never a guess. -
The caregiver hard check is knob-gated and evidence-dated.
subsidy-eligibility?as_of=returns the caregivers current on a date with their intervals; ERR checks the enrollment date, SG / NRSG activation the transfer date;CRAIG_FINANCIALSUBSIDY_CAREGIVER_CHECKENABLEDdefaults off behind a coverage report. -
The foster home is the first ADR-037 §4–§7 tenant (ruling R1), surface
foster_home_portalon placement: STATEplacements.status(its STATEpermanency_goalretired with the column in P-B1 U7, #2024, ADR-079); SHAREDeducation_records.school_name/grade_level,health_records.next_due_date,foster_homes.phone/primary_contact; noprovider-owned field. ADR-037’srulesets/<j>/<surface>_ownership.tomlbecomesrulesets/<j>/field_ownership.tomlwith[surface.<name>]sections — the CWCA instance adds surfaces, not mechanisms.
Consequences
-
A portal request is provable end to end: the IdP-signed subject, the service bearer that carried it, the guard’s verdict, the projection row, the binding that admitted the unit, and the
portal_readevent under the caregiver’ssub. -
A compromised portal BFF can read only what its service audience and the guard allow, for subjects the IdP actually signed, for units a staff member actually bound — it cannot name a caregiver, forge a role, or reach a staff route.
-
Revocation is one row on placement; the portal, placement and financial all refuse on the next request.
-
Pre-1.0
Changed: craig-web requires a worker role, not merely a valid realm session; craig-web’s BFF internals move to a crate (behaviour-neutral); thefield_ownership.tomlfile name and sectioning supersede ADR-037 §5’s per-surface files. -
New public binary, new middleware on every service, two new S2S arms on cases and security, one new event family on placement; the per-process rate limiter’s replica multiplication is recorded (#1860).
-
Provider and family portals inherit the channel, the guard,
craig-bffand the invitation pattern; each needs only its own binding ledger and projections (P-A #1855, P-B #1856).
Open questions
-
Production account provisioning — staff-created IdP user vs realm self-registration (R6: neutral to authority; the deployment guide documents both).
-
Whether the provider portal shares the
craig-portalbinary (role-routed) or gets its own — decided by the P-A plan. -
The family portal’s messaging + notification decision and the caseworker phone (#1857) — P-B prerequisites.
-
Whether the shared rate-limiter store (#1860) should precede the first production enrollment.
Alternatives considered
-
A separate realm for public users. Rejected: one issuer per backend; every verifier, seed and e2e harness doubles.
-
A BFF-minted portal actor (the
X-Craig-Actorseam). Rejected: the actor’ssubis signer-supplied — a compromised BFF impersonates any enrolled caregiver; no IdP deadline bounds a minted identity. -
azp-based channels. Rejected: a direct user token from the same public client answers the same client id. -
Per-ruleset DENY rows as containment. Rejected: they cover only the resources someone remembered; a fleet guard covers the route that does not exist yet.
-
Portal rows on
placement/education_record/health_record. Rejected: their handlers return full models; a projection is a different route, not a different row. -
A financial-side projection of bindings via the inbox. Rejected: revocation lag under broker outage, no ordering source, incomplete event data — authority must be read where it lives.
-
A craig-web
/portaltree or an SPA. Rejected: one binary serving two audiences invites the audience gap this ADR closes; an SPA moves the session and CSP model out of the proven BFF shape. -
Self-registration with identity proofing. Rejected: the invitation IS the proofing; a second proofing step adds a vendor without adding assurance.
Amendment (2026-09-26, #2026) — D5: the kinship household is the caregiving unit (Accepted, 2026-09-27)
Standing. Proposed 2026-09-26 with the approved plan
AFCARS Placement Capture II (#2026) (P-B2 of #949, D4; rulings R-B26 and R-B28 as
recommended), with ADR-079 § Amendment (2026-09-26, #2026).
Landed in plan unit U5 !1734 (#2058), the seeded bindings in U7 !1736 (#2060); Accepted 2026-09-27 at the plan’s close-out
(U8 !1737, #2061) with the As built note below.
What changes. D5’s caregiving unit "a foster home XOR a kinship placement" (:185) becomes a foster home XOR a kinship
household: a case-less, admin_unit-scoped, immutable craig-placement row (kinship_households), one per home-less family
household whatever case its children belong to, named by each arrangement in it (placements.kinship_household_id).
caregiver_bindings.placement_id becomes kinship_household_id (the XOR CHECK and the open-person partial unique re-keyed),
and one person’s bindings on one unit never overlap (an EXCLUDE; 409 CAREGIVER_BINDING_OVERLAP). A household is a home
for authority: reads are FosterHome refs (the household id and its admin_unit, no assignment pair); binding acts are
FosterHomeCaregiver refs of the home-unit shape. New routes: GET /v1/placement/kinship-households/{id} and
GET /v1/placement/kinship-households?person_id=. D5’s portal scope ("ACTIVE placements in bound units", :188) holds: a
household’s child scope is its ACTIVE arrangements (child_arrangement_ids), and its payment scope every arrangement ever
naming it but cancelled ones (payment_arrangement_ids — issued and cleared payments survive a retraction).
SubjectCaregiverBinding trades placement_id for kinship_household_id and those two lists; PortalUnitKind and
pending_edits_foster_home_portal.unit_kind are home | kinship_household; financial’s PortalUnit::Placement becomes
KinshipHousehold, reading the subsidy leg over payment_arrangement_ids (a household has no per-diem rows). D8’s
caregiver list is distinct by person.
This SUPERSEDES, in the Status as-built notes: U6’s "a kinship unit’s ref carries the placement’s assignment pair" (:13)
and its create-time refusal of "a homed or ended kinship placement" (:17) — a binding names a household, not an
arrangement, so neither refusal applies (a binding on a congregate provider is refused, 422, P-B2 D2); U9’s "a kinship placement’s [caregivers are] its own" (:39), which reads "a household-naming
arrangement’s caregivers are its household’s"; U8’s "A kinship placement unit answers empty training and documents lists"
(:48), which reads "a kinship household unit".
Consequences. Pre-1.0 Changed: POST / GET /v1/placement/caregivers trade placement_id for
kinship_household_id; the SubjectCaregiverBinding payload; the portal unit kind. A new-image portal or financial fails
closed (503) on an N−1 placement’s SubjectCaregiverBinding — devstack-only. Rollout: craig-portal and craig-financial →
craig-placement (guard, floor bump) → craig-web. After the re-key no binding ref carries an assignment pair; the
home-unit admin_unit race and identity revoke reaching a person-wide identity remain (#2053).
As built (U5, #2058; U7, #2060). Migration 20260928120000_kinship_households.sql creates kinship_households (id,
admin_unit, created_by, created_at) with no lifecycle (trg_kinship_households_immutable refuses every UPDATE and
DELETE) and mints one household per home-less foster_family_home row of any status, its id the row’s id, so
pending_edits_foster_home_portal.unit_id is unchanged and only unit_kind becomes kinship_household. Its guard
refuses four shapes where the plan named three: a binding keying anything but such a row, such a row with no
admin_unit, such a row whose created_by is not a UUID (kinship_households.created_by is a UUID), and two
overlapping bindings of one person on one unit; rollback is N−1 images AND a restore. The API mints a household only
inside the create or the historical record, either of which may be a replacement (kinship_household: { existing } |
{ new: { admin_unit? } }; 400 structural-mismatch on any other setting or beside a foster home; the unit is the
episode’s stamp or the body’s, never both); a re-record with no choice keeps the replaced row’s household; an unknown
existing is 409 invalid-kinship-household, an unreadable one the 403. There is no household write route.
GET /v1/placement/kinship-households?person_id= requires person_id (400 required-field-missing) and lists the
households where the person holds any binding, open or ended, under the foster-home list’s admin_unit fence (a worker
or supervisor scope answers empty); both reads refuse a pure service principal. The open-person unique is created before
the EXCLUDE, so a second OPEN binding still answers 409 duplicate-resource and only a dated overlap answers 409
caregiver-binding-overlap; a cancel (ended_on = effective_from) overlaps nothing. A binding on a congregate_facility
home is 422. Two consequences the text above does not state: Texas supervisors and regional directors hold no binding
authority on a kinship household (a household is a home; texas-authz-foster_home_caregiver 1.3.0 changes only its
description), and craig-security’s generic split resolves no audit resource id for the binding events until #1877.
U12’s journey (:107) binds the person to the kinship household of a home-less kinship placement, not to the placement.
The devstack seed (U7) binds a primary on every kinship household.
Gate rev 1 → rev 2 (the maintainer’s 28 findings, 2026-09-13)
| # | Finding | Folded in |
|---|---|---|
1 |
|
D2: |
2 |
containment covered selected rulesets only |
D3 fleet guard in craig-api + two-audience BFF client; existing rulesets untouched |
3 |
signer-supplied actor |
D2: the user’s own IdP token in |
4 |
no server-enforced session deadline |
D1 client lifespans; D6 |
5 |
financial revocation not fail-closed |
D5 authoritative per-request read; projection deleted |
6 |
projection had no ordering / data |
deleted (D5) |
7 |
effective dates ignored |
D5 predicate on the jurisdiction clock; interval validation; |
8 |
former placements exposed children |
D5 scope through ACTIVE placements; ended placement → child gone (test) |
9 |
staff handlers bypass the DTO |
D4 dedicated projection routes only; |
10 |
home documents release policy |
certificates only, list and download; no narrative |
11 |
staff authority undefined |
the home’s own UPDATE rows (admin / supervisor / caseworker); kinship via the placement’s |
12 |
no enrollment permission |
the |
13 |
enrollment state machine / replay |
ONE tx, row lock, claim-first replay, uniform 404, race tests |
14 |
revocation + recovery |
revoke endpoint; partial-unique identities; re-enrol by new invitation; open invitations revoked with the binding |
15 |
kinship placements have no home |
D5 unit = home XOR placement |
16 |
undated caregiver ids |
|
17 |
guardianship activation unchecked |
D8 re-verifies persisted parties at the transfer date |
18 |
check precedes data |
D8 knob default OFF + |
19 |
financial bootstrap of events |
no consumer (D5) |
20 |
identities before the web gate |
D6 gate first; rollout order |
21 |
upload rule vs authz order |
dedicated portal upload route, type fixed server-side, binding before parsing, finalizer re-check |
22 |
read events attributed to system |
payload key |
23 |
caseworker name source |
security display-name arm + honest fallback |
24 |
plural homes |
|
25 |
BFF redirects / cookies |
|
26 |
English-only failures |
categorical failures via |
27 |
display-name credential path |
|
28 |
U11 promised and deferred |
U11 in-plan before U12; live staff writes consult |
Amendment — #2999 (2026-11-08): the configuration layers left CRAIG’s source
ADR-087 U4 (#2955) moved the configuration layers out of CRAIG’s source. A rulesets/<j>/<file> path above now names
<file> in layer <j>: the federal, Georgia and Texas layers are the craig-config-{federal,georgia,texas}
repositories, pinned in config-sources.lock and fetched to target/config/layers/<j>/ by cargo xtask config
fetch, and the synthetic testonia layer is fixtures/config/testonia/. The decision above is unchanged.