RiskboundDocs

Architecture

ADR 0004: Append-only, hash-chained event log from day one

Date: 2026-12-01. Status: accepted.

Context#

Signed evidence is Phase 3. The decision log exists in Phase 1.

Decision#

Phase 1 already writes every decision, approval and result as an event in an append-only table. Each event stores the hash of the one before it for the same tenant. The decisions table is a read model built from those events.

Why#

Adding a chain later means rewriting history or accepting a gap at the start of every customer's record. Doing it now costs one extra table and one lock. Phase 3 then adds KMS signatures and S3 Object Lock on top without changing the shape of the data.

Consequences#

  • Appending takes a lock on the tenant row, so one tenant's decisions are written one at a time. This is fine at Phase 1 volume. The known way out is a chain per agent, or batching events into signed blocks.
  • Events are never updated or deleted. Corrections are new events.
  • A chain proves order and integrity. It does not prove who wrote it. That is what signing adds in Phase 3.