Implementation plan / Session plan / Outside the four flows
Sessions XF: Outside the four flows¶
Requirements that no critical flow exercises. They are listed so that nothing is left unplaced.
The rules every session follows are in sections 2 to 4 of the session plan. Sessions on the same step of a slice have no order between them and can run in parallel. A session of one slice can also come after a session of an earlier slice; its "After" row names it.
| Slice | Title | Sessions | Done |
|---|---|---|---|
| XF-1 | Data portability and exit export | 2 | 0 |
| XF-2 | Governed AI, research extracts and maturity scorecard | 7 | 0 |
XF-1 Data portability and exit export¶
Slice card: XF-1. Gate: slice gate XF-1. 2 sessions; at most 1 side by side.
| Step | Session | Kind | Scope | After | Status |
|---|---|---|---|---|---|
| 1 | XF-1-S01 | Build | Platform: backup and recovery: 1 requirement | RC-3-S03, RC-3-S17, RC-3-S24 | Not started |
| 2 | XF-1-S02 | Gate evidence | Slice gate evidence | RC-3-S26, XF-1-S01 | Not started |
XF-1-S01 Build: Platform: backup and recovery¶
| Status | Not started |
| After | RC-3-S03, RC-3-S17, RC-3-S24 |
| Enables | XF-1-S02 |
| Scope | This slice has one build session, so it also does the contract work: first fix the contracts and stubs the slice needs and write the end-to-end scenario as a failing test; then build. There are no screens, so it ends by making the scenario pass, as an integrate session would. MOD-ISE-009 Backup, Restore, Disaster Recovery and Downtime Enablement: FR-ISE-BCR-004 |
| Builds on | RC-3-S17 |
| Test scenarios | TEST-ISE-035 |
| Non-functional | Design for these targets: NFR-ISE-005 Security, NFR-ISE-009 Interoperability, NFR-ISE-012 Observability, NFR-ISE-016 Time integrity, NFR-ISE-018 Localization |
| Non-functional checks | Run in the integration environment, under the workload of section 10.1 and with the failures the targets name: NFR-ISE-001 Performance, NFR-ISE-002 Performance, NFR-ISE-004 Scalability, NFR-ISE-006 Reliability, NFR-ISE-010 Recoverability, NFR-ISE-013 Data durability, NFR-ISE-015 Capacity, NFR-ISE-017 Offline operation and synchronization |
| Reads | Module MOD-ISE-009: the overview and the requirements above in full D2 ISE workflows and business rules cited by those requirements D2 ISE data D2 ISE security, privacy and compliance D2 ISE non-functional requirements Slice XF-1 (outcome, scenario, requirements, dependencies met by contract) Architecture, section 6 Event catalogue D2 ISE integration The handovers of the earlier sessions on the same modules: RC-3-S17. Extend what they built; do not rebuild it |
| Leaves behind | Contract files, stubs, the failing scenario test, the section 7.3 additions, and a list of the contract points each build session must meet. Service code and migrations, unit and contract tests tagged with requirement and test identifiers. A passing scenario test, the interface checks of the slice (acknowledgement, error handling, replay, reconciliation, monitoring), and a list of defects fixed. |
| Ends when | First, contracts pass the compatibility check; every contract field traces to a requirement, a business rule or a section 7.3 attribute; stubs run in the integration environment; the scenario test runs and fails only because the behaviour is not built. Then, every acceptance criterion of the listed requirements has a passing test; the listed test scenarios pass; the contract tests pass; the change touches only the files of its deployable unit, plus its contract tests and migrations. Finally, the scenario passes from first step to last, through the screens and the built services, with no manual repair; the scenarios of the slices this one comes after still pass. Each non-functional check has run, and its result is recorded against its target; a shortfall is recorded with its measurement and goes to the gate, not silently past it. |
| Needs a person | Leads of the domains in the slice review the contracts it fixes, as for a contract session |
XF-1-S02 Gate evidence: Slice gate evidence¶
| Status | Not started |
| After | RC-3-S26, XF-1-S01 |
| Enables | – |
| Scope | Run by a session that wrote none of the slice. Runs the slice gate, collects the evidence in the form PRS section 17.3 requires, and reports what fails. It does not fix: a failure returns to the session that owns it. |
| Non-functional | Collect evidence of these targets: NFR-ISE-003 Availability, NFR-ISE-007 Maintainability, NFR-ISE-011 Portability, NFR-ISE-014 Upgradeability, NFR-ISE-019 Supportability |
| Reads | Slice XF-1 ("done when") Slice gate XF-1 Stage gates, section 1 (evidence and waivers) D2 ISE test scenarios |
| Leaves behind | The evidence record of the slice gate and a pass or fail report against each "done when" line of the slice. |
| Ends when | Every "done when" line of the slice has evidence or a recorded failure. Each failure is filed as a fix issue against the session that owns it (session plan, section 3). The gate itself is passed by the owner who signs it, not by the session. |
| Needs a person | Business owner signs the scenario |
XF-2 Governed AI, research extracts and maturity scorecard¶
Slice card: XF-2. Gate: slice gate XF-2. 7 sessions; at most 3 side by side.
| Step | Session | Kind | Scope | After | Status |
|---|---|---|---|---|---|
| 1 | XF-2-S01 | Contract | Contracts, stubs and the failing scenario test | BC-8-S01 | Not started |
| 2 | XF-2-S02 | Build | Data platform: 3 requirements | BC-9-S03, XF-2-S01 | Not started |
| 2 | XF-2-S03 | Build | AI policy gateway and registry (part 1 of 2): 3 requirements | XF-2-S01 | Not started |
| 2 | XF-2-S05 | Screens | ANL screens: 3 screens | XF-2-S01 | Not started |
| 3 | XF-2-S04 | Build | AI policy gateway and registry (part 2 of 2): 2 requirements | XF-2-S03 | Not started |
| 4 | XF-2-S06 | Integrate | End-to-end scenario across ANL | BC-8-S08, XF-2-S02, XF-2-S04, XF-2-S05 | Not started |
| 5 | XF-2-S07 | Gate evidence | Slice gate evidence | BC-8-S09, XF-2-S06 | Not started |
XF-2-S01 Contract: Contracts, stubs and the failing scenario test¶
| Status | Not started |
| After | BC-8-S01 |
| Enables | XF-2-S02, XF-2-S03, XF-2-S05 |
| Scope | Fixes what the slice exposes before any of it is built: the API and event contracts each domain in the slice offers, a stub for every upstream module the slice needs but does not build, and the end-to-end scenario as an automated test that fails. Fields follow architecture section 6.6: the shared type library, the attributes of section 7.3 where listed, and for any entity section 7.3 does not detail, its attributes written into section 7.3 of the owning specification in the same pull request. Modules: MOD-ANL-008, MOD-ANL-009, MOD-ANL-010. |
| Reads | Slice XF-2 (outcome, scenario, requirements, dependencies met by contract) Architecture, section 6 Event catalogue D8 ANL integration D8 ANL data |
| Leaves behind | Contract files, stubs, the failing scenario test, the section 7.3 additions, and a list of the contract points each build session must meet. |
| Ends when | Contracts pass the compatibility check; every contract field traces to a requirement, a business rule or a section 7.3 attribute; stubs run in the integration environment; the scenario test runs and fails only because the behaviour is not built. |
XF-2-S02 Build: Data platform¶
| Status | Not started |
| After | BC-9-S03, XF-2-S01 |
| Enables | XF-2-S06 |
| Scope | MOD-ANL-008 Research and Quality-Improvement Extracts and De-identification: FR-ANL-RDX-001, FR-ANL-RDX-002 MOD-ANL-010 Management Reporting and Trend Analysis: FR-ANL-MGT-002 |
| Builds on | BC-9-S03 |
| Test scenarios | TEST-ANL-025, TEST-ANL-026, TEST-ANL-027, TEST-ANL-028, TEST-ANL-043, TEST-ANL-050 |
| Safety | Safety-critical functions this session implements a control for (section 11.1): Research extracts (hazard: re-identification of patients; verified by TEST-ANL-025, TEST-ANL-028) |
| Non-functional | Design for these targets: NFR-ANL-006 Security, NFR-ANL-010 Interoperability, NFR-ANL-013 Observability, NFR-ANL-014 Time integrity, NFR-ANL-015 Localization, NFR-ANL-017 AI safety |
| Reads | Modules MOD-ANL-008, MOD-ANL-010: the overview and the requirements above in full D8 ANL workflows and business rules cited by those requirements D8 ANL data D8 ANL security, privacy and compliance D8 ANL non-functional requirements The contracts and handover of XF-2-S01 The handovers of the earlier sessions on the same modules: BC-9-S03. Extend what they built; do not rebuild it |
| Leaves behind | Service code and migrations, unit and contract tests tagged with requirement and test identifiers. |
| Ends when | Every acceptance criterion of the listed requirements has a passing test; the listed test scenarios pass; the contract tests pass; the change touches only the files of its deployable unit, plus its contract tests and migrations. The verification of each safety-critical function listed passes; where the change alters a safety control, the hazard log entry is updated (architecture section 13). |
XF-2-S03 Build: AI policy gateway and registry (part 1 of 2)¶
| Status | Not started |
| After | XF-2-S01 |
| Enables | XF-2-S04 |
| Scope | MOD-ANL-009 Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows: FR-ANL-AIG-001, FR-ANL-AIG-002, FR-ANL-AIG-003 |
| Test scenarios | TEST-ANL-029, TEST-ANL-030, TEST-ANL-031, TEST-ANL-032, TEST-ANL-033, TEST-ANL-034 |
| Safety | Safety-critical functions this session implements a control for (section 11.1): AI use-case approval (hazard: a use case performs an autonomous clinical action; verified by TEST-ANL-029, TEST-ANL-030); AI access to patient data (hazard: aI retrieves data beyond the user's authorization or for the wrong patient; verified by TEST-ANL-031, TEST-ANL-032); AI-assisted drafting (summaries, classification, coding suggestions) (hazard: incorrect or fabricated content is accepted into the record or influences care; verified by TEST-ANL-033, TEST-ANL-034) |
| Safety duty | Governed AI: AI never acts on its own: AI content is marked, enters the record only when a person accepts it, retrieves only what the user may see for the patient in context, and every core workflow runs when AI is unavailable (architecture section 13). |
| Non-functional | Design for these targets: NFR-ANL-006 Security, NFR-ANL-010 Interoperability, NFR-ANL-013 Observability, NFR-ANL-014 Time integrity, NFR-ANL-015 Localization, NFR-ANL-017 AI safety |
| Reads | Module MOD-ANL-009: the overview and the requirements above in full D8 ANL workflows and business rules cited by those requirements D8 ANL data D8 ANL security, privacy and compliance D8 ANL non-functional requirements The contracts and handover of XF-2-S01 |
| Leaves behind | Service code and migrations, unit and contract tests tagged with requirement and test identifiers. |
| Ends when | Every acceptance criterion of the listed requirements has a passing test; the listed test scenarios pass; the contract tests pass; the change touches only the files of its deployable unit, plus its contract tests and migrations. The verification of each safety-critical function listed passes; where the change alters a safety control, the hazard log entry is updated (architecture section 13). |
| Needs a person | Clinical safety officer and AI governance review the change, on the merged work (Governed AI) |
XF-2-S04 Build: AI policy gateway and registry (part 2 of 2)¶
| Status | Not started |
| After | XF-2-S03 |
| Enables | XF-2-S06 |
| Scope | MOD-ANL-009 Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows: FR-ANL-AIG-004, FR-ANL-AIG-005 |
| Test scenarios | TEST-ANL-035, TEST-ANL-036, TEST-ANL-037, TEST-ANL-038 |
| Safety | Safety-critical functions this session implements a control for (section 11.1): AI model operation (hazard: model degrades (drift, bias, hallucination) unnoticed; verified by TEST-ANL-035, TEST-ANL-036); AI dependency (hazard: a core workflow stalls because AI is unavailable; verified by TEST-ANL-037, TEST-ANL-038) |
| Safety duty | Governed AI: AI never acts on its own: AI content is marked, enters the record only when a person accepts it, retrieves only what the user may see for the patient in context, and every core workflow runs when AI is unavailable (architecture section 13). |
| Non-functional | Design for these targets: NFR-ANL-006 Security, NFR-ANL-010 Interoperability, NFR-ANL-013 Observability, NFR-ANL-014 Time integrity, NFR-ANL-015 Localization, NFR-ANL-017 AI safety |
| Reads | Module MOD-ANL-009: the overview and the requirements above in full D8 ANL workflows and business rules cited by those requirements D8 ANL data D8 ANL security, privacy and compliance D8 ANL non-functional requirements The contracts and handover of XF-2-S01 |
| Leaves behind | Service code and migrations, unit and contract tests tagged with requirement and test identifiers. |
| Ends when | Every acceptance criterion of the listed requirements has a passing test; the listed test scenarios pass; the contract tests pass; the change touches only the files of its deployable unit, plus its contract tests and migrations. The verification of each safety-critical function listed passes; where the change alters a safety control, the hazard log entry is updated (architecture section 13). |
| Needs a person | Clinical safety officer and AI governance review the change, on the merged work (Governed AI) |
XF-2-S05 Screens: ANL screens¶
| Status | Not started |
| After | XF-2-S01 |
| Enables | XF-2-S06 |
| Scope | UI-ANL-011 Extract Request and Approval Workspace (detailed in section 6.3 of the specification; work from that entry); UI-ANL-012 AI Governance Console; UI-ANL-013 AI Draft Review Component (embedded in host workflows) (detailed in section 6.3 of the specification; work from that entry) |
| Safety duty | Governed AI: AI never acts on its own: AI content is marked, enters the record only when a person accepts it, retrieves only what the user may see for the patient in context, and every core workflow runs when AI is unavailable (architecture section 13). |
| Non-functional | Design for these targets: NFR-ANL-009 Usability, NFR-ANL-016 Accessibility |
| Reads | The briefs above The contracts, stubs and handover of XF-2-S01 Application shell Clinical UX safety rules Design system User roles D8 ANL user interface |
| Leaves behind | Screen code in the folder of each screen in the domain workspace, component tests, accessibility checks. |
| Ends when | Each screen meets its brief and the clinical UX safety rules; component and accessibility checks pass; the screen works against the stubs of the contracts; the change touches only the folders of its screens. |
| Needs a person | Clinical safety officer and AI governance review the change, on the merged work (Governed AI) |
XF-2-S06 Integrate: End-to-end scenario across ANL¶
| Status | Not started |
| After | BC-8-S08, XF-2-S02, XF-2-S04, XF-2-S05 |
| Enables | XF-2-S07 |
| Scope | Joins the build and screen sessions of the slice: replaces stubs with the built services, for the screens as well, runs the end-to-end scenario with its failure branches, and repairs what breaks between domains. |
| Non-functional checks | Run in the integration environment, under the workload of section 10.1 and with the failures the targets name: NFR-ANL-001 Performance, NFR-ANL-002 Performance (isolation), NFR-ANL-003 Timeliness, NFR-ANL-005 Scalability, NFR-ANL-007 Reliability, NFR-ANL-011 Recoverability |
| Reads | Slice XF-2 (scenario and "done when") The handovers of every session of this slice The handovers of the sessions that made the scenarios of the earlier slices pass: BC-8-S08 D8 ANL integration |
| Leaves behind | A passing scenario test, the interface checks of the slice (acknowledgement, error handling, replay, reconciliation, monitoring), and a list of defects fixed. |
| Ends when | The scenario passes from first step to last, through the screens and the built services, with no manual repair; the scenarios of the slices this one comes after still pass. Each non-functional check has run, and its result is recorded against its target; a shortfall is recorded with its measurement and goes to the gate, not silently past it. |
XF-2-S07 Gate evidence: Slice gate evidence¶
| Status | Not started |
| After | BC-8-S09, XF-2-S06 |
| Enables | – |
| Scope | Run by a session that wrote none of the slice. Runs the slice gate, collects the evidence in the form PRS section 17.3 requires, and reports what fails. It does not fix: a failure returns to the session that owns it. |
| Non-functional | Collect evidence of these targets: NFR-ANL-004 Availability, NFR-ANL-008 Maintainability, NFR-ANL-012 Portability |
| Reads | Slice XF-2 ("done when") Slice gate XF-2 Stage gates, section 1 (evidence and waivers) D8 ANL test scenarios |
| Leaves behind | The evidence record of the slice gate and a pass or fail report against each "done when" line of the slice. |
| Ends when | Every "done when" line of the slice has evidence or a recorded failure. Each failure is filed as a fix issue against the session that owns it (session plan, section 3). The gate itself is passed by the owner who signs it, not by the session. |
| Needs a person | Business owner signs the scenario |