Implementation plan / Session plan / Handover RC-1-S18
Handover RC-1-S18 Build: Platform: supply-chain controls¶
Card: RC-1-S18. Issue: cema-care/his#32. Branch: session/RC-1-S18. Slice: RC-1. Decision records: ADR-HIS-059 (the unit) and ADR-HIS-060 (replacement paths).
What was built and where¶
The unit platform/supply-chain (MOD-ISE-010), for FR-ISE-SUP-001 and FR-ISE-SUP-003. Its README.md has every command, setting and file layout. The ISE contract offers no API for this unit in RC-1 ("the SBOM and dependency register are pipeline artifacts"). The unit therefore offers none and publishes no event. It reads two APIs, and only reads them: the Domain 10 decision register (IF-ESS-014) and the service catalogue (IF-ISE-007).
- A tool,
bin/supply-chain(supply_chain/): Python 3.11 or later, standard library only, so it adds no dependency of its own. register check: the dependency register's check. It covers behaviour 3, 5 and 6, AC-02, AC-03, PR-SUP-001-1, PR-SUP-001-2 and PR-SUP-003-3.register show: one entry, with its ADR by number, title and state, read-only (FR-ISE-SUP-003 AC-04).gate: the build gate on CycloneDX SBOMs (behaviour 4, AC-04, section 10). Each failure names the package and its dependency path.--coveragefails only on unregistered packages.archive add,archive deployed,archive verify: one immutable SBOM per release at the releases API'ssbomRef, with SHA-256 digests and its deployments (behaviour 1, AC-01).query: every release and environment that contains a component and version, with its vulnerabilities and path (behaviour 7).versions report: the supported-version report, compared with the service catalogue and with the releases deployed to production. It covers behaviour 3 and 4, AC-02, AC-03, PR-SUP-003-1 and PR-SUP-003-2.decisions check: each referenced ADR complete in the Domain 10 register (AC-01).register guard: on asession/*branch, refuses an added approval, an admission, or a change to what an admitted entry covers (behaviour 3).- The dependency register
register/dependencies.tomlholds 61 entries, allProposed, awaiting the four approvals. Together they cover every one of the 8,980 components of the 27 SBOMs of the repository on 2026-11-25 (after the merges of main, which broughtservices/ess-coordination,services/ess-runtime-decisionandplatform/event-backbone): - every build folder with a lockfile;
- the units' base image
eclipse-temurin:21-jre-noble.
The entries break down as follows:
- Libraries: the Spring family, Jackson, Tomcat, pgjdbc, HikariCP, Flyway, the Kafka clients, Nimbus, Micrometer, OpenTelemetry, React, React Aria, React Router, and the build and test tools.
- Products: PostgreSQL, Kafka, Apicurio, Keycloak, OpenBao, Temurin, Node.js, Gradle, Trivy, Semgrep, Gitleaks, and the development-only otel-lgtm image.
- Distribution: Ubuntu 24.04, for the base image's packages.
- Clinical impact: 20 entries are marked clinicalImpact. Each references ADR-HIS-060 with its replacement, data export and migration approach.
- Decisions: each of the 33 material entries names in decision the Accepted ADR it rests on (FR-ISE-SUP-003 behaviour 2):
- ADR-HIS-004, 005, 006, 007, 009, 010, 015 and 026 (technology selections);
- ADR-HIS-042, ADR-HIS-044 and ADR-HIS-051;
- ADR-HIS-059, for the networknt validator.
- The supported-version register register/components.toml: 41 production components (eight owned services, 26 material runtime dependencies, seven platform products), each with version line, supported-until date, owner and end-of-life plan.
- The settings register/policy.toml: review period 365 days, end-of-life warning 180 days, the four approval roles, the compatible licences and the approved sources. Each is a proposal (below).
- Tests in test/: 59 unit tests and 4 consumer contract tests against his-contract serve of contracts/ess and contracts/ise. test/run.py writes test/out/results.json with what each test covers. The fixture test/unit/fixtures/template.cdx.json is the pipeline's real SBOM of the service template.
- ci.sh, which the pipeline runs for this folder (kind script), and scripts/ends-when.sh, the card's check.
ADR-HIS-059 covers the unit's shape: - a register under version control; - one entry per component, keyed by name and major version, covering its packages by package-URL pattern; - the gate's admitted states; - the immutable release archive; - ADR references resolved in the Domain 10 register.
ADR-HIS-060 gives the replacement paths of AC-03. Both are in the decision record index (62 records). Number 057 is taken by the open pull request of RC-1-S09; 058, 061, 062 and 063 by RC-1-S15, RC-1-S16, RC-1-S12 and RC-1-S13 (merged), so this session took 059 and 060.
Checks and their result¶
| Check | Command | Result |
|---|---|---|
| Unit and contract tests | python3 test/run.py in platform/supply-chain |
passed: 59 unit, 4 contract; no violation on either stub |
| What the pipeline runs | ./ci.sh |
passed |
| Ends when | HIS_SESSION=RC-1-S18 platform/supply-chain/scripts/ends-when.sh |
passed (below) |
| Job plan | platform/delivery-pipeline/bin/changes --base origin/main |
one target, platform/supply-chain, kind script |
| Static analysis | platform/delivery-pipeline/bin/static-analysis platform/supply-chain |
no blocking finding |
| Secret scan, protected files | secret-scan code origin/main, secret-scan docs origin/main, protected-files origin/main |
no secret; no exception added |
| Dependency scan | platform/delivery-pipeline/bin/dependency-scan platform/supply-chain |
0 components, 0 blocking |
| Documentation | check_links.py; mkdocs build |
0 broken, 0 duplicate anchors; builds, with no new warning |
The steps of ends-when.sh, each passed:
- Every test passes.
- The committed registers pass their checks: 61 entries, no error and no flag; 41 components, all with an owner.
- On the repository as it is:
- the pipeline's dependency scan writes 27 SBOMs, from every build folder with a lockfile and the units' base image;
gate --coveragepasses over all 8,980 components;- the full gate stops them, only because 49 entries are still Proposed (section 10, "not approved").
- Those SBOMs are archived as one release and recorded in production:
archive verifypasses;queryfindskafka-clientsin 27 places in it, all in production;versions reportreads the deployed release with no flag.
Requirements and test scenarios¶
Every test carries its requirement, criterion and scenario through covers(), which leads its description. Tests are in platform/supply-chain/test/.
| Requirement, criterion | Tests |
|---|---|
| FR-ISE-SUP-001 AC-01: an SBOM in each release's archive | unit/test_archive.py: test_release_archive_holds_its_sbom, test_missing_or_changed_sbom_found, test_archived_release_is_immutable, test_cli; ends-when.sh step 4 |
| FR-ISE-SUP-001 AC-02: evidence, cadence, security contact and exit plan of each material dependency | unit/test_register.py: test_complete_entry_passes, test_each_evidence_field_is_required, and on the committed register test_register_passes_its_check, test_each_material_dependency_has_evidence_and_exit_plan |
| FR-ISE-SUP-001 AC-03: an ADR with replacement, data export and migration for each clinical-impact runtime dependency | test_register.py: test_clinical_runtime_dependency_needs_replacement_adr, and on the committed register test_clinical_dependencies_reference_accepted_replacement_adr (each entry has its row in ADR-HIS-060) |
| FR-ISE-SUP-001 AC-04: a build with an unregistered dependency fails | unit/test_gate.py: test_unregistered_dependency_fails_with_its_path, test_transitive_dependency_not_approved_fails, test_major_version_is_part_of_the_key, test_cli_exit_status; ends-when.sh step 3 |
| FR-ISE-SUP-001 behaviour 2, 3, 5, 7; PR-SUP-001-1, -2; section 10, 11, 12 | test_release_sbom_keeps_paths_and_vulnerability_status; test_admitted_only_with_four_approvals; test_lapsed_evidence_flagged_and_replacement_triggered; test_query_finds_every_release_and_environment; test_licence_missing_or_incompatible_rejected, test_product_copyleft_allowed_library_not, test_changed_licence_fails; test_sbom_generation_failure_fails_build, test_component_without_origin_fails; test_states_of_section_11; test_history_recorded |
| FR-ISE-SUP-003 AC-01: options, rationale, risks and review date of each Domain 2 decision in the Domain 10 register | unit/test_decisions.py: test_decisions_check_requires_options_rationale_risks_review_date, test_decisions_check_needs_the_register; contract/test_contract.py: test_cli_against_register |
| FR-ISE-SUP-003 AC-02: no production component without a support owner | unit/test_versions.py: test_component_without_owner_is_non_compliant, test_catalogue_compared_with_register, test_committed_register_every_component_owned |
| FR-ISE-SUP-003 AC-03: a component past its date flagged with its end-of-life plan | test_past_supported_until_flagged_with_plan, test_deployed_sboms_compared_with_register |
| FR-ISE-SUP-003 AC-04: number, title, state and link of the ADR, no edit action | test_dependency_shows_adr_number_title_state_read_only (the data UI-ISE-011 shows; the screen is RC-3-S22) |
| FR-ISE-SUP-003 behaviour 2, PR-SUP-003-3: an Accepted ADR before a material dependency is approved | test_register.py: test_material_dependency_needs_accepted_adr (admitted with no ADR reference, or with a non-Accepted one, refused; Proposed flagged), test_approval_refused_without_accepted_adr (replacement ADR not Accepted), test_adr_reference_must_resolve, and on the committed register test_every_material_dependency_rests_on_accepted_adr |
| FR-ISE-SUP-001 behaviour 3: a session branch cannot approve or admit | unit/test_guard.py: test_proposal_allowed, test_approval_or_admission_refused, test_admitted_entry_cannot_be_widened, test_cli_compares_with_base_commit, test_committed_register_passes_guard |
| FR-ISE-SUP-003 behaviour 1, 4, 5; PR-SUP-003-1, -2; section 10 | test_reference_resolved_in_domain_10_register, test_repository_source_where_no_register_runs, test_register_unavailable_or_denied; test_approaching_end_of_life_creates_item; contract/test_contract.py (all four) |
Test scenarios: - TEST-ISE-036 has three steps: - "inspect release archive for SBOM": the AC-01 tests; - "build with an unregistered dependency": the AC-04 tests; - "inspect register evidence and replacement ADRs": the AC-02 and AC-03 tests on the committed register.
Its expected results are: SBOM present; build fails; evidence complete.
- TEST-ISE-038 has four steps:
- "inspect Domain 2 decisions in the Domain 10 register": the AC-01 tests;
- "the supported-version report": test_report_lists_every_component_with_owner;
- "open a dependency with an ADR reference": the AC-04 test, for its data;
- "deploy a component without a support owner": test_component_without_owner_is_non_compliant and the service syn-orphan of test_catalogue_compared_with_register.
Its expected results are: records complete; read-only; non-compliance flagged. The screen half of "open on UI-ISE-011" is RC-3-S22's.
Non-functional targets:
- NFR-ISE-005: a dependency outside the register stops the build, and each SBOM keeps its vulnerability status.
- NFR-ISE-009: CycloneDX in and out, and consumer contract tests against both contracts.
- NFR-ISE-012: one correlation identifier per run, in every report and on every call as X-Correlation-Id.
- NFR-ISE-016: every time is UTC with Z.
- NFR-ISE-018: the unit has no console. Its JSON reports carry UTC instants for UI-ISE-011 to show in local time.
Review round 1¶
The review asked for two fixes and three points to settle. All are done on this branch.
- PR-SUP-003-3 and FR-ISE-SUP-003 behaviour 2. The check required an ADR only for clinical-impact entries, so 13 material runtime entries could have been admitted without one.
- Every material entry now has a
decision: the Accepted ADR it rests on. - The register check refuses to admit a material entry without one, or with one that does not resolve or is not Accepted. A Proposed entry without one is flagged.
- All 33 material entries reference an Accepted record. The networknt validator had none, since ADR-HIS-052 does not name it, so ADR-HIS-059 point 8 now records that decision.
- The new tests are
test_material_dependency_needs_accepted_adrandtest_every_material_dependency_rests_on_accepted_adr(table above). - Approvals written on a session branch.
register guardcompares the register with the base commit. On asession/*branch it refuses: - an added or changed approval;
- a status moved into an admitted state;
- a new admitted entry;
- a change to what an admitted entry covers.
It fails closed where the base can be read. ci.sh runs it. The pull request pipeline's build job checks out one commit without credentials in this private repository, so the base cannot be fetched there and the guard reports "NOT CHECKED". Enforcement in the pipeline therefore needs the protected-files job, which has the full history, to call it. That job is RC-1-S19's folder. The exposure until then is under "Needs a person".
- Role against use is recorded as a known limit in ADR-HIS-059 (Risks) and the README. The SBOM does not say whether a package is used at runtime, so a package under an @* pattern of a build or test entry is admitted with that entry's evidence.
- Packages without a licence in the SBOM are not compared with their entry's licences. This is recorded in the same places.
Review round 2¶
- Owned services had "until-successor" in place of a supported-until date. Section 7 makes the date mandatory. Each owned service now has 2028-11-30 under the support policy of ADR-HIS-059 point 7, which is also in the README.
versions reportrefuses any record without a date, andtest_record_completecovers it. The Enterprise Architect confirms the dates under "Needs a person". - The pull request description now has the figures from after the merge of main: 7,600 components in 25 SBOMs, and 39 production components.
- A duplicated
continueinsupply_chain/sbom.pyis removed. - After the next merge of main, which brought
services/ess-runtime-decision(RC-1-S16) andplatform/event-backbone(RC-1-S13), the register still covers every package: 8,980 components in 27 SBOMs, with no new entry. Both units got a supported-version record under the same policy, so there are 41 production components. Main also took ADR-HIS-061 and 063. This card's 059 and 060 are free, so they keep their numbers, and the index counts 62 records.
Done differently from the specification or contract, and why¶
- No entry is approved. Behaviour 3 needs architecture, security, legal and operations approval, which people give. Every entry is
Proposedwithapprovals = [], so the full gate stops every build until they approve. The gate is not yet in the pipeline (next point), so nothing is stopped today. - The gate is not wired into the pipeline.
.github/workflows/andplatform/delivery-pipelinebelong to RC-1-S19 (FR-ISE-REL-002 names this gate), whose card comes after this one. This unit'sci.shruns in the pipeline already. - Values the specification leaves open are proposals in
policy.toml, applied from the start. None is clinical, financial or access behaviour: - the review period of maintenance evidence, 365 days (ASM-ISE-008: "to be set by the architecture board");
- the end-of-life warning, 180 days (no CFG value);
- the compatible licences (the "legal policy" is not in the specification);
- the approved sources.
- Owned services' supported-until dates are the owners' policy, not a project's. Section 7 makes the date mandatory. Each owned service's version 1 is therefore supported until 2028-11-30: two years, extended by the owning team at each yearly review, and set to at least 12 months after a successor's release (ADR-HIS-059 point 7). The tool refuses a record without a date. An earlier draft had "until its successor", which section 7 does not allow.
- Maintenance evidence and support dates were compiled by the session on 2026-11-25, from what each project publishes as the session knows it, without fetching each page. The approvers check them before approving. Supported-until dates are marked
published(PostgreSQL, Temurin, Ubuntu) orprojectedfrom the project's support policy. The support owners are the teams of the units, as proposals. - One entry per component, with
@*patterns for what it brings (ADR-HIS-059 point 3). Behaviour 4 asks every dependency to be in the register. Each package is named by a pattern, and a new transitive package fails the build. Maintenance evidence is kept per component, not per transitive package. - ADR completeness (FR-ISE-SUP-003 AC-01) is checked only in the Domain 10 register. The repository's decision records have no risks section and no review date as data. The register requires both (
DecisionRecordof IF-ESS-014). ADR-HIS-059 and ADR-HIS-060 carry both sections, so they can be loaded as they are. - Audit. D02-ISE section 9.5 lists no audit event type for register actions. Approvals, renewals and retirements are recorded with actor and date in each entry's
approvalsandhistory, and git keeps every earlier state (section 12). No event goes to the Domain 10 audit service. - The release archive is a directory layout, not a store. Where it lives with the release artifacts, its access control (SBOMs Internal, aggregated vulnerability status Confidential, section 9.3) and its 10-year retention are the release pipeline's to set.
Questions for a person¶
None blocks this session. They are under "Needs a person" in the pull request.
| # | Question | Owner | What the unit does now |
|---|---|---|---|
| Q1 | The review period of maintenance evidence (ASM-ISE-008) | Enterprise Architecture Board | 365 days in policy.toml |
| Q2 | The end-of-life warning period of PR-SUP-003-2 | Enterprise Architect | 180 days in policy.toml |
| Q3 | The licences compatible under the legal policy, including copyleft for products run unmodified as their own programs (Temurin, otel-lgtm's AGPL components, Semgrep's LGPL engine and its rule licence) | Legal | The two lists in policy.toml; anything else is rejected |
Follow-ups outside the card¶
- RC-1-S19 (delivery pipeline):
- run
platform/supply-chain/bin/supply-chain gateon every build's SBOMs, starting with--coverageuntil the entries are approved; - archive each release with
archive add, and record each deployment witharchive deployed; - decide where the archive lives (with the release artifacts, 10 years).
- RC-1-S19, protected-files job: call
HIS_PIPELINE_BRANCH=<head> platform/supply-chain/bin/supply-chain register guard --base <base>. That job has the full history. Until then, the guard's refusal of approvals added on a session branch holds only where the base commit is present, not in the build job. - RC-3-S10 (FR-ISE-SUP-002): build the vulnerability register on the archive. Create a finding for each affected release when an advisory matches an archived SBOM (PR-SUP-001-3), using
query. - RC-3-S22 (UI-ISE-011): show an entry as
register showgives it, with the ADR's number, title, state and link, and no edit action. - Next ISE contract session: section 7.3 has no attributes for DE-ISE-015 to DE-ISE-018. The register's fields trace to FR-ISE-SUP-001 section 7 and behaviour 3, and FR-ISE-SUP-003 section 7. The contract session writes them into 7.3, and the API if UI-ISE-011 needs one.
- Domain 10 (ess-governance): load the repository's decision records into the register. Each Domain 2 record then needs its risks and review date as data, for FR-ISE-SUP-003 AC-01.
- D02-ISE section 9.5: add an audit event type for dependency approvals and retirements, if the register moves into a service.
- Every session that adds a dependency writes its proposed entry under "Needs a person" in its pull request. This folder belongs to this unit's sessions.