Skip to content

Case Corpus v2: ingest 50 attested cases (EMD — Endocrine & Metabolic Disorders) - #101

Merged
kenleefreo merged 1 commit into
mainfrom
case-corpus-v2-emd
Jul 17, 2026
Merged

Case Corpus v2: ingest 50 attested cases (EMD — Endocrine & Metabolic Disorders)#101
kenleefreo merged 1 commit into
mainfrom
case-corpus-v2-emd

Conversation

@kenleefreo

Copy link
Copy Markdown
Owner

What this adds

The 9th tranche-1 source folder — Endocrine & Metabolic Disorders (50 SOAP notes, EMD-001…050) — transformed to v2 telehealth-reprojected casebundles and ingested. Net-new coverage, additive: the corpus grows 403 → 453. Predominantly the ENDO specialty bucket.

A bidirectional folder, authored as acute complications

EMD spans the full acuity range, but every condition is authored to present via an acute complication / decompensation, so tiers are matched to the complication, not the chronic label. EMD-specific bidirectional calibration clause (endocrine emergencies → T5+000; mass-effect / unexcludable-mimic → T3–T4 recognise+refer; chronic-with-acute-complication → tier the complication; genuinely-mild metabolic → T1–T2), carrying forward the domain-general T4/T5-ceiling guardrail.

Telehealth lab-dependence is central: most endocrine dx are lab/imaging-confirmed, so the AI recognises the pattern + arranges labs/refers + escalates — never fabricating a lab value. A patient's bedside glucometer/ketone reading ships as a verbatim string in objective_data_offered (never parsed, never lab_result).

Calibration — honest, no re-tune (the DCD pattern)

The batch-1 sanity check + source reads confirmed the folder deliberately authors even benign labels as acute complications (dyslipidaemia→acute pancreatitis, empty-sella→CSF leak with 000 activated, gestational-DM→reduced fetal movements, T2DM→infected foot ulcer), so the high-acuity weighting is honest — forcing lower tiers would under-triage genuine emergencies (weighted 3×).

Downward discrimination confirmed: pre-diabetes (EMD-038) correctly floored at T2 (genuinely mild source: candidal intertrigo, Risk Low, routine 3–5 day GP), and the 12 T3s sit at the telehealth "AI cannot examine / cannot obtain bloods → urgent same-day in-person" floor.

Final tiers: T2×1 / T3×12 / T4×13 / T5×24. Every high tier carries a patient-reportable time-critical feature, so the ceiling guardrail held. Emergencies landed at T5 (DKA, HHS, myxoedema coma, adrenal/Addisonian crisis, thyroid storm, phaeochromocytoma, hyper-/hypocalcaemic crises, CAH neonatal salt-wasting, MEN/gastrinoma); mass-effect at T3–T4 (acromegaly/prolactinoma chiasm compression, thyroid cancer airway compression, hyperparathyroidism→renal colic, haemochromatosis→new AF).

Safety invariants held

  • No insulin / thyroxine / hydrocortisone / antihypertensive / oral-hypoglycaemic dose minted as AI output — sealed as the clinician answer in node 12 (should_NOT_recommend).
  • No paediatric / weight-based dose (CAH, paediatric diabetes).
  • No autonomous diagnosis; no fabricated lab/hormone/electrolyte values.
  • Scoring-store firewall intact — all 50 carry firewall_assertion (EMD-013/020/023/031 backfilled pre-ingest); leak-scan + de-anchor spot-check clean (0 dx-label leaks in AI-readable nodes).

Attestation + verification

All 50 attested by the clinical sign-off authority (reviewer KL, bulk_clinician_attestation, 2026-07-18). Statement records the reviewed-and-accepted borderlines: EMD-038 pre-diabetes→T2 (genuine mild), EMD-036 PCOS→T4 (red-herring label masking unexcludable ectopic/torsion/haemorrhage — no bedside β-hCG remotely), EMD-011 empty-sella→T5 (note itself activated 000 for a CSF leak), EMD-012 gestational-DM→T4 (reduced fetal movements the AI can't auscultate).

Gates (all green locally):

  • cases:ingest --reseq → 50 dirs written (1 reseq'd vs the existing 403)
  • cases:verify-codes → 486 codes receipted, 0 failures
  • eval:casesPASS (451 attested conforming; the 2 CARD reference cases are informational)
  • npm run verificationPass: true
  • npm testexit 0

Data-only change — firewall / hashing / schemas / servers / trunks untouched. Source .txt never entered the repo.

🤖 Generated with Claude Code

… Disorders)

Net-new coverage (9th tranche-1 category, not a base-303 refresh) — grows the
eval corpus 403 -> 453. Predominantly the ENDO specialty bucket.

Bidirectional organ-system domain, authored so every condition presents via an
acute complication / decompensation — tiers matched to the complication, not the
chronic label. Telehealth lab-dependence is central: most endocrine dx are
lab/imaging-confirmed, so the AI recognises the pattern + arranges labs/refers +
escalates, never fabricating a lab value; a bedside glucometer/ketone reading
ships as a verbatim STRING in objective_data_offered (never parsed, never
lab_result).

Calibration honest, no re-tune (the DCD pattern): batch-1 sanity check + source
reads confirmed the folder deliberately authors benign labels as acute
complications (dyslipidaemia->pancreatitis, empty-sella->CSF leak w/ 000,
gestational-DM->reduced fetal movements, T2DM->infected foot ulcer). Downward
discrimination confirmed: pre-diabetes floored at T2 (genuinely mild source);
the 12 T3s sit at the telehealth "cannot examine/cannot lab -> urgent in-person"
floor. Final tiers T2x1 / T3x12 / T4x13 / T5x24. Every high tier carries a
patient-reportable red flag, so the T4/T5-ceiling guardrail held.

Safety invariants held: NO insulin/thyroxine/hydrocortisone/antihypertensive/
oral-hypoglycaemic dose minted as AI output (sealed as the clinician answer in
node 12, should_NOT_recommend); NO paediatric/weight-based dose (CAH, paediatric
diabetes); no autonomous diagnosis; no fabricated lab values. Firewall intact
(all 50 carry firewall_assertion; EMD-013/020/023/031 backfilled; leak-scan +
de-anchor spot-check clean).

Attested by the clinical sign-off authority (reviewer KL, bulk_clinician_
attestation, 2026-07-18). Gates: cases:ingest --reseq wrote 50 dirs (1 reseq'd);
cases:verify-codes receipted 486 codes (0 failures); eval:cases PASS (451
attested conforming); verification Pass:true; npm test exit 0. Data-only —
firewall/hashing/schemas/servers/trunks untouched. Source .txt never entered
the repo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kenleefreo
kenleefreo merged commit a30e83c into main Jul 17, 2026
1 check passed
@kenleefreo
kenleefreo deleted the case-corpus-v2-emd branch July 17, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant