Skip to content

Spike mutation coverage (Susie) — 2026-11-13

Branch wt/WT-dc65/spike-mutation. stryker-spike.json now mutates 7 files: the original FactGuard.cs, ContextAssertionTagger.cs, ExportGateway.cs plus OllamaModelTransport.cs, MedGemmaExcerptSelector.cs, PinnedSpan.cs, ApprovedSyntheticSpans.cs. Thresholds unchanged (high 85 / low 70 / break 60). Local invocation mirrors pass11-mutation.sh: cd src/FhirDemo.LocalModels && dotnet stryker -f <root>/stryker-spike.json --output <fresh dir> --skip-version-check (dotnet-stryker 5.1.0), then dotnet run --project tools/QualityGate --no-build -- mutation <report> 60.

  • Before (expanded config, no new tests): 80.16%, 362 tests, 109 survived / 16 no-coverage.
  • After (18 new test methods, 28 cases): 84.92%, 390 tests. QualityGate: total=698, killed=530, survived=84, timeout=5, no-coverage=11, excluded=68, score=84.92%, break=60.00%; PASS.
  • dotnet test FhirDemo.slnx: all green — LocalModels 390, EFCore.DuckDB 289 (+1 pre-existing skip LocalQuackAttachmentExecutesQuery), AppHost 4, Lakehouse.Contracts 65, Contracts 31, Migration 193, FhirDemo.Tests 532. 1504 passed, 0 failed.
  • CI: spike added to the mutation matrix in .github/workflows/ci.yml and to run_lane plus the all loop in .github/scripts/pass11-mutation.sh as run_mutation spike src/FhirDemo.LocalModels stryker-spike.json. The shared "exactly one fresh report" rejection is unchanged.

Killed guard mutants (file:line mutant → killer test):

  • OllamaModelTransport.cs:101 removed BAA-gate throw → BaaModelWithValidPromptStillCannotReachCompletion
  • :52 removed endpoint-pin throw (was no-coverage) → WrongEndpointRejectedAtConstruction
  • :153 null digest matches (was no-coverage) → NullDigestNeverMatchesPinnedDigest
  • :111 /api/tags → "", :127 /v1/chat/completions → "" → ApiPathsArePinned
  • :123 stream=false → true, :124 roles → "" (x2), :127 dropped request body → CompletionRequestPinsDeterministicContract
  • :129 removed EnsureSuccessStatusCode on completion → ErrorCompletionResponseThrowsBeforeParsing
  • :136 split flags | → & → BlankLinesDoNotInflateRejectedCount
  • :137 quoteOnly: true → false → NonVerbatimParaphraseRejectedByQuoteOnlyTransportFilter
  • :160 1 MiB > → >= → ExactlyOneMiBKnownLengthResponseRemainsValid
  • :161 removed declared-length precheck throw → DeclaredLengthPrecheckRejectsWithoutReadingBody (also asserts 0 bytes read)
  • :24 refusal-regex options | → & → MixedCaseRefusalSetsRefusedFlag
  • :134 null content default (was no-coverage) → NullContentCompletionYieldsEmptyLinesAndZeroRejected
  • :114 tags Any → All → MultiModelTagsWithOneMatchStillAuthorized
  • ApprovedSyntheticSpans.cs:34 || → && and return false → return true (was no-coverage) → NullOrEmptySpanTextMakesNoHttpCalls (null + empty cases)
  • MedGemmaExcerptSelector.cs:26 removed ThrowIfNull → NullSpanThrowsArgumentNull
  • PinnedSpan.cs:10-14 fail-closed defaults → DefaultsAreFailClosedEmpty
  • PinnedSpan.cs:27-28 version prefix/history checks → SourceVersionMustBeDocumentReferenceHistory
  • PinnedSpan.cs:29 length >0/and/<=16000 → TextLengthBoundariesAreEnforced

NOT DONE (deliberately, with reasons):

  • Message-only string mutants (exception texts, verdict reasons) still survive; they change no behavior and are not guards.
  • ApprovedSyntheticSpans.cs:34 >16000 → >=16000 is equivalent: manifest max length is 1143, so no approved text sits on the boundary.
  • LoadManifest mutants (entry validation, empty/missing manifest) are unkillable: the manifest is a fixed embedded resource, always valid in every test run.
  • ConnectPinnedAsync socket mutants (ConnectAsync removal, ownsSocket, catch-path dispose/throw) need a live TCP peer at 10.0.0.7; not unit-testable.
  • IsRefusal regex-timeout arm (return false → true) needs a >100 ms regex match; not practically triggerable.
  • timer.Stop() removal (telemetry; timing-flaky) and _client.Dispose() removal (resource hygiene, not a guard) left surviving.
  • Pre-existing survivors in FactGuard.cs / ContextAssertionTagger.cs / ExportGateway.cs (63 at baseline) were already gated before this change and are out of scope here.

Pass 3 — 2026-11-12

Current result: build PASS (0 warnings/errors); all 61 .NET tests PASS in the standard Linux SDK container; Vitest 7/7 PASS; snapshot build PASS; Playwright 1/1 PASS at 390×844. Windows test loading remains blocked by Application Control (0x800711C7); a zero process exit with no discovered tests is NOT counted as a pass. Release also encountered the policy block. No security policy was changed.

All eight requested items have separate commits. Snapshot regeneration succeeded locally using the existing CLI, rebuilding gold from isolated fixtures and recording the real API; no hand-edited clinical text or generator workaround was needed. Second sync: 0 inserted / 0 updated / 3188 unchanged / 0 quarantined. Original clinical row values remain unchanged; BP components are newly exposed in the response for presentation. The labs source-row sample can vary at tied dates because its existing query limits to 100 without a secondary sort.

Mobile proof: pinned Playwright 1.65.0 launches vite preview on isolated port 4175 after a snapshot build. One spec removes Crypto.prototype.randomUUID (loopback would otherwise be secure), opens Overview → first patient → CDS cards → queues an allergy → checks the outbox JSON → Reports → Compare. Screenshots: Overview, Chart, Allergy outbox, Reports, Compare. Full web/src audit found no other secure-context-only APIs. C# handles server formatting; TypeScript remains necessary for the existing Vue client and requested Playwright test.

Review limitation: gaming council qwen3-coder reported “no findings” twice; devstral provided hypothetical concerns without a concrete defect (the UUID fallback uses cryptographic getRandomValues). Local gemma4 returned a descriptive analysis rather than actionable findings. Independent Cedric review checked snapshots and original values. Clahadore's CLI was denied by the usage governor even after a supported state scan; Jenny's CLI lacked authentication and timed out. Thus this is a reduced review, not a completed Claude-chaired full council. No governor bypass was used.

Pass 3 command receipts

dotnet build (Windows)

  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\FhirDemo.ServiceDefaults.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\FhirDemo.Lakehouse.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\FhirDemo.Operational.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\FhirDemo.Cli.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\FhirDemo.Data.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\FhirDemo.AppHost.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\FhirDemo.Deploy.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\FhirDemo.Api.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\FhirDemo.Tests.csproj]
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Deploy -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\bin\Debug\net10.0\FhirDemo.Deploy.dll
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Cli -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
  FhirDemo.AppHost -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\bin\Debug\net10.0\FhirDemo.AppHost.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.38

dotnet test (Windows, blocked — not a pass)

[xUnit.net 00:00:01.16] FhirDemo.Tests: Catastrophic failure: System.IO.FileLoadException: Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll'. An Application Control policy has blocked this file. (0x800711C7)
No test is available in C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

dotnet test (isolated Linux SDK container)

Image: mcr.microsoft.com/dotnet/sdk:10.0@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb. Sources and EFCore.DuckDB were mounted read-only and copied inside the container, excluding bin/obj. Command: dotnet test tests/FhirDemo.Tests/FhirDemo.Tests.csproj. Container exit: 0.

.NET SDK:
 Version:           10.0.404
 Commit:            2ab2854867
 Workload version:  10.0.400-manifests.ad9f6d83
 MSBuild version:   18.9.15+2ab285486

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  24.04
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/10.0.404/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
  Version:      10.0.15
  Architecture: x64
  Commit:       8e0f8ed231

.NET SDKs installed:
  10.0.404 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 10.0.15 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 10.0.15 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_GENERATE_ASPNET_CERTIFICATE       [false]
  DOTNET_NOLOGO                            [true]
  DOTNET_RUNNING_IN_CONTAINER              [true]
  DOTNET_SDK_VERSION                       [10.0.404]
  DOTNET_USE_POLLING_FILE_WATCHER          [true]
  DOTNET_VERSION                           [10.0.15]

global.json file:
  /work/demo/global.json

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
  Determining projects to restore...
  Restored /work/demo/src/FhirDemo.ServiceDefaults/FhirDemo.ServiceDefaults.csproj (in 2.42 sec).
  Restored /work/demo/src/FhirDemo.Core/FhirDemo.Core.csproj (in 2.47 sec).
  Restored /work/demo/src/FhirDemo.Operational/FhirDemo.Operational.csproj (in 5.3 sec).
  Restored /work/demo/src/FhirDemo.Data/FhirDemo.Data.csproj (in 5.47 sec).
  Restored /work/EFCore.DuckDB/src/EFCore.DuckDB/EFCore.DuckDB.csproj (in 9.96 sec).
  Restored /work/demo/src/FhirDemo.Lakehouse/FhirDemo.Lakehouse.csproj (in 9.96 sec).
  Restored /work/demo/src/FhirDemo.Api/FhirDemo.Api.csproj (in 9.96 sec).
  Restored /work/demo/tests/FhirDemo.Tests/FhirDemo.Tests.csproj (in 9.97 sec).
  FhirDemo.ServiceDefaults -> /work/demo/src/FhirDemo.ServiceDefaults/bin/Debug/net10.0/FhirDemo.ServiceDefaults.dll
  FhirDemo.Core -> /work/demo/src/FhirDemo.Core/bin/Debug/net10.0/FhirDemo.Core.dll
  EFCore.DuckDB -> /work/EFCore.DuckDB/src/EFCore.DuckDB/bin/Debug/net10.0/EFCore.DuckDB.dll
  FhirDemo.Lakehouse -> /work/demo/src/FhirDemo.Lakehouse/bin/Debug/net10.0/FhirDemo.Lakehouse.dll
  FhirDemo.Data -> /work/demo/src/FhirDemo.Data/bin/Debug/net10.0/FhirDemo.Data.dll
  FhirDemo.Operational -> /work/demo/src/FhirDemo.Operational/bin/Debug/net10.0/FhirDemo.Operational.dll
  FhirDemo.Api -> /work/demo/src/FhirDemo.Api/bin/Debug/net10.0/FhirDemo.Api.dll
  FhirDemo.Tests -> /work/demo/tests/FhirDemo.Tests/bin/Debug/net10.0/FhirDemo.Tests.dll
Test run for /work/demo/tests/FhirDemo.Tests/bin/Debug/net10.0/FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:    61, Skipped:     0, Total:    61, Duration: 8 s - FhirDemo.Tests.dll (net10.0)

npm test (web/)

> fhir-demo-web@2.0.0 test
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  3 passed (3)
      Tests  7 passed (7)
   Start at  18:04:06
   Duration  104ms (tests 33%, import 32%, transform 23%, worker 12%, environment 1%)

npm run build:snapshot (web/)

> fhir-demo-web@2.0.0 build:snapshot
> vue-tsc --noEmit && vite build --mode snapshot

vite v7.3.8 building client environment for snapshot...
transforming...
✓ 270 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.29 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-CpsyITja.js   348.52 kB │ gzip: 116.96 kB
✓ built in 837ms

npm run e2e (web/)

> fhir-demo-web@2.0.0 e2e
> playwright test

[WebServer] (node:37204) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
[WebServer] (node:30736) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)

Running 1 test using 1 worker

(node:4392) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
  ok 1 e2e\mobile.e2e.ts:7:1 › mobile snapshot supports the chart, allergy outbox, reports, and comparison (768ms)

  1 passed (6.1s)

dotnet run --project src/FhirDemo.Cli --no-build -- snapshot --out web/public/snapshot

Recorded second sync: {"inserted":0,"updated":0,"unchanged":3188,"quarantined":0}

Pass 2 verification — 2026-11-12

Current result: dotnet build PASS (2 pre-existing obsolete-parser warnings); dotnet test PASS 58/58; normal and snapshot web builds PASS; Vitest PASS 3/3; both deploy stacks synth/validate PASS. Metabase provision and all eight card queries PASS. No cloud deployment was performed. Older v2 receipts below remain historical evidence, not the current test status.

Snapshot JSON was generated and committed from the actual API: ten patient summaries with CDS, dashboard, five reports, and second-sync 0 inserted / 0 updated / 3188 unchanged / 0 quarantined. That successful export read the existing synthetic fixture gold database. Review then hardened regeneration to build gold in an isolated temporary fixture directory too. Final isolated regeneration is BLOCKED by Windows Application Control loading FhirDemo.ServiceDefaults.dll; Clahadore must rerun it on another PC. The committed snapshots remain the actual earlier generated outputs, not invented data. No security policy was disabled or bypassed.

An earlier targeted ApiSecurityTests attempt was also BLOCKED loading FhirDemo.Tests.dll (0x800711C7); it is not counted as passed. The subsequent full suite executed all 58 tests successfully, including the ten new security cases.

Pass 2 command receipts

dotnet build

  Determining projects to restore...
  All projects are up-to-date for restore.
  FhirDemo.Deploy -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\bin\Debug\net10.0\FhirDemo.Deploy.dll
C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\ClinicalMapping.cs(18,54): warning CS0618: 'FhirJsonParser' is obsolete: 'FhirJsonParser is obsolete, use FhirJsonDeserializer instead.' [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\ClinicalMapping.cs(18,50): warning CS0618: 'FhirJsonParser.Parse<T>(string)' is obsolete: 'Use Deserialize<T>() instead.' [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Cli -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
  FhirDemo.AppHost -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\bin\Debug\net10.0\FhirDemo.AppHost.dll

Build succeeded.

C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\ClinicalMapping.cs(18,54): warning CS0618: 'FhirJsonParser' is obsolete: 'FhirJsonParser is obsolete, use FhirJsonDeserializer instead.' [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\ClinicalMapping.cs(18,50): warning CS0618: 'FhirJsonParser.Parse<T>(string)' is obsolete: 'Use Deserialize<T>() instead.' [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
    2 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.46

dotnet test

  Determining projects to restore...
  All projects are up-to-date for restore.
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:    58, Skipped:     0, Total:    58, Duration: 7 s - FhirDemo.Tests.dll (net10.0)

cd web; npm run build

> fhir-demo-web@2.0.0 build
> vue-tsc --noEmit && vite build

vite v7.3.8 building client environment for production...
transforming...
✓ 268 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.30 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-Rnwd1KNP.js   346.92 kB │ gzip: 116.25 kB
✓ built in 844ms

cd web; npm run build:snapshot

> fhir-demo-web@2.0.0 build:snapshot
> vue-tsc --noEmit && vite build --mode snapshot

vite v7.3.8 building client environment for snapshot...
transforming...
✓ 268 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.29 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-CIPrcdBt.js   347.87 kB │ gzip: 116.70 kB
✓ built in 867ms

cd web; npm test

> fhir-demo-web@2.0.0 test
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  1 passed (1)
      Tests  3 passed (3)
   Start at  17:47:52
   Duration  118ms (transform 65%, import 16%, tests 14%, worker 5%)

BLOCKED: dotnet run --no-build --project src/FhirDemo.Cli -- snapshot --out web/public/snapshot

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll'. An Application Control policy has blocked this file. (0x800711C7)
File name: 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll'

NOT DONE — pass 2

  • Rerun the hardened isolated snapshot exporter on a PC where Application Control permits its assemblies; commit regenerated JSON if changed.
  • Terraform plan skipped: no existing Google/Cloudflare credentials. Fleet provider-pin parity awaits the unavailable fleet-infra policy. No apply or site upload authorized/executed.
  • Phone/browser rehearsal and Metabase dashboard visual inspection were not performed. Provisioning was verified in a disposable local container, subsequently removed; persistent local setup remains opt-in.
  • Forge Studio's separately built artifact must be supplied for a future approved upload.

Historical v2 receipts, followed by pass 2 Deploy and Metabase evidence

Verification receipts — 2026-11-12

This file contains actual local outputs, not expected output. Commands ran in WT-dc65 on Windows. Final build succeeds. Final full test suite is not green: 45 passed, 3 blocked by Windows Application Control. An earlier integrated version passed all 42 tests and ran both tracks/API. Final source-isolation and persisted-risk review fixes added six tests; their targeted receipts and remaining load failures are distinguished below. No policy was disabled or bypassed.

Final build

Command: dotnet build

Build output

  Determining projects to restore...
  All projects are up-to-date for restore.
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Cli -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
  FhirDemo.AppHost -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\bin\Debug\net10.0\FhirDemo.AppHost.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.86

Final dotnet test --no-build (48 total; 3 policy-load failures)

Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.29]     FhirDemo.Tests.LakehouseReplayTests.OlderPartialReplayPreservesPersistedPatientsAndNewerRiskInputs [FAIL]
  Failed FhirDemo.Tests.LakehouseReplayTests.OlderPartialReplayPreservesPersistedPatientsAndNewerRiskInputs [23 ms]
  Error Message:
   System.IO.FileLoadException : Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Lakehouse.dll'. An Application Control policy has blocked this file. (0x800711C7)
  Stack Trace:
     at FhirDemo.Tests.LakehouseReplayTests.OlderPartialReplayPreservesPersistedPatientsAndNewerRiskInputs()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:00.31]     ReportTests.AllFiveReportsReadGoldWithoutSilentlyFallingBack [FAIL]
  Failed ReportTests.AllFiveReportsReadGoldWithoutSilentlyFallingBack [44 ms]
  Error Message:
   System.IO.FileLoadException : Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Lakehouse.dll'. An Application Control policy has blocked this file. (0x800711C7)
  Stack Trace:
     at ReportTests.AllFiveReportsReadGoldWithoutSilentlyFallingBack()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:01.03]     FhirDemo.Tests.PipelineTests.LakehouseHasGoldRowsForEveryPatient [FAIL]
  Failed FhirDemo.Tests.PipelineTests.LakehouseHasGoldRowsForEveryPatient [23 ms]
  Error Message:
   System.IO.FileLoadException : Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Lakehouse.dll'. An Application Control policy has blocked this file. (0x800711C7)
  Stack Trace:
     at FhirDemo.Tests.PipelineTests.LakehouseHasGoldRowsForEveryPatient()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
WARNING: Overwriting results file: C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\.artifacts\tests.trx
Results File: C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\.artifacts\tests.trx

Failed!  - Failed:     3, Passed:    45, Skipped:     0, Total:    48, Duration: 4 s - FhirDemo.Tests.dll (net10.0)

Source isolation, cutoff, and synthetic-project guards: six targeted tests

  Determining projects to restore...
  All projects are up-to-date for restore.
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     6, Skipped:     0, Total:     6, Duration: 4 s - FhirDemo.Tests.dll (net10.0)

Persisted lakehouse replay regression: targeted run before later policy block

  Determining projects to restore...
  All projects are up-to-date for restore.
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 649 ms - FhirDemo.Tests.dll (net10.0)

Operational first run on a fresh SQLite database

inserted=3188 updated=0 unchanged=0 quarantined=0

Operational second run on the same SQLite database

inserted=0 updated=0 unchanged=3188 quarantined=0

Lakehouse run --fixtures (before final replay hardening; full fixture cohort)

{
  "Counts": {
    "bronze_fhir": 6376,
    "silver_patient": 10,
    "silver_encounter": 281,
    "silver_observation": 2582,
    "silver_condition": 87,
    "silver_allergy": 3,
    "silver_immunization": 113,
    "silver_medication": 112,
    "gold_patient_summary": 10,
    "gold_immunization_status": 10,
    "gold_lab_trends": 2366,
    "gold_population": 28,
    "gold_risk_flags": 48,
    "gold_outreach": 10
  },
  "Rejected": 0,
  "AsOf": "2026-11-12T23:25:50.0834692+00:00"
}

curl http://127.0.0.1:5081/api/patients (before final source hardening)

[{"id":"ba18818d-faef-44cd-9744-b12d8973d402","name":"Adalberto Hartmann","sex":"male","birthDate":"1949-11-29"},{"id":"d67a0cff-8f7e-46f7-bb99-577a6623e59a","name":"Adolph Smith","sex":"male","birthDate":"1944-11-28"},{"id":"d39173c2-7dc5-4a08-aba0-3f14f6b70d94","name":"Adán Pulido","sex":"male","birthDate":"1936-08-18"},{"id":"2b729cb8-0713-4dec-9dfb-ae0aecb28fb4","name":"Alfonso Dietrich","sex":"male","birthDate":"1962-06-02"},{"id":"d00b080d-706e-4cd8-ae87-6531e798b1fd","name":"Ali Herman","sex":"male","birthDate":"1952-03-16"},{"id":"ab47f921-b3c4-4bbe-8744-9bf303f64db9","name":"Austin Spencer","sex":"male","birthDate":"1955-04-12"},{"id":"57a5a683-f51e-4976-ad1d-c2c4d3385cec","name":"Beatriz Salazar","sex":"female","birthDate":"1967-05-21"},{"id":"4db03e6a-a8d0-4691-b861-e685e90a5d77","name":"Cammy Kreiger","sex":"female","birthDate":"1978-06-10"},{"id":"0488ce70-f68d-45fb-b6a5-29684d0e4f35","name":"Carin Schowalter","sex":"female","birthDate":"1968-08-09"},{"id":"010fd829-1ef3-49c9-98c4-df7561709bc7","name":"Chung Haley","sex":"male","birthDate":"1958-02-25"}]

POST /cds-services/patient-risk for synthetic Ali Herman

{"cards":[{"summary":"HbA1c: Prediabetes range","indicator":"warning","detail":"Latest HbA1c 6.27%; thresholds 5.7 to <6.5 and >=6.5. Range flag is not a diagnosis. 2020-06-14: 6.27% [Observation/91c84bf1-1fba-4a9b-93d3-ab26a904b370]; 2019-06-09: 6.22% [Observation/2e6ef7cf-e29d-4d88-b640-1ed1f3ed7a39]; 2018-06-03: 5.9% [Observation/e2a5464d-8512-437e-8005-59aa47514f67] Educational demo, not clinical use.\nSources: Observation/91c84bf1-1fba-4a9b-93d3-ab26a904b370, Observation/2e6ef7cf-e29d-4d88-b640-1ed1f3ed7a39, Observation/e2a5464d-8512-437e-8005-59aa47514f67\nEducational demo, not clinical use.","source":{"label":"FHIR Demo · transparent rules","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC4700825/#T8"}},{"summary":"HbA1c rising across last 3 results","indicator":"warning","detail":"Strictly increasing oldest to newest: 5.9 -> 6.22 -> 6.27 Educational demo, not clinical use.\nSources: Observation/91c84bf1-1fba-4a9b-93d3-ab26a904b370, Observation/2e6ef7cf-e29d-4d88-b640-1ed1f3ed7a39, Observation/e2a5464d-8512-437e-8005-59aa47514f67\nEducational demo, not clinical use.","source":{"label":"FHIR Demo · transparent rules","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC4700825/#T8"}},{"summary":"Blood pressure rule not triggered","indicator":"info","detail":"At least 2 of the last 3 readings with systolic >=140 OR diastolic >=90 mmHg. 2020-06-14: 124.28/87.75 [Observation/a9eb4dcf-4ce4-4b5f-96ce-34da9d619b94]; 2019-06-09: 116.93/87.34 [Observation/eef71b90-dbd0-448e-ad3a-2f9544641cba]; 2018-06-03: 117.72/75.09 [Observation/256c67f5-e3d3-407c-bcf6-1917f9faa5fb] Educational demo, not clinical use.\nSources: Observation/a9eb4dcf-4ce4-4b5f-96ce-34da9d619b94, Observation/eef71b90-dbd0-448e-ad3a-2f9544641cba, Observation/256c67f5-e3d3-407c-bcf6-1917f9faa5fb\nEducational demo, not clinical use.","source":{"label":"FHIR Demo · transparent rules","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC4700825/#T8"}},{"summary":"10-year ASCVD: insufficient data","indicator":"info","detail":"Insufficient data: race coefficient (explicit white/black), BP treated, diabetes status. 2013 PCE uses historical Black/White race coefficients; race is a social classification, not a biological mechanism. Estimates may be miscalibrated and are not validated for other groups. No race is inferred. Educational demo, not clinical use.\nSources: Patient/d00b080d-706e-4cd8-ae87-6531e798b1fd, Observation/34d3dc0e-09fc-470e-9577-5093cc48b26d, Observation/aa194ee3-1f24-42e1-9259-acaab811cb68, Observation/11f48446-c3c6-43a6-a096-ed83d3d9ed44, Observation/a9eb4dcf-4ce4-4b5f-96ce-34da9d619b94\nEducational demo, not clinical use.","source":{"label":"FHIR Demo · transparent rules","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC4700825/#T8"}},{"summary":"Care gap: no flu immunization recorded in last 12 months","indicator":"warning","detail":"As of 2026-11-12; completed immunizations with listed CVX codes, inclusive 12-month window. Absence is in this dataset, not proof of no vaccination elsewhere. Educational demo, not clinical use.\nSources: Patient/d00b080d-706e-4cd8-ae87-6531e798b1fd, Immunization/0be70d02-5e10-4372-b2f5-4dd1dc9829b0, Immunization/1077ff52-e6c0-4888-890c-ebb581b928d5, Immunization/21ecc38e-c4e1-4eb1-a235-43137ff8502a, Immunization/6d0b20ff-351c-42a3-aea9-4edb24a8b860, Immunization/791e44f3-6e04-4aa3-bccb-dd69318af20e, Immunization/a4d54389-237a-44e5-9f16-f1d98bd9e3ce, Immunization/c04892b6-fdb0-4575-9727-42e2ee5ea22a, Immunization/ebcec208-b7b7-4f53-b23a-fcb41855f570, Immunization/f13fc3ae-5e02-4735-aed5-334ae91228e9\nEducational demo, not clinical use.","source":{"label":"FHIR Demo · transparent rules","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC4700825/#T8"}}]}

POST /api/patients/{id}/allergies: local outbox only

{"id":"7e07f5f9-12d5-456c-81a9-d628ac7fb4b7","status":"simulated-not-sent","createdAt":"2026-11-12T23:20:52.3528505+00:00","resource":{"resourceType":"AllergyIntolerance","id":"fd7c8346-8f47-4d2b-bb68-7e2afae5bab4","clinicalStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical","code":"active"}]},"verificationStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification","code":"unconfirmed"}]},"code":{"coding":[{"system":"http://snomed.info/sct","code":"91935009"}],"text":"Peanut"},"patient":{"reference":"Patient/d00b080d-706e-4cd8-ae87-6531e798b1fd"},"recordedDate":"2026-11-12T23:20:52.3525893+00:00"}}

All five /api/reports routes: actual gold sources and row counts

[
  {
    "Name": "population",
    "Source": "DuckDB gold tables · batch snapshot · read-only",
    "Items": 2,
    "Rows": 0
  },
  {
    "Name": "conditions",
    "Source": "DuckDB gold tables · batch snapshot · read-only",
    "Items": 26,
    "Rows": 0
  },
  {
    "Name": "immunizations",
    "Source": "DuckDB gold tables · batch snapshot · read-only",
    "Items": 1,
    "Rows": 0
  },
  {
    "Name": "labs",
    "Source": "DuckDB gold tables · batch snapshot · read-only",
    "Items": 56,
    "Rows": 100
  },
  {
    "Name": "risk",
    "Source": "DuckDB gold tables · batch snapshot · read-only",
    "Items": 9,
    "Rows": 10
  }
]

npm run build in web/

> fhir-demo-web@2.0.0 build
> vue-tsc --noEmit && vite build

vite v7.3.8 building client environment for production...
transforming...
✓ 268 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.30 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-BPMDReIR.js   346.42 kB │ gzip: 116.00 kB
✓ built in 903ms

AppHost resource startup and health (earlier integrated run)

