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
reportSourceplaceholder joins its go-live crosswalk), #1630 (theconcern-types.jsonvector 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)
-
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) → u8total, injective onto {1..=13, 88, 99};reporter_type_to_rptsrc+ tests DELETED;validate_report_source; proptest registration;ReporterTypedoc retitled (STATUS axis). -
Dispositionre-cut (7 variants;Inconclusivedeleted):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) → u8total, bijective onto 1..=7 (serves #11 and #27/29/31/33). The mnemonicsdisposition_to_ncands/disposition_from_ncands/disposition_str_to_ncands(zero production callers) DELETED. Mal*Lev 8 stays unemitted. -
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_rankdeleted) — 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 isrow_valid = falsewith thevalidation_notessentence "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_reportableunchanged otherwise. -
Wire, required everywhere: intake
SubmitReportRequest.report_source: String(gardeENUM_STRING_MAX, validated on BOTH channels against the full set — noPUBLIC_*subset — typed 400INVALID_ENUM_VALUEnamingreport_source; sanitize pass); casesCreateReportRequest.report_source: ReportSource,CreateReferralRequest.report_source(onmainonly — #895 MR-D retires the direct create);NcandsExportRow.report_source: ReportSourceREPLACESreporter_type; store modelsReport/Referralgainreport_source: String.ReportIntentV3carries it;ReportIntentV1/V2
report_intent_hash_legacy+ the two-hashpersist_or_replaywiring RETIRE (the refuse-on-data guard emptiesreports; a pre-cutover body lacks a required field ⇒ 422 before any compare).ReferralIntentV1gains the field (vanishes with MR-D). -
SHINES outbound representation (the standalone path keeps nothing):
ReporterInfogainsreportSource(camelCase;TOP_LEVEL_KEYSis unchanged —reporterInfois already pinned there;fidelity::verify_crosswalk_totalitygainsensure_nonsentinel::<ReportSource>("report_source", …)) mapped by a newcraig_reference::shines::report_source_to_shines_source(ReportSource) → &strPLACEHOLDER-REFVAL crosswalk (the exact shape and status ofreporter_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 assertsvalue["reporterInfo"]["reportSource"]for everyReportSource::iter()variant (the H7arepTypetest shape); the mapper test asserts the outbound payload carries it for every variant;raw_submissionstill carries the token on the cases path. -
Schema, two stop-the-world cutovers (no backfill guess — the DOB
20260828120000refuse-on-data shape): MR-A migration: guardcount(reports) + count(referrals) = 0elseRAISE EXCEPTIONnamingcargo 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; voluntaryUPDATE 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’sis_destructivescope does not demand it — commented; lint scope = #1765). MR-B migration: guarddisposition = 'inconclusive'on allegations + investigations = 0 elseRAISE EXCEPTION(no rewrite);DROP/ADD CONSTRAINT chk_allegations_disposition+chk_investigations_dispositionwith the 7 tokens; floor bump.chk_referrals_reporter_typeuntouched. Both files carry the header annotation-- devstack: wipe-before-apply — <reason>(decision 11). -
Registry:
ReportField::ReportSource/ReferralField::ReportSourceplaintext Text FieldSpecs inspec()/ALL_FIELD_IDS/ALL(NOT in thesearchconcat,SORT_OPTIONSorSUMMARY_COLUMNS); the registry-fingerprint change flips the seed identity. -
Intake edge: public wizard STEP 1
<select id="report_source">(15 options, placeholder, aria-required, afterreporter_type, before the mandated-category block) + review-step echo;report-form.jsstate / step validation /validate()/ payload;FieldId::ReportSourcein the relevance schema with a core rowrelevant_when: Always, required_when_relevant: true— the first required core row, so thecore_rules_never_require_a_fieldpin and the "core rows are all required = false" doc are legitimately revised and theschema_wire_shape_is_stablepin re-blessed (schema endpoint + form + validation from ONE source, ADR-042 D3);validate_top_level_enums → validate_report_source;CasesReportBody.report_sourcein the forwarder; i18nreport-form-report-source,report-source-<token>×15,report-review-kv-source,report-error-report-source-requiredin en + es; the xtask security oracle’s probe body gains the field.mandated_reporter_categorystays (status refinement). -
SDKs + parity: Rust
ReportSource(EnumIter) +ReportSubmission.report_source+ builder required; PythonLiteral+ dataclass field + builder check; TypeScriptREPORT_SOURCES as const+ type + builder throw;sdks/test-vectors/report-sources.json(report_sources+rejected— the STATUS tokensmandated/professional/concerned_citizen/law_enforcement/self_report/anonymous, plusfoster_care_provider,MD,CC) consumed by the three parity tests AND the edge validator pin. -
Seed (derived, never drawn — no RNG draw shifts):
report_sourcefrom the already-fixedreporter_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’sUuid::as_u128() % 8 == 0decides the AR track — an AR referral draws every allegation / investigation disposition with the SAMEpickcall over the two-element slice {3, 4}, a non-AR referral withpickover {1, 2, 5, 6, 7} (onerandom_rangeper 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. -
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>makescheck_migrations_stale(the reader that holdsroot;check_migration_statestays a pure set comparison) escalate: for eachcurrentpath absent from the stored manifest it reads that block, and the annotation setsvolume = Wipe,seed = Reseed,rebuild = max(Cached)and pushes the text after the dash as the reason (surfaced bydev status), sodev startANDdev refreshwipe the volumes BEFORE the migration gates start (today a new file is only a cached rebuild, and the gate’sRAISE EXCEPTIONwould 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 reseedremains the explicit remedy the guard text names. Rehearsals rundev startANDdev refreshseparately on a pre-cutover stack for each cutover MR. -
Close-without-disposition stays legal (
closed_no_findingis 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.
| Variant | Token | Code | Codebook label |
|---|---|---|---|
|
|
1 |
Social Services Personnel |
|
|
2 |
Medical Personnel |
|
|
3 |
Mental Health Personnel |
|
|
4 |
Legal, Law Enforcement, or Criminal Justice Personnel |
|
|
5 |
Education Personnel |
|
|
6 |
Child Daycare Provider |
|
|
7 |
Substitute Care Provider |
|
|
8 |
Alleged Victim |
|
|
9 |
Parent |
|
|
10 |
Other Relative |
|
|
11 |
Friends / Neighbors |
|
|
12 |
Alleged Perpetrator |
|
|
13 |
Anonymous Reporter |
|
|
88 |
Other |
|
|
99 |
Unknown |
| Variant | Token | Code | Codebook label |
|---|---|---|---|
|
|
1 |
Substantiated |
|
|
2 |
Indicated or Reason to Suspect |
|
|
3 |
Alternative Response — Victim |
|
|
4 |
Alternative Response — Nonvictim |
|
|
5 |
Unsubstantiated |
|
|
6 |
Unsubstantiated Due to Intentionally False Reporting |
|
|
7 |
Closed — No Finding |
B. Tests (J1 by risk)
-
craig-reference: token round-trip pins for both enums;
report_source_to_rptsrctotal + injective onto {1..=13, 88, 99};disposition_to_rptdispbijective onto 1..=7;report_source_to_shines_sourcetotal
unique (the rep-type crosswalk’s tests);ReportSourceno-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 emitsreporterInfo.reportSourcefor 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 carriesreport_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 withalternative_response_mixed_outcomes; {3, 4} valid ⇒ RptDisp 3); slot-level tables; proptestmost_severe_is_min_code; proptest "AR-only referrals are always valid". -
Guard: annotated new migration ⇒ Wipe; plain new ⇒ Cached; blessed ⇒ no-op;
dev statusreason text. -
Web / CLI / e2e: staff-form drift test covers the 15 options; the 7 disposition options; a
closed_no_findingjourney 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.
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 statusnames the wipe-before-apply reason;dev startwipes + reseeds; separately (fresh pre-cutover stack)dev refreshwipes + reseeds — never a gateRAISE EXCEPTIONloop;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; withother→ 200; the report and its converted referral carry it; the NCANDS export row emits RptSrc 88; the standalone SHINES mock receivesreporterInfo.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 exportsrow_valid = false; PUT{"disposition":"inconclusive"}→ 422 (the shared extractor’s data-error class);/readyzunchanged.
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 |
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; |
— |
no-ship → folded; approved 2026-09-10 in plan mode |
Errata
-
Erratum (2026-09-10): decision 3’s alternative-response
validation_notestext is the bare tokenalternative_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
reportSourceis a NESTED key ofreporterInfo(asserted per variant by the mapper payload test);TOP_LEVEL_KEYSis 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) inweb.ftl; the public wizard’sreport-source-<token>keys live in craig-i18n’spublic.ftl— craig-web does not share the public catalog. -
Erratum (2026-09-10): the relevance pin
core_rules_never_require_a_fieldbecamereport_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_sourceis the extractor’s 400structural-mismatch("missing fieldreport_source`"); the typed 400 `INVALID_ENUM_VALUEwith 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 sharemap_enum_refval::<E>; the SDKReportSource::as_stris 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
standardslines of #1771), the pre-push battery is the functional gate.