Skip to content

D4 — Staged rows carry a status, with automatic changesets

  • Status: Accepted — amended by D47b (a changeset per owner, closed when decided)
  • Date: 2026-09-17
  • Origin: design interview
  • Area: writes

Decision

Every event, claim, entity and relation is written with status=staged and a permanent ULID, so a staged claim can cite a staged event straight away. merge flips the status. Staging opens a changeset if none is open.

  • Merging a claim pulls in the event it cites.
  • Rejecting an event rejects the claims citing it.
  • Rejected rows stay, with status=rejected.
  • write --ops accepts $ref placeholders within one batch.

Why

Temporary-id changesets are cleaner in theory but unusable from a CLI where each command is a separate process.