Resource web-installer: Running; health=Healthy
Resource aspire-dashboard: Running; health=Healthy
Resource worker: Running; health=Healthy
Resource aspire-dashboard: Running; health=Healthy
Resource worker: Running; health=Healthy
Resource web-installer: Running; health=Healthy
Resource aspire-dashboard: Running; health=Healthy
Resource aspire-dashboard: Running; health=Healthy
Resource worker: Finished; health=
Resource api: Running; health=Unhealthy
Resource api: Running; health=Unhealthy
Resource api: Running; health=Unhealthy
Resource api: Running; health=Healthy
Resource web: Running; health=Healthy
Resource web: Running; health=Healthy
Resource web: Running; health=Healthy
Resource api: Running; health=Healthy
Resource metabase: Running; health=Healthy
Resource metabase: Running; health=Healthy
Resource api: Running; health=Healthy
Resource api: Running; health=Healthy
The worker is intentionally one-shot: Finished is the expected successful final state. API and web reached Healthy. Metabase Running/Healthy reflects Aspire process state; an independent GET /api/health also returned {"status":"ok"}. No browser screenshot or visual claim is made. Final AppHost restart after the last assembly changes registered resources but API reported FailedToStart; the final code is not claimed healthy on this Windows host.

cdktn synth: no credentials, no apply

[2026-11-12T17:16:25.320] [ERROR] default - 'terraform' is not recognized as an internal or external command,
'terraform' is not recognized as an internal or external command,
operable program or batch file.

operable program or batch file.
[2026-11-12T17:16:25.407] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

[2026-11-12T17:16:25.408] [INFO] default - Unable to determine Terraform version: Error: Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html

Synthesized fhir-demo-azure: 10 Azure resources. SYNTH ONLY; no deployment performed.

Generated Terraform code for the stacks: fhir-demo-azure

Pinned MotherDuck driver download and checksum

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          E95F49D5668A0E57C83D05533EFA76FD8F37DDE26DB82DD07BB33CBFBE50A69B       C:\Users\fives\source\repos\fhi…
Downloaded pinned MotherDuck driver 1.5.6.0 from https://github.com/motherduckdb/metabase_duckdb_driver/releases/download/1.5.6.0/duckdb.metabase-driver.jar

Latest metabase provision attempt

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Lakehouse.dll'. An Application Control policy has blocked this file. (0x800711C7)
File name: 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Lakehouse.dll'
   at Program.<Main>$(String[] args)
   at Program.<Main>$(String[] args)
   at Program.<Main>(String[] args)

Fixture evidence

89 verbatim SMART Bundle files; 3,188 mapped resources; 10 explicitly Synthea-identified patients. Per-file SHA256 and origin URLs: SMART SOURCE. Four Ottehr producer JSON resources at pinned upstream commit: Ottehr SOURCE. Contract tests parse all seven SMART resource types. Ottehr examples are separate, not included in the ten-patient cohort.

Review receipts and applied findings

Native independent review found and then cleared these P2 issues:

  • Persistent database source binding prevents sandbox/Oystehr cursor or ID collisions.
  • Live reads have a fixed upper cutoff and overlap; out-of-window producer records roll back the type transaction.
  • Oystehr requires explicit synthetic-project attestation before credentials/network access; this is not automatic proof of synthetic content.
  • Lakehouse risk uses the same persisted latest_fhir view as silver, preserving newer evidence on older/partial replay.
  • CI shell failure propagation corrected; Terraform setup pinned for hosted synth.
  • Actual execution found DuckDB alias errors and read-only Metabase plugin-directory behavior; both implementations were corrected.

The required Clahadore-chaired council gate is not complete. Claude CLI was denied by the usage governor even after its suggested normal scan. No bypass flag was used. Gaming council timed out after 300 seconds; streaming council tool unavailable. Gemini required authentication and timed out. Local Ollama returned no substantive review. Native reviews are not represented as the required multi-model council.

NOT DONE / limitations

  • Final all-green test suite and final operational/API/lakehouse replay after every last change: blocked by Windows Application Control 0x800711C7 on rebuilt assemblies. Earlier 42/42 pass and successful runtime receipts do not prove the final snapshot passes everywhere. The final suite's 45/48 and exact errors are above.
  • Final AppHost healthy state: API FailedToStart on the last restart. Earlier resource health is preserved separately. Do not present it as final-state health.
  • Browser/mobile visual check: computer-use returned The browser access host is unavailable. Vue compilation and HTTP checks are real; rendered interaction is unverified.
  • Metabase dashboard provisioning: initial attempt got HTTP400 because read-only plugin-directory mount made Metabase ignore the DuckDB driver. Mount corrected to the individual JAR. Latest retry blocked by Application Control before CLI execution; five dashboards have definitions but no successful dashboard-list receipt. API gold reports and SVG fallback exist and report queries passed a real-fixture regression.
  • SQL Server container execution and live Oystehr calls: not run. SQLite migrations/sync tested; Oystehr is credential/attestation-gated and uncalled.
  • Azure deployment/provider validation: never attempted. Synth generated ten resources; Terraform missing locally emitted a warning. Networking, RBAC assignments and application deployment wiring remain skeleton work.
  • GitHub Actions/Azure Pipelines hosted run: definitions added; no hosted run claimed.
  • Optional COULD features not implemented: SQL Server stored procedure, data-quality table, SFTP stub, Grok provider. The cited deterministic summary works without an AI call.
  • Track A risk calculation uses the shared C# library followed by SQL publication; it is not a duplicate SQL PCE implementation. See SSM-vs-INNOVARE.md.
  • Ottehr fixtures are preserved source examples, not a complete imported Ottehr clinical chart. No account created and no public FHIR POST/PUT performed.
  • Commits/push: pending the required review gate or explicit user exception; no successful commit/push claimed.
  • Worktree identity update: executable launch was blocked by Application Control. Existing worktree remains wt/WT-dc65/fhir-demo; no board ticket URL was supplied or invented.

Repository checks

git diff --cached --check produced no output. Comparing each staged fixture blob with git hash-object --no-filters reported Verbatim index matches: mismatches=0. .gitattributes disables line-ending conversion for producer JSON; no fixture bytes were rewritten. A targeted secret-pattern check found no matches in staged nonfixture text. This is not a claim of exhaustive secret detection. Generated binaries, databases, downloaded JARs, dependency folders and raw operational logs are ignored.

Earlier full-suite output, before the last source/replay hardening:

Passed!  - Failed:     0, Passed:    42, Skipped:     0, Total:    42, Duration: 6 s - FhirDemo.Tests.dll (net10.0)

Verification AppHost processes were stopped after recording results. Local generated Metabase test credentials were stored outside this repository in the AppHost user-secrets store; no credentials are printed here. No live demo is claimed to remain running.

Deploy

# Deploy verification — 2026-11-12

cdktn 0.25.0; Terraform 1.17.1 (downloaded to ignored .artifacts/terraform).

$ cdktn synth --output cdktn.out

Synthesized fhir-demo-gcp and fhir-demo-cf. No deployment performed.

Generated Terraform code for the stacks: fhir-demo-cf, fhir-demo-gcp

$ terraform -chdir=cdktn.out/stacks/fhir-demo-gcp init -backend=false -input=false -no-color
Initializing provider plugins...
- Finding hashicorp/google-beta versions matching "7.25.0"...
- Finding hashicorp/google versions matching "7.25.0"...
- Installing hashicorp/google-beta v7.25.0...
- Installed hashicorp/google-beta v7.25.0 (signed by HashiCorp)
- Installing hashicorp/google v7.25.0...
- Installed hashicorp/google v7.25.0 (signed by HashiCorp)

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

$ terraform -chdir=cdktn.out/stacks/fhir-demo-gcp validate -no-color
Success! The configuration is valid.


$ terraform -chdir=cdktn.out/stacks/fhir-demo-cf init -backend=false -input=false -no-color
Initializing provider plugins...
- Finding cloudflare/cloudflare versions matching "5.17.0"...
- Installing cloudflare/cloudflare v5.17.0...
- Installed cloudflare/cloudflare v5.17.0 (self-signed, key ID C76001609EE3B136)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

$ terraform -chdir=cdktn.out/stacks/fhir-demo-cf validate -no-color
Success! The configuration is valid.


PLAN SKIPPED: gcloud not on PATH; default ADC file absent; GOOGLE_APPLICATION_CREDENTIALS and CLOUDFLARE_API_TOKEN unset. No login/auth mutation attempted.
No apply, gcloud mutation, wrangler upload, or cloud deployment performed.
Provider-policy parity NOT VERIFIED: fleet-infra/policy/providers.json not present locally; attempted GitHub repositories returned 404.

$ dotnet build infra/FhirDemo.Deploy/Seed/FhirDemo.Seed.csproj -v minimal
  Determining projects to restore...
  Restored C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\Seed\FhirDemo.Seed.csproj (in 198 ms).
  3 of 4 projects are up-to-date for restore.
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Seed -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\Seed\bin\Debug\net10.0\FhirDemo.Seed.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.18

$ docker build -t fhir-demo-api:verify .
Selected real Docker output:
#20 7.153 inserted=3188 updated=0 unchanged=0 quarantined=0
#20 8.314 inserted=0 updated=0 unchanged=3188 quarantined=0
#25 naming to docker.io/library/fhir-demo-api:verify done
#25 DONE 10.0s

$ docker run -d --rm --name fhir-demo-deploy-verify -p 127.0.0.1:18087:8080 fhir-demo-api:verify
Local container smoke output:
Patient count: 10
{"patients":10,"observations":2582,"outbox":0,"quarantined":0,"provider":"Sqlite","lastSync":null,"lakehouse":{"available":false,"patients":0,"riskFlags":0,"message":"Run lakehouse run --fixtures to build Track A."}}
POST /api/sync: 403
CSP: default-src 'self'; frame-ancestors 'none'; object-src 'none'; base-uri 'self'
$ docker stop fhir-demo-deploy-verify
fhir-demo-deploy-verify

Local Docker smoke is not a deployed endpoint check. Lakehouse intentionally absent; operational reports fallback remains.

Metabase — pass 2, 2026-11-12

Provisioning verified against a disposable local Docker container, bound only to 127.0.0.1:3000, with the synthetic lakehouse mounted read-only. Credentials were generated in memory, never printed or committed. No cloud mutation occurred.

Initial attempt with metabase/metabase:v0.63.17 failed during database registration:

System.Net.Http.HttpRequestException: Metabase /api/database: HTTP 400. {"message":"/tmp/libduckdb_java2168768545914602652.so: Error loading shared library libstdc\u002B\u002B.so.6: No such file or directory (needed by /tmp/libduckdb_java2168768545914602652.so)"}

The upstream driver's Docker instructions confirm Alpine/musl cannot load the glibc JDBC library: https://github.com/motherduckdb/metabase_duckdb_driver#docker

Retried with its pinned Debian image; actual pull receipt:

Digest: sha256:09ff84855c9fb297871f27c397b8fe4f82017b2e7d9200ab247c7b3e5a4dad03
Status: Downloaded newer image for ghcr.io/motherduckdb/metabase-duckdb:0.63.17-duckdb1.5.6.0
ghcr.io/motherduckdb/metabase-duckdb:0.63.17-duckdb1.5.6.0

Commands: dotnet run --project src/FhirDemo.Cli --no-build -- metabase provision, then authenticated GET /api/dashboard/{id} and POST /api/card/{id}/query for every created card. Second provisioning executed with the same process-scoped local credentials. Actual verification output:

Provision exit: 0
Dashboard 2: Chronic conditions; cards=1
  Card 40: Active condition prevalence; status=completed; rows=26
Dashboard 3: Immunization gaps; cards=1
  Card 41: No flu vaccination recorded in prior 12 months; status=completed; rows=10
Dashboard 4: Lab trends; cards=1
  Card 42: HbA1c results (percent); status=completed; rows=68
Dashboard 5: Population overview; cards=2
  Card 43: Age bands; status=completed; rows=2
  Card 44: Patient overview; status=completed; rows=10
Dashboard 6: Population risk; cards=3
  Card 45: Risk distribution; status=completed; rows=8
  Card 46: Rising HbA1c cohort; status=completed; rows=3
  Card 47: Care-manager outreach list; status=completed; rows=10
Second provision exit: 0

Second-pass CLI receipt:

Dashboard already exists: Chronic conditions; unchanged
Dashboard already exists: Immunization gaps; unchanged
Dashboard already exists: Lab trends; unchanged
Dashboard already exists: Population overview; unchanged
Dashboard already exists: Population risk; unchanged

NOT DONE: browser visual inspection of Metabase dashboard layouts; persistent local Metabase deployment is not configured. The disposable verification container was removed after testing, so no inaccessible admin account or database reader remains running. API reports/SVG and committed phone snapshots remain the default.

Tooling note: automatic approval review rejected a combined background-helper/credential-file command with blocked by policy. No bypass was attempted; provisioning subsequently ran in the foreground with in-memory credentials. A Windows user-bound credential encryption attempt also failed with Error occurred during a cryptographic operation; no credentials were persisted.

Pass 4 (council fixes)

Implemented the accepted findings from council review at 28663e7. Existing task documents and docs/STEER.md edits were excluded. C# remains the implementation language; existing Vue/TypeScript, PowerShell and CI shell files were edited in their native languages.

Finding Commit Test name / evidence
1 Numeric gold aggregates/report JSON 70dc44a DuckDbHugeIntegerAndDecimalSerializeAsNumbers; AllFiveReportsReadGoldWithoutSilentlyFallingBack(risk)
2 Medication, diabetes, explicit race and scored fixture 70dc44a FixtureAscvdHasExplicitRaceMedicationConditionAndObservationSources
3 Empty versions compare timestamps 70dc44a EmptyVersionsUpdateByTimestamp
4 Skip search outcomes 70dc44a SearchOutcomesAreSkippedAndLoggedWithoutDiscardingCohort
5 Quarantine deduplication 70dc44a QuarantineReplayIsDeduplicatedByTypeIdAndVersion
6 Project clinical rows without RawJson; map once ec07c71 ClinicalProjectionDoesNotSelectRawJson; summary/CDS integration tests
7 UTC effective timestamps 70dc44a AllFiveReportsReadGoldWithoutSilentlyFallingBack(labs)
8 Resource-specific coding priority 70dc44a ObservationPrefersLoincEvenWhenSnomedIsFirst
9 Read-only defaults, binding guard, fallback auth ec07c71 HostAndCliSecurityDefaultsAreExplicit; StartupRefusesUnauthenticatedPublicBinding; BindingGuardCoversPortsAndKestrelEndpoints; AuthenticationInstallsFallbackPolicy
10 Private Cloud Run and budget note 5971579 CloudRunHasNoPublicInvoker; BudgetRetained
11 AppHost loopback ec07c71 HostAndCliSecurityDefaultsAreExplicit
12 JSON-only sync ec07c71, 64ee1b0 SyncRejectsNonJsonBeforeReadingFixtures; web JSON POST contract (client already sent JSON)
13 Reject invisible/private Unicode ec07c71, 64ee1b0 AllergyRejectsInvisibleAndPrivateCharacters; snapshot API bidi validation
14 Scrub CLI exception diagnostics ec07c71 CliDiagnosticsNeverExposeRemoteExceptionPayloads; HostAndCliSecurityDefaultsAreExplicit
15 Verify driver before move; single-file DB mount 5971579, ec07c71 get-driver.Tests.ps1; HostAndCliSecurityDefaultsAreExplicit
16 Partial GCS backends and required variables 5971579 BackendBucketSuppliedAtInit; DistinctBackendPrefix; account-variable synth contracts
17 Private Azure skeleton 5971579 ServiceBusPublicNetworkDisabled; ContainerAppIngressInternal; ContainerAppReadOnly
18 CI tests, audits, readonly smoke, health failure 5971579 HealthTimeoutFailsSmoke; CleanDependencyAuditPasses; VulnerableDependencyAuditFails; ScannerFailureFailsAudit; ReadOnlyRejectsEveryOtherPost; ReadOnlyAllowsCdsComputation
19 Reports race 64ee1b0 Playwright a late older report cannot overwrite the selected report
20 Corrupt character 64ee1b0 Repository Unicode/mojibake scan; API validation tests
21 Pages/API CSP 64ee1b0, ec07c71 Playwright zero securitypolicyviolation assertions; API header assertions
22 Mobile sources/tables 64ee1b0 cardContent tests; mobile Playwright test; screenshot visual inspection at 390px

Validation: final full build has zero warnings/errors; 85 .NET tests, 11 web unit tests, and 2 Playwright tests passed. Snapshot JSON regenerated using the updated CLI, then frontend rebuilt and screenshots refreshed. Read-only tests verify sync 403 and CDS 200. Both dependency audits found zero vulnerable packages. Both infrastructure projects synthesized only; no deployment occurred. CDKTN emitted a missing Terraform executable diagnostic, but returned 0 and generated all three stacks; this is not Terraform plan/validate evidence. No Windows Application Control denial occurred in these build/test runs.

Negative controls: new clinical regression tests against 28663e7 produced 7 failures/18 passes; API tests against that baseline produced 20 failures/2 passes (three new-helper tests excluded). These include the direct startup, fallback-auth, Unicode, media-type, default-setting, numeric JSON, UTC timestamp, mapping and idempotency failures. Old web files produced one unit failure and two E2E failures. Old synthesized infrastructure failed 12 of 13 contracts; the unchanged budget contract passed. Old driver failed the pre-verification-write assertion. Audit-gate mutation removing the jq predicate failed the vulnerable-package test. New helper-specific tests extend coverage; they are not represented as executable old-code tests.

Review status: the supplied Clahadore-chaired findings were implemented. A renewed full council gate is BLOCKED/incomplete, not passed: Clahadore CLI refused automated spend because native governor state was unavailable even after a normal scan; Jenny CLI required authentication and timed out; gaming-PC council timed out after 300 seconds; streaming council tool was unavailable. Local gemma4 completed with no requested changes, but mostly summarized changes, so confidence from that seat is limited. A separate Cedric worker reviewed API/security and found no actionable issue. No governor bypass was used. A combined generated-file cleanup/governor-scan command was rejected by automatic approval review (blocked by policy); separate copy, normal scan and verified-path move succeeded, preserving the temporary generated files.

Actual command output follows (terminal color escapes removed only).

dotnet build --no-incremental --nologo
  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\FhirDemo.ServiceDefaults.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\FhirDemo.Lakehouse.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\FhirDemo.Operational.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\FhirDemo.Cli.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\FhirDemo.Data.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\FhirDemo.Deploy.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\FhirDemo.AppHost.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\FhirDemo.Api.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\FhirDemo.Tests.csproj]
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  FhirDemo.Deploy -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\bin\Debug\net10.0\FhirDemo.Deploy.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Cli -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
  FhirDemo.AppHost -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\bin\Debug\net10.0\FhirDemo.AppHost.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.24
dotnet test --no-build --nologo
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:    85, Skipped:     0, Total:    85, Duration: 10 s - FhirDemo.Tests.dll (net10.0)
dotnet run --project src/FhirDemo.Cli --no-build -- snapshot --out web/public/demo-data (copied into web/public/snapshot)
Recorded second sync: {"inserted":0,"updated":0,"unchanged":3188,"quarantined":0}
npm test
> fhir-demo-web@2.0.0 test
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  4 passed (4)
      Tests  11 passed (11)
   Start at  18:35:12
   Duration  103ms (import 32%, tests 30%, transform 25%, worker 13%, environment 1%)
npm run build:snapshot
> fhir-demo-web@2.0.0 build:snapshot
> vue-tsc --noEmit && vite build --mode snapshot

vite v7.3.8 building client environment for snapshot...
transforming...
✓ 271 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.30 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-C3SEVZ3x.js   349.40 kB │ gzip: 117.24 kB
✓ built in 836ms
npm run e2e
> fhir-demo-web@2.0.0 e2e
> playwright test

[WebServer] (node:36048) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
[WebServer] (node:43364) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)

Running 2 tests using 1 worker

(node:9084) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
  ok 1 e2e\mobile.e2e.ts:7:1 › mobile snapshot supports the chart, allergy outbox, reports, and comparison (787ms)
  ok 2 e2e\mobile.e2e.ts:59:1 › a late older report cannot overwrite the selected report (679ms)

  2 passed (6.8s)
cdktn synth --output cdktn.out (infra/FhirDemo.Deploy)
[2026-11-12T18:31:07.436] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

'terraform' is not recognized as an internal or external command,
operable program or batch file.
[2026-11-12T18:31:07.516] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

[2026-11-12T18:31:07.516] [INFO] default - Unable to determine Terraform version: Error: Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html

Synthesized fhir-demo-gcp and fhir-demo-cf. No deployment performed.

Generated Terraform code for the stacks: fhir-demo-cf, fhir-demo-gcp
cdktn synth --output cdktn.out (infra/FhirDemo.Infra)
[2026-11-12T18:31:11.539] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

'terraform' is not recognized as an internal or external command,
operable program or batch file.
[2026-11-12T18:31:11.630] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

[2026-11-12T18:31:11.630] [INFO] default - Unable to determine Terraform version: Error: Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html

Synthesized fhir-demo-azure: 10 Azure resources. SYNTH ONLY; no deployment performed.

Generated Terraform code for the stacks: fhir-demo-azure
dotnet run --file infra/VerifySynth.cs
PASS CloudRunHasNoPublicInvoker
PASS BudgetRetained
PASS BackendBucketSuppliedAtInit:fhir-demo/gcp
PASS DistinctBackendPrefix:fhir-demo/gcp
PASS BackendBucketSuppliedAtInit:fhir-demo/cf
PASS DistinctBackendPrefix:fhir-demo/cf
PASS BillingAccountHasNoDefault
PASS CloudflareAccountHasNoDefault
PASS BillingAccountIsVariable
PASS CloudflareAccountsAreVariables
PASS ServiceBusPublicNetworkDisabled
PASS ContainerAppIngressInternal
PASS ContainerAppReadOnly
pwsh -File bi/metabase/get-driver.Tests.ps1
PASS DriverMismatchDeletesTemporaryAndNeverPublishesJar
PASS DriverValidDigestPublishesJarAfterVerification
bash .github/scripts/verify-ci-guards.sh
PASS HealthTimeoutFailsSmoke
PASS CleanDependencyAuditPasses
PASS VulnerableDependencyAuditFails:direct
PASS VulnerableDependencyAuditFails:transitive
PASS ScannerFailureFailsAudit
npm audit --audit-level=high
found 0 vulnerabilities

Fixture test receipt (explicit US Core race, medication/condition and observation citations):

 Fixture Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4: 6.865% | 2013 PCE: age=64, sex=male, coefficient=white, TC=162.26 mg/dL, HDL=70.17 mg/dL, SBP=115 mmHg, BP treated=False, diabetes=False, smoker=False. 2013 PCE uses historical Black/White race coefficients; race is a social classification, not a biological mechanism. Estimates may be miscalibrated and are not validated for other groups. No race is inferred. Educational demo, not clinical use. | Sources: Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4, Observation/44d88899-2c5e-41e8-b119-5b1e67dd8b3c, Condition/da09dab0-2529-4136-84bb-dc25b6d0484b, Condition/92186986-79a2-4d6e-b2d3-6f1a584d903b, Condition/0309fedc-11bc-412d-8d9a-75708c5106f4, Condition/40c0cc12-df6d-4ca7-b043-7c5429795643, Condition/2ddebb9b-5475-4c7b-9345-1ed7aec25fda, Condition/6ecb851c-5cb5-45e6-b192-095347d61d01, Condition/f08e7ce7-9b2d-469e-8506-b9105bb5b21b, MedicationRequest/d99c61ed-f0d5-48f7-8651-0b77f5901547, MedicationRequest/4572c02e-148f-4cb2-8002-fdc5d9b1205b, MedicationRequest/eb1fece9-39e8-4c55-829f-20c0f6368ca1, MedicationRequest/02be8fee-9b26-4c38-9630-97aba67345c5, MedicationRequest/8a08132e-71ed-4b3d-b3fb-8a31392255b7, MedicationRequest/0abbabdb-b864-4802-9d61-6ce363e7e84e, MedicationRequest/c2077031-b3f1-4768-b658-6ff505a54453, Observation/938123fe-6598-48c9-b295-01ad3c4598b7, Observation/8b09b735-e86c-49ca-b604-e90cefc55747, Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764

dotnet list package --vulnerable --include-transitive --format json (parsed result):

Vulnerable package entries: 0

Pass 5 (Jenny findings)

Implemented all seven accepted findings in separate commits. Final source: a754898. Full DONE result: Windows and Linux builds each have 0 warnings / 0 errors; Linux 135/135 .NET tests PASS; web 11/11 unit tests PASS; refreshed snapshot build PASS; Playwright 2/2 PASS; both infrastructure synths PASS. Windows .NET tests and snapshot execution are BLOCKED by Application Control (0x800711C7), not passed. No security policy was changed. Linux verification used the standard SDK image mcr.microsoft.com/dotnet/sdk:10.0 at image ID sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb, read-only source/provider mounts, and isolated build copies excluding bin/obj.

Finding Commit Regression test / evidence
1 Same-row BP panel 72ac643 NewerSystolicOnlyDoesNotTearLatestBloodPressurePanel: older 120/80 wins over newer systolic-only 180; old code returned 180/80. Operational hypertension already selected complete panels; guarded by same test.
2 Trace filter and patient-path redaction cdc5071 TraceFilterExcludesOnlyHealthEndpoints (6 cases), ExportedTraceRedactsPatientPathAndQuery (5 cases): 11 old-code failures, 11 fixed passes. Redaction runs before exporters; query removed.
3a Search type mismatch 49b767e WrongSearchResourceTypeIsQuarantinedWithoutAdvancingRequestedCursor
3b Batch insert/update count 49b767e InsertThenNewerVersionInSameBatchCountsOneInsertAndNoUpdate
3c Successful-map cursor / quarantine replay 49b767e FailedMapDoesNotAdvanceCursorAndReplayQuarantineIsDeduplicated; all 3 sync tests fail old code and pass fixed.
4 Auth-enabled endpoint coverage 176c19d AuthenticatedEndpointsRequireValidToken (4 routes): missing and malformed tokens 401; signed test JWT succeeds. Existing production auth already passed, so this is coverage only, not a claimed behavior fix. Allergy creation keeps its existing HTTP 201 Created contract; other routes return 200.
5 Status and as-of eligibility, including prior databases a754898 InvalidClinicalFactsDoNotReachGoldOrOperationalRisk; FutureClinicalFactsDoNotReachGoldOrOperationalRisk; VerificationStatusSurvivesMappingAndCannotSupplyRiskContext; UndatedFactsCannotEstablishAsOfDiabetesOrTreatment; RecordedDateBoundsConditionsWhenOnsetIsMissing; ExistingInvalidVerificationIsBackfilledWithoutResync (6 cases); SqlServerBackfillScriptHandlesBothTablesAndAllVerificationCodings
6 Verify migration-name claim; preserve applied IDs 348544c LegacyMigrationIdsResolveWithoutRenamingAppliedMigrations; UpgradingAnExistingFixtureDatabaseDoesNotAllowLiveSourceAdoption: full-ID targeting failed before adapter, passes after; asserts only intended initial migration applied before upgrade.
7 Isolate process environment mutation 6b7ba3d EnvironmentMutatingSourceTestsUseNonParallelCollection: fails before collection attribute, passes after. SourceSafetyTests now uses a DisableParallelization collection.

Negative controls: in the isolated Linux copy, replaced ClinicalMapping, LakehouseRunner, ServiceDefaults Extensions and SyncService with 600632a versions, removed only the new backfill migration from compilation, and retained the new tests. Result: 40 failed / 3 passed / 43 total. Three already-correct cases were immunization status/time and encounter time. Separate Windows negative controls for full-ID migration targeting and ID resolution failed 2/6, then passed 6/6 after the adapter; the environment collection contract failed 1/1 before its attribute. All 135 tests passed together against final source on Linux. Initial Windows attempts that discovered no tests or failed assembly loading are not counted as regression evidence.

Migration receipt: Jenny's truncation observation was correct, but the original test did exercise migrations successfully: EF derives the same truncated name (itialOperational) when finding the target. The real defect is full-ID/name resolution for those legacy 12-digit IDs; targeting 202611120001_InitialOperational directly produced The migration '202611120001_InitialOperational' was not found. EF's name parser removes 15 characters and its assembly resolver chooses ID versus name lookup by format. The narrow compatibility generator recognizes only the three existing legacy IDs, preserves them unchanged, and keeps standard 14-digit generation for future migrations. The new data-correction migration 20261112120000_VerificationStatusBackfill uses that standard format and fixes already-ingested invalid verification statuses without requiring resync. SQLite upgrade behavior is executed; SQL Server SQL generation is checked, but no live SQL Server execution is claimed.

Clinical review found and fixed two additional consequences within item 5: existing operational projections needed the backfill, and Condition effective dates needed the same recordedDate fallback as the mapper. Undated facts cannot establish facts at a known as-of date. Silver retains source rows; gold consumes filtered views. No old migration was renamed.

