Skip to content

Implementation plan / Session plan / Gate evidence / RC-1 gate RC-1-S28-G2

Slice gate RC-1: evidence and report (round 2)

Slice RC-1 Register a patient and open an encounter on the platform. Tier 1
Gate Slice gate RC-1, 8 criteria
Session RC-1-S28-G2, which wrote none of the slice. Handover: RC-1-S28-G2. Round 1: RC-1-S28. Where this lives: ADR-HIS-089
Build main at 1586d43 (after RC-1-S28-F20, #269), which includes the fixes of all 21 round-1 issues (#206 to #227, all closed). The scenario and the folder tests ran on that commit, from a clean tree
Environment Integration environment of session RC-1-S28-G2 (his-rc-1-s28-g2), full profile, on the shared session host (4 CPUs, 8 GB, Docker 29.9.3, Linux 7.0.0-38). The host is shared with the self-hosted CI runners and other sessions' stacks. CPU steal time averaged 67% during the scenario run (vmstat, 291 samples of 10 s; minimum 5, maximum 72) and 66 to 68% during the folder tests. Synthetic data only
Date 2026-11-30 to 2026-12-01
Result Not passed. On this host, the scenario could not show the slice working or failing. 14 of 15 cases failed, every one with a 503 from failing closed when a policy decision took longer than its 250 ms budget, which is the specified behaviour. One functional defect remains: audit events are still quarantined, filed as 7 fix issues (#274 to #280). The units' contract tests cannot install their tools in a checkout that has contracts/common installed, filed as 3 more (#282 to #284). D1 to D10 of round 1 are still undecided (#232). The next round needs a host with dedicated CPU. The gate is passed by the clinical owner's signature (ACC-002), not by this session

Records

Record What it holds How to check it
Scenario run 20261201T000308Z-fa9c (evidence.json) The 15 cases of e2e/scenarios/RC-1, run with --fresh --strict --keep. 1 passed and 14 failed. 88 of its 117 files are committed. The 14 Playwright traces, the 14 raw logs and evidence.md are left out, each listed with its sum and reason in the scenario README In scenario/: sha256sum -c --ignore-missing SHA256SUMS. On the complete run folder, scenario evidence check --strict gave "failed; record incomplete (15 test cases, approval pending)". The 11 failed cases have no defect reference, and the logs changed after the record (--keep)
Test scenarios and workflows (tests.json) The 49 test scenarios and 8 workflows of the gate, from the gate's build of 19 folders: 24 passed, 14 failed, 18 inconclusive, 1 with no test. Every failure, and every build failure behind an "inconclusive", is a timeout or fail-closed 503 under starvation (below) sha256sum -c SHA256SUMS in tests/; to run again, the commands of the gate evidence README ("Tools")
Traceability matrix The 40 requirements with this round's results, for the clinical owner to sign —
Audit quarantine The audit service's quarantine after the run, by emitter, type and reason: 1,420 events quarantined and 1,687 stored, read from ess_audit —

The scenario run

Three attempts, all from a clean tree at 1586d43: 1. 20261130T182109Z-1724 stopped before any case. Keycloak was reported unhealthy while it built itself at a load average of 20, which took 224 s. 2. 20261130T183205Z-17d6 failed 14 of 15. The host was at 43 to 64% steal with 6.4 of 8 GB of swap in use. Eight Java processes that the F20 session left behind held 2.2 GB, although that session's environment was gone. The repository owner approved stopping them, and they were stopped. 3. 20261201T000308Z-fa9c is the record. It ran at the repository owner's request without waiting for a quiet host, because nothing on the host lowers the steal, which comes from the hypervisor. Started 00:03:25Z, finished 00:51:12Z.

In attempt 3: - The policy decision calls timed out 1,435 times (p50 820 ms, p95 25.4 s, max 27.1 s): adm-identity 972, ess-reference 395, ess-governance 44, adm-patient-administration 20, the backbone 4. - ess-runtime-decision logged "OPA unreachable: HttpTimeoutException" 1,272 times. - OPA itself answered with p50 105 ms, p95 1.9 s, p99 3.3 s and max 5.4 s: 1,782 answers for 3,560 requests. It has no CPU limit, and its policies did not reload in a loop (2 loads). - The run queue averaged 37 on 4 CPUs.

Every unit refused rather than guessed: 503 "Authorization service unavailable" or "… service unavailable", never a grant (DEC-ESS-018, CUX-67). That is the behaviour the specification asks for. It also means no functional step could complete.

Case Outcome First error Disposition
RC-1-E2E-001 registration through the gateway failed 503 from the identity service at step 3 Environment
RC-1-E2E-002 duplicate prompt, "unsure" failed the duplicate check returned 503, so the scenario read no prompts (TypeError at prompts.map) Environment
RC-1-E2E-003 cross-facility search failed 503 at the facility B registration Environment
RC-1-E2E-004 failure branches failed 503 where 403 was expected Environment
RC-1-E2E-005 contract walk passed — —
RC-1-E2E-006 UI-ADM-001 failed "No possible duplicates were found." never shown Environment
RC-1-E2E-007 UI-ADM-002 work list failed task list calls not all 200 Environment
RC-1-E2E-008 backbone interface checks failed 503 on the search that starts it Environment
RC-1-E2E-009 IF-ISE-001 at the gateway failed 503 where 403 was expected (facility step) Environment
RC-1-E2E-010 performance at twice the peak failed duplicate check 503 (TypeError) Environment
RC-1-E2E-011 reliability under failure failed as 010 Environment
RC-1-E2E-012 degraded operation failed encounter 503 Environment
RC-1-E2E-013 recoverability failed as 010 Environment
RC-1-E2E-014 IF-ESS-012 in the stack failed 503 on validate through the gateway Environment
RC-1-E2E-015 IF-ESS-014 in the stack failed 503: master data unavailable Environment

The record's case-level defect references (#40 on 002 and 007, #220 on 009) were written by the scenario's authors. They point to closed issues and do not explain this run's 503s.

No fix issue is filed for these cases, because no session of the slice could change them: the code fails closed as it must. They are recorded failures waiting for a person, who must provide a gate environment with dedicated CPU. A Tier 1 scenario cannot be waived (ACC-002).

The folder tests

run_tests.sh on the 19 folders, on commit 1586d43: 7 folders passed and 12 failed. Two causes outside the slice's code had to be separated first: - The host's Node.js cannot run the contract tool. /usr/bin/node is Ubuntu's nodejs 22.22.1, installed on 2026-11-26 and built without TypeScript type stripping (process.features.typescript is false). Every host-side his-contract call fails with ERR_UNKNOWN_FILE_EXTENSION ".ts". The pipeline is not affected, because it installs Node with actions/setup-node. platform/observability and services/ess-reference were therefore run again with the runners' official Node 22.23.5, and all their tests pass. - Three units' contract tests cannot install their tools in the checkout. adm-identity, adm-patient-administration and ess-audit copy contracts/ into their tools container with the host's contracts/common/node_modules. pnpm then aborts with ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY. Fix issues #282 to #284. The three folders were run from a git archive export of 1586d43, where their contract tests pass. The tests record holds that run.

What still fails, all at 66 to 68% steal:

Folder Failed What Disposition
platform/event-backbone 1 TEST-ISE-018 consumer isolation: 8.04 s against a 5 s bound Environment; passed in the pipeline (#254)
platform/gateways 22 Test bed decision calls timed out, so 503 where 200, 400 or 403 were expected (TEST-ISE-007, 039) Environment; passed in the pipeline (#243)
platform/secrets-keys 3 Server start timed out; kit check Environment
platform/supply-chain, services/adm-identity, services/adm-patient-administration, services/ess-audit, services/ess-governance 1 to 2 each Kit check HttpPolicyDecisionClientTest and LateDecisionTest: the stub must answer within a 300 ms timeout Environment
web/domains/adm 12 UI-ADM-000, 001, 006, 011, 012: 5 s and 30 s timeouts, then elements not found Environment; passed in the pipeline (#266)
web/domains/ess 7 UI-ESS-002, 010, 011: 20 s timeouts, and elements not found within Testing Library's wait Environment; passed in the pipeline (#230)
web/domains/ise 5 UI-ISE-007, 008: 5 s timeouts, then a duplicate element left by the timed-out test Environment; run alone with longer timeouts, every test passes (diagnostic); passed in the pipeline (#245)

Since round 1, TEST-ESS-005 (F6), TEST-ISE-029 (F8) and WF-ISE-002 (F21) pass.

The "done when" lines of the slice

"Done when" line (slice RC-1) Outcome Evidence Waits for
1. The scenario passes end to end in an integrated environment, with owner approval by the clinical owner (ACC-002, Tier 1) Failed: not evidenced (environment) Scenario run: 1 of 15. The F10, F11 and F12 fixes are in place: the stubs started, and the scenario goes through the gateway with ess-governance in the stack. No step past the first decision completed A host with dedicated CPU for the next round (service owner / platform). Then the clinical owner's signature
2. The specification workflows pass end to end Failed: not evidenced (environment) Tests record: WF-ESS-001, 005, 007, 008 and WF-ISE-002 pass. WF-ESS-006 failed on UI-ESS-011 timeouts. WF-ADM-001 and WF-ISE-007 are inconclusive from build failures under starvation, with every naming test passing. WF-ADM-001 end to end (RC-1-E2E-001) failed with 503 Re-run on a dedicated host
3. The 49 test scenarios pass Failed Tests record: 24 passed, 14 failed, 18 inconclusive, 1 no test. Every failure is a timeout or fail-closed 503 under starvation. TEST-ISE-001 has no test (D1) Re-run on a dedicated host; #282 to #284 so the folders run in one checkout; decision D1
4. Every Must requirement meets its acceptance criteria Failed Traceability matrix: 15 met in tests, 11 partly (decisions), 12 not evidenced (environment), 1 not met (FR-ESS-AUD-001) #274 to #280; D2 to D9; re-run
4 (second part). The scenarios of the slices this one comes after still pass Passed (nothing to run) RC-1 comes after no slice —
5. The downtime procedure and restoration reconciliation have been rehearsed (ACC-007) Not evidenced: pending people No exercise has been held since round 1 (downtime procedure) The departments that use the workflow, and the service owner

The criteria of the slice gate

No. Criterion Outcome Evidence and what fails Waits for
1 Scenario passes with no manual repair between domains (ACC-002) Failed: not evidenced (environment) As "done when" line 1. No manual repair was made: the fresh checkout started the stack and the stubs by itself A dedicated host; then the clinical owner signs the run
2 The specification workflows pass end to end Failed: not evidenced (environment) As "done when" line 2 A dedicated host
3 All 49 test scenarios pass (PRS 17.3) Failed As "done when" line 3 A dedicated host; #282 to #284; D1
4 Every Must requirement meets its criteria or has a waiver (ACC-001) Failed Traceability matrix #274 to #280; D2 to D9; the clinical owner's signature
5 Identity safety scenarios pass (ACC-004) Failed: not evidenced (environment) IdentitySafetySetTest (TEST-ADM-031), routing and bands (TEST-ADM-003), the duplicate check (TEST-ADM-008 in the unit) and identifiers (TEST-ADM-010) pass in services/adm-identity. The status after "unsure" (F1) passes in the unit's tests. RC-1-E2E-002 and 003, which show it end to end, failed with 503. UI-ADM-001's duplicate prompt tests timed out A dedicated host; HIM / registration governance and the clinical safety officer review the identity safety report
6 Each interface shows acknowledgement, error handling, replay, reconciliation and monitoring (ACC-005) Failed Below Fixes below; a dedicated host; D10
7 Downtime procedure and reconciliation rehearsed (ACC-007) Not evidenced: pending people As "done when" line 5 The departments
8 Scenarios of earlier slices pass on the same build Passed (nothing to run) RC-1 comes after no slice —

Criterion 6, interface by interface

Interface Outcome This run Waits for
IF-ADM-001 Patient identity API Not evidenced: environment Contract walk passes (RC-1-E2E-005). The provider contract test passes in the clean export, version 1.1 included (F2 fixed). Errors and outage end to end (004) got 503 where 403 was expected Dedicated host; #282
IF-ADM-003 Encounter API Not evidenced: environment Contract walk passes (005); consumer and provider contract tests pass in the export. End to end (001, 006, 010 to 013) 503 Dedicated host; #283
IF-ESS-001 Identity administration Not evidenced: environment F20 fixed: the reconciliation of identity-source state passes in services/ess-runtime-decision (280 tests, none failed). End to end not reached Dedicated host
IF-ESS-002 Authentication Not evidenced: environment F20: reconciliation of authentication events after an outage passes in the unit. Sign-on in the scenario's provisioning ran; the steps after it got 503 Dedicated host
IF-ESS-003 Policy decision Not evidenced: environment Fails closed under load in every unit: the error handling holds, at scale. TEST-ESS-005 passes (F6). Kit check's 300 ms tests failed on the host. F13's alert rule not re-verified Dedicated host; F13 check on the full profile
IF-ESS-006 Terminology Not evidenced: environment TEST-ESS-015, 016 pass; contract tests pass with the runners' Node. NFR-ESS-002 p95 39.0 s under starvation Dedicated host
IF-ESS-007 Master data and registry Not evidenced: environment TEST-ESS-019 to 021, 033 and the contract tests pass. RC-1-E2E-015 got 503 from master data Dedicated host
IF-ESS-008 Audit Failed Contract test passes in the export. 1,420 events quarantined from 7 emitters. Outage refusals go under the unregistered access-check-unavailable, or as failure without decisionUnavailable, and some success events lack required fields (audit-quarantine.csv). Round 1's F15 to F19 types are no longer quarantined #274 to #280; #284
IF-ESS-010 Workflow and task Not evidenced: environment TEST-ESS-028, 043 pass; RC-1-E2E-007's task list got 503s Dedicated host
IF-ESS-012 Configuration Not evidenced: environment F12 fixed: ess-governance is in the stack. RC-1-E2E-014 got 503 on validate through the gateway. 12 ess.cfg.item events quarantined (#277) Dedicated host; #277
IF-ESS-014 API catalogue and decision register Not evidenced: environment RC-1-E2E-015 got 503 from master data; TEST-ESS-037 passes Dedicated host
IF-ISE-001 Gateway ingress Not evidenced: environment F7 and F11 fixed: the scenario goes through the gateway, which issued its correlation identifier (RC-1-E2E-009). Its facility step and the test bed's T12 got 503. 12 ise.gateway.denied events quarantined (#276) Dedicated host; #276
IF-ISE-002 Event publish and subscribe Partly TEST-ISE-019, 020 pass; TEST-ISE-018 latency failed under starvation; RC-1-E2E-008 and 011 not reached. Template units publish without the gate D4 (issue #27); dedicated host
IF-ISE-006 Security event forwarding Not built RC-3 D10
IF-ISE-007 Platform operations API Partly Contract walk (005). Reconciliation, downtime windows and export are RC-3 D10

Fix issues filed (round 2)

Each issue's body carries its round, owner session and gate line. Its first comment holds the evidence. Round 1's 21 issues are all closed.

Fix Owner Problem
#274 RC-1-S28-F22 RC-1-S08 adm-identity audits outage refusals as failure without decisionUnavailable, and refused changes without recordNotCreated (934 events)
#275 RC-1-S28-F23 RC-1-S09 adm-patient-administration: the same on the outage path (20 events)
#276 RC-1-S28-F24 RC-1-S12 The gateway's ise.gateway.denied lacks the decision or the marker (12)
#277 RC-1-S28-F25 RC-1-S05 ess-governance: ess.cfg.item without the version and before and after values (12); outage refusals under access-check-unavailable (45)
#278 RC-1-S28-F26 RC-1-S06 ess-reference: outage refusals under access-check-unavailable (380)
#279 RC-1-S28-F27 RC-1-S13 The event backbone: the same (4)
#280 RC-1-S28-F28 RC-1-S16 ess-runtime-decision: service-identity misuse without affectedComponent (11); access-check-unavailable (2)
#282 RC-1-S28-F29 RC-1-S08 adm-identity's contract tests cannot install their tools when contracts/common/node_modules exists
#283 RC-1-S28-F30 RC-1-S09 adm-patient-administration: the same
#284 RC-1-S28-F31 RC-1-S04 ess-audit: the same

access-check-unavailable is the default of the service kit's AuditProperties.unavailableEventType, which every unit inherited from services/_template. Each unit's copy is fixed by its own session. The template itself is a follow-up for its owner (handover).

Decisions for the signer

D1 to D10 of round 1 ("Decisions for the signer") stand unchanged, and none has been decided. They are still tracked in #232 (label gate-decision), so this round opens no new decisions issue. This round adds no decision. A gate environment with dedicated CPU is a request to people (below), not a waiver: a Tier 1 scenario cannot be waived.

Non-functional results

These were measured in the scenario run at 67% steal, with a run queue of 37 on 4 CPUs. They say nothing about the system, only about this host. They are listed so that the next round can compare.

Target Measured in this run Outcome
NFR-ADM-001 search at twice the peak p95 39.7 s, p99 40.7 s at 10.9/s; 0 of 600 answered, all 503 (decisions over 250 ms fail closed) Shortfall (environment)
NFR-ADM-001 at the peak p95 4.3 s; 0 of 300 Shortfall (environment)
NFR-ADM-001 registration; encounter p95 2.7 s; no encounter completed Shortfall (environment)
NFR-ESS-001 single decisions p95 34.2 s; 112 of 1,000 answered Shortfall (environment)
NFR-ESS-002 code validation p95 39.0 s; 0 of 400 Shortfall (environment)
NFR-ESS-005 18.8/s; not measurable Not measurable here
Event propagation, no loss, degraded operation, RTO not reached (cases 010 to 013 stopped at their first 503) Not evidenced

Round 1, at much lower steal, measured search p95 376 ms and single decisions p95 85 ms. The decision cache in the kits, which would honour the 60-second Permit (CFG-ESS-009), would most likely make the units less sensitive to a slow decision point (RC-1-S26, follow-ups).

Waiting for people

Who What Gate line
Service owner / platform A gate environment with dedicated CPU (no hypervisor steal, no CI runners or other stacks beside it), so the next round can show the scenario. At least 8 CPUs and 16 GB for the full profile with eight units, the gateway and Playwright. Also a Node.js with TypeScript support on any host that runs the folder tests: the session host's Ubuntu Node has none Criteria 1 to 6
Clinical owner Signs the scenario run (ACC-002) on the round that passes, and the traceability matrix (ACC-001) with the waivers decided Criteria 1, 4
Requirement owners, with the clinical owner Decide D1 to D10 (#232) Criteria 3, 4, 6
HIM / registration governance, clinical safety officer Review the identity safety evidence (ACC-004) Criterion 5
The departments that use the workflow; service owner Rehearse the downtime procedure and restoration reconciliation (ACC-007) Criterion 7
A repository administrator Confirms that a direct push to main is refused (TEST-ISE-023) Criterion 4
Enterprise Architect, Security Engineer Approve dependency register entries (FR-ISE-SUP-001); confirm supported-until dates (FR-ISE-SUP-003) Criterion 4

This round fails, so no signature is due on it.

The next round

Once #274 to #284 are merged and a host with dedicated CPU is available, the next round's gate session runs the gate again and writes its own folder beside this one. Before it starts the scenario, it should check the host's steal time (vmstat 10, column st) and record it.