Skip to content

Implementation plan / Session plan / Handover RC-1-S28-G2

Handover RC-1-S28-G2 Gate evidence: Slice gate evidence, round 2

Card: RC-1-S28-G2. Issue: cema-care/his#210. Branch: session/RC-1-S28-G2. Slice: RC-1. Decision record: ADR-HIS-089, followed as round 1 left it. No new record.

Comes after RC-1-S28-F1 to RC-1-S28-F21, all merged; the build is main at 1586d43. It read round 1's handover RC-1-S28 and report. This session wrote none of the slice.

What was built and where

Only evidence, in gate-evidence/RC-1/RC-1-S28-G2/, in ADR-HIS-089's layout: - README.md, the gate report: each "done when" line, each criterion, the criterion 6 interfaces, the fix issues, the decisions and the non-functional results; - scenario/, the harness record of run 20261201T000308Z-fa9c: 88 of 117 files, with the left-out files listed with their sums; - tests/, written by collect_tests.py; - traceability.md; - audit-quarantine.csv.

Its row is in the gate evidence index. Round 1's folder is unchanged. No code was changed.

The result

Not passed. The headline for the signer: the host's CPU steal time averaged 67% during the scenario run (vmstat st, 291 samples of 10 s, minimum 5, maximum 72), and 66 to 68% during the folder tests (388, 92 and 112 samples). Under that load, policy decisions took longer than their 250 ms budget (p95 25.4 s), and every unit failed closed with 503, as DEC-ESS-018 requires. As a result: - Scenario: 1 of 15 cases passed, the contract walk. The other 14 stopped at their first 503. That is no evidence either way about the slice's behaviour, so no fix issue was filed for them. They are recorded failures waiting for a host with dedicated CPU. Every timing in the record (NFR p95s of 2.7 to 39.7 s) reflects the host, not the system. - Folder tests: every failure is a timeout or a fail-closed 503 under the same load. The trees that failed passed in the pipeline on their last pull request (#230, #243, #245, #254, #266). - Real defects found: - Audit events are still quarantined: 1,420 events from 7 emitters, mainly outage refusals under the unregistered type access-check-unavailable or as failure without audit.v1 1.2's decisionUnavailable. Filed as RC-1-S28-F22 to F28, #274 to #280. - Three units' contract tests cannot install their tools in a checkout where contracts/common is installed. Filed as F29 to F31, #282 to #284. - Repaired since round 1, confirmed in this run: - F2: version 1.1 served; contract test passes. - F3 to F5: Tier 1. - F6: TEST-ESS-005. - F8: TEST-ISE-029. - F10: the stubs start on a fresh checkout. - F11: the scenario goes through the gateway. - F12: ess-governance is in the stack. - F15 to F19: none of those audit types are quarantined. - F20: the reconciliation tests pass. - F21: WF-ISE-002.

F1 passes in the unit's tests but could not be shown end to end. F13 was not re-checked (below). - Decisions: D1 to D10 are unchanged and undecided in #232.

Checks and their result

Check Command Result
Scenario, attempt 1 HIS_SESSION=RC-1-S28-G2 e2e/harness/scenario run e2e/scenarios/RC-1 --fresh --strict --keep 20261130T182109Z-1724: his-env start full failed: Keycloak unhealthy (224 s to build at load 20)
Scenario, attempt 2 same 20261130T183205Z-17d6: 1 of 15. 43 to 64% steal, swap 6.4 of 8 GB, eight orphaned F20 JVMs (2.2 GB)
Scenario, attempt 3 (the record) same 20261201T000308Z-fa9c: 1 of 15, at 67% steal. scenario evidence check --strict: "failed; record incomplete (15 test cases, approval pending)" (11 failed cases without defect reference; logs changed after the record because of --keep)
Committed record sha256sum -c --ignore-missing SHA256SUMS in scenario/ OK, 88 files
Secret scan The pipeline's Gitleaks image (v8.30.1, default rules, --max-archive-depth 5) on the session's folder 0 findings. On the full run folder there were 14,941 findings, all in the 28 copies of the traces (jwt, generic-api-key) and in provision/users.json and sign-ons.json, none of which is committed
Folder tests HIS_SESSION=RC-1-S28-G2 docs/implementation_plan/delivery/gate-evidence/tools/run_tests.sh <results> <19 folders> 7 passed, 12 failed (report)
Folder tests, again The same for platform/observability and services/ess-reference, with PATH led by the runners' Node 22.23.5 Both pass (the host's Ubuntu Node has no TypeScript support)
Folder tests, export The same for adm-identity, adm-patient-administration and ess-audit, in a git archive 1586d431 export Contract tests pass; only the kit check's 300 ms tests fail
Diagnostic pnpm exec vitest run UI-ISE-007 UI-ISE-008 --testTimeout=120000 --hookTimeout=120000 in web/domains/ise All pass. The ESS screens still failed within Testing Library's wait at this load. A diagnostic only, not the record
Tests record collect_tests.py --slice RC-1 --results <combined> --out …/tests --notes notes.json 24 passed, 14 failed, 18 inconclusive, 1 no test. Each non-passing scenario has a note giving its cause
Audit quarantine psql on ess_audit, mod_ess_006.quarantine_entry, grouped by emitter, type, reason and errors 1,420 quarantined, 1,687 stored
Documentation python3 docs/implementation_plan/tools/check_links.py; .venv/bin/mkdocs build Both pass

