The workshop wants to know what was submitted and what was certified. Its history declaration captures instrument, revision, offset, and actor fields at those transitions. This is application history: it records selected business events and their selected content. It is not automatically a complete account of every request, every administrative operation, or every database change.
The example enables two current 0.6 history features:
history:
integrity: sha256Chain
immutable: true
The event definitions underneath choose when rows are created and what they capture. The lab expects two transition events after submission and successful certification, then invokes the resource’s history verification route.
What a chain establishes
A chained history links each row to earlier history through a digest. If someone changes a covered row without updating the chain consistently, verification can detect the inconsistency. The current design uses one chain per resource, so several records can contribute events to the same resource history.
An internally consistent chain does not authenticate itself. A database writer who can replace the rows can recompute a different internally consistent chain. A saved, trusted head outside that writer’s control gives a verifier a fixed value against which to compare the history.
The current implementation does not supply that external anchor. It also does not detect deletion of an unanchored tail merely by checking the shortened chain. The verification result reports the head; retaining and authenticating that head elsewhere is an additional operational obligation. A hash algorithm cannot recover a checkpoint the verifier never possessed.
Immutable is scoped to enforcement
The history setting constrains supported application behavior, including the documented erasure interaction. It does not install database grants or triggers that prevent every database user from changing rows. A privileged storage operator remains outside the ordinary request boundary.
For an existing resource, rows created before chaining was enabled remain unchained. The verification route counts them separately. Hashing old rows today would establish a commitment to their present bytes, not prove that those bytes were unchanged yesterday. A migration into chained history therefore needs a clearly dated starting point.
Retention and erasure also affect the claim. The implementation rejects a retention-days declaration combined with immutable or chained history rather than silently reconciling contradictory instructions. A privacy erasure request that retains history has a different consequence from one requesting its removal. Inspect the actual options and retained data before describing an erasure as complete.
A permit log is a different artifact
The calibration approval policy declares record: true. After a successful approval, the supervisor writes a permit row naming the policy and operation. The lab confirms one such row. Failed self-approval after a policy permits does not become a recorded successful approval merely because the policy’s condition was satisfied earlier.
This record is written after the business operation succeeds, outside that operation’s transaction. If the permit write fails, the successful business action remains. Consequently, the example does not establish “every committed approval has an atomic policy permit.” That stronger requirement would need a different commit protocol or a verified recovery mechanism.
History events, policy decisions, audit tables, and server logs each have their own capture and retention behavior. Combining them into one word, audit, makes it easy to promise more than any of the artifacts supplies. Name the artifact and the event it records.
Read the evidence as an investigator
For one certified calibration, collect the current record, its captured submission and certification events, the chain verification result, and the successful policy permit. Compare the identities and measured values. Then state the remaining assumptions: the trusted identity source, the integrity of the running engine, and the protection of any checkpoint you rely on.
The relevant sources are ADL 24 §24.9, ADL 21 §21.12.5, and the integrity repro. The book’s smaller lab is reported separately from that broader existing test suite.
Workshop
An operator saves a trusted head at event 20. The database later contains 25 events. Explain what deleting event 25, changing event 12 without rehashing, and replacing the entire chain would each require the verifier to check. State which claims concern integrity and which concern freshness or completeness.