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
Start
  • Quickstart
  • Installation
  • Bindings
  • Platforms
  • Get Started
  • Cookbook
Concepts
  • World Model
  • Graph Model
  • Evidence Model
  • Observations
  • Confidence & Provenance
  • Proof Artifacts & Gates
  • SQL vs GQL
  • Graph Patterns
  • Parameters
  • Query Results
  • Persistence & WAL
  • Snapshot-Pinned Reads
  • Error Handling
  • Execution Models
  • Causal Edges
  • Adapter Discipline
  • Time Decay
  • Layers
  • 1. World Store
  • 1a. World Store · Smart Reader
  • 2. Perception Lake
  • 3. World Graph
  • 4. Query Engine
  • 5. Live Surface
  • 6. Event Bus
  • 7. Behavior Engine
  • 8. Algorithm Library
  • Virtual Computed Columns
  • Threading Model
  • Typed ID Contract
WorldCypher
  • Overview
  • Execution Options
  • Statements
  • MATCH
  • WHERE
  • RETURN
  • OPTIONAL MATCH
  • CREATE
  • SET
  • MERGE
  • DELETE
  • REMOVE
  • Composition
  • WITH
  • UNION
  • UNWIND
  • CASE
  • Schema
  • Schema Overview
  • Indexes
  • Constraints
  • Functions
  • Built-in Functions
  • Aggregations
  • Procedures
  • Shortest Path
  • EXPLAIN
  • PROFILE
  • Temporal Queriesfacet
  • Spatial Queriesfacet
  • Algorithmsfacet
  • Triggers
Capabilities
  • Live Queries
  • Vector Search
  • Trusted RAG
  • Spatial Knowledge
  • Temporal
  • Behavior Graphs
  • Graph Algorithms
  • Skills
  • CREATE SKILL
  • PROCESS NODE
  • REPROCESS EDGES
  • Sync
  • Programs
  • GPU Acceleration
  • Agent-Native
  • MCP Server
  • Event Sourcing
  • Intent Relay
  • Event Bus
Use Cases
  • Agent Tooling
  • Trusted RAG
  • Knowledge Management
  • Behavior Graphs
  • Autonomous Systems
  • Physical AI
  • Digital Twins
  • Robotics & Perception
  • Sports Analytics
  • Grounded Neural Objects
  • Fraud Detection
Walkthroughs
    Guides
  • Agent Integration
  • Building a World Model
  • Modeling a Social Graph
  • Build a RAG Pipeline
  • Using Skills
  • Behavior Graphs
  • Swarm & Multi-Agent
  • Fleet Coordination
  • Migrate from Cypher / Neo4j
  • From SQL to GQL
  • Filesystem Workspace
  • Data Quality
  • Code Intelligence
  • Scale Patterns
  • v0.7 → v0.8 Lakehouse Fast-Path
  • Tutorials
  • Knowledge Graph
  • Entity Linking
  • Vector Search
  • Graph Algorithms
  • Recipes
  • CRUD
  • Multi-MATCH
  • MERGE (Upsert)
  • Full-Text Search
  • Batch Projection
  • Multi-Source Observation
  • Sports Analytics
Operations
  • CLI
  • REPL Commands
  • Snapshot & Restore
  • Filesystem Projection
  • Plugin Management
  • Agent Governance
  • Server Modes & PG Wire
  • Persistence (ops)
  • Import & Export
  • Deployment
  • Deployment Modes
  • Daemon (UDS)
  • Why not Docker
  • Architecture
  • Engine Architecture
  • Cloud Architecture
  • Sync Protocol (Deep Dive)
  • World Graph Substrate (Preview)
Reference
  • TypeScript API
  • Glossary
  • Naming & Domain Map
  • Data Types
  • Operators
  • Error Codes
  • GQL Reference
  • Known Issues
  • Versioning
  • Licensing
  • Conformance
  • GQL Conformance
  • openCypher TCK
  • Extension Regressions
GQL Reference
    Conformance
  • Conformance Dashboard
  • openCypher TCK Results
  • Extension Regressions
  • Features
  • MATCH Basic
  • CREATE Nodes Edges
  • SET REMOVE Properties
  • DELETE Detach DELETE
  • RETURN WITH WHERE
  • Order BY Limit Skip
  • Order BY Nulls First Last
  • UNWIND
  • Aggregate Functions
  • OPTIONAL MATCH
  • Variable Length Paths
  • Label OR AND NOT Expressions
  • Label Wildcard
  • Quantified Path Sugar
  • Path Modes Walk Trail Simple Acyclic
  • Shortest Path Variants
  • IS Labeled Predicate
  • Element ID Function
  • IS Type Predicate
  • Binary Literals
  • Line Comments Solidus
  • Line Comments Minus
  • GQLSTATUS Result Codes
  • GQL Error Code Mapping
  • Transaction Control Syntax
  • SET Session
  • Conditional Execution WHEN THEN ELSE
  • RETURN NEXT Pipeline
  • Primary Key Constraint
  • Unique Constraint
  • Deterministic MERGE Via PK
  • Undirected Edge MATCH
  • Cast Type Conversion
  • GQL Directories
  • Multiple Labels Per Node
  • GQL Flagger
  • NEXT Linear Composition
  • Cardinality Function
  • INT64 BIGINT Type Names
  • FLOAT64 Double Type Names
  • Log10 Log2 Functions
  • Trim Leading Trailing Both
  • FILTER Clause
  • LET Statement
  • Group BY Explicit
  • EXCEPT SET Operations
  • INTERSECT SET Operations
  • ALL Different Predicate
  • Same Predicate
  • Property Exists Function
  • Path Variable Binding
  • USE Graph Clause
  • FOR IN List
  • Typed Temporal Literals
  • Session SET Value Params
  • Typed List Annotations
  • arcflow.cosine() function
  • arcflow.embed() function
  • arcflow.similar() procedure
  • arcflow.graphrag() procedure
  • ArcFlow Extensions
  • LIVE Queries
  • Triggered Write-Back Views
  • Evidence Algebra
  • Relationship Skills
  • AI Function Namespace
  • Graph Embedding Algorithms
  • ASOF JOIN
  • Durable Workflows
  • Incremental Z-Set Engine
  • GPU GraphBLAS
  • Triggers
  • HNSW Vector Index
  • Extensions Moat

