Quality matrix — Pass 11 + migration¶
Observed local receipts, not a claim that the hosted workflow or release approval has completed. Commands are run from the repository root unless a directory is shown. A = SSM lakehouse, vendored provider and Metabase; B = operational .NET/API/Vue; C = Ottehr-compatible Zambda and viewer; D = fixtures-to-in-house migration and independent reconciliation. Shared surfaces use the same gate. Full commands, limitations and raw-log locations are in VERIFY.
| Gate | A — lakehouse + EFCore.DuckDB | B — operational | C — Way 2 | D — migration |
|---|---|---|---|---|
| Build | Command: final isolated strict solution build dotnet build --no-incremental -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true; Result: 0 warnings/errors, exit0 (Pass14). |
Command: final isolated strict solution build dotnet build --no-incremental -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true; Result: 0 warnings/errors, exit0 (Pass14). |
Command: cd ehr-track/risk; npm run check; npm run build; Result: TypeScript check and esbuild completed, exit 0. |
Command: dotnet build --no-incremental -warnaserror -p:AnalysisLevel=latest-recommended -p:RestoreLockedMode=true; Result: final isolated solution 0 Warning(s), 0 Error(s), exit 0. |
| Tests | Command: dotnet test lib/EFCore.DuckDB/tests/EFCore.DuckDB.Tests; dotnet test tests/FhirDemo.Lakehouse.Contracts.Tests; pwsh -File bi/metabase/get-driver.Tests.ps1; Result: Passed: 289, Skipped: 1, Total: 290; Passed: 65; driver guards 2 PASS. Optional remote QUACK service test requires an external URI. |
Command: final dotnet test --no-build plus six NUnit TRX guards; Result: 990 passed,0 failed,1 optional external QUACK skip; operational/CLI450, contracts24, migration158, lakehouse contracts65, provider289, AppHost4 (Pass14). |
Command: cd ehr-track/risk; npm test; Result: Tests 64 passed (64). |
Command: dotnet test --no-build; Result: full solution 811 passed, 0 failed, 1 optional QUACK skip; migration 158 passed; all six NUnit/nonzero TRX guards passed. Three committed-target corruption CLI tests return exit 1 and FAIL. |
| Contracts | Command: dotnet test tests/FhirDemo.Lakehouse.Contracts.Tests; Result: Passed: 65, Failed: 0; captured bronze/silver/gold and independent risk vectors, wrong shapes rejected. |
Command: NUnit Contracts + actual autocrlf=true Git clone; Result: 24 passed; all captured fixture hashes unchanged, CRLF control exercised; malformed/tampered content rejected. | Command: cd ehr-track/risk; npm test; Result: Tests 64 passed (64) includes verbatim QuestionnaireResponse, captured handler output and wrong-shape rejection. |
Command: dotnet test tests/FhirDemo.Migration.Tests; Result: captured full 3188-entry manifest, canonical core3 report and actual 479-entry HAPI response pass byte pins, fresh-producer checks and malformed-shape negatives. Origin commands are committed. |
| Mutation | Command: existing stryker-lakehouse.json/provider gates plus new stryker-predictive.json; Result: prior pass11 lakehouse/provider receipts remain in VERIFY; new report scope98.28% (57/58),break70,exit0. CI reruns the changed lakehouse source. | Command: Stryker stryker-intake.json,stryker-intake-cli.json,stryker-dq.json,stryker-export.json; Result: intake81.89%,CLI78.26%,DQ98.65%,exporter84.88%,each break70; combined CLI/export83.49%,exit0. Exclusions and survivors disclosed in VERIFY. | Command: cd ehr-track/risk; npm run mutation; Result:99.14%,461 killed/465 total,3 survived,1 uncovered,break94.03,exit0; new report-facts helper53/53 killed. | Command: bash .github/scripts/pass11-mutation.sh migration and QualityGate mutation; Result: main total=1005, killed=558, survived=211, timeout=1, no-coverage=63, excluded=172, valid=833, score=67.11%, break=65%; PASS. Separate crosswalk supplement 94.44%, valid=18; selected-survivor supplement 86.96%, valid=23; both PASS65. Required dropped-field/unit/reference negatives killed 12/12/7 mutants. All five selected meaningful survivors killed by added tests; production hashes unchanged. Survivors remain disclosed in VERIFY. |
| SAST | Command: pinned Semgrep strict/error changed-source scan; Result:0 findings,0 parser errors,56 files; one reviewed line-local fixed-query false-positive annotation (Pass14). | Command: pinned Semgrep strict/error changed-source scan; Result:0 findings,0 parser errors,56 files; one reviewed line-local fixed-query false-positive annotation (Pass14). | Command: pinned Semgrep strict/error changed-source scan; Result:0 findings,0 parser errors,56 files; one reviewed line-local fixed-query false-positive annotation (Pass14). | Command: pinned Semgrep strict/error with C#, TypeScript, secrets and SQL rules on migration, CLI and their tests; Result: 83 files, 0 findings, 0 errors, exit 0. Full-tree scan also ran; narrow local-output-path false positives were documented at validated/fixed sinks. Analyzers: zero warnings. |
| Dependencies | Command: dotnet list package --vulnerable --include-transitive --format json; Result: 0 reported vulnerable packages, High/Critical=0; provider included. |
Command: dotnet list package --vulnerable --include-transitive --format json; npm audit --audit-level=high in web and forge-studio; Result: High/Critical=0; both npm trees found 0 vulnerabilities. |
Command: cd ehr-track/risk; npm audit --audit-level=high; Result: High=0, Critical=0; 5 Moderate vulnerabilities disclosed; exit 0 at requested threshold. Viewer npm audit --audit-level=high: found 0 vulnerabilities. |
Command: dotnet list src/FhirDemo.Migration package --vulnerable --include-transitive --format json; Result: no reported vulnerable packages, exit 0; same pinned EF Core 10.0.14 dependency family. |
| Secrets | Command: pinned gitleaks dir on changed release source tree; Result:0 leaks,exit0 (Pass14); prior history/full-tree receipts in VERIFY. | Command: pinned gitleaks dir on changed release source tree; Result:0 leaks,exit0 (Pass14); prior history/full-tree receipts in VERIFY. | Command: pinned gitleaks dir on changed release source tree; Result:0 leaks,exit0 (Pass14); prior history/full-tree receipts in VERIFY. | Command: pinned gitleaks dir --redact on tracked/nonignored release tree; Result: no leaks found, exit 0. Closed report redaction tests pass for source names, DOBs, free text, URLs and headers. Public captured-file checksum exceptions are line-local. |
| DAST | Command: zap-baseline.py -t http://api:8080/api/patients -J zap.json; dotnet run --project tools/QualityGate -- zap zap.json; Result: ZAP: sites=1, alerts=2, High/Critical=0; PASS. Local HTTP boundary only. |
Command: zap-baseline.py -t http://api:8080/api/patients -J zap.json; dotnet run --project tools/QualityGate -- zap zap.json; Result: ZAP: sites=1, alerts=2, High/Critical=0; PASS. Alerts are Low/Informational. |
Command: zap-baseline.py -t http://zambda:8080/patient-risk -J zambda.json; dotnet run --project tools/QualityGate -- zap zambda.json; Result: PASS: 62; ZAP: sites=1, alerts=0, High/Critical=0; PASS. Hosted authentication is not exercised. |
Command: scope review plus shared API ZAP receipt above and npm run e2e; Result: no migration HTTP listener or write endpoint exists; read-only snapshot page tests pass. No new remote DAST claim; shared API boundary unchanged. |
| IaC | Command: cdktn synth; terraform validate on all 3 stacks; pinned tfsec; dotnet run --project tools/VerifySynth; Result: all validate; High/Critical=0 after one documented Azure JSON false-positive compensation; 16 invariants PASS and 5 negative tests PASS. |
Command: bash .github/scripts/pass11-iac.sh (synth/validate/tfsec/16 invariants); Result: 3 valid stacks, High/Critical=0 with documented compensation, 16 invariants PASS. No public Cloud Run invoker, project-role runtime grant or missing budget. |
Command: bash .github/scripts/pass11-iac.sh; pwsh -File ehr-track/scripts/deployment-plan.Tests.ps1; Result: shared stacks pass; valid local Node22/http_auth/existing-role request accepted, 12 unsafe plan variants rejected. Remote role permissions are not locally proven. No hosted deployment claim. |
Command: scope review against docs/MIGRATION.md; Result: no new cdktn resources, SQL Server container or deployment. Existing pass-11 synth receipts remain above; the migration Azure target and cutover runbook are explicitly UNEXECUTED. |
| Web | Command: web npm test; npm run build:snapshot; npm run e2e; Result:28 unit tests,build exit0,16 e2e pass at390/1280px; six predictive PNGs captured. Metabase provisioning rejected by automatic approval review; dashboard screenshots NOT DONE. | Command: web npm test; npm run build:snapshot; npm run e2e; Result:28 unit tests,build exit0,16 e2e pass at390/1280px; six predictive PNGs captured. Metabase provisioning rejected by automatic approval review; dashboard screenshots NOT DONE. | Command: ehr-track/risk npm test and shared Vue e2e; Result:90 risk tests pass; both independently computed report sets and all chart counts verified at390/1280px; live seed not applied. | Command: cd web; npm test; npm run build:snapshot; npm run e2e; Result: 28 passed, snapshot build exit 0, 10 passed; final canonical-report page replay 2 passed. Missing snapshot shows NOT VERIFIED. |
| Parity | Command: parity.ps1 -WorkingTree -Output plus real predictive snapshot export; Result:12patients/56of56 flags agree; identical gold keys/values/citations/as-of independently validated; empty/stale/inflated receipts fail, disagreements remain visible. | Command: parity.ps1 -WorkingTree -Output plus real predictive snapshot export; Result:12patients/56of56 flags agree; identical gold keys/values/citations/as-of independently validated; empty/stale/inflated receipts fail, disagreements remain visible. | Command: parity.ps1 -WorkingTree -Output plus real predictive snapshot export; Result:12patients/56of56 flags agree; identical gold keys/values/citations/as-of independently validated; empty/stale/inflated receipts fail, disagreements remain visible. | Command: real migrate --from fixtures --to inhouse twice plus before/after-commit crash/resume; Result: first 3188 created, second 0 created, 0 updated, 3188 unchanged; 10 patients/48 flags identical; DuckDB gold parity true; negative control caught 2/2. Local HAPI also PASS3188. |
| Release | Command: dotnet run --project tools/ReleaseAudit --no-build -- /tmp/pass11-release /tmp/pass11-missing-release-denylist.txt; Result: ReleaseAudit: NOT DONE (FileNotFoundException); verify repository and external denylist inputs. Exit 2; pending orchestrator denylist. |
Command: dotnet run --project tools/ReleaseAudit --no-build -- /tmp/pass11-release /tmp/pass11-missing-release-denylist.txt; Result: ReleaseAudit: NOT DONE (FileNotFoundException); verify repository and external denylist inputs. Exit 2; pending orchestrator denylist. Audit implementation and fail-closed negative tests pass. |
Command: dotnet run --project tools/ReleaseAudit --no-build -- /tmp/pass11-release /tmp/pass11-missing-release-denylist.txt; Result: ReleaseAudit: NOT DONE (FileNotFoundException); verify repository and external denylist inputs. Exit 2; pending orchestrator denylist. No publication/deployment performed. |
Command: inherited ReleaseAudit boundary and scope review; Result: release denylist/hosted CI/merge approval still NOT DONE, as in pass 11. No publication, live Oystehr execution or production cutover claimed. Local proof receipts are in VERIFY. |
The CI completeness check rejects any missing command/result cell. It does not turn an explicit NOT DONE result into a passing execution gate. Mutation, scanner, build and test jobs independently fail on their actual results. Provider compile-error/ignored mutants, scanner limitations, moderate findings and optional external-service coverage are disclosed in VERIFY and TESTING.
Completeness evidence: CI .github/workflows/ci.yml build job runs dotnet run --project tools/QualityGate --no-build -- matrix docs/QUALITY-MATRIX.md. The same matrix command on this updated file returned exit 0: Quality matrix: PASS (12 gates × 3 tracks; commands and recorded results present). Execution failures remain failures in their own CI jobs. Continuation command pwsh -File .github/scripts/ValidateQualityTools.ps1 returned exit 0 with 25 positive/negative checks. Output includes PASS CompleteMatrixPasses (exit 0), PASS MissingMatrixCellFails (exit 2), PASS EmptyMatrixValuesFail (exit 2), PASS MarkupOnlyMatrixValuesFail (exit 2), PASS MissingMatrixRowFails (exit 2) and PASS DuplicateMalformedMatrixRowFails (exit 2). Receipt: .artifacts/pass11/continuation-quality-selftests.log. These checks verify completeness and rejection behavior; the real release audit remains pending orchestrator denylist.
Migration column D is mandatory. Its explicit NOT DONE release result records pending work and is not an execution pass. The updated completeness checker expects all four command/result cells on every gate row; its migration-column negative controls reject both a missing D column and empty D cells. Updated Linux checker execution passed: Quality matrix: PASS (12 gates × 4 tracks; commands and recorded results present), exit 0; all 27 quality-tool self-tests passed, including MissingMigrationColumnFails and EmptyMigrationCellFails. Receipts: artifacts/migration/mutation-linux/quality-selftests.log, quality-matrix.log, quality-exit.txt. The earlier 12 × 3 / 25-test receipt above is historical pass-11 evidence.
Pass 14 J5 supplement (B, shared Web): Command: strict solution build, full NUnit/TRX guard, Stryker stryker-dq.json, Vue unit/snapshot/e2e; Result: 0 warnings/errors; 958 NUnit pass +1 optional skip at checkpoint; DQ 98.65% (73 killed,1 uncovered;break70); 28 web unit +16 e2e passed. SQL Server procedure scripts generated, SQLite execution passed; SQL Server execution not claimed. See VERIFY Pass 14 and DATA-QUALITY.md.
Pass 14 J3 supplement (B): Command: NUnit SftpDropFolderIngestorTests/SftpCommandTests; Stryker stryker-intake.json and stryker-intake-cli.json; Result: all targeted tests pass, service81.89%, CLI78.26%, each break70, no service no-coverage; strict targeted build0 warnings/errors. Original method-excluded mutation attempt superseded. See VERIFY Pass14/INTAKE.md.