Implementation plan / Session plan / Handover RC-3-S22
Handover RC-3-S22 Screens: ISE screens (part 3 of 3)¶
Card: RC-3-S22. Issue: cema-care/his#78. Branch: session/RC-3-S22. Slice: RC-3. No new decision record: the screens follow ADR-HIS-069 (service layer, screen states, proof against the stubs) and ADR-HIS-071 (the signatureId of a signed decision).
What was built and where¶
This session added three screen folders to the ISE workspace. It changed nothing else in web/, and nothing else in the repository apart from this handover.
| Folder | Screen | Workspace, nav order | Contract |
|---|---|---|---|
web/domains/ise/UI-ISE-009/ |
UI-ISE-009 Backup and recovery console | W19, 90, route /ise/ui-ise-009 |
contracts/ise/api/recovery.v1.openapi.yaml |
web/domains/ise/UI-ISE-010/ |
UI-ISE-010 Downtime command console (from the specification's section 6.3 entry) | W19, 95, route /ise/ui-ise-010; /ise/ui-ise-010/<downtimeId> opens a window |
recovery.v1 (downtime) and service-catalogue.v1 listServiceStates |
web/domains/ise/UI-ISE-011/ |
UI-ISE-011 Vulnerability and dependency console | W19, 100, route /ise/ui-ise-011; /ise/ui-ise-011/<findingId> opens a finding |
contracts/ise/api/vulnerabilities.v1.openapi.yaml |
Each folder holds the same kinds of parts as UI-ISE-007 and UI-ISE-008 (handover RC-1-S22):
screen.tsregisters the screen, with no patient context.api/http.tsis the service layer of ADR-HIS-069. It is the same in all three folders. It addssignatureOf, and the step-up outcome may carry asignatureId(ADR-HIS-071).api/recovery.ts(UI-ISE-009 and UI-ISE-010),api/service-states.ts(UI-ISE-010) andapi/vulnerabilities.ts(UI-ISE-011) have one function per contract operation, with the contract's types.model.tsholds the presentation rules:- the words and tones;
- the default sort;
- which action is enabled, with the reason when it is not.
The provider enforces every rule again.
- CommandDialog.tsx is one confirmation for every command, the same in all three folders. It provides:
- the summary of scope and target (UX-ISE-003);
- Cancel as the first focus, and Enter does not confirm (CUX-12);
- one idempotency key per intent (CUX-35);
- "Check again" after a lost answer (CUX-36);
- with signStep, re-authentication every time, three attempts, and the signatureId sent.
- dialogs.tsx holds the commands, and the main view is BackupConsole.tsx, DowntimeConsole.tsx or VulnerabilityConsole.tsx.
- ui.tsx and failure.tsx are as in UI-ISE-007. ui.tsx adds a checkbox and a tab set.
- Tests:
- *.test.tsx, the component and accessibility tests, with a fake gateway shaped by the contract examples (test-support.ts);
- stubs.test.tsx and check-against-stubs.sh, which run the screen against his-contract serve contracts/ise.
UI-ISE-009 Backup and recovery console. It has the four tabs of the brief.
- Backups.
- One row per data store: tier, last verified backup, within or outside policy, immutable copy present or missing, policy, and "RPO at risk" in amber. RPO at risk comes first, then tier.
- A row opens the store: its backup policy, the recovery window, and its backup sets. A backup set shows its scope, time, state, checksum, key reference (linked to UI-ISE-008), location and immutable copy with its retention date.
- The store's actions are "Schedule restore test" and "Start restore".
- No action deletes or changes an immutable copy.
- Restore tests.
- The restore test age of each store against its interval, with "Overdue" in amber with the clock.
- The restore and point-in-time tests. A test opens with its integrity checks and application validations.
- "Record application validation" is enabled once the data is restored. "Select another recovery point" is enabled after a failed integrity check, and offers only recovery points not used yet.
- Disaster recovery.
- Replication lag against the tier RPO.
- The RTO and RPO achieved per service, against target. A missed target is "Not met · failed for this tier".
- Failovers and failbacks, each with the Incident Commander's authorization, the second person's confirmation, the runbook status, the integrity and access validation and the data loss windows.
- "Authorize failover" and "Authorize failback" use the sign step. The confirmation shows the services, the recovery domain, the expected data loss window and the downtime window.
- "Confirm" and "Refuse" are given by the second authorized person, also with the sign step.
- DR tests: "Plan DR test", "Record DR test result" and "Close DR test" with corrective actions.
- Restores. Restore requests and their progress.
- Downtime. The current downtime window is shown only as a link to UI-ISE-010 (OV-17). While the window is Restoring, "Record restoration validation" records the integrity and access result that UI-ISE-010's checklist reads (OV-29).
UI-ISE-010 Downtime command console.
- Header. "As at" with the stale indicator, UTC on request, Refresh, and "Declare downtime". The board is read again every 60 seconds.
- Service state board. By tier, then state.
- The words are "Available", "Delayed: [function]" (the board's
expectedImpact) and "Unavailable" with the minutes since. "Normal" is never shown. - Red (solid) only for a Tier 1 service unavailable; every other condition is amber, in words.
- When the feed is lost, the board keeps its last state and time and says that the feed is lost.
- Policy decision service prompt. If
ess-runtime-decisionhas been unavailable for 15 minutes and no open window covers it, an alert offers "Declare downtime for the affected units" (D02-ISE 9.1, GAP-ISE-009). - Declaration.
- Pre-filled from the board: every service not available, its functions and its facilities. Manual entry is always possible, and it is the only entry when the feed is lost.
- Type, read-only mode, start time and incident reference.
- A preview of the system banner with the design system's
SystemBanner: red when a Tier 1 service in the declaration is unavailable, amber otherwise, always with "Open downtime lists". - Downtime windows. Start, end, type, services and state, in the words of FR-ISE-BCR-003 section 11. A window opens with:
- its summary;
- the restoration checklist: "Integrity validated" and "Access controls validated" from
restorationValidation, linked to UI-ISE-009, and "Queues draining" fromqueuesDraining, linked to UI-ISE-001; - reconciliation per owning domain: queued messages processed, entries reconciled, duplicates detected, and unresolved items with the domain's acceptance or "Not accepted";
- exercise results.
- Actions on a window.
- "Start restoration".
- "Confirm restoration", enabled only when the three checklist items are complete. It ends the downtime and opens the reconciliation period (ADR-HIS-085 point 6).
- "Close reconciliation period", disabled with the domains and counts while any unresolved items lack acceptance (PR-BCR-003-3).
- "Release downtime summaries", to all units or chosen ones.
- "Record exercise results", for an exercise.
- Downtime summary distribution. One row per unit, stale units first. Each summary shows its name (
adm:ward-censusis "Ward census"), its generation time and its distribution. A stale one shows "Not updated for [n] hours" in amber with the clock (PR-BCR-003-1, CFG-ISE-025).
UI-ISE-011 Vulnerability and dependency console. It is marked "Confidential" (D02-ISE 9.3).
- Findings.
- Above the list: counts by severity and age, and timeframe attainment (REP-ISE-009).
- Filters: state, severity, owner, component, release and overdue.
- The list comes overdue first, then severity, then due date. "Overdue" is amber with the clock. Every severity, Critical included, is shown in words, never red (UX-ISE-008).
- A finding opens with its severity rule, CVSS, source, services, releases, environments, owner, history and risk acceptance. The releases it blocks are listed and linked to
/ise/ui-ise-007/<releaseId>(PR-SUP-002-1). - Actions:
- "Create finding";
- "Confirm severity and assign", where a downgrade needs a justification;
- "Mark remediated", with the deployed fix;
- "Close finding", only with a rescan;
- "Return to remediation";
- "Approve risk acceptance", with the sign step, an expiry, compensating controls and a reason;
- "Close risk-accepted finding".
- Risk acceptances. Approver, expiry with days left, and compensating controls. A row opens its finding.
Checks and their result¶
Node.js 22.22 is on the host. The checks ran in the node:22-bookworm image, and the stub checks in node:22.18-bookworm, with pnpm 10.34.9 through corepack, as earlier sessions did. The integration environment was not needed: check-against-stubs.sh serves the stub itself.
| Check | Command | Result |
|---|---|---|
| Type check of the workspace | pnpm build in web/domains/ise |
Passed |
| Component and accessibility tests | pnpm test in web/domains/ise |
The 53 new tests pass in every run: UI-ISE-009 23, UI-ISE-010 17, UI-ISE-011 13. The 12 stub tests are skipped there, as designed. On a loaded host, up to four of the 54 UI-ISE-007 and UI-ISE-008 tests exceeded their 5-second timeout (follow-ups) |
| The three new test files on a busy host | vitest run of the three files with 4 CPU-bound processes on the 4-core host |
53 of 53 passed |
| UI-ISE-009 against the ISE contract stub | web/domains/ise/UI-ISE-009/check-against-stubs.sh |
3 of 3 passed; the stub recorded no violation |
| UI-ISE-010 against the ISE contract stub | web/domains/ise/UI-ISE-010/check-against-stubs.sh |
2 of 2 passed; the stub recorded no violation |
| UI-ISE-011 against the ISE contract stub | web/domains/ise/UI-ISE-011/check-against-stubs.sh |
2 of 2 passed; the stub recorded no violation |
| The shell with the three screens | pnpm build and pnpm test in web/shell |
Bundle built (BackupConsole, DowntimeConsole and VulnerabilityConsole chunks). 19 passed, 1 skipped, plus the shared-version check |
| Secret scan | platform/delivery-pipeline/bin/secret-scan code origin/main |
No finding |
| Links of this handover | python3 docs/implementation_plan/tools/check_links.py |
Passed |
Accessibility is checked with axe-core (WCAG 2.0 to 2.2 A and AA) on each console's first view, on the disaster recovery tab and on the summary distribution. Every dialog opens with the focus on "Cancel".
Timing:
- The three test files set a 15-second test timeout of their own, with the reason in a comment.
- Their tests paste values, load the module in beforeAll and keep to one flow each, as RC-1-S28-F9 did for UI-ISE-008.
- Idle, the slowest test takes about 1.2 seconds.
The existing UI-ISE-007 and UI-ISE-008 tests keep the 5-second default and can time out on a loaded host. See the follow-ups.
Requirements and test scenarios¶
Every test names its requirement, and its test scenario where one exists. The test scenarios of D02-ISE 15.2 are covered for their screen part only. Restores, failovers and exercises themselves belong to the build session RC-3-S17 and to RC-3-S24.
| Requirement | Test scenario | Tests (describe titles) |
|---|---|---|
| FR-ISE-BCR-001: backups, immutable copies, restore tests, application validation, PR-BCR-001-1 to 3 | TEST-ISE-032 | FR-ISE-BCR-001 TEST-ISE-032 UI-ISE-009 backups, FR-ISE-BCR-001 TEST-ISE-032 UI-ISE-009 restore tests and restores; against the stub: FR-ISE-BCR-001 FR-ISE-BCR-002 UI-ISE-009 against the contract stub |
| FR-ISE-BCR-002: replication, failover with two authorizations, achieved RTO and RPO, DR tests, PR-BCR-002-1 to 3 | TEST-ISE-033 | FR-ISE-BCR-002 TEST-ISE-033 UI-ISE-009 disaster recovery; against the stub, as above |
| FR-ISE-BCR-003: declaration, summaries, restoration, reconciliation, exercises, PR-BCR-003-1 and 3 | TEST-ISE-034 | FR-ISE-BCR-003 TEST-ISE-034 UI-ISE-010 declaration, ... restoration (OV-29), ... reconciliation (PR-BCR-003-3), ... downtime summaries (PR-BCR-003-1, CFG-ISE-025), FR-ISE-BCR-003 OV-17 OV-29 UI-ISE-009 relation to downtime; against the stub: FR-ISE-BCR-003 FR-ISE-OBS-001 UI-ISE-010 against the contract stub |
| FR-ISE-OBS-001: the service state board on UI-ISE-010 | FR-ISE-OBS-001 FR-ISE-BCR-003 UI-ISE-010 service state board (OV-28, UX-ISE-004, UX-ISE-008) |
|
| FR-ISE-SUP-002: register, severity, lifecycle and separation of duties, risk acceptance, overdue, blocked releases | TEST-ISE-037 (screen part) | FR-ISE-SUP-002 TEST-ISE-037 UI-ISE-011 findings, FR-ISE-SUP-002 TEST-ISE-037 WF-ISE-008 UI-ISE-011 lifecycle (D02-ISE 4.3); against the stub: FR-ISE-SUP-002 UI-ISE-011 against the contract stub |
| FR-ISE-SUP-001, FR-ISE-SUP-003 | TEST-ISE-036, TEST-ISE-038 | Not covered: no contract yet (see below) |
The screen states of Shell 13 have tests in each folder: UI-ISE-009 screen states (Shell 13, CUX-36, CUX-67), UI-ISE-010 screen states (Shell 13, CUX-36) and UI-ISE-011 screen states (Shell 13, D02-ISE 9.3). Test titles also name UX-ISE-002 to 005 and 008, PR-BCR-001-2 and 3, PR-BCR-002-2 and 3, PR-BCR-003-1 and 3, PR-SUP-002-1, 3 and 5, OV-17, OV-28, OV-29, GAP-ISE-009 and ADR-HIS-085 point 6.
NFR-ISE-008 Usability was a design input: - every state is in words, never colour alone; - red only where UX-ISE-008 allows it; - each label names its effect; - every unavailable action says why; - keyboard use throughout (React Aria); - local times with zone, and UTC on request.
Its measure, an observed task-based evaluation with at least five users per role, is for the slice's readiness work.
Differences from the brief, specification or contract, and why¶
The screens show nothing that their contract does not carry, and invent no data.
UI-ISE-009:
- "Start backup" is not offered. recovery.v1 has no operation for a person to start a backup: recordBackupSet is called by the backup tooling under its service identity when a backup finishes. Backups run on their policy.
- "Start failover runbook" and "Start failback runbook" are not commands. The runbook runs in the platform tooling, and the contract records the two authorizations and then the tooling's result (recordFailoverResult).
- The console shows "Both authorizations recorded · the failover runbook may run".
- While the failover awaits confirmation, the console shows the start as disabled, with "Blocked until a second authorized person confirms".
- Service recovery state (Normal, Failed Over, Failing Back) and the recovery runbook reference with its last tested date are not in recovery.v1. The failover's own status is shown instead.
- A restore request has no reason or requester field in scheduleRecoveryTest. The provider records the requester as the caller. The tabs split the test kinds as follows:
- "Restore tests": restore and point-in-time;
- "Restores": isolated-recovery and incident-restore.
"Start restore" sends isolated-recovery, or incident-restore when incident recovery is ticked; only the latter may target a non-isolated environment.
- "Record DR test result" takes no achieved RTO or RPO. Achieved needs the approved targets of CFG-ISE-017, which the screen does not hold; the tooling records them. The form records times, integrity checks, credentials used, evidence and issues.
- "Authorize failover" is enabled when a disaster is declared, read as an open downtime window, or for a DR exercise. The authorization carries the window's downtimeId. The expected data loss window is the current replication lag of the stores in scope.
- Corrective actions are a table, not a configuration of the OV-01 work list: no ESS task type exists for them.
UI-ISE-010:
- "Authorize network isolation" is not shown. FR-ISE-NET-001 is not in this slice (RC-3-S03).
- Paper form counts are not shown. The Domain 6 form register has no contract (OV-122). The console says so where the counts would be.
- "End downtime" is "Confirm restoration". By ADR-HIS-085 point 6, DowntimeEnded is published at the confirmation of restoration, which also opens the reconciliation period (Q2 and Q4 of RC-3-S03, still open). So there is no separate "Open reconciliation period". "Start restoration" moves the window from "Downtime in progress" to "Restoring".
- Red for a Tier 1 service unavailable. UX-ISE-008 says red for a "Tier 1 clinical function". The service state board carries the tier and no clinical flag, so the screen reads Tier 1 as clinical. Question 1 below.
- "Delayed: [function]" uses the board's expectedImpact as the function.
- No sign step on the downtime commands. Their signatureId is optional in recovery.v1, and neither the specification nor the brief asks for re-authentication. Each is confirmed in a dialog that shows scope and result.
- A summary is stale when the provider marks it so, or when it is 2 hours old or more by the screen's clock (CFG-ISE-025).
UI-ISE-011:
- The Dependencies and Supported versions tabs are not built. The dependency register (FR-ISE-SUP-001) and the support records (FR-ISE-SUP-003) are in no contract; vulnerabilities.v1 covers FR-ISE-SUP-002 only. Not built with them:
- "Find component";
- "Propose", "Approve", "Reject", "Start replacement" and "Retire dependency";
- "Save support record";
- the decision record links, which the contract points say come with FR-ISE-SUP-003.
- The lifecycle is that of the contract and D02-ISE 4.3, which has a Remediated state the brief does not:
- "Save remediation status" is "Mark remediated", with the deployed fix;
- "Close finding" is allowed from Remediated, with a rescan, and not from In Remediation;
- "Return to remediation" and "Close risk-accepted finding" are added for the contract's other two transitions.
- "Change severity" is part of "Confirm severity and assign", from Open. The contract changes severity only with assess.
- Tones. Critical and High are amber, Medium is blue and Low is grey, always with the word. None is red (UX-ISE-008).
- Read-only for domain service teams outside their own findings is the provider's answer (403). The screen has no other source of the user's permissions, as RC-1-S22 found.
Questions for a person¶
None blocks this work. Asked here and in the pull request:
- Owner of D02-ISE (display of a safety condition, UX-ISE-008): red is allowed for "a Tier 1 clinical service unavailable". The service state board (service-catalogue.v1) carries the tier but no clinical flag, so UI-ISE-010 treats every Tier 1 service as clinical. Is that right, or should the board say which services are clinical, in a compatible minor version? An example is the policy decision service,
ess-runtime-decision, which is Tier 1 but not itself clinical.
Follow-ups outside the card¶
- Shell SDK (a session owning
web/shell): the service client and step-up of ADR-HIS-069 and ADR-HIS-071.api/http.tsnow has five copies in the ISE workspace. - Design system:
- a tab set and a checkbox (
ui.tsx); - a command confirmation with idempotency key, lost-answer handling and an optional sign step (
CommandDialog.tsx, three copies); - the pieces RC-1-S22 listed.
- ISE contract, compatible minor versions:
- recovery.v1:
- a request to start a backup now;
- per service, the recovery state, the runbook reference and its last tested date;
- a reason on a restore request.
- service-catalogue.v1: a clinical flag on the service state board (question 1).
- A contract for the dependency register and support records (FR-ISE-SUP-001, FR-ISE-SUP-003), so that UI-ISE-011 gains its other two tabs and the decision record links (TEST-ISE-036, TEST-ISE-038).
- ESS workflow: a task type for the corrective actions of DR tests and exercises, so that they become a configuration of the OV-01 work list.
- Domain 6: a contract of the form register, for the paper form counts on UI-ISE-010 (OV-122).
- RC-3-S24 (integrate): run the three
check-against-stubs.shscripts beside the slice scenario, since the pipeline does not run them. - UI-ISE-007 and UI-ISE-008 (fix session of RC-1-S22's screens): their component tests keep Vitest's 5-second default. On this host they time out when other sessions load it:
- At the start of this session, at a load average of about 6 and before any change, one test of the two files failed this way.
- With the three new files in the same run, three tests timed out at a load average of 6, at 5.1 to 6.2 seconds: "lists releases with tag, state…", "filters by type, state, owner, expiring and overdue…" and "saves access grants against the version read". At a load average of 11, four timed out.
- Every one passes on a quiet host.
Their folders are outside this card (rule 10), so they are unchanged. The remedy is the per-file timeout these three files use (vi.setConfig({ testTimeout: 15_000 })), or a longer testTimeout in the workspace's vitest.config.ts, which belongs to the shell's session.