Skip to content

Architecture / Decision records / ADR-HIS-066

ADR-HIS-066 Delivery pipeline release half: a releases service in the pipeline unit, release steps as scripts, reproducible builds from the tag, cosign signatures with SLSA provenance, and clinical artifact validation in the pull request pipeline

Status Accepted
Decided 2026-11-25 by session RC-1-S19
Record Drafted 2026-11-25; approved 2026-11-30 by the Enterprise Architecture Board
Where the rule lives platform/delivery-pipeline/ (its README.md; mod-ise-005/; api/release-pipeline.v1.openapi.yaml; bin/release with lib/release.py and release/reproducible.init.gradle.kts; bin/clinical-artifacts with lib/clinical.py; bin/iac-policy; tools.env)

Context

RC-1-S19 builds MOD-ISE-005 for FR-ISE-REL-001 and FR-ISE-REL-002. FN-S05 (ADR-HIS-046) built the pull request pipeline in this folder: job scripts in bin/, wired by .github/workflows/pipeline.yml, so that the pipeline can move to the hospital's GitLab (ADR-HIS-038). Technology stack row 12 selects GitLab, Harbor and Sigstore cosign.

The contract of RC-1-S02 (contracts/ise, releases.v1) fixes the releases API that people and the release console UI-ISE-007 use. It says builds and deployments run in the pipeline and the deployment tool, and that the API records their results. It has no operation for recording them. Its contract point for this session says: - record releases as the API states them; - on an approval to production, send the change authors to the D10 decision service, and answer 403 on a segregation-of-duties denial; - publish ReleaseDeployed.

The specification and the card leave these open: - where the releases service lives; - how the pipeline records its results; - how a release is made reproducible and signed, and where the signing key is; - how "the change authors" reach a decision service whose rule 6 names one earlier actor; - how clinical artifacts are recognised and validated; - which policy checks apply to infrastructure code.

Decision

  1. The releases service is a Java unit in platform/delivery-pipeline. It is made from the service template (ADR-HIS-044): unit ise-delivery-pipeline, module mod-ise-005, schema mod_ise_005, topic his.ise.release.v1. It sits beside FN-S05's scripts, as RC-1-S14 put its unit beside its store configuration (ADR-HIS-064). The pipeline's job planner therefore builds this folder as a Java unit. The release steps' Python tests are part of bin/self-test, which runs on every change to the folder.
  2. It serves the releases.v1 operations of FR-ISE-REL-002: listReleases, readRelease, decidePromotion and recordSecuritySignoff. The sign-off is served because the production gate needs it (BR-ISE-022). The change record and recovery operations are FR-ISE-REL-003's, and are left to the card that builds it (RC-3-S12).
  3. The pipeline's results go through the unit's own API, api/release-pipeline.v1.openapi.yaml, under /v1/pipeline/releases. It records:
  4. the build;
  5. the signature verification;
  6. the rebuild;
  7. the request for pre-production;
  8. the change record reference;
  9. the pre-production validation;
  10. each deployment;
  11. a rollback or forward-fix.

Every answer is the releases.v1 Release. The build, signature, rebuild, validation and deployment results are observations of the pipeline, so only a service identity records them. The decision service decides which one. An ISE contract session can take these operations into contracts/ise compatibly. 4. The gate is computed from the release record each time it is read, never stored. These block every promotion: an incomplete manifest, a component not Verified, a check that failed or did not run or is missing from the evidence, and an open critical or high finding. Production also needs a reproduced rebuild, the security sign-off and a change record. The required checks are those of FR-ISE-REL-001's statement, plus clinical-artifact-validation and dependency-register. 5. Segregation of duties rule 6 is sent as one decision per change actor. The decision service applies transaction rules on attributes.earlierActors, one account per role (ess-runtime-decision). So an approval to production asks one decision for each distinct author, committer and merger of the release, with earlierActors: {developer: <account>} and the full list as changeActors. A single Deny refuses the approval, which is recorded in the release history and audited as ise.release.refused, and the release stays Validated (PR-REL-002-5, AC-05). The pipeline records each change's people as workforce accounts. A person without an account stops the release, so rule 6 is never applied to an incomplete list. 6. The release steps are scripts, bin/release (lib/release.py, Python standard library), like the pull request jobs. A release job of GitHub Actions now, or of GitLab later, only wires them together: - tag, changes, build, sign, verify, rebuild, manifest and record; - changes requires every commit since the previous tag to come through a merged pull request with an approving reviewer other than its author and passed checks. It keeps that evidence with the release (FR-ISE-REL-001 behaviours 1 and 7). 7. Reproducible builds from the tag. A release is built from git archive of the tag, never from a checkout: - the jar of a Java unit is built with release/reproducible.init.gradle.kts, which sets every archive task to fixed time stamps, entry order and permissions without changing the unit's own build files; - the image is built with the BuildKit pinned in tools.env, as a builder container and never the Docker host's own builder, so that a rebuild uses the same BuildKit whatever the host. It runs at SOURCE_DATE_EPOCH set to the tag's commit time, time stamps rewritten, no build cache, and BuildKit's own attestations off.

