Relate × Neo4j · for the engineer whose agent writes Cypher to production

The write looked fine.
Dry run rehearsed it first.

  1. 0capabilities-unverified
  2. 49examples-unknown-flag
  3. 16flags-of-push
  4. 10 → 0lock-file-sectionsUnasked
  5. 0orphan-pages
  6. 2prereq-push-guide
  7. 1see-also-resolves
  8. 97term-pages-store
  9. 0undocumented-flags
  10. —Parity

11 changes · PropSet 11 · push can carry all 11 · red outline: 10 of the 11 changes each change lock-file-sections on their own; none alone reproduces 10 → 0

dryrun demo --yes recorded 2026-11-28 07:16 WIB

verdict: HOLD  (held on: answers)⋯ 4 not shownchanged [UNASKED] lock-file-sections: 10 rows -> 0 rows⋯ 2 not shown(10 of the 11 changes each change this answer on their own)

dryrun.edycu.dev

Dry run icon
01

Alone, the agent moved answers nobody named.

20 adversarial tasks × 3 runs

A · agent alone

t19

13 of 60 runs

B · with Dry run

0 of 60 runs

t19, a page rename A changed examples-unknown-flag 3 of 3; B held 3 of 3 (first rehearsal INCOMPLETE each time).

02

One loop. Relate runs pull, rehearse and push.

  1. 2,637nodes

    Pull

    relate pull

    the slice the write can touch → slice.rl

  2. 10→0rows, unasked

    Rehearse

    conn.rollback()

    write in a Relate transaction; ask before and after

  3. 172/215cannot carry

    Explain

    ddmin

    1-minimal changes · what push cannot carry

  4. +4343 created · 63 updated

    Push

    relate push

    only the approved, rehearsed state

  5. 9/9equal on Neo4j

    Re-ask

    parity

    the pinned questions, on Neo4j

lamps: recorded demo figures

HOLD an answer changes unasked, or push cannot carry a change

INCOMPLETE the write reaches past the slice

REFUSED LOAD CSV, procedures, schema, rand()

03

Beat 1 · bulk rename

Relate v1.2.0 renamed the engine folder .cypherlite to .relate. Update the docs graph so no section still says .cypherlite.

  1. 0capabilities-unverified
  2. 49examples-unknown-flag
  3. 16flags-of-push
  4. 10 → 0lock-file-sectionsUnasked
  5. 0orphan-pages
  6. 2prereq-push-guide
  7. 1see-also-resolves
  8. 97term-pages-store
  9. 0undocumented-flags
  10. —Parity

11 changes · PropSet 11 · push can carry all 11 · red outline: 10 of the 11 changes each change lock-file-sections on their own; none alone reproduces 10 → 0

  1. Pull 2,637 nodes / 3,065 rels · 0.67 s
  2. Rehearse 11 changes, rolled back
  3. HOLD lock-file-sections 10 → 0, unasked
  4. Why L01: 1-minimal · 10 of 11 flip it alone
04

Beat 2 · dedupe: what push cannot carry

  1. 0capabilities-unverified
  2. 49examples-unknown-flag
  3. 16 → 16−4 +4flags-of-pushExpected
  4. 10lock-file-sections
  5. 0orphan-pages
  6. 2prereq-push-guide
  7. 1see-also-resolves
  8. 97term-pages-store
  9. 0undocumented-flags
  10. 9/9Parity

First write MERGE + DELETE

215 changes · NodeDelete 22 · RelCreate 43 · RelDelete 150 · push cannot carry 172 of 215

Revised additive, nothing deleted

65 changes · PropSet 22 · RelCreate 43 · push can carry all 65

  1. HOLD cannot carry 172 of 215 · RelDelete 150 · NodeDelete 22
  2. PASS push can carry all 65
  3. Push created 43 / updated 63 / skipped 0 · 0.60 s
  4. Parity 9/9 whole graph = rehearsed · re-push no-op
05

30 frozen tasks. One model, two arms.

Tasks and oracles committed before the first trial. The author wrote them: 20 of 30 adversarial. Counts, not rates.

30 tasksA · aloneB · Dry run
Unnamed answer changed40
Landed cleanly2013
Held415
False alarms00
All 3 runs, 20 adversarial13/600/60
06

Relate is the engine: seven surfaces carry the loop.

  1. 01

    Pull

    relate pull --from neo4j.env --query slice.scope.cypher

  2. 02

    Rehearse

    conn.autocommit = False … conn.rollback()

  3. 03

    Classify

    query_type from EXPLAIN

  4. 04

    Agent

    relate serve --mcp stdio --read-only

  5. 05

    Push

    relate push --rel-mode keyed --nodes-update add

  6. 06

    Tab

    @relate/relate-wasm 1.4.0

  7. 07

    Record

    records/demo-pass.rl

07

The same rehearsal, in a browser tab

parity checks · 0 failures
45
rebuild, bulk rename slice
494.5 ms median of 3
rebuild, dedupe slice
258.9 ms median of 3

No Neo4j here: best verdict UNCHECKED, never PASS.

A capture of the Try tab after one click on the bulk rename, cropped to the verdict: HOLD; lock-file-sections, changed and unasked, 10 rows to 0
capture of /try/, cropped
08

What this does not prove

20/30

adversarial tasks, author-written: counts, not a rate.

7

tasks Dry run held that the agent alone landed cleanly.

22

duplicates stay on Neo4j: push cannot carry the delete.

Reuse: 7 Witness files copied, ddmin re-implemented. docs/DISCLOSURE.md

09

Rehearse the next write before it lands.

Docker: the full round trip

git clone https://github.com/edycutjong/dryrun
cd dryrun && docker compose up -d
uv sync
uv run dryrun demo

# no Docker: the committed rehearsalsuv run dryrun demo --no-docker

dryrun.edycu.dev

dryrun.edycu.dev

10