Enforce bounded operations deadlines and deployment readiness

This commit is contained in:
Steffen committed 2026-10-14 12:16:08 +02:00
1 parent cc7f87105d
commit f451b55de1
11 files changed
+5912 -22

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+4
View File
@@ -43,3 +43,7 @@ SummaryPolicy, TrendPolicy, ClinicalPolicy and Guidance-owned versioned Referenc
### Stage 5 checkpoint — passed
Overview composes typed Profile, Observation and Analytics queries; profile/latest/selected series share repeatable-read from authorization. Analytics releases capture before calculation. Deterministic interleaving commits Profile and Observation changes after Profile capture: in-flight overview stays old/coherent; next sees new values; selected query called once; transaction inactive before Analytics returns. All adopted Overview, patient and professional suites pass: 266/266 cases, zero warnings/errors. Ownership now checks route metadata before model validation to preserve denied empty-404 behaviour. Stage 4 commit `cab10c5`.
### Stage 6 checkpoint — passed
Bounded pooled DB source, configurable health/assessment admission and deadlines, cancellation/rollback, release-before-result filter, sanitized dependency errors/no-store, authenticated liveness/readiness and fail-closed remote VerifyFull requirement. Deterministic locked-write deadline leaves profile unchanged; exhausted assessment budget returns 503+Retry-After while public guidance works; DB outage readiness is 503 while guidance/login remain usable. Restored original replacement-handler same-normalized-identity own/other assertions using real B profiles rather than obsolete HTTP stub. Fresh-schema context-default test retains all original value/text/Unknown assertions, with explicit synthetic associated patient for FK and no live migration. Module conformance checks pass. 276/276 tests passed; zero warnings/errors. Stage 5 commit `cc7f871`. Native deployment verification remains pending.
+3
View File
@@ -20,3 +20,6 @@ Insight/context/trend/deletion-derived tests: service-stop helpers represent DB
| PatientAuthenticationTests.Direct_services_reject_client_tokens_missing_keys_and_forged_keys / Service_credentials_are_limited_to_their_documented_read_calls | Replaced together by Sole_public_edge_accepts_client_ticket_but_service_headers_grant_no_access: valid client ticket works at sole edge, forged service headers grant nothing, internal by-account route absent. Originals remain baseline evidence. Patient/professional denial matrices unchanged |
| PatientAuthenticationTests.Database_failure_rolls_back_profile_and_association_together | Same B-local trigger/no-row/retry assertions, search_path resolves owned Profile schema; unexpected write failure still 500 |
| Original view/overview wire DTOs | Same JSON fields. Shared context DTO nullable annotation needs test null-forgiving operator after established setup; assertions unchanged |
| Original AuthenticationIntegrationTests replacement handler | Standard ASP.NET replacement scheme is now default at sole edge; test seeds real B-local Profile instead of HTTP PatientHandler. Own 200, other empty 404 assertions unchanged. Production HTTP rejection test retained |
| MeasurementContextMigrationTests | Fresh schema given equivalent synthetic row and required associated patient; same original IDs/times/values/text/Unknown detail assertions. No old-schema/live import, per Q4 |