The combined results directory takes 14 folders from the first run in the checkout, 2 from the re-run with the runners' Node, and 3 from the export. tests.md says so under "Environment".

Not done: F13 asked the next gate to repeat step 10 of platform/observability/scripts/ends-when.sh, every alert rule loaded into Grafana and fired. That script builds the unit, runs TEST-ISE-030 end to end on the full profile and resets the environment. At this steal it would have measured the host, so it is left to the next round on a dedicated host. The unit's own tests, contract tests included, pass.

Requirements and test scenarios of the card

The card has no requirement of its own. It covers every "done when" line of RC-1, the 8 criteria, the 49 test scenarios and 8 workflows, and the 40 requirements. Their outcomes are in the report, the tests record and the traceability matrix.

Differences from the card, specification or contract

  • Environment failures have no fix issue. The card files each failure "against the session that owns it". A 503 from failing closed on a starved host belongs to no session, because the code does what the specification asks. ADR-HIS-089 has a third disposition, pending a person, and these failures use it: a host with dedicated CPU is a request to the service owner or platform. Filing them against the unit sessions would send them to repair correct code.
  • Folder results from three runs. Round 1 ran every folder from a git archive export. This round ran in the checkout, as the gate evidence README describes. It re-ran two folders with a Node that can run the contract tool, and three from an export because of #282 to #284. All five are the same commit.
  • Stopping another session's processes. Eight Java processes left by the RC-1-S28-F20 session were still running from /root/cema-care-wt/RC-1-S28-F20, although its environment was gone. With the repository owner's approval, they were stopped (six needed kill -9).
  • Run without waiting for a quiet host. At the repository owner's request, relayed by another session, attempt 3 started without waiting for the steal to fall, because nothing on the host lowers it. The steal measured during the run is recorded beside every result, as asked.

Questions for a person

None blocks the session. The gate itself waits for people, listed in the report: - Service owner / platform: a gate environment with dedicated CPU (at least 8 CPUs and 16 GB, no runners or other stacks beside it), and a Node.js with TypeScript support on hosts that run folder tests; - Clinical owner: the scenario signature (ACC-002) on a passing round, and the matrix (ACC-001); - Requirement owners: D1 to D10 (#232); - Identity safety: review (ACC-004); - Downtime rehearsal: ACC-007; - Repository administrator: branch protection (TEST-ISE-023); - Dependency approvals: FR-ISE-SUP-001 and 003.

Follow-ups outside the card

  • Host Node.js. /usr/bin/node on the session host is Ubuntu's nodejs 22.22.1+dfsg, installed on 2026-11-26 and built without TypeScript support. It meets engines (>= 22.18), but node src/cli.ts fails. Every session that runs his-contract on this host meets it. CI is unaffected (actions/setup-node).
  • The template's audit default. services/_template/service-kit defaults AuditProperties.unavailableEventType to access-check-unavailable, which is not in the audit catalogue, and its PolicyEnforcer audits an outage as failure. Units made from it later will inherit the defect that #274 to #280 fix per unit. This belongs to the template's owner, not to a slice session.
  • The scenario reads 503s as TypeError. rc-1-nfr.scenario.ts (registerAndOpen) and rc-1.scenario.ts (answer) read prompts without checking the duplicate check's status, so a 503 is reported as TypeError: Cannot read properties of undefined (reading 'map'). It is for the scenario's owners (RC-1-S26, RC-1-S27).
  • The run folders are on the session host under e2e/harness/out/evidence/RC-1/ (ignored), with the traces and logs left out of the commit. The integration environment his-rc-1-s28-g2 was reset at the end.
  • Shared-host contention. The CI runners and other sessions' stacks share this host (RC-3-S15's was running). The steal comes from the hypervisor, so stopping them would not have fixed it. About 4 hours were lost waiting for a quiet host before attempt 3.
  • Carried over from the fix handovers, not re-checked here:
  • option A of #207 (the handoff rule);
  • ADR-HIS-053 out of date;
  • FR-ISE-PLT-002's RC-1 catalogue entries;
  • readiness runbooks section 4;
  • a re-render trigger for gateway drift;
  • WF-ISE-002 steps 1 and 2 are in Python tests that the collector does not read;
  • the setting his.identity.sign-on-name-digest-key;
  • ADR approvals 093 to 098, 101, 105 and 110;
  • hazard-log confirmations for F1 and F2;
  • RC-1-S10 Q2 and Q3 (#24).