Snapshot exporter ran against isolated fixtures and fresh databases on Linux; actual generated JSON was copied into web/public/snapshot, then the frontend and Playwright were rerun. Second sync: 0 inserted / 0 updated / 3188 unchanged / 0 quarantined. All five mobile screenshots were refreshed; the changed allergy-outbox screenshot was visually inspected. Labs' existing 100-row query has no tie-breaker at tied dates, so regenerated sample order/membership differs across engines; no clinical values were hand-edited.

Pass 4 follow-through: its requested DONE suite is rerun above. The renewed full council gate remains BLOCKED/incomplete, not passed: Clahadore's CLI again refused automated spend because native governor state is unavailable; streaming council is unavailable. Gaming qwen3-coder and local gemma4 reviewed changes, but their suggestions were hypothetical or contradicted the actual diff (e.g. alleging the newly added resource-type check was missing, or asking to allowlist traces despite the requirement to record all non-health routes). Independent Cedric reviews found the two concrete clinical gaps described above; re-review after fixes found no further actionable defects. No governor bypass used. Worktree-identity executable remains Application-Control-blocked; existing WT-dc65 branch preserved. No board URL was supplied or invented. Earlier optional Metabase visual/deployment limitations are not claimed resolved by this backend pass.

Both synth commands generated their stacks with exit 0, while reporting Terraform CLI absent; this is synth evidence only, not Terraform plan/validate or a deployment. Infrastructure safety and driver contracts passed. Dependency audits reported zero vulnerable entries. CI guard tests passed in Linux; local WSL lacked bash and Git Bash lacked jq, so neither local attempt is reported as passing. Existing staged task documents and docs/STEER.md changes were excluded from every commit.

Pass 5 command receipts

Outputs below are actual command output; ANSI escapes removed. Windows blocked-test output is excerpted to avoid repeating 120 assembly-load failures.

Windows: dotnet build --no-incremental --nologo
  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\FhirDemo.ServiceDefaults.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\FhirDemo.Core.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\FhirDemo.Operational.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\FhirDemo.Lakehouse.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\FhirDemo.Cli.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\FhirDemo.Data.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\FhirDemo.Deploy.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\FhirDemo.AppHost.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\FhirDemo.Api.csproj]
C:\Program Files\dotnet\sdk\10.0.400-preview.0.26322.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\FhirDemo.Tests.csproj]
  FhirDemo.ServiceDefaults -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.ServiceDefaults\bin\Debug\net10.0\FhirDemo.ServiceDefaults.dll
  FhirDemo.Core -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Core\bin\Debug\net10.0\FhirDemo.Core.dll
  FhirDemo.Deploy -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\infra\FhirDemo.Deploy\bin\Debug\net10.0\FhirDemo.Deploy.dll
  EFCore.DuckDB -> C:\Users\fives\source\repos\EFCore.DuckDB\src\EFCore.DuckDB\bin\Debug\net10.0\EFCore.DuckDB.dll
  FhirDemo.Data -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Data\bin\Debug\net10.0\FhirDemo.Data.dll
  FhirDemo.Lakehouse -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Lakehouse\bin\Debug\net10.0\FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Operational\bin\Debug\net10.0\FhirDemo.Operational.dll
  FhirDemo.Api -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Api\bin\Debug\net10.0\FhirDemo.Api.dll
  FhirDemo.Cli -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.Cli\bin\Debug\net10.0\FhirDemo.Cli.dll
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
  FhirDemo.AppHost -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\src\FhirDemo.AppHost\bin\Debug\net10.0\FhirDemo.AppHost.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.60
Linux: dotnet build --no-incremental --nologo
  Determining projects to restore...
  Restored /work/demo/src/FhirDemo.ServiceDefaults/FhirDemo.ServiceDefaults.csproj (in 2.02 sec).
  Restored /work/demo/infra/FhirDemo.Deploy/FhirDemo.Deploy.csproj (in 2.94 sec).
  Restored /work/demo/src/FhirDemo.Core/FhirDemo.Core.csproj (in 3.68 sec).
  Restored /work/demo/src/FhirDemo.AppHost/FhirDemo.AppHost.csproj (in 7.39 sec).
  Restored /work/demo/src/FhirDemo.Operational/FhirDemo.Operational.csproj (in 7.68 sec).
  Restored /work/demo/src/FhirDemo.Data/FhirDemo.Data.csproj (in 7.69 sec).
  Restored /work/EFCore.DuckDB/src/EFCore.DuckDB/EFCore.DuckDB.csproj (in 12.66 sec).
  Restored /work/demo/src/FhirDemo.Lakehouse/FhirDemo.Lakehouse.csproj (in 12.66 sec).
  Restored /work/demo/src/FhirDemo.Api/FhirDemo.Api.csproj (in 12.67 sec).
  Restored /work/demo/src/FhirDemo.Cli/FhirDemo.Cli.csproj (in 12.67 sec).
  Restored /work/demo/tests/FhirDemo.Tests/FhirDemo.Tests.csproj (in 12.67 sec).
  FhirDemo.ServiceDefaults -> /work/demo/src/FhirDemo.ServiceDefaults/bin/Debug/net10.0/FhirDemo.ServiceDefaults.dll
  FhirDemo.Core -> /work/demo/src/FhirDemo.Core/bin/Debug/net10.0/FhirDemo.Core.dll
  FhirDemo.Deploy -> /work/demo/infra/FhirDemo.Deploy/bin/Debug/net10.0/FhirDemo.Deploy.dll
  FhirDemo.Data -> /work/demo/src/FhirDemo.Data/bin/Debug/net10.0/FhirDemo.Data.dll
  EFCore.DuckDB -> /work/EFCore.DuckDB/src/EFCore.DuckDB/bin/Debug/net10.0/EFCore.DuckDB.dll
  FhirDemo.Lakehouse -> /work/demo/src/FhirDemo.Lakehouse/bin/Debug/net10.0/FhirDemo.Lakehouse.dll
  FhirDemo.Operational -> /work/demo/src/FhirDemo.Operational/bin/Debug/net10.0/FhirDemo.Operational.dll
  FhirDemo.Api -> /work/demo/src/FhirDemo.Api/bin/Debug/net10.0/FhirDemo.Api.dll
  FhirDemo.Cli -> /work/demo/src/FhirDemo.Cli/bin/Debug/net10.0/FhirDemo.Cli.dll
  FhirDemo.Tests -> /work/demo/tests/FhirDemo.Tests/bin/Debug/net10.0/FhirDemo.Tests.dll
  FhirDemo.AppHost -> /work/demo/src/FhirDemo.AppHost/bin/Debug/net10.0/FhirDemo.AppHost.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:32.51
Linux: dotnet test --no-build --nologo
Test run for /work/demo/tests/FhirDemo.Tests/bin/Debug/net10.0/FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:   135, Skipped:     0, Total:   135, Duration: 14 s - FhirDemo.Tests.dll (net10.0)
Linux: snapshot --out /receipts/linux-snapshot
warn: Microsoft.AspNetCore.Hosting.Diagnostics[15]
      Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://127.0.0.1:0'.
Recorded second sync: {"inserted":0,"updated":0,"unchanged":3188,"quarantined":0}
Web: npm test
> fhir-demo-web@2.0.0 test
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  4 passed (4)
      Tests  11 passed (11)
   Start at  18:50:37
   Duration  108ms (import 31%, tests 30%, transform 26%, worker 13%, environment 1%)
Web: npm run build:snapshot (after regenerated snapshot)
> fhir-demo-web@2.0.0 build:snapshot
> vue-tsc --noEmit && vite build --mode snapshot

vite v7.3.8 building client environment for snapshot...
transforming...
✓ 271 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.30 kB
dist/assets/index-CkkxJ_7r.css  366.97 kB │ gzip:  45.92 kB
dist/assets/index-C3SEVZ3x.js   349.40 kB │ gzip: 117.24 kB
✓ built in 861ms
Web: npm run e2e (after regenerated snapshot)
> fhir-demo-web@2.0.0 e2e
> playwright test

[WebServer] (node:36908) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
[WebServer] (node:11396) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)

Running 2 tests using 1 worker

(node:48892) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
  ok 1 e2e\mobile.e2e.ts:7:1 › mobile snapshot supports the chart, allergy outbox, reports, and comparison (771ms)
  ok 2 e2e\mobile.e2e.ts:59:1 › a late older report cannot overwrite the selected report (679ms)

  2 passed (6.8s)
Deploy: cdktn synth --output cdktn.out
[2026-11-12T18:54:08.402] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

'terraform' is not recognized as an internal or external command,
operable program or batch file.
[2026-11-12T18:54:08.465] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

[2026-11-12T18:54:08.465] [INFO] default - Unable to determine Terraform version: Error: Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html

Synthesized fhir-demo-gcp and fhir-demo-cf. No deployment performed.

Generated Terraform code for the stacks: fhir-demo-cf, fhir-demo-gcp
Azure: cdktn synth --output cdktn.out
[2026-11-12T18:54:13.263] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

'terraform' is not recognized as an internal or external command,
operable program or batch file.
[2026-11-12T18:54:13.345] [ERROR] default - 'terraform' is not recognized as an internal or external command,
operable program or batch file.

[2026-11-12T18:54:13.346] [INFO] default - Unable to determine Terraform version: Error: Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html

Synthesized fhir-demo-azure: 10 Azure resources. SYNTH ONLY; no deployment performed.

Generated Terraform code for the stacks: fhir-demo-azure
dotnet run --file infra/VerifySynth.cs
PASS CloudRunHasNoPublicInvoker
PASS BudgetRetained
PASS BackendBucketSuppliedAtInit:fhir-demo/gcp
PASS DistinctBackendPrefix:fhir-demo/gcp
PASS BackendBucketSuppliedAtInit:fhir-demo/cf
PASS DistinctBackendPrefix:fhir-demo/cf
PASS BillingAccountHasNoDefault
PASS CloudflareAccountHasNoDefault
PASS BillingAccountIsVariable
PASS CloudflareAccountsAreVariables
PASS ServiceBusPublicNetworkDisabled
PASS ContainerAppIngressInternal
PASS ContainerAppReadOnly
pwsh -File bi/metabase/get-driver.Tests.ps1
PASS DriverMismatchDeletesTemporaryAndNeverPublishesJar
PASS DriverValidDigestPublishesJarAfterVerification
Linux: bash .github/scripts/verify-ci-guards.sh
PASS HealthTimeoutFailsSmoke
PASS CleanDependencyAuditPasses
PASS VulnerableDependencyAuditFails:direct
PASS VulnerableDependencyAuditFails:transitive
PASS ScannerFailureFailsAudit
Web: npm audit --audit-level=high
found 0 vulnerabilities

Windows test BLOCKED excerpt:

Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:04.88]     FhirDemo.Tests.SyncBatchSafetyTests.FailedMapDoesNotAdvanceCursorAndReplayQuarantineIsDeduplicated [FAIL]
[xUnit.net 00:00:04.94]     FhirDemo.Tests.RiskTests.AscvdMatchesPublishedReferenceCases(sex: "male", race: "black", expected: 6.0999999999999996) [FAIL]
[xUnit.net 00:00:04.99]     FhirDemo.Tests.VerificationStatusMigrationTests.ExistingInvalidVerificationIsBackfilledWithoutResync(type: "Condition", status: "entered-in-error") [FAIL]
[xUnit.net 00:00:05.04]     FhirDemo.Tests.ClinicalDisplayTests.SummaryRoundsMeasurementsWithoutChangingValues [FAIL]
  Failed FhirDemo.Tests.SyncBatchSafetyTests.FailedMapDoesNotAdvanceCursorAndReplayQuarantineIsDeduplicated [56 ms]
  Error Message:
   System.IO.FileLoadException : Could not load file or assembly 'C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Data.dll'. An Application Control policy has blocked this file. (0x800711C7)
  Stack Trace:
     at FhirDemo.Tests.SyncBatchSafetyTests.FailedMapDoesNotAdvanceCursorAndReplayQuarantineIsDeduplicated()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
... (repeated assembly-load failures omitted) ...
Failed!  - Failed:   120, Passed:    15, Skipped:     0, Total:   135, Duration: 10 s - FhirDemo.Tests.dll (net10.0)

Linux old-code negative-control summary:

Failed!  - Failed:    40, Passed:     3, Skipped:     0, Total:    43, Duration: 2 s - FhirDemo.Tests.dll (net10.0)

.NET dependency audit (parsed JSON): Vulnerable package entries: 0.

Pass 6 (open-source EHR)

Verified on 2026-11-12 America/Chicago (logs after midnight UTC are 2026-11-13). Existing work preserved. Ottehr fixture bytes unchanged; normalized transport copies add missing resource metadata and wrap the item-only Questionnaire fragment. C# implements the backend; the existing Vue/TypeScript UI is extended in its established stack.

Build and tests (real output)

dotnet build

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.62
dotnet test
  FhirDemo.Tests -> C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:   170, Skipped:     0, Total:   170, Duration: 14 s - FhirDemo.Tests.dll (net10.0)
> fhir-demo-web@2.0.0 test
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  4 passed (4)
      Tests  11 passed (11)
   Start at  19:26:53
   Duration  145ms (tests 34%, import 29%, transform 25%, worker 11%, environment 1%)


> fhir-demo-web@2.0.0 build:snapshot
> vue-tsc --noEmit && vite build --mode snapshot

vite v7.3.8 building client environment for snapshot...
transforming...
✓ 271 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB │ gzip:   0.29 kB
dist/assets/index-zmo1o0bV.css  367.08 kB │ gzip:  45.95 kB
dist/assets/index-Bkacff5a.js   351.11 kB │ gzip: 117.78 kB
✓ built in 892ms

> fhir-demo-web@2.0.0 e2e
> playwright test


Running 7 tests using 1 worker

  ok 1 e2e\mobile.e2e.ts:7:1 › mobile snapshot supports the chart, allergy outbox, reports, and comparison (772ms)
  ok 2 e2e\mobile.e2e.ts:61:1 › Ottehr snapshot patients show sample labels and intake answers only when present (429ms)
  ok 3 e2e\mobile.e2e.ts:77:3 › Compare identifies the stored Fixture data source (171ms)
  ok 4 e2e\mobile.e2e.ts:77:3 › Compare identifies the stored LocalEhr data source (173ms)
  ok 5 e2e\mobile.e2e.ts:77:3 › Compare identifies the stored Oystehr data source (171ms)
  ok 6 e2e\mobile.e2e.ts:91:1 › intake answers render as plain text (231ms)
  ok 7 e2e\mobile.e2e.ts:105:1 › a late older report cannot overwrite the selected report (701ms)

  7 passed (8.1s)

Aspire and real local FHIR REST

Source__Mode=LocalEhr dotnet run --project src/FhirDemo.AppHost (PowerShell environment assignment). Actual Docker binding, metadata and H2 receipt:

