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

+34 -14
View File
@@ -1,18 +1,38 @@
# Architecture conformance register
# Architecture B conformance evidence
Prepared 2026-10-14. **Implementation not started; all implementation evidence is not verified.** Allocation is a plan, not conformance proof. Authoritative target: `ArchitectureProposal/software-architecture.md` at `3426236c6cfcece36e94642ae84d1843288f86d5`.
Approved target revision `3426236c6cfcece36e94642ae84d1843288f86d5`; reference `2117236366130775214d9fd2611984d4348f2b79`. Approval Q1–Q5 governs supersessions and limits. No unapproved architectural deviation was introduced.
| Target | Required implementation evidence | Status |
| Target | Implemented evidence | Verification |
| --- | --- | --- |
| ADR-01 / components | One process/listener; module facades/private repositories; acyclic dependency checks; no internal HTTP/callbacks | Not verified |
| ADR-02 / ownership | One DB, Profile/Observation schemas/history/owners, restricted FK, constraints/index, DML-only runtime grants | Not verified |
| ADR-03 / creation sequence | Unique non-null account association, trusted identity, race/rollback/restart/lost-response tests, commit-before-success | Not verified |
| ADR-04 / access | Framework tokens/expiry/persistent keys; actual-owner/assignment policy; no bypass routes/service keys; secret/TLS protections | Not verified |
| ADR-05 / read sequence | Repeatable-read from authorization through capture; coherent overview; release before computation/transfer; current next-request reads; no result store/cache | Not verified |
| ADR-06 / Analytics/Guidance | Preserved documented mathematics, separated clinical policy/catalog, claim-specific review/provenance, numerical sufficiency and context/narrative limits | Not verified |
| ADR-07 / context | Flattened owned fields, Unknown/AND/clear/omission/text invariants; locked atomic writes with owner recheck | Not verified |
| ADR-08 / deployment/install sequence | Single app unit and identity; local/remote DB; generated settings/roles/certificates; transient installer; real PID/HTTPS/workflow/restart proof | Not verified |
| §8 operational boundary | Safe status mapping, no false absence, no-store, sanitized logs, deadline/rollback/cancellation, bounded admission/pool | Not verified |
| §9 readiness/remote placement | Usable DB/content/key readiness, public guidance on DB outage, verified DB TLS/name, no unnecessary local DB install | Not verified |
| ADR-01 / logical components | One Web SDK host; five module libraries; immutable Contracts; private persistence; no business HTTP clients/callbacks. Final solution excludes pinned reference | Verified: ConformanceTests, Release build/publish, single native app unit/PID |
| ADR-02 / data ownership | `profile.patient`, `observations.observation`; per-schema migration version; two NOLOGIN schema owners; restricted patient FK; positive/category/rest/time/account constraints; patient/time/original/UUID index; DML runtime role | Verified: migrations twice, FK/check rejection, runtime DDL denial, actual installer role/readiness check. Schemas remain logical ownership, not compromise isolation |
| ADR-03 / creation sequence | Trusted account, atomic single-row durable association, unique non-null account, conflict recovery and `/me` | Verified: original lifecycle assertions, simultaneous creation, trigger rollback, retry/lost response, restart/access |
| ADR-04 / access boundary | Framework opaque tickets with issue/expiry, 30-minute default, persistent scoped keys; normalized identities/policies; actual owner and assignments before validation/serialization; internal routes absent; no service-key trust | Verified: full patient/professional suites, expired/tampered/spoofed identity, provider replacement, real HTTPS/native restart |
| ADR-05 / read sequence | Shared repeatable-read from access lookup through immutable capture; Overview captures profile/latest/selected series, selects series once; releases before mathematical evaluation/transfer; no result cache/store | Verified: controlled concurrent commit test proves old coherent snapshot/new next request and released transaction |
| ADR-06 / Analytics/Guidance | Original Summary/Trend formulas and clinical branching retained; numerical/clinical policies separated; versioned Guidance reference/claim provenance; full-period/tie/sufficiency rules and disclosed narrative limits | Verified functional calculations/classifications/provenance. Independent clinical validity remains not verified, explicitly preserved under Q3 |
| ADR-07 / context lifecycle | Flattened observation-owned fields; independent AND/Unknown selections; original prose; omission/set/clear and whole-context clear; owner-scoped locked mutation/delete | Verified: original context/patch/delete suites plus controlled concurrent disjoint patches and schema default assertions |
| ADR-08 / native deployment | Fresh independently provisioned database; generated credentials/config/certificates/keys; transient provisioner; one dedicated systemd app; local or hostname-verified TLS DB | Verified actual Debian 12 systemd local/remote installation in isolated Linux environments; other families intended with command-contract tests, native execution not verified |
| §8 failures/resources | Bounded pooled connections and independent assessment admission; cancellation/deadline/rollback; no-store; sanitized logging; failure/absence distinctions; full untruncated history | Verified: deadline leaves state unchanged, 503/Retry-After budget and guidance independence, DB failures never become empty results; synchronous numerical methods retain boundary cancellation checks |
| §9 readiness/security | Protected config/private key/key ring; authenticated liveness/readiness; verified DB CA/hostname; no unnecessary local DB in remote mode; no overwrite | Verified: native certificate workflows, wrong hostname rejection, file-mode/overwrite checks and operational tests. Automatic certificate renewal/HA/production recovery remain outside scope |
Approved deviations: none. Pending incompatibility approvals: Q1 in [open-questions.md](open-questions.md). Any new necessary deviation requires explanation and approval before implementation.
## Revised US-16, approved Q1/Q5
Original clauses remain unchanged in Docs and original architecture tests remain in Reference. The approved proposal revision supplies the replacement acceptance meaning.
| Criterion | B evidence / status |
| --- | --- |
| AC-16-A | Complete app selected as the deployment unit; feature-service selection intentionally superseded. Native app install verified |
| AC-16-B | Modules one app process; PostgreSQL separately managed. App stop leaves DB ready, verified |
| AC-16-C | Complete one-app deployment, one HTTPS edge, typed internal calls. Native workflow verified |
| AC-16-D | Protected app/module configuration and independently configured DB endpoint, generated automatically; local/remote verified |
| AC-16-E | Same app supports separate verified-TLS PostgreSQL host; no feature-service distribution. Separate-host-namespace remote workflow and hostname rejection verified |
| AC-16-F | App and DB have independent lifecycles; features start/stop together. PID/restart/DB-during-stop verified |
| AC-16-G | One DB with distinct schema/migration ownership and DML role; no derived-result persistence. Grants/constraints/readiness verified |
| AC-16-H | Same module/communication/persistence responsibilities for both placements. Both native placements verified |
| AC-16-I | Actual app PID, trusted HTTPS, configured DB, representative synthetic operations, independent stop/restart and new PID verified |
Generated-password/roles, protected secret storage, certificate/trust/replacement, distribution dependency detection, migration, systemd enable/start, failure-stage diagnostics and overwrite protection are implemented. APT/DNF/pacman remote-mode tests prove local PostgreSQL commands are excluded; actual Debian remote installation confirms absence. Existing rules are retained when a scoped local SCRAM entry is added for the new B DB/role.
## Evidence limits
Native environments are disposable Debian 12 systemd instances sharing Manjaro kernel 7.1.13-2-MANJARO, not bare-metal/VM or measurement environments. .NET 10.0.13 / local PG 15.19 and remote PG 18.6 were recorded. Fedora/RHEL, Ubuntu, Debian 13 and Arch/Manjaro native installation remain intended/unverified despite adapter command tests. Clinical references/classifications are preserved with uncertainty/provenance, not newly clinically certified. Arbitrary narrative/negation is not understood beyond the unchanged detector and disclosed limits. Large full-history materialization and whole-process/DB-role failure/compromise scope remain approved tradeoffs, without capacity or HA claims. No live A import occurred; no energy improvement is claimed.