// DO-MED-003 · emergency department note · source: partner health system
Patient: Maria Keller MRN: HX-204-9917 DOB: 14/03/1969
Attending: Dr. J. Okafor Ward: Cardiology 4B Admitted: 02 Jun 2026
HPI: 57F presenting with 3 days of exertional chest tightness radiating to the left arm, worse on climbing stairs. Known hypertension on amlodipine. Denies syncope.
ECG: sinus rhythm, 1 mm ST depression V4–V6. Troponin-I: 0.09 ng/mL → 0.31 ng/mL at 6 h.
Plan: DAPT loaded, heparin infusion, cath lab booked for AM.
// stage 02 · PII / PHI scan · 14 fields checked against the schema
✓ name → direct identifier Maria Keller
✓ mrn → direct identifier HX-204-9917
✓ dob → quasi-identifier 14/03/1969 → age band
✓ attending → third-party identifier Dr. J. Okafor
✓ admit_date → date shift ±14 d 02 Jun 2026
✓ ward → generalised Cardiology 4B → cardiology
· free_text → 2 candidate spans flagged for expert review
// 6 direct · 1 quasi · 0 residual after review
// stage 03 · de-identified record · Safe-Harbor + expert determination
Patient: PT-7f3a1c Age: 55–59 Sex: F Setting: cardiology, tertiary
Admitted: day 0 Clinician: CL-01
HPI: Presenting with 3 days of exertional chest tightness radiating to the left arm, worse on climbing stairs. Known hypertension on amlodipine. Denies syncope.
ECG: sinus rhythm, 1 mm ST depression V4–V6. Troponin-I: 0.09 → 0.31 ng/mL at 6 h.
Plan: DAPT loaded, heparin infusion, catheterisation day 1.
// stage 04 · expert layer · reviewer: consultant cardiologist (DO-EXP-1142)
differential [ NSTEMI ★, unstable angina, myopericarditis ]
reasoning "Dynamic troponin with regional ST change → NSTEMI over UA.
Absence of positional pain and normal-ish inflammatory picture
argues against pericarditis."
quality completeness 0.94 · internal consistency pass · guideline-aligned pass
labels acs · nstemi · dapt · cath_lab · hypertension
disposition accept → gold set candidate
// stage 05 · packaged · DO-MED-003 · shard 0412 / 0900
{ "id": "med_003_0412_00187",
"modality": "text/clinical-note",
"tokens": 612,
"expert_layer": { "differential": 3, "reasoning": true, "labels": 5 },
"deid": { "method": "safe-harbor+expert", "residual_pii": 0 },
"provenance": { "source": "inst_partner_h_07", "licence": "DO-L-2026-018", "consent": "institutional" },
"format": ["jsonl", "parquet"] }
✓ manifest signed · sha256 verified · ready for delivery
// DO-COD-014 · pull request · source: partner fintech monorepo
PR #4471 fix(payments): idempotency key collision on retry
author: a.novak@partner.io reviewer: lee.s branch: an/fix-idem-4471
- key = f"{order.id}-{attempt}"
+ key = f"{order.id}-{attempt}-{uuid4().hex[:8]}"
+ cache.setnx(key, 1, ttl=IDEM_TTL)
review: "setnx is right but the TTL is shorter than our retry window (see JIRA-8812).
Bump to 24h or we'll double-charge on slow webhooks." · status: changes requested
// stage 02 · scan · secrets, identities, internal references
✓ author_email → identity a.novak@partner.io
✓ reviewer → identity lee.s
✓ branch → contains handle an/fix-idem-4471
✓ ticket_ref → internal system JIRA-8812
✓ secrets scan → 0 keys · 0 tokens · 0 connection strings
✓ licence check → proprietary · partner-licensed · no GPL contamination
// 4 identifiers · 0 secrets · commit graph preserved
// stage 03 · de-identified · authorship pseudonymised, diff untouched
PR pr_00291 fix(payments): idempotency key collision on retry
author: dev_a3 reviewer: dev_c1 branch: fix/idem-collision
- key = f"{order.id}-{attempt}"
+ key = f"{order.id}-{attempt}-{uuid4().hex[:8]}"
+ cache.setnx(key, 1, ttl=IDEM_TTL)
review: "setnx is right but the TTL is shorter than our retry window (see ticket_1).
Bump to 24h or we'll double-charge on slow webhooks." · status: changes requested
// stage 04 · expert layer · reviewer: staff engineer, payments (DO-EXP-0377)
defect class concurrency / idempotency
verdict review comment is correct · fix is incomplete
reasoning "Random suffix defeats idempotency entirely — retries now create
new keys. The right fix is a deterministic key + longer TTL."
reference fix key = f"{order.id}-{attempt}"; ttl = RETRY_WINDOW * 2
tests 3 written · 3 pass on reference · 1 fails on original
disposition accept → SWE eval candidate
// stage 05 · packaged · DO-COD-014 · shard 0088 / 0240
{ "id": "cod_014_0088_00412",
"modality": "code/pr+review",
"lang": "python", "loc_context": 1840,
"expert_layer": { "verdict": true, "reference_fix": true, "tests": 3 },
"deid": { "identities": 4, "secrets": 0, "residual": 0 },
"provenance": { "source": "inst_partner_f_02", "licence": "DO-L-2026-031" },
"format": ["jsonl"] }
✓ manifest signed · sha256 verified · ready for delivery
// DO-OPS-011 · support call · source: partner contact centre (field-service desk)
Caller: Priya Menon Account: AC-77120-B Phone: +1 415 ••• 0832
Agent: Tomasz W. Queue: installs · tier 1 Duration: 06:48
[00:00:14] Caller: "The technician came Tuesday but the meter still reads offline in the app."
[00:00:31] Agent: "Let me check the install record… the gateway was registered, but the pairing step didn't complete."
[00:01:07] Agent: "I can push the pairing from here. Can you confirm the light on the unit is blinking amber?"
[00:01:20] Caller: "Amber, yes." · Agent: "Pushing now — it'll go solid green in about a minute."
// stage 02 · scan · names, account numbers, phone, addresses, voiceprint
✓ caller_name → direct identifier Priya Menon
✓ account_no → direct identifier AC-77120-B
✓ phone → direct identifier +1 415 ••• 0832
✓ agent_name → third-party identifier Tomasz W.
✓ address → spoken at 00:03:12 · redacted in audio + text
✓ voice → pitch-shifted · speaker embedding not retained
· device / fault → retained (non-identifying, needed for the task)
// 5 identifiers · one spoken address cut from the waveform
// stage 03 · de-identified · roles kept, people and account pseudonymised
Caller: CU-4d91 Account: ACCT-0217 Agent: AG-06 Queue: installs · tier 1
[00:00:14] CALLER: "The technician came Tuesday but the meter still reads offline in the app."
[00:00:31] AGENT: "Let me check the install record… the gateway was registered, but the pairing step didn't complete."
[00:01:07] AGENT: "I can push the pairing from here. Can you confirm the light on the unit is blinking amber?"
[00:01:20] CALLER: "Amber, yes." · AGENT: "Pushing now — it'll go solid green in about a minute."
// stage 04 · expert layer · reviewer: contact-centre operations lead, 9 yrs (DO-EXP-0688)
intent install_incomplete → remote_pairing
resolution resolved on call · no truck roll · 6:48
reasoning "Correct diagnosis from the install log rather than re-asking the caller;
confirmed device state before acting. Missed: no proactive check that
the app account was linked to the new gateway."
labels diagnosis_from_record · confirm_before_act · missed_followup
audio quality WER (expert-corrected) 3.4% · diarisation pass · overlap at 00:04:02 resolved
disposition accept → service-dialogue set
// stage 05 · packaged · DO-OPS-011 · shard 0058 / 0300
{ "id": "ops_011_0058_00214",
"modality": "audio+transcript/support-call",
"duration_s": 408, "tokens": 1620,
"expert_layer": { "intent": true, "resolution": true, "labels": 3 },
"deid": { "identifiers": 5, "audio_redactions": 1, "residual": 0 },
"provenance": { "source": "inst_partner_c_03", "licence": "DO-L-2026-052" },
"format": ["jsonl", "wav-16k"] }
✓ manifest signed · sha256 verified · ready for delivery