Plan: Lifecycle journeys against partner simulators — the programme and its first journey

Status

Done (2026-11-29) — the battery walks one family from a report to reunification and, along the way, through its conversation with Georgia’s education agency, played by a seeded, stateful partner simulator: the child is listed while in custody, the agency’s weekly file is collected, the case’s staff read the report, and the report is withdrawn when custody ends. The programme continues under epic &124.

Closes: #3188 (the first journey, with its education partner).
Relates to: #3187 (the programme; it stays open), #3172 (the partner-interface audit and its rulings), #2345, ADR-032, ADR-075.
Tree: written against main at bbd3011ee.
Maintainer (2026-11-29): the battery should exercise the whole child welfare lifecycle, several ways; the partner mocks should be seeded like the databases and answer with realistic data, so it shows how CRAIG responds to its interfaces while doing child welfare business. Start with one journey, report to reunification, and widen.

Context

  • Journeys stop early. The longest of nine, tests/e2e/specs/journey-case-full-spine.spec.ts, ends at the first per-diem payment, though the product reaches reunification through its APIs. The corpus row core.permanency.reunification-closure is uncovered in compliance/scenario-coverage.lock.

  • The partner mocks hold no state. Each parses its adapter’s own request and returns a fixed acknowledgement, with a sentinel value that forces a rejection (crates/craig-partner-doe-slds/src/mock.rs). CRAIG acts on a partner’s answer for one interface, the SSA income inquiry; for the rest it stays on the exchange transaction.

  • The education agency (DOE-SLDS) is the one partner bound end to end today: its custody-list legs have devstack tests (services/craig-exchange/tests/api/outbound_triggers/doe_slds.rs). The leg that comes back, weekly student data for the listed children (docs/modules/ROOT/pages/interfaces/doe-slds-interface.adoc § Figure 3), is absent. craig-placement already holds worker-entered education_records.

  • The seed is deterministic and derives a GTID for each seeded child (tools/craig-seed/src/identifiers.rs).

Scope

In: the programme’s rules (R1–R6); the journey to reunification (D1); the simulator host, its people and its control surface (D2); the DOE simulator (D3); partner-reported education records in craig-placement, with the worker’s view (D4); the collection leg that fetches them (D5); the education conversation and one variant (D6).

Out:

  • The person index and Medicaid: the next two plans under #3187, in that order. Medicaid’s referral is keyed on the person-index id, and its daily status return is the first leg in which a partner calls CRAIG. The GTID lookup (#2345) joins the person-index plan, which introduces the inquiry shape.

  • The partners' real wires (SOAP, batch files, the broker) and the inbound listener: #3172.

  • Other stories (adoption, guardianship, ageing out, an interstate placement, re-entry) and a controllable clock.

  • A scheduled collection: the run is an operator act here, and a schedule is filed at the close.

Design

