Handover: RC-1-S28-F33¶
Card: RC-1-S28-F33. Issue: cema-care/his#315. Branch: session/RC-1-S28-F33. Slice: RC-1. This is a round 2 fix of the gate session RC-1-S28-G2. The contract belongs to RC-1-S01. The rule it describes is ADR-HIS-121, taken by RC-1-S28-F32 on the ruling on cema-care/his#277 (option A). No new decision record: this session takes no decision of its own.
The problem¶
Gate line: Criterion 6 (ACC-005), IF-ESS-008 audit intake contract.
The audit service accepts recordNotCreated on a refusal in Administration and configuration, on any action, and needs no before and after values on such a refusal (RC-1-S28-F32, ADR-HIS-121). The contract still said the opposite. AuditEventSubmission.v1 described recordNotCreated as valid only on a refused creation in Record change, and "an error and waives nothing" anywhere else. Its beforeAfter named before and after values for every administration and configuration event. An emitter that follows the contract therefore would not send the marker on a refused list read or creation, and the intake quarantines that event at /resourceRef. The 5 ess-governance events still quarantined after F32's run are of exactly this kind.
What changed¶
All in contracts/ess (the folder of RC-1-S01):
schemas/AuditEventSubmission.v1.schema.json:-
recordNotCreated: now describes the two cases the intake accepts:- Record change, with action
create: waives the resource reference with its version, the changed field names and the patient reference (ruling on #224, unchanged). - Administration and configuration, with any action, when the refusal concerns no existing item: waives the item reference with its version, and nothing else (ruling on #277).
It is still an error on another outcome or category. A refusal of an existing item does not send it, and names the item with its version. The identifier the caller asked for may be sent with it. -
beforeAfter: a refusal in Administration and configuration sends no before and after values; every other outcome sends them. -ResourceRef: the version is also required for Administration and configuration, a refusal included, unless the event sendsrecordNotCreated. - Two new examples: - a refusedess.cfg.itemvalidation of an existing version: named with its version, nobeforeAfter; - a refused list read during a decision point outage:decisionUnavailableandrecordNotCreated, no item. - The schema itself is unchanged (recordNotCreatedis stillconst: true). Only descriptions and examples change, so the event validity is the same and the contract stays at audit.v1 1.2.his-contract checkagainstorigin/mainpasses the compatibility check. The header comment ofapi/audit.v1.openapi.yamlrecords the change. -TRACE.md: the rows ofrecordNotCreatedandbeforeAftercite 9.5 Administration and configuration and the ruling on #277. -stubs/stub.json: regenerated (his-contract stub .). - New checkscripts/check-intake-markers.ts, run byscripts/ends-when.shstep 1. It encodes the intake's waiver rules forrecordNotCreated(ADR-HIS-101 point 6 as amended by ADR-HIS-121). It checks three things: - the description has a sentence for each category, with its action condition, its ruling and each field it waives; - thebeforeAfterdescription states the refusal case; - every example of the intake schema matches the schema and is accepted by those rules, and one example shows a configuration refusal with the marker. - Record change, with action
Checks and their results¶
Contract commands run with Node.js 24 (/opt/his-runner/runner-1/externals/node24/bin): the host's /usr/bin/node 22.22 is built without TypeScript type stripping, so node ../common/src/cli.ts does not start with it.
| Check | Command | Result |
|---|---|---|
| The new check fails before the repair | node scripts/check-intake-markers.ts in contracts/ess, with the schema of origin/main |
Fails with 5 findings: no sentence for record change, none for Administration and configuration, no "error elsewhere", beforeAfter silent on refusals, no configuration refusal example |
| The new check passes after it | the same, on the branch | passed (2 waiver rules, 3 examples) |
| The owning session's "Ends when" (RC-1-S01) | scripts/ends-when.sh in contracts/ess |
Steps 1 and 2 pass: check .: passed, check-intake-markers: passed, verify: passed (559 cases), no stub violations. Step 3 (full profile registry) skipped, as the script does without his-env env. No event schema changed |
| Lint and contract test | pnpm build, pnpm test in contracts/ess |
lint: passed, check .: passed |
| The unit that loads the schema | ./gradlew build in services/ess-audit (light profile, HIS_SESSION=RC-1-S28-F33) |
Passed: 96 tests, 0 failures. Its build copies this schema into the intake validator, so the new descriptions and examples are taken in |
| Slice scenario | HIS_SESSION=RC-1-S28-F33 e2e/harness/scenario run e2e/scenarios/RC-1 |
Run 20261202T041713Z-17e8. Every unit started from this branch, and provisioning passed. The run stopped before its first case, as it does on main: "the gateway's model does not check for this run: api ise.contract-catalogue: unit gateways has no address in environment e2e". RC-1-S28-F31 and F32 recorded the same stop. It comes from RC-3-S13's API in platform/gateways/model/apis.toml, outside this card. This change touches only contract descriptions and examples, which no unit reads at run time |
What the gate line now shows¶
The IF-ESS-008 intake contract and the intake now agree: both waive the item reference and version for a refusal in Administration and configuration that sends recordNotCreated, and the before and after values for every refusal in that category. The contract's own checks pass. The quarantined events the gate counted under this line clear when their emitter sends what the contract now describes. The ess-governance refused list reads and creations still need the marker; that is a follow-up on that unit, already listed by RC-1-S28-F32.
Requirements and test scenarios of the card¶
| Requirement | Test | What it shows |
|---|---|---|
| FR-ESS-AUD-001 AC-06 (a denied attempt is audited), with D10-ESS 9.5 Administration and configuration and the ruling on #277; TEST-ESS-022 | contracts/ess/scripts/check-intake-markers.ts (header tagged FR-ESS-AUD-001, TEST-ESS-022), in scripts/ends-when.sh |
The contract states each waiver of recordNotCreated the intake applies, and the absent before and after values of a refusal; its examples are accepted by those rules |
| The same rule as the intake applies it | AuditIntakeTest.refusalInAdministrationAndConfiguration in services/ess-audit (RC-1-S28-F32), rerun here |
The audit service stores such refusals and quarantines them without the marker |
Differences from the specification or contract¶
None from the specification. The contract change is description and examples only, backward compatible, and passes the compatibility check, so it does not block under session rule 4. The version stays 1.2: what an emitter may send and what the intake accepts was set by ADR-HIS-121 on the 1.2 schema, and this session writes it down.
Questions for a person¶
None.
Follow-ups outside the card¶
- ess-governance sends a refused list read or creation without
recordNotCreated, so those events are still quarantined at/resourceRef. It should send the marker, as the second new example of the schema shows. This is the first follow-up of RC-1-S28-F32, repeated here. - The slice scenario stops before its first case at the gateway model check (
ise.contract-cataloguehas no address in environmente2e), as RC-1-S28-F31 and F32 recorded. It belongs to the owner ofplatform/gateways. - The host's Node.js (
/usr/bin/node22.22.1) is built without TypeScript type stripping (process.features.typescriptis false). The contract tooling and theends-when.shscripts need a Node.js that has it, as the pipeline'ssetup-nodeprovides. A note inplatform/dev-environment/README.md, or a host package that has it, would spare later sessions the search.