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
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. Perception Lake
  • 2. World Graph
  • 3. Query Engine
  • 4. Live Surface
  • 5. Event Bus
  • 6. Behavior Engine
  • 7. Algorithm Library
WorldCypher
  • Overview
  • 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
  • Server Modes & PG Wire
  • Persistence (ops)
  • Import & Export
  • Deployment
  • Daemon (UDS)
  • 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 Conformance
  • Conformance Dashboard
  • openCypher TCK Results
  • Extension Regressions
GQL 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

Sports analytics

ArcFlow exposes a small Python and Cypher surface for multi-entity tracking analytics: confidence-weighted aggregates in Cypher, a run_per per-scope iteration helper, trajectory primitives (shadowed_by, leverage_gain, release_point, nearest_at_frame), and a Python SKILL catalog (arcflow.skills.sports) wrapping them for common questions.

Confidence-weighted aggregates#

Five new aggregate built-ins respect each row's _confidence instead of treating all rows as equally true:

AggregateSignatureReturns
avg_conf(value, conf)per-column floatsΣ(v·c) / Σc
sum_conf(value, conf)per-column floatsΣ(v·c)
count_conf(conf, threshold)conf column + literalrows with conf >= threshold
min_conf(value, conf, threshold)value/conf cols + literalmin(value) over rows with conf >= threshold
max_conf(value, conf, threshold)value/conf cols + literalmax(value) over rows with conf >= threshold
MATCH (o:Observation)
RETURN avg(o.speed)                         AS unweighted,
       avg_conf(o.speed, o._confidence)     AS weighted,
       count_conf(o._confidence, 0.8)       AS high_conf_count

Per-scope iteration: db.run_per#

Sports queries often want "for each play, run X". db.run_per(outer, body, var) iterates the outer query, executes the body once per row with $var bound, and concatenates results. Each inner row is annotated with __outer_<var> for grouping.

from arcflow import ArcFlow
 
db = ArcFlow()
rows = db.run_per(
    outer="MATCH (p:Play) RETURN p.id AS p ORDER BY p.id",
    body="MATCH (p:Play) WHERE p.id = $p RETURN p.id AS pid",
    var="p",
)
# rows: [{"pid": 1, "__outer_p": 1}, {"pid": 2, "__outer_p": 2}, ...]

Result diagnostics: result.diagnose()#

When a MATCH returns 0 rows, the next question is always "why?". result.diagnose() returns a dict pointing at missing labels, missing relationship types, or filter-suspect cases.

result = db.execute("MATCH (p:NoSuchLabel) RETURN p.x")
diag = result.diagnose()
# {"row_count": 0, "labels": {"NoSuchLabel": 0},
#  "rel_types": {}, "suggestions": ["No nodes with label :NoSuchLabel exist."]}

Returns None when the result has rows; cheap to call on every result.

Sports SKILL catalog#

arcflow.skills.sports exposes five opinionated wrappers over the trajectory primitives:

FunctionQuestion
shadowed_by(db, attacker, target, defender, angle_tol_rad)Frames where defender obstructs attacker→target line
beat_leverage(db, chaser, target)Per-frame closing/falling-behind delta
chase_down(db, chaser, target, threshold_yards)First frame chaser closes within threshold
release_at_throw(db, qb)Frame where QB forward velocity peaks
catch_radius_at_target(db, receiver, x, y)Closest receiver-trajectory approach to a point
from arcflow.skills import sports
 
# When does defender 33 first close within 1 yard of receiver 12?
frame = sports.chase_down(db, chaser_id=33, target_id=12, threshold_yards=1.0)

These pull (frame, x, y) samples from :Frame nodes via f.player_id = $pid and run the geometric primitive in pure Python. The Rust trajectory module (crates/arcflow-runtime/src/trajectory.rs) holds the canonical implementation; the Python copy mirrors it for portability.

Public benchmark#

The engine repo includes a side-by-side benchmark against DuckDB on multi-entity tracking data. The point of the comparison is shape: a typical analytics question on tracking data isn't a single column aggregate — it's a graph traversal anchored on a spatial predicate across a temporal window with a confidence filter. ArcFlow runs the whole question in one loop; the SQL counterpart needs joins for the graph shape, an extension for the spatial predicate, a windowed CTE for the temporal axis, and the result still doesn't carry confidence. See the engine repo's benchmarks/ directory for the exact query shapes.

← PreviousMulti-Source ObservationNext →CLI