Programme rules (binding on every later plan under #3187)

R1. Simulators replace mocks, one partner at a time. A partner’s simulator lives where its mock does (crates/craig-partner-<kind>/src/mock.rs, feature mock) and owns its state, bound inside its own router (ADR-032 §2.5; there is no cross-partner state type). It is a closed world: it answers about a person only from what it holds, and a request about anyone else gets the partner’s own "not known" answer. A converted mock’s REJECT_FOR_TEST sentinels are deleted.

R2. People come from the seed. The seed writes the people the partners could know. Each simulator derives its own records from them by a rule keyed on a v5 digest of the person id, so one seed gives one partner world. A journey adds its own family the same way, through the control surface.

R3. One control surface, under /_sim on the host and /partner/<kind>/_sim per partner: load people; set a person’s situation at a partner; run the partner’s scheduled work now; read what the partner holds. It sits in craig-mock-server and behind the partner crates' mock feature, which cargo xtask release-artifact-gate keeps out of every promoted image.

R4. A conversation follows its spec’s business shape. Each leg is one of four: a triggered send (ADR-075, exists); an inquiry (CRAIG asks and the answer returns in the call); a collection (CRAIG fetches what the partner published); a return (the partner calls CRAIG). A return enters through the door #3172 ruled, a mutual-TLS listener in craig-exchange, built by the plan that first needs one; no plan adds an interim door. Wire encodings stay each adapter’s present JSON; re-aiming them to the partners' own formats is #3172’s work.

R5. Three layers. (1) The jurisdiction’s interface: wire types, codec and simulator, in the partner crate. (2) The product’s record type for that kind of fact, with its typed trait and erased form, in craig-exchange-contracts. (3) craig-exchange admits each record and applies it once to the service that owns the fact, through a service-only route (the precedent is services/craig-cases/src/api/ssa_outcomes.rs). craig-exchange keeps counts and outcomes and stores no partner-reported value. The owner stores the fact with its source and shows it to the worker.

R6. A journey is one named family story: one spec tests/e2e/specs/journey-lifecycle-<story>.spec.ts, one corpus row, acts through the given library as named actors, partner state through the simulator client, and a JourneyLedger footprint for the invariant sweep. Partner variants are further tests in the same file.

D1. The journey to reunification

Spec tests/e2e/specs/journey-lifecycle-reunification.spec.ts; scenario core.lifecycle.report-to-reunification, a new row in compliance/scenario-inventory/permanency.toml (tier t1-core, level journey).

New builders in tests/e2e/lib/given/, each replaying the real endpoint under the library’s request-id rule:

  • outcome.ts: givenSubstantiatedClose (an allegation disposition substantiated, then PUT /v1/cases/investigations/{id} to closed); givenPlacementEnded (PUT /v1/placement/placements/{id}, end reason left_care); givenEpisodeExit (POST /v1/placement/episodes/{id}/exit, reason reunify_with_parents_legal_guardians); givenCaseClosed (PUT /v1/cases/cases/{id}, closure_reason: reunification).

  • custody.ts: givenCustodyOpened and givenCustodyClosed (POST /v1/cases/cases/{case_id}/children/{child_id}/legal-statuses), with the in-custody and not-in-custody tokens the Rust DOE tests use.

The walk: report, screened-in referral, investigation, substantiated close, a case with one child aged 8, custody opened, an active placement with its default removal episode, the first per-diem, an approved plan, placement ended, episode exit, custody closed on the exit date, case closed. Where a service refuses an act in this order, the walk follows the rule its problem type names; one that contradicts the documented lifecycle is a fix: issue.

The row’s oracles, each asserted by reads through the owning service: cross_service_refs_resolve; custody_closes_on_exit_date; episode_exit_reason_recorded; no_perdiem_period_after_placement_end; case_closed_terminal_with_event; and occupancy_mismatch by the sweep. The last two are also bound on core.permanency.reunification-closure. The lock is re-blessed with cargo xtask scenarios audit --bless.

Erratum (2026-11-29): the scenario id is core.permanency.report-to-reunification, because an id’s second segment is a closed stage vocabulary that must match its file; the child is the library’s default, born 2016-03-04; custody opens as TCT (Temporary Court) and closes as NPC (Parental Custody), the tokens that fit the story; and the removal episode opens on the custody date, not at the builder’s default.

D2. The simulator host

crates/craig-state-bundle/src/types.rs gains:

pub struct SimPerson {
    pub person_id: Uuid, // CRAIG's id: the control surface's key
    pub first_name: String, pub last_name: String, pub date_of_birth: NaiveDate, pub sex: Option<String>,
    pub identifiers: BTreeMap<String, String>, // kind token -> value
}
pub trait PartnerSimulator: Send + Sync { fn load(&self, people: &[SimPerson]); fn clear(&self); }
pub struct MockRoutes { pub router: axum::Router, pub simulator: Option<Arc<dyn PartnerSimulator>> }
pub type MockRouteFactory = Arc<dyn Fn() -> MockRoutes + Send + Sync>; // an unconverted mock: simulator None
  • tools/craig-mock-server/src/sim.rs, mounted by router(): PUT /_sim/people (every simulator clears, then loads); POST /_sim/people (loads only); POST /_sim/reload (reads MOCK_PEOPLE_FILE, then as PUT). At boot the server loads that file when the variable is set and the file exists. MockServerOptions gains people: Vec<SimPerson> for in-process tests.

  • tools/craig-seed: --partner-people <path> writes a JSON array of SimPerson, one for every person holding a seeded identifier, ordered by person id. devstack/seed/seed.sh passes /partner-sim/people.json and, once the databases have loaded, calls POST $CRAIG_SEED__PARTNER_SIM_URL/_sim/reload with curl --fail.

  • docker-compose.yml: a named volume partner-sim, read-write in craig-seed and read-only in mock-server with MOCK_PEOPLE_FILE=/partner-sim/people.json; craig-seed sets the URL and waits for mock-server healthy.

  • Clients: crates/craig-test-lib/src/partner_sim.rs (PartnerSim, over config::mock_server_base_url()) and tests/e2e/lib/partner-sim.ts (the fixture partnerSim).

D3. The DOE simulator

crates/craig-partner-doe-slds/src/mock.rs. State sits under one parking_lot::RwLock: students by GTID, the custody list by GTID, and the latest weekly file. The workspace denies await_holding_lock, so no guard crosses an .await.

  • Seeding rule. A SimPerson with a gtid identifier and of school age (5 to 18) is a student, except one in twenty by digest, who is not enrolled in a Georgia public school. School and district come from a fixed table of fictional names, chosen by digest; the grade follows from the date of birth.

  • POST / (the existing custody-list wire). An invalid entry is 422, as today. A GTID that is not a student answers status: Error. INC lists the child and keeps the entry’s person_id, case_id and stage_id; OUC and RMV unlist; all three answer Sent.

  • GET /weekly: the latest DoeSldsWeeklyFile { file_id, produced_on, records }, or 204 before the first.

  • _sim: PUT and DELETE students/{gtid}; POST batches/weekly/run, which produces a new file holding one DoeSldsStudentRecord for every listed child who is a student (the whole list each time, as a weekly file is); GET custody-list/{gtid} (200 with the listing, else 404).

  • DoeSldsStudentRecord, in types.rs, strict and garde-bounded: gtid; person_id and case_id, echoed from the listing; school_name; school_district; grade_level; enrollment_date. The spec lists the page’s fields (docs/modules/ROOT/pages/interfaces/doe-slds-detail.adoc § Table of Page Fields) and gives no file layout, so this JSON is the adapter’s own; the type’s doc and the interface page say so.

  • Existing tests keep their assertions and register their student first: the devstack tests gain a known_student helper beside fresh_gtid, and crates/craig-partner-doe-slds/tests/round_trip.rs rejects with a GTID the simulator does not hold. The two sentinel constants go.

Erratum (2026-11-29): the weekly record, and so the partner report (D4) and the education report (D5), carry no iep and no section_504: the DOE page has neither field (its Educational Services are remedial, gifted, ESOL, graduating program and retain; its Disability section is a primary disability and two evaluation dates). The record carries four "Current School Information" facts, and a partner-reported row in craig-placement states nothing about an IEP or a 504 plan.

D4. Partner-reported education records in craig-placement

Erratum (2026-11-29): this section is re-cut before its unit started, by the maintainer’s ruling on #3188 (note 4349305465). A partner-reported record gets its own table and its own authorization resource type, governed by each jurisdiction’s ruleset. The partner’s specification makes the data view-only for the staff assigned to the child (docs/modules/ROOT/pages/interfaces/doe-slds-detail.adoc § Security Rules), and education_records is read by caregivers through the portal, open to their change proposals, and scoped by admin unit. The earlier text stored the report in education_records with a source column.

Erratum (2026-11-29): a report is withdrawn by listing, by the maintainer’s second ruling on #3188 (note 4349879419). The first re-cut had craig-placement consume case.custody_closed, case.custody_retracted and case.person_identifier_ended. craig-exchange reads its listing ledger once at the start of a run and then posts the admitted reports, so a custody close or an identifier’s end during a run could be handled first and the report could land afterwards, with nothing left to withdraw it. craig-exchange also ends a listing for reasons craig-placement never hears. The report now names the listing it was admitted under and craig-exchange announces a listing’s end. The write carries no idempotency key: a stored claim per report per week would buy nothing its own rule does not give.

  • The tables. education_partner_reports in craig-placement: id, child_id, listing_id, interface, identifier_kind, as_of, school_name, school_district, grade_level, enrollment_date, received_at, and withdrawn_at with withdrawn_reason (superseded or listing_ended), set together. A unique index holds one live row per (child_id, interface). ended_partner_listings holds the listings craig-exchange has announced as ended. No portal projection, proposal flow or worker route reads or writes either.

  • The resource type. ResourceType::EducationPartnerReport (education_partner_report), with the AuditResource of the same token. The check carries the worker and the supervisor of the child’s case, read at check time from case_assignments through the child’s latest live removal episode. A child with no live episode has neither, so only a role-keyed row admits. The type is not unit-bearing.

  • The rulesets. <jurisdiction>-authz-education_partner_report.json in craig-config-georgia and craig-config-texas, pinned by config-sources.lock: service callers denied; admin, the supervisor of the child’s case and the caseworker assigned to it may read; everything else denied (maintainer, 2026-11-29: the specification’s rule). It is the first Georgia file keyed on the case’s supervisor, recorded by name in crates/craig-authz/tests/default_rulesets/background_job.rs. The specification’s fourth viewer, a holder of the DOE_ACCESS profile, needs a product role that does not exist: #3195.

  • The listing. A listing is one row of craig-exchange’s recipient ledger: a person, a partner interface and the custody episode the person was listed under. Its end is one-way; a child listed again gets a new one. store::trigger_ledgers stages exchange.listing_ended (\{ listing_id, interface, person_id }, crates/craig-placement-contracts/src/partner_listings.rs) in the transaction of each of its two writers of an end, so no pass ends a listing without announcing it.

  • The write. POST /v1/placement/education/partner-reports, service-only: bearer_require_service_caller() and service_id() == "craig-exchange", as services/craig-placement/src/api/afcars_export.rs gates its consumer. Body EducationPartnerReport (crates/craig-placement-contracts, strict): child_id, listing_id, interface, identifier_kind (the identifier the partner keys the child on), as_of, school_name, school_district, grade_level, enrollment_date. In one transaction, under a lock on the child and a lock on the listing: where the listing has ended, answer 200 listing_ended and write nothing; where the child’s live row for the interface is as of a later day, or is this same report, answer 200 stale and write nothing; where the facts are the held ones on a later day, move the held row to that day, 201; otherwise withdraw the live row as superseded and insert the report, 201. placement.education_report_received carries ids, the interface and as_of only. The caller gate answers before the body is judged. utoipa lists 200, 201, 400, 401, 403, 413, 415 and 422.

  • The read. GET /v1/placement/education/partner-reports?child_id=: the child’s live reports (none, or one per interface), after a read check on the type with the child’s case assignment. A caller the ruleset refuses is answered 403 whether or not a report exists.

  • Withdrawal. The inbox list in services/craig-placement/src/lib.rs gains exchange.listing_ended. Its handler, under the write’s two locks, records the ended listing and withdraws the live reports admitted under it, staging placement.education_report_withdrawn for each. Whichever of a report and its listing’s end commits first, the other sees it. A listing is open exactly while the child is in custody with a live identifier of the interface’s kind, which is the spec’s rule for viewing (docs/modules/ROOT/pages/interfaces/doe-slds-detail.adoc § Page Function).

  • The worker’s view. craig-web’s education page (services/craig-web/src/routes/placement/education.rs and its template), scoped to one child, gains a section "Reported by the education agency" with the report’s day, from the Fluent catalog, shown when the read is allowed and a report exists. It has no control.

D5. The collection leg

  • Layer 2, crates/craig-exchange-contracts/src/collection.rs: enum PartnerReport { Education(EducationReport) }; EducationReport { person_id: Uuid, identifier_kind, as_of, school_name, school_district, grade_level, enrollment_date }; Collected { reports: Vec<PartnerReport>, unattributable: u32 }; the typed CollectionAdapter (fn collect(&self, endpoint_url: &str, auth: &OutboundAuth) → impl Future<Output = Result<Collected, Self::Error>> + Send) and its object-safe ErasedCollection, generated as erased.rs generates ErasedAdapter.

  • Transport. OutboundTransport gains fetch(FetchRequest) → TransportResponse (HTTP GET, under the send’s body cap, redirect and egress rules) on DirectHttpTransport, EgressControlledTransport and StubTransport; WebMethodsTransport answers its unsupported error.

  • Layer 1, crates/craig-partner-doe-slds/src/collection.rs: DoeSldsWeeklyRecords fetches {endpoint_url}/weekly; 204 is an empty Collected; a record whose person_id is absent or is not a UUID counts as unattributable; each report’s identifier_kind is gtid. craig_partners_ga::collections() registers ("doe_slds", "weekly_records"), and ExchangeRegistries (services/craig-exchange/src/bundle_orchestrator.rs) holds the collections of the kinds the bundle activates.

  • Layer 3, services/craig-exchange/src/collections/: POST /v1/exchange/collections/{interface}/{leg}/run, an operator act gated by require_operator (services/craig-exchange/src/api/triggers.rs). Refusals, each listed in utoipa: 404 for an unknown leg; 409 collection-disabled unless CRAIG_EXCHANGECOLLECTIONS<IFACE>__ENABLED is true (default false; the devstack sets DOE’s); 409 agreement-does-not-admit unless store::agreements::dsa_verdict admits; 409 collection-running while another run of the leg holds its advisory lock; 502 partner-unreachable when the fetch fails.

  • The run resolves the interface’s active partner and its credential as a triggered send does, and collects. It admits a report only where exchange_outbound_recipients holds a row for (interface, partner, person) with removed_at and closed_sent_at null, and posts each admitted report to craig-placement with the service token. It writes one exchange_transactions row (direction = 'inbound'; origin = 'collection', admitted by a CHECK migration; exchange_type = 'doe_slds.weekly_records'; record_count; both payload columns null) and stages exchange.collection_completed with the counts: applied, stale, not listed, unattributable, failed. The response is those counts. A run with a failed apply ends failed; a re-run posts the same reports again, which D4’s rule makes safe.

Erratum (2026-11-29): the weekly file is read a page at a time. GET /weekly serves DoeSldsWeeklyPage \{ file_id, produced_on, page, pages, records } (at most 1,000 records), and GET /weekly?file_id=…&page=… a later page; DoeSldsWeeklyFile is gone. A fetch stays under the send’s 1 MiB response cap, which one document for a state’s children in care would break, and the collection fails whole when a page is not the one it asked for.

Erratum (2026-11-29): the run’s route is POST /v1/exchange/collections/run with a strict body \{ interface, leg }, as the catch-up act names its interface: the DTO lint refuses an unbounded string path segment. An unknown interface or leg is therefore 400 collection-undeclared (field leg), not 404.

Erratum (2026-11-29): a document that cannot be read answers 503 partner-unreachable, not 502 (ApiError has no 502, and the catch-up act’s dependency failure is a 503); the run is still recorded, as a failed transaction with its event.

Erratum (2026-11-29): the lease is deployment-wide (craig-exchange:partner-collection), as the catch-up walk’s is, not per leg: AdvisoryLease takes a static key, and one leg exists.

Erratum (2026-11-29): a run with no single active partner, no endpoint, or a stored credential the auth gate refuses answers 409 collection-partner-unresolved; D5 named no answer for it. A noop:// partner has published nothing, and the run completes empty.

Erratum (2026-11-29): exchange_transactions.origin gains collection with a floor bump (an older binary would retry a failed collection row as a send), the retry route refuses every origin but manual, and the manual send route reserves a collection’s <interface>.<leg>. craig-exchange gains a Service call-graph edge to craig-placement and CRAIG_EXCHANGE__PLACEMENT_BASE_URL.

Erratum (2026-11-29): the run is synchronous, as D5 says, and so lives under the 20-second request ceiling (ADR-068): it serves the journey and a small deployment, not a state-sized file. It stops posting once three posts in a row say the owner is not taking reports, so a dead owner ends it recorded and inside the ceiling. The background job and the schedule are #3190, filed now and not at the close.

Erratum (2026-11-29): each admitted report is posted with its listing, the id of the recipient row that admitted it (the newest, where a person has more than one open), and with no idempotency key. craig-placement’s answer names the outcome in its body, since 200 alone no longer says which: stale, or listing_ended for a listing that ended while the report was on its way. The run counts the latter with not_listed and still completes. A success whose body is not the route’s answer fails the post.

D6. The journey’s education conversation

Added to D1’s spec. Georgia’s row georgia.exchange.doe-education-in-care goes in craig-config-georgia (scenarios/exchange.toml), and the pin in config-sources.lock moves.

  1. Before custody, the journey records the child’s GTID (givenPersonIdentifier) and puts the student at the simulator.

  2. After custody opens, the simulator lists the child.

  3. After placement, the weekly batch runs and an admin runs the collection. The child has one partner report with the simulator’s school and grade, and the education page shows it in its own section.

  4. The child changes school at the simulator. After the next batch and collection the report shows the new school with a later as_of, and there is still one.

  5. After reunification, the simulator no longer lists the child and the child has no live partner report.

Variant test, "the education agency does not know the GTID": no student is put. The custody-list send settles in the leg’s Error class, a batch and a collection apply nothing for the child, and the journey still reaches the closed case.

Erratum (2026-11-29): the education beats run under a fixture (tests/e2e/lib/doe-education.ts) that gives the test an admitting DOE partner of its own, parks the others and restores the seeded one. The seed links no agreement to any partner, so the seeded DOE partner is listed nothing; D6 did not say how the journey’s partner comes to admit. The two weekly files of one walk carry the same date (the simulator dates a file today, and the suite has no clock to move), so the changed school replaces the report on its facts, with the same as_of, not a later one. Georgia’s row names the two consents as its knobs, and tests/e2e/knob-projects.toml lists them on the journey project. The journey also asserts who may read the report: the case’s worker does, another caseworker is refused.

Steps

One MR per step, in order; each relates to the plan’s issue and the last closes it.

  1. D1: the builders, the spec and the core corpus row.

  2. D2: the host, the people file, the compose volume and the two clients.

  3. D3: the DOE simulator, with the existing tests registering their students.

  4. D4: craig-placement’s partner reports, the withdrawal and the worker’s view (the consumer lands first).

  5. D5: the collection leg across the three layers.

  6. D6: the education conversation and the variant in the spec, Georgia’s corpus row, the docs and the close.

Risks

  • A report is applied to the wrong child — fail-closed. Mitigation: the run admits a report only against the recipient ledger by (interface, partner, person), and a record with no usable person id is counted and dropped (a_report_for_an_unlisted_child_is_refused).

  • A partner report overwrites a worker’s record, or a worker or caregiver changes a partner’s — fail-closed. Mitigation: the report lives in its own table, which no worker or portal route writes, with one live row per child and interface by index (a_partner_report_leaves_worker_rows_untouched).

  • Partner-reported data is shown to someone the partner’s rule excludes — fail-closed. Mitigation: its own resource type and ruleset; a jurisdiction that supplies no ruleset refuses every read; the portal reads only education_records (an_unassigned_worker_cannot_read_the_partner_report, a_partner_report_never_reaches_the_portal).

  • Education data stays visible after custody closes or the GTID ends — silent if the announcement is lost. Mitigation: craig-exchange stages exchange.listing_ended in the transaction that ends the listing, from the store functions that are its only writers (ending_a_listing_announces_it_once_with_the_end); the handler runs under the inbox’s idempotent processing with its dead-letter alarm (ending_the_listing_withdraws_the_partner_report); the real stack asserts the whole chain (a_collected_report_lives_only_while_the_child_is_listed), and the journey asserts it at reunification.

  • A report lands after its listing ended — fail-closed. Mitigation: the write and the handler take the same two locks, and the write refuses a recorded listing, so the outcome does not depend on which arrives first (a_report_that_waits_behind_its_listings_end_is_refused, an_end_that_waits_behind_its_listings_report_withdraws_it, the_listing_lock_holds_a_misfiled_report_behind_the_end).

  • The service-only route is reachable by another caller — fail-closed. Mitigation: the handler’s allowlist, and the_partner_report_route_refuses_a_human_and_another_service.

  • The closed world breaks tests that assumed any GTID is accepted — fail-closed (an Error ack fails them loudly). Mitigation: step 3 moves them in the same MR, assertions unchanged.

  • Simulator state is lost when the mock server restarts mid-run — silent (the custody list empties and the next weekly file omits listed children). Mitigation: the people reload from the volume at boot; the journey reads the listing before each batch; testing-reference.adoc says a restart ends a run’s partner state.

  • The weekly JSON is CRAIG’s own, not DOE’s layout — silent drift from the real partner. Mitigation: the type’s doc and the interface page say so, and #3172 holds the re-aim.

  • The people file slows a 45,000-family stack — silent. Mitigation: it holds only persons with identifiers; step 2’s MR records its size and the reload time at that seed size.

  • The control surface is unauthenticated — fail-open on a test tool. Mitigation: craig-mock-server’s compose service publishes no host port, and `cargo xtask release-artifact-gate fails a promoted image that links a mock feature.

Tests

  • Contract (wire): round trips and strict twins for DoeSldsWeeklyFile, DoeSldsStudentRecord and EducationPartnerReport; the exchange.listing_ended payload and the two partner-report event payloads, pinned; SimPerson’s JSON pinned by a fixture; `the_people_file_does_not_move_the_sql beside the seed’s byte-identity fixture; the regenerated OpenAPI (cargo xtask api-docs).

  • Property: the weekly file joins crates/craig-partner-doe-slds/tests/parse_never_panics.rs; the seeding rule is total and deterministic over arbitrary people (the_same_people_seed_the_same_students).

  • Concurrency: concurrent_reports_leave_one_live_partner_row and the three report-against-end orders named under Risks (craig-placement); a_second_collection_run_is_refused_while_one_holds_the_lease (craig-exchange).

  • Regression: the DOE devstack tests and the crate’s round trip pass with registered students, and with an unknown GTID in place of the sentinels.

  • Simulator (unit): an_inc_lists_a_known_student, an_unknown_gtid_answers_error, an_ouc_unlists, a_weekly_file_holds_exactly_the_listed_students.

  • Integration (devstack, #[ignore = "requires devstack"]): a run applies a listed child’s report (a_collection_run_stores_no_reported_value reads its transaction row); the unlisted-child refusal; knob off, agreement not admitting and partner unreachable each answer their status; a stale report writes nothing; the withdrawals; who may read a report; the caller gate.

  • Journey (Playwright): D1’s walk and oracles, D6’s five beats and the variant, each with its ledger and sweep.

Delivery

  • Docs, with the step that changes the surface: testing-reference.adoc (a "Partner simulators" section and the journey section); devstack.adoc (the volume, the knob); services.adoc and the regenerated api/craig-exchange.adoc and api/craig-placement.adoc; the placement page of the data-model-*.adoc family; interfaces/doe-slds-interface.adoc (CRAIG’s weekly record); deployment-guide.adoc (the knob’s row); adrs/adr-032-multi-jurisdiction-partner-registry-and-transport.adoc (an amendment: simulators, MockRoutes, the collection trait). The three new events are catalogued with the MR that stages them.

  • CHANGELOG entry: one changelog.d/<issue>.<slug>.<kind>.adoc fragment per MR, folded into CHANGELOG.adoc at a release (the project’s override).

  • Plan page: committed as docs/modules/ROOT/pages/plans/lifecycle-journeys.adoc before step 1, set In progress at step 1, and Done and archived at step 6.

  • Close: the last MR closes the plan’s issue, with the merge SHA noted on it and on #3187. Filed then: the person-index and Medicaid plans; a scheduled collection; a flag where worker and partner records disagree.

Review log

Round Vendor Resolved model Verdict

1

Anthropic (Vertex)

vertex-anthropic/claude-fable-5-2

FLAGS on the second question: D2 named a test-library function that does not exist, two assertions named no test or lint, and the withdrawal missed the spec’s second condition (the GTID end-dated). Each is fixed: the real function, the release-artifact gate and the workspace lint, and a second withdrawal on case.person_identifier_ended.

2

Google (Vertex)

vertex-gemini/gemini-4-carbon

CLEAN on all four questions; the maintainer then approved the plan for implementation.

Edit this page · latest