Agent Governance

ArcFlow tracks agent verification state through a deterministic state machine. The receipt system seals that state into a tamper-evident artifact for CI and review gates. Hooks integrate the state machine with agent frameworks (Claude Code, Codex, or any tool-use framework with hook support).

State machine#

Six states, forward-only with invalidation on edit:

CLEAN → DIRTY_UNANALYZED → GRAPH_FRESH → IMPACT_KNOWN → TEST_PLAN_KNOWN → VERIFIED
TransitionEvent
CLEAN → DIRTY_UNANALYZEDFile edit
DIRTY_UNANALYZED → DIRTY_UNANALYZEDFile edit (self-loop, multi-edit)
DIRTY_UNANALYZED → GRAPH_FRESHarc ingest succeeds
GRAPH_FRESH → IMPACT_KNOWNarc impact succeeds
IMPACT_KNOWN → TEST_PLAN_KNOWNarc tests affected succeeds
TEST_PLAN_KNOWN → VERIFIEDarc verify patch succeeds
GRAPH_FRESH+ → DIRTY_UNANALYZEDFile edit (invalidation)
Any → CLEANReset

When a file edit occurs from GRAPH_FRESH or beyond, the state resets to DIRTY_UNANALYZED and all reports and the receipt are cleared. The agent must re-run the full verification pipeline.

State is persisted at .arcflow/agent/session-state.json relative to the workspace root (the nearest parent directory containing .git/).

Hooks#

Three hook subcommands integrate the state machine with agent tool-use frameworks.

pre-tool#

arcflow hook pre-tool <TOOL_NAME>

Called before each tool invocation. In v1, this is a no-op (always exits 0, never blocks). A future governance wave will validate the tool against the current state.

post-edit#

arcflow hook post-edit

Applies the FileEdit event to the state machine. If the current state is GRAPH_FRESH or beyond, resets to DIRTY_UNANALYZED and emits:

ArcFlow: state reset to DIRTY_UNANALYZED after file edit (was IMPACT_KNOWN).
Re-run `arc ingest` + `arc impact` + `arc tests affected` + `arc verify patch` before completing.

Exit 0 on success, exit 1 on state transition error or filesystem failure.

stop-check#

arcflow hook stop-check

The enforcement gate. Wired into an agent framework's Stop hook, it prevents an agent from completing a session with unverified changes.

  • Exit 0 — state is VERIFIED, agent may stop.
  • Exit 1 — state is not VERIFIED, agent should not stop.
ArcFlow: patch not verified (state = IMPACT_KNOWN).
Run `arc verify patch` before completing.

Receipts#

Receipts are tamper-evident artifacts that bind a verification state to a specific git diff. They can be verified in CI, in code review, or by other agents.

Generate#

arcflow receipt generate --base main --head feature/auth-fix

Produces a sealed receipt at .arcflow/agent/receipt.json. The receipt contains:

  • receipt_id — arc_rcpt_<16-hex-chars> (derived from the integrity hash)
  • schema — always arcflow.agent_receipt.v1
  • repository — repo name, base/head refs, diff_hash (SHA-256 of git diff base..head)
  • graph_state — freshness timestamp, node/edge counts, last ingest commit
  • verification — status (pass/fail/incomplete), state reached, proof obligations
  • integrity — SHA-256 receipt hash, signed by arcflow-cli/<version>

Verify#

arcflow receipt verify
arcflow receipt verify --base main --head feature/auth-fix

Four verification layers, checked in order:

LayerWhat it checksFailure message
1. Schemaschema == arcflow.agent_receipt.v1schema mismatch
2. IntegrityRecomputed SHA-256 matches integrity.receipt_hashintegrity hash MISMATCH — receipt has been tampered with
3. Stateverification.state_reached == VERIFIEDstate_reached is '<state>', not VERIFIED
4. Diff-hashRecomputed git diff hash matches repository.diff_hashdiff_hash STALE

Layer 4 only runs when --base and --head are supplied. Layers 1-3 always run.

ok: receipt verifies
  receipt_id: arc_rcpt_a1b2c3d4e5f67890
  state_reached: VERIFIED
  signed_by: arcflow-cli/0.10.26

Show#

arcflow receipt show

Pretty-prints the current receipt JSON to stdout.

List#

arcflow receipt list

Enumerates all receipts in .arcflow/agent/receipt-history/, one line per receipt:

receipt-2026-05-27T03:20:00Z.json  arc_rcpt_a1b2c3d4e5f67890  state=VERIFIED  signed_by=arcflow-cli/0.10.26

Filesystem layout#

All paths are relative to the workspace root (directory containing .git/):

PathPurpose
.arcflow/agent/session-state.jsonCurrent state machine state
.arcflow/agent/receipt.jsonMost recent sealed receipt
.arcflow/agent/receipt-history/*.jsonHistorical receipts

See also#

  • Skills — the computation units that the verification pipeline validates
  • Programs — installable capability manifests with executor wiring
← PreviousPlugin ManagementNext →Server Modes & PG Wire