Implementation plan / Session plan / Readiness RC-1 / Interface operations
RC-1 interface operations¶
| Slice | RC-1 |
| Gate criterion | Slice gate RC-1, criterion 6 (ACC-005): each interface the slice uses shows acknowledgement, error handling, replay, reconciliation and monitoring. Evidence: interface conformance and outage test results |
| Readiness items | D1 ADM "Interface operations" (reconciliation worklists, replay procedure, partner contacts); D2 ISE "Interface readiness" (interface inventory, ACC-005 evidence for critical interfaces) |
| Status | Draft. Written by session RC-1-S27 on 2026-11-27. It says, for each interface, how each of the five properties is met and where its test result is. The gate session collects the results; this sheet is the inventory it checks them against |
How the five properties are met across the slice.
- Synchronous APIs acknowledge with their answer. A command carries an Idempotency-Key, so asking again after a lost answer does nothing twice. Errors are RFC 9457 problems with the correlation identifier.
- Events are written to the producer's outbox in the same transaction as the change, published by the event backbone, and consumed through each consumer's inbox, once. Errors go to a dead letter. A replay is run through the backbone's operations API. Reconciliation compares published and consumed counts.
- Monitoring is the platform's telemetry, with its alerts and dashboards (runbook entries).
- Partner contacts: none. RC-1 has no external partner interface.
Interfaces¶
| Interface | Contract and provider | Acknowledgement | Error handling | Replay / repeat | Reconciliation | Monitoring | Test results |
|---|---|---|---|---|---|---|---|
| IF-ADM-001 Patient identity API | patient-identity.v1; adm-identity |
HTTP answer; Idempotency-Key on creation (IdentifierApiTest.idempotentCreation) |
400 unqualified identifier, 401, 403 facility, 503 on decision outage (RC-1-E2E-004) | Same key returns the same result. Events on his.adm.person.v1 replay through R-07, a replay-sensitive target with a second person |
Stewardship requests in review_task_request drain once (R-06) |
Service dashboard; synthetic check; his.adm.matching.* |
Contract test PatientIdentityContractTest; RC-1-E2E-001 to 004. Gap: 1.1 not served (I-2 of the identity report) |
| IF-ADM-003 Encounter API | encounters.v1, registration.v1; adm-patient-administration |
HTTP answer; one encounter per key (TEST-ADM-012) | Problems with the correlation identifier; a refused save keeps the screen's draft | Same key; EncounterOpened on his.adm.encounter.v1 |
identity_handoff to adm-identity, in order, retried (RC-1-S09) |
Synthetic check; propagation p95 411 ms (NFR-ADM-002) | Contract tests; RC-1-E2E-001, 006, 010 to 013 |
| IF-ESS-001 Identity administration and provisioning | identity.v1; ess-runtime-decision (MOD-ESS-001) |
HTTP answer; identity-source feed events acknowledged in order | Duplicate identity refused; role on an unlinked account refused (TEST-ESS-001) | Keycloak sync through an ordered, retried queue | Identity-source state against account state (D10 8.6) — a report the unit does not yet produce | Feed-silent alert after 26 h (recorded, not sent until RC-2; A-09) | Unit tests TEST-ESS-001, 003, 004; RC-1 provisioning (joiners activated through the feed) |
| IF-ESS-002 Authentication and session | OpenID Connect, Keycloak realm his |
Token issue | Sign-on fails closed; sessions run to expiry | n/a | Authentication events reconciled after an outage (D10 8.6) — no report built | Keycloak LOGIN and LOGIN_ERROR events; no alert rule | TEST-ESS-002 (unit); RC-1-E2E-001 (aal2, pwd and otp). Gap: the shell is not wired to sign-on (RC-1-S26 follow-up) |
| IF-ESS-003 Policy decision | policy-decision.v1; ess-runtime-decision (MOD-ESS-002) |
Decision with its identifier, stored immutably | Timeout (250 ms) is a Deny; 503 with Retry-After; never a grant |
Not replayed; a decision is asked again | Decisions behind each audit event can be read (RC-1-E2E-001) | his.authz.decisions, his.authz.decision.latency; no alert rule yet; gateway A-01, A-02 (not loaded) |
TEST-ESS-005, 041 (unit); RC-1-E2E-004 (engine and service outage); NFR-ESS-001 shortfall (p95 90 ms against 50 ms) |
| IF-ESS-006 Terminology | terminology.v1; ess-reference |
HTTP answer | Explicit results for inactive, unknown, invalid; no substitution | Local published copy when the service is down, with the version used (TEST-ESS-016) | Flagged entries revalidated (D10 8.6) | his.terminology.validation.failures; no synthetic check |
TEST-ESS-015, 016 (unit); NFR-ESS-002 shortfall (p95 125 ms against 100 ms) |
| IF-ESS-007 Master data and registry | master-data.v1, registry.v1; ess-reference |
HTTP answer | Unknown identifier: stewardship item and "unknown" (TEST-ESS-033) | MasterDataChanged on his.ess.masterdata.v1 |
Quarantined items reprocessed (D10 8.6) | his.masterdata.changes, his.registry.resolutions; no synthetic check |
TEST-ESS-019 to 021, 033 (unit); RC-1-E2E-001 (facilities and service from the registry) |
| IF-ESS-008 Audit intake, query and forwarding | audit.v1; ess-audit |
Intake acknowledged; published and acknowledged counts reconcile (RC-1-E2E-008) | Malformed events quarantined byte for byte (A-06) | Emitters' outboxes deliver after an outage, each event stored once (TEST-ESS-044, RC-1-E2E-011) | Completeness reports per emitter; integrity verification | his.audit.alerts (no rule; A-06); synthetic check |
TEST-ESS-022, 023, 044; RC-1-E2E-008, 011. Gap: quarantine of 97 events in the final run (NFR-ESS-008 shortfall); forwarding to security monitoring is FR-ESS-AUD-003 (later slice) |
| IF-ESS-010 Workflow and task | workflow.v1; ess-coordination |
HTTP answer; task created once per key | Circuit per target domain | No blind replay into identity: reconciliation-required and a second person (TEST-ESS-043) |
Started against terminal instances; stuck-work detection | StuckMonitor (A-08; recorded, not sent until RC-2) |
TEST-ESS-028, 029, 043 (unit); RC-1-E2E-002, 007 |
| IF-ESS-012 Configuration lifecycle | configuration.v1; ess-governance |
HTTP answer; hash-verified promotion | Hash mismatch refused (TEST-ESS-030) | Rollback to the prior version | Missed activations applied in effective-time order (D10 8.6) | Unit metrics only | TEST-ESS-030, 031 (unit). Gap: ess-governance is not in the RC-1 stack, so this interface has no end-to-end or outage result |
| IF-ESS-014 API catalogue and ADR register | api-catalogue.v1; ess-governance |
HTTP answer | Retirement with consumers refused (TEST-ESS-037) | n/a | Consumers notified of deprecation: recorded, not sent until RC-2 | Unit metrics only | TEST-ESS-037 (unit). Gap: as IF-ESS-012 |
| IF-ISE-001 Gateway ingress conventions | platform/gateways (APISIX) |
Correlation identifier on accepted calls (TEST-ISE-007) | Revoked credential, over limit, retired version and bypass refused and logged; degraded path on policy outage (TEST-ISE-039) | Idempotency keys passed through | Refusals logged | Gateway alert rules A-01 to A-04 (not loaded); metrics on port 9091 | TEST-ISE-007, 039 in the gateway's test bed, with shortened times (8 s for 60 min, 20 s for 15 min). Gap: the gateway is not in the RC-1 stack; the scenario calls the units directly |
| IF-ISE-002 Event publish and subscribe | platform/event-backbone; topic register |
Gated publication; consumer inbox | Invalid envelope rejected to .rejected; poison event dead-lettered; other keys unaffected (TEST-ISE-020) |
POST /v1/replays, consumed once (RC-1-E2E-008) |
GET /v1/subscription-counts |
Consumer lag in Prometheus (ConsumerLagHigh); his.backbone.alerts (no rule; A-07) |
TEST-ISE-018 to 020; RC-1-E2E-008, 012. Gap: template-made units publish directly, not through the gate (RC-1-S13) |
| IF-ISE-006 Security event and audit forwarding | security-monitoring.v1 (RC-3-S03's contract, ADR-HIS-085); the audit service's forwarding (ADR-HIS-082) |
— | — | — | — | — | Not built in RC-1. Forwarding is FR-ESS-AUD-003 and FR-ISE-OBS-002 (RC-3). Only network protection's SecurityAlertRaised events exist (netprotect alerts) |
| IF-ISE-007 Platform operations API | event-operations.v1 (backbone), service-catalogue.v1 (topology), releases.v1 (pipeline), secrets.v1 |
HTTP answers; operator actions audited | API fails closed (503) on decision outage | Replay authorization by a second person | Dead letters listed and closed (RC-1-E2E-008) | Integration operations dashboard | RC-1-E2E-008 (event operations). Gap: reconciliation, downtime windows and export orchestration (recovery.v1) are MOD-ISE-009, not built (RC-3) |
Gaps for the gate¶
What criterion 6 cannot show in RC-1, each with the slice or owner that closes it:
1. IF-ISE-006: not built. Closed by RC-3 (FR-ESS-AUD-003, FR-ISE-OBS-002).
2. IF-ESS-012 and IF-ESS-014: no end-to-end or outage result, because ess-governance is not in the RC-1 stack. The gate can add it to e2e/scenarios/RC-1/stack.json and run its contract tests, or record unit and contract test results alone.
3. IF-ISE-001: the outage test ran in the gateway's test bed with shortened times, not in the slice's stack.
4. IF-ESS-001 and IF-ESS-002: the reconciliation reports D10 8.6 asks for after an outage (identity-source state against accounts; authentication events) are not built.
5. Monitoring: the alerts of the gateways, audit, backbone, coordination and clock drift are not loaded or have no rule (runbook entries, section 4), and several alerts are recorded but not sent until the notification service (RC-2).
6. IF-ESS-008: audit completeness is a measured shortfall (NFR-ESS-008: 97 events in quarantine).