MOD ISE 005 REL
Domain specifications / D02-ISE / 5. Detailed Functional Requirements / 5.5 Module Specification: Infrastructure-as-Code, CI/CD and Release
5.5 Module Specification: Infrastructure-as-Code, CI/CD and Release¶
5.5.1 Module Overview¶
Module ID: MOD-ISE-005
Purpose: Provide the organization-controlled source control, build, verification, signing, packaging and promotion pipeline through which all software, infrastructure definitions and configuration manifests reach production, and the mechanisms for upgrade and rollback.
Business Capabilities: - CAP-ISE-008 Secure software delivery and release
Primary Actors: - Domain Service Team (ACT-ISE-008) - Release Manager / Change Authority (ACT-ISE-005) - Platform Engineer / SRE (ACT-ISE-001) - Security Engineer (ACT-ISE-004)
Dependencies: - MOD-ISE-006 (signing keys, pipeline secrets), MOD-ISE-010 (SBOM, scanning policy) - Domain 10 (ESS) for governance of configuration content; Domain 9 (EBP) for pathway content promoted through the pipeline
5.5.2 Functional Areas¶
Functional Area ID: FA-ISE-011 Build and verification pipeline
Description: Peer review, automated CI validation, scanning and validation of clinical artifacts before merge and build.
Scope: - Included: protected branches, pull requests, static analysis, dependency, vulnerability and secret scanning, unit, integration and contract tests, artifact validators. - Excluded: authoring of clinical content and its clinical approval.
Functional Area ID: FA-ISE-012 Release packaging, promotion and change
Description: Signing, reproducibility, release manifests, environment promotion, upgrade, rollback and change communication.
Scope: - Included: artifact repository, signing, release manifest, promotion gates, migration checks, maintenance windows and release notices. - Excluded: business acceptance testing owned by domains.
5.5.3 Detailed Requirements¶
Requirement FR-ISE-REL-001: Peer-Reviewed Change and Automated CI Validation¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ISE-REL-001 |
| Requirement Name | Peer-reviewed change and automated CI validation |
| Requirement Type | Functional |
| Module | Infrastructure-as-Code, CI/CD and Release |
| Functional Area | FA-ISE-011 Build and verification pipeline |
| Priority | Must (coverage threshold element: Should, SDLC-004) |
| Criticality | High |
| Requirement Status | Draft |
| Source | SDLC-001, SDLC-002, SDLC-003, SDLC-004; CFG-006; PRS section 15.1 |
| Related Business Rule | BR-ISE-011, BR-ISE-014 |
| Related Workflow | WF-ISE-002 |
1. Requirement Statement
The system shall require every code, infrastructure-definition and configuration-manifest change to pass a peer-reviewed pull request and automated CI validation before merge, where CI runs static analysis, dependency and vulnerability scanning, secret scanning, unit tests, integration tests and API/contract tests, and automatically validates clinical schemas, FHIR profiles, terminology bindings and clinical templates.
2. Business Rationale
Defects and vulnerabilities are cheapest to stop before merge, and invalid clinical artifacts must never reach an environment where clinicians rely on them.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Domain Service Team | Create pull requests; Approve others' pull requests | Author cannot be sole approver |
| Platform Engineer / SRE | Update pipeline definitions | Pipeline changes are themselves peer-reviewed |
| Security Engineer | Update scanning policy; Approve documented exceptions to findings |
4. Preconditions - Repositories are organization-controlled with protected branches.
5. Trigger - A pull request is opened or updated.
6. Functional Behaviour
- Protected branches shall accept changes only through pull requests with at least one approving reviewer other than the author.
- CI shall run the checks listed in the requirement statement on every pull request and on the merged result.
- CI shall fail the pipeline when clinical schemas, FHIR profiles, terminology bindings or clinical templates in the change are invalid.
- CI shall block merge and promotion when unapproved critical or high findings exist.
- Where a code coverage threshold is adopted as a project baseline, CI shall report coverage against it; coverage shall be combined with risk-based branch, mutation and scenario testing and shall not by itself be treated as evidence of clinical safety or correctness.
- Infrastructure-as-code changes shall additionally pass automated policy checks.
- Pull request and CI evidence shall be retained.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Change set | Source diff | Yes | Builds; passes checks | Proposed change |
| Reviewer approval | Record | Yes | Reviewer differs from author | Peer review |
| Linked work item / requirement | Reference | Yes | Resolves | Traceability |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-REL-001-1 | Any mandatory check fails | Merge blocked |
| PR-REL-001-2 | Secret detected in a change | Merge blocked; secret treated as compromised and rotated |
| PR-REL-001-3 | Critical or high finding with a recorded, approved exception | Merge allowed; exception referenced in evidence |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| CI result and evidence | Structured record | Author, reviewers, release record | Check outcomes |
| Findings | Structured | Vulnerability register (FR-ISE-SUP-002) | Scan results |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Direct push to a protected branch | Branch protection | Refused | Use a pull request |
| Invalid FHIR profile or template | Artifact validator | Pipeline fails | Shows validation errors |
| Scanner unavailable | Check completeness | Pipeline fails closed | Rerun when available |
11. State and Lifecycle Behaviour
A change is Proposed, In Review, Validated, Merged or Rejected.
12. Audit Requirements
Pull request author, reviewers, approvals, check results, exceptions and merge are retained as release evidence.
13. Security and Privacy Requirements
Pipelines run with scoped, short-lived credentials. Test data in CI is synthetic or de-identified.
14. Acceptance Criteria
- AC-01: Given a protected branch, when a change is merged, then pull request and CI evidence exists (SDLC-001).
- AC-02: Given a build with an unapproved critical or high finding, when promotion is attempted, then it is blocked (SDLC-002).
- AC-03: Given an invalid clinical template or FHIR profile, when CI runs, then the pipeline fails (SDLC-003).
- AC-04: Given a commit containing a secret, when CI runs, then the merge is blocked (SEC-009).
15. Dependencies and Integration
- Upstream dependencies: MOD-ISE-006, MOD-ISE-010; Domain 10 terminology service for binding validation.
- Downstream dependencies: FR-ISE-REL-002.
- Required events or APIs: none.
16. Open Questions / Assumptions
- Adoption and level of a coverage threshold is a project decision; the PRS notes 85% as a roadmap figure that may be adopted (CFG-ISE-024).
Requirement FR-ISE-REL-002: Signed, Reproducible Artifacts and Controlled Promotion¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ISE-REL-002 |
| Requirement Name | Signed, reproducible artifacts and controlled promotion |
| Requirement Type | Functional |
| Module | Infrastructure-as-Code, CI/CD and Release |
| Functional Area | FA-ISE-012 Release packaging, promotion and change |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | SDLC-005, SDLC-007; CFG-006; DEP-002, DEP-008; NFR-008; contributes to CFG-001, CFG-002 (primary Domain 10) and CFG-008 (primary Domain 9) |
| Related Business Rule | BR-ISE-012 |
| Related Workflow | WF-ISE-002 |
1. Requirement Statement
The system shall version, sign and reproducibly build all production artifacts from organization-controlled source and approved dependencies, shall promote them through controlled environments, and shall assemble for each production release a package containing application artifacts, schema migrations, configuration manifests, clinical templates, FHIR profiles, SBOM, runbooks and installation/integration guides.
2. Business Rationale
The organization must be able to prove what is running, rebuild it and deploy it independently.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Pipeline (workload) | Create and sign artifacts | Signing key held in the controlled key store |
| Release Manager / Change Authority | Approve promotion to pre-production and production | Evidence complete |
| Platform Engineer / SRE | Execute deployment | Approved release only |
4. Preconditions - FR-ISE-REL-001 checks have passed.
5. Trigger - Merge to a release branch or creation of a release tag.
6. Functional Behaviour
- The pipeline shall build artifacts from tagged source using only dependencies in the approved dependency register, from organization-controlled artifact repositories.
- The pipeline shall sign each artifact and record build provenance.
- The pipeline shall be able to rebuild a release from its tag and approved dependencies and produce equivalent artifacts.
- The release manifest shall list every component in the package and its version; an incomplete manifest shall block promotion.
- Promotion shall proceed development/integration, pre-production, production; each promotion shall be gated and recorded. The pipeline shall refuse a promotion to production when the approver is an author or committer of any change in the release, or merged one of its pull requests. The pipeline sends the change authors with the promotion request to the Domain 10 decision service, which applies segregation-of-duties rule 6.
- Deployment shall verify signatures and refuse unsigned or unverifiable artifacts.
- Configuration manifests and governed content (including pathway and guideline content) shall be promoted by the same mechanism with version, effective date and audit evidence; the content and its approval remain with Domain 10 and the owning domain.
- The organization shall hold all source, build definitions, deployment manifests, schemas, configuration and documentation in repositories it controls.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Release tag | String | Yes | Unique; points to merged, validated source | Release identity |
| Release manifest | Structured | Yes | All seven package component types present or marked not applicable with reason | Package content |
| Promotion approval | Record | Yes | Approver authorized | Gate evidence |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-REL-002-1 | Dependency not in the approved register | Build fails |
| PR-REL-002-2 | Signature verification fails at deployment | Deployment refused |
| PR-REL-002-3 | Manifest incomplete | Promotion blocked |
| PR-REL-002-4 | Promotion to pre-production or production rejected by the Release Manager | Release becomes Rejected with the reason recorded; it cannot be promoted |
| PR-REL-002-5 | Production promotion approved by a person who authored, committed or merged a change in the release (D10 segregation-of-duties rule 6) | Approval refused and audited; the release stays Validated until an independent approver approves |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Signed artifacts | Artifact with signature and provenance | Artifact repository | Deployable units |
| Release package and manifest | Package | Operations; implementation team | Independently deployable |
| Promotion record | Structured | Release record | Environment, approver, time, outcome |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Rebuild differs from released artifact | Reproducibility check | Flagged; release investigated | Not accepted as reproducible |
| External package source unreachable | Repository policy | Build uses internal mirror only | Build does not depend on external availability |
11. State and Lifecycle Behaviour
Release states: Candidate, Signed, Awaiting Pre-production Approval, Validated, Approved, Rejected, Deployed, Rolled Back / Forward-Fixed, Retired (section 4.3). A signed release waits in Awaiting Pre-production Approval until the Release Manager approves promotion to pre-production. A release whose promotion is rejected, or which fails pre-production validation, becomes Rejected. A rejected release is not promoted further; a corrected change starts as a new Candidate.
12. Audit Requirements
Build, signing, promotion approvals and deployments are recorded with actor, time, version and environment.
13. Security and Privacy Requirements
Signing keys are protected under FR-ISE-KEY-001 with separation of duties between those who write code and those who control signing keys.
14. Acceptance Criteria
- AC-01: Given a release tag, when the release is rebuilt from source and approved dependencies, then it can be reproduced (SDLC-005, CFG-006).
- AC-02: Given a production package, when its manifest is inspected, then it is complete and the package is independently deployable (SDLC-007).
- AC-03: Given an unsigned artifact, when deployment to production is attempted, then it is refused.
- AC-04: Given a contract and repository audit, when access and rights are checked, then the organization has access to all source, build definitions, manifests, schemas, configuration and documentation (DEP-002; the contractual part is outside system scope).
- AC-05: Given a release that contains a change written by user A, when user A approves its promotion to production, then the pipeline refuses the approval and records the refusal.
15. Dependencies and Integration
- Upstream dependencies: FR-ISE-REL-001, FR-ISE-SUP-001.
- Downstream dependencies: all environments.
- Required events or APIs: EVT-ISE-007.
16. Open Questions / Assumptions
- DEP-002 includes contractual rights that are verified by contract audit, not by the system (CON-ISE-006).
Requirement FR-ISE-REL-003: Upgrade, Compatibility, Rollback and Change Communication¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ISE-REL-003 |
| Requirement Name | Upgrade, compatibility, rollback and change communication |
| Requirement Type | Functional |
| Module | Infrastructure-as-Code, CI/CD and Release |
| Functional Area | FA-ISE-012 Release packaging, promotion and change |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | SDLC-006; NFR-016; BCP-008; PRS section 15.1 |
| Related Business Rule | BR-ISE-008, BR-ISE-021 |
| Related Workflow | WF-ISE-002 |
1. Requirement Statement
The system shall support rolling or controlled releases with compatibility and rollback or forward-fix plans for database migrations, event schema evolution, FHIR profile changes and clinical template changes, and shall provide maintenance windows, release notices, change records and stakeholder communications for every production change.
2. Business Rationale
A hospital cannot stop for upgrades. Changes must be reversible or correctable and those affected must know in advance.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Release Manager / Change Authority | Approve change record; authorize rollback or forward-fix | |
| Platform Engineer / SRE | Execute release, rollback | |
| Authorized clinical and operational approvers | Approve emergency clinical fixes | Expedited path |
4. Preconditions - A change record exists with approvals, impact, test and recovery plan.
5. Trigger - A release approved for production; a failed post-deployment check.
6. Functional Behaviour
- Each change record shall contain approvals, impact assessment, test evidence and a rollback or forward-fix plan.
- Database migrations shall be checked for backward compatibility with the previous application version where rolling release is used.
- Upgrade tests shall include mixed-version operation where required.
- Tier 1 services shall be upgradable without a full outage through rolling or otherwise controlled release; where an outage is unavoidable it shall occur in an approved maintenance window.
- Release notices shall be issued to affected stakeholders before the change and on completion.
- On failed health checks the system shall support execution of the recorded rollback or forward-fix plan.
- Emergency clinical fixes shall use an expedited but documented approval path with retrospective review.
- The change failure rate shall be measured.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Change record | Structured | Yes | Approvals, impact, test and recovery plan present | Governance record |
| Maintenance window | Time range | Where outage expected | Within approved windows (CFG-ISE-022) or approved exception | Timing |
| Compatibility evidence | Reference | Yes for migration, schema, profile and template changes | Tests passed | Evidence |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-REL-003-1 | Change record lacks a recovery plan | Promotion blocked |
| PR-REL-003-2 | Irreversible migration | Requires a forward-fix plan and a verified pre-change backup |
| PR-REL-003-3 | Emergency path used | Retrospective review task created |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Release notice | Notification | Affected stakeholders | Scope, timing, impact |
| Change record | Structured | Governance; auditors | Approvals, impact, test, recovery plan, outcome |
| Change failure rate | Metric | Platform reliability dashboard | Failed changes over total |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Health check fails after deployment | Post-deployment checks | Release marked failed; rollback or forward-fix initiated | Incident raised |
| Mixed-version incompatibility detected in pre-production | Upgrade test | Promotion blocked | Fix compatibility |
11. State and Lifecycle Behaviour
Change record: Draft, Approved, Scheduled, Implemented, Failed (recovered), Closed.
12. Audit Requirements
Approvals, schedule, execution, rollback and emergency-path use are recorded with actor and time.
13. Security and Privacy Requirements
Production change is restricted to the pipeline and authorized operators; emergency access is time-limited and audited.
14. Acceptance Criteria
- AC-01: Given an upgrade with a database migration and event schema change, when upgrade tests run, then mixed-version operation works where required (SDLC-006).
- AC-02: Given a production change, when its change record is inspected, then it contains approvals, impact, test and recovery plan (BCP-008).
- AC-03: Given a failed deployment, when the recovery plan is executed, then service returns to the prior or corrected behaviour (NFR-016).
- AC-04: Given an emergency clinical fix, when it is deployed, then an expedited approval record and a retrospective review exist.
15. Dependencies and Integration
- Upstream dependencies: FR-ISE-REL-002; FR-ISE-BCR-001 (pre-change backup).
- Downstream dependencies: all domains; Domain 10 notification service for stakeholder notices.
- Required events or APIs: EVT-ISE-007.
16. Open Questions / Assumptions
- Maintenance windows are an open decision (PRS section 19.3; CFG-ISE-022).
← 5.4 Module Specification: Event Backbone and Offline Edge | Contents | Identifier index | 5.6 Module Specification: Secrets, Certificates, Encryption and Key Management →