ArcFlow
Company
Managed Services
Markets
  • News
  • LOG IN
  • GET STARTED

OZ brings Visual Intelligence to physical venues, a managed edge layer that lets real-world environments see, understand, and act in real time.

Talk to us

ArcFlow

  • World Models
  • Sensors

Managed Services

  • OZ VI Venue 1
  • Case Studies

Markets

  • Sports
  • Broadcasting
  • Robotics

Company

  • About
  • Technology
  • Careers
  • Contact

Ready to see it live?

Talk to the OZ team about deploying at your venues, from a single pilot match to a full regional rollout.

Schedule a deployment review

© 2026 OZ. All rights reserved.

LinkedIn
ArcFlow Docs
Get Started
  • Get Started
  • Quickstart
  • Installation
  • Project Setup
  • Platforms
  • Bindings
  • Licensing
  • Pricing
Capabilities
  • Vector Search
  • Graph Algorithms
  • Sync
  • MCP Server (AI Agents)
  • Live Queries
  • Programs
  • Temporal
  • Spatial
  • Trusted RAG
  • Behavior Graph
  • Agent-Native
  • Event Sourcing
  • GPU Acceleration
  • Intent Relay
Concepts
  • World Model
  • Graph Model
  • Query Language (GQL)
  • Graph Patterns
  • SQL vs GQL
  • Parameters
  • Query Results
  • Persistence & WAL
  • Error Handling
  • Observations & Evidence
  • Confidence & Provenance
  • Proof Artifacts & Gates
  • Skills
GQL / WorldCypher
  • Overview
  • MATCH
  • WHERE
  • RETURN
  • OPTIONAL MATCH
  • CREATE
  • SET
  • MERGE
  • DELETE
  • REMOVE
  • WITH
  • UNION
  • UNWIND
  • CASE
  • Spatial Queries
  • Temporal Queries
  • Algorithms Reference
  • Triggers
Schema
  • Overview
  • Indexes
  • Constraints
  • Data Types
Functions
  • Built-in Functions
  • Aggregations
  • Procedures
  • Shortest Path
  • EXPLAIN
  • PROFILE
Skills
  • Overview
  • CREATE SKILL
  • PROCESS NODE
  • REPROCESS EDGES
Operations
  • CLI
  • REPL Commands
  • Snapshot & Restore
  • Server Modes & PG Wire
  • Persistence
  • Import & Export
  • Docker
  • Architecture
  • Cloud Architecture
  • Sync Protocol (Deep Dive)
Guides
  • Agent Integration
  • World Model
  • Graph Model Fundamentals
  • Trusted RAG
  • Using Skills
  • Behavior Graphs
  • Swarm & Multi-Agent
  • Migration Guide
  • Filesystem Workspace
  • From SQL to GQL
  • ArcFlow for Coding Agents
  • Data Quality & Pipeline Integrity
  • Code Intelligence
Tutorials
  • Knowledge Graph
  • Entity Linking
  • Vector Search
  • Graph Algorithms
Recipes
  • CRUD
  • Multi-MATCH
  • MERGE (Upsert)
  • Full-Text Search
  • Temporal Queries
  • Batch Projection
  • GraphRAG
Use Cases
  • Agent Tooling
  • Knowledge Management
  • RAG Pipeline
  • Fraud Detection
  • Sports Analytics
  • Grounded Neural Objects
  • Behavior Graphs
  • Autonomous Systems
  • Digital Twins
  • Robotics & Perception
Reference
  • TypeScript API
  • GQL Conformance
  • Compatibility Matrix
  • Glossary
  • Data Types
  • Operators
  • Error Codes
  • Known Issues

Persistence

arcflow --data-dir ./project-graph

One flag. Your graph persists across restarts, crashes, and reboots. Every mutation appends to an append-only write-ahead log. On startup, the WAL replays deterministically to reconstruct the exact graph state. No configuration. No external database. The filesystem IS the database.


The Filesystem as Database#

