Implementation plan / Session plan / Handover RC-3-S21
Handover RC-3-S21 Screens: ISE screens (part 2 of 3)¶
Card: RC-3-S21. Issue: cema-care/his#77. Branch: session/RC-3-S21. Decision record: ADR-HIS-116.
What was built and where¶
Three screens of the ISE workspace, each in its own folder. Apart from this handover and ADR-HIS-116, the change touches nothing else.
| Folder | Screen | Route | Contracts |
|---|---|---|---|
web/domains/ise/UI-ISE-004/ |
UI-ISE-004 Service catalogue and SLO view | /ise/ui-ise-004, /ise/ui-ise-004/<serviceId> |
service-catalogue.v1 1.1 |
web/domains/ise/UI-ISE-005/ |
UI-ISE-005 Platform reliability dashboard | /ise/ui-ise-005, ?service=<serviceId> |
service-catalogue.v1 1.1 (services, state board, availability, readPerformanceReport, capacity models); recovery.v1 readBackupStatus; releases.v1 readChangeFailureRate |
web/domains/ise/UI-ISE-006/ |
UI-ISE-006 Security monitoring console | /ise/ui-ise-006, /ise/ui-ise-006/<alertId> |
security-monitoring.v1 |
All three are in workspace W19 (IT operations), with context: "none". Each folder follows the layout of the ISE screens of RC-1-S22 (UI-ISE-007, UI-ISE-008) and ADR-HIS-069:
screen.ts;api/http.ts, the service layer. It is the same code as UI-ISE-007's, with only its comment changed;api/<contract>.ts, with one function per contract operation;model.ts, the presentation rules;- the views;
ui.tsx, the pieces the design system lacks. It is UI-ISE-007's, plus a checkbox, a multi-line field, a UTC switch and a tile, identical in the three folders;failure.tsx, the Shell 13 states in the screen's words;test-support.ts, a fake gateway with synthetic examples;- the component tests;
stubs.test.tsxandcheck-against-stubs.sh.
UI-ISE-004 (Catalogue.tsx, EntryDetail.tsx, EntryForm.tsx):
- List. One row per service: owning domain, owner, tier, state with "Tier awaiting (re-)approval", completeness ("Missing: …") and availability this month against the objective ("No data" when telemetry cannot be read).
- Filters: tier, owning domain and state, sent to the catalogue; "Incomplete" and "Has findings", applied on the list.
- Sorted by tier, then name.
- Detail. A header with the dashboard link, a completeness section, and the tabs Entry, Dependencies (tiers, degradation paths, flags, findings), Objectives (SLO, RTO, RPO, attainment), Operating documents (runbook, recovery procedure, Grafana dashboards, alert rules, the backup console) and History.
- Actions.
- "Create service entry". The entry starts Proposed.
- "Save entry", with If-Match. A lost answer is settled by reading the entry back.
- "Change tier". The tier then awaits re-approval.
- "Admit service to production". It is offered only when the entry is complete, the tier is approved and a Tier 1 service has alert rules. A confirmation records the reason.
- SLO view. Per tier and per service for a chosen month, with the approved maintenance windows listed as excluded.
- Other sections. The dependency graph with flags; the environment inventory with each environment's drift report (FR-ISE-PLT-001, from D02-ISE 6.2).
UI-ISE-005 (Dashboard.tsx):
- Status banner of ADR-HIS-116 point 1: the time of the data, the stale indicator, "No data: [source]" per silent source, and "The monitoring pipeline is not answering".
- Filters: tier, service and time range (last hour, 24 hours, 7 days, this month).
- Tiles: availability per tier against the objective, latency against KPI-ISE-002, highest error rate, highest saturation, backup status, restore test age with overdue, longest replication lag with RPO at risk, change failure rate. The backup tile links to UI-ISE-009 and the change failure tile to UI-ISE-007.
- Service table: tier, state in glossary words, availability, p95, p99, error rate and saturation. Each row links to the catalogue entry.
- Other sections: the data stores; the approved capacity model with its six areas, its basis and its capacity actions.
- Behaviour. The dashboard reads again every 60 seconds. It is read-only.
UI-ISE-006 (SecurityConsole.tsx, dialogs.tsx):
- Notices when the SIEM is unavailable (with the last event received) and when a forwarding gap is detected.
- Indicators of part 7, and a link to audit search (UI-ESS-008) for the Domain 10 indicators.
- Alert queue: severity in words, affected asset, detection rule and version, state, and time detected. Filters for state and severity. Open alerts come first.
- Alert detail.
- Evidence: the rule and version, the asset with links to its catalogue entry and to correlated telemetry, the correlation references, privacy review "Sent to Domain 10", and the preservation order.
- The history as the review outcome.
- "Search correlated events".
- Actions.
- "Mark alert triaged", "Escalate alert to incident" (needs the incident reference) and "Close alert". Each takes a reason and is confirmed with a summary.
- "Create preservation order", once the alert is escalated. It is entered, reviewed with its scope, period and target, then confirmed.
- "Lift preservation order".
- Search. By time range (UTC), source, actor, node, action, outcome and correlation identifier. Results show "Held under preservation order" and "Malformed · stored raw", under a gap or SIEM notice where one applies.
- Other sections: the preservation orders; the pipeline health per source (Healthy, Gap detected, Buffering; lag, buffered, completeness sample).
Checks and their result¶
Web packages ran with the host's Node.js 22.22 and pnpm 10.34.9 through corepack. The host's Node.js cannot run the TypeScript contract tool, so the three check-against-stubs.sh ran in node:22.18-bookworm with CI=true, as RC-3-S03 did. The integration environment was not needed: each script serves the stub itself.
| Check | Command | Result |
|---|---|---|
| Type check | pnpm build in web/domains/ise |
Passed |
| Component and accessibility tests | pnpm test in web/domains/ise |
The new screens: 50 passed (UI-ISE-004: 17, UI-ISE-005: 10, UI-ISE-006: 23), and the stub tests are skipped. UI-ISE-007 and 008 are unchanged. In the first run, on a quiet host, all their 54 tests passed. After review round 2, with a host load of about 7, they timed out (10, then 2 failures), and none of the new tests did |
| UI-ISE-004 against the ISE contract stub | web/domains/ise/UI-ISE-004/check-against-stubs.sh |
2 of 2 passed, no violation |
| UI-ISE-005 against the ISE contract stub | web/domains/ise/UI-ISE-005/check-against-stubs.sh |
1 of 1 passed, no violation |
| UI-ISE-006 against the ISE contract stub | web/domains/ise/UI-ISE-006/check-against-stubs.sh |
2 of 2 passed, no violation |
| The shell with the screens | pnpm build and pnpm test in web/shell |
Bundle built (Catalogue, Dashboard and SecurityConsole chunks); 19 passed, 1 skipped, and the shared-version check |
| Secret scan | platform/delivery-pipeline/bin/secret-scan code origin/main |
No finding |
| Links | python3 docs/implementation_plan/tools/check_links.py |
Passed |
Accessibility is checked with axe-core in each screen's list view, in the entry and alert details, and in the admission, escalation and preservation dialogs while they are open. Every dialog opens with the focus on "Cancel", and Enter does not press a confirming button (CUX-12, tested for admission and closing).
Two notes for whoever runs these:
- Timeouts. On this host, under the load of the runners, UI-ISE-007's and UI-ISE-008's tests timed out at Vitest's 5 seconds in one run and passed in the next. The new tests set
vi.setConfig({ testTimeout: 30_000 })per file, because a screen session may not changevitest.config.ts. Open pull request #302 addresses this for the workspaces. - Stub start. The stub took more than the 10 seconds
check-against-stubs.shof UI-ISE-007 waits for it. The new scripts wait up to 60 seconds.
Requirements and test scenarios¶
Every test names its requirement and, where one exists, its test scenario (session rule 5). The scenarios of D02-ISE 15.2 are covered for their screen part only. Resilience, load and SIEM interruption belong to the build sessions of the units.
| Requirement | Test scenario | Tests (describe titles) |
|---|---|---|
| FR-ISE-PLT-002: catalogue, tier and re-approval, dependencies and findings, completeness, admission, availability per service and tier | TEST-ISE-004 | FR-ISE-PLT-002 UI-ISE-004 catalogue list and filters; FR-ISE-PLT-002 FR-ISE-OBS-001 FR-ISE-SUP-003 UI-ISE-004 entry detail; FR-ISE-PLT-002 TEST-ISE-004 UI-ISE-004 admission to production; FR-ISE-PLT-002 UI-ISE-004 create and save entries; FR-ISE-PLT-002 FR-ISE-PLT-001 UI-ISE-004 dependency graph and environments. Against the stub: FR-ISE-PLT-002 FR-ISE-PLT-001 UI-ISE-004 against the contract stub |
| FR-ISE-PLT-001: environment inventory and drift report (D02-ISE 6.2) | ... FR-ISE-PLT-001 shows the environment inventory and the drift report of an environment |
|
| FR-ISE-SUP-003: supported version, linked to the register | ... entry detail (link to UI-ISE-011) |
|
| FR-ISE-OBS-001: indicators, service states, "No data", monitoring pipeline degraded, dashboards and alert rules per service | TEST-ISE-030 (screen part) | FR-ISE-OBS-001 TEST-ISE-030 UI-ISE-005 indicators of REP-ISE-002; FR-ISE-OBS-001 UI-ISE-005 freshness and silent sources; ... UI-ISE-005 filters, backup, capacity and links; PR-OBS-001-1 in UI-ISE-004 admission to production. Against the stub: FR-ISE-OBS-001 FR-ISE-PLT-003 FR-ISE-BCR-001 FR-ISE-REL-003 UI-ISE-005 against the contract stub |
| FR-ISE-PLT-003: p95, p99, saturation, capacity model | TEST-ISE-005 (screen part) | ... FR-ISE-PLT-003 shows p95 and p99 per service and saturation per resource ...; ... FR-ISE-PLT-003 TEST-ISE-005 shows the approved capacity model ... |
| FR-ISE-BCR-001, FR-ISE-BCR-002: backup status, restore test age and overdue, replication lag | ... FR-ISE-BCR-001 PR-BCR-001-2 shows the last verified backup, replication lag and restore test age ... |
|
| FR-ISE-REL-003: change failure rate | ... shows one tile per indicator ... |
|
| FR-ISE-OBS-002: alerts with severity, asset, correlation, rule identity and version; states; search; preservation; pipeline health; red only for a confirmed clinical incident | TEST-ISE-031 (screen part) | FR-ISE-OBS-002 TEST-ISE-031 UI-ISE-006 alert queue and evidence; FR-ISE-OBS-002 UI-ISE-006 review outcome; FR-ISE-OBS-002 TEST-ISE-031 UI-ISE-006 evidence preservation; FR-ISE-OBS-002 TEST-ISE-031 UI-ISE-006 event search and pipeline health; FR-ISE-OBS-002 TEST-ISE-031 UI-ISE-006 'Held under preservation order' (PR-OBS-002-2), decided on the screen. Against the stub: FR-ISE-OBS-002 UI-ISE-006 against the contract stub |
Each test also names in its title the rule it checks: - the rules of D02-ISE: UX-ISE-003, UX-ISE-004, UX-ISE-006, UX-ISE-008, BR-ISE-017, PR-OBS-001-1, PR-OBS-001-3, PR-OBS-002-1, PR-OBS-002-2, PR-PLT-002-2, PR-BCR-001-2, EVT-ISE-008, AC-01; - the product rules: CUX-12, CUX-36, CUX-51, and Shell 13.
NFR-ISE-008 Usability was a design input, as for RC-1-S22: - every status is in words, never colour alone (UX-ISE-002); - red only as UX-ISE-008 allows (ADR-HIS-116 point 3); - every unavailable action is listed with its reason; - the screens can be used by keyboard throughout (React Aria); - times are local with their zone, and in UTC on request.
The NFR's own measure, a task-based evaluation with representative users, is for the slice's readiness work.
Differences from the brief, specification or contract, and why¶
These are recorded in ADR-HIS-116 points 6 and 7.
- Not in the contracts, so not shown or offered:
- on UI-ISE-004:
- "Approve tier", "Approve dependency map" and "Retire service";
- the version history of an entry;
- the approved tier beside a proposed one: the entry says only "Tier n · awaiting re-approval";
- the architecture review item of PR-PLT-002-2: the flag is shown, but no work list item exists yet;
- on UI-ISE-005: the alert list with "Acknowledge alert", "Open runbook" from an alert, the trace view ("Find transaction"), the incident count, synthetic checks, clock offsets, and an "open alerts" column. A section of the dashboard names them and points to Grafana;
- on UI-ISE-006:
- "Export evidence package";
- the payload view on request;
- the Domain 10 indicators. contracts/ess audit.v1
readSecurityIndicatorsneeds aqueryPurposecode of the audit access value set that this console's use has not been given, so the screen links to audit search instead.
- Detection rules are not created or saved on UI-ISE-006. FR-ISE-OBS-002 part 8 and D02-ISE 6.2 keep them in the security monitoring product, which overrides the brief's "Create detection rule, Save detection rule".
- Escalation from New is offered, as the brief says. security-monitoring.v1's description lists Triaged to Escalated only. The provider decides, and a refusal is shown with its reason.
- "Lift preservation order" is offered on every Active order. Until handover RC-3-S03's Q1 is answered, the policy refuses it to everyone, and the screen says "Not lifted … The data stays preserved". The question is already with the owner, so none is added here.
- "Held under preservation order" on a search result is decided on the screen, because the contract has no flag on the event. The screen marks only what it can tell (review round 2):
- the event is inside the order's period. An absent start or end is open, and an absent end means the order is ongoing (contracts/common
Period); - the order preserves security events, or names no data set;
- the order names the event's source or node, and each source or node list it names contains the event's own;
- the order names no services. A security event does not say which service it belongs to, so an order scoped by service, the default of an order placed from an alert, marks nothing. The search says that such an order may hold events that are not marked.
- Ongoing orders. A preservation order may have no end (contracts/common
Period). The list and the lift confirmation show "From [time], ongoing", and an order is placed as ongoing when "To (UTC)" is left empty. - Completeness on UI-ISE-004 is computed on the screen from the entry, because the contract has no field for it. The catalogue refuses admission again and names what is missing, and the screen shows its words.
- UI-ISE-005 does not send
tiertoreadBackupStatus. recovery.v1 declares that parameter by reference, and the stub records an integer sent there as a violation ("must be integer"). service-catalogue.v1 writes its own out for that reason. The dashboard filters data stores by tier itself (follow-up). - Times typed into the search and the preservation order are UTC (ADR-HIS-116 point 8).
- Red on UI-ISE-005 is a Tier 1 service Unavailable. The tier is the clinical criticality tier, as ADR-HIS-113 (RC-3-S20, open) also reads it.
Questions for a person¶
None. Nothing in this card needed a ruling on clinical, financial or access behaviour. The lift of a preservation order waits on Q1 of RC-3-S03, which is already open on issue #59.
Follow-ups outside the card¶
- ISE contract, compatible minor versions (an ISE contract session):
- service-catalogue.v1: tier approval, dependency map approval, retirement, the version history, the approved tier beside a proposed one, and completeness;
- a platform alerts API (Grafana alerting through the gateway) for the alert list, acknowledgement and escalation timer of UI-ISE-005, and a trace lookup by correlation identifier;
- security-monitoring.v1: export of an evidence package with its second authorization; a payload view on request; a "held" flag on a search result;
- recovery.v1: write the
tierquery parameter's type in place inreadBackupStatus, so that the stub coerces it. - D10 audit access purposes: a
queryPurposecode for security monitoring, so that UI-ISE-006 can show the Break-the-Glass and recertification counts of contracts/essreadSecurityIndicatorsin its indicator row. - UI-ANL-002 (Domain 8 screen session): adopt the dashboard status banner of ADR-HIS-116 point 1.
- Design system: a date and time field in the facility's zone, a tile, a checkbox, a multi-line text field, a section, an inline notice, a disabled action with its reason, a modal confirmation whose button ignores Enter, a select, and a time display with UTC on request. Today they are in each folder's
ui.tsx. - Shell SDK: the service client of ADR-HIS-069, to which the
api/http.tscopies move; aCSS.escapestand-in in the workspace kit's test setup, which eachtest-support.tscarries meanwhile. - RC-3-S24 (integrate): it may 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 (RC-1-S22's folders): their
check-against-stubs.shwaits 10 seconds for the stub, which was too short on this host. The new scripts wait 60.