0 editorzero

NULLSTATE// neo-brutalist system · origin grid · humans + agents as peers

design system v0.0
light mode · WCAG AA
space grotesk / space mono
volt #D6FF3F · ultra #2B2BFF
A

Dashboard

// home · recent · spaces · activity
app.acme.internal/dashboard self-hosted · build a4f0c1
0editorzero
Nomi A.
admin
NA
// origin point — 2026 · week 22

Start from zero.
Write with your agents.

Humans and AI agents are peer co-editors here. Every edit is tracked, attributed, and reversible — across API, CLI, MCP and this UI.

// this week
312
documents
28
published
1,904
edits / human
880
edits / agent
B

Documents in a Space

// collections tree · human + agent editors
app.acme.internal/spaces/engineering 312 docs · 14 members · 4 agents
0editorzero
Nomi A.
admin
NA
Engineering / Architecture

Architecture

24 docs · sorted: last edited
DocumentEditorsStatusVersionLast edited
Sync protocol — write-path atomicity
NAHX+1
● live v23 4m ago · NA
Dispatcher transaction model
DXKL
published v9 2h ago · DX
CRDT convergence proofs
RSHX
draft v15 1d ago · RS
Permission floor & tenant isolation 🔒
NA
published v6 2d ago · NA
Audit log — single-entry reconstruction
DXHXKL
● live v12 3d ago · DX
Markdown fidelity tiers
KL
draft v3 5d ago · KL
C

Reading View

// finished document · rich body · metadata rail
app.acme.internal/engineering/architecture/sync-protocol read · v23 · published
// ARCHITECTUREDOC-0042Engineering / Architecture

Sync protocol & write-path atomicity

A mutation either lands in full — five rows, one transaction — or it never happened. The audit log alone reconstructs final state. This is the contract every surface inherits.

01 The invariant

Content mutations flow through ctx.transact(doc_id, fn). The dispatcher persists the Y.Doc update, the audit entry, and the outbox event inside a single write-path transaction. If any step throws, the resident Y.Doc is evicted and nothing commits.

⚠ INVARIANT · enforced by property test
Every mutation produces exactly one audit entry. A rolled-back SQL transaction must not leave a mutation resident in the live document once WebSocket clients attach.

02 Crash-fuzz sweep

We sweep every in-transaction query position across cold and warm paths — 32 cases — asserting the commit is all-or-none. The reject arm verifies document visibility is unchanged and the error-audit survives in a separate transaction.

# property: writepath-atomicity (32 cases) await ctx.transact(docId, async (tx) => { await tx.appendUpdate(update) // Y.Doc await tx.writeAudit(entry) // exactly one await tx.emit("doc.changed") // outbox }) // → all-or-none

03 Why it matters

Humans and agents write to the same document concurrently. Atomicity is what lets an agent's tracked suggestion and a human's accept resolve to one convergent state — with a perfect audit trail for both principals.

D

Document Editor · human + agent co-editing live

// THE signature · agent cursor + tracked suggestion
app.acme.internal/edit/sync-protocol editing · 2 humans · 1 agent · autosaved
/ slash to insert · ⌘B bold
NA RS HX
helix typing · saved v23

Sync protocol & write-path atomicity

+

A mutation either lands in full — five rows, one transaction — or it never happened. The audit log alone reconstructs final state.

+

The invariant

+

Content mutations flow through ctx.transact(doc_id, fn). The dispatcher persists the update, the audit entry, and the outbox event inside one write-path transaction

+

If any step throws, the resident document is evicted and nothing commits. Convergence is preserved across replicas.

+

This contract is inherited by all four every type-compatible surface — API, CLI, MCP and the Web UI — so parity is guaranteed by construction.

HX helix · agent suggestion · tracked just now
Tightened the parity claim: “every type-compatible” matches the contract-matrix wording in ADR 0009 / 0015 — “all four” undercounts UI-only surfaces.
+

Atomicity is what lets an agent's suggestion and a human's accept resolve to one convergent state.

// INSERT BLOCK · "/"
HHeading#
Paragraph
Bullet list-
<>Code block```
Ask an agent@
E

Admin · Members & Teams

// humans + agents as first-class principals
app.acme.internal/admin/members admin · 14 humans · 4 agents
0editorzero
Nomi A.
admin
NA

Members & teams

// 18 principals — 14 human · 4 agent
PrincipalKindTeamsRole
NA
Nomi A.
nomi@acme · usr_01H…
HUMAN Core · Architecture admin
HX
helix
agt_helix · key ••••4f0c
AGENT Architecture agent · editor
KL
Kai L.
kai@acme · usr_02F…
HUMAN Core · Handbook editor
DX
dex
agt_dex · key ••••91a2
AGENT Specs · RFCs agent · editor
RS
Reya S.
reya@acme · usr_04K…
HUMAN Architecture reviewer
LN
lint-bot
agt_lint · key ••••7c3d
AGENT ALL · read-only agent · viewer
// TEAMS
C
Core
8 members
NAKLHX
A
Architecture
6 · 2 agents
RSHXDX
H
Handbook
4 members
KL
// REGISTER AGENT
scribe
spaces · teams…
VIEWER
EDITOR
ADMIN
distinct rate limits · audit attribution · revocable. Agents are principals — ADR 0016.