ArcFlow stores everything as files in the --data-dir directory:

project-graph/
├── wal.log              # Write-ahead log — every mutation, in order
├── checkpoint.json      # Periodic full snapshot (optional)
├── queries/             # Agent query files (.cypher)
├── results/             # Agent result files (.json)
└── arcflow.toml         # Configuration (optional)

This means:

  • Backup is cp -r project-graph/ backup/
  • Migration is scp -r project-graph/ server:/data/
  • Version control is git add project-graph/
  • Inspection is cat project-graph/wal.log

No proprietary binary format. No database administration tools. Standard filesystem operations work on ArcFlow data the same way they work on any other files.


WAL (Write-Ahead Log)#

Every write operation (CREATE, SET, DELETE, MERGE, REMOVE) appends to wal.log before modifying the in-memory graph. This guarantees:

  1. Durability — if the process crashes mid-operation, the WAL preserves the last consistent state
  2. Deterministic replay — replaying the WAL from the start always produces the same graph
  3. Point-in-time recovery — the WAL is a complete history of every mutation
# Start with persistence
arcflow --data-dir ./graph
 
# Create data
> CREATE (a:Sensor {name: 'Cam-01', x: 10.0, y: 20.0})
> CREATE (b:Sensor {name: 'Cam-02', x: 15.0, y: 25.0})
 
# Exit
> :quit
 
# Restart — data is still there
arcflow --data-dir ./graph
> MATCH (s:Sensor) RETURN s.name
# => Cam-01, Cam-02

Snapshots#

Snapshots capture the full graph state as JSON — faster to restore than replaying a long WAL.

# Save snapshot
arcflow> :snapshot ./backup.json
 
# Restore from snapshot (replaces current graph)
arcflow> :restore ./backup.json

Snapshots are portable. Export from one machine, import on another:

# Export on laptop
arcflow --data-dir ./graph
> :snapshot graph-export.json
 
# Import on server
arcflow --data-dir /data/production
> :restore graph-export.json

Checkpoints#

Periodic checkpoints combine the WAL and current state into a compact snapshot, keeping WAL size manageable:

arcflow> :checkpoint
# Writes checkpoint.json and truncates processed WAL entries

JSON Export#

Full graph export for inspection or integration:

arcflow> :export json
# Outputs the entire graph as structured JSON to stdout
 
# Or with the CLI
arcflow --data-dir ./graph --exec "CALL db.export()" --json > graph.json

Agent Filesystem Workspace#

For AI coding agents, the --data-dir directory is a workspace — the agent reads and writes files, the CLI processes them. This is the same model described in the Agent-Native Database documentation.

# Agent writes a query
echo 'MATCH (s:Sensor) RETURN s.name, s.x, s.y' > project-graph/queries/sensors.cypher
 
# CLI executes it
arcflow --data-dir project-graph --exec project-graph/queries/sensors.cypher --json \
  > project-graph/results/sensors.json
 
# Agent reads the result
cat project-graph/results/sensors.json

The persistence layer and the agent workspace share the same directory. The graph data (WAL) and the agent's queries/results live side by side. git add project-graph/ captures everything — data, queries, results — in one commit.


Change Data Capture#

Track changes for downstream sync:

# Get all mutations since a sequence number
arcflow> CALL db.changesSince(42)
 
# Verify data integrity
arcflow> CALL db.fingerprint()
# Returns: cryptographic hash of the entire graph state

CDC + fingerprint enables incremental replication: poll for changes, verify integrity, sync to external systems — all from the filesystem.


See Also#

  • Agent-Native Database — filesystem workspace for AI agents
  • CLI — arcflow as a command-line primitive
  • Snapshot & Restore — detailed snapshot operations
  • Server Modes — TCP, HTTP, MCP access layers
  • Platforms — persistence across native, mobile, edge, browser
Try it
Open ↗⌘↵ to run
Loading engine…
← PreviousServer Modes & PG WireNext →Import & Export