Implementation plan / Session plan / Gate evidence / RC-1 gate RC-1-S28-G3
Slice gate RC-1: evidence and report (round 3)¶
| 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-G3, which wrote none of the slice. Handover: RC-1-S28-G3. Round 1: RC-1-S28; round 2: RC-1-S28-G2. Where this lives: ADR-HIS-089 |
| Build | main at 61adcd9e, which includes the fixes of all 12 round-2 issues (RC-1-S28-F22 to F33, #274 to #284 and their follow-ons, all closed). The scenario and the folder tests ran on that commit, from a clean tree |
| Environment | Integration environment of session RC-1-S28-G3 (his-rc-1-s28-g3), full profile, on the shared session host (4 CPUs, 15 GB, Docker 29.9.3, Linux 7.0.0-38), shared with the self-hosted CI runners and other sessions. CPU steal time (vmstat st, 10 s samples) averaged 14% during the scenario runs (maxima 39 and 76) and 8% during the folder tests (maximum 40), against 67% in round 2. Synthetic data only |
| Date | 2026-12-02 |
| Result | Not passed. The record run stopped before its first case: since the contract catalogue (RC-3-S13) was published, the scenario's gateway environment gives the unit gateways no address, and the harness refuses to start the gateway (F34, #322). The gateway's own tests did not run either, because its rendering is stale on main (F36, #325). A diagnostic run with the missing address added passed 10 of 15 cases. The 5 failures are 503s from policy decisions over their 250 ms budget during steal spikes, and the audit quarantine fell from 1,420 events to 59. ess-governance still audits refused configuration actions without the item reference (F35, #323), and the gateway's purpose-of-use refusals wait for the question on #276. 18 of the 19 build folders pass, and every round-2 fix holds. D1 to D10 are decided (#232). 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 20261202T043830Z-dda6 |
The record run of e2e/scenarios/RC-1 with --fresh --strict --keep. It stopped before any case, so the harness wrote no evidence.json. The folder holds the console output (with the environment's three generated secrets redacted), the run context, the rendered gateway environment that failed, and the sums of the run folder. The logs and the provisioning secrets are left out, each listed with its sum |
In scenario/: sha256sum -c --ignore-missing SHA256SUMS.run-folder. scenario evidence check --strict on the run folder: FileNotFoundError (no evidence.json) |
Test scenarios and workflows (tests.json) |
The 49 test scenarios and 8 workflows of the gate, from the gate's build of 19 folders: 54 passed, 3 with no test. TEST-ISE-007 and 039 have none because the gateway's ci.sh stopped before its tests (F36), and TEST-ISE-001 has none because its card is RC-3-S24 (D1) |
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 and the signer's decisions, for the clinical owner to sign | — |
| Audit quarantine | The audit service's quarantine after each run, by emitter, type and reason, read from ess_audit: 2 after the record run (212 stored), 59 after the diagnostic run (2,876 stored) |
— |
The scenario run¶
The record, 20261202T043830Z-dda6 (04:38 to 04:43 UTC, clean tree at 61adcd9e). The stack started, the eight units started and the provisioning completed: 8 administrators, 12 service identities and 3 synthetic staff, with the decision service warm (the last 10 decisions within 100 ms). The harness then checked the gateway's model against the environment it renders for the run, and stopped:
scenario: the gateway's model does not check for this run: api ise.contract-catalogue: unit gateways has no address in environment e2e
RC-3-S13 (#264, 2026-12-01) added the API ise.contract-catalogue, served by the unit gateways itself, to platform/gateways/model/apis.toml. e2e/scenarios/RC-1/gateway/e2e.toml lists an address for every unit the model names (127.0.0.1:9 for those outside the stack) but not for gateways. No case ran. This is a defect of the scenario's wiring, owned by RC-1-S26: F34, #322. Steal averaged 14.1% (maximum 39, run queue 5.8).
The diagnostic run¶
To see past F34, the session ran the scenario again: 20261202T044614Z-9369, 04:47 to 05:02 UTC. It added the one missing line (gateways = "127.0.0.1:9") to the gateway environment, ran without --strict (so the record is marked dirty), and removed the line afterwards. It is a diagnostic: it is reported here and not committed as the record (ADR-HIS-089). Steal averaged 14.3%, with a minimum of 2 and a maximum of 76 at 05:00:10, when the run queue reached 66 (average 9.7).
| Case | Outcome | First error | Disposition |
|---|---|---|---|
| RC-1-E2E-001 registration through the gateway, with MFA sign-on | passed | — | — |
| RC-1-E2E-002 duplicate prompt, "unsure" | failed | the duplicate check got 503 at 05:00:13; the decision call timed out after 458 ms | Environment |
| RC-1-E2E-003 cross-facility search | failed | a person search got 503 at 05:00:18; the decision took 280 ms | Environment |
| RC-1-E2E-004 failure branches | passed | — | — |
| RC-1-E2E-005 contract walk | passed | — | — |
| RC-1-E2E-006 UI-ADM-001 | failed | the encounter failed: ess-reference's master data answered 503 after its own decision timed out (312 ms at 05:00:53), and the screen said "The service did not answer, so nothing was saved" | Environment |
| RC-1-E2E-007 UI-ADM-002 work list | failed | the review item it opens comes from 002, which failed | Environment (follows 002) |
| RC-1-E2E-008 backbone interface checks | passed | — | — |
| RC-1-E2E-009 IF-ISE-001 at the gateway | passed | — | — |
| RC-1-E2E-010 performance at twice the peak | failed | its last step, "stack ready again", got 503 on a duplicate check; the load steps ran (below) | Environment |
| RC-1-E2E-011 reliability under failure | passed | — | — |
| RC-1-E2E-012 degraded operation | passed | — | — |
| RC-1-E2E-013 recoverability | passed | — | — |
| RC-1-E2E-014 IF-ESS-012 in the stack | passed | — | — |
| RC-1-E2E-015 IF-ESS-014 in the stack | passed | — | — |
Every failure is a unit failing closed with 503 "Authorization service unavailable" because a policy decision took longer than its 250 ms budget (CFG-ISE-031, DEC-ESS-018). All of them fall in the spike around 05:00, and OPA itself answered in milliseconds then, so the time went in the starved processes, not the policy. No fix issue is filed for them: the code does what the specification asks. They wait for a host with dedicated CPU, as in round 2. 002 and 010 again show the scenario reading a 503 as TypeError (round 2's follow-up for RC-1-S26 and RC-1-S27).
The folder tests¶
run_tests.sh on the 19 folders, in this checkout at 61adcd9e, in one run, with the runners' Node 22.23.5 first in PATH (the host's Ubuntu Node has no TypeScript support): 18 passed, 1 failed. Steal averaged 8.2% (348 samples, maximum 40). The round-2 failures from starvation are gone, and the three units of F29 to F31 now run their contract tests in the shared checkout.
| Folder | Failed | What | Disposition |
|---|---|---|---|
platform/gateways |
build | ci.sh stops at its second step: bin/gateways render --env reference --check finds 5 rendered files stale (adm.patient-identity.v1.json, adm.registration.v1.json, ess.emergency-access.v1.json, ess.audit.v1.json, internal/apisix.yaml). The contracts changed after the last render (e35eef62, F24) in 76c92cfb (RC-4-S01, #310) and 4f3cae75 (F33, #321), and the pipeline runs the gateway's build only when its own folder changes. No test ran |
F36, #325, against RC-1-S12, as F7 was in round 1 |
Diagnostic, the gateway on a re-rendered copy. To see whether anything besides the stale rendering fails, the session ran bin/gateways render --env reference and then the gateway's ci.sh under its own session name, and reverted the render with git checkout afterwards. All 53 tests passed, the test bed's 32 among them: every TEST-ISE-007 and TEST-ISE-039 test, the policy outage with the 250 ms budget, and T12's contract checks. Steal averaged 13% (maximum 36). The round-2 failures of the test bed were therefore the host. This is a diagnostic: the record keeps the failed build, and F36 stands until the rendering on main is current.
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: fix issue | Record run: stopped before any case (F34). Diagnostic: 10 of 15, the rest 503s under steal spikes | #322; a host with dedicated CPU; then the clinical owner's signature |
| 2. The specification workflows pass end to end | Failed: not evidenced | Tests record: all 8 workflows pass in the units' tests. End to end, the record ran nothing; in the diagnostic WF-ADM-001 passed (001) | #322 |
| 3. The 49 test scenarios pass | Failed: fix issue | Tests record: 46 of 49 passed (54 of 57 with the workflows). TEST-ISE-007 and 039 have no result because the gateway's build stopped (F36). TEST-ISE-001 is moved to RC-3-S24 (D1, plan change #318) | #325 |
| 4. Every Must requirement meets its acceptance criteria | Failed | Traceability matrix: 27 met in tests, 10 partly (each under a decided waiver, a plan change, or a person), 1 not evidenced (FR-ISE-GWY-001, F36), 1 not met (FR-ESS-AUD-001) | #323, #325; the question on #276 |
| 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 (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: fix issue | As "done when" line 1. The record run needed a repair (the missing address) before any case could run; the diagnostic made it by hand, which this criterion does not allow | #322; a dedicated host; then the clinical owner signs the run |
| 2 | The specification workflows pass end to end | Failed: not evidenced | As "done when" line 2 | #322 |
| 3 | All 49 test scenarios pass (PRS 17.3) | Failed: fix issue | As "done when" line 3 | #325 |
| 4 | Every Must requirement meets its criteria or has a waiver (ACC-001) | Failed | Traceability matrix | #323, #325, #276; the clinical owner's signature |
| 5 | Identity safety scenarios pass (ACC-004) | Failed: not evidenced | IdentitySafetySetTest (TEST-ADM-031), routing and bands (TEST-ADM-003), the duplicate check (TEST-ADM-008), identifiers (TEST-ADM-010) and the status after "unsure" (F1) pass in services/adm-identity; UI-ADM-001's prompt tests pass. End to end: not in the record; in the diagnostic, 002 and 003 got 503 in the spike |
#322; 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 |
| 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¶
"Diagnostic" below means the diagnostic run, which is not the record. Nothing ran end to end in the record (F34).
| Interface | Outcome | This round | Waits for |
|---|---|---|---|
| IF-ADM-001 Patient identity API | Not evidenced in the record | Provider and consumer contract tests pass in the checkout (F29 fixed). Diagnostic: contract walk (005), registration (001) and the error branches (004) pass; 003's cross-facility search got 503 in the spike | #322 |
| IF-ADM-003 Encounter API | Not evidenced in the record | Contract tests pass (F30 fixed). Diagnostic: 001 and degraded operation (012) pass; 006 got 503 from master data in the spike | #322 |
| IF-ESS-001 Identity administration | Met in tests | The reconciliation of identity-source state passes (F20). Diagnostic: provisioning's joiners applied and activated | — |
| IF-ESS-002 Authentication | Not evidenced in the record | Reconciliation of authentication events passes in the unit. Diagnostic: MFA sign-on in 001 passes | #322 |
| IF-ESS-003 Policy decision | Not evidenced in the record | TEST-ESS-005 passes; every unit fails closed when a decision is late (the error handling). Diagnostic: single decisions p95 1.6 s, 818 of 1,000 within budget, under steal spikes. F13 checked: every alert rule is loaded into Grafana and fires on its induced condition, the policy-service one included (ends-when.sh step 10; step 1 got a fail-closed 503 in a spike) |
A dedicated host |
| IF-ESS-006 Terminology | Met in tests; NFR shortfall (environment) | TEST-ESS-015, 016 and the contract tests pass. Diagnostic: NFR-ESS-002 p95 117 ms against 100 ms, all 400 answered, in the spike | A dedicated host |
| IF-ESS-007 Master data and registry | Not evidenced in the record | TEST-ESS-019 to 021, 033 and the contract tests pass. Diagnostic: 015 passes; 006 got 503 from master data in the spike | #322 |
| IF-ESS-008 Audit | Failed | Contract tests pass in the checkout (F31 fixed). After the diagnostic, 59 events quarantined, from 1,420: adm-identity, adm-patient-administration, ess-reference, the backbone and ess-runtime-decision have none left (F22, F23, F26 to F28 hold). Left: 2 from ess-governance (refused configuration actions without resourceRef or recordNotCreated) and 57 ise.gateway.denied from 009's purpose-of-use refusals, with no decision because none is asked for (audit-quarantine.csv) |
#323; the question on #276 |
| IF-ESS-010 Workflow and task | Not evidenced in the record | TEST-ESS-028, 043 pass. Diagnostic: 007 could not run, because 002 failed | #322 |
| IF-ESS-012 Configuration | Not evidenced in the record | TEST-ESS-030, 031 pass. Diagnostic: 014 passes (consumers follow a configuration change through the gateway) | #322; #323 for its audit |
| IF-ESS-014 API catalogue and decision register | Not evidenced in the record | TEST-ESS-037 passes. Diagnostic: 015 passes | #322 |
| IF-ISE-001 Gateway ingress | Not evidenced: fix issue | The test bed did not run (F36). Diagnostic: 009 passes. The gateway issued its correlation identifier, refused the purpose and facility steps, and of a burst of 80, 56 were within the limit and 24 got 429 with Retry-After: 1.; on a re-rendered copy the test bed passes 32 of 32 (diagnostic) |
#325, #322 |
| IF-ISE-002 Event publish and subscribe | Partly | TEST-ISE-018 to 020 pass. Diagnostic: 008 (acknowledgement, replay, dead letter) and 011 (a consumer and then the broker stopped, nothing lost) pass. For units made from the template, D4 is moved to RC-4-S06 (#318) | #322 |
| IF-ISE-006 Security event forwarding | Waived | Not built: D10, waived until the RC-3 slice gate | — |
| IF-ISE-007 Platform operations API | Partly | Contract walk (diagnostic 005). Reconciliation and downtime windows: D10, waived until the RC-3 slice gate | — |
Fix issues filed (round 3)¶
Each issue's body carries its round, owner session and gate line. Its first comment holds the evidence. Round 2's twelve issues are all closed.
| Fix | Owner | Problem |
|---|---|---|
| #322 RC-1-S28-F34 | RC-1-S26 | The RC-1 scenario cannot start its gateway: its gateway environment gives the unit gateways no address since the contract catalogue (RC-3-S13) was published |
| #323 RC-1-S28-F35 | RC-1-S05 | ess-governance audits refusals of configuration actions (ess.cfg.item-type.register, ess.cfg.version.read, refused with decisionUnavailable) without the item reference or recordNotCreated, so they are quarantined (2 events in each run) |
| #325 RC-1-S28-F36 | RC-1-S12 | The gateway's rendered reference configuration is stale against the contracts on main, so platform/gateways/ci.sh fails before its tests |
F34 and F36 have one cause: a change in one folder (the gateway model, the contracts) breaks a file in another (a scenario environment, the gateway's rendering), and neither the pipeline nor the changing session checks that file. The handover records this as a follow-up for the pipeline's owner.
Decisions for the signer¶
D1 to D10 of round 1 are all decided (#232, closed; the signer's comment of 2026-12-02):
| No. | Decision | Effect on this gate |
|---|---|---|
| D2 | Waived until the RC-2 slice gate | FR-ADM-REG-001 AC-03 |
| D3 | Waived until the RC-3 slice gate | FR-ISE-PLT-001 AC-05, FR-ISE-PLT-004 AC-01 |
| D5 | Waived until the first gate run on an environment with a cluster | FR-ISE-NET-001 AC-03 |
| D6 | Waived until the RC-4 slice gate (consent: RC-2) | FR-ESS-AUZ-001 |
| D7 | Waived until the gate of the ordering slice | FR-ESS-MDM-003 AC-05 |
| D8 | Waived until the gate of the slice that delivers EVT-EBP-021 | FR-ESS-WFL-002 AC-06 |
| D9 | Waived until the RC-3 UAT | TEST-ADM-035 (ADT) |
| D10 | Waived until the RC-3 slice gate | IF-ISE-006; IF-ISE-007 reconciliation and downtime windows |
| D1 | Plan change #318: TEST-ISE-001 is on RC-3-S24 | FR-ISE-PLT-001, criterion 3 |
| D4 | Plan change #318: template event coverage is on RC-4-S06 | FR-ISE-EVT-001, 002; IF-ISE-002 |
This round adds no decision. One question under rule 3 is open and is not this session's to answer: what a gateway refusal made without asking for a decision (a purpose the client is not registered for) should carry in its audit event, on #276 (options A to C for the Security and Privacy Office with the D10 and D02-ISE owners). The 57 events it quarantines are pending that answer, not a fix issue.
Non-functional results¶
Measured in the diagnostic run, not the record, at 14% average steal with spikes to 76%. They are listed so that the next round can compare: round 2 measured at 67% steal, and round 1 at a lower steal still.
| Target | Measured | Outcome |
|---|---|---|
| NFR-ADM-001 search at the peak (p95 < 2 s, p99 < 5 s) | p95 105 ms, p99 154 ms at 10.0/s; 300 of 300 | Met |
| NFR-ADM-001 search at twice the peak | p95 734 ms, p99 1,089 ms at 19.9/s; 431 of 600 answered, 169 got 503 in the spike | Shortfall (environment) |
| NFR-ADM-001 registration save | p95 2,429 ms, p99 2,856 ms | Shortfall (environment, the spike) |
| NFR-ADM-001 encounter creation | p95 753 ms, p99 855 ms | Met |
| NFR-ESS-001 single decisions (p95 ≤ 50 ms, p99 ≤ 200 ms) | p95 1,611 ms, p99 2,127 ms at 50/s; 818 of 1,000 | Shortfall (environment) |
| NFR-ESS-002 code validation (p95 ≤ 100 ms) | p95 117 ms, p99 167 ms; 400 of 400 | Shortfall (environment, near the target) |
| NFR-ADM-002, NFR-ESS-003, NFR-ISE-002 event propagation (p95 < 5 s) | p95 589 ms over 10 encounters | Met |
| NFR-ADM-006, NFR-ISE-006 no acknowledged transaction lost | audit-service crash 8 of 8 kept; broker outage 5 of 5 acknowledged and published after recovery (011) | Met |
| NFR-ESS-008 audit coverage | nothing acknowledged lost; but quarantined events are not in the trail | Shortfall: #323, #276 |
| NFR-ADM-010, NFR-ISE-010 Tier 1 RTO and RPO | process crash: back in 15 s, RPO 0 (013). Restore from backup is MOD-ISE-009, a later slice | Shortfall: only the process crash is measurable (D3, waived until RC-3) |
| NFR-ADM-011 continuity in degraded operation | with ess-coordination, ess-audit and the backbone down, registration and encounter answer 201 (012) | Continuity met; downtime reconciliation (FR-ADM-FLW-003) is a later slice |
| NFR-ADM-004, NFR-ISE-004, NFR-ISE-015, NFR-ESS-005 capacity | one instance of each unit; no capacity model or target value yet | Not measurable here |
Waiting for people¶
| Who | What | Gate line |
|---|---|---|
| Service owner / platform | A gate environment with dedicated CPU, still: this round's average steal was low, but the spikes (to 76%, run queue 66) are enough to push decisions past 250 ms and fail cases. At least 8 CPUs and 16 GB, no runners or other stacks beside it. Also a Node.js with TypeScript support on hosts that run folder tests | Criteria 1 to 6 |
| Security and Privacy Office, with the D10 and D02-ISE owners | Answer the question on #276: what a gateway refusal made without a decision carries in its audit event | Criteria 4, 6 |
| Clinical owner | Signs the scenario run (ACC-002) on the round that passes, and the traceability matrix (ACC-001) | Criteria 1, 4 |
| 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 #322, #323 and #325 are merged, the next round's gate session runs the gate again and writes its own folder beside this one. Before it starts, it should:
- check that bin/gateways render --env reference --check passes in platform/gateways, and that every scenario gateway environment still checks against the gateway's model, since both broke this round through changes in other folders;
- record the host's steal time (vmstat 10, column st) during each run.
If #276 is answered by then, the gateway's purpose-of-use refusals should leave the quarantine empty.