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

Error Handling

The SDK provides structured errors with codes, categories, and recovery hints.

ArcflowError#

All errors from the engine are wrapped in ArcflowError:

import { ArcflowError } from '@ozinc/arcflow'
 
try {
  db.query("INVALID QUERY")
} catch (err) {
  if (err instanceof ArcflowError) {
    console.log(err.code)        // "EXPECTED_KEYWORD"
    console.log(err.category)    // "parse"
    console.log(err.message)     // "Expected MATCH, CREATE, MERGE, ..."
    console.log(err.suggestion)  // "Expected MATCH or CREATE" (when available)
  }
}

Error categories#

CategoryWhenExample Codes
parseQuery syntax is invalidEXPECTED_KEYWORD, UNEXPECTED_TOKEN, PARSE_ERROR
validationQuery is syntactically valid but semantically wrongUNKNOWN_PROCEDURE, TYPE_MISMATCH, INVALID_ARGUMENT
executionRuntime error during query executionUNKNOWN, general execution failures
integrationInfrastructure or lifecycle errorLOCK_POISONED, HANDLE_BUSY_CONCURRENT_WRITER

Error code reference#

CodeCategoryMeaningFix
EXPECTED_KEYWORDparseQuery syntax wrongCheck MATCH/CREATE/MERGE syntax
UNEXPECTED_TOKENparseUnexpected token in queryRun CALL db.help()
PARSE_ERRORparseGeneral parser failureVerify the GQL/Cypher form against docs/worldcypher
UNKNOWN_PROCEDUREvalidationProcedure doesn't existRun CALL db.procedures()
INVALID_ARGUMENTvalidationProcedure called with wrong-shape argCheck the procedure's recovery_suggestion
WORKFLOW_NOT_FOUNDvalidationWorkflow name doesn't existRun CALL arcflow.workflow.list
STEP_NOT_FOUNDvalidationStep name not in workflowCheck step name spelling
EXECUTION_CONTEXT_MISMATCHintegrationContext guard failedCALL db.setExecutionContext(...) first
UNKNOWN_EXECUTION_CONTEXTvalidationInvalid context stringUse local_cpu, local_gpu, or distributed
TEMPORAL_WAL_NOT_WIREDintegrationAS OF seq used without WAL contextOpen the store with WAL enabled (open() or openInMemory() with sync options)
LOCK_POISONEDintegrationInternal mutex poisonedRestart the process
HANDLE_BUSY_CONCURRENT_WRITERintegrationAnother writer holds the handleRetry after the writer commits, or use a session-bound handle

Common errors and fixes#

Parse errors#

// Wrong:
db.query("FIND (n:Person)")  // EXPECTED_KEYWORD — "FIND" is not a keyword
 
// Right:
db.query("MATCH (n:Person) RETURN n")

Missing RETURN clause#

// Wrong:
db.query("MATCH (n:Person)")  // Needs a RETURN
 
// Right:
db.query("MATCH (n:Person) RETURN n.name")

Using closed database#

db.close()
db.query("RETURN 1")  // throws — the handle is invalid after close()

Programmatic error handling#

try {
  db.query(userProvidedQuery)
} catch (err) {
  if (err instanceof ArcflowError) {
    switch (err.category) {
      case 'parse':
        return { error: 'Invalid query syntax', detail: err.message }
      case 'validation':
        return { error: 'Query validation failed', detail: err.message }
      case 'execution':
        return { error: 'Query execution failed', detail: err.message }
      case 'integration':
        return { error: 'Database error', detail: err.message }
    }
  }
  throw err  // Re-throw unexpected errors
}

Health check#

Use isHealthy() to check if the database is operational:

if (!db.isHealthy()) {
  // Reinitialize or alert
}

See Also#

  • Error Codes — complete typed error model and recovery hints
  • ArcFlow for Coding Agents — how agents pattern-match on error codes
  • Parameters — $param placeholders prevent injection errors
Try it
Open ↗⌘↵ to run
Loading engine…
← PreviousSnapshot-Pinned ReadsNext →Execution Models