Implementation plan / Session plan / Handover RC-3-S13
Handover RC-3-S13 Build: Platform: gateways (FR-ISE-GWY-002)¶
Card: RC-3-S13. Issue: cema-care/his#69. Branch: session/RC-3-S13. Slice: RC-3. Decision record: ADR-HIS-108.
What was built and where¶
Everything is in platform/gateways/, except the decision record, its row in the decision record index, and this handover. The unit's platform/gateways/README.md has a new section, "The contract catalogue", with every operation, rule and setting.
Scope as read. The card covers FR-ISE-GWY-002, the API and event contract catalogue and its compatibility and deprecation policy, and TEST-ISE-008. It extends what RC-1-S12 built (the gateways, FR-ISE-GWY-001) and does not rebuild it. It meets the contract point of RC-3-S13 in contracts/ise/README.md, except where "Differences" below says otherwise.
What was built:
- The catalogue service
ise-gateways, made once from the service template (services/_template/new-unit.sh --into platform/gateways/catalogue ise-gateways MOD-ISE-002). - Module
mod-ise-002, packagecare.cema.his.ise.mod002, schemamod_ise_002, migrationV1__catalogue.sql, databaseise_gateways. - It serves all 10 operations of
contracts/isecontract-catalogue.v1:listContracts,readContract,readContractVersion;submitContractVersion;decideContractVersion;deprecateContractVersion;retireContractVersion;listContractConsumers,registerContractConsumer;readCapabilityStatement.
- It publishes ContractLifecycleChanged (EVT-ISE-015) on
his.ise.contract.v1, ordered per contract. - It audits every change, and every refused submission or retirement, as
ise.config.changed. - It asks the D10 decision point on
ise.Contract, with the owning domain, before every action. - It sends deprecation and retirement notices (
ise.deprecation-notice) to registered consumers through D10 notification.v1. Notices are queued in the transaction and sent again by a sweep until taken. - Every command is idempotent on Idempotency-Key.
- The compatibility checker
catalogue/checker/check.ts(Node.js 22.18 or later). The service runs it once per submission. It reads the contract folders at the submitted commit from a git mirror of the repository, and refuses a commit that is not merged to main. It loads and lints the owning domain's contract with the repository's own contract tool (his-contract, contracts/common) as merged to main, never the submitted commit's copy. It checks that the file is the named contract at that version and topic. Then it compares it with the previous published version's commit using the tool'scompareContracts. Its libraries (yaml, ajv, ajv-formats) are locked in its ownpnpm-lock.yaml, at the versions of contracts/common. - The unit's image
his/gatewaysfrom a new rootDockerfile: the JRE, the service, the checker with Node.js, and git. The pipeline's image scan now covers this unit. - The gateway publishes the catalogue at
/ise/v1/...on the internal gateway. A newmodel/apis.tomlentry has unitgateways, Tier 3, no patient data, and decisions, deprecations and retirements asupdate. The upstream address is inmodel/environments/reference.toml.rendered/reference/is re-rendered: the catalogue's 10 routes and its OpenAPI document; nothing else changed. ci.shnow also runs:- the checker's tests;
- the catalogue's Gradle build (unit, real-checker and contract tests) on the light profile.
It still runs the gateway's model check, rendering check, unit tests and test bed.
- The test bed gives the catalogue's unit an address (the echo unit). It publishes the catalogue at the partner gateway too, and a new class T06bCatalogue covers the routing.
Dependencies: the Java unit uses the template's dependencies only; its lockfiles were written with ./gradlew dependencies --write-locks. The checker's three libraries are new to this folder (catalogue/checker/package.json, pnpm-lock.yaml), at the versions contracts/common already uses. The Dockerfile's Node.js image is pinned by digest (node 22.23.5).
Checks and their result¶
The integration environment ran as HIS_SESSION=RC-3-S13 (his-rc-3-s13). The host's Node.js 22.22.1 does not strip TypeScript (as RC-3-S03 noted), so the checker and the contract tool ran in the pinned image node:22.18-bookworm, as the other platform units' tests do.
| Check | Command | Result |
|---|---|---|
| Checker tests | node --test test/*.test.ts in catalogue/checker (in the image) |
9 of 9 passed (after review round 1) |
| Catalogue build and every test | ./gradlew build in platform/gateways/catalogue (light profile) |
passed, also after review round 1. CatalogueTest 13, RealCheckerTest 1, CatalogueContractTest 2, Mod002ModuleTest 1; the kit and app tests also pass |
| Provider contract test | contract/CatalogueContractTest.providerContract, in the build |
his-contract verify contracts/ise of the 10 operations of contract-catalogue.v1, in four provider states: no case failed. validate-event of the ContractLifecycleChanged events published: passed |
| Consumer contract test | contract/CatalogueContractTest.notificationConsumer |
the deprecation notice against his-contract serve contracts/ess (notification.v1 requestNotification): no violation |
| Everything the pipeline runs for the unit | HIS_SESSION=RC-3-S13 platform/gateways/ci.sh |
passed: model checked (reference: 277 routes), rendering current, checker 8 of 8, catalogue build successful, gateway unit tests and test bed 52 of 52 (21 unit, 31 test bed, the two new T06bCatalogue cases among them) |
| Static analysis | platform/delivery-pipeline/bin/static-analysis platform/gateways |
no blocking finding. The first run flagged a message in check.ts with angle-bracket placeholders as HTML; the messages were reworded. Run with the checker's ignored node_modules moved aside, since the pipeline scans changed files only |
| Dependency scan | platform/delivery-pipeline/bin/dependency-scan platform/gateways |
0 blocking (4 medium); gate --coverage passed over 534 components. The first run found the two critical tinypool findings of contracts/common in a copy of the contract folders that the real-checker test left under build/. The test now keeps its scratch repository in the system's temporary folder and removes it, as RC-1-S12's test bed does |
| Image build and scan | platform/delivery-pipeline/bin/image-scan platform/gateways |
0 blocking; 15 low and 119 medium findings (git, Node.js and the JRE base) |
| Documentation links, site | check_links.py; mkdocs build |
0 broken, 0 duplicate anchors; builds with no new warning (the four warnings are earlier records' links to code folders) |
| Secret scan | platform/delivery-pipeline/bin/secret-scan code origin/main HEAD, secret-scan docs origin/main HEAD |
no secret found |
Requirements and test scenarios¶
Every test names its requirement and, where one exists, TEST-ISE-008: the JUnit @Tag and display name, the describe and test titles of the checker's tests, and the test bed's docstrings. Java tests are in platform/gateways/catalogue/mod-ise-002/src/test/java/care/cema/his/ise/mod002/.
| Requirement, criterion or scenario | Covered by |
|---|---|
| FR-ISE-GWY-002 AC-01: schemas, scopes, versions and lifecycle are discoverable | CatalogueTest.discoverable (search by text, kind, domain and status; every field of part 1; consumers; history); test bed T06bCatalogue.test_contract_catalogue_routed_to_its_service (through the internal gateway) |
| AC-02, PR-GWY-002-1: a breaking change submitted as a minor version is refused; only commits merged to main are checked, with main's contract tool | CatalogueTest.breakingChangeUnderMinorVersionRefused (refused, audited, not published; as a new major it is In Review); RealCheckerTest.realCompatibilityCheck (the real checker on a scratch repository: an operation removed under 1.1 is refused with the tool's finding, the compatible 1.1 is In Review); checker tests "a breaking change submitted as a minor version is classified breaking", "an event field no longer guaranteed ... is breaking", "a commit not merged to main is refused, and a submitter's own copy of the contract tool is never run" |
| AC-03: a deprecated version still works within the window, with a deprecation indication | The catalogue keeps it Deprecated with its sunset and successor (CatalogueTest.deprecation). At the gateway: RC-1-S12's T06Versions.test_deprecated_version_routed_with_indication, from the reviewed model (see "Differences") |
| AC-04, part 5, section 10: retirement with active consumers refused without approval, listing them; the approvals are the interface owner's and the Release Manager's own step-ups | CatalogueTest.retirementWithActiveConsumersRefused (made-up signature strings, the caller's own step-up, an old step-up, no second factor, the wrong role, one person for both: each refused; two verified approvers retire it, recorded by name and step-up identifier), inactiveConsumersAllowRetirement |
| Part 2: classification compatible, breaking or first-version | checker tests (first version, added operation compatible, breaking); RealCheckerTest |
| Part 3: a breaking change needs a new major; the previous one stays for the window | breakingChangeUnderMinorVersionRefused; deprecation (sunset at least the window) |
| Part 4, outputs: consumer inventory and deprecation notices | deprecation (each registered consumer is sent ise.deprecation-notice), noticesAreRetriedAndRegistrationIsIdempotent, retirementWithActiveConsumersRefused (retirement notice); CatalogueContractTest.notificationConsumer |
| Part 6: discoverable, with the FHIR capability statement | discoverable; capabilityStatement (from the facade; 503 when it is down or answers outside the contract) |
| Inputs and section 10: parses, passes the lint rules, scopes for an API, greater version, classification | submissionRules; checker tests "a schema that does not parse", "fails the lint rules", "the version, the name and the folder must be those of the contract at that commit", "a commit the repository does not hold ... is not a pass" |
| PR-GWY-002-2, CFG-ISE-002: the minimum window, unless an approved exception | deprecation (6 months internal), partnerFacingWindowAndException (12 months partner-facing; an exception reference is refused until it can be verified, Q3) |
| Section 3: actors and permissions | permissions (own domain only; the Integration Engineer decides; decision point down is 503); partnerView |
| Section 11: Draft, In Review, Active, Deprecated, Retired; a rejection needs a reason | lifecycle, deprecation, retirementWithActiveConsumersRefused |
| Section 12: publication, transitions and approvals recorded with actor, time and version | lifecycle (history, audit, events), breakingChangeUnderMinorVersionRefused (refusal audited), retirementWithActiveConsumersRefused (approvals in the history) |
| Sections 3 and 13: partners see only the contracts they may use | partnerView: published, partner-visible, and permitted by the decision point for that partner's client, per contract. A contract the partner is not entitled to is left out of its listing and refused when read (403); another partner client sees nothing. Test bed T06bCatalogue.test_partner_request_carries_the_partner_gateway (the gateway's mark reaches the catalogue; a caller cannot set it) |
| EVT-ISE-015 ContractLifecycleChanged | lifecycle, deprecation; CatalogueContractTest.providerContract (validate-event) |
| IF-ISE-001: idempotency, Problem errors | idempotent; every refusal asserts the Problem code |
| TEST-ISE-008 (publish a breaking change as a minor version; retire a version with active consumers: both refused; deprecation notice issued for valid deprecation) | breakingChangeUnderMinorVersionRefused, RealCheckerTest.realCompatibilityCheck, retirementWithActiveConsumersRefused, deprecation; CatalogueContractTest.providerContract |
| Contract tests | CatalogueContractTest.providerContract (10 operations), notificationConsumer |
Non-functional targets:
- NFR-ISE-005 security:
- the decision point on every request, and an outage is 503;
- errors without internal detail;
- non-root image with pinned bases;
- the checker runs with no shell and reads only the mirror;
- a check that cannot run is never a pass.
- NFR-ISE-009 interoperability: the catalogue is the place consumers find contracts, and its compatibility check is the repository's own.
- NFR-ISE-012 observability:
- the template's correlation, traces and ECS logs;
- his_catalogue_submissions_total{result} and his_catalogue_notices_pending.
- NFR-ISE-016 time integrity: UTC instants with Z, and windows measured in UTC.
- NFR-ISE-018 localization: no screen. The notice content is parameters for D10's template; Problem detail is English with a stable code.
The card has no "Safety" row.
Differences from the card, the specification or the contracts¶
No contract file changed.
- "Serve contract-catalogue.v1 from the contract folders." The catalogue takes the versions submitted to it, and checks every submission against the contract folders at its commit. It does not load the existing contracts in bulk.
- No contract folder holds a contract's owner, purpose, scopes, data classification or support contact, which DE-ISE-005 requires.
- Inventing them would put data into the catalogue that traces to nothing, as RC-3-S12 also found.
- Question Q1, and a follow-up with RC-3-S12's.
- Scopes "must exist in the D10 scope registry". D10 has no scope registry API in any contract. Scopes are required for an API and checked for form only (Q2).
- Active consumers. The contract defines
activeas "called or subscribed within the deprecation window". The catalogue has no feed of calls yet, so a consumer is active while its last registration is within the contract's minimum deprecation window. Registering again refreshes it. This errs toward refusing a retirement. A feed from the gateway's access log is a follow-up (ADR-HIS-108 point 5). - Retirement always waits for the sunset. Approvals of the interface owner and the Release Manager override active consumers, not the window. This reads part 3 ("the previous version shall remain available for the configured deprecation window") together with D02-ISE 4.3. An earlier retirement would need an earlier sunset, set with an approved exception (PR-GWY-002-2), which is refused until Q3 is answered.
- Retirement approvals are verified step-ups. A retirement with active consumers takes the two approvals as
{role, signatureId}(the contract'sRetirement). - Each
signatureIdis the access token of the approver's own step-up. It is verified as services/adm-identity verifies the second person of a merge. - The decision point decides each approver's role (
ise.contract.approve-retirement). - The approvals are by two people other than the caller, and each step-up signs one approval (ADR-HIS-108 point 4).
- Exceptions to the deprecation window are refused for now. PR-GWY-002-2 allows an earlier sunset "with an approved exception", but there is no record of approved exceptions to check a reference against, and the specification names no approver. Any
exceptionRefis refused (400) until Q3 is answered, so the window of CFG-ISE-002 always holds. This is stricter than the specification until then. - Partner view. The catalogue gives the partner view to a request forwarded by the partner gateway, marked
X-His-Gateway: partnerwith the client inX-His-Client. The gateway sets both headers and removes anyX-His-*header a caller sends. Which contracts a partner may use is decided by D10 per contract (ise.contract.readwithpartnerClient), since section 5.2.2 leaves authorization decisions to Domain 10. The catalogue holds no entitlement list of its own (ADR-HIS-108 point 7). The partner gateway does not publish the catalogue in the reference model yet: it publishes no partner API at all (RC-1-S12). The test bed shows the route. - Deprecation at the gateway. The
DeprecationandSunsetheaders of AC-03 still come from the gateway's reviewed model (RC-1-S12), not from the catalogue's lifecycle. A minor version of the catalogue is not something a caller can name at the gateway, which routes by major. Deprecating the last minor of a major in the catalogue is followed by the model change, in a reviewed pull request. Rendering the gateway's lifecycle from the catalogue is a follow-up. - FHIR profile contracts (
kind: fhir-profile) are accepted by the contract, but the checker cannot check them: the contract tool has no FHIR profile comparison. Such a submission is refused as invalid with that reason. They come with the facade (RC-3-S15) and a checker for profiles. - The capability statement is read from the facade at
/fhir/r4/metadatawhen asked. RC-3-S15 builds the facade, so until thenreadCapabilityStatementanswers 503 in a deployment. The tests use a fake facade.
Review round 1¶
The review asked for two fixes and kept one follow-up.
- The checker ran the submitted commit's contract tool, on any commit. A submitter could have made a breaking change pass PR-GWY-002-1 with a tool of its own, and run code in the catalogue service.
- The checker now refuses a submitted commit that is not merged to main (
git merge-base --is-ancestor;his.catalogue.checker.main-ref, defaultmain). - It runs main's contract tool, never the submitted commit's. A previous version's commit off main is "cannot check" (503).
- Test: the checker test "a commit not merged to main is refused, and a submitter's own copy of the contract tool is never run". The scratch repositories of the checker and Java tests now commit on
main. - The partner view was not limited per partner (sections 3 and 13).
- A listing through the partner gateway now asks the decision point
ise.contract.readfor each contract, with the partner's client (partnerClient, from the gateway'sX-His-Client), and leaves out those it denies. - Reads of one contract were already decided for that contract; they now carry the client too.
- Which contracts a partner may use is D10's decision (section 5.2.2), so no rule 3 question was needed. D10's policy content is a follow-up.
- Test:
CatalogueTest.partnerViewhas a partner-visible contract the partner is not entitled to, and a second partner client. - AC-03 stays covered at the gateway by RC-1-S12's model test; the follow-up to render the gateway's lifecycle from the catalogue is kept below.
ADR-HIS-108 points 2 and 7 and the unit README say the same.
Review round 2¶
The review asked for two controls to be verified rather than taken as text.
- Retirement approvals were unverified strings. Each approval is now the approver's own step-up, verified as services/adm-identity's
StepUp.verifySeconddoes: - the access token, validated like any bearer token;
- a person of the realm other than the caller, at aal2 within the step-up window;
- the decision point grants that person the role they approve as (
ise.contract.approve-retirement,approvalRole); - two different people, and a step-up used once (
V2__step_up_use.sql).
The approvers and step-up identifiers are recorded, never the tokens, and every refusal is audited (Approvals.java). CatalogueTest.retirementWithActiveConsumersRefused covers the review's case, made-up strings, and five other refusals. The kit's test tokens gained stepUp, as adm-identity's kit has it. The earlier statement that no signature can be verified is corrected above.
2. The deprecation exception was unverified text. No record of approved exceptions exists and the specification names no approver, so any exceptionRef is refused until question Q3 (posted on issue #69) is answered. partnerFacingWindowAndException covers it.
Merge with main¶
The branch was brought up to date with main, which had added ADR-HIS-109. - ADR-HIS-108 is still free on main and in every other open pull request, so it keeps its number. - The index keeps both rows. Its count is now 108, the number of rows it lists; main's said 106 for 107 rows. - Main changed no file of this unit, no contract and no template.
After the merge, the test bed's TEST-ISE-039 case (T11PolicyOutage.test_b_policy_service_outage, RC-1-S12's) failed twice on a host with load 31 on 4 processors.
- The downtime wording comes once the outage reaches 20 seconds. The gateway times the outage from the first failed decision, which came some seconds after the test's own start.
- The test now waits for the gateway's own outage metric to reach 20 seconds before the late request. The behaviour it asserts is unchanged.
- Since then, HIS_SESSION=RC-3-S13 python3 test/run.py --testbed: 31 of 31.
Review round 3¶
The pipeline's job for platform/gateways failed in the kit's own test, HttpPolicyDecisionClientTest, on a loaded build runner. A Permit was read as an outage because the template's test gives its client 300 ms.
- The unit's copy of that test now gives its client 2 seconds and its late answer 4 seconds. That is the copy platform/backup-recovery and platform/observability carry (handovers RC-3-S17 and RC-3-S09).
- The unit's own timeout stays 250 ms (CFG-ISE-031).
- ./gradlew build in platform/gateways/catalogue passes since.
Review round 4¶
The pipeline's job for platform/gateways failed twice. Both failures were in how ci.sh starts the integration environment on the self-hosted runners' loaded host; no test of the card failed.
- First run: the runner was shut down mid-run.
- Rerun: the test bed's his-env start full failed because Keycloak missed the environment's health deadline. Locally, at a load of about 30 on 4 processors, Keycloak needed 442 seconds to start, against about 5 minutes. Kafka's health check also kept timing out, though Kafka itself was running.
Changes, all in this unit:
- The test bed starts only what it uses (testbed.py, up): the light profile (PostgreSQL), then Keycloak and telemetry through his-env compose up -d.
- It waits itself, up to 15 minutes, until Docker reports both healthy (wait_healthy). Compose's own --wait gives up once Docker marks a slow container unhealthy, although Docker goes on checking.
- Kafka, the schema registry and OpenBao are not started, since the test bed uses none of them.
- ci.sh starts the light profile only for the catalogue's build.
- The test bed's Keycloak calls have a 30-second timeout, and the first admin sign-in five attempts of 60 seconds.
- A failed command started without capturing its output now says so, instead of raising AttributeError (sh).
Then, from a cold start: HIS_SESSION=RC-3-S13 platform/gateways/ci.sh passed, with checker 9 of 9, the catalogue build, and gateway unit tests and test bed 52 of 52. An earlier run of the new start-up at high load got the environment up and ran 50 of 52: the two misses were RC-1-S12's timing-sensitive gateway cases (a first 503 through the gateway, and requests too slow to reach a rate limit). The pipeline's job then passed on GitHub.
The integration environment's own health deadlines belong to FN-S02 (follow-up below).
Review round 5¶
The review asked for the questions to be complete and correctly stated: - "Questions for a person" has its heading back, its rows are in order, and Q3 is in the pull request's "Needs a person" list. An earlier edit of this handover had dropped the heading, and with it the review round 3 and 4 sections, which are restored above. - Q3's default is a deviation from PR-GWY-002-2, stated as such below and in the pull request: every exception reference is refused until the approval of exceptions is settled. - The major-version follow-up the review noted is under "Follow-ups outside the card".
Review round 6¶
The pipeline's job for platform/gateways failed on the round 5 commit, which changed only this handover. The shared host was at a load of 17 to 20 from other sessions' integration runs, the job took 28 minutes instead of 9, and four of RC-1-S12's timing-sensitive test bed cases failed. These are the two cases round 4 had already seen miss at high load, plus two more:
- T03, the rate limit: 4 callers at once did not exceed the client's 20 per second, so no request was limited. Each request waited on the stub decision service, and with 24 callers that stub fell behind instead.
- The flood now asks for a purpose its client is not registered for. The gateway counts such a request against the client's limit, then refuses it (403) before any policy decision. So 8 callers exceed the limit without waiting on the decision service.
- The case still checks that the burst of 50 is admitted, that the rest is refused with 429 and a retry indication, and that the other client's requests during the flood all succeed.
- T05, obligations; T11b, the outage's cached Permit: a call to the stub decision service took longer than the 250 ms timeout (CFG-ISE-031), so the gateway answered "authorization service unavailable".
- T05 is not about the timeout, so it now makes such a call again, at most three times (decided).
- T11b's assertion now shows the answer it got.
- T11a, the timeout: the call took 1.001 s against a bound of 1 s, which was the stub's own delay. The slow stub now answers after 3 s, and the bound is 2 s. Two 250 ms calls still pass well within it, and a gateway that waited for the stub would still fail.
No timeout or limit of the gateway changed; only the test bed did.
Review round 7¶
After the merge with main, the pipeline's job failed on T03 alone. The flood was all 403 and no 429: 180 requests took 11 seconds, about 16 a second, below the client's 20. Each request opened a new TLS connection, and on the loaded host the test's own client was the bottleneck.
T03 now no longer depends on how fast the host is:
- Kept-alive connections: three callers each keep one connection open (KeepAlive in support.py). With the other session that makes four at once, the share of the test bed's in-flight capacity of 8 that a Tier 4 route may use. Eight callers were shed with 503 (behaviour 9).
- Stop condition: they send until the limit has answered five times, or for at most 30 seconds.
- Assertions: as before, the burst of 50 is admitted and the rest is refused with 429 and a retry indication.
- The other client: its session sends at least one request during the flood. A decision call that timed out at 250 ms is made again (decided), since that is no effect of the flood.
- T12, the D10 contracts: in the local run, the stub D10 server that the case starts took more than its 20 seconds to come up on the loaded host. The case now waits up to 2 minutes, and says so if the stub never starts.
The flood now reaches the limit in about 1.3 seconds. An upper bound I tried found the gateway admitted 101 requests where the burst plus 20 a second allows about 77. That is RC-1-S12's limiter, not this card's, so the case does not assert it; it is a follow-up below.
Questions for a person¶
Posted on issue #69. None blocks this session. Q1 and Q2 have defaults that add nothing invented and refuse nothing the specification allows. Q3's default deviates from PR-GWY-002-2 until it is answered: deprecateContractVersion refuses every exceptionRef (400), so no exception to the CFG-ISE-002 window is possible, though the specification allows an approved one. That is the safe side of an access control: an unverified reference would let the deprecating caller skip the window alone.
| # | Question | Owner | What the catalogue does now |
|---|---|---|---|
| Q1 | DE-ISE-005 requires owner, purpose, scopes, data classification and support contact for every contract version. The contract folders hold none of these. Where should they live for the contracts that already exist, so that they can be loaded into the catalogue? For example, a block in each contract.yaml (a contracts/common change), or a register owned by the Integration Engineer |
Owner of D02-ISE; Integration Engineer | Takes them from each submission; loads nothing in bulk |
| Q2 | FR-ISE-GWY-002 inputs: each scope "must exist in the Domain 10 scope registry". No D10 contract offers a scope registry. Should D10 offer one, or are the scopes the policy resource and action codes the decision point already knows? | Owner of D02-ISE; owner of D10-ESS | Requires scopes for an API; checks their form only |
| Q3 | PR-GWY-002-2: a deprecation date earlier than the minimum window is "refused unless approved exception". Who approves such an exception, and where is the approval recorded, so that the catalogue can check an exceptionRef against it? For example, a step-up approval of the Release Manager given in the deprecation call, as the retirement approvals are |
Owner of D02-ISE; Release Manager | Refuses any exceptionRef; the window of CFG-ISE-002 always holds |
Needs a person¶
- Enterprise Architecture Board: approval of ADR-HIS-108.
- Q1, Q2 and Q3 above.
Follow-ups outside the card¶
- Bulk load and pipeline submission (with RC-3-S12's follow-up): once Q1 is answered, a pipeline step on main submits each changed contract (
submitContractVersion), and the existing contracts are loaded once. - D10 (runtime decision):
- register the actions
ise.contract.read,submit,decide,deprecate,retire,ise.contract-consumer.readandregisteronise.Contract, with a policy for them: owning domain for submission, the Integration Engineer for decisions; - the partner entitlement: which contracts each partner client (
partnerClient) may read through the partner gateway (partnerView); - the action
ise.contract.approve-retirementwithapprovalRoleinterface-owner (the interface owner of the contract's domain) and release-manager; - the kit has only single decisions. A listing for a partner asks once per contract; using
decideBatchof IF-ESS-003 would make that one call (service template follow-up); - create the service identity
ise-gatewaysfor the catalogue, with introspection, decision and notification rights; - register the notification type
ise.deprecation-noticewith a template for its content parameters:contractName,version,change,deprecatedAt,sunsetAt,successorVersion,retiredAt,supportContact. - Gateway (this unit, a later card):
- feed consumer activity from the access log: client and route, per version;
- render the version lifecycle (Deprecation, Sunset, retired) from the catalogue instead of the model;
- publish the catalogue's read operations at the partner gateway when partner APIs are published.
- Deployment of the catalogue: its Kubernetes objects (Deployment, Service, NetworkPolicy), a read-only mirror of the repository beside it (
his.catalogue.repository), and a writable temporary folder for the checker. Not rendered yet. - Integration engine (RC-3-S15):
readCapabilityStatementreads/fhir/r4/metadataof the facade (his.catalogue.facade.url). The catalogue validates that the answer is a FHIR R4 CapabilityStatement of kind instance. - Checker for FHIR profiles: with the facade's profile packs.
- Service template: the null-skipping audit detail helper and the
RequestBodyAdvicethat backup-recovery, observability and supply-chain already carry. The catalogue carries them too. - Integration environment (FN-S02): Keycloak's health check allows about 5 minutes and Kafka's check times out at 20 seconds; on the shared host at high load both are exceeded while the services are fine. Longer deadlines, or a lighter Kafka check, would spare every unit's test bed.
- Catalogue, major-version guard (review round 5, non-blocking): while a lower version of a new major is still In Review (for example 2.0), a submitted 2.1 is compared with the previous published version, of major 1. A breaking 2.0 to 2.1 change is then a "new major" against 1.x, and the PR-GWY-002-1 guard does not apply to it. The repository's own contract check on merge (
his-contract checkagainst main) still refuses that change before it can be submitted. Comparing with the highest lower version of the same major, whatever its status, would close it in the catalogue too. - Gateway rate limit (FR-ISE-GWY-001, RC-1-S12's limiter; review round 7): under a flood on eight kept-alive connections (a run where some were shed), the internal gateway admitted 101 requests of one session in 1.3 seconds, where 20 a second with a burst of 50 allows about 77. The likely cause is that
resty.limit.reqreads and then writes the shared counter, which is not atomic across nginx workers. A limiter with an atomic update (for exampleincron the shared dict) would hold PR-GWY-001-3 exactly, and T03 could then assert the upper bound. - Design system: none.