Skip to content

Architecture / Decision records / ADR-HIS-098

ADR-HIS-098 A slice's end-to-end stack runs the configuration service with its consumers wired to it, and a stand-in identity of the release pipeline promotes into the stack's own environment

Status Accepted
Decided 2026-11-29 by session RC-1-S28-F12
Record Drafted 2026-11-29; approved 2026-11-30 by the Enterprise Architecture Board
Where the rule lives e2e/scenarios/RC-1 (stack.json, provision/identities.json, gateway/e2e.toml, rc-1-governance.scenario.ts); e2e/harness/test/test_governance_stack.py

Context

Slice RC-1 uses IF-ESS-012 (configuration lifecycle) and IF-ESS-014 (API catalogue and decision register), both served by ess-governance (MOD-ESS-012, ADR-HIS-052). The gate of the slice found that the unit was not in the slice's end-to-end stack, so the two interfaces had only unit-test results (fix RC-1-S28-F12, issue #218). Gate criterion 6 (ACC-005) asks for acknowledgement, error handling, replay, reconciliation and monitoring of each interface the slice uses, in the integrated environment.

Four things had to be settled for that: - which units of the stack are wired to the configuration service, since several of them already have a setting for it; - the environment the stack's configuration service controls, since BR-ESS-029 activates a version only once its approved package has been promoted there; - who promotes, since D10-ESS 9.2 rule 6 gives promotion to the Domain 2 release pipeline, and the pipeline (platform/delivery-pipeline) does not call the configuration service yet; - whether the interfaces' callers come through the gateway.

Decision

  1. ess-governance is a unit of the stack, wired to what it calls:
  2. the task service for approval and review tasks (IF-ESS-010, his.governance.workflow-url);
  3. master data for its active-owner checks (IF-ESS-007, master-data-url);
  4. its own service identity (token-url, client-id, client-secret), which may ask for decisions, create tasks and read master data;
  5. the checkout as the schema root of catalogue references (schema-root ${repo}).

Its scheduler runs every 2 seconds instead of 30, so that a scheduled activation is applied within a test's time. The schema registry is not set: the unit expects the registry's base address, while his-env env gives the v3 API address (follow-up in the handover). 2. Every unit of the stack that consumes configuration is pointed at it, with the credentials its calls need. That is the setting each unit already has: - ess-audit (his.audit-service.clients.configuration-url) registers its item type ess.audit-forwarding-rule and reads the active forwarding rules; - ess-coordination (his.workflow.configuration-url) reads the task types, queues and definitions it installs from ConfigurationChanged (ADR-HIS-058 point 4); - ess-runtime-decision (his.authz.configuration-url) reads the policy versions it applies from ConfigurationChanged.

The settings of modules outside the slice (notifications and consent, RC-2) stay unset. So a stack exercises the consumers the slice has, not only the provider. 3. The stack's configuration service controls the stack's own environment. activation-environment is the environment of the provisioning's service identities (development), and the stand-in pipeline promotes there. A version is activated in the stack exactly as in production: drafted, validated, submitted, approved by someone other than the author, promoted by its content hash, then activated. 4. A stand-in service identity promotes and publishes: e2e-release-pipeline. It holds exactly the scopes the starter policy grants to the pipeline: ess.cfg.version.promote, ess.cfg.catalogue.publish and ess.cfg.catalogue.consumer. It is named e2e- like the provisioning's other stand-ins (e2e-hr-feed, e2e-probe). Once platform/delivery-pipeline promotes configuration itself, a stack uses that pipeline's identity instead. 5. People reach both interfaces through the gateway; services call the unit directly. ess-governance is an upstream of the stack's gateway, so the configuration administrators and the enterprise architect use the internal gateway's routes, with the staff client's registration (ADR-HIS-095). The pipeline stand-in is not a registered client of the gateway (platform/gateways clients.toml) and runs inside the platform, so it calls the unit directly. 6. A static test of the wiring runs with the harness's self-tests (test_governance_stack.py). It checks that: - the stack names the unit and wires its collaborators and consumers; - every ${unit.…} reference names a unit of the stack; - the identities hold the scopes their calls need, and the starter policy grants each of those scopes to a service; - the rendered gateway routes both interfaces to the unit.

Consequences

  • RC-1-E2E-014 and RC-1-E2E-015 show IF-ESS-012 and IF-ESS-014 end to end, including the outage of the service and of its task service. They show reconciliation by a missed scheduled activation, applied once the service is back, and the delivery counts of ConfigurationChanged to its subscribers.
  • Running the unit beside its collaborators found two gaps that its own tests, which fake those collaborators, could not find:
  • the active-owner check read a field that master-data.v1 gives practitioners only, so a team could never own a catalogue entry (FR-ESS-CFG-003). It is repaired in this session, and extension points, extensions and feature flags keep people as their owners (FR-ESS-CFG-002 section 7);
  • the unit's audit events lack the item version and before and after values, so the audit service quarantines them. This is left for a fix issue against RC-1-S05, as F15 to F18 do for other units.
  • A later slice whose stack uses configuration copies this wiring. The consumers of its own modules get their settings, and the stand-in pipeline makes its promotions.
  • Points 3 and 4 are for integration environments only. In production, promotion and activation stay with the pipeline and the change approvers (ADR-HIS-052).