Plan: NCANDS Report Source at Intake + Disposition Re-cut (#648)

Archive record

Merge requests: !1602 (U0 plan page, Relates to #648) + !1603 (MR-B, Closes #1760) + !1605 (MR-A, Closes #1761) + !1607 (MR-C, Closes #1762 / #648)

2026-09-11 — the NCANDS Child File #10 RptSrc report source is a REQUIRED intake fact on every channel (craig_reference::ReportSource, 15 codebook tokens; the public wizard, the signed / partner API, the staff form, the three SDKs + a shared parity vector, the standalone-SHINES reporterInfo.reportSource placeholder RefVal), captured on the report, copied to the referral at conversion and emitted TOTALLY (report_source_to_rptsrc, injective onto {1..=13, 88, 99}); Disposition is re-cut to the seven RptDisp codebook outcomes (Inconclusive retired), RptDisp is a REFERRAL-wide MIN-code roll-up with alternative-response compatibility validation; two refuse-on-data cases cutovers (20260912120000, 20260913120000, both voluntary floor bumps) ride the new devstack -- devstack: wipe-before-apply migration annotation class (dev start / dev refresh wipe + reseed BEFORE the gates). ADR-040 § Amendment — #648 parts 1 + 2, ADR-062 § Amendment — #648 (V3 supersedes the #1745 V1/V2 forever clause). Follow-ups #1763–#1768, #1772.

Status

Done (2026-09-11) — !1603, !1605

Anchors

#648 (ruled 2026-09-03; user rulings 2026-09-10), ADR-040 (Decision 5 — amended in two parts), ADR-042 (four encodings in lockstep; the SHINES conformer), ADR-063 (migrate gate + floor), ADR-072 (both enums tier 2, the CHECKs tier 3), epic &55, #692 (SHINES RefVals — the reportSource placeholder joins its go-live crosswalk), #1630 (the concern-types.json vector precedent), the unmerged #895 stack (its MR-D retires the direct referral create), ⁂ readings on #1073, epic &93 (children #1760 MR-B, #1761 MR-A, #1762 MR-C), follow-ups #1763–#1768.

Context

The NCANDS Child File export leaves RptSrc (#10) unpopulated for Mandated / Professional reporters (reporter_type_to_rptsrc → None, crates/craig-reference/src/ncands.rs:104-126) and RptDisp (#11) / Mal*Lev (#27) unpopulated for Disposition::Inconclusive (:128-140) — ADR-040's leave-unpopulated policy (never emit a guessed code).

Ruling (2026-09-03, maintainer, on #648). (1) Report source is a fact captured at intake, distinct from reporter STATUS — the intake forms gain a report-source question over the NCANDS RptSrc vocabulary; reporter_type_to_rptsrc retires for a TOTAL report_source_to_rptsrc; the intake DTO, the three SDKs, the parity vector and the SHINES path ride one unit (CpsRequest repType stays; source is additional). (2) Disposition is re-cut per the codebook — every variant maps to exactly ONE RptDisp code, Inconclusive retired, no policy-guessed mapping, jurisdiction labels are renderings never variants. (3) Pre-1.0 wire change, expand/contract with the dev rows reseeded. The "#1673 assess page" sequencing note is moot (#1673 closed unimplemented; epic &88 landed; the attestation surface persists per DECISION) — capture happens at intake on the report row, copied to the referral at conversion, read by the export from referrals (services/craig-cases/src/api/ncands.rs:256).

User rulings (2026-09-10). The public form offers the FULL RptSrc vocabulary; report_source is REQUIRED on every channel (no optional path, no NULL, no backfill guess); the Disposition re-cut adopts the FULL codebook (1–7). The maintainer’s rev-1 gate review folded eight findings: the standalone-SHINES path has no persistence, so the source needs a SHINES-supported outbound representation with a payload test; a refuse-on-data migration aborts dev refresh before its reseed step, so the guard needs a wipe-before-start class; alternative-response codes need report-level compatibility validation and coherent seed draws; RptDisp must be report-wide (an existing per-child defect the re-cut revises); unknown(99) is a legitimate answer distinct from blank; code 7 is "Substitute Care Provider"; the victim-classification rationale was wrong (numeric precedence stands on its own); the retired-token rehearsal is a 422.

Facts that shape the design (read-only research, file:line throughout, verified against main at authoring): CreateReportRequest is NOT deny_unknown_fields, so old-cases + new-edge silently DROPS the capture and new-cases + old-edge 422s every public submission — the edge and cases halves cannot split; the canonicalisation goldens (sdks/test-vectors/{canonical,signing}.json, the FROZEN crates/craig-signing pins) are literal-JSON goldens, not DTO bodies — untouched; the intake DTO caps enum strings at 32 (ENUM_STRING_MAX); no ruleset reads a disposition; the standalone SHINES sink sends ONLY the mapped CpsRequest (services/craig-intake/src/backend/shines/sink.rs:115) whose ReporterInfo has repType but no source slot (mapper.rs:252-263); check_migrations_stale classifies a NEW migration file as "cached rebuild" (xtask/src/devstack_guard.rs:590-610) while dev refresh starts the gates and waits for health before reseeding (:1234); craig-reporting groups by (referral_id, victim_person_id) and computes the disposition per child group (services/craig-reporting/src/ncands_mapping.rs:59); row_valid checks only slot overflow (:243).

Scope

In scope: craig_reference::ReportSource + the total RptSrc mapping + the SHINES placeholder crosswalk; the Disposition re-cut + the total RptDisp mapping; report_source REQUIRED on the intake DTO, both edge channels, the public wizard, the three SDKs + parity vector, the cases contracts / store / registry / intent projections / conversion copy / NCANDS collection, the staff form, CLI, test-lib, e2e, k6, the mock cases server, the seed; two refuse-on-data cases migrations (guard + CHECKs + floor); the devstack wipe-before-apply migration class; craig-reporting’s report-wide RptDisp / per-child Mal*Lev / min-code precedence / AR compatibility validation; CHANGELOG + the two-part ADR-040 amendment + the doc pages named per unit.

Out of scope (follow-ups filed at U0): #1763 — the jurisdiction label seam (tier-1 ruleset or tier-2 bundle renderings over the federal enums; craig-web renders the federal en label until then); #1764 — enforce closed ⇒ disposition; #1765 — ADR-063 lint scope for write-incompatible ADD … NOT NULL / CHECK contraction; #1766 — retire the *_to_ncands mnemonic family; #1767 — docs: drift (implementation-guide.adoc:1183 / cli.adoc "mandatory"); #1768 — the seed’s referrals never draw ConcernedCitizen. Also untouched: Mal*Lev 8 (No Alleged Maltreatment — slots exist only for alleged types); every other leave-unpopulated field; mandated_reporter_category (a STATUS refinement — stays); chk_referrals_reporter_type; #692’s authoritative RefVals (a go-live dependency, not a capture blocker).

Recorded for the maintainer (not blocking): the codebook transcription is confirmed in §A; NcandsExportRow.reporter_type is removed (a dead wire field, pre-1.0); the disposition mnemonics are deleted; mandated_reporter_category stays; the reporterInfo.reportSource placeholder RefVal is a #692 go-live dependency like every other crosswalk; three consecutive stop-the-world devstack reseeds are accepted pre-1.0.

Design

Decisions (recorded in the ADR-040 amendment)

  1. craig_reference::ReportSource (tier 2, federal vocabulary): 15 variants, snake_case tokens ≤ 31 chars, transcribed from the NDACAN Child File Codebook rev 2025-09-12 — the tokens / codes / labels are the §A table (only 4/8/9/10/11/13 are named in-tree). other(88) keeps a REQUIRED answer from forcing a wrong category; unknown(99) is the codebook’s "unknown or missing" — distinct from blank = not collected — for a caller who genuinely cannot classify the source (a required field does not make the source known). report_source_to_rptsrc(ReportSource) → u8 total, injective onto {1..=13, 88, 99}; reporter_type_to_rptsrc + tests DELETED; validate_report_source; proptest registration; ReporterType doc retitled (STATUS axis).

  2. Disposition re-cut (7 variants; Inconclusive deleted): substantiated(1) indicated(2) alternative_response_victim(3) alternative_response_nonvictim(4) unsubstantiated(5) unsubstantiated_false_report(6) closed_no_finding(7). disposition_to_rptdisp(Disposition) → u8 total, bijective onto 1..=7 (serves #11 and #27/29/31/33). The mnemonics disposition_to_ncands / disposition_from_ncands / disposition_str_to_ncands (zero production callers) DELETED. Mal*Lev 8 stays unemitted.

  3. Report-wide RptDisp + per-child Mal1–4Lev + AR compatibility (craig-reporting ncands_mapping.rs): RptDisp is computed ONCE per referral over every recorded allegation + investigation disposition and stamped on every child row of that referral (today it is computed per (referral, victim) group — a pre-existing defect MR-B corrects; a substantiated child + an unsubstantiated child now both emit RptDisp 1); Mal*Lev stay per child. Precedence: the MIN codebook value (most_severe = min_by_key(disposition_to_rptdisp); severity_rank deleted) — a transparent CRAIG derivation over the federal list order, recorded ⁂ on #1073 (NCANDS victim classification — codes 1 and 2; code 3 excluded since FFY 2015 — is a separate concept and is NOT the rationale). Compatibility rule (ACF codebook: alternative-response reports carry only AR / no-allegation outcomes): if any disposition in the referral is 3 or 4, every recorded disposition must be 3 or 4, else every child row of that referral is row_valid = false with the validation_notes sentence "alternative_response_mixed_outcomes: alternative-response dispositions (3/4) mixed with investigation-track outcomes in referral <id>" (the existing slot-overflow note is a prose sentence; when both apply the two sentences are joined with "; " and the row stays invalid); group_is_reportable unchanged otherwise.

  4. Wire, required everywhere: intake SubmitReportRequest.report_source: String (garde ENUM_STRING_MAX, validated on BOTH channels against the full set — no PUBLIC_* subset — typed 400 INVALID_ENUM_VALUE naming report_source; sanitize pass); cases CreateReportRequest.report_source: ReportSource, CreateReferralRequest.report_source (on main only — #895 MR-D retires the direct create); NcandsExportRow.report_source: ReportSource REPLACES reporter_type; store models Report / Referral gain report_source: String. ReportIntentV3 carries it; ReportIntentV1 / V2
    report_intent_hash_legacy + the two-hash persist_or_replay wiring RETIRE (the refuse-on-data guard empties reports; a pre-cutover body lacks a required field ⇒ 422 before any compare). ReferralIntentV1 gains the field (vanishes with MR-D).

  5. SHINES outbound representation (the standalone path keeps nothing): ReporterInfo gains reportSource (camelCase; TOP_LEVEL_KEYS is unchanged — reporterInfo is already pinned there; fidelity::verify_crosswalk_totality gains ensure_nonsentinel::<ReportSource>("report_source", …)) mapped by a new craig_reference::shines::report_source_to_shines_source(ReportSource) → &str PLACEHOLDER-REFVAL crosswalk (the exact shape and status of reporter_type_to_shines_rep_type: total, unique, pinned; each placeholder value = the §A codebook label; #692 replaces them with the authoritative RefVals before go-live — recorded on #692); the mapper test asserts value["reporterInfo"]["reportSource"] for every ReportSource::iter() variant (the H7a repType test shape); the mapper test asserts the outbound payload carries it for every variant; raw_submission still carries the token on the cases path.

  6. Schema, two stop-the-world cutovers (no backfill guess — the DOB 20260828120000 refuse-on-data shape): MR-A migration: guard count(reports) + count(referrals) = 0 else RAISE EXCEPTION naming cargo xtask dev reseed; reports.report_source TEXT NOT NULL + chk_reports_report_source, referrals.report_source TEXT NOT NULL + chk_referrals_report_source (15 tokens); COMMENTs; voluntary UPDATE schema_compat_floor (an N−1 cases INSERT without the column is 23502 on every report — WRITE-breaking, the ADR-063 harm class; the lint’s is_destructive scope does not demand it — commented; lint scope = #1765). MR-B migration: guard disposition = 'inconclusive' on allegations + investigations = 0 else RAISE EXCEPTION (no rewrite); DROP / ADD CONSTRAINT chk_allegations_disposition + chk_investigations_disposition with the 7 tokens; floor bump. chk_referrals_reporter_type untouched. Both files carry the header annotation -- devstack: wipe-before-apply — <reason> (decision 11).

  7. Registry: ReportField::ReportSource / ReferralField::ReportSource plaintext Text FieldSpecs in spec() / ALL_FIELD_IDS / ALL (NOT in the search concat, SORT_OPTIONS or SUMMARY_COLUMNS); the registry-fingerprint change flips the seed identity.

  8. Intake edge: public wizard STEP 1 <select id="report_source"> (15 options, placeholder, aria-required, after reporter_type, before the mandated-category block) + review-step echo; report-form.js state / step validation / validate() / payload; FieldId::ReportSource in the relevance schema with a core row relevant_when: Always, required_when_relevant: true — the first required core row, so the core_rules_never_require_a_field pin and the "core rows are all required = false" doc are legitimately revised and the schema_wire_shape_is_stable pin re-blessed (schema endpoint + form + validation from ONE source, ADR-042 D3); validate_top_level_enums → validate_report_source; CasesReportBody.report_source in the forwarder; i18n report-form-report-source, report-source-<token> ×15, report-review-kv-source, report-error-report-source-required in en + es; the xtask security oracle’s probe body gains the field. mandated_reporter_category stays (status refinement).

  9. SDKs + parity: Rust ReportSource (EnumIter) + ReportSubmission.report_source + builder required; Python Literal + dataclass field + builder check; TypeScript REPORT_SOURCES as const + type + builder throw; sdks/test-vectors/report-sources.json (report_sources + rejected — the STATUS tokens mandated / professional / concerned_citizen / law_enforcement / self_report / anonymous, plus foster_care_provider, MD, CC) consumed by the three parity tests AND the edge validator pin.

  10. Seed (derived, never drawn — no RNG draw shifts): report_source from the already-fixed reporter_type + id (anonymous → anonymous_reporter, self_report → alleged_victim, law_enforcement → legal_law_enforcement_personnel, mandated | professional → codes 1–7 by Uuid::as_u128() % 7, concerned_citizen → {parent, other_relative, friends_neighbors, other} by Uuid::as_u128() % 4 — the row’s own id on both reports and referrals; fixture coherence, not a mapping, commented); dispositions per REFERRAL coherently: the referral’s Uuid::as_u128() % 8 == 0 decides the AR track — an AR referral draws every allegation / investigation disposition with the SAME pick call over the two-element slice {3, 4}, a non-AR referral with pick over {1, 2, 5, 6, 7} (one random_range per call regardless of slice length, so the draw COUNT is unchanged and later draws stay put); CASES / VARIANTS_CASES byte pins re-bless per MR; the marker golden is unaffected.

  11. Devstack wipe-before-start for refuse-on-data migrations (MR-B lands it, MR-A relies on it): a migration file whose leading -- comment block (any line of it — the SPDX line may precede it) carries -- devstack: wipe-before-apply — <reason> makes check_migrations_stale (the reader that holds root; check_migration_state stays a pure set comparison) escalate: for each current path absent from the stored manifest it reads that block, and the annotation sets volume = Wipe, seed = Reseed, rebuild = max(Cached) and pushes the text after the dash as the reason (surfaced by dev status), so dev start AND dev refresh wipe the volumes BEFORE the migration gates start (today a new file is only a cached rebuild, and the gate’s RAISE EXCEPTION would abort the refresh before its reseed step); unit tests (annotated new file ⇒ Wipe; plain new file ⇒ Cached; a blessed manifest containing the file ⇒ no-op); Local Development documents the annotation; dev reseed remains the explicit remedy the guard text names. Rehearsals run dev start AND dev refresh separately on a pre-cutover stack for each cutover MR.

  12. Close-without-disposition stays legal (closed_no_finding is a VALUE of the determination, not a status); enforcing closed ⇒ disposition = #1764. Jurisdiction label seam: none exists — craig-web renders the federal en label; tier-1/2 renderings = #1763.

A. Codebook transcription

NDACAN NCANDS Child File Codebook rev 2025-09-12; only codes 4/8/9/10/11/13 are named in-tree (crates/craig-reference/src/ncands.rs); the maintainer’s gate review confirmed 7 = Substitute Care Provider and 12 = Alleged Perpetrator; 88 = Other, 99 = Unknown. The RptDisp labels are the archived program’s #11 / #27 rows (Plan: NCANDS Child File Federal Export (Capture-First)). ReportSource is frozen at MR-A (Disposition at MR-B). Variant names are the strum/serde PascalCase of the token.

Table 1. RptSrc (#10) — ReportSource
Variant Token Code Codebook label

SocialServicesPersonnel

social_services_personnel

1

Social Services Personnel

MedicalPersonnel

medical_personnel

2

Medical Personnel

MentalHealthPersonnel

mental_health_personnel

3

Mental Health Personnel

LegalLawEnforcementPersonnel

legal_law_enforcement_personnel

4

Legal, Law Enforcement, or Criminal Justice Personnel

EducationPersonnel

education_personnel

5

Education Personnel

ChildDaycareProvider

child_daycare_provider

6

Child Daycare Provider

SubstituteCareProvider

substitute_care_provider

7

Substitute Care Provider

AllegedVictim

alleged_victim

8

Alleged Victim

Parent

parent

9

Parent

OtherRelative

other_relative

10

Other Relative

FriendsNeighbors

friends_neighbors

11

Friends / Neighbors

AllegedPerpetrator

alleged_perpetrator

12

Alleged Perpetrator

AnonymousReporter

anonymous_reporter

13

Anonymous Reporter

Other

other

88

Other

Unknown

unknown

99

Unknown

Table 2. RptDisp (#11) / Mal*Lev (#27, #29, #31, #33) — Disposition
Variant Token Code Codebook label

Substantiated

substantiated

1

Substantiated

Indicated

indicated

2

Indicated or Reason to Suspect

AlternativeResponseVictim

alternative_response_victim

3

Alternative Response — Victim

AlternativeResponseNonvictim

alternative_response_nonvictim

4

Alternative Response — Nonvictim

Unsubstantiated

unsubstantiated

5

Unsubstantiated

UnsubstantiatedFalseReport

unsubstantiated_false_report

6

Unsubstantiated Due to Intentionally False Reporting

ClosedNoFinding

closed_no_finding

7

Closed — No Finding

B. Tests (J1 by risk)

  • craig-reference: token round-trip pins for both enums; report_source_to_rptsrc total + injective onto {1..=13, 88, 99}; disposition_to_rptdisp bijective onto 1..=7; report_source_to_shines_source total
    unique (the rep-type crosswalk’s tests); ReportSource no-panic proptest; the retired tests deleted.

  • Intake: valid_report_sources (all 15), invalid_report_source (blank, STATUS tokens, foster_care_provider), the vector pin, relevance-schema-declares-required, forwarder asserts the field, the SHINES mapper emits reporterInfo.reportSource for every variant (payload test)
    top_level_keys_match_const, submit_rejects_invalid_report_source (400 + field pointer), the constraints evil-corpus leg, breadth sweep.

  • SDKs: builder-required (sad) ×3; vector parity ×3.

  • Cases: intent V3 pin + "differs only in report_source ⇒ different digest"; conversion asserts the copy; unparseable_report_source_skips_the_whole_referral; export row carries report_source; two #1583 probes per MR; registry counts.

  • Reporting: rptsrc_total_over_report_source; closed_no_finding_is_reportable_and_emits_7; report-wide RptDisp (substantiated child + unsubstantiated child ⇒ both rows 1, Mal*Lev per child); AR mixed outcomes ({3, 5} ⇒ every child row invalid with alternative_response_mixed_outcomes; {3, 4} valid ⇒ RptDisp 3); slot-level tables; proptest most_severe_is_min_code; proptest "AR-only referrals are always valid".

  • Guard: annotated new migration ⇒ Wipe; plain new ⇒ Cached; blessed ⇒ no-op; dev status reason text.

  • Web / CLI / e2e: staff-form drift test covers the 15 options; the 7 disposition options; a closed_no_finding journey asserting the humanised echo; every intake spec selects #report_source.

Steps

Each MR is independently green, closes its child issue and Relates to #648; MR-C also Closes #648. MR-B lands FIRST (independent of MR-A and of #895); MR-A cannot split (edge ↔ cases coupling). Process per MR: branch, contextless J1–J8 lens (two lenses for MR-A — engineering + wire/consumer), reseed + battery, MR with the J-record note, merge on green (no tier-1 content — self-merge).

Collisions with the unmerged #895 stack (its MR-D first): crates/craig-cases-contracts/src/referrals.rs, crates/craig-cases-fields/src/referrals.rs, services/craig-cases/src/{api/referrals.rs, api/reports/conversion.rs, store/referrals.rs, api/intents/intake.rs}, craig-web referral routes / templates (+ the new_referral.html deletion), CLI referral create, test-lib builders / givens, k6 cases.js
scenarios, the seed’s referral rows + byte pins, Data Model: Case Management, CHANGELOG, and the migration version namespace (#895 MR-D 20260910120000, MR-E 20260911120000). If MR-D lands first, MR-A DROPS the direct-create sites and KEEPS the referral column / CHECK / registry / conversion copy / seed; MR-D’s report → decision → convert k6 flow then sends report_source. Migration versions: both cutover files take a version later than #895’s 20260911120000 (MR-B’s before MR-A’s) regardless of landing order — craig_db::schema_state classifies any missing embedded migration as Behind and the gate applies it (crates/craig-db/src/schema_state.rs; confirmed at U0).

Unit Delivers Weight Issue link

U0

this page, epic + child + follow-up issues, the #692 note, §A, the ADR-040 pointer

1

Relates to #648

MR-B

Disposition re-cut + the reporting roll-up + the guard class

5

Closes #1760 · Relates to #648

MR-A

report source at intake — decisions 1, 4–5, 7–10 across every surface

8

Closes #1761 · Relates to #648

MR-C

close-out

1

Closes #1762 · Closes #648

U0 — plan page, epic, issues (weight 1; Relates to #648)

This page (Active nav), epic &93 + the child issues, the six follow-up issues listed under Scope, the #692 note (the reportSource placeholder RefVal joins the go-live crosswalk), the codebook transcription confirmed from the PDF (§A), the ADR-040 status pointer, the craig_db::schema_state confirmation that MR-A’s migration version sorting after #895’s is applied as Behind.

MR-B — Disposition re-cut + reporting roll-up + guard class (weight 5; Closes #1760)

craig-reference enum + total mapping + mnemonics deleted (decision 2); migration 2 (guard + CHECKs + floor
the wipe annotation, decision 6); devstack_guard wipe-before-apply class + tests + Local Development (decision 11); craig-reporting report-wide RptDisp / per-child Mal*Lev / min-code precedence / AR compatibility validation + prose (decision 3); cases test tokens + two #1583 twin probes (chk_allegations_disposition / chk_investigations_disposition); web 3 <select>`s + 7 ftl keys + the humanised token at `referral_detail.html:145; CLI help; e2e (+ a closed_no_finding close journey); test-lib; seed (coherent per-referral dispositions, decision 10); docs — State Machines, Domain Glossary, Caseworker Guide, Data Model: Case Management, Implementation Guide, ADR-003 (the case.investigation_closed payload value space), Shared Crates — Public API Surface, Data Model: Reporting & Data Quality (RptDisp semantics); CHANGELOG Changed + Removed (+ the RptDisp aggregation fix under Fixed); ADR-040 amendment part 1.

MR-A — report source at intake (weight 8; Closes #1761)

Decisions 1, 4–5, 7–10 across craig-reference (+ the SHINES placeholder crosswalk); craig-intake (validation, relevance, forwarder, mapper reporterInfo.reportSource + the fidelity totality, wizard, JS, i18n, OpenAPI regen, security oracle); the three SDKs + vector; cases (contracts, migration 1 with the wipe annotation, store, registry, intent V3 + legacy retirement, conversion copy, NCANDS collection); craig-reporting (RptSrc cell total); craig-web staff form + detail views; CLI intake submit-report --report-source (+ referral create on main); test-lib givens; e2e givens / specs (intake, intake-review, embedded / integrated UI incl. intake-embedded-ui-shines, edge-crypto, keygen-signed, screenshots, a11y, create-redirect, person-link); k6 bodies (services/intake.js, services/cases.js, 6 scenarios); the mock cases server; every raw INSERT INTO reports / referrals fixture; seed. Docs — Data Model: Case Management, CLI Reference, Shared Crates — Public API Surface, the api pages regen (Public Intake API Reference + Case Management API Reference), ADR-040 amendment part 2, ADR-042 conformer note, Deployment Guide "Migration gates" lines for both floors; CHANGELOG.

MR-C — close-out (weight 1; Closes #1762, Closes #648)

Status Done, nav → Archive + archive.adoc row, .claude/CLAUDE.md, plan-lint --done.

Rollout / rollback

Two stop-the-world cases cutovers on the #895 rollout shape (Plan: Investigation Response Deadlines — Derived, Ruleset-Governed, Audited Override (#895)): scale cases to zero → backup / PITR mark → run the ADR-063 gate (the guard refuses populated tables; disposable environments wipe + reseed through the annotation class or dev reseed) → start the new image. In the SAME window MR-A rolls craig-intake (forward wire + SHINES payload), craig-web, CLI, craig-reporting (NcandsExportRow changed both ways); MR-B rolls craig-web (`<option>`s + typed views), CLI, craig-reporting. Production rollback = N−1 images AND DB restore (the floor refuses an N−1 cases boot). No rulesets change.

Verification

  • Per MR: fmt, clippy -D warnings --locked, budgets, the 22 lints, axis-coverage, api-docs --check (regen: intake + cases pages), coverage-matrix-mapping, validate-migration-constraints, check-docs, rules check (no ruleset change), plan-lint.

  • Devstack: for EACH cutover MR, on a pre-cutover stack: dev status names the wipe-before-apply reason; dev start wipes + reseeds; separately (fresh pre-cutover stack) dev refresh wipes + reseeds — never a gate RAISE EXCEPTION loop; verify-seed --expect keyed; the full craig-cases battery --run-ignored all; craig-intake + craig-reporting suites; the intake e2e projects (public wizard incl. embedded / integrated UI, SHINES paths); the k6 perf smoke; cargo xtask sdk-test.

  • Rehearsal after MR-A: a public submission without report_source → 400 naming the field; with other → 200; the report and its converted referral carry it; the NCANDS export row emits RptSrc 88; the standalone SHINES mock receives reporterInfo.reportSource; the SDK builders refuse to build without a source.

  • Rehearsal after MR-B: close an investigation closed_no_finding → RptDisp 7 in the export; a referral with one substantiated and one unsubstantiated child exports RptDisp 1 on both rows; an AR
    investigation-track mix exports row_valid = false; PUT {"disposition":"inconclusive"} → 422 (the shared extractor’s data-error class); /readyz unchanged.

Review log

Round Vendor Resolved model Verdict

1

Anthropic — one fresh contextless subagent, the four plan-lifecycle questions, over this page

Claude Fable 5.1

no-ship → 2 blockers folded (decision 5 named a non-existent TOP_LEVEL_KEYS child manifest — the totality gate + the payload test are the real seams; decision 11 named the pure check_migration_state — the reader check_migrations_stale holds root) + the advisories taken (placeholder values = the codebook labels; the exact AR validation_notes sentence and its coincidence with overflow; Uuid::as_u128() for every seed derivation and the same-pick-call AR draw; the two relevance pins the required core row revises; two e2e specs named; MR-B weight 5; the floor-lowering hazard if MR-B lands before #895 MR-D recorded on #1765; the pre-existing per-child RptDisp defect named on #1760)

2 (the maintainer’s gate; a different-vendor round stays available to the human)

the maintainer (human) — plan-mode gate review of the pre-page draft (8 findings folded into rev 2): SHINES outbound representation; the wipe-before-apply guard class; AR compatibility validation; report-wide RptDisp; unknown(99) as an answer; code 7 = Substitute Care Provider; the victim-classification rationale; the 422 rehearsal

—

no-ship → folded; approved 2026-09-10 in plan mode

Errata

  • Erratum (2026-09-10): decision 3’s alternative-response validation_notes text is the bare token alternative_response_mixed_outcomes (joined to the overflow note with "; " when both apply), not the longer sentence — the tests, CHANGELOG and data-model docs match on the token.

  • Erratum (2026-09-10): decision 5’s reportSource is a NESTED key of reporterInfo (asserted per variant by the mapper payload test); TOP_LEVEL_KEYS is unchanged — the top-level manifest never listed nested reporter keys.

  • Erratum (2026-09-10): decision 8’s staff-form keys are craig-web’s own staff-report-source-<token> (+ report-kv-report-source / referral-kv-report-source) in web.ftl; the public wizard’s report-source-<token> keys live in craig-i18n’s public.ftl — craig-web does not share the public catalog.

  • Erratum (2026-09-10): the relevance pin core_rules_never_require_a_field became report_source_is_the_only_required_core_row (set equality per profile) — the property changed, so the name did.

  • Erratum (2026-09-10): a public submission WITHOUT report_source is the extractor’s 400 structural-mismatch ("missing field report_source`"); the typed 400 `INVALID_ENUM_VALUE with the field pointer is the wrong-TOKEN path. Both name the field.

  • Erratum (2026-09-10): the intake enum validators share validate_enum_token::<E> and the SHINES RefVal mappers share map_enum_refval::<E>; the SDK ReportSource::as_str is the strum-derived token (B8 stayed at its lock by refactor, not by a lock raise).

  • Erratum (2026-09-11): the two cutover MRs merged on the maintainer’s 2026-09-10 ruling ("if prepush passes you may always merge") — the GitLab pipeline is structurally red (#1645 runner disk; the two template-synced standards lines of #1771), the pre-push battery is the functional gate.

Edit this page · latest