Packet model run (packet-run2, canonical)¶
Recorded 2026-11-13 ~11:05–11:11 UTC on DESKTOP-D249KD4 (gaming, RTX 4090),
Ollama at http://10.0.0.7:11434. Run ID packet-run2. All 68 calls exit 0,
zero NOT DONE outcomes, zero refusals. Gaming listener admitted every call.
A first run (packet-run1) completed identically in shape; run2 is canonical
because only run2 carries the hardened-path rejected-line counts.
Command¶
dotnet run --project tools/LocalModelSpike -- packets data/fixtures/report-packets web/public/snapshot/examples/packets packet-run2
The manifest was generated from committed fixtures (LF):
# Per SYNTHETIC-report-packet-*.json: non-restricted DocumentReference text/plain
# attachments only -> { id, packetId, patientId, synthetic, text }
# 34 entries, 2 restricted notes skipped, zero identifier-pattern hits.
Manifest data/spike/packet-notes.json SHA-256:
57901c978fdc3c78f0aec80716265a6d088b5c92258787d9481ff785360dbc6b
Models¶
| Tier | Model | Pinned digest |
|---|---|---|
| medgemma | medgemma-spike:4b |
sha256:700c01c1b1fd113489ccdfda49be4ab47087a4b2d41c46dd49e54385f46cb723 |
| baa (SIMULATED: local gpt-oss:20b, no real vendor, no PHI leaves the host) | gpt-oss:20b |
sha256:17052f91a42e97930aa6e28a6c6c06a983e6a58dbb00434885a0cf5313e376f7 |
Temperature 0, seed 13. QuotePrompt hash c9250501f9b403ba5677dea6eba73e0626d8d0cffbc8fc8de4ca3a297dbb859a
(same prompt as pass 13). No abliterated model was used; the transport
allowlist admits only the three pinned digests above.
MedGemma calls went through MedGemmaExcerptSelector.SelectExcerptsAsync.
The BAA tier went through the internal OllamaModelTransport.CompleteAuthorizedAsync,
which still enforces the exact QuotePrompt, embedded-manifest membership,
full-digest /api/tags pin, temperature 0 and FactGuard accept-only output.
ExportGateway.SendAsync still throws for every product caller; no product
export path was opened. This recorder-only grant is the assembly-scoped
InternalsVisibleTo("LocalModelSpike").
Totals (accepted / rejected / calls)¶
| Packet | MedGemma | BAA (simulated) |
|---|---|---|
| chronic-care | 2 / 25 / 6 | 2 / 33 / 6 |
| medication-reconciliation | 1 / 82 / 6 | 1 / 28 / 6 |
| multi-source | 0 / 107 / 5 | 1 / 4 / 5 |
| post-discharge | 4 / 19 / 6 | 3 / 20 / 6 |
| preventive-care | 0 / 25 / 5 | 2 / 20 / 5 |
| specialist-referral | 1 / 26 / 6 | 1 / 19 / 6 |
| Total | 8 / 284 / 34 | 10 / 124 / 34 |
Refusals: 0 on both tiers (a refusal would record outcome "refused" with no
refusal text). Rejected counts are computed inside the hardened transport from
guard verdicts; rejected text never enters a public field.
Timings (sum of per-call wall latency)¶
| Packet | MedGemma | BAA (simulated) |
|---|---|---|
| chronic-care | 5.9 s | 33.7 s |
| medication-reconciliation | 17.1 s | 38.6 s |
| multi-source | 15.7 s | 29.5 s |
| post-discharge | 5.1 s | 33.9 s |
| preventive-care | 4.7 s | 34.3 s |
| specialist-referral | 5.4 s | 41.2 s |
Tiers ran sequentially (all MedGemma, then all BAA), so cross-tier timing is
not a controlled comparison. Per-call latency and token counts are in each
web/public/snapshot/examples/packets/<packet-id>/<tier>.json.
Reading the thin yield honestly¶
Most calls returned zero accepted quotes. A same-prompt diagnostic (not part of the recording) showed the model returning verbatim source sentences while FactGuard rejected them: quote mode requires the tagger to find a clinical assertion in the line, and administrative sentences carry none. That is the documented conservative behavior ("unknown or failed tagging rejects the line"), not a recording bug. Silent notes are listed per packet in the UI; nothing is invented to fill them.
Rejected-line counts are verdict counts, not text: the transport counts guard
rejections and flags refusals inside CompleteAuthorizedAsync and exposes
only the number and the flag. The packet-run1 rejectedCount: null design is
superseded; run2 files carry numeric counts and the UI renders
"N lines rejected by FactGuard".
Determinism note: temperature is 0 with seed 13, yet run2 accepted counts differ slightly from run1 on the BAA tier (8 -> 10). Treat temp-0 output on this GPU path as near-deterministic, not bit-identical; the committed run2 files are the canonical evidence and the NUnit replay pins their guard verdicts.