on this page ▾
[ ARCHITECTURE ] 0003 WEB COMMITS

ADR 0003 — Web mutations are commits (preview → apply with expected head)#

Status: accepted (2026-12-04)

Researchers need to approve inferred relationships, change hypothesis status, and record reviewer comments from the web app, but history must stay immutable and every change attributed. The server builds a new graph snapshot and commit on top of the branch head (using the same engine), never editing existing objects. Clients call /mutations/preview (no writes), show the before/after, then /mutations/apply with the previewed expected_head; a concurrent push makes the apply fail with 409 instead of overwriting. Only a whitelisted set of fields/types is editable from the web. The assistant cannot call these endpoints on its own.

docs/adr/0003-web-commits.md