Deliver portable native Architecture B deployment and final verification

This commit is contained in:
Steffen committed 2026-10-14 16:32:20 +02:00
1 parent f451b55de1
commit 36740d2492
92 files changed
+10939 -926

No files matched your search

+6 -2
View File
@@ -37,7 +37,7 @@ The original solution has five `net10.0` ASP.NET Core applications, a transient
| Context | EF owned value already flattened into observation row | Reuse fields, unknown/null/omission semantics; no separate context entity or inference |
| Writes | EF patch loads/saves row without explicit row locking; deletes by observation ID | Transaction with actual-owner recheck and row lock; validate proposed changes atomically; preserve concurrent disjoint patches |
| Reads | Independently timed ownership and source reads; overview sequential HTTP composition | Shared repeatable-read snapshot from ownership lookup through capture; release before calculation and transmission |
| Ordering/time | Latest measurement/creation/UUID; history measurement/UUID; UTC clock encoding in timestamp without timezone | Preserve UTC encoding/wire behaviour; verify PostgreSQL unsigned UUID-byte ordering explicitly, rather than substitute .NET Guid ordering |
| Ordering/time | Latest measurement/creation/UUID; history measurement/UUID; UTC clock encoding in timestamp without timezone | Preserve UTC encoding/wire behaviour; verify PostgreSQL unsigned UUID-byte ordering explicitly, rather than sort raw platform-endian GUID bytes |
| Analytics | Fresh summaries/trends; compiled combined numerical/context/clinical implementation | Reuse numerical formulas; separate SummaryPolicy, TrendPolicy, ClinicalPolicy and reference catalog; no result store/cache |
| Guidance | Static home guidance in gateway controller; clinic/other explained unavailable | Move existing content to versioned Guidance-owned bundle/catalog; preserve applicability and public availability during DB outages |
| Resources/failures | No shared bounded request policy; upstream HTTP failures 502/504 | Shared bounded pool, configurable admission/deadline/cancellation; 503 dependency/overload, 504 deadline, 500 unexpected failure |
@@ -89,7 +89,7 @@ Clinical catalog extraction must preserve existing source URLs/review metadata a
Fresh installation: one dedicated PostgreSQL database; `profile.patient` and `observations.observation` (physical name aligned with proposal). Preserve public identifiers and values regardless of table rename. Account association unique, non-null and immutable via module commands. Restricted patient FK; flattened context; positive numerical/category/rest checks and required timestamps. Profile owner creates only Profile objects; Observation owner creates only Observation objects, with the narrowly necessary REFERENCES grant. Runtime role has needed SELECT/INSERT/UPDATE and Observation DELETE, schema USAGE, no DDL/admin/role membership. Module migration histories stay owned separately. No generated insight/trend/overview tables. Runtime never invokes migrations.
Keep legacy UTC-clock timestamp encoding if needed for byte-compatible public timestamps; normalize all input instants consistently. Document UUID network-byte tie order and test IDs whose .NET Guid comparison order differs. Retain existing decimal means and optional rest-duration unit (minutes).
Keep legacy UTC-clock timestamp encoding if needed for byte-compatible public timestamps; normalize all input instants consistently. Document UUID network-byte tie order and test fixed UUIDs that distinguish network-byte ordering from little-endian byte-array sorting. Retain existing decimal means and optional rest-duration unit (minutes).
Approved Q4 scope is independently provisioned fresh B databases and equivalent reproducible synthetic datasets, **no import or live migration required or authorized**. A future migration procedure remains documentation only. No source database access or source repository mutation is authorized. If import is required, add an offline administrative import step from administrator-provided snapshots, with separate approval of dataset and account mappings. Preflight missing/duplicate accounts, orphan observations, unsupported categories/non-positive values and timestamp interpretation; reject ambiguous input without silently discarding/reassigning data. Preserve IDs, account IDs, original/update/measurement instants, raw values, complete/partial/unknown context, text/notes and predefined assignments. Validate counts and fields against snapshots. Retain source snapshots and take backups; never run an automatic destructive conversion in place.
@@ -138,3 +138,7 @@ Main risks: combined process/role blast radius; shared connection/EF transaction
Mitigation is explicit ownership and transaction tests, unchanged functional assertion intent, import preflight/no live conversion, preserved formulas/content provenance, focused review before any changed classification, native verification and candid limits. No workload/HA/backup SLA is invented. No energy-efficiency benefit is claimed.
Approval received: Q1 revised US-16/dependency errors; Q2 preserved instruction files; Q3 unchanged mathematics, thresholds and clinical outputs with uncertainty disclosure; Q4 fresh provisioning only; Q5 portable distribution-aware Linux installer and actual native verification. See [approval register](open-questions.md). Further approval is required only for material actions outside these boundaries.
## Execution outcome — 2026-10-14
Approved stages 0–8 implemented and engineering verification completed. Baseline 299/299 tests; B 283/283 tests; Release build/publish clean; actual native Debian 12 systemd local/remote installation and independent restart passed. All 146 acceptance entries mapped to concrete executed methods; six retain explicitly partial independent clinical support under Q3. Other intended distributions have adapter tests but no native execution claim. No unapproved deviation, A database access/import, source/input/instruction mutation, or energy-efficiency claim. See final-verification.json and the conformance/equivalence registers for exact evidence and limits.