Runtime observation UTC: 2026-11-13T01:25:01.0731774+00:00
ehr-fhir-qynberbw Up 2 minutes 127.0.0.1:60373->8080/tcp
Aspire proxy listener: 127.0.0.1:8090
GET http://localhost:8090/fhir/metadata: HTTP 200; resourceType=CapabilityStatement; fhirVersion=4.0.1; software=8.2.0
2026-11-13T01:22:40.006Z  INFO 1 --- [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:ehr user=SA
[2026-11-13 01:34:10.873] [INFO] [AppHost] Resource api: Running; health=Healthy
[2026-11-13 01:34:20.170] [INFO] [AppHost] Resource ehr-fhir: Running; health=Healthy
[2026-11-13 01:34:40.876] [INFO] [AppHost] Resource api: Running; health=Healthy
[2026-11-13 01:34:50.181] [INFO] [AppHost] Resource ehr-fhir: Running; health=Healthy

dotnet run --project src/FhirDemo.Cli --no-build -- ehr seed --target local against the Aspire-hosted server (also successfully run by the AppHost seed resource). A repeated seed uses the same PUT identities:

Seed target: local; FHIR base: http://127.0.0.1:8090/fhir/
Planned PUT AllergyIntolerance: 3
Planned PUT Condition: 87
Planned PUT Encounter: 281
Planned PUT Immunization: 113
Planned PUT MedicationRequest: 112
Planned PUT Observation: 2582
Planned PUT Patient: 12
Planned PUT Questionnaire: 1
Planned PUT QuestionnaireResponse: 1
Seed complete: 3192 PUT resources in 1 transaction Bundle.

Source__Mode=LocalEhr, fresh SQLite data/pass6-rest-127-final.db, then dotnet run --project src/FhirDemo.Cli --no-build -- operational sync twice:

First run: inserted=3191 updated=0 unchanged=0 quarantined=0
Second run: inserted=0 updated=0 unchanged=3191 quarantined=0

LocalEhr summary: Olha Test0418; label=Ottehr sample; intakeAnswers=56

The seed writes 3,192 resources; Track B syncs 3,191 because Questionnaire is form definition data, while QuestionnaireResponse is the patient intake projection. The local API dashboard returned 12 patients, 2,582 observations, zero quarantines, and sourceMode: LocalEhr.

Snapshot

dotnet run --project src/FhirDemo.Cli --no-build -- snapshot --out web/public/snapshot:

Recorded second sync: {"inserted":0,"updated":0,"unchanged":3191,"quarantined":0}

The snapshot has 12 patients, both Ottehr sample labels, 56 intake answers for Olha Test0418, and sourceMode: Fixture. Playwright exercises source modes, sample labels, conditional intake, text escaping, and the existing mobile flows. Updated screenshots include docs/screenshots/mobile-ottehr-intake.png; visually checked the rendered intake section.

Corrections and limits

  • First smoke run exposed the upstream Questionnaire fragment's missing resourceType; fixed in transport normalization without touching fixture bytes.
  • HAPI next links target /fhir?_getpages=...; added acceptance of the exact configured base path and a regression test while preserving origin/path confinement.
  • A build attempted while the API was running hit a Windows DLL lock. Stopped only this task's AppHost tree before final build/test.
  • Independent review found the standalone API's default database disagreed with the CLI in LocalEhr mode. Both now use the shared default-name helper, with regression tests.
  • H2 is disposable. Use a fresh operational database after resetting the source; persisted server-version cursors are not a source reset detector.
  • No real Oystehr calls, credentials, accounts, or remote apply were used. Oystehr tests inject fake HTTP handlers, including the apply code path.
  • Review gate: Clahadore CLI denied by the usage governor (native state unavailable), including after a legitimate UsageGovernor scan. No bypass used. Jenny authentication timed out; gaming-PC council timed out after 300 seconds; streaming council tool unavailable. Local Ollama returned a low-signal summary. Independent Codex review completed and its API database finding was fixed. Required Clahadore-chaired gate remains unavailable; commit/push awaits an explicitly approved substitute gate.
  • Session identity CLI was blocked by Windows Application Control; existing WT-dc65 worktree identity retained. No board ticket URL was supplied; none invented.

Pass 7 (Fable re-gate)

Run on WT-dc65 after pass 6 code commit 0da855a; fallback demo-safe-1 / 8d1dd5f unchanged. Runtime date: 2026-11-13 UTC (2026-11-12 local). Implementation and validation complete; per-item commits and push are BLOCKED by the mandatory review gate, not complete. Existing staged docs/CODEX-TASK-7.md was preserved.

Finding → commit → test

Each row is a separate intended commit. No commit hashes are invented: the Clahadore-chaired gate remains unavailable. When released, use per-command identity git -c user.name="Andrew Jones" -c user.email="andrewjonesdev1@gmail.com" commit and both trailers: Co-Authored-By: Cedric (Codex) <noreply@openai.com> and Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>.

Finding Commit Regression evidence
1. Pre-visit headline bypassed risk eligibility Pending gate: fix: share clinical eligibility with visit summaries Pass7SummaryTests: four assertion failures with old selection, four pass fixed (refuted, entered-in-error, cancelled, future). Shared eligibility also rejects nonfinal Observations.
2. Later successful records hid quarantined records Pending gate: fix: cap sync watermarks before quarantined records Three new SyncBatchSafetyTests fail old code; all six pass fixed. A/B-fails/C re-reads B; null/minimum failed timestamps force full replay.
3. Enum names were persisted instead of FHIR codes Pending gate: fix: persist and backfill FHIR status literals Nine valid-resource mapping assertions fail old formatting; eleven status tests pass fixed, including SQLite migration and SQL Server generated script. New migration repairs all five enum-status tables without resync.
4. Silver/gold diverged from operational measurements Pending gate: fix: align lakehouse measurements with clinical mapping Ten initial parity regressions reproduced old failures; twelve final cases pass (eleven synthetic variations plus every fixture patient). Covers LOINC coding, BP units, effectivePeriod.start, preliminary/registered status, valid values and complete panels. Numeric comparison permits only 1e-10 parser rounding.
5. Oystehr maintained a second, intolerant pager Pending gate: fix: reuse shared FHIR bundle paging Relation-less link caused KeyNotFoundException before fix; fake-auth two-page regression passes with both OperationOutcome forms excluded. Transport origin validation retained.
6. Client url.full leaked query/identifier data Pending gate: fix: redact client full URLs Five new client-span cases fail old processor; sixteen telemetry tests pass fixed. Query/fragment removed, Patient/patients IDs redacted, malformed URLs dropped.
7. Undated-fact branches were unreachable Pending gate: refactor: state undated clinical eligibility once Existing UndatedFactsCannotEstablishAsOfDiabetesOrTreatment remains passing; redundant branches removed, one shared rule comment. No behavior change.
8. Unrelated histories implied negative ASCVD inputs Pending gate: fix: preserve unknown ASCVD inputs Four NeverImpute regressions fail old mapper; eight pass fixed, including all three named Ottehr patients. Explicit positives and coded never/former smoking remain supported; missing inputs are listed. Review additionally found unsupported smoking value systems: eight SmokingEvidence tests fail old mapping/backfill and pass fixed. SNOMED-only smoking projection plus SQLite/SQL Server backfill added.
9. Parity harness pinned old mapper and lost timestamp offsets Pending gate: test: run Ottehr parity against selected Way 1 revision Minimal harness copied from Ottehr a2e5bf9, with WorkingTree/Way1Ref and UTC-preserving comparison. Timestamp regression passes. Corrected old-reference run differs only for the three documented ASCVD patients; current code passes 12 patients / 56 flags.
Regenerated snapshot and receipts Pending gate: docs: record pass 7 verification and refresh snapshot Snapshot generated, snapshot web build succeeds, seven browser tests pass; refreshed mobile chart inspected.

Final command receipts

dotnet build
Build succeeded.
    0 Warning(s)
    0 Error(s)

dotnet test --no-build
Passed!  - Failed: 0, Passed: 222, Skipped: 0, Total: 222

npm test (web/)
Test Files 4 passed (4)
Tests 11 passed (11)

dotnet run --project src/FhirDemo.Cli --no-build -- snapshot --out web/public/snapshot
Recorded second sync: {"inserted":0,"updated":0,"unchanged":3191,"quarantined":0}

npm run build:snapshot (web/)
vue-tsc --noEmit && vite build --mode snapshot
271 modules transformed; built in 889ms

npm run e2e (web/)
7 passed (8.1s)

pwsh -File ehr-track/scripts/parity-time.Tests.ps1
PASS: equivalent JSON timestamps, distinct instants, explicit offsets.

node --experimental-strip-types --test ehr-track/risk/smoking-evidence.test.ts
7 tests passed; 0 failed (six assertion failures reproduced against the old Way 2 mapper).

pwsh -File ehr-track/scripts/parity.ps1 -WorkingTree
Parity PASS: 12 patients, 56 flags identical (flag, indicator, score, cited FHIR ids, as-of).
Comparison excludes prose formatting; both engines read the same fixture files. No Oystehr requests made.

Parity is verified for the captured cohort, including 2b729cb8-0713-4dec-9dfb-ae0aecb28fb4, 4db03e6a-a8d0-4691-b861-e685e90a5d77, and ab47f921-b3c4-4bbe-8744-9bf303f64db9. Their ASCVD scores are now null with missing inputs listed. The independent TypeScript rules are retained for comparison, and existing PowerShell orchestration is reused; these are intentional language-policy exceptions to preserve an independent Way 2 implementation.

Initial API test execution was blocked by Application Control; a subsequent ordinary rebuild and run succeeded. Genuine old-code assertion failures were then captured, followed by the final passing suite. The parity harness is not blocked on this PC. Session identity CLI remains Application-Control-blocked; WT-dc65 retained.

Known limitations

  • FhirSource.FetchTypeAsync still reparses fixtures per resource type: deferred performance work to preserve the existing transport behavior.
  • FhirSource.CaptureAsync can collide on SOURCE.md: deferred capture-output ownership change; this pass does not run capture.
  • SyncService retains per-row FindAsync and ChangeTracker growth: deferred batching/performance redesign; cursor correctness fixed independently.
  • Negative diabetes/treatment inputs require a supported explicit coding/completeness profile; current resource projections establish positives only, so absence stays unknown.
  • SQL Server backfills were checked through generated migration SQL; execution tests used SQLite.

Review / commit / push status

Independent Cedric review found the smoking-code-system issue; fixed and regression-tested in both mappers. Way 2's smoking selection is intentionally aligned with Way 1; its independent rule calculations are retained. Six equivalent Node evidence vectors fail the old Way 2 mapper; all seven tests pass fixed, followed by a fresh 12-patient/56-flag parity pass. Gaming-PC council timed out after 300 seconds; streaming council unavailable. Jenny CLI authentication timed out. Local Ollama returned a summary without actionable findings. Clahadore CLI was denied both before and after a legitimate UsageGovernor scan:

USAGE-GOVERNOR: native state unavailable — refusing automated `claude -p` spend (fail-closed).
usage-governor: DENIED external claude call.

No bypass used. The council-code-review skill requires review before every commit and a Clahadore-chaired synthesis. Per-item commits, git push origin HEAD, and fleet sync therefore remain pending an available gate or explicit substitute-gate authorization. No push was attempted or claimed.

Pass 8 (Andrew's style)

Baseline: pass 7 5105728, 222 .NET tests / 11 web unit tests / 7 mobile e2e tests; baseline build had zero warnings. Existing worktree wt/WT-dc65/fhir-demo was reused. Fallback tag demo-safe-1 remains 35da047ba6ebdf18bce708d73783bf57ba160999.

Implemented layered production files, ordinary constructors, explicit usings, endpoint/service separation, interface-backed unit of work and source settings, a deterministic C# profile command, generated fixture profile, data-model/lineage documentation and Vue views. The new parity test compares persisted SQLite entities/risk flags against DuckDB gold for every fixture patient; it explicitly replays the Ottehr fixture directory into DuckDB to include the operational cohort of 12. Default lakehouse input still contains 10 patients. Read STYLE-DECISIONS.md for the retained xUnit/static-helper/record/anonymous-projection/transport differences; they are not claimed as converted.

Final command output excerpts below are copied from the actual run logs. All six commands exited 0.

dotnet build

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.44
dotnet test --no-build
Test run for C:\Users\fives\source\repos\fhir-pipeline-demo-wt-WT-dc65\tests\FhirDemo.Tests\bin\Debug\net10.0\FhirDemo.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:   225, Skipped:     0, Total:   225, Duration: 15 s - FhirDemo.Tests.dll (net10.0)
npm test (web/)
> vitest run


 RUN  v5.1.0 C:/Users/fives/source/repos/fhir-pipeline-demo-wt-WT-dc65/web


 Test Files  5 passed (5)
      Tests  12 passed (12)
   Start at  20:24:57
   Duration  114ms (import 33%, tests 30%, transform 24%, worker 13%, environment 1%)
npm run build:snapshot (web/)

vite v7.3.8 building client environment for snapshot...
transforming...
Γ£ô 351 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.42 kB Γöé gzip:   0.30 kB
dist/assets/index-D_VGxu55.css  372.49 kB Γöé gzip:  46.74 kB
dist/assets/index-CKTtSpkh.js   436.68 kB Γöé gzip: 149.57 kB
Γ£ô built in 1.15s
npm run e2e (web/)
(node:50936) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
  ok 1 e2e\mobile.e2e.ts:9:1 › mobile snapshot supports the chart, allergy outbox, reports, and comparison (800ms)
  ok 2 e2e\mobile.e2e.ts:100:1 › Ottehr snapshot patients show sample labels and intake answers only when present (449ms)
  ok 3 e2e\mobile.e2e.ts:138:3 › Compare identifies the stored Fixture data source (167ms)
  ok 4 e2e\mobile.e2e.ts:138:3 › Compare identifies the stored LocalEhr data source (177ms)
  ok 5 e2e\mobile.e2e.ts:138:3 › Compare identifies the stored Oystehr data source (161ms)
  ok 6 e2e\mobile.e2e.ts:160:1 › intake answers render as plain text (220ms)
  ok 7 e2e\mobile.e2e.ts:184:1 › a late older report cannot overwrite the selected report (691ms)
  ok 8 e2e\mobile.e2e.ts:235:1 › mobile data model renders fixture-generated allergy mapping and all layers (851ms)

  8 passed (9.0s)

dotnet run --project src/FhirDemo.Cli --no-build -- profile exited 0 and regenerated docs/DATA-PROFILE.md, docs/DATA-PROFILE.json and web/public/data-model/profile.json. ProfileCommandReproducesCommittedDocumentAndPageNumbersAsync independently reproduces all three byte-for-byte from the fixtures. Profile statistics are read by the page, not manually retyped. The new mobile test compares displayed allergy fill counts and selected-risk counts to that generated JSON, visits all three tabs and verifies the document downloads.

Snapshot check: all 20 web/public/snapshot/**/*.json files match the pass-7 Git blobs byte-for-byte (git hash-object --no-filters versus git rev-parse 5105728:<path>), 0 differences. Existing Windows checkout line endings were normalized back to the exact committed pass-7 bytes; no JSON values changed. git diff 5105728 -- src/FhirDemo.Data/Migrations web/public/snapshot is empty. No migration or model-snapshot file changed. New documentation JSON lives separately in web/public/data-model/.

Review: independent Cedric semantic review found no actionable behavior regressions in API extraction, DI lifetimes, response shapes, explicit DTO equality, sync or reporting. Independent web review checked the EF diagram, cancellation/snapshot transport behavior and generated-number bindings; it added per-flag profile statistics, accessible tab panels and download assertions. Local Ollama returned a descriptive summary rather than actionable review findings. Gaming-PC council timed out after 300 seconds; no streaming council tool was available. Jenny CLI authentication timed out. Clahadore was denied before and after a normal UsageGovernor scan:

USAGE-GOVERNOR: native state unavailable - refusing automated `claude -p` spend (fail-closed).
usage-governor: DENIED external claude call.

Commit/push status: pending. The council-code-review skill requires a pre-commit review and Clahadore-chaired synthesis. No admission bypass, commit or push was attempted. The concrete verified patch is ready for either the required chair to become available or Andrew to authorize a substitute gate. The requested one-file-per-commit NUnit migration was not started under this blocked commit gate.

ER derivation is reproducible with dotnet run --file docs/architecture/GenerateOperationalErd.cs. It generated 14 entities from the unchanged EF model snapshot; repeated output was byte-identical. The local SVG page was visually checked at mobile size. Mermaid and Structurizr sources received manual syntax checks; no local parser was available, so renderer validation is not claimed.

Pass 10 (Fable re-gate 2)

Verified 2026-11-12 on WT-dc65, after pass 8 commit 1a21de5. Fallback tag demo-safe-3 retained. Changes follow docs/ANDREW-STYLE-GUIDE.md; the existing xUnit test stack remains in place. The supplemental CRLF finding was added concurrently to docs/CODEX-TASK-10.md by Clahadore and is included below. That pre-existing staged task document was preserved.

Finding → commit → test

Commit IDs are pending the required Clahadore-chaired review gate. Each row is a separate prepared commit boundary; no commit or push is claimed.

Finding Commit boundary (pending) Regression and verification
1. Fixture AppHost unnecessarily registered HAPI/Docker fix: make local EHR container opt-in Dedicated AppHost model tests: old code 3 failures/1 pass; fixed code 4/4. Default/Fixture has no container or seed; explicit LocalEhr and --ehr have HAPI and seed. Live startup evidence below.
2. Fixture tree reparsed per resource type perf: cache fixture resources per source instance New FixtureSourceCacheTests invalidates disk after the first type read: old code reparsed and failed; fixed code serves the indexed snapshot, while a new source instance rereads disk.
3. Bronze reruns duplicated rows and executed one insert per resource fix: bulk ingest bronze resources idempotently Two BronzeIdempotencyTests fail on old code: duplicate input and second run grow bronze. Fixed runs retain two distinct resource-type/id/version keys; a new version increases count once to three. Insertion is one parameterized multi-row statement with a persisted-key anti-join. Existing older-partial-replay coverage passes.
4. Validation accepted a final newline fix: anchor FHIR validation at absolute string end Four old-code failures cover HTTP allergy code 91936005\n, direct-service patient ID, seed ID, and seed resource type. All four C# validators use \z; CRLF controls also pass. Whole-solution scan found no additional C# end-anchor validators. Existing JS validators without multiline mode already reject final newlines.
5. Silver coding priority, labels, and Condition period differed from C# fix: align lakehouse coding and onset with clinical mapping Eight extended pass-7 parity cases fail with old SQL, pass with fixed SQL: Condition, Immunization, MedicationRequest, AllergyIntolerance, Observation; selected coding display wins over text, text remains the fallback, and Condition onsetPeriod precedes recordedDate. Preferred-system mapping is shared with C#. Medication fixtures include required intent. Existing cohort/A1c/BP parity remains green.
6. Status sets duplicated across runtime, migration, SQL, and TS refactor: centralize canonical FHIR status sets Six new old-code failures; all 12 status contract/intake tests pass. Immutable Core sets drive mapping, eligibility/evidence, risk, intake, migration SQL, and lakehouse IN lists. A test compares every published TS set to C#. All existing migration/clinical-eligibility tests pass; TS smoking-evidence tests 7/7. Legacy enum spellings exist only in normalization backfill, which repairs stored rows before live intake projection; no legacy spelling is accepted as new intake evidence.
7. Ottehr labels depended on UUIDs and fragments on a filename fix: derive Ottehr provenance from captured source Extra arbitrary-ID Ottehr patient and renamed fragment fail old code; fixed tests pass. Transport copies receive a capture tag; missing resourceType identifies fragments. Existing pre-tag rows use exact patient/version staging source path. Removing that source fallback reproduces the regression. Known UUID outside Ottehr, stale-version source, absent/malformed JSON, and retained-tag controls pass. Affected API/intake/provenance/cache suite: 57/57.
8. Generated-document comparisons failed with autocrlf/BOM test: normalize generated artifact checkout encodings Four old-comparison failures; all five profile tests pass after normalizing LF/CRLF and UTF-8 BOM. Scoped .gitattributes pins generated profiles/snapshots to LF and screenshots to binary. Producer fixture byte-preservation tests remain exact. Scoped git add --renormalize in a temporary index produced zero generated-artifact changes; the real index was untouched.

Final verification

Command Result
dotnet build --nologo Passed; 0 warnings, 0 errors.
dotnet test --no-build --nologo Passed: 267 main tests + 4 AppHost model tests = 271; 0 failures/skips.
npm test in web/ Passed: 12 tests across 5 files.
npm run build:snapshot in web/ Passed.
npm run e2e in web/ Passed: 8 mobile/browser tests.
node --test ehr-track/risk/smoking-evidence.test.ts Passed: 7 tests.
git diff --check Passed.

Live offline-host proof: launched dotnet run --project src/FhirDemo.AppHost --no-build -- Source:Mode=Fixture Metabase:Enabled=false Data:Provider=Sqlite with process-scoped DOCKER_HOST=tcp://127.0.0.1:1. Get-Service com.docker.service reported Stopped. The Aspire dashboard started; GET http://localhost:5080/health returned 200 Healthy and /api/patients returned 12 patients, 2 Ottehr sample labels. No Docker start was requested. The owned test process tree was stopped afterward; API/dashboard ports were released. The E2E-generated screenshot change was restored to its pre-run Git version.

Evidence logs are under .artifacts/pass10/: core-red.log, parity-red.log, dotnet-build.log, dotnet-test.log, web-test.log, web-build.log, web-e2e.log, apphost-proof.txt, provenance-staging-red.log, provenance-final-green2.log, profile-eol-red.log, and profile-eol-green.log. AppHost red/green logs are .artifacts/pass10-apphost-{red,green}.log.

Review and landing status

Independent Cedric semantic reviews found no actionable findings. Gaming-PC qwen3-coder:30b returned no findings on the production patch; focused local Ollama returned NO FINDINGS. The initial full gaming council timed out after 300 seconds; no streaming council tool was available. Jenny's CLI authentication timed out.

Clahadore's normal CLI review was denied twice, including after a successful normal usage-governor scan:

USAGE-GOVERNOR: native state unavailable - refusing automated `claude -p` spend (fail-closed).
usage-governor: DENIED external claude call.

The council-code-review skill requires review before every commit and Clahadore as chair. No bypass, substitute-chair assumption, commit, or push was attempted. The fully verified changes are ready for Clahadore's gate or Andrew's explicit authorization of a substitute chair. Planned commits use Andrew Jones andrewjonesdev1@gmail.com, with Co-Authored-By: Cedric (Codex) <noreply@openai.com> and Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>. After the gate, fill the table with actual commit IDs and push through fleet-repo-sync/sync-push.ps1.

Pass 11 (quality gate)

Run on 2026-11-12 Chicago time (receipts also use 2026-11-13 UTC), on wt/WT-dc65/fhir-demo, after pass 10 commit 0ee4f9c and before migration pass 9. Way 2 merged as 5224998; Forge merged as 9dbdfa3. Andrew explicitly directed per-item commits/pushes with the branch-wide council and Fable/Astra review performed by Clahadore before main integration. That instruction supersedes the earlier pass-10 waiting note above. This pass does not claim that branch-wide review, publication, deployment or pass 9 is complete.

All data used here is captured synthetic data or explicitly fixed analytical boundary vectors. No random clinical measurements were introduced. The C# style guide applies; TypeScript remains at the required Zambda/Vue runtime boundary. Shell and PowerShell orchestrate the native CI tools; quality decision helpers are C#.

Build and NUnit evidence

Fresh Linux SDK rebuild, because Windows Application Control rejected newly compiled DLLs with System.IO.FileLoadException ... An Application Control policy has blocked this file. (0x800711C7). No policy was disabled or changed.

dotnet build --no-incremental --artifacts-path /work/.artifacts/pass11/final -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true
Build succeeded.
    0 Warning(s)
    0 Error(s)

dotnet test --no-build --artifacts-path /work/.artifacts/pass11/final --logger trx --results-directory /work/.artifacts/pass11/final-results
Passed! - Failed: 0, Passed: 270, Skipped: 0, Total: 270 - FhirDemo.Tests.dll
Passed! - Failed: 0, Passed:   4, Skipped: 0, Total:   4 - FhirDemo.AppHost.Tests.dll
Passed! - Failed: 0, Passed:  65, Skipped: 0, Total:  65 - FhirDemo.Lakehouse.Contracts.Tests.dll
Passed! - Failed: 0, Passed:  22, Skipped: 0, Total:  22 - FhirDemo.Contracts.Tests.dll
Passed! - Failed: 0, Passed: 289, Skipped: 1, Total: 290 - EFCore.DuckDB.Tests.dll

Original baseline 267 + 4 = 271; converted original suites 270 + 4 = 274, all NUnit. Expanded solution 650 passed, 1 skipped. The provider skip is its optional external QUACK test without QUACK_TEST_URI; local provider tests run. No xUnit dependency remains. Each original file has its own conversion commit. Three initial per-file checks accidentally reused stale xUnit assemblies because copied source retained older timestamps; these are explicitly corrected, with fresh NUnit executor evidence, in TESTING. Their original passing output is not represented as proof of conversion.

Moq supplies plain HTTP/dependency stubs. Behavioral fakes and the reasons for retaining them are listed in TESTING. AutoFixture and seeded Bogus cover nonclinical settings, request DTOs, cursor, crosswalk/staging and outbox shapes: Bogus for shape, Synthea for clinical truth.

Captured contracts exercise bronze, silver and gold; 3,191 bronze rows, 12 silver patients and 56 gold risk rows agree with the operational result. Additional fixed Way 2 captures cover 32 ASCVD combinations and 11 rule boundary scenarios. The 22 boundary tests pin verbatim FHIR Bundle, CDS Hooks and Vue snapshot payloads by origin/hash and reject incorrect shapes. Real temporary API producer checks complement schema assertions. Vue's generic response cast is not misrepresented as production runtime validation. QuestionnaireResponse and Zambda captures are checked by Vitest. Captures and SOURCE manifests are committed beside the tests.

Mutation evidence

Final .NET mutation gates PASS for all four configured scopes. The interrupted dispatch left a completed authoritative Core report, so the continuation verified it without repeating the run. dotnet-stryker is pinned to 5.1.0; 4.16.0 crashed with NullReferenceException in MutationStore.Inject, exit 134, and was not counted as a pass. Scopes, commands, positive break thresholds and every equivalent RiskEngine survivor are recorded in TESTING. Pass-9 reconciliation is not yet implemented and is not claimed as covered.

Lane Total Killed Survived Timeout No coverage Compile error Ignored Score Break Result
Core 573 471 38 12 14 21 17 90.28% 85 PASS
Operational 195 113 34 0 3 28 17 75.33% 70 PASS
Lakehouse 119 94 4 0 6 4 11 90.38% 85 PASS
Provider 774 376 173 2 61 116 46 61.76% 56 PASS
cd src/FhirDemo.Core
dotnet stryker -f ../../stryker-config.json --output /output/mutation --skip-version-check --concurrency 24
[04:48:36 INF] Time Elapsed 00:27:37.0689105
[04:48:36 INF] The final mutation score is 90.28 %
[exit 0]
cd /work
dotnet run --project tools/QualityGate -- mutation /output/mutation/reports/mutation-report.json 85
Mutation: total=573, killed=471, survived=38, timeout=12, no-coverage=14, excluded=38, score=90.28%, break=85.00%; PASS.

The Core run used both complete NUnit projects: 270 main tests plus 65 gold/risk contracts, with no test-case filter or narrowed source scope. Continuation verification found exact equality between all three report-embedded mutated source files and the current workspace, and SHA256 equality for all 36 C# source/project files across both test projects in the run's container. Authoritative output is .artifacts/pass11/core-final-linux/mutation/reports/mutation-report.json, with stryker.log, mutation-exit.txt and mutation-guard.log beside it. Canceled and pre-boundary Core diagnostics remain failures/incomplete runs, not alternate passing receipts.

RiskEngine itself has 323 mutants: 308 killed, one survived, zero timeout/no-coverage, seven compile errors and seven ignored. The full report confirms all ten repaired gaps are killed. Its only survivor, ID 796 at line 56 (ascvd.Score >= 20 to > 20), is equivalent under the binary64 proof and adjacent-double test documented in TESTING. ClinicalMapping has 223 mutants (143 killed, 35 survived, 12 timeout, 14 no-coverage, 11 compile errors, eight ignored); FhirStatus has 27 (20 killed, two survived, three compile errors, two ignored).

Timeouts remain reported as timeouts, never assertion kills. All 12 occur in ClinicalMapping; even granting them zero credit gives 471 / 535 = 88.04%, above break 85. The run warned that 24 workers exceed the recommended 16; recorded container memory events show no OOM or OOM kill. CI retains two workers. Operational, lakehouse and provider commands are dotnet stryker -f ../../stryker-operational.json --output /output/mutation --skip-version-check, dotnet stryker -f ../../stryker-lakehouse.json --output /output/mutation --skip-version-check from their source directories, and dotnet stryker -f ../../../../stryker-provider.json --output /output/mutation-compatible --skip-version-check from the provider test directory. Each completed with exit 0 and its positive-threshold report guard passed; raw receipts are in .artifacts/pass11/mutation-receipt.md.

cd ehr-track/risk; npm run mutation
Mutation: total=412, killed=408, survived=3, timeout=0, no-coverage=1,
score=99.03%, break=94.03%; PASS.

The three JS survivors have explicit equivalence proofs in TESTING; the private unreachable date fallback remains honestly counted as no coverage. Fresh output directories, pre-run report removal, status validation and positive assessed-mutant assertions prevent stale/empty reports passing. .NET thresholds use integer floor(measured score) - 5; JS uses its measured score minus five.

SAST, dependencies and secrets

Final Semgrep result: PASS, exit 0, Ran 142 rules on 621 files: 0 findings. JSON errors=0; approximately 100% parsed lines. Scanned paths explicitly include all main/provider tests, RiskBoundaryTests, the NUnit report guard, viewer browser tests and unchanged Floorplan output. Initial runs had zero findings but PartialParsing errors and exit 1, which were failures. Explicit constructors, ordinary interpolation and conventional project wrappers resolve OSS parser limitations without excluding production source or disabling strict mode. Scans include the 2.2 MB Floorplan output using --max-target-bytes 5000000.

Pinned Semgrep 1.185.0 image sha256:67518c174185a2043fdbed16c70631b79209499b3671178e7194379b48295a0d; command semgrep scan --strict --error --metrics=off --config p/csharp --config p/typescript --config p/secrets --config .semgrep/sql.yml --max-target-bytes 5000000 --timeout 600 --json .. The comment-only .semgrepignore replaces default test exclusions. A finite 600-second rule budget lets the original secrets URI rule complete on the 2.2 MB generated Floorplan file; no rule or engine waiver is used. Initial 5/60/180-second timeouts failed and are retained as diagnostics. Four later test-only SQL findings were resolved with fixed SQL or narrowly documented SQL-generator contract annotations. Narrow inline false-positive explanations also cover fixed CLI output paths and provider SQL literal escaping; hostile literal round-trip tests remain. Raw SQL source-to-sink rules are included. Recommended .NET analyzers run with warnings treated as errors.

dotnet list FhirDemo.slnx package --vulnerable --include-transitive --format json
[exit 0; no reported vulnerable packages; High/Critical=0]
npm audit --audit-level=high  [web]
found 0 vulnerabilities
npm audit --audit-level=high  [forge-studio]
found 0 vulnerabilities
npm audit --audit-level=high  [ehr-track/risk]
high: 0, critical: 0, moderate: 5
[exit 0 at the requested high threshold]

Standalone IaC/tool projects are also audited by the CI script. NuGet's clean JSON omits frameworks, so the parser handles absent framework arrays while requiring project data and rejecting advisories. The five moderate Way 2 development-tool findings are disclosed, not called zero vulnerabilities.

Pinned Gitleaks 8.24.3 image sha256:e1b35e12a8c6fa8901f060459cfb6b2fc4c484d3afbe3b029733a3bbfab07055 scans full Git history and the release tree:

gitleaks git --log-opts=--all --redact --report-format json .
76 commits scanned.
no leaks found
gitleaks dir --redact --report-format json <tracked-and-nonignored-release-tree>
scanned ~14255557 bytes (14.26 MB)
no leaks found

A later full-history/tree scan reported 117 commits scanned, no leaks found, and scanned ~14333459 bytes (14.33 MB), no leaks found, respectively. A scan of every physical local file also found three public example credentials in ignored, downloaded Cloudflare Terraform provider README files. Those downloaded dependencies are not release-tree files. CI scans its full clean checkout and full history before the separate IaC job downloads providers; no repository finding was suppressed.

DAST and IaC

ZAP 2.17.0 is pinned to image sha256:030d3df57735dacbb83464854758e674dd9ad01d79d12a129a8e58b1fd384238. The real seeded API runs with read-only and explicit synthetic-public flags; Zambda uses its actual handler behind a local HTTP adapter with a captured synthetic upstream fixture. No credentials, hosted service or production data are required.

zap-baseline.py -t http://api:8080/api/patients -J zap.json
QualityGate zap zap.json
ZAP: sites=1, alerts=2, High/Critical=0; PASS.
[one Low cross-origin resource policy alert; one Informational cache alert]
zap-baseline.py -t http://zambda:8080/patient-risk -J zambda.json
FAIL-NEW: 0 FAIL-INPROG: 0 WARN-NEW: 0 WARN-INPROG: 0 INFO: 0 IGNORE: 0 PASS: 62
QualityGate zap zambda.json
ZAP: sites=1, alerts=0, High/Critical=0; PASS.

DAST is an HTTP baseline, not a claim that hosted identity/role authorization was tested. CI uses isolated internal Docker networks and cleans its containers on exit.

cdktn synth  [CLI 0.25.0, FhirDemo.Deploy and FhirDemo.Infra]
[exit 0; exactly three generated stacks]
terraform init -backend=false; terraform validate  [Terraform 1.17.1]
Success! The configuration is valid.  [fhir-demo-gcp]
Success! The configuration is valid.  [fhir-demo-cf]
Success! The configuration is valid.  [fhir-demo-azure]
dotnet run --project tools/VerifySynth
[16 PASS invariants, including CloudRunHasNoPublicInvoker, RuntimeHasNoProjectRoles, BudgetRetained and KeyVaultDefaultDeny]
pwsh -File infra/VerifySynth.Tests.ps1
PASS KeyVaultDefaultDeny rejects the unsafe synthesized JSON mutation
PASS KeyVaultAllow rejects the unsafe synthesized JSON mutation
PASS CloudRunHasNoPublicInvoker rejects the unsafe synthesized JSON mutation
PASS RuntimeHasNoProjectRoles rejects the unsafe synthesized JSON mutation
PASS BudgetRetained rejects the unsafe synthesized JSON mutation
tfsec --minimum-severity HIGH --no-ignores --format json <stack>
[GCP: High/Critical=0; Cloudflare: High/Critical=0]
tfsec --minimum-severity HIGH --no-ignores --exclude azure-keyvault-specify-network-acl --format json <azure-stack>
[Azure: High/Critical=0, with the specific compensation below]

Synth output folders are removed before synthesis; both CDK output variable names and the C# App output path agree. This prevents stale JSON being validated. Checkov 3.4.5 and 3.2.495 crashed on CDK JSON's scalar terraform.required_version with Exception: this method receives only dicts; those runs are NOT passes. The allowed alternative tfsec 1.28.14 is pinned to sha256:ac46d48a384ae2c0bbd0413cd2a18229e45e21a44d22c8be28b56de5b38d74c3.

tfsec incorrectly reports missing Azure Key Vault ACLs for synthesized Terraform JSON even with explicit default_action=Deny, bypass=None and public access disabled. Only that exact Azure rule is excluded; the C# invariant checks the actual JSON and the negative tests prove absent/Allow ACLs fail. This is a disclosed compensating check, not an unadjusted zero-finding claim. GCP/Cloudflare files contain parsed blocks but no supported passing tfsec checks; explicit invariants cover Cloud Run access, runtime project grants and the budget. No claim of exhaustive provider-policy coverage is made.

Web, parity and release preparation

cd web; npm test
Test Files 5 passed (5)
Tests 12 passed (12)
npm run build:snapshot
[exit 0]
npm run e2e
8 passed (10.8s)
cd forge-studio; npm ci; npm run build
[exit 0; TypeScript/Vite build; large generated chunk advisory retained]
cd ehr-track/risk; npm test; npm run check; npm run build
Tests 64 passed (64)
[type check and bundle exit 0]
pwsh -File ehr-track/scripts/parity.ps1 -WorkingTree
[12 patients / 56 flags identical]
pwsh -File bi/metabase/get-driver.Tests.ps1
PASS DriverMismatchDeletesTemporaryAndNeverPublishesJar
PASS DriverValidDigestPublishesJarAfterVerification

The original Windows npm ci encountered EPERM on locked esbuild.exe; the web checks above ran in an isolated Linux source copy. No unrelated process was terminated. Additional checks completed: Node 22.23.5 risk suite 64/64, typecheck/build exit 0; viewer browser suite 6 passed (2.1s); viewer npm audit found 0 vulnerabilities; one valid deployment request plus 12 unsafe configuration cases checked. The deployed request uses the same tested Node22/http_auth plan factory. The NUnit report guard accepted all five real project TRXs and rejected nine empty, failed, wrong-framework, inconsistent or below-baseline reports.

pwsh -File .github/scripts/ValidateQualityTools.ps1
Quality tool self-tests passed. Synthetic canaries only; this does not replace the real release audit.
[25 positive/negative checks; exit 0]
dotnet run --project tools/LicenseReport
License report: 1641 package/path entries; missing license declarations=0; /work/docs/THIRD-PARTY-PACKAGES.tsv
dotnet run --project tools/ReleaseAudit -- /repo /release-input/release-denylist.txt
ReleaseAudit: NOT DONE (DirectoryNotFoundException); verify repository and external denylist inputs.
[exit 2]

ReleaseAudit remains NOT DONE: the orchestrator has not supplied the real external denylist. Synthetic canary tests prove matching, encoding checks, path containment, missing inputs and unsafe/empty quality inputs fail; they do not stand in for the release list. No actual denylisted values were written to the repository. Root LICENSE reserves Andrew Jones's rights, allows viewing via the shared link, and grants no use/copy/modify license. THIRD-PARTY-NOTICES retains the exact upstream terms, including Ottehr's custom MassLight license rather than incorrectly calling it MIT. README now provides the two ways, three-command Aspire run, architecture links, gate commands and pending live links.

Continuation release-input verification

ReleaseAudit: NOT DONE — pending orchestrator denylist. The release denylist is supplied by the orchestrator at release time; no real values are committed. Verification used a valid Git source copy and an absent external file, so this result specifically exercises the missing-list failure rather than a missing repository directory. The existing tool fails closed; no implementation change was needed.

dotnet build tools/ReleaseAudit --nologo -v:q
Build succeeded.
    0 Warning(s)
    0 Error(s)
dotnet run --project tools/ReleaseAudit --no-build -- /tmp/pass11-release /tmp/pass11-missing-release-denylist.txt
ReleaseAudit: NOT DONE (FileNotFoundException); verify repository and external denylist inputs.
[exit 2]
pwsh -File .github/scripts/ValidateQualityTools.ps1
PASS EmptyDenylistFails (exit 2)
PASS MissingDenylistFails (exit 2)
PASS MissingMatrixCellFails (exit 2)
PASS EmptyMatrixValuesFail (exit 2)
Quality tool self-tests passed. Synthetic canaries only; this does not replace the real release audit.
[25 checks passed; exit 0]

Receipts: .artifacts/pass11/continuation-release.log, continuation-release-build.log, and continuation-quality-selftests.log. Release approval and the real denylist scan remain pending.

Applied migration audit required by Andrew

Pass 11 makes no change to already-applied EF migrations: git diff 0ee4f9c -- src/FhirDemo.Data/Migrations is empty. Pass 10 did edit StatusLiteralBackfill and VerificationStatusBackfill. At this revision those edits are SQL-semantics-preserving: the former replaces the same four literals (entered-in-error, not-done, on-hold, in-progress) with constants of identical values; the latter renders the same invalid-code membership (entered-in-error, cancelled, refuted) in sorted order. SQL IN membership is independent of that ordering, and the coding-array ordering remains unchanged.

Existing applied databases do not rerun these migration IDs. Fresh databases therefore have the same current outcome, so no compensating data migration is needed for this equivalence-only change. Future coupling is a risk: changing FhirStatus.Invalid or these constants would alter replay of historical migrations. Treat those historical semantics as frozen, and add a new migration for later changes; never edit an applied migration in pass 9. Current SQLite migration tests pass; no live SQL Server or GCP database migration was executed in this pass.

CI, commits and remaining status

Continuation item 1 reviewed and retained all seven implementation files: the workflow, five pass11-* runner/adapter files and stryker-config.json. Actionlint and shellcheck passed. Stale ZAP reports are removed before each scan so a failed scanner cannot reuse an earlier result. No stray scratch files were found among the pending files; user-owned docs/CODEX-TASK-11*.md files are excluded from commits.

One pinned, read-only-permission workflow chains build → NUnit → web → five mutation lanes → SAST → dependency audit → full-history/tree secrets → DAST → IaC. It requires no configured secrets. The matrix completeness helper validates all 12 × 3 command/result cells, and each execution job independently fails on its own result. Independent review closed empty-test, Forge-build, Way-2 viewer/runtime/deployment, Seed build/audit and active audit-predicate test gaps. Hosted GitHub Actions completion is NOT DONE until an actual run is observed; local tool results and workflow lint are not substituted for a hosted run.

Each verified item is committed as Andrew Jones with both requested co-author trailers and pushed through sync-push.ps1. Pushes to origin succeeded. Greatroom and gaming scheduled pulls were triggered; bedroom's SSH host-key verification and the configured Mac hostnames' DNS resolution failed. No peer working tree was overwritten and no SSH verification was bypassed. The user-owned docs/CODEX-TASK-11.md is excluded from these commits.

Co-author footer formatting was corrected on 54 first-parent Pass-11 commits: blank lines between entries had made GitHub recognize only the final co-author. Every corrected commit retains its identical code tree, original author/date and external merge parents. An exact-old-tip lease protected the branch update; main and the imported feature branches were not rewritten. GitHub now reports Andrew Jones, Cedric (Codex) and Claude Opus 5.5 together. PASS11-COMMIT-MAP.tsv maps historical receipt hashes to their corrected hashes and unchanged tree IDs; earlier receipt hashes above describe the originally executed checks. Subsequent commits use one contiguous trailer block.

Raw local evidence remains in ignored .artifacts/pass11/: final-build.log, final-tests.log, TRX results, nunit-receipts.txt, compatibility-*.log, boundary-receipt.md, way2-receipt.md, mutation JSON/receipts, scanner JSON/logs, terraform-*-validate.log, wrapper-negative.log, web-linux-*.log, zap*.log, tools-review-selftests.log, release-audit-final.log and push-*.log. CI uploads its corresponding raw evidence. This committed section and QUALITY-MATRIX preserve the result excerpts even though generated raw files are not published.

Pass 11 (final)

Continuation verified 2026-11-12 Chicago time / 2026-11-13 UTC on wt/WT-dc65/fhir-demo. Fresh local checks below passed against isolated copies of the current source. Completed security, IaC, parity and other mutation results remain the earlier receipts above; they were not rerun or relabeled as new scans. No application or test source changed during these final checks. The workflow now explicitly installs Graphviz for Forge's diagram build; actionlint returned exit 0.

Fresh Linux SDK 10.0.404 build and full NUnit suite:

dotnet build --no-incremental --artifacts-path /final/.artifacts/build -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:26.72

dotnet test --no-build --artifacts-path /final/.artifacts/build --logger trx --results-directory /output/continuation-final-results
Passed! - Failed: 0, Passed: 270, Skipped: 0, Total: 270 - FhirDemo.Tests.dll
Passed! - Failed: 0, Passed:   4, Skipped: 0, Total:   4 - FhirDemo.AppHost.Tests.dll
Passed! - Failed: 0, Passed:  65, Skipped: 0, Total:  65 - FhirDemo.Lakehouse.Contracts.Tests.dll
Passed! - Failed: 0, Passed:  22, Skipped: 0, Total:  22 - FhirDemo.Contracts.Tests.dll
Passed! - Failed: 0, Passed: 289, Skipped: 1, Total: 290 - EFCore.DuckDB.Tests.dll
[build/test/receipt script exit 0]

Total: 650 passed, 0 failed, 1 skipped. The skip is LocalQuackAttachmentExecutesQuery, which requires the optional external QUACK service. The NUnit TRX guard accepted all five real reports and confirmed NUnit execution. Original baseline 271 tests versus converted original suites 274; expanded solution counts include the added provider and contract suites. Windows Application Control remains unchanged; these are Linux results.

Final browser/runtime checks used Node 24.22.2 for web/Forge and Node 22.23.5 for Way 2/viewer. Each directory first ran npm ci; both browser suites installed Chromium with npx --no-install playwright install --with-deps chromium.

cd web
npm test
Test Files 5 passed (5)
Tests 12 passed (12)
npm run build:snapshot
✓ built in 1.65s
[exit 0]
npm run e2e
8 passed (9.2s)
[exit 0]

cd ehr-track/risk
npm test
Test Files 6 passed (6)
Tests 64 passed (64)
npm run check
> tsc --noEmit
[exit 0]
npm run build
> tsc && node build.mjs
[exit 0]

cd ehr-track/viewer
npm run check
> node --check viewer.js && node --check serve.mjs
[exit 0]
npm test
6 passed (1.2s)
[exit 0]

cd forge-studio
npm run build
✓ built in 873ms
[exit 0; large generated chunk advisory retained]

Two initial harness failures are retained as failures. The first Way 2 source copy omitted Git history: Error: Command failed: git rev-parse --show-toplevel, fatal: not a git repository (or any of the parent directories): .git, exit 1. The rerun imported the current branch's Git bundle, set FHIR_FIXTURES=/work/absent-fixtures-use-pinned-git-capture, and exercised the existing pinned git show 8d1dd5f fixture fallback; all 64 tests passed. The initial Forge build in the slim Node image reported not found: unflatten, Error: not found: dot, then Error: no views found, exit 1. Installing Graphviz with apt-get update && apt-get install -y --no-install-recommends graphviz and rerunning the same build returned exit 0. Neither correction changed application or test source.

The completed Core mutation run was recovered and matched to current source; no duplicate run was needed. Its configured scope remains RiskEngine, ClinicalMapping and FhirStatus, with both required test projects:

cd src/FhirDemo.Core
dotnet stryker -f ../../stryker-config.json --output /output/mutation --skip-version-check --concurrency 24
The final mutation score is 90.28 %
[exit 0]
dotnet run --project tools/QualityGate -- mutation /output/mutation/reports/mutation-report.json 85
Mutation: total=573, killed=471, survived=38, timeout=12, no-coverage=14, excluded=38, score=90.28%, break=85.00%; PASS.

RiskEngine's sole surviving mutant 796 is individually justified as equivalent in TESTING; other Core survivors and excluded mutants are disclosed above. floor(90.28) - 5 = 85, so the positive break threshold follows the measured-baseline rule. QUALITY-MATRIX has commands and real results in all 36 cells. Its CI completeness guard passes the real matrix; 25 quality-tool canary checks pass, including rejection of missing/empty/markup-only cells, duplicate rows, zero mutants and missing denylist inputs.

ReleaseAudit: NOT DONE — pending orchestrator denylist. The real list is supplied at release time. The current fail-closed tool was verified against a valid repository and an absent external file:

dotnet run --project tools/ReleaseAudit --no-build -- /tmp/pass11-release /tmp/pass11-missing-release-denylist.txt
ReleaseAudit: NOT DONE (FileNotFoundException); verify repository and external denylist inputs.
[exit 2]

Hosted GitHub Actions completion: NOT DONE until an actual successful run is observed. Local checks and workflow lint do not establish hosted success. Release approval, publication and deployment remain pending. Continuation item pushes to origin succeeded through sync-push.ps1; greatroom/gaming scheduled pulls were triggered, while bedroom host-key verification and configured Mac DNS resolution failed. These peer failures remain disclosed, with no verification bypass or overwritten peer work. User-owned docs/CODEX-TASK-11*.md files remain excluded from commits.

Final raw evidence: .artifacts/pass11/core-final-linux/continuation-final-{build,tests,test-guard}.log, continuation-final-results/*.trx, continuation-final-exit.txt; .artifacts/pass11/continuation-final-web-*.log, continuation-final-way2-*.log, continuation-final-viewer-*.log, continuation-final-forge-*.log, continuation-quality-selftests.log, continuation-release.log and continuation-push-*.log. The initial missing-Git and missing-Graphviz logs are preserved beside their successful reruns.

Pass 9 (migration v2)

Verified on WT-dc65 after pass 8 1a21de5 and pass 10 0ee4f9c. demo-safe-3 was retained. The verified core is the self-contained Synthea fixture cohort: 3,188 records, 10 patients, 48 risk flags. The captured Ottehr intake references an absent Encounter and unsupported InsurancePlan references; its incomplete graph is an explicit rejection test. No source records or encounters were invented. Allscripts and live Oystehr were not executed. This is an illustrative in-house clinical store, not a full EMR.

The core includes normalized clinical columns and child tables, separate preserved payloads, immutable manifest/alias bindings, unique crosswalks, atomic target/crosswalk/checkpoint transactions, read-only reverse-FHIR read-back, independent canonical field comparisons, physical-FK/crosswalk integrity, and the same Way 1 risk engine at 2026-11-12T12:00:00Z. The DuckDB bronze/silver/gold path was rerun from the committed in-house source and preserved the gold flags. SQL Server, Azure provisioning and cutover remain unexecuted.

Build and tests

Final Linux SDK validation used an isolated source copy, because some ordinary Windows DLL loads were rejected by Application Control. No security policy was changed. Windows zero-test adapter failures and later blocked CLI attempts are retained as failed environment attempts; they are not counted as successful tests or real runs.

dotnet build --no-incremental --artifacts-path .artifacts/build -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true
Build succeeded.
    0 Warning(s)
    0 Error(s)

dotnet test --no-build --artifacts-path .artifacts/build --logger trx
FhirDemo.AppHost.Tests:                 4 passed
FhirDemo.Contracts.Tests:             22 passed
EFCore.DuckDB.Tests:                  289 passed, 1 skipped
FhirDemo.Lakehouse.Contracts.Tests:    65 passed
FhirDemo.Migration.Tests:            158 passed
FhirDemo.Tests:                      273 passed
Total: 811 passed, 0 failed, 1 skipped.
All six TRX files passed the NUnit/nonzero-count guard.

The sole skip remains the optional external QUACK service test. Migration tests use NUnit and Moq; AutoFixture/Bogus are restricted to non-clinical metadata. Clinical cases come from the captured Synthea/Ottehr fixtures. The three committed-target corruption tests call the CLI command and assert exit 1 plus a serialized FAIL report: dropped display, altered unit and broken patient linkage. Other negatives cover manifest mismatch, identifier collisions without merging, unknown references/foreign hosts, crosswalk corruption, URN physical-FK corruption, hidden coverage metadata, lost numeric/time precision and poisoned report fields.

cd web
npm test                 28 passed
npm run build:snapshot   exit 0
npm run e2e              10 passed (9.9s)
Final canonical snapshot Migration-only replay: 2 passed

The Migration page reads only the generated snapshot. Its missing-report test shows NOT VERIFIED. There is no migration HTTP endpoint or live migration control in the UI.

Real migration and recovery runs

Canonical capture command (Windows run before the later hardening checks, with the same final manifest and clinical output):

dotnet src/FhirDemo.Cli/bin/Debug/net10.0/FhirDemo.Cli.dll migrate --from fixtures --to inhouse --database artifacts/migration/core3/inhouse-store.db --report-dir artifacts/migration/core3

Final Linux execution used the compiled CLI in the isolated build and fresh inhouse-store.db files. The source manifest and canonical report contract were independently reproduced on Linux. Both platforms use LF serialization for a stable hash; the initial platform-dependent indented hash was caught and corrected by the captured-contract test.

migrate --from fixtures --to inhouse
SYNTHETIC DATA migration PASS: created=3188, updated=0, unchanged=0, rejected=0, conflicted=0, flagParity=True, lakehouseParity=True
negative control: PASS (caught 2/2)

migrate --from fixtures --to inhouse
SYNTHETIC DATA migration PASS: created=0, updated=0, unchanged=3188, rejected=0, conflicted=0, flagParity=True, lakehouseParity=True
negative control: PASS (caught 2/2)

The second-run test also compares SQLite bytes, not merely counters. No schema, run, checkpoint, crosswalk or clinical writes occur on the unchanged in-house replay. Dry-run tests compare absent/existing target state and mock HTTP request counts.

migrate --from fixtures --to inhouse --crash-before-commit
SYNTHETIC DATA migration FAIL: created=0, updated=0, unchanged=0, rejected=1, conflicted=0, flagParity=False, lakehouseParity=False
Crash exit: 1
migrate --from fixtures --to inhouse --resume
SYNTHETIC DATA migration PASS: created=3188, updated=0, unchanged=0, rejected=0, conflicted=0, flagParity=True, lakehouseParity=True
negative control: PASS (caught 2/2)
Resume exit: 0

migrate --from fixtures --to inhouse --crash-after-commit
SYNTHETIC DATA migration FAIL: created=100, updated=0, unchanged=0, rejected=1, conflicted=0, flagParity=False, lakehouseParity=False
Crash exit: 1
migrate --from fixtures --to inhouse --resume
SYNTHETIC DATA migration PASS: created=3088, updated=0, unchanged=100, rejected=0, conflicted=0, flagParity=True, lakehouseParity=True
negative control: PASS (caught 2/2)
Resume exit: 0

The checkpoint is inside the same transaction as target rows and crosswalks. Consequently “after commit / before checkpoint” is not a possible durable state. The after-commit injector interrupts before external report publication; resume reads the already committed checkpoint. Continue-on-error tests retain the earliest failed checkpoint while later chunks commit, then resume without loss or duplicates.

migrate --from fixtures --to localehr
SYNTHETIC DATA localehr PASS: created=3188, updated=0, unchanged=0, rejected=0, conflicted=0, flagParity=True

The actual local HAPI transaction response is pinned as a captured contract. Local HAPI mock tests additionally prove patient-subgraph transactions, src- ids, zero PUTs on replay, If-Match conflicts, committed-uncertain read-back without a second POST, rollback-safe local intent/crosswalk state, and strict loopback spelling. Oystehr was exercised only with mocked HTTP; missing/mismatched project confirmation prevents both reads and writes. No live Oystehr request was sent. Authorization headers are explicitly redacted in the CLI HttpClient registration; reports have no headers or endpoint URLs.

Redacted report

One canonical standalone copy is migration-report.json; the UI snapshot and pinned contract reproduce that capture. Every report is marked SYNTHETIC DATA. This summary is selected directly from the canonical capture; the full coverage-path list remains in that file.

{
  "schemaVersion": 1,
  "banner": "SYNTHETIC DATA",
  "target": "inhouse",
  "status": "PASS",
  "manifestHash": "4906dba86b2f3ead5dbb6e13fcb90f060e17b783f486969deaa696d2900cbbe8",
  "mapperVersion": "inhouse-normalized-v1",
  "ruleVersion": "way1-risk-2026-11-12-v1",
  "evaluationDate": "2026-11-12T12:00:00Z",
  "created": 3188,
  "updated": 0,
  "unchanged": 0,
  "rejected": 0,
  "conflicted": 0,
  "counts": {
    "AllergyIntolerance": 3,
    "Condition": 87,
    "Encounter": 281,
    "Immunization": 113,
    "MedicationRequest": 112,
    "Observation": 2582,
    "Patient": 10
  },
  "patientCount": 10,
  "flagCount": 48,
  "flagParity": true,
  "lakehouseParity": true,
  "negativeControl": {
    "status": "PASS",
    "detected": 2,
    "expected": 2,
    "flagParityBroken": true,
    "diffs": [
      {
        "resourceType": "Observation",
        "id": "dbd7c180-0e35-4d64-a7a0-658717dba965",
        "field": "code.coding[0].display",
        "errorClass": "FIELD_MISMATCH"
      },
      {
        "resourceType": "Observation",
        "id": "dbd7c180-0e35-4d64-a7a0-658717dba965",
        "field": "valueQuantity.value",
        "errorClass": "FIELD_MISMATCH"
      }
    ]
  },
  "diffs": [],
  "failed": [],
  "duplicatePatientWarnings": [],
  "externalReferenceCount": 673
}

Quality gates and receipts

Manifest/report JSON contracts are pinned to a real core3 run with origin commands and public SHA-256 digests. The HAPI contract is a real local transaction response, not a fabricated mock. Redaction tests inject captured patient names/DOBs, free text, URLs and header-like content into source/report boundaries; none appears in JSON or Markdown output. Diagnostic ids, field paths and error classes are closed or hashed. The mapper preserves unmodeled content in normalized scalar/structural rows while the report identifies semantic coverage gaps.

Stryker's complete migration scope PASS: 67.11%, independently evaluated at the committed 65% break threshold. The configured scope is the FHIR mapper, normalized value/precision helper, crosswalk lookup/upsert and skip predicate, manifest/resume binding, and independent comparers. The discovery run began with break=1%; its completed JSON was then evaluated by QualityGate mutation at 65, exit 0. CI now executes Stryker itself with break=65. The report guard requires positive valid mutants and a positive threshold; empty reports cannot pass.

Main: total=1005, killed=558, survived=211, timeout=1,
      noCoverage=63, excluded=172, valid=833, score=67.11%, break=65; PASS
Crosswalk supplement: total=23, killed=17, survived=1, timeout=0,
      noCoverage=0, excluded=5, valid=18, score=94.44%, break=65; PASS
Selected-survivor supplement: total=734, killed=20, survived=3, timeout=0,
      noCoverage=0, excluded=711, valid=23, score=86.96%, break=65; PASS

The main run used all 146 migration tests then present. The required DroppedFieldFailsClosedAsync, AlteredUnitFailsClosedAsync and BrokenReferenceFailsClosedAsync tests killed 12, 12 and 7 mutants respectively. The timeout is not an assertion kill; even without its credit, 558/833 = 66.99%, above 65. Surviving and uncovered mutants remain disclosed; this is not a claim of exhaustive fault detection.

Review of survivors added twelve tests, without changing production code. Eight isolate crosswalk identities, unchanged-version/hash combinations and target rebinding. Four independently check typed clinical columns against captured FHIR, reject an offset-less timestamp, and require exactly one array-field diff even when risk flags remain identical. With all 158 tests, the focused supplement killed all five selected meaningful survivors: missing timestamp-offset validation, three deleted typed bindings, and a deleted array comparison loop. Its remaining three survivors concern offset-index boundaries and diff-index formatting; the crosswalk supplement's sole survivor changes exception text. The supplements are separate evidence, not a recalculated full-scope score. Character-span filters, named killers and SHA-256 equality for all five production sources are retained in artifacts/migration/mutation-linux/{survivor-spans, survivor-killer-proof, scoped-source-verification, final-mutation-summary}.json. The initial filtered-test runner attempt failed before mutation and is not counted as a pass. CI retains two workers; local mutation runs used eight.

The four-column matrix completeness check and all 27 tool positive/negative checks pass, including missing/empty D rejection. The migration CI job runs fixtures→inhouse twice, checks PASS and parity, and requires created=updated=0 with unchanged equal to the first create count. This is a local validation of the workflow; hosted Actions completion is not claimed.

Raw receipts: .artifacts/pass11/core-final-linux/pass9-final/{build,tests,test-guard,core,replay,crash-before,crash-after}.log, tests/*.trx, and exit.txt (0); .artifacts/pass9/web-*.log; .artifacts/pass9/remote-sink-linux.log; .artifacts/migration-cli-negative-tests.log; .artifacts/migration-{crosswalk,reference}-integrity-tests.log; artifacts/migration/{core3,hapi}/; and artifacts/migration/mutation-linux/. Superseded Windows load failures, initial portability defects and canceled mutation attempts remain separately labeled, never substituted for passing evidence.

The UI/docs item f376872, backend item 5b4c759, binding hardening 19ac596 and survivor regressions a5e4eaf were pushed via fleet sync. Greatroom/gaming scheduled pulls were triggered; bedroom SSH host-key verification and configured Mac DNS resolution failed. No peer security verification was bypassed. Branch integration remains council-gated. The pre-existing staged docs/CODEX-TASK-9.md and untracked docs/CODEX-TASK-11*.md are excluded from this work's commits. Release-denylist approval, hosted CI, real Allscripts/Oystehr access and production cutover remain outside these completed local checks.

Security closure: final pinned Semgrep strict/error migration+CLI+test scan covered 83 files with 0 findings and 0 parser errors, exit 0 (.artifacts/pass9/security/semgrep-close.json). The broader 716-file scan ran first; five authorized local-output-path findings were addressed with a digest validation and narrow documented sink annotations. The initial scan through a Windows worktree .git pointer was replaced by a clean source-tree scan. Final pinned gitleaks on the tracked/nonignored release tree returned no leaks found, exit 0 (gitleaks-close.json). Initial raw-directory findings were ignored build/tool artifacts and public contract digests; the real release tree excludes build artifacts, and only public-file checksum literals have line-local explanations. No secret-value allowlist was added. The new dependency graph reported no vulnerable packages. Current workflow actionlint and mutation-script bash syntax checks both returned exit 0.

Final source closure after pre-write crosswalk validation, exact-end manifest/id guards and the twelve survivor regressions: strict solution build again returned 0 warnings/errors; full solution returned 811 passed, 0 failed, 1 optional skip (migration 158, operational/CLI 273, unchanged suites 380). All six NUnit TRX guards passed. Receipts: .artifacts/pass11/core-final-linux/pass9-release-tests/{build,tests,test-guard}.log, tests/*.trx, exit.txt = 0. This supersedes the earlier 795/799-test totals; real core/replay/crash receipts remain the final-run files above. The last three changed test files also passed pinned Semgrep with 0 findings/errors; the refreshed release tree passed gitleaks with 0 findings, both exit 0 (.artifacts/pass9/security/{semgrep-final-tests,gitleaks-final-tests}.json).

Pass 14 — requirements gap close

1. Portable SHA-pinned fixture checkout

All captured JSON fixture trees now use text eol=lf, including contract/migration fixtures, producer FHIR/Ottehr captures, the full Vue snapshot, and the canonical migration report. Removed the migration snapshot -text override. Ran git add --renormalize on the exact fixture paths; captured contents and expected SHA-256 pins remained unchanged. Binary driver/image digests are not text fixtures.

dotnet test tests/FhirDemo.Contracts.Tests --artifacts-path .artifacts/build -warnaserror --logger trx: 24 passed, 0 failed, exit 0, after fixing the strict analyzer finding. The new test creates a real temporary Git repository, clones with core.autocrlf=true, and verifies every captured fixture hash; an unprotected control becomes CRLF, proving conversion was exercised. A separate negative test confirms content tampering still fails the raw-byte contract. No production hashing logic changed, so no new mutation scope is introduced by this item. Receipt: .artifacts/pass11/core-final-linux/pass14-hash/.

Review: local Gemma seat found no P1/P2 issue; Cedric reviewed the final analyzer-only fix. Gaming council timed out after 300 seconds; Clahadore CLI was denied by the usage governor (no bypass); Jenny CLI authentication failed. These are recorded review availability limits, not claimed remote approvals. Cedric proceeds under Andrew's explicit instruction to chair/commit without waiting for a review chair.

3. J5 stored procedure and data quality

Added EF migration 20261113000100_DataQualityResults, SQL Server dbo.usp_RecordDataQualityResult, and a transactional SQLite fallback. Every completed sync records four per-run checks in dq_check_result: null codes, unknown systems, missing scalar/component units and future effective dates. The API and Vue Data quality panel expose the latest run; snapshot/data-quality.json was captured from a real fresh sync. Scope and SQL Server execution limitations are documented in DATA-QUALITY.

Strict solution build: 0 warnings, 0 errors. Full solution at this checkpoint: 958 NUnit passed, 0 failed, 1 optional QUACK skip, six nonzero NUnit TRX guards passed. Includes 56 data-quality cases covering boundary dates, numeric/missing units, multiple components counted once, SQLite migration/persistence, empty runs and SQL Server upgrade/rollback script generation. SQL Server stored-procedure execution is not claimed. Stryker new service scope: 98.65%, 73 killed, 1 uncovered SQL Server execution branch, 0 survivors, 17 individually invalid compile mutants, break 70, exit 0. Receipt: artifacts/migration/mutation-linux/pass14-dq/. Shared Web validation: 28 unit tests, snapshot build and 16 Playwright cases passed, including the recorded four-check panel.

Review: Cedric verified migration/provider behavior and the independent Qwen seat's proposed findings. Its SQL-injection finding is inapplicable because EF interpolated SQL binds parameters; its intake exception/stream-disposal findings contradict awaited control flow. No findings were suppressed by changing validation or lowering gates. Remote-chair availability limits remain as recorded in item 1.

2. J3 local SFTP intake

Implemented SftpDropFolderIngestor, sftp scan|watch, and Aspire sftp-intake. INTAKE documents atomic file publication, supported FHIR/limited ORU formats, hash receipts, quarantine, source isolation and restart behavior. The callback verifies committed payloads independently before acknowledgement. Multi-OBX files, malformed intake answers and conflicting/unorderable versions cannot silently lose clinical data or receive successful receipts.

NUnit covers valid FHIR/ORU, bad files, renamed/restarted duplicates, retry after persistence failure, cancellation, temporary/busy files, invalid UTF-8, the exact 16 MiB boundary, symlinks and all eight operational resource types. Linux exercises real symlinks; only the corresponding Windows privilege limitation can skip those link cases. The latest strict targeted exporter/CLI build returned 0 warnings/errors and 77 tests passed; its full baseline was 450 tests passed.

Stryker service scope: 81.89%, 103 killed, 1 timeout, 23 survived, 0 uncovered, 29 invalid compile mutants and 12 ignored, break 70. ScanAsync is assessed; the original compiler-invalid method exclusion was corrected with production-neutral initializations, and its initial score is superseded. Separate CLI scope: 78.26%, 35 killed, 1 timeout, 6 survived, 4 uncovered, 46 viable, break 70. Both also exceed 70 without timeout credit. The combined CLI/export run scored 83.49%; per-file results justify the independently gated intake-cli and export CI lanes without lowering thresholds. Raw receipts: artifacts/migration/mutation-linux/pass14-intake-verified/ and .artifacts/pass11/core-final-linux/pass14-mutation-export-final/; independent QualityGate checks passed.

Review fixes include prevalidating intake answers, refusing multiple ORU result segments, readback before receipt, real filesystem-link tests, and propagation of cancellation. No hosted SFTP service or production HL7 interoperability is claimed.

4b. Predictive reports in both pipelines

The Vue Predictive reports page now exposes the SSM population/outreach reports and the corresponding independently computed Oystehr views. It runs in static snapshot mode at 390px and 1280px. Six gold-query sections cover warning-flag burden, flag types, A1c direction, monthly BP control, ASCVD bands and cited outreach. Patient selection explains each rule and its inputs. Every gold chart carries its source tables, exact SQL and data-as-of time; EHR charts identify their mapper/rule provenance and calculations. Historical BP lists scroll within their panels.

The actual frozen export contains 12 patients and 56/56 agreeing flags, as of 2026-11-12T12:00:00Z. The new path uses FixtureFhirSource so both Ottehr captures are included alongside the 10 SMART patients. All 12 ASCVD values are insufficient data; none was imputed. The parity harness emits both real engine outputs, and the C# exporter independently binds gold keys, scores, indicators, citations and timestamps to that receipt. Empty/duplicate/stale/inflated receipts fail; actual disagreements are listed. Ordinal citation comparison preserves FHIR case sensitivity. A newer gold build invalidates an older predictive receipt before regeneration. Millisecond clock precision prevents .NET/JavaScript timestamp drift.

Final local verification:

Gate Observed result
Strict solution build dotnet build --no-incremental --artifacts-path .artifacts/build -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true:0 warnings,0 errors
NUnit 990 passed,0 failed,1 optional external QUACK skip;450 operational/CLI,158 migration,65 lakehouse contracts,24 captured contracts,289 provider,4 AppHost; all 6 NUnit/nonzero TRX guards passed
New Stryker scopes Intake81.89%; intake CLI78.26%; DQ98.65%; PredictiveReports98.28% (57/58 viable); PredictiveSnapshotExporter84.88% (146/172 viable). Each new C# break threshold70 remained unchanged. Combined CLI/export83.49% (181 killed+1 timeout/218 viable)
Way2 TypeScript check/build exit0; 90/90 tests; Stryker99.14% at unchanged94.03 break (461 killed,3 survived,1 uncovered). New report-facts helper53/53 killed
Vue 28/28 unit tests; snapshot build exit0; 16/16 Playwright tests, including390px and 1280px, every independently derived EHR chart count against gold, SQL/as-of/citations, all 4 DQ checks, visible disagreements and unavailable states
Security Pinned strict Semgrep:56 changed source files,0 findings,0 parser errors; pinned gitleaks:0 leaks. One reviewed line-local annotation on the private fixed-query allowlist selection; no request SQL and no global rule exclusions
Real commands Fresh snapshot export, second sync0 inserts/updates (3191 unchanged), lakehouse run with 12 patients/56 risk flags,0 rejected, and structured parity all exited0. No Oystehr seed/apply or hosted deployment

The report/export mutation runs initially failed their thresholds (60.71% and52.78%). Independent provenance assertions, all-resource CLI readback and real controlled-process export tests closed the missing coverage. These tests found and fixed cleanup masking cancellation when an output directory did not yet exist. Superseded failures remain in receipts. Final API has57 killed,1 survivor,0 uncovered,4 target compile errors and4 ignored; the complete report also contains unrelated filtered mutants. The API source differs from its tested source only by the documented Semgrep comment. Exporter has146 killed,24 survivors,2 uncovered,26 invalid compile mutants and14 ignored. CLI has35 killed,1 timeout,6 survivors,4 uncovered and6 ignored. No target method was omitted by Stryker Safe Mode; unrelated pre-existing profiling rollback is outside these scopes. Independent QualityGate checks passed for the raw reports.

Receipts: .artifacts/pass11/core-final-linux/pass14-release/{build,tests,guard}.log, six tests/*.trx, exit0; pass14-export/ actual snapshot and lakehouse logs, exit0; pass14-mutation-{predictive,export}-final/reports/; pass14-mutation-predictive-source-delta.txt; artifacts/migration/mutation-linux/pass14-{intake-verified,dq}/; .artifacts/pass9/pass14/ Vue logs; .artifacts/pass9/pass14-risk-{tests,build,mutation}.*; .artifacts/pass14/security/*-closure.*. PowerShell instant/citation tests passed. Backend stays C#; TypeScript extends the existing Vue/Zambda code, and JavaScript is used for existing Playwright browser tooling.

Captured screenshots: phone, desktop, SSM phone, SSM desktop, EHR phone, EHR desktop. These are real Playwright captures, not generated mockups.

4. Metabase visual proof — NOT COMPLETE

Lakehouse generation passed. Metabase image ghcr.io/motherduckdb/metabase-duckdb:0.63.17-duckdb1.5.6.0 started with MB_JETTY_HOST=127.0.0.1, sharing the disposable browser container's network namespace, with no host port published. /api/health returned 200 and status:ok.

Automatic approval review rejected provisioning twice, first in a combined startup/provision/capture call, then in a smaller isolated local provisioner call. Both returned only blocked by policy, without a more specific reason. No bypass was attempted. No Metabase admin setup/provisioning or dashboard screenshots are claimed. Therefore docs/screenshots/metabase-*.png remains missing and A4 visual proof remains blocked.

The five dashboard definitions now mirror the report SQL; Power BI → Metabase over DuckDB gold tables maps every demo report. bi/metabase/capture.mjs is prepared, syntax-checked and security-scanned; once provisioning is allowed, it validates exact card SQL, executes real API queries, captures all five dashboards and records row counts/as-of. It has not been execution-verified against provisioned dashboards in this pass.

A separate local DuckDB-only check executed all 12 card queries against real frozen gold. Query row counts: Population overview3/12; Chronic conditions26; Immunization gaps12; Lab trends68; Population risk2/10/4/74/1/24/56. Raw SQL/counts: .artifacts/pass11/core-final-linux/pass14-export/metabase-sql-check.json. These counts are not substituted for Metabase API or screenshot evidence.

Delivery and remaining external gates

Hosted run 43389577685 passed the strict build, then exposed a cancellation-test race: Process.Kill(entireProcessTree: true) is asynchronous and waiting for the parent does not await its child. The test now observes child termination within the same four-second deadline, shorter than the child's eight-second lifetime. Production code is unchanged. Strict rebuild passed; 20 consecutive Linux cancellation runs and all five process tests passed. A parent-only-kill negative control failed at the child assertion, and the production source hash matched after restoration. Receipts: .artifacts/pass11/core-final-linux/pass14-cancellation-*. Independent code review and local Gemma review found no regression.

Hosted run 43390973643 exposed a Way 2 mutation dry-run fixture-path failure: Stryker relocated the new test beneath its sandbox, so its relative URL incorrectly resolved to ehr-track/risk/data/fixtures. The test now resolves the real checkout through Git only when FHIR_FIXTURES is absent; explicit overrides retain their existing behavior. Verification used a clean Git clone with normal repository layout and full history, with FHIR_FIXTURES explicitly unset: 90/90 tests passed, followed by 99.14% Stryker (465 total,461 killed,3 survived,1 uncovered; new CLI helper53/53 killed), exit0 with the unchanged94.03% threshold. No fixtures or assertions were duplicated or weakened. Hosted failure log: .artifacts/pass14/ci-hosted-mutation-way2.log; final clean-clone receipts: .artifacts/pass14/risk-ci/{verification.log,verification.exit,mutation.json}. This local reproduction does not claim the subsequent hosted run is green.

Hosted run 43393457058 failed the DQ mutation initial test run with an uncaught TaskCanceledException in the process cancellation test. Its ten-second readiness wait was outside cleanup; the available hosted artifact contains no additional stack or runner-load evidence. The test now separates a 30-second startup deadline from the unchanged four-second cancellation deadline, atomically publishes the child PID, and always cancels/observes the exporter with a ten-second cleanup bound and nested child cleanup. Production code is unchanged. Strict build passed with zero warnings/errors; a controlled eleven-second startup delay passed, a forced readiness timeout failed with an explicit readiness diagnostic and stopped both processes (parent absent, child a nonexecuting zombie), and the parent-only-kill negative control still failed at the child assertion. After restoring the isolated controls, all five process tests passed and both source hashes matched the worktree. Receipts: .artifacts/pass11/core-final-linux/pass14-readiness-{build-final,delayed,timeout,negative-kill,restored}.log, pass14-readiness-timeout-cleanup.json, and pass14-readiness-restored-sha256.txt. These local checks do not claim the subsequent hosted run is green.

Items are committed and pushed separately after their local checks. Fleet sync triggered greatroom and gaming; bedroom refused SSH host-key verification and configured Mac names failed DNS. Peer security checks were not bypassed. The pre-existing task documents remain untouched. Hosted Actions for the final pushed revision must finish before CI can be claimed green; local receipts above are not a substitute. Metabase visual proof remains blocked independently of CI. No release/merge or public deployment claim is made.

Pass 13 (spike)

Verified on 2026-11-13 UTC in isolated worktree fhir-pipeline-demo-wt-WT-dc65-spike, branch wt/WT-dc65/medgemma-spike, starting at f376872. The demo branch and demo-safe tags are outside this spike. Synthetic fixtures only. MEDGEMMA-SPIKE.md records model provenance, real performance, guard outcomes and unfinished work.

Build and NUnit

The final current-source snapshot was built and tested together with Linux SDK 10.0.404. Container fhir-pass13-full-final exited 0:

dotnet build --no-incremental --artifacts-path /final/.artifacts/build -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:10.80

dotnet test --no-build --artifacts-path /final/.artifacts/build --logger trx --results-directory /src/.artifacts/spike/full-final/results
FhirDemo.Tests: 270 passed
FhirDemo.AppHost.Tests: 4 passed
FhirDemo.Lakehouse.Contracts.Tests: 65 passed
FhirDemo.Contracts.Tests: 22 passed
EFCore.DuckDB.Tests: 289 passed, 1 optional QUACK skip
FhirDemo.LocalModels.Tests: 271 passed

This single final full-solution invocation passed 921 tests, with 0 failures and 1 optional QUACK skip. All six individual TRX files passed the independent NUnit guard. The spike suite's 271 cases include 52 final real-output replay cases and two corpus assertions; replay does not make new model calls.

NUnit TRX PASS: _300be9a6f32a_2026-11-13_06_42_13_net10.0[1].trx: 271 passed >= 1; all results use NUnit.

Earlier verification history is retained: full2 passed 854 tests with one optional skip, including an interim 204-case spike suite. Later targeted checks passed the expanded 271-case spike suite. Those separate receipts covered the same 921 final cases before the single final invocation above; intermediate versions must not be added together. The first full2 TRX-guard invocation incorrectly supplied a directory where the guard requires an individual TRX file. It failed with UnauthorizedAccessException; the corrected invocation checked each of its six files and passed. The final full-solution script used individual TRX files correctly. Windows Application Control was not disabled; Linux verification avoids loading newly generated Windows assemblies.

Primary raw evidence: .artifacts/spike/full-final/{sdk.txt,build.log,tests.log,results/*.trx,guard.log} and .artifacts/spike/full-check-final.sh. Earlier evidence remains in .artifacts/spike/full2/ and .artifacts/pass13/gateway-mutation/{build8.log,test8.log,nunit-guard8.log,results8/*.trx,full2-nunit-guard.log,full2-test-receipt.json,final-nunit-receipt.json}. The latest replay checks used the final pass13-reviewed artifacts.

Mutation

Stryker 5.1.0 used stryker-spike.json, six workers, break threshold 60. It mutated FactGuard, ContextAssertionTagger and ExportGateway, then the repository's independent QualityGate checked the JSON report. Exact embedded report sources matched the current three production files.

cd src/FhirDemo.LocalModels
dotnet stryker -f ../../stryker-spike.json --output /output/mutation5 --skip-version-check
The final mutation score is 84.21 %
[exit 0]

Mutation: total=485, killed=365, survived=67, timeout=3, no-coverage=2, excluded=48, score=84.21%, break=60.00%; PASS.
[QualityGate exit 0]

There were 648 generated mutants: 437 assessed, 20 compilation errors, 28 block-filter exclusions and 163 outside the configured mutation scope. The 48 compilation/block exclusions are disclosed and not counted as kills. Stryker's score counts three timeouts as detected; the stricter kill-only score is 365/437 = 83.52%.

File Killed / assessed Kill-only score
ContextAssertionTagger 112/139 80.58%
ExportGateway 115/128 89.84%
FactGuard 138/170 81.18%

Every file independently exceeds 60% without counting timeouts as kills. The later recorded-fixture tests do not change the production sources covered by this run. Evidence: .artifacts/pass13/gateway-mutation/{stryker5.log,mutation5/reports/mutation-report.json,quality-guard5.log,mutation5-receipt.json}.

Real models and release-1 view

The first admitted live run completed 52 calls across 13 packets, exit 0. Review hardening then added transport/target binding, durable token consumption, complete DER/canonical-key checks, MedGemma selector identity and a gateway-only BAA transport path. A second admitted run using the hardened binary completed another 52 calls, exit 0, with run ID pass13-reviewed, from 06:18 to 06:31 UTC. All final snapshot artifacts carry that run ID; all 52 raw outputs matched the initial outputs byte-for-byte. Replay tests are separate from both live runs.

Twelve distinct synthetic patients plus an injection twin were sent to MedGemma quote/paraphrase and both local simulated BAA models. GPT-OSS clean-note output passed 6/6 exact quotes; the injected-note output refused. Full final-run numbers, caveats and per-packet rejections are in MEDGEMMA-SPIKE.md. Raw model outputs, per-line guard verdicts and hashes are recorded under web/public/snapshot/examples/; final-run.log contains metadata only. Final assembly hashes and final source provenance identify the actual hardened binary. The earlier run retains its separate logs and provenance.

Frontend Vitest: 28 passed in six files. npm run build:snapshot passed. Latest full Chromium acceptance on the final reviewed artifacts: 17 passed (36.2 seconds), including real recorded quote cards and every citation at 390 and 1280 pixels, changed-source-hash rejection, patient-label tampering, delayed stale-scenario rejection, paraphrase-artifact rejection, inert synthetic markup and no browser model/export calls. Both viewport tests also assert no horizontal overflow. The first browser run had 14 passes and one desktop navigation-locator failure; correcting the locator and awaiting source-dialog closure produced an interim 15-test passing run. A later independent review found that changing only a synthetic patient label in the source manifest could relabel an unchanged quote. Exact manifest-byte SHA-256 binding and two added regressions produced a 17-test pass; the final-data rerun also passed all 17. Evidence: .artifacts/spike/{web-tests.log,web-e2e.log,web-e2e2.log,web-e2e3.log,web-e2e4.log}. Screenshots were refreshed with the current UI and final reviewed data and visually inspected: 390 pixels, 1280 pixels, 390-pixel viewport.

Review and remaining gates

Local, streaming-PC and gaming-PC reviews, plus adversarial self-review, identified and closed concrete transport, token-store and signing-key issues. The complete council gate is NOT DONE: Clahadore's CLI chair was denied by the installed usage governor (native state unavailable), and Jenny's CLI required authentication and timed out. The stable governor binary predates the current nullable-meter schema; no governor policy, state, admission bypass or Application Control setting was changed to force a review. These checks are not represented as a complete council approval.

Pass-12 packets were absent on the starting branch, so the new 12-patient spike corpus does not establish pass-12 scenario coverage. Production scanner recall/precision across all 18 identifier classes, real identity/authorization services, network isolation, a real BAA, clinician evaluation, real-vendor configuration-only replacement, optional FreeToken loading and MedGemma 27B are NOT DONE / NOT RUN as detailed in the spike report. No clinical release, deployment or hosted-CI success is claimed. Checkpoint commits and pushes follow Andrew's explicit instruction to commit partial results with NOT DONE notes. The incomplete council gate is disclosed in CODE-REVIEW.md; this is not merge or clinical-release approval.

Checkpoint pushes use fleet-repo-sync/sync-push.ps1. Origin pushes succeeded and scheduled pull triggers were accepted on greatroom and gaming. Bedroom's SSH host-key verification and the configured Mac hostnames' DNS resolution failed. Trigger acceptance is not a claim that every peer pulled successfully. No host-key bypass, peer overwrite or governor bypass was used.

Pass 16 — interview smoke fixes (2026-11-13)

Work stayed on wt/WT-dc65/smoke-fixes in the dedicated smoke-fix worktree. The parent wt/WT-dc65/fhir-demo branch was not changed. Each checked fix was committed and pushed without waiting for a review chair, as explicitly requested. No applied EF migration was edited.

Completed fixes:

  • The snapshot build generates web/public/openapi/v1.json from the actual Microsoft.AspNetCore.OpenApi endpoint, using a disposable database. /api-reference groups all nine paths by tag and displays method, path, summary, request/response schemas and named response fields. The footer provides the viewer and raw JSON. Snapshot previews no longer inherit live API proxies. Pages has explicit viewer rewrites plus a top-level 404, so missing JSON cannot fall through to the SPA index. CI now installs the .NET SDK for export.
  • Re-selecting Overview preserves its metrics and twelve patient tiles. Chart initially opens the first cohort patient, writes ?patient=, restores valid selections on reload, and safely falls back for an unknown ID.
  • The three demo documents open in a responsive Markdown reader, with raw HTML disabled and DOMPurify sanitation. Code wraps, tables scroll inside their own container, and default-empty VITE_SOURCE_BROWSER_BASE suppresses GitHub document links.
  • Way 2 summary/detail/source text remains inert and wraps inside a 390px card.

Regression evidence: Overview failed before and passed after; first Chart failed before and passed after (including URL/reload checks); all three Markdown documents and the hostile Markdown fixture failed before and passed after; OpenAPI failed before on the static server and passed after with live/static path-set equality; the Way 2 stress fixture went from 642px page width to 390px. The strengthened NUnit response-schema test also failed before typed metadata and passed afterward.

Final check Result
Full solution dotnet test FhirDemo.slnx, standard Linux SDK container 812 passed, 0 failed, 1 skipped; 813 total; exit 0
Web npm test (Vitest) 32 passed, 0 failed; 7 files
Full demo Playwright suite against fresh snapshot 18 passed, 0 failed
Full Way 2 viewer Playwright suite 7 passed, 0 failed
Development API-reference routing Playwright 1 passed, 0 failed; 404 before fix
Snapshot build, generated OpenAPI, live/static comparison PASS; 9 paths
Isolated committed Forge snapshot npm ci / npm run build PASS
Full independent smoke suite 226 passed, 38 failed tests; 1,069 PASS / 127 FAIL checkpoints; all 264 tests executed

The existing optional .NET skip is LocalQuackAttachmentExecutesQuery: QUACK_TEST_URI is not configured. Windows execution was attempted first and is not reported as passing: 744 passed, 67 failed, 1 skipped before the additional OpenAPI test, with Windows Application Control 0x800711C7 failures. The final complete solution was then verified in mcr.microsoft.com/dotnet/sdk:10.0, image sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb, using a read-only source mount and an isolated build copy. No security policy was changed. The web export script supports that normal Linux SDK environment when Windows blocks rebuilt assemblies.

The smoke suite preserves all 264 original tests. Its documented changes follow the new viewer routes and enforce local evidence/hash/Markdown requirements rather than accepting the former raw/private links. Demo and Way 2 ran on 4180 and 4010. Forge used a freshly built archive of commit 323b9b3aa345d13cda3d29a2c6f6a62debf7b1e0 on 4191: automatic approval review rejected stopping/replacing the existing 4181 preview with the stated reason blocked by policy. A separate loopback preview avoided interfering with it. No hosted deployment or hosted CI completion is claimed.

NOT DONE — active Forge ownership: PID 55352 owns the actual Forge worktree fhir-pipeline-demo-wt-WT-dc65-forge. In compliance with task 16, no Forge product files were edited. Its private pinned-original links, responsive local evidence rendering and optional source-browser links are handed off in FORGE-FIXES-PENDING.md. The Forge owner independently cleared the migration absence label at 83cf07c: its manifest now pins the available guide at 37aea0b and links the captured file. This was checked read-only after the full smoke run had started against the frozen older Forge archive; it is not part of the test result for that archive. Deterministic Forge failures are retained as failures, never labeled host contention.

Receipts: .artifacts/pass16/{snapshot-final-build,web-e2e,viewer-e2e-final,smoke-full}.log, .artifacts/pass16/dotnet/final/ (six TRX files and final full-suite log), .artifacts/pass16/forge-provenance.json, generated smoke/SMOKE-REPORT.md, smoke/playwright-results.json, individual checkpoint receipts/screenshots, and .artifacts/pass16/web-screenshots/. A first Way 2 suite invocation used the wrong package-local Playwright runner and failed during test discovery; the corrected viewer-local runner executed all seven tests and passed. Temporary navigation outputs were preserved under .artifacts/pass16 rather than deleted after a cleanup rejection.

Pushes used fleet-repo-sync/sync-push.ps1. Origin pushes succeeded and greatroom/gaming pull tasks were triggered. Bedroom SSH host-key verification and configured Mac DNS resolution failed; no peer verification was bypassed. Session-identity CLI execution was blocked by Application Control, and no WT-dc65 board URL was found or invented. The pre-existing untracked docs/CODEX-TASK-16.md is excluded from these commits.

Full smoke breakdown: Demo 48/48 tests and 412/412 checkpoints passed; Way 2 2/2 tests and 6/6 checkpoints passed; Forge 176 passed / 38 failed tests and 651 passed / 127 failed checkpoints. The 127 failures comprise 44 source-link policy checks, 43 source destinations and 40 inline Markdown disclosures. They include 22 private HTTP 404 responses and eleven 980px mobile raw documents (overlapping error details, not additional checkpoint counts). No host-contention or infrastructure failure was found; missing-heading assertion timeouts are deterministic rendering failures and were not relabeled or rerun as contention. The result is not an all-green interview smoke sign-off. See smoke-pass16-summary.json for durable counts and provenance.

The additional development-route regression reproduced /api-reference being swallowed by Vite's /api prefix (HTTP 404). Path-boundary proxy matching fixes it while preserving API/CDS query routes; its Playwright test passes. After that final code commit e217efc, the snapshot was rebuilt again: all 136 demo/Forge static files were SHA-256 identical to the files captured during the authoritative full run (.artifacts/pass16/asset-audit.json). Final Vitest rerun remains 32/32. The static smoke result therefore applies to the final emitted bundle; the separately tested change affects development proxy routing only.

Pass 17

Security hardening on wt/WT-dc65/security-hardening, in the dedicated WT-dc65 security worktree. The launcher's unfinished MedGemma merge was completed by retaining both existing verification histories. Only the permitted migration/local-model/tool/test paths and the three requested documentation files were edited after that merge. The two source branches were not modified.

Full solution and tool

Verification used an isolated Linux .NET 10 SDK container with the current worktree mounted read-only. Windows Application Control was not changed. Final code at 3b3003d:

dotnet test FhirDemo.slnx -warnaserror -p:RestoreLockedMode=true --logger trx --results-directory /receipts/final-results
FhirDemo.AppHost.Tests:                  4 passed
FhirDemo.Contracts.Tests:               24 passed
EFCore.DuckDB.Tests:                   289 passed, 1 skipped
FhirDemo.Lakehouse.Contracts.Tests:     65 passed
FhirDemo.Migration.Tests:              192 passed
FhirDemo.LocalModels.Tests:            312 passed
FhirDemo.Tests:                        275 passed
Total: 1,161 passed, 0 failed, 1 skipped. Exit 0.

dotnet build tools/LocalModelSpike -warnaserror -p:RestoreLockedMode=true
Build succeeded: 0 warnings, 0 errors. Exit 0.

The sole skip is the optional external QUACK service test. Counts are from one final solution invocation, not a sum of overlapping targeted runs. All seven TRX files also passed the independent NUnit/nonzero-count guard (trx-guard.log, exit 0). Raw evidence: .artifacts/pass17/final-tests.log, final-results/*.trx, final-tests.exit, final-tool.log, final-tool.exit.

Regression evidence

Every Part-A finding has an observed failing-before test and assertions excluding its previous behavior. Existing NUnit/Moq/AutoFixture/Bogus conventions were retained. The security sections in MIGRATION.md and MEDGEMMA-SPIKE.md map each finding to its fix and named regression.

Finding Observed baseline failures Final negative control
A1: missing apply 4 No HTTP calls, no database file, zero created/updated; dry-run report exists.
A2: URI/reference input 2; five malformed-path cases already rejected Unsafe types/IDs and unmapped references cannot reach HTTP or create schema.
A3: Oystehr destination/project 5 Wrong host/project rejected; 307 is not followed.
A4: response persistence/size 3 No raw-response artifact or canary text; streaming limit stops oversized bodies.
A5: report identifiers/evidence 4 Numeric/GUID identifiers absent; mismatched original versions/date preserved with FAIL.
A6: unfinished-run uniqueness 3 Second unfinished run cannot persist; duplicate intent cannot replace the original. New migration upgrades the old schema.
A6 follow-up: old-schema resume 2 Valid resume keeps the original run; mismatched binding causes no upgrade/data write.
Local sink redirect ownership 1 Public callers cannot inject a redirecting client; 307 produces no outside-origin request.
B critical: caller flags/hash 1 Forged span with true flags and correct self-hash produces zero HTTP calls under real Ollama transport plus Moq handler.
B export disabled 3 Public SendAsync always throws before transport; internal permit validation cannot send.
B concrete transport 1 per constructor Selector/gateway public constructors cannot accept an interface impersonator.
B socket/model pins 6 Other host/port/digest denied; no proxy/redirect; unapproved prompt/text causes zero HTTP calls.
B quote-only returned bytes 4 Rejected text absent from every serialized response field, including nested model and injected guard diagnostics.
B scanner formats 2 Undashed SSN and parenthesized phone rejected.
B attestation lifetime 1 More than 30 minutes rejected before token consumption; exactly 30 minutes remains valid internally.

Receipts are .artifacts/pass17/{a1,a2,a3,a4,a5,a6,a6-resume,localpin,b1,bcritical,b2,b3,bquote,bscanner,b-attestation}-*.log and their TRX directories. Zero-match/compile attempts are retained but are not counted as regression passes. The initial combined migration run found a stale expected migration count (2 instead of 3); updating the explicit migration list produced 191 passing cases, then the extra owned-handler regression produced the final 192. A warnings-as-errors check subsequently identified an allocation-style warning in that expected-list assertion; moving it to a static readonly field resolved it before the final solution run.

Mutation

Stryker 5.1.0 completed at 72.63%, above the unchanged 65% break threshold, exit 0. The independent QualityGate also passed at 65, exit 0. Kill-only score is 603/833 = 72.39%; neither timeout is needed to clear the gate.

cd src/FhirDemo.Migration
dotnet stryker -f ../../stryker-migration.json --concurrency 12 --output /receipts/mutation-parallel --skip-version-check
The final mutation score is 72.63 %
Time elapsed: 00:09:58.4890664. Exit 0.

dotnet run --project tools/QualityGate -- mutation /receipts/mutation-parallel/reports/mutation-report.json 65
Mutation: total=1005, killed=603, survived=169, timeout=2,
          no-coverage=59, excluded=172, score=72.63%, break=65.00%; PASS.

The 172 exclusions are 102 compilation errors and 70 ignored/block-filter mutants; they are not kills. Surviving and uncovered mutants remain disclosed. All five configured production sources match the final worktree after line-ending normalization: mapper, normalized-value helper, crosswalk, manifest service and reconciler. The score applies to that existing configured scope, not to every HTTP/export guard. New sink/report/model boundaries have the explicit regression tests listed above.

The mutation snapshot passed all 191 migration tests then present. The final owned-handler regression later raised the full-solution migration suite to 192; it changes no file in mutation scope. The first mutation attempt stopped during initial validation because the migration-list assertion still expected two migrations. After that assertion was corrected, the ordinary two-worker run progressed but produced no result within the expected turnaround. A separate isolated run used 12 workers on the available 32-CPU/46-GiB Linux engine, with the exact same scope, tests and 65% threshold. Its completed result above is the gate evidence; the redundant two-worker run was stopped afterward, not counted as a pass.

Evidence: .artifacts/pass17/stryker-parallel.log, stryker-parallel.exit, mutation-parallel/reports/mutation-report.json, mutation-parallel/reports/mutation-report.html, mutation-guard.log, mutation-guard.exit, and mutation-source-verification.json. No Stryker configuration or threshold was relaxed.

Remaining limitations and delivery

TLS to Ollama is NOT DONE. The follow-up is a TLS reverse proxy with SPKI pinning; plaintext IP pinning does not authenticate the peer. No live model, live Oystehr, SQL Server deployment, clinical validation or production export was performed in this pass. Recorded website examples remain historical outputs. A 307 rejection proves no redirected send, not that the original server performed no write.

Each tested fix was committed and pushed to the security branch under Andrew's task-specific instruction to proceed without waiting for a council chair. Independent focused reviews found and fixed the old-schema resume, injected-guard text and library redirect issues. This is not represented as a fresh completed fleet council or production release approval.

Pushes use fleet-repo-sync/sync-push.ps1: origin succeeded; greatroom/gaming scheduled pull triggers succeeded. Bedroom host-key verification and configured Mac hostname resolution failed. Trigger acceptance does not prove that every peer completed its pull. No peer state or security policy was bypassed.

Pass 12 — integration checkpoint (2026-11-13)

Merged pass 13 MedGemma spike, pass 16 smoke fixes, and pass 17 security hardening into wt/WT-dc65/fhir-demo. Retained security changes and both sides of additive verification/navigation/API metadata conflicts. Expanded the navigation allowlist to retain Predictive reports, Data quality and Local model spike.

Validation of merged HEAD: isolated dotnet build -warnaserror succeeded with 0 warnings, 0 errors; full Linux dotnet test --no-build --logger trx 1,339 passed, 0 failed, 1 optional QUACK skip across seven nonempty TRX files. Vue npm test: 32 passed. Receipts: .artifacts/pass12/merge-linux-{build,tests,exit}.log (exit receipt is merge-linux-exit.txt), merge-linux-results/*.trx, merge-web-test.log.

Windows default output was locked by an existing API process; isolated Windows build passed. Windows tests then hit Application Control DLL blocks, so the successful test receipt is Linux, not the failed Windows attempt. Local npm installation also met a locked esbuild executable; web validation ran in Linux. No security policy changed. Session identity utility was blocked by Application Control; no board URL is recorded for this worktree.

Clahadore automated review was denied by the usage governor (native state unavailable). Local gpt-oss council reviewed integration conflicts and the navigation repair; its hypothetical auth/config findings were checked against existing authenticated route groups and operator-only configuration. No review blocker established. User explicitly authorized checkpoint commits without waiting for a chair. Executive summary, examples and new quality gates are NOT DONE at this checkpoint.

Pass 12 — deterministic executive summary checkpoint

Release 1 uses one executive-summary builder for both the old pre-visit text and GET /api/patients/{id}/executive-summary. Seven ordered structured sections and up to six verbatim note excerpts share a hard 250-word budget. Overflow and omitted passages are counted. Every clinical line carries version-pinned citations; excerpts also carry offsets, excerpt SHA-256 and source SHA-256. A patient without a source version returns an explicit unavailable result. No version, missing unit, stop date or clinical fact is invented.

The existing RiskEngine and FactGuard are reused. Six clearly SYNTHETIC report packets add 36 DocumentReferences, three DiagnosticReports and two QuestionnaireResponses to six existing patients through the ordinary fixture/sync/SFTP path. The original captured producer fixtures remain unchanged. The BEFORE evidence retains the latest source records, including invalid/future records for inspection; those records cannot supply summary facts. Unknown/restricted notes are withheld, including legacy intake answers, and their raw payloads never appear in the public summary. Questionnaire answers whose question supplies family/negation/history context are withheld from excerpt selection rather than stripping that context.

Actual checks: strict isolated Linux solution build 0 warnings/errors; 131 targeted NUnit integration tests passed, including the real API, packet ingestion, profile scope, SFTP, confidentiality and prior-summary regressions. Executive tests 69 passed. Stryker summary builder/evidence 84.11%, break70, 560 assessed mutants (470 killed,1 timeout,84 survived,5 uncovered); FactGuard 83.53%, break70,170 assessed (139 killed,3 timeout,27 survived,1 uncovered). Automatic compile-error/block-filter exclusions are retained in the JSON reports; no custom mutation exclusions or threshold reduction. Reports: .artifacts/pass12/executive-mutation8/reports/, factguard-mutation/reports/; build/API receipts: summary-linux-build.log, summary-linux-tests.log, summary-results/*.trx.

snapshot-executive --out <directory> runs the same fresh operational store, two idempotent syncs, and real API as the full exporter, skipping unrelated predictive/lakehouse tooling. Second sync: inserted0,updated0,unchanged3232,quarantined0. All12 executive snapshots were captured at 2026-11-12T12:00:00Z. Page counts are disclosed 500-word estimates across readable accessible source text, not an invented six-page count; each mock packet separately contains six authored report pages. Six packet summaries contain155–209 words and1–6 excerpts. Existing snapshot-summary hash was deliberately updated for shared-builder output, with provenance recorded in contract Fixtures/SOURCE.md.

Review: local council outputs were checked against actual types and tests; independent Cedric review found and fixed legacy restricted-intake leakage and missing component BP display units. Clahadore chair remained unavailable through the usage governor; user authorized checkpointing without waiting for a chair. The two Susie shared-clause findings, narrative interfaces, final matrix/docs and final full-suite run remain NOT DONE at this checkpoint. Frontend examples/screenshots are committed separately after browser checks.

Real API output for three synthetic patients

The following fields are projected from the actual committed HTTP snapshots, not authored examples. Full payloads (including source records) are in web/public/snapshot/patients/<id>/executive-summary.json.

Pre-visit: diabetes and blood pressure

{
  "patientId": "010fd829-1ef3-49c9-98c4-df7561709bc7",
  "asOf": "2026-11-12T06:00:00-06:00",
  "wordCount": 175,
  "sourcePageCount": 15,
  "sections": [
    {
      "title": "Active problems",
      "lines": [
        {
          "text": "Hyperlipidemia",
          "citations": [
            "Condition/7f926349-7012-4e7e-b4e0-ca0c5a202b14/_history/3"
          ],
          "sourceKey": "Condition/7f926349-7012-4e7e-b4e0-ca0c5a202b14",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Localized, primary osteoarthritis of the hand",
          "citations": [
            "Condition/f0a0c97f-5483-4a3c-81c1-f45869056b73/_history/3"
          ],
          "sourceKey": "Condition/f0a0c97f-5483-4a3c-81c1-f45869056b73",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Anemia (disorder)",
          "citations": [
            "Condition/023acceb-7fe5-40e8-98f4-6a445c903719/_history/3"
          ],
          "sourceKey": "Condition/023acceb-7fe5-40e8-98f4-6a445c903719",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Prediabetes",
          "citations": [
            "Condition/859060ec-1fc8-41bd-8c1e-13622d604085/_history/3"
          ],
          "sourceKey": "Condition/859060ec-1fc8-41bd-8c1e-13622d604085",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Current meds and changes in last 90 days",
      "lines": [
        {
          "text": "Simvistatin 10 MG: active; authored 2020-09-01",
          "citations": [
            "MedicationRequest/207acf43-9535-4bf8-b995-f9edf0c2fb0e/_history/3"
          ],
          "sourceKey": "MedicationRequest/207acf43-9535-4bf8-b995-f9edf0c2fb0e",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "diphenhydrAMINE Hydrochloride 25 MG Oral Tablet: active; authored 1962-03-17",
          "citations": [
            "MedicationRequest/f40d584a-7dcf-43a6-b4c0-3d4fe7d427ac/_history/3"
          ],
          "sourceKey": "MedicationRequest/f40d584a-7dcf-43a6-b4c0-3d4fe7d427ac",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Allergies",
      "lines": [
        {
          "text": "Not in structured data; patient chart checked.",
          "citations": [
            "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7/_history/5"
          ],
          "sourceKey": "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Abnormal and trending labs",
      "lines": [
        {
          "text": "Blood Pressure: 135.3/75.24 mmHg; 2020-11-17",
          "citations": [
            "Observation/7f7ccb12-d7a7-48e9-aa33-fb0efd145f6f/_history/3"
          ],
          "sourceKey": "Observation/7f7ccb12-d7a7-48e9-aa33-fb0efd145f6f",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 6.33 %; 2020-11-17",
          "citations": [
            "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444/_history/3"
          ],
          "sourceKey": "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 6.01 %; 2019-11-12",
          "citations": [
            "Observation/b69cf610-bdfd-46c5-a4ca-3329e0b357ed/_history/3"
          ],
          "sourceKey": "Observation/b69cf610-bdfd-46c5-a4ca-3329e0b357ed",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 129.62/73.3 mmHg; 2019-11-12",
          "citations": [
            "Observation/ed477fa6-f8c5-403e-8bf4-0c8d799a9808/_history/3"
          ],
          "sourceKey": "Observation/ed477fa6-f8c5-403e-8bf4-0c8d799a9808",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 5.82 %; 2018-11-06",
          "citations": [
            "Observation/35fceb9a-79b3-4233-834b-f4ba901b60ef/_history/3"
          ],
          "sourceKey": "Observation/35fceb9a-79b3-4233-834b-f4ba901b60ef",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 140.67/78.86 mmHg; 2018-11-06",
          "citations": [
            "Observation/fc48105d-0b2d-4ae7-b80e-66e0df3cd5a5/_history/3"
          ],
          "sourceKey": "Observation/fc48105d-0b2d-4ae7-b80e-66e0df3cd5a5",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "+14 more labs, see chart",
          "citations": [
            "Observation/03ca94db-200e-44ee-9fb9-8dfb4158cf58/_history/3",
            "Observation/907c066e-575c-40d0-a229-5192a91f6bcd/_history/3",
            "Observation/0cc7398e-031c-4c62-9141-2f8c69b962b5/_history/3",
            "Observation/b0d127f4-3284-445c-98c1-c9bcd5ddd961/_history/3",
            "Observation/0144c0c9-a773-4db4-9dd8-2cd83c37e1ba/_history/3",
            "Observation/01edb7c3-61ab-4bf4-8478-31e277751cdb/_history/3",
            "Observation/1a2a9ccb-8360-43d7-908b-d1876bccb6c0/_history/3",
            "Observation/c1724de4-028a-444f-989d-66e940422dc0/_history/3",
            "Observation/2cf61d92-8063-4439-bcb7-649d5f9a2c3b/_history/3",
            "Observation/d7a2e644-0a6d-4ec6-aff8-e3214a7c96db/_history/3",
            "Observation/7488189a-b348-4f28-acb9-854b870df301/_history/3",
            "Observation/de92866b-c576-42c0-a93f-4c2f529afc99/_history/3",
            "Observation/9649f92d-cd18-41a4-97b5-cf779bd3fa93/_history/3",
            "Observation/deed80e7-822e-4b57-af44-1ee78db86bab/_history/3"
          ],
          "sourceKey": "Observation/03ca94db-200e-44ee-9fb9-8dfb4158cf58",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Immunization gaps",
      "lines": [
        {
          "text": "Care gap: no flu immunization recorded in last 12 months",
          "citations": [
            "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7/_history/5",
            "Immunization/f74abdd3-d5cd-4219-bf37-b6b6f3083b3e/_history/3",
            "Immunization/5a81e7f9-bb3e-4ac8-b699-deec1f721403/_history/3",
            "Immunization/20e8bf0b-48ab-458b-9685-7130b1f72aa8/_history/3",
            "Immunization/090b3a4d-7ce7-41ae-a942-a202f4db4f60/_history/3",
            "Immunization/bd11b498-825e-4166-ac46-3d6d179cb454/_history/3",
            "Immunization/e0f6034d-29b8-47dc-92f1-5e6aabc761f3/_history/3",
            "Immunization/e921d9d6-de31-4fd3-8329-60c825716008/_history/3",
            "Immunization/6a873eea-25c1-46cb-8f65-1978ae1cbe8b/_history/3",
            "Immunization/9ec9cdd5-468a-46fc-811d-48a923610fd0/_history/3",
            "Immunization/b067c323-758f-4cad-a30d-680357524c04/_history/3"
          ],
          "sourceKey": "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Last 3 encounters",
      "lines": [
        {
          "text": "Encounter for check up (procedure); 2020-11-17; finished",
          "citations": [
            "Encounter/4c4e49e4-31c3-47d3-9325-dee60d1b443a/_history/3"
          ],
          "sourceKey": "Encounter/4c4e49e4-31c3-47d3-9325-dee60d1b443a",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Follow-up encounter; 2020-09-01; finished",
          "citations": [
            "Encounter/fe97eb3a-f0a7-4ef7-b754-102e3ce791f1/_history/3"
          ],
          "sourceKey": "Encounter/fe97eb3a-f0a7-4ef7-b754-102e3ce791f1",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Encounter for check up (procedure); 2019-11-12; finished",
          "citations": [
            "Encounter/26bb54f9-8d45-4d6f-aaaa-e1ade52c00c8/_history/3"
          ],
          "sourceKey": "Encounter/26bb54f9-8d45-4d6f-aaaa-e1ade52c00c8",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "+40 more encounters, see chart",
          "citations": [
            "Encounter/8b07fc5d-1cac-46b1-ac3e-e833def4c721/_history/3",
            "Encounter/5b503831-3112-4b32-bbd6-eb391fec0e22/_history/3",
            "Encounter/4798bff6-cbd6-4e62-8602-d21c749c1e61/_history/3",
            "Encounter/8b02ee9e-7f8e-4c5a-bcb0-b91cf7b461a2/_history/3",
            "Encounter/0cd810a8-bd15-4867-8132-314f53b5c6eb/_history/3",
            "Encounter/0b2b6c91-7fef-4559-a995-1b295727c6eb/_history/3",
            "Encounter/1373f972-9ab1-4080-8456-59e7f33bc312/_history/3",
            "Encounter/5a8bdf2e-4201-4c45-9d0c-888d79ab7068/_history/3",
            "Encounter/2b019efa-6f1a-4c46-8f9b-7fa3b196592b/_history/3",
            "Encounter/1f297900-066c-460d-a40b-0b8574df456e/_history/3",
            "Encounter/630a0930-0d8c-4b36-9fd1-7348457bb057/_history/3",
            "Encounter/8ffb92e6-4b92-451b-9973-deb04e86ca20/_history/3",
            "Encounter/15856d3e-7c28-428e-bc91-cdd6e9e50e73/_history/3",
            "Encounter/4318ccae-2cf2-47ab-b804-8b2e5c6a6f02/_history/3",
            "Encounter/34a464d8-5b3e-46cc-8d77-66dbf4014863/_history/3",
            "Encounter/a40b8515-3acf-41e0-b098-98447edcc50f/_history/3",
            "Encounter/7c175ec0-277d-473f-8ce8-781bb2231ead/_history/3",
            "Encounter/753d18a9-e532-467b-9a7a-af63006ee0e0/_history/3",
            "Encounter/23e70822-e91c-4b2f-8cc0-ee01c532c8c3/_history/3",
            "Encounter/f9edb52e-f6d5-4b93-9ee4-c756d3a58e99/_history/3",
            "Encounter/a4c0cdb3-fd57-4823-b326-ca90710d3aec/_history/3",
            "Encounter/02d4f4df-4529-4af5-9837-9715177c55bf/_history/3",
            "Encounter/93b4b367-4732-4295-bd2d-7e865d2c7a5d/_history/3",
            "Encounter/22a92d75-59a8-4564-83e3-574245502121/_history/3",
            "Encounter/161a79f0-1691-4cef-b78f-75ca93ec60c8/_history/3",
            "Encounter/36af38bd-e8de-46c7-855b-24403eb2cdfe/_history/3",
            "Encounter/c3cb2695-6a9f-4fca-84a8-04f3eca015ca/_history/3",
            "Encounter/11fc32d5-425c-4606-b710-f871a65505a8/_history/3",
            "Encounter/e354485f-1f23-4473-a0a0-81d25caf76e5/_history/3",
            "Encounter/72483daa-45ad-4be5-82cf-bc64a3d45952/_history/3",
            "Encounter/30045f3d-e712-427a-b16f-4ddf860fce9f/_history/3",
            "Encounter/28cfa9fa-d617-4620-b7d5-cadf634112aa/_history/3",
            "Encounter/882b6b40-a04c-40b1-8745-af638d29b86d/_history/3",
            "Encounter/b1e6cafc-680f-4e34-9c6c-15a6c83055fa/_history/3",
            "Encounter/55951308-3793-4f50-af97-d88d28b7c8d0/_history/3",
            "Encounter/5da992e9-e0ff-4ba7-b488-799a181a041b/_history/3",
            "Encounter/9a83cb09-03c6-4604-a4a7-5d9e3d5c8834/_history/3",
            "Encounter/2672aaa9-9e70-474d-84ab-c8decbbc33c5/_history/3",
            "Encounter/d1cea1b2-61b0-47ba-bebb-9271e2083596/_history/3",
            "Encounter/3f29a846-cf26-4ce6-b2f1-520cbc057de4/_history/3"
          ],
          "sourceKey": "Encounter/8b07fc5d-1cac-46b1-ac3e-e833def4c721",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Risk flags",
      "lines": [
        {
          "text": "HbA1c: Prediabetes range",
          "citations": [
            "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444/_history/3",
            "Observation/b69cf610-bdfd-46c5-a4ca-3329e0b357ed/_history/3",
            "Observation/35fceb9a-79b3-4233-834b-f4ba901b60ef/_history/3"
          ],
          "sourceKey": "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "HbA1c rising across last 3 results",
          "citations": [
            "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444/_history/3",
            "Observation/b69cf610-bdfd-46c5-a4ca-3329e0b357ed/_history/3",
            "Observation/35fceb9a-79b3-4233-834b-f4ba901b60ef/_history/3"
          ],
          "sourceKey": "Observation/b5a707bd-124a-4ba2-9449-b5c7b48c0444",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood pressure rule not triggered",
          "citations": [
            "Observation/7f7ccb12-d7a7-48e9-aa33-fb0efd145f6f/_history/3",
            "Observation/ed477fa6-f8c5-403e-8bf4-0c8d799a9808/_history/3",
            "Observation/fc48105d-0b2d-4ae7-b80e-66e0df3cd5a5/_history/3"
          ],
          "sourceKey": "Observation/7f7ccb12-d7a7-48e9-aa33-fb0efd145f6f",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "10-year ASCVD: insufficient data",
          "citations": [
            "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7/_history/5",
            "Observation/8965f89b-16ce-4b7e-9172-18031ecb605a/_history/3",
            "Condition/6e20534b-6427-4a2e-9bd0-7acd5c2f4a70/_history/3",
            "Condition/d4416920-a12f-479e-bbe2-07e957f29803/_history/3",
            "Condition/03622153-37d2-4d07-a3c3-bbbd03a4d721/_history/3",
            "Condition/8ba716c4-bd74-429e-addb-6ddbad42fa9f/_history/3",
            "Condition/8b16f970-9c79-4ab7-a9b9-74e3cdd4b068/_history/3",
            "Condition/7f926349-7012-4e7e-b4e0-ca0c5a202b14/_history/3",
            "Condition/f0a0c97f-5483-4a3c-81c1-f45869056b73/_history/3",
            "Condition/023acceb-7fe5-40e8-98f4-6a445c903719/_history/3",
            "Condition/859060ec-1fc8-41bd-8c1e-13622d604085/_history/3",
            "MedicationRequest/207acf43-9535-4bf8-b995-f9edf0c2fb0e/_history/3",
            "MedicationRequest/8f2bb5ce-20df-45bc-b33e-470b40db19c3/_history/3",
            "MedicationRequest/08f4da0e-9108-4d44-bf73-c8bee7d2a34a/_history/3",
            "MedicationRequest/72f4089a-9c4a-4ec7-8517-10368497be63/_history/3",
            "MedicationRequest/e3e0470d-e68c-4419-8f75-240c95913675/_history/3",
            "MedicationRequest/e5a90710-2a06-4df3-b552-f92cfa3085d1/_history/3",
            "MedicationRequest/f6dc2fe0-8018-4cc3-b010-55c6b93fc41f/_history/3",
            "MedicationRequest/b291588c-624f-4622-a45a-fd1a476d8c1e/_history/3",
            "MedicationRequest/c51af97e-1f03-46c1-91fe-25100675e300/_history/3",
            "MedicationRequest/c31f10f4-4b1c-45f8-a0be-ed542ca447eb/_history/3",
            "MedicationRequest/c8540899-b6a2-41ac-be1a-eac34976e4f2/_history/3",
            "MedicationRequest/d3ddf24e-1aa2-4982-af73-acff2a864014/_history/3",
            "MedicationRequest/4f4a2721-ec58-4122-ab09-678736c64eec/_history/3",
            "MedicationRequest/e21a9b57-3eef-484c-bd0b-7b5654d9028c/_history/3",
            "MedicationRequest/bb272d9b-2d34-41de-b730-19205350cd12/_history/3",
            "MedicationRequest/1e2242bf-00bf-4901-b0fc-8817b82abf53/_history/3",
            "MedicationRequest/74821e08-cb31-4c28-8154-4c830a0e615c/_history/3",
            "MedicationRequest/130872b5-a8cd-4bf2-8ac7-fed60b06a12b/_history/3",
            "MedicationRequest/25db1212-8cbc-468d-af52-d72c775b91ee/_history/3",
            "MedicationRequest/17c8f856-48fd-44dd-8fbe-423124428fcb/_history/3",
            "MedicationRequest/796bfc51-40a1-4a8f-b939-133a878fe64b/_history/3",
            "MedicationRequest/8da24bba-04d5-4d19-8fcd-0a7a4301375e/_history/3",
            "MedicationRequest/caa2b002-bf3f-4b7b-a4f7-df137b709d87/_history/3",
            "MedicationRequest/bc228a9a-c04d-4572-80cc-0ecb39582924/_history/3",
            "MedicationRequest/545cfda0-9b06-4679-b5a6-0f3ed013cddc/_history/3",
            "MedicationRequest/f40d584a-7dcf-43a6-b4c0-3d4fe7d427ac/_history/3",
            "Observation/9cfe9f22-ea88-4e99-8611-246e60dc2d31/_history/3",
            "Observation/1f0a3e64-df44-4de6-b45e-841465c9ad6d/_history/3",
            "Observation/7f7ccb12-d7a7-48e9-aa33-fb0efd145f6f/_history/3"
          ],
          "sourceKey": "Patient/010fd829-1ef3-49c9-98c4-df7561709bc7",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    }
  ],
  "notes": [
    {
      "text": "The patient denies dizziness in this interview.",
      "citations": [
        "DocumentReference/synthetic-chronic-care-4/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-chronic-care-4",
      "startOffset": 688,
      "endOffset": 735,
      "sha256": "910105741584ce9484a229c3149a65bbf4936712eb97302b47aec0ba212c9bfb",
      "sourceSha256": "6e8c5120f807c06ede18580e1fca67e49d79df61b5ac7fd8538bd6ed93e3652e"
    },
    {
      "text": "The visit concerns diabetes prevention and ongoing chronic care.",
      "citations": [
        "DocumentReference/synthetic-chronic-care-1/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-chronic-care-1",
      "startOffset": 374,
      "endOffset": 438,
      "sha256": "f729a0a4f37d3b8eb648f563e17e6147e5bed04f6e504761bd8b340554843824",
      "sourceSha256": "000e78e13a4b55fb8e0fa5e7db19cd67062e725131eabafe96bf8195516cdb18"
    }
  ],
  "ledger": "6 notes reviewed, 2 excerpts shown, 104 passages not shown"
}

Post-discharge follow-up

{
  "patientId": "0488ce70-f68d-45fb-b6a5-29684d0e4f35",
  "asOf": "2026-11-12T06:00:00-06:00",
  "wordCount": 209,
  "sourcePageCount": 11,
  "sections": [
    {
      "title": "Active problems",
      "lines": [
        {
          "text": "Osteoarthritis of knee",
          "citations": [
            "Condition/c2da1e81-12c6-4083-97c1-1761298ac982/_history/3"
          ],
          "sourceKey": "Condition/c2da1e81-12c6-4083-97c1-1761298ac982",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hyperlipidemia",
          "citations": [
            "Condition/48f2f0f7-ca2f-41de-80f5-a3765e56bebe/_history/3"
          ],
          "sourceKey": "Condition/48f2f0f7-ca2f-41de-80f5-a3765e56bebe",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Body mass index 30+ - obesity (finding)",
          "citations": [
            "Condition/18bc1d28-b980-4ce5-89b7-cc2cc904f310/_history/3"
          ],
          "sourceKey": "Condition/18bc1d28-b980-4ce5-89b7-cc2cc904f310",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Current meds and changes in last 90 days",
      "lines": [
        {
          "text": "Simvistatin 10 MG: active; authored 2020-06-09",
          "citations": [
            "MedicationRequest/ce1d218d-df2a-443a-bc1a-41cc819aa477/_history/3"
          ],
          "sourceKey": "MedicationRequest/ce1d218d-df2a-443a-bc1a-41cc819aa477",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Naproxen sodium 220 MG Oral Tablet: active; authored 2010-07-30",
          "citations": [
            "MedicationRequest/1c8518e2-d55a-407b-b41f-73907d27957b/_history/3"
          ],
          "sourceKey": "MedicationRequest/1c8518e2-d55a-407b-b41f-73907d27957b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Allergies",
      "lines": [
        {
          "text": "Not in structured data; patient chart checked.",
          "citations": [
            "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35/_history/55"
          ],
          "sourceKey": "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Abnormal and trending labs",
      "lines": [
        {
          "text": "Blood Pressure: 108.43/84.06 mmHg; 2020-08-21",
          "citations": [
            "Observation/e06e5998-17d3-4ad7-9b0a-4af8d387e64b/_history/3"
          ],
          "sourceKey": "Observation/e06e5998-17d3-4ad7-9b0a-4af8d387e64b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 111.26/79.11 mmHg; 2019-08-16",
          "citations": [
            "Observation/8a14291c-5778-409c-8091-e630b901087b/_history/3"
          ],
          "sourceKey": "Observation/8a14291c-5778-409c-8091-e630b901087b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 132.75/83.6 mmHg; 2018-08-10",
          "citations": [
            "Observation/5b58b3d8-1261-4951-b256-27bc630668e9/_history/3"
          ],
          "sourceKey": "Observation/5b58b3d8-1261-4951-b256-27bc630668e9",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 119.83/76.31 mmHg; 2017-06-09",
          "citations": [
            "Observation/ffa70d2e-16fc-455e-9442-da46110631f3/_history/3"
          ],
          "sourceKey": "Observation/ffa70d2e-16fc-455e-9442-da46110631f3",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 130.87/73 mmHg; 2015-06-05",
          "citations": [
            "Observation/10967b48-c7be-4184-a484-b0dbf9525357/_history/3"
          ],
          "sourceKey": "Observation/10967b48-c7be-4184-a484-b0dbf9525357",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 129.12/78.07 mmHg; 2013-05-31",
          "citations": [
            "Observation/4153dba1-f63a-4350-8ac5-39fb910125e1/_history/3"
          ],
          "sourceKey": "Observation/4153dba1-f63a-4350-8ac5-39fb910125e1",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 131.1/79.57 mmHg; 2011-05-27",
          "citations": [
            "Observation/0381b738-8602-471c-9285-a316fdcc95f7/_history/3"
          ],
          "sourceKey": "Observation/0381b738-8602-471c-9285-a316fdcc95f7",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Immunization gaps",
      "lines": [
        {
          "text": "Care gap: no flu immunization recorded in last 12 months",
          "citations": [
            "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35/_history/55",
            "Immunization/1021026b-b535-4bb3-b2ff-44e2bb449210/_history/3",
            "Immunization/1a556b11-4d13-49b0-9849-d55e0c28d157/_history/3",
            "Immunization/2ee9e75f-b804-4ce7-96dd-eb2225bd1123/_history/3",
            "Immunization/bc4ae6a9-d200-4811-92fb-91171f0bd085/_history/3",
            "Immunization/934ad82d-7877-4897-9e09-d0bf4c06d557/_history/3",
            "Immunization/d97e1744-99a1-4c8d-a5f2-7bd226f4318a/_history/3",
            "Immunization/1faff6d4-92d0-4d42-8411-2ded8fc05466/_history/3"
          ],
          "sourceKey": "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Last 3 encounters",
      "lines": [
        {
          "text": "Encounter for symptom; 2020-10-16; finished",
          "citations": [
            "Encounter/0c96dc2d-ef70-4429-bf14-ef8ef21de86b/_history/3"
          ],
          "sourceKey": "Encounter/0c96dc2d-ef70-4429-bf14-ef8ef21de86b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Encounter for check up (procedure); 2020-08-21; finished",
          "citations": [
            "Encounter/8b138f4d-0d3a-43bf-82c0-4a99dcb9fc96/_history/3"
          ],
          "sourceKey": "Encounter/8b138f4d-0d3a-43bf-82c0-4a99dcb9fc96",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Follow-up encounter; 2020-06-09; finished",
          "citations": [
            "Encounter/ff1f963a-7c89-4df4-a9fb-545cfcd46ca8/_history/3"
          ],
          "sourceKey": "Encounter/ff1f963a-7c89-4df4-a9fb-545cfcd46ca8",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "+26 more encounters, see chart",
          "citations": [
            "Encounter/0b2b04b2-5003-4b49-b73b-e9c6469efe45/_history/3",
            "Encounter/37ea7a8f-f6f5-4977-a1a4-431ce24375b3/_history/3",
            "Encounter/9ab30033-3920-4e79-aad2-b6e4497b4a23/_history/3",
            "Encounter/da66efa8-0864-44b5-85f0-b8e6fdecd801/_history/3",
            "Encounter/ffe3d5d7-c12f-4d99-bb46-4e43ab6bac43/_history/3",
            "Encounter/591b34b3-7f70-4ecd-a4bf-0b6f5fae404b/_history/3",
            "Encounter/a41e9edf-e0f4-438d-815f-30da97c775a0/_history/3",
            "Encounter/ea43769c-53d2-4277-99e6-56a543562dde/_history/3",
            "Encounter/e4ac612b-4bbe-4a1b-b207-92694202f959/_history/3",
            "Encounter/4bffdbce-09ba-456f-96bd-f615503ffcae/_history/3",
            "Encounter/4c1b3112-4f1b-4bc4-a999-ddb332ae17ab/_history/3",
            "Encounter/f378404a-2598-4dbf-bd69-bfc40cfb7b1a/_history/3",
            "Encounter/234dc00c-77a7-40ba-9293-60209e3e2c56/_history/3",
            "Encounter/6dbeef35-f0b9-434f-a637-2b82f5f8932c/_history/3",
            "Encounter/606a422c-05ca-4a0b-ac14-ac17105e907c/_history/3",
            "Encounter/2f910ccb-ef8b-40c5-900a-ec188cc51cd6/_history/3",
            "Encounter/6094eb0f-47c8-44ae-bdd2-b97cfdde8aba/_history/3",
            "Encounter/c0561b50-6e1d-4927-afb8-13c168228068/_history/3",
            "Encounter/54ecab01-a608-4f3c-bb2f-fd29c662cdc5/_history/3",
            "Encounter/4646a705-984d-400e-b759-25551cf0d665/_history/3",
            "Encounter/98f34c00-d1b9-44fd-b2b1-32a26f5f1e88/_history/3",
            "Encounter/b1c091b0-75c2-4d44-8c47-d2c28815213e/_history/3",
            "Encounter/44c61f70-46be-4307-a9de-eb784ecac151/_history/3",
            "Encounter/f69aa126-1b6c-49b2-b563-2d23f76c23f7/_history/3",
            "Encounter/55e53392-b81b-47b7-a7d7-4882becdea17/_history/3",
            "Encounter/871878da-7193-4f77-b7c2-d6726df2fc71/_history/3"
          ],
          "sourceKey": "Encounter/0b2b04b2-5003-4b49-b73b-e9c6469efe45",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Risk flags",
      "lines": [
        {
          "text": "HbA1c: insufficient data",
          "citations": [
            "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35/_history/55"
          ],
          "sourceKey": "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood pressure rule not triggered",
          "citations": [
            "Observation/e06e5998-17d3-4ad7-9b0a-4af8d387e64b/_history/3",
            "Observation/8a14291c-5778-409c-8091-e630b901087b/_history/3",
            "Observation/5b58b3d8-1261-4951-b256-27bc630668e9/_history/3"
          ],
          "sourceKey": "Observation/e06e5998-17d3-4ad7-9b0a-4af8d387e64b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "10-year ASCVD: insufficient data",
          "citations": [
            "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35/_history/55",
            "Observation/5e17e5ce-39e9-4f5e-be85-6429c49aac86/_history/3",
            "Condition/161eb832-97ea-4555-9746-1734c2c10fa2/_history/3",
            "Condition/04fe3ce4-3c5e-4eb8-a9f1-06b54bfc65b2/_history/3",
            "Condition/9c7dcbb8-0aef-4951-a0cc-f1c2c01ea0f0/_history/3",
            "Condition/0ae0dda9-1e06-429c-afd7-16bd890d3f88/_history/3",
            "Condition/c2da1e81-12c6-4083-97c1-1761298ac982/_history/3",
            "Condition/48f2f0f7-ca2f-41de-80f5-a3765e56bebe/_history/3",
            "Condition/18bc1d28-b980-4ce5-89b7-cc2cc904f310/_history/3",
            "MedicationRequest/ce1d218d-df2a-443a-bc1a-41cc819aa477/_history/3",
            "MedicationRequest/9333e913-46bb-4fae-8f45-971e925a3414/_history/3",
            "MedicationRequest/6171020d-2a17-4dfa-b211-587ba28badda/_history/3",
            "MedicationRequest/b5a5bf9c-3a98-47b1-8d72-bfd87efc73d0/_history/3",
            "MedicationRequest/edbc2554-4461-4233-b525-16c102819ee3/_history/3",
            "MedicationRequest/d9c08922-371d-4fcd-a37a-4bffded54622/_history/3",
            "MedicationRequest/58c19c63-14e5-4d3e-8774-62e5d85a9499/_history/3",
            "MedicationRequest/d5e4c50a-f822-4eb8-aa4e-43bc06fe667d/_history/3",
            "MedicationRequest/aff2c759-8c4a-4add-9ec3-6abdbb93461c/_history/3",
            "MedicationRequest/a14715e0-e542-48c0-8fca-5ce3c53f5a68/_history/3",
            "MedicationRequest/b047a8fe-c1e5-4549-bd1a-7fe6f69b6d9f/_history/3",
            "MedicationRequest/1c8518e2-d55a-407b-b41f-73907d27957b/_history/3",
            "MedicationRequest/0c0ddb6a-1da0-4f6c-ace9-649c14987d8f/_history/3",
            "MedicationRequest/4e80a068-1006-4eb8-ab9e-1ac10241a77f/_history/3",
            "Observation/d13bf59b-2dd3-4094-934b-e7ae7663a6fb/_history/3",
            "Observation/d82f1d63-fe81-4d24-96ce-441aad184351/_history/3",
            "Observation/e06e5998-17d3-4ad7-9b0a-4af8d387e64b/_history/3"
          ],
          "sourceKey": "Patient/0488ce70-f68d-45fb-b6a5-29684d0e4f35",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    }
  ],
  "notes": [
    {
      "text": "The record contains no confirmed new pulmonary embolism diagnosis in this packet.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-6/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-6",
      "startOffset": 379,
      "endOffset": 460,
      "sha256": "da001e6451b8e83f70004fae99c4935c85aa8e76a1a4a67e8bc7450c25e52295",
      "sourceSha256": "72413d85bf97d3a6f935b8e1a8327105a7de5d16af8d2cdfc02abb68fc35efc7"
    },
    {
      "text": "The patient denies recurrent breathlessness during this call.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-5/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-5",
      "startOffset": 510,
      "endOffset": 571,
      "sha256": "65094654068531887b4c64f72023d559850126a8bea290097a270178518a13f1",
      "sourceSha256": "f2aa82f9085003dd77ac8ed6745e4f85c30d852ac195e48a0c6cf71d4e7d4b13"
    },
    {
      "text": "HPI: The patient reported breathlessness during the emergency evaluation.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-2/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-2",
      "startOffset": 247,
      "endOffset": 320,
      "sha256": "68e5fcd7a74a9ef29fb0e2140921fd82257629c360e759dfaae9c9b299622381",
      "sourceSha256": "7b6c36d2771bc4730498c987cd6883533225b5433d2e2d8ae85458d091b5c444"
    },
    {
      "text": "The patient denies chest pain at the time of this triage interview.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-2/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-2",
      "startOffset": 321,
      "endOffset": 388,
      "sha256": "11079ddd547d943f928213fcd656ffc866a3fd9ec1dc1fadcdd82d10daea2248",
      "sourceSha256": "7b6c36d2771bc4730498c987cd6883533225b5433d2e2d8ae85458d091b5c444"
    },
    {
      "text": "HPI: The patient was evaluated for shortness of breath and returns to primary care after discharge.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-1/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-1",
      "startOffset": 259,
      "endOffset": 358,
      "sha256": "b1caf38eed7226ebac9f184ea820f9761c03dee2bc68215d5e0289b1e4b861b3",
      "sourceSha256": "e47b773818cea20bcb3885af5a8039e8a3baf1037d12fab9841b35edfa575860"
    },
    {
      "text": "Assessment: CT ruled out pulmonary embolism.",
      "citations": [
        "DocumentReference/synthetic-post-discharge-1/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-post-discharge-1",
      "startOffset": 464,
      "endOffset": 508,
      "sha256": "a8b6fac71dde6d15b5071d7ea54fb864a83c505085acbef251eba7f5f7ef44d8",
      "sourceSha256": "e47b773818cea20bcb3885af5a8039e8a3baf1037d12fab9841b35edfa575860"
    }
  ],
  "ledger": "6 notes reviewed, 6 excerpts shown, 97 passages not shown"
}

Specialist referral consolidation

{
  "patientId": "2b729cb8-0713-4dec-9dfb-ae0aecb28fb4",
  "asOf": "2026-11-12T06:00:00-06:00",
  "wordCount": 155,
  "sourcePageCount": 8,
  "sections": [
    {
      "title": "Active problems",
      "lines": [
        {
          "text": "Gout",
          "citations": [
            "Condition/f08e7ce7-9b2d-469e-8506-b9105bb5b21b/_history/3"
          ],
          "sourceKey": "Condition/f08e7ce7-9b2d-469e-8506-b9105bb5b21b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Prediabetes",
          "citations": [
            "Condition/6ecb851c-5cb5-45e6-b192-095347d61d01/_history/3"
          ],
          "sourceKey": "Condition/6ecb851c-5cb5-45e6-b192-095347d61d01",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Anemia (disorder)",
          "citations": [
            "Condition/da09dab0-2529-4136-84bb-dc25b6d0484b/_history/3"
          ],
          "sourceKey": "Condition/da09dab0-2529-4136-84bb-dc25b6d0484b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Chronic sinusitis (disorder)",
          "citations": [
            "Condition/92186986-79a2-4d6e-b2d3-6f1a584d903b/_history/3"
          ],
          "sourceKey": "Condition/92186986-79a2-4d6e-b2d3-6f1a584d903b",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Current meds and changes in last 90 days",
      "lines": [
        {
          "text": "ferrous sulfate 325 MG Oral Tablet: active; authored 1987-08-08",
          "citations": [
            "MedicationRequest/d99c61ed-f0d5-48f7-8651-0b77f5901547/_history/3"
          ],
          "sourceKey": "MedicationRequest/d99c61ed-f0d5-48f7-8651-0b77f5901547",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Allergies",
      "lines": [
        {
          "text": "Not in structured data; patient chart checked.",
          "citations": [
            "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4/_history/3"
          ],
          "sourceKey": "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Abnormal and trending labs",
      "lines": [
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 5.97 %; 2020-09-19",
          "citations": [
            "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84/_history/3"
          ],
          "sourceKey": "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 114.73/84.11 mmHg; 2020-09-19",
          "citations": [
            "Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764/_history/3"
          ],
          "sourceKey": "Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 123.65/74.37 mmHg; 2019-09-14",
          "citations": [
            "Observation/40f10bb2-aa69-48b2-a04f-375f16fd2ad3/_history/3"
          ],
          "sourceKey": "Observation/40f10bb2-aa69-48b2-a04f-375f16fd2ad3",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 6.18 %; 2019-09-14",
          "citations": [
            "Observation/606a498b-2375-4741-bfb3-329f59a8f716/_history/3"
          ],
          "sourceKey": "Observation/606a498b-2375-4741-bfb3-329f59a8f716",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Hemoglobin A1c/Hemoglobin.total in Blood: 6.25 %; 2018-09-08",
          "citations": [
            "Observation/3834857e-c74d-43c6-af67-74de9430866c/_history/3"
          ],
          "sourceKey": "Observation/3834857e-c74d-43c6-af67-74de9430866c",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood Pressure: 125.3/74.63 mmHg; 2018-09-08",
          "citations": [
            "Observation/4d3f29dd-4ac1-48c3-b9e5-3a5aaac252bf/_history/3"
          ],
          "sourceKey": "Observation/4d3f29dd-4ac1-48c3-b9e5-3a5aaac252bf",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "+14 more labs, see chart",
          "citations": [
            "Observation/aec5664a-d668-4382-a676-6c1aa06a6443/_history/3",
            "Observation/cbb5a2d6-1b77-4a92-9029-4f8a3fea9b10/_history/3",
            "Observation/0f5bcedb-0ff1-4895-96f8-cb6ecd39ec86/_history/3",
            "Observation/31d3c3a7-7730-44f2-bb24-7eab753d4e35/_history/3",
            "Observation/1bc55f74-9bde-460a-b5ec-8a3d764f0eea/_history/3",
            "Observation/7cd5f70f-0056-4ab0-8910-f46f1a14a68c/_history/3",
            "Observation/bad8236e-3fcb-4b78-aa72-8ba32b588833/_history/3",
            "Observation/c9aa4abf-68e8-4354-aa5d-b6d7fb852551/_history/3",
            "Observation/2080f116-f073-4746-b0cd-290516017474/_history/3",
            "Observation/446f080c-9549-4571-ac0f-ffd41b1cecd5/_history/3",
            "Observation/471f578e-5c7e-4e43-bf3c-76c7e9800b46/_history/3",
            "Observation/85730665-6cbe-4aa5-8fc0-dddf9146b47e/_history/3",
            "Observation/0a329c9f-e5b4-4cd3-a824-4552e18daec6/_history/3",
            "Observation/69c29e33-e4eb-46f7-bfa4-b6656599f439/_history/3"
          ],
          "sourceKey": "Observation/aec5664a-d668-4382-a676-6c1aa06a6443",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Immunization gaps",
      "lines": [
        {
          "text": "Care gap: no flu immunization recorded in last 12 months",
          "citations": [
            "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4/_history/3",
            "Immunization/2dca0f52-3d4e-4250-8da7-7852dc9793fe/_history/3",
            "Immunization/427af863-95e3-4f18-9c09-249f0dd7d38b/_history/3",
            "Immunization/788ac5fb-0b5c-4757-80fb-6b653dbe3655/_history/3",
            "Immunization/83ec06f7-0d75-43f3-938e-b23dfe0ed7de/_history/3",
            "Immunization/cd730bf7-ac99-4396-af5c-5107a37334b4/_history/3",
            "Immunization/dd95c6a0-56bc-497e-81b9-ccd38d513435/_history/3",
            "Immunization/8cedba13-7645-419d-bf21-451d2b8ef9b8/_history/3",
            "Immunization/471cf582-5ee2-4354-b5ca-21193becd5a8/_history/3",
            "Immunization/2dccadeb-8d5c-495b-add1-58f527628029/_history/3"
          ],
          "sourceKey": "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Last 3 encounters",
      "lines": [
        {
          "text": "Encounter for check up (procedure); 2020-09-19; finished",
          "citations": [
            "Encounter/c271223e-05ed-4561-b2f9-a9122d750507/_history/3"
          ],
          "sourceKey": "Encounter/c271223e-05ed-4561-b2f9-a9122d750507",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Encounter for check up (procedure); 2019-09-14; finished",
          "citations": [
            "Encounter/dea20f3a-1034-4ffc-957f-c329ad79b729/_history/3"
          ],
          "sourceKey": "Encounter/dea20f3a-1034-4ffc-957f-c329ad79b729",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Encounter for problem; 2019-07-14; finished",
          "citations": [
            "Encounter/01d006b0-6198-43a1-8576-93d360699676/_history/3"
          ],
          "sourceKey": "Encounter/01d006b0-6198-43a1-8576-93d360699676",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "+20 more encounters, see chart",
          "citations": [
            "Encounter/8b4ec126-cab4-495b-a70b-41a35cd920ed/_history/3",
            "Encounter/3b6d33a6-2502-4cec-a4ca-b22c051b437a/_history/3",
            "Encounter/0135cd61-e009-4a2e-b677-8b96478e3085/_history/3",
            "Encounter/66b6d4f2-8576-4176-ba04-de6f812833ea/_history/3",
            "Encounter/d7aa1ceb-6102-4825-9beb-b26dd84fbb5c/_history/3",
            "Encounter/0b596f4c-8a62-4d86-a101-b97052f43a91/_history/3",
            "Encounter/6a9c6520-22dd-4b50-bf3c-ff7e1d22504f/_history/3",
            "Encounter/53165915-da11-4d32-9d97-f459916ebdec/_history/3",
            "Encounter/1108afe4-bc81-4d9c-9390-38647af23a60/_history/3",
            "Encounter/7bc63e1b-9165-408b-9e48-9698fd14a0ee/_history/3",
            "Encounter/25db3bd2-b0fb-433b-9940-51a345b830ef/_history/3",
            "Encounter/d69209ca-fffb-42a6-92f8-95324c9d720e/_history/3",
            "Encounter/fdb712ee-1596-4138-9fc7-4cdff48dd4c2/_history/3",
            "Encounter/1db058a7-476b-4eb6-82ef-6519d62931c4/_history/3",
            "Encounter/8fcb8b37-a5a9-4bd6-8d42-28b4661fc0f0/_history/3",
            "Encounter/c956a670-d8bf-49d1-a00b-2189a2f51f19/_history/3",
            "Encounter/65ebd71a-0526-49e1-99dd-ec9f31a469d3/_history/3",
            "Encounter/c9dee4ca-1470-49ea-8db5-36deedd36a50/_history/3",
            "Encounter/75cf46a3-59a7-4bef-bc60-cb40afc244ff/_history/3",
            "Encounter/868d1d54-7c10-44b6-8411-e1903529deae/_history/3"
          ],
          "sourceKey": "Encounter/8b4ec126-cab4-495b-a70b-41a35cd920ed",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    },
    {
      "title": "Risk flags",
      "lines": [
        {
          "text": "HbA1c: Prediabetes range",
          "citations": [
            "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84/_history/3",
            "Observation/606a498b-2375-4741-bfb3-329f59a8f716/_history/3",
            "Observation/3834857e-c74d-43c6-af67-74de9430866c/_history/3"
          ],
          "sourceKey": "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "HbA1c: no strictly rising 3-result trend",
          "citations": [
            "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84/_history/3",
            "Observation/606a498b-2375-4741-bfb3-329f59a8f716/_history/3",
            "Observation/3834857e-c74d-43c6-af67-74de9430866c/_history/3"
          ],
          "sourceKey": "Observation/3aeba9c8-21ca-4c8e-ba65-28d435644f84",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "Blood pressure rule not triggered",
          "citations": [
            "Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764/_history/3",
            "Observation/40f10bb2-aa69-48b2-a04f-375f16fd2ad3/_history/3",
            "Observation/4d3f29dd-4ac1-48c3-b9e5-3a5aaac252bf/_history/3"
          ],
          "sourceKey": "Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        },
        {
          "text": "10-year ASCVD: insufficient data",
          "citations": [
            "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4/_history/3",
            "Observation/44d88899-2c5e-41e8-b119-5b1e67dd8b3c/_history/3",
            "Condition/40c0cc12-df6d-4ca7-b043-7c5429795643/_history/3",
            "Condition/2ddebb9b-5475-4c7b-9345-1ed7aec25fda/_history/3",
            "Condition/0309fedc-11bc-412d-8d9a-75708c5106f4/_history/3",
            "Condition/f08e7ce7-9b2d-469e-8506-b9105bb5b21b/_history/3",
            "Condition/6ecb851c-5cb5-45e6-b192-095347d61d01/_history/3",
            "Condition/da09dab0-2529-4136-84bb-dc25b6d0484b/_history/3",
            "Condition/92186986-79a2-4d6e-b2d3-6f1a584d903b/_history/3",
            "MedicationRequest/c2077031-b3f1-4768-b658-6ff505a54453/_history/3",
            "MedicationRequest/eb1fece9-39e8-4c55-829f-20c0f6368ca1/_history/3",
            "MedicationRequest/0abbabdb-b864-4802-9d61-6ce363e7e84e/_history/3",
            "MedicationRequest/8a08132e-71ed-4b3d-b3fb-8a31392255b7/_history/3",
            "MedicationRequest/02be8fee-9b26-4c38-9630-97aba67345c5/_history/3",
            "MedicationRequest/4572c02e-148f-4cb2-8002-fdc5d9b1205b/_history/3",
            "MedicationRequest/d99c61ed-f0d5-48f7-8651-0b77f5901547/_history/3",
            "Observation/938123fe-6598-48c9-b295-01ad3c4598b7/_history/3",
            "Observation/8b09b735-e86c-49ca-b604-e90cefc55747/_history/3",
            "Observation/c2a2c7e0-4d1a-4b13-98d1-291738ff3764/_history/3"
          ],
          "sourceKey": "Patient/2b729cb8-0713-4dec-9dfb-ae0aecb28fb4",
          "startOffset": null,
          "endOffset": null,
          "sha256": null,
          "sourceSha256": null
        }
      ]
    }
  ],
  "notes": [
    {
      "text": "Mother had breast cancer.",
      "citations": [
        "DocumentReference/synthetic-specialist-referral-1/_history/1"
      ],
      "sourceKey": "DocumentReference/synthetic-specialist-referral-1",
      "startOffset": 525,
      "endOffset": 550,
      "sha256": "4961ea5b00a93d45654e1df1bd525e33b84d9796611511633ee939af72d9e695",
      "sourceSha256": "d3003eb858f3e52e2aebbd7102c76a2d70648c51e7770208588c59f48436cea1"
    }
  ],
  "ledger": "6 notes reviewed, 1 excerpts shown, 103 passages not shown"
}

Final checkpoint contract receipt: 31 passed,0 failed, including six separate fresh-pipeline scenario golden comparisons and actual core.autocrlf checkout validation. New authored packet JSON was normalized by its generator to LF before recapture; no clinical text or original producer capture changed. Receipt: .artifacts/pass12/contracts-final.log and contracts-final-results/*.trx.

Pass 12 — Examples checkpoint

Patient chart now renders the shared Executive summary card. Public #examples loads six synthetic packets from static snapshots, shows BEFORE/AFTER reading estimates, opens and highlights the exact pinned source on citation taps, and presents source-derived negation/family/stopped-medication/injection/restricted/missing-data cases. BEFORE remains collapsed until requested so the phone opens on the summary; its complete latest-resource list is preserved. The phone summary is one scrollable card, not a claim that every source chip and250words fit one844px viewport.

All three tabs are available. Programmatic shows real deterministic output. These newly authored full packets have no matching model recording, so MedGemma and simulated BAA explicitly say not recorded — model comparison pending. The separate spike link still shows its actual recorded single-note evidence; those smaller sources are never relabeled as full-packet comparisons. Release1 remains quote-only, no paraphrase, no export; no live model calls occur in static mode.

Validation: npm test 36 passed; npm run build:snapshot exit0, including real C# OpenAPI export and TypeScript; npm run e2e 35 passed in Chromium, including every packet at390px+1280px and direct source-highlight checks. Vite retains its existing bundle-size advisory. Initial failures were corrected: old pre-visit heading assertion, hash-aware chart URL assertion, and a test clicking Vuetify's hidden input instead of its visible combobox. No forced clicks or weakened source checks. Unknown-confidentiality Ottehr free text is now withheld rather than displayed by the older intake panel.

Sixteen final screenshots are committed: executive-summary-{390,1280}.png, examples-{390,1280}.png, and usecase-<six scenario ids>-{390,1280}.png. Use-case/summary captures include the full card, so note excerpts and citations are not cut off. Receipts: .artifacts/pass12/web-final-{tests,build}.log, web-e2e.log, web-e2e-exit.txt.

Final citation-disclosure check: after keeping the first source direct and placing additional pins behind an accessible disclosure, all36Vitests/build:snapshot passed again; all4 affected patient/Examples e2es passed at390px+1280px. The test opens a previously hidden additional citation and verifies its exact source text is highlighted. All16 screenshots refreshed from this final UI. Receipt: .artifacts/pass12/web-summary-final-e2e.log (4passed,exit0); the preceding complete web suite remains35passed. Vue interpolation renders note/source content inert; local council's XSS claims were rejected after checking interpolation and existing source-injection e2e evidence.

Release fixes (Susie)

Gaming-PC checkout, branch wt/WT-dc65/release-fixes at afac4e3 (2026-11-13, core.autocrlf=input; both assigned failures reproduced here, so no fresh-checkout rerun was needed). Three fixes plus one full-suite straggler from the same originating commit (71086ac):

  • c01feb9 — form-bound QuestionnaireResponse is structured intake, not a note (fixes OttehrIntakeTests.ApiAndSnapshotContractExposesOttehrIntakeAndActualBoundSourceAsync).
  • 2af88b5 — select the Ottehr QR by producer id in MigrationMapperTests.OttehrAnswersUseTypedRowsAndMissingReferenceIsRejected (report packets added two synthetic QRs).
  • 8fc7383 — InHouseMapper captures only direct answer values and includes object answers; adds NestedExtensionValueCreatesNoExtraRowAndCodingAnswerIsCaptured (proven to fail without the fix).
  • 5e4f87e — exclude the examples index from recorded-model replay (extra, keeps the suite green).

Full dotnet test FhirDemo.slnx at afac4e3: 1459 passed, 1 skipped, 0 failed.

  • FhirDemo.LocalModels.Tests: 345 passed, 0 failed
  • FhirDemo.AppHost.Tests: 4 passed, 0 failed
  • EFCore.DuckDB.Tests: 289 passed, 1 skipped, 0 failed
  • FhirDemo.Lakehouse.Contracts.Tests: 65 passed, 0 failed
  • FhirDemo.Contracts.Tests: 31 passed, 0 failed
  • FhirDemo.Migration.Tests: 193 passed, 0 failed
  • FhirDemo.Tests: 532 passed, 0 failed

Packet model run (Susie)

Recorded real quote-only outputs for all 6 report packets x 2 tiers (canonical run ID packet-run2, 2026-11-13 ~11:05-11:11 UTC, gaming PC, Ollama http://10.0.0.7:11434). Command, digests, timings and totals: PACKET-MODEL-RUN.md. MedGemma accepted 8/rejected 284 over 34 calls, simulated BAA 10/124 over 34; the thin yield is genuine conservative-guard behavior on entity-less sentences, verified by a same-prompt diagnostic. Zero NOT DONE outcomes, zero refusals. Rejected counts and refusal flags are computed inside the hardened transport (verdicts only, rejected text never in a public field); no check was weakened.

Validation: dotnet test FhirDemo.slnx LocalModels 362 passed (incl. 12 packet replay cases + manifest refusal test + count/refusal boundary tests), AppHost 4 passed, DuckDB 289 passed + 1 skipped, Lakehouse.Contracts 65 passed, Contracts 31 passed; two failures reproduce identically on the untouched base 796f49a and are pre-existing Ottehr-area issues, not regressions (ApiAndSnapshotContractExposesOttehrIntakeAndActualBoundSourceAsync, OttehrAnswersUseTypedRowsAndMissingReferenceIsRejected). npm test 39 passed (incl. 3 new tier-loader tests). Playwright examples + executive-summary 4 passed at 390px and 1280px, asserting recorded quotes on both model tabs for at least one packet with working citation jumps. Fresh screenshots: examples-tiers-{390,1280}.png plus refreshed examples-*, executive-summary-* and usecase-* captures.

Forge Studio receipts (merged from wt/WT-dc65/forge-fixes, the branch production Forge is built from)

VERIFY

Forge fixes (Susie)

Interview demo: noon CT 2026-11-13. Gaming PC.

Served commits:

  • Forge app: c18ef3d (branch wt/WT-dc65/forge-fixes, built from this checkout)
  • Independent smoke suite: 1de8080 (branch origin/wt/WT-dc65/smoke-fixes, copied to ./smoke/ untracked)
  • Forge base: 83cf07c (origin/wt/WT-dc65/forge-studio)

Fix 1 — pinned originals served in-app (0a8ec90)

  • Every Pinned original / Local text copy link opens /sources/:id from the static bundle (title, commit, original path, SHA-256, exact-bytes download).
  • Exact pinned Git blob bytes exported to story-sources/*.orig; manifest records sha256 (original bytes) and displaySha256 (normalized copy).
  • Secondary Source on GitFront links and all Lineage/Architecture/repo-file source links render only when VITE_SOURCE_BROWSER_BASE is set (empty by default). Floorplan attribution is plain text.

Fix 2 — sanitized responsive Markdown (341d31a)

  • MarkdownDoc (markdown-it with raw HTML disabled + DOMPurify + strict link policy) renders all in-app documents and Story's expanded source details; .dsl renders as escaped code.
  • Container max-width:100% / min-width:0 / overflow-wrap:anywhere, wrapped pre/code, each table in its own horizontal-scroll box.
  • Captured github.com prose links render as text when the source-browser base is empty (rewritten through it when set); unsafe schemes rejected.

Fix 3 — evidence-card presentation (c18ef3d)

  • Evidence links open in-app destinations in new tabs with their original labels; each available card shows its display-copy SHA-256.
  • Migration guide verified available at /sources/migration; the NOT DONE: docs/MIGRATION.md is absent label is gone.

Counts

  • Unit (Vitest npm test): 17 passed, 0 failed.
  • Forge e2e default bundle (serve dist :4179): 9 passed, 0 failed, 2 skipped (GitFront-configured cases, run separately below).
  • Forge e2e GitFront bundle (VITE_SOURCE_BROWSER_BASE=https://gitfront.example/forge, served :4178): 2 passed, 0 failed.
  • Independent smoke Forge cases (-g "Forge", 222 tests, phone+desktop, SMOKE_FORGE_URL=http://localhost:4179, Chromium): 144 passed, 78 failed; checkpoints 714 PASS / 112 FAIL / 826 total (13.4 min run). Every failure is classified below; all in-scope assertions (in-app evidence links, card SHA-256, Markdown headings, no-github, overflow) pass.

Smoke failure classification (all pre-existing or infra; none in scope)

39 unique titles x 2 viewports = 78 failed tests:

  • 21 Forge story: <retired-chapter> <depth> — suite hard-codes retired chapters (problem/data/models/parity/tracks, old migration / predictions titles); current chapters are ssm/innovare/…. Pre-existing suite drift, untouched by these fixes.
  • 5 Forge tool: … (data/models retired chapters; migration retired tool set) — same drift. Pre-existing.
  • 2 Forge route: / and /story — expect first chapter The problem; current first chapter is The SSM way. Pre-existing.
  • 1 story navigation and depth memory — hard-codes /story/problem → /story/data; observed /story/innovare. Pre-existing.
  • 1 lineage migration — expects retired step ids (export/load/…) and PLANNED text; current pass-9 pipeline is implemented with manifest/crosswalk/… steps. These fixes only re-pointed its source links. Pre-existing.
  • 2 source links plain / requirements — no chapter references these manifest sources, so their story card is absent (chapter?.slug ?? 'built' fallback). The other 11 source links tests PASS (in-app hrefs, no github anchors, card SHA-256, popup renders the captured document). Pre-existing content gap; assigning chapters is a Forge-owner editorial call, out of scope.
  • 2 architecture containers / migration — LikeC4 node counts (15 vs 13, 6 vs 7). The architecture model is untouched by these fixes (no architecture/ changes in this branch). Pre-existing.
  • 5 story oracle ssm|oystehr|migration|predictions|code — the ONLY error in every failing checkpoint is page.screenshot: Timeout 12000ms exceeded during full-page capture of 110k+ px pages (measured 6–11 s isolated; the suite budget is 12 s under 2-worker parallel load). All content, console, HTTP and overflow assertions in those same checkpoints PASSED, and the same pages pass this branch's own overflow/link suites. Test-infrastructure capture budget, not a product defect.

NOT DONE

  • BuildTimeline (/built) still renders data-driven github.com evidence URLs from agentrail/timeline.json (72 occurrences). The pending notes scope the no-github rule to Story chapters, source documents, Lineage, Architecture and Floorplan; /built was left for its data owner.
  • Demo-app (web/) and viewer (ehr-track/) smoke cases were not run: this branch carries only the Forge app, so localhost:4180/4010 targets do not exist here (a stub answered :4010 so the suite's webServer check passes; no Forge test touches it).
  • forge-studio/verify-story.mjs and siblings still encode retired chapter slugs and were not run (stale before these fixes).