Files

12 KiB

Observable architecture decisions

These records describe existing choices. They are not new approvals or proposed ADRs. Documented rationale is stated in a repository document; inferred rationale/consequence is analysis of the code; unknown rationale means no reason was found. Each decision is verified independently from implementation evidence.

ID Implemented decision and evidence Rationale provenance Consequences / limits
AB-01 Five independent ASP.NET Core processes; no production service-to-service project references. Solution, release build Documented: independent boundaries and location-independent deployment in US-16 and service architecture Each service publishes/configures/stops separately. Availability dependencies still exist through HTTP.
AB-02 All business HTTP between services goes through Gateway. Observation, Insights, Overview Documented path in architecture correction and existing service diagram. Additional rationale beyond that choice is unknown. Inferred: extra hops and centralized availability/load; no direct aggregator-to-source shortcuts.
AB-03 Controllers explicitly forward requests using named HttpClients. Gateway Observation controller Unknown: no separate ADR explaining selection over a proxy library Routes/header handling are explicit; forwarding implementation is duplicated, and only selected response headers survive.
AB-04 Patient/Profile and Observation own separate PostgreSQL DBs/roles; context stored in same observation row. contexts, DB provisioning Documented independent ownership in addendum. Same-row context is documented in implementation README; original logical model explicitly permits physical mapping choices. No cross-service FK or DB joins. Context deletion is naturally row deletion. Optional preparation details do not require another table.
AB-05 Account association resides in patient.account_id, with unique index. migration, SQL repository Documented: authentication implementation explains single-row consistency and restart persistence Concurrent creation cannot produce two non-null associations for one account. Existing nullable legacy associations are not backfilled.
AB-06 Insights and Overview have no own DB/repository/result persistence. Insights application, Overview application Documented: Insights correction, Overview implementation New requests use current source data. No generated result ID/cache invalidation. Multi-service reads are not one snapshot.
AB-07 Framework protected opaque bearer tickets; password hashing only at login. login, accounts, startup Documented: authentication design separates credentials/token/policy, excludes custom crypto and repeated password verification. Concrete mechanism/lifetime recorded in AUTHENTICATION.md. No JWT issuer/audience configuration, identity server or refresh workflow. Default 30-minute expiry requires new login. Token keys are persistent local files.
AB-08 Gateway establishes ownership by protected HTTP reads and evaluates configured professional assignments. middleware Documented: authentication design requires actual owner lookup and separated access policy No ownership inside bearer token. Additional per-request lookup cost/dependency. Empty 404 hides cross-patient existence; professionals cannot write.
AB-09 Backend shared-key guards; distinct callback keys with GET-only whitelist. internal handler, backend Documented: AUTHENTICATION.md selects prototype protection satisfying gateway-only enforcement HTTPS protects key transport. Trusted backend incoming keys bypass end-user checks there; callback credentials have cross-patient access on their limited read routes. No mTLS or user delegation.
AB-10 Require HTTPS outside Development; disable HTTP redirects in business clients. Gateway Program, Observation Program HTTPS rationale documented in authentication design. Credential redirect protection documented in AUTHENTICATION.md. HTTP development is explicit. HTTP is rejected rather than automatically redirected; reverse-proxy forwarded-header support is absent.
AB-11 UTC clock values stored in timestamp-without-timezone columns; offset normalization. Observation application Documented in src README: preserve original TIMESTAMP design while making instants/offset-free interpretation deterministic Clients must interpret offset-free output as UTC. No local-zone interpretation or stored original offset.
AB-12 Inclusive selection, deterministic latest UUID tie; history sorted by measurement time/UUID. repository Requirements prescribe inclusivity and deterministic ties; concrete final UUID order documented in src README Recording/edit order cannot override measurement-time precedence. Equal timestamps remain valid. No pagination/size bound.
AB-13 Setter presence flags implement PATCH omission vs null; full numeric PUT remains. patch, repository Documented US-08 requires preservation/clearing. Exact mechanism rationale inferred: distinguishes omitted JSON members from explicit clearing without a patch library. Unknown PATCH/PUT fields rejected. No external JSON Patch dependency. No ETag/concurrency token.
AB-14 Decimal final-only summary rounding; timestamp-grouped direction and OLS trend; static sourced references. calculators Documented methods, clinical limits and cautious inference basis in TRENDS.md, required reproducibility in US-11 No prediction/significance test/diagnosis. Numerical evidence survives limited context; phrase detection cannot understand arbitrary narratives. Clinical applicability has not been independently validated by this task.
AB-15 Overview reads profile → latest → insight sequentially; context selection applies only to insight. application Selection distinction documented in US-12; lack of snapshot documented in OVERVIEW.md. Rationale for sequential execution is unknown. Partial absence can still return available profile/latest; source failure returns failure. Inferred: latency follows dependent calls and writes may interleave.
AB-16 External startup account/assignment config; no account/assignment administration API. accounts, assignments Documented prototype scope in US-13, US-14 No credential/assignment DB; changes require process restart. Existing token role/account claims are not rechecked against current account records every request.
AB-17 Portable framework-dependent DLLs plus OS-specific package/service adapters. build, Linux, Windows, macOS Documented in INSTALLATION.md: native deployment without combining processes, container requirement or host-generated apphost Target runtime/native administration remain platform-specific. Non-Debian Linux automation is absent. Native-host execution evidence is limited.
AB-18 Single generated topology plan; scoped SSH/SCP distribution; prototype CA + per-service certificates. prepare, distribute Documented normal-install automation in US-16 addendum, scoped distribution in INSTALLATION.md Compatible keys are automatic; separate independently prepared plans will not interoperate. CA signing private key is not retained. Admin access/network reachability still prerequisite.
AB-19 Fail closed on ownership/upstream failure; absent aggregate data distinguished from dependency failure. middleware, Overview controller Documented security requirement and Overview error contract 502/504 mapping, with generic 500 for some malformed ownership shapes. No resilience policy/circuit breaker.
AB-20 Generated PostgreSQL connections disable pooling and use SSL Prefer. Deployment.ConnectionString Unknown: no explicit rationale found for these settings Inferred: connection establishment recurs rather than using the driver pool; DB TLS is opportunistic rather than enforced. External configuration can change both.
AB-21 Complete verification creates/reuses synthetic patient/observation then reads overview. verification Documented in INSTALLATION.md, required representative workflow in US-16 Installation can leave labelled test data; it is not a read-only check. No automatic native stop/restart cycle.
AB-22 Public static guidance separate from observation writes. controller Documented in US-15 Available before records/login. No guidance read creates/certifies an observation. Sources are metadata, not runtime dependencies.

No rationale has been invented for absent caching, missing optimistic concurrency, default business HTTP timeouts or the lack of deployment rollback. These are observable properties/limits, not necessarily deliberate tradeoffs documented by the authors.