Implementation plan / Session plan / Handover RC-3-S20
Handover RC-3-S20 Screens: ISE screens (part 1 of 3)¶
Card: RC-3-S20. Issue: cema-care/his#76. Branch: session/RC-3-S20. Decision record: ADR-HIS-113.
What was built and where¶
Three screens of the ISE workspace, each in its own folder. Apart from them the change adds only this handover and ADR-HIS-113. The decision record index is rebuilt on main after the merge, so this change does not touch it.
| Folder | Screen | Workspace, route | Contracts |
|---|---|---|---|
web/domains/ise/UI-ISE-001/ |
UI-ISE-001 Integration operations console | W19, /ise/ui-ise-001 |
contracts/ise integration.v1 (health, message exceptions, transactions, payload views, message replays, reconciliation exceptions); event-operations.v1 (dead letters, replays) |
web/domains/ise/UI-ISE-002/ |
UI-ISE-002 Interface registry and onboarding console | W19, /ise/ui-ise-002 |
integration.v1 (interfaces, transitions); contract-catalogue.v1 listContractConsumers |
web/domains/ise/UI-ISE-003/ |
UI-ISE-003 API and event catalogue | W19, /ise/ui-ise-003 |
contract-catalogue.v1; event-operations.v1 readTopic |
Each folder holds the same parts, in the layout of the RC-1-S22 screens (UI-ISE-007, UI-ISE-008):
screen.tsregisters the screen;api/http.tsis the service layer of ADR-HIS-069 with the host hooksaccountIdandstepUp(ADR-HIS-113 points 2 and 3), identical in the three folders;api/<name>.tshas one function per contract operation;model.tsholds the presentation rules: state words and tones, which action is enabled and why not;- the views, and
dialogs.tsxfor the confirmations; ui.tsxholds the pieces the design system lacks (UI-ISE-007's, plus a multi-line field, a checkbox and durations in words), identical in the three folders;failure.tsxmaps a failed call to the states of Shell 13 in the screen's words;- tests:
*.test.tsxwith a fake gateway and synthetic fixtures (test-support.ts,fixtures.ts), andstubs.test.tsxwithcheck-against-stubs.shagainsthis-contract serve contracts/ise.
UI-ISE-001 (Console.tsx, detail.tsx, dialogs.tsx):
- Header. "As at [time]" from the health answer, and "Not updated for [n] minutes" in amber after 5 minutes (CUX-53, UX-ISE-004). It is also reported to the shell's status line. A UTC switch (UX-ISE-005) and Refresh are beside it.
- Interfaces. Each with its status ("In service" for Active), tier, partner availability and circuit, messages per minute, ACK/NACK, queue depth, oldest message, retries, dead letters, quarantine count and p95 latency. Each row offers "Show items", the registration (UI-ISE-002) and, for one in service, "Suspend interface", which opens the one dialog of UI-ISE-002 (OV-113). Red is used only for a Tier 1 interface that cannot deliver (UX-ISE-008).
- Worklists. Quarantine, Dead letter and Reconciliation as tabs, with filters by interface, age, owning domain, classification, "Assigned to me" and "Include closed and replayed items".
- The dead-letter list joins the engine's messages and the backbone's events.
- Rows show the subject as a reference only (OV-01, operations variant).
- A list that cannot be read says so while the others show.
- Item detail beside the list.
- Reason and rule, correlation ID with a link to the correlated trace (UI-ISE-005), business identifiers, mapping version, state history, attempt history and notes.
- The payload only on a request with a reason, audited by the provider; a refusal shows its reason.
- Actions: Assign to me, Assign, Annotate, Replay, Resolve (reconciliation), Close with reason, Refer to owning domain.
- An item that another analyst closed meanwhile shows its final state and who acted.
- Replay (OV-112). The dialog shows scope, target, ordering and replay-sensitive status before the request, and needs a reason. A bulk replay needs the item count typed (
confirmedItemCount). A replay-sensitive target answers "Awaiting approval". - The replay record. It shows the decisions taken and those awaited, and the outcome per item, with "Held ยท payload not valid for current version".
- Decisions on a replay awaiting approval.
- The second integration operations analyst authorizes in place with the step-up dialog (CUX-64). When the signed-in analyst is the requester, the dialog authenticates another person (
person: "second"), whose credential sends the decision. - The owning domain's decision can be recorded by its representative from the approval task (
/ise/ui-ise-001/replay/<replayId>). - OV-56. An owning domain's queue opens the dialog with the scope filled in, requested as the owning domain (ADR-HIS-113 point 1).
UI-ISE-002 (Registry.tsx, form.tsx, dialogs.tsx):
- List. Filters for status, owning domain, standard, critical and "missing attributes only" (the inventory of FR-ISE-INT-002 AC-03). The empty state reads "No interfaces registered".
- Detail.
- The lifecycle timeline Proposed, Approved, In test, Certified, In service, Suspended, Deprecated, Retired, with the current state marked.
- The missing mandatory attributes, listed.
- Every attribute of DE-ISE-007, and the routes.
- Credential and certificate bindings by reference, linked to UI-ISE-008.
- Certification evidence and approvals, the consumer inventory of the contract version, and the lifecycle history.
- A retired registration opens read-only.
- Registration form. Name, purpose and owner are enough to save; what is missing stays missing and is listed by the provider. A change of contract version on an interface in service warns that it returns to In test (PR-INT-002-3). Bindings have their own form for the Security Engineer: references only, no value.
- Lifecycle actions by state, each disabled with its reason when it cannot be taken:
- Approve registration: refused while an attribute is missing, and to its author;
- Deploy to test;
- Record certification;
- Approve activation, then Approve activation in production. Each takes the PH-03 sign step every time; three failures cancel it. Activation is refused without certification or with an attribute missing;
- Suspend interface, Deprecate, Resume interface (with the re-verification), and Retire (blocked while consumers remain, listed).
- The one "Suspend interface" dialog. It needs a reason and names the tier and the consumers. After the suspension it shows the answer's impact: tier, consumers, clinical functions, and the shell banner "Delayed: [function]" when the degraded-state signal is raised.
?action=suspendopens it.
UI-ISE-003 (Catalogue.tsx, dialogs.tsx):
- List. One row per contract with kind, current version, owner, data classification and lifecycle state. Filters for kind, owning domain, lifecycle state, data classification and text. The saved view "Governance" shows only owner, data classification and lifecycle state, and
?view=governanceopens it (OV-15). - Detail. A header with kind, state, owner and support contact, and the action bar with the version's state. The tabs:
- Overview;
- Schema: the reference; for an event, also the type and version, topic, ordering key and retention from the topic, and the envelope fields once;
- Scopes;
- Versions: the history, the compatibility result with its findings, and a side-by-side comparison of two versions;
- Consumers, per version;
- Lifecycle: transitions with actor, time and reason.
- Standards. The FHIR capability statement as a fixed entry, at
/ise/ui-ise-003/standards. - Actions.
- Create contract, and Add version: the version must be greater than the latest; the provider's parse, lint, scope and compatibility messages are shown beside the field, and a breaking change says that a new major version is required.
- Approve publication: disabled for a breaking change under the same major.
- Reject publication, with a reason.
- Deprecate version: needs an Active successor and a sunset not earlier than the minimum window of CFG-ISE-002 (12 months partner-facing, 6 internal) unless an approved exception is given.
- Retire version: names the version and its consumers. With active consumers, the interface owner and the Release Manager each approve by authenticating in place.
Checks and their result¶
The host's Node.js 22.22 is built without TypeScript type stripping, so his-contract cannot run on it (as RC-3-S01 to RC-3-S03 found). The checks that need it ran in node:22.18-bookworm with pnpm 10.34.9 through corepack, with CI=true. The workspace build and tests also ran on the host. 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 of the three screens | pnpm test in web/domains/ise |
64 passed (UI-ISE-001: 25, UI-ISE-002: 23, UI-ISE-003: 16); their stub tests are skipped there, as designed. See the note below on UI-ISE-007 and UI-ISE-008 |
| UI-ISE-001 against the ISE contract stub | web/domains/ise/UI-ISE-001/check-against-stubs.sh |
4 of 4 passed, no violation recorded |
| UI-ISE-002 against the ISE contract stub | web/domains/ise/UI-ISE-002/check-against-stubs.sh |
3 of 3 passed, no violation recorded |
| UI-ISE-003 against the ISE contract stub | web/domains/ise/UI-ISE-003/check-against-stubs.sh |
3 of 3 passed, no violation recorded |
| The shell with the three screens | pnpm build and pnpm test in web/shell |
Bundle built (Console, Registry and Catalogue chunks); 19 passed, 1 skipped; shared versions checked. The screen discovery check timed out once under load and passed when run again (node scripts/check-screen-discovery.mjs) |
| Static analysis | platform/delivery-pipeline/bin/static-analysis web/domains/ise/UI-ISE-001 web/domains/ise/UI-ISE-002 web/domains/ise/UI-ISE-003 |
No blocking finding; no clinical artifact |
| Secret scan | platform/delivery-pipeline/bin/secret-scan code origin/main |
No finding |
| Documentation links | python3 docs/implementation_plan/tools/check_links.py |
0 broken |
UI-ISE-007 and UI-ISE-008 under load. Their tests (RC-1-S22) keep Vitest's 5-second default timeout. On this host, with other sessions running (load average 8 to 27 on 4 cores), 5 to 18 of them time out, both alone and beside these screens' tests. Before this change, 12 of them failed on the host the same way. The workspace pipeline job may therefore fail on them. They are outside this card's folders (follow-ups). The three new test files set their own timeouts (120 seconds per test, 60 per hook) for this reason: in the first pipeline runs of #285, two UI-ISE-001 tests passed 30 seconds under a load average of 23.
Accessibility is checked with axe-core (WCAG 2.0 to 2.2 A and AA) on:
- each list and each detail;
- the replay, payload, approval and suspension dialogs while open.
Every dialog opens with the focus on "Cancel", and its confirming button repeats the action and ignores Enter (CUX-11, CUX-12); a test presses Enter on the replay button and checks nothing was sent.
Requirements and test scenarios¶
Each test's describe title names its requirement and its test scenario (session rule 5). The scenarios of D02-ISE 15.2 are covered for their screen part; the delivery itself belongs to the build sessions (RC-3-S13, S15, S16).
| Requirement | Test scenario | Tests (describe titles) |
|---|---|---|
| FR-ISE-INT-001: health, worklists, item detail, payload on audited request | TEST-ISE-010 | FR-ISE-INT-001 TEST-ISE-010 UI-ISE-001 interface health and the worklists, FR-ISE-INT-001 UI-ISE-001 screen states; against the stub: FR-ISE-INT-001 FR-ISE-INT-005 FR-ISE-INT-006 UI-ISE-001 against the contract stub |
| FR-ISE-INT-005: replay with scope, target, ordering, sensitivity, bulk count, second authorization, close, refer | TEST-ISE-016 | FR-ISE-INT-005 TEST-ISE-016 UI-ISE-001 controlled replay (OV-112), FR-ISE-INT-005 UI-ISE-001 close with reason, refer, assign and annotate |
| FR-ISE-INT-006: reconciliation worklist and resolution | TEST-ISE-017 | FR-ISE-INT-006 TEST-ISE-017 UI-ISE-001 reconciliation worklist |
| FR-ISE-EVT-002: event dead letters and replay; event contracts in the catalogue | ... shows the quarantine, dead-letter (messages and events) and reconciliation worklists, the stub test's closing of a dead-lettered event; FR-ISE-GWY-002 FR-ISE-EVT-002 TEST-ISE-008 UI-ISE-003 contract detail |
|
| FR-ISE-INT-002: registry, registration, missing attributes, approvals not by the author, activation with the sign step, suspend with impact, resume, retire | TEST-ISE-011 | FR-ISE-INT-002 TEST-ISE-011 UI-ISE-002 registry, detail and lifecycle timeline, ... registration and approval, FR-ISE-INT-002 TEST-ISE-011 PH-03 UI-ISE-002 activation with the sign step, FR-ISE-INT-002 TEST-ISE-011 OV-113 UI-ISE-002 suspend, resume, deprecate and retire, FR-ISE-INT-002 UI-ISE-002 screen states; against the stub: FR-ISE-INT-002 FR-ISE-GWY-002 UI-ISE-002 against the contract stub |
| FR-ISE-KEY-003: credential and certificate bindings by reference | TEST-ISE-028 (screen part) | FR-ISE-INT-002 FR-ISE-KEY-003 UI-ISE-002 editing and bindings |
| FR-ISE-GWY-002: catalogue, Governance view, publication, breaking changes, deprecation window, retirement with consumers, capability statement | TEST-ISE-008 | FR-ISE-GWY-002 TEST-ISE-008 UI-ISE-003 the catalogue list and the Governance view (OV-15), ... contract detail, FR-ISE-GWY-002 TEST-ISE-008 BR-ISE-008 UI-ISE-003 publication and lifecycle, FR-ISE-GWY-002 UI-ISE-003 screen states; against the stub: FR-ISE-GWY-002 UI-ISE-003 against the contract stub |
Each test names in its title the rule it checks:
- CUX-12, CUX-15, CUX-36, CUX-53, CUX-64 and CUX-67;
- UX-ISE-004 and UX-ISE-008;
- OV-56, OV-112 and OV-113;
- PH-03;
- BR-ISE-002, PR-INT-002-1, PR-INT-002-3, PR-INT-005-3, PR-GWY-002-1 and PR-GWY-002-2;
- CFG-ISE-002.
NFR-ISE-008 Usability was a design input:
- status always in words (UX-ISE-002), and red only where UX-ISE-008 allows it;
- every action labelled by its effect, and every unavailable action with its reason;
- keyboard use throughout (React Aria, UX-ISE-001);
- times local with zone and in UTC on request (UX-ISE-005).
The NFR's own measure, an observed task-based evaluation with representative users, is for the slice's readiness work.
Differences from the specification, brief or contract, and why¶
- Lifecycle of a contract version. The catalogue contract has the state In Review between Draft and Active. The brief assumed none and showed "Draft, submitted for publication"; the screen follows the contract. "Submit version for publication" therefore submits the version, which is In Review at once. It is not a step after Draft.
- No "Submit for approval" or "Request activation" on UI-ISE-002. integration.v1 has no operation for either. A Proposed registration is approved directly, and a Certified one is activated by the approvals; the approval tasks are the provider's.
- Known difference, interim: the clinical functions of a suspension are shown after it. FR-ISE-INT-002 part 3 and UI-ISE-002 (06-user-interface.md, "Suspend interface") ask the dialog to name the clinical functions affected before confirming. integration.v1 answers them only in
suspension.impactof the suspension itself, and the contracts/ise README tells this session to show that answer. No ISE contract gives them beforehand. So, for now: - before the suspension the dialog names the tier and the consumer inventory, and says that the engine names the functions;
- afterwards it shows the impact and the banner text.
This is a conflict between the specification and the contract on safety behaviour. Asked on #76 under rule 3, the repository owner decided: the target is the specification's behaviour (functions named before confirming), through an impact preview in integration.v1 (follow-ups below). Until then this behaviour is accepted as an interim, and it is a known difference from FR-ISE-INT-002 part 3 and UI-ISE-002.
- Known difference, interim: the affected ordering keys of a bulk replay are shown after the request. UI-ISE-001 (06-user-interface.md, validation rules) says a bulk replay shows the item count and the affected ordering keys before the typed confirmation. integration.v1 gives the keys (MessageReplay.orderingKeys) only in the answer to requestMessageReplay. Neither the exception items nor the registration carry them: the registration names only the kind of key (orderingKey, for example patient). event-operations.v1 gives no keys for an event replay. The keys can be patient identifiers (OV-01, the operations variant shows them only in the detail). So, for now:
- before the request the dialog shows the item count, typed confirmation, and the kind of key with the original order (orderingText in model.ts);
- after the request the replay record lists the keys (detail.tsx). A replay that needs approval (replay-sensitive, or owning domain) waits there, so the authorizers see the keys before it runs. A replay that needs no approval has started by then.
This is a conflict between the specification and the contract on a replay safety control. Asked on #76 under rule 3, the repository owner decided: the target is the specification's behaviour (count and keys before the typed confirmation), through the contracts giving the keys beforehand, read under audit (follow-ups below). Until then this behaviour is accepted as an interim, and it is a known difference from UI-ISE-001.
- Retirement approvals in UI-ISE-003 are taken by in-place authentication of the interface owner and the Release Manager, whose step-up tokens are the signatureIds (ADR-HIS-108 point 4). The brief's "approval recorded" has no other source.
- The signature of an activation approval is the step-up's access token unless the host gives a signatureId. The integration engine verifies it that way (RC-3-S15, in review). The ESS screens' jti fallback (ADR-HIS-071) would be refused here (ADR-HIS-113 point 3).
- Data classification on the catalogue list is read from each row's current version, because listContracts does not answer it.
- Not in the contracts, so not shown:
- the gateway routes of a version (the retire confirmation says to check them in the gateway);
- the schema text (its reference is shown);
- assignment, annotation and payload view of a dead-lettered event.
- Stale threshold of UI-ISE-001. No CFG sets one for the console, so it is 5 minutes, as UI-ISE-008's brief uses for its store.
- Routes and mappings are not edited on UI-ISE-002. The form keeps them as they are; the registration's PRS 9.1 attributes are editable.
- Permissions. As on UI-ISE-007 and UI-ISE-008, the screens have no permission source but the provider's answer.
- Actions are enabled by record state.
- The author of a registration and the requester of a replay are told before the call when the host gives accountId.
- A 403 names the role that may act: the interface owner and the Release Manager for approvals, the Security Engineer for bindings, the Integration Engineer for resume, the integration engineer for publication.
Questions for a person¶
None open. Both questions asked on #76, the clinical functions before a suspension and the affected ordering keys before a bulk replay, were decided there (see the differences above and the follow-ups below).
Follow-ups outside the card¶
- Suspension impact preview (decided on #76; to be planned on OR-4-S01 for the contract and OR-4-S05 for the engine and screen, by a plan change after #318). In this order:
contracts/ise: a compatible minor version of integration.v1 adds an impact preview, for exampleGET /v1/interfaces/{interfaceId}/suspension-impactanswering the existingSuspensionImpactschema (tier, consumers, clinical functions, degraded signal);platform/integration-engine(RC-3-S15's unit) serves it;- UI-ISE-002 (
dialogs.tsx,TransitionDialog) reads it when the dialog opens and names the clinical functions before the person confirms, which ends the known difference above. - Replay ordering keys preview (decided on #76; planned with the suspension preview on OR-4-S01 and OR-4-S05). In this order:
contracts/ise: compatible minor versions of integration.v1 and event-operations.v1 give the affected ordering keys before a replay, as a replay scope preview or as the ordering key value on each exception item. Reading them is audited like the detail view, because the keys can be patient identifiers (OV-01 operations variant);- the integration engine and the event backbone serve them;
- UI-ISE-001 (
dialogs.tsx,ReplayDialog) shows the keys with the item count before the typed confirmation, which ends the known difference above. - Shell SDK (a session owning
web/shell): - a service client;
accountId;- a step-up provider that can authenticate a second person (
person: "second"); - navigation with a payload.
The api/http.ts copies then move there (ADR-HIS-069, ADR-HIS-113).
- Design system:
- pieces now built in each folder's ui.tsx: a section, an inline notice, a disabled action with its reason, a modal confirmation whose button ignores Enter, a select, a multi-line field, a checkbox, a label and value summary, a time with UTC on request, and durations in words;
- for UI-ISE-001, the work list component of OV-01 (UI-ESS-010) should take the console's worklists as a configuration when it can show an item detail beside the list.
- ISE contract, compatible minor versions (ADR-HIS-113 consequences):
- contract-catalogue.v1: dataClassification on list items, and a version's routes;
- event-operations.v1: assignment and payload view of a dead letter;
- integration.v1: an impact preview before a suspension.
- UI-ISE-008: open the suspend dialog by /ise/ui-ise-002/<interfaceId>?action=suspend for a revocation for suspected compromise (OV-113).
- Owning domains' queues (UI-ANC-004, UI-FIN-002, UI-EBP-014, UI-ANL-009): request a replay through UI-ISE-001's URL with the scope (OV-56).
- UI-ESS-012: link "API catalogue" to /ise/ui-ise-003?view=governance.
- Configuration: a CFG for the stale threshold of UI-ISE-001.
- RC-3-S24 (integrate): it may run the three check-against-stubs.sh scripts beside the slice scenario, since the pipeline does not run them.
- Decision record index: the row of ADR-HIS-113 is written on main by the sessions workflow after the merge. The number was free on origin/main on 2026-12-02.
- Host tooling: the server's Node.js cannot run the contract tool (as RC-3-S01 to S03 noted).