rebuild builds again into rebuild/... and compares digests. 8. Signatures and provenance with cosign (pinned in tools.env): - each image is signed by digest, with an SLSA provenance v1 attestation (slsaprovenance1) naming the repository, tag, commit, unit, build time and builder; - verify passes only an image whose signature and provenance verify against the release public key: Missing and Unverifiable refuse the deployment; - the signing key is a key-store reference: hashivault://<key>, the release signing key in OpenBao Transit under FR-ISE-KEY-001, which the pipeline uses but never holds. A key file is used only in tests; - there is no public transparency log: signatures stay in the organization's registry (DEP-008). 9. Clinical artifacts are found by location in any build folder: - fhir/ for FHIR R4 conformance resources; - clinical-schemas/ for JSON Schema 2020-12; - clinical-templates/ for instances of a clinical schema named by $schema.

Bindings are a profile element's binding.valueSet, an x-his-binding in a schema, and a binding object in a template. bin/clinical-artifacts checks their structure. It sends every binding to the D10 terminology service's validateBindings (FR-ESS-TRM-002 part 6.8). It fails closed when bindings cannot be checked. The static analysis job runs it, so the workflow file at the repository root is unchanged. 10. Infrastructure-as-code policy checks are Trivy's misconfiguration checks for OpenTofu and Terraform, Kubernetes and Helm (bin/iac-policy). build-test runs them for every platform/<unit>. They have the vulnerability gate's blocking severities and its approved exceptions. Dockerfiles are build definitions whose images are scanned. The image scan now also covers platform units with a Dockerfile.

Consequences

  • A release reaches production only along the lifecycle of D02-ISE 4.3, with every transition recorded with actor, time, version and environment. Approvals and deployment refusals are audited.
  • A Java unit is reproducible at release without any change to its build. Its image is reproducible as long as its Dockerfile does nothing time- or random-dependent; rebuild flags one that does.
  • Moving to GitLab means a release job calling the same steps, the changes evidence read from the merge requests API in place of gh, and tools.env pointing at Harbor.
  • The clinical artifact conventions are new. No artifact of these kinds exists yet. The domains that author clinical content (D03, D09, D10) put their artifacts in these locations. The template content model is validated against the template's own schema. A richer validator for a domain's template format is added in lib/clinical.py when that domain fixes the format.
  • Until the D10 terminology service is deployed and its URL and token are given to the pipeline, a change that adds a bound clinical artifact fails its static analysis job. This is the specified fail-closed behaviour.
  • The supply-chain register gate runs in every dependency scan in coverage mode. The release build sets HIS_DEPENDENCY_GATE=full (PR-REL-002-1), which refuses every component until people approve the register's entries.

Alternatives considered

  • A separate unit for the releases service. CLAUDE.md maps MOD-ISE-005 to platform/delivery-pipeline only.
  • Changing contracts/ise to add the pipeline operations. A build session does not change a fixed contract except compatibly with a record in its handover (session rule 4). The unit's own API keeps the contract as the domain leads approved it.
  • One decision request carrying every change actor. The decision service reads one earlier actor per role. Changing D10's rule format is that domain's work. One request per actor works with the service as it is.
  • cosign with keyless signing (Fulcio and Rekor). That needs an internet transparency log or a private Sigstore deployment; a key in the controlled key store is what FR-ISE-REL-002 section 3 names.
  • Making every unit's build reproducible in its own build files. That would change every unit's folder. The init script keeps the fix in the release step.
  • A full FHIR validator (the HL7 validator). It is a large Java dependency that needs the FHIR packages, and would need its own entry in the dependency register. The structural checks and D10 binding validation cover what the requirement names. The HL7 validator can be added behind lib/clinical.py when profiles exist.