Architecture / Decision records / ADR-HIS-121
ADR-HIS-121 Audit intake: a refusal in Administration and configuration is stored without before and after values, and with recordNotCreated, on any action, without its item¶
| Status | Accepted |
| Decided | 2026-12-02 by session RC-1-S28-F32 |
| Record | Drafted 2026-12-02; awaiting approval by the Enterprise Architecture Board |
| Where the rule lives | services/ess-audit/mod-ess-006: SubmissionValidator (category administration-and-configuration); the unit's README |
| Amends | ADR-HIS-101 points 6 and 7 |
Context¶
The second gate run of slice RC-1 (RC-1-S28-G2) found that the audit service quarantined refusals of configuration actions. D10-ESS 9.5 makes "item reference and version; before and after values" mandatory for Administration and configuration, and the intake enforced it on every outcome. A refusal changes nothing, so it has no before and after values. A refused list read or creation concerns no existing item, so it also has no item to name. ADR-HIS-101 point 6 said "No other category waives its patient or item", and point 7 made recordNotCreated an error outside a refused creation in Record change.
The Security and Privacy Office with the Domain 10 owner ruled on cema-care/his#277 (option A): a refused configuration action is audited under the refused action's own event type, outcome denied. For such a refusal the intake waives the before and after values. It also waives the item reference and version when the refusal concerns no existing item (a list read, a creation), extending recordNotCreated to this category. A refusal of an existing item still names the item and its version. The emitters already follow the ruling (RC-1-S28-F25, F26, F28). This record decides how the intake checks it (RC-1-S28-F32).
Options considered¶
- The before and after waiver comes with outcome
denied.recordNotCreatedis valid on a refusal in this category on any action, and waives the item reference and version only (chosen). - Limit
recordNotCreatedin this category to a fixed list of actions (read,list,create). The category's actions are the policy action codes of each domain (ess.trm.read,submit,register,resolve,report, and so on), so a list would quarantine valid refusals. It also cannot express the ruling's test, "concerns no existing item": only the emitter knows whether the item exists. - A third marker for the before and after waiver. The ruling grounds that waiver in the outcome itself ("nothing changed"), so a marker would add a field without adding evidence. It would also change the contract, where option 1 changes only the description of
recordNotCreated.
Decision¶
- In Administration and configuration, an event with outcome
deniedneeds no before and after values. Every other outcome still needs them. recordNotCreatedis valid on an event with outcomedeniedin Administration and configuration, whatever its action. It waives the item reference and its version, and nothing else. A known identifier that no item has (the one the caller asked for) may still be sent with it and is stored as sent.- Without the marker, a refusal still names an existing item with its version. A refusal without the item or the version and without the marker is quarantined, so a missing item is never waived by accident.
- The patient reference is not waived in this category. Its types are registered not patient-scoped, the category default (ADR-HIS-050, GAP-ESS-016). A type registered patient-scoped keeps its patient on a refusal, as ADR-HIS-101 point 6 says of the other categories.
- Everything else in ADR-HIS-101 stands.
recordNotCreatedon another outcome or on any other category than Record change (actioncreate) and Administration and configuration is still an error.
Consequences¶
- The configuration refusals of ess-governance, ess-reference and ess-runtime-decision that the emitters send under the ruling are stored, not quarantined.
- ess-governance sends a refused list read or creation without an item and without
recordNotCreated(RC-1-S28-F25 handover: "never withrecordNotCreated"). Under point 3 these are still quarantined, at/resourceRef. That emitter must add the marker, as RC-1-S28-F26 and F28 do. - The description of
recordNotCreatedin audit.v1 still names Record change only. It is brought in line by RC-1-S28-F33. The schema (const: true) is unchanged, so no event changes its validity against it.