● FOR HUMANS You are here
OBSERVE — REASON — ACT
AUTONOMOUS AGENTIC WORKFLOW ENGINE
2026

PROTO.
SELF-DESIGNING AGENTS

Agents that architect themselves.

Proto agents don't follow flowcharts you drew. They autonomously generate their own topology, spawn sub-agents, synthesize tools at runtime, and persist knowledge across missions. You define the goal. The agent designs everything else.

Self-generating topology Runtime tool synthesis Persistent knowledge graph
PROTO OBSERVE REASON ACT ITERATE PROTO AUTO TOPOLOGY TOOL SYNTHESIS KNOWLEDGE GRAPH MULTI-AGENT COORD PROTO OBSERVE REASON ACT ITERATE PROTO AUTO TOPOLOGY TOOL SYNTHESIS KNOWLEDGE GRAPH MULTI-AGENT COORD
720+ Apps Available
Agent Seats
$10K Free Credits
0.8×–2.0× Token Multipliers
<200ms Avg Latency
01
OBSERVE
Read data, build model
02
REASON
Classify, prioritize
03
ACT
Execute operations
04
ITERATE
Loop with updated state
01 — Proto Engine V1

Self-Designing
Protocol .

Proto agents design themselves. They autonomously generate their own topology, spawn sub-agents for parallel and sequential work, synthesize tools they need at runtime, and persist structured knowledge across missions. Not a flowchart. Not a script. An intelligence that architects itself for the task at hand.

ERP.AI Proto / 720+ Business Apps
The Agentic Loop [ ORAI ]
P
Agent Core
Observe
Reason
Act
Iterate
Spawning
Dynamic
Tools
Runtime
Memory
Episodic
Topology
Self-Gen
Agents loop until mission complete or human intervenes
02

The Agentic Loop — Four-Phase Autonomous Cycle

Every Proto runs a continuous observe-reason-act cycle. It evaluates the situation at each turn and decides what to do next. Observe: read your data, build a mental model of reality. Reason: classify, prioritize, make judgment calls. Act: execute operations, create records, call APIs. Iterate: check if the mission is complete, then loop back with updated state.

Autonomous Execution Engine  ·  V1.0

Adaptive
Autonomy

Agents loop until the mission is complete or a human intervenes

Proto-Core Observe → Reason → Act → Iterate / Agentic Loop Sector — 001
System Modules

Capability Modules

MODULE 01

Auto Topology

Self-generating agent topology. Proto decomposes missions into vertical (depth) and horizontal (breadth) sub-agents, then coordinates them to completion.

Active
MODULE 02

Runtime Tool Synthesis

When an agent encounters a task that requires a tool that doesn't exist, it writes one at runtime in the sandbox, tests it, and executes it immediately.

Active
MODULE 03

Knowledge Graph Memory

Hierarchical memory system: short-term working memory for the current mission, long-term structured knowledge graph that persists across missions.

Active
MODULE 04

Multi-Agent Coordination

Parent agents monitor sub-agent progress, merge results, resolve conflicts, and dynamically reassign work if a sub-agent gets stuck or discovers new scope.

Active
MODULE 05

Self-Programming

Proto agents write their own code: domain fuzzers, validators, data transformers, scoring functions. All generated, tested, and deployed at runtime.

Active
MODULE 06

720+ App Fabric

Full access to the ERP.AI business app suite: ERP, CRM, HR, Accounting, Inventory, MRP, and hundreds more. Every app is an API the agent can call.

Active
MODULE 07

Human Override

Configurable human-in-the-loop gates for high-risk actions. Agents pause for approval, then resume exactly where they left off. Full RBAC controls.

Active
MODULE 08

Sandboxed Everything

Every tool synthesis, code execution, and external call runs in an isolated sandbox. Failed actions trigger self-recovery, not data corruption.

Active
MODULE 09

Full Topology Trace

Complete observability into every agent, sub-agent, tool call, memory read/write, and decision. Full replay and audit trail for every mission.

Active
04 — Self-Generating Topology

Self-Generating Topology .

Dynamic tool synthesis at runtime.

Topology Engine T1

Proto decomposes missions into sub-agents: vertical chains for sequential reasoning, horizontal branches for parallel throughput. The topology adapts mid-mission as new scope is discovered.

Status: Self-generating

Tool Synthesis S2

When an agent needs a tool that doesn't exist, it writes one: Python functions, validators, scoring algorithms. Generated in the sandbox, tested against cases, deployed instantly.

Status: Runtime active

Memory Graph M3

Short-term working memory for the current mission. Long-term knowledge graph that persists across missions. Agents recall past strategies, templates, and domain patterns.

Status: Persisting

Coordination Layer C4

Parent agents monitor sub-agent progress, merge results, resolve conflicts. Dead sub-agents are replaced. Scope changes trigger new topology branches dynamically.

Status: Coordinating
Trace: All agent decisions are logged and replayable
Execution
Autonomous
Loop Type
Observe-Reason-Act
Agent Trace
AGT-7741
Sub-Agents
5 (2 levels)
API & Integration

05 Deploy agents in minutes

A single API call spins up an autonomous agent with a mission, app access, budget caps, and human-approval gates. No SDKs to install, no infra to manage.

deploy-proto.sh
# Deploy an autonomous Proto agent
curl -X POST https://api.erpai.com/v1/proto/deploy \
  -H "Authorization: Bearer $ERPAI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mission": "Collect all overdue invoices over $5K, classify by risk, draft follow-up emails, escalate high-value accounts to account managers",
    "apps": ["invoicing", "crm", "email"],
    "budget_tokens": 50000,
    "human_approval": ["escalate", "send_email"],
    "memory": "persistent",
    "sandbox": true
  }'

# Response
# {
#   "proto_id": "PRT-8841",
#   "status": "running",
#   "topology": "auto-generating",
#   "agents_spawned": 0,
#   "trace_url": "https://app.erpai.com/trace/PRT-8841"
# }

* Requires an ERP.AI API key. Free tier includes $10K in credits.

06 Architecture

How Proto Works

Input Mission Natural-language goal
KPIs & success criteria
Constraints RBAC + Policy Token budget ceiling
Approval gates
Scope restrictions
Context Topology Hints Preferred APIs
Retry strategies
Fallback chains
Proto Engine Autonomous Runtime · V1
01 Observe Read API state, ingest events
02 Reason Plan next action, evaluate options
03 Act Call APIs in sandbox first
04 Iterate Verify result, loop or halt
←←← Continuous loop until mission complete or budget exhausted ←←←
GNN Topology Planner Message-passing GNN constructs agent DAG. Node features encode task complexity, edge weights encode data dependencies. GNN Core
GNN Node Encoder Encodes mission text into d=128 node embeddings. GraphSAGE aggregation over API dependency graph. GNN Core
GNN Edge Predictor Predicts agent-to-agent data flow edges. Attention-weighted message passing, 3 rounds. GNN Core
GNN Memory Graph Persistent knowledge graph with learned node embeddings. Cross-run GNN inference for pattern recall. GNN Data
Tool Registry 720+ API bindings. GNN-indexed endpoint discovery via semantic graph search. Core
GNN Anomaly Detector Real-time graph attention over execution trace. Detects drift, loops, and cost anomalies. GNN Safety
Sandbox Dry-run API calls. GNN predicts side-effect propagation before live execution. Safety
Guard Rails Token budget enforcement. GNN-scored risk gates for human-in-the-loop approval. Safety
Trace Emitter Structured logs with GNN attention weights per step. Full graph replay capability. Data
280
Finance & Accounting GL, AP, AR, Tax · 0.8x
195
CRM & Sales Contacts, Deals, Pipeline · 1.0x
140
Inventory & MRP Stock, BOM, Fulfilment · 1.2x
65
HR & Payroll Employees, Leave, Pay · 1.5x
40
Compliance Audit, GDPR, SOC2 · 2.0x
Observability Layer
Dashboard Live mission status
Trace DB Full step replay
Alerts Budget & failure hooks
Approvals Human-in-the-loop
Cost Ledger Per-step token costs
Webhooks External integrations
Control flow Data flow Safety boundary Feedback loop
07 Built in Rust

Sub-10ms Everything

Proto's runtime is written entirely in Rust. Zero-cost abstractions, no garbage collector, no runtime overhead. Every critical path — GNN inference, message passing, graph traversal, sandbox isolation — runs in single-digit milliseconds.

Rust
1.2 ms
ORAI Loop Tick

Single observe-reason-act-iterate cycle. Hot path through the scheduler. No heap allocation.

0ms 10ms
Rust
3.1 ms
GNN Inference

Full forward pass through GraphSAGE encoder. 3 message-passing rounds, d=128, batched.

0ms 10ms
Rust
0.8 ms
Graph Traversal

Knowledge graph query over 42K nodes. Embedding similarity search + BFS path resolution.

0ms 10ms
Rust
4.7 ms
Edge Prediction

MLP classifier on all candidate node pairs. Sigmoid scoring + topological sort for DAG output.

0ms 10ms
P50
2.4 ms
Agent Spawn

Sub-agent creation including RBAC check, memory allocation, topology registration, and first tick.

0ms 10ms
P50
1.8 ms
Sandbox Isolate

Spin up WASM sandbox for tool synthesis. Memory-safe isolation via Wasmtime. Zero cold-start.

0ms 10ms
P99
6.2 ms
Trace Write

Structured log with GNN attention weights, token cost, agent state. Async write to trace DB.

0ms 10ms
P99
8.9 ms
Topology Rebuild

Full DAG reconstruction on scope change. Re-runs GNN planner, reassigns sub-agents, re-budgets tokens.

0ms 10ms
Rust Runtime Stack — Zero-Cost Abstractions
No GC · No Runtime · No Overhead
Rust Proto Scheduler
tokio crossbeam

Async multi-threaded agent scheduler. Work-stealing executor. Lock-free message channels between agents.

Rust GNN Engine
burn ndarray rayon

Native Rust tensor ops. SIMD-vectorized message passing. Parallel neighbor aggregation via Rayon thread pool.

Rust Graph Store
petgraph hnsw sled

In-memory adjacency lists + HNSW embedding index. Persistent storage via Sled embedded DB. Zero-copy reads.

Rust Sandbox Runtime
wasmtime cap-std

WASM-based tool synthesis sandbox. Capability-based security. Memory-safe isolation without process fork overhead.

Rust HTTP / API Layer
hyper tower rustls

Async HTTP/2 client for all 720+ API calls. TLS 1.3 via Rustls. Connection pooling + automatic retry.

Rust Trace Pipeline
tracing ringbuf

Lock-free ring buffer for structured traces. Async flush to persistent store. Zero-allocation hot path.

Operation
Proto (Rust)
Python Runtime
Node.js Runtime
Speedup
GNN Forward Pass (d=128, N=100)
3.1 ms
47 ms
82 ms
15×–26×
Graph Traversal (42K nodes)
0.8 ms
12 ms
19 ms
15×–24×
Agent Spawn + Init
2.4 ms
35 ms
28 ms
12×–15×
WASM Sandbox Cold Start
1.8 ms
120 ms
95 ms
53×–67×
Embedding Similarity (128-dim, 10K)
0.4 ms
8 ms
14 ms
20×–35×
Structured Trace Write (async)
0.3 ms
2 ms
4 ms
7×–13×
Full Topology Rebuild (15 agents)
8.9 ms
210 ms
340 ms
24×–38×
Message Passing Round (K=10)
0.9 ms
15 ms
22 ms
17×–24×
Rust 🦀
0
GC Pauses
0
Runtime Overhead
0
Null Pointer Crashes
0
Data Races
14
Rust Crates
48K
Lines of Rust
100%
Memory Safe
<10ms
All Critical Paths
08 Execution Model

Agent Topology DAG

Proto decomposes a mission into a directed acyclic graph of sub-agents. Each node is autonomous. Parent nodes coordinate, leaf nodes execute. Failed branches trigger self-recovery.

PROTO-9201 · ROOT Mission Controller ● Running · Depth 0 Budget: 50,000 tkn · Used: 12,340 tkn Coordinator
AGT-9202 · L1 Data Gatherer ● Active · 3 sub-agents 4,200 tkn
AGT-9205 API Scanner ● Done
AGT-9206 Schema Read ● Running
AGT-9207 CSV Parser ● Synthesized Runtime Gen
AGT-9203 · L1 GNN Resolver ● Waiting · GNN inference on L1.1 1,800 tkn
AGT-9208 GNN Embed ● Queued
AGT-9209 Edge Predict ● Queued
AGT-9204 · L1 Write-Back ● Error · retrying (2/3) 6,340 tkn · over budget Recovery
AGT-9210 Batch Writer ● Failed
AGT-9211 Retry Handler ● Spawned Auto-Heal
Agent Lifecycle State Machine
10 states · 14 transitions
Init deploy()
Observe data ready
Reason plan built
Gate approved
Act executed
Verify valid
Iterate !done
Complete
Error Recovery Path
Act Fails Capture Trace Classify Error Spawn Recovery Agent Sandbox Retry Verify Fix Resume Parent
GNN Inference Pipeline — Topology Construction
6 stages · 3 message-passing rounds · d=128
Stage 1 Mission Parse

NLP extraction of task nodes from natural-language mission. Entity recognition + dependency parse.

N task nodes
Stage 2 Node Embedding

Each task node encoded to d=128 feature vector. Includes API affinity, complexity score, RBAC level.

X ∈ R^(N×128)
Stage 3 Graph Build

Construct initial adjacency from task dependencies. KNN over embedding space adds latent edges.

A ∈ R^(N×N)
Stage 4 GNN Message Pass

3-round GraphSAGE aggregation. Neighbor sampling K=10. Attention-weighted mean pooling per hop.

H^(3) = GNN(X, A)
Stage 5 Edge Scoring

MLP edge classifier on concatenated node pairs. Predicts data-flow probability + estimated token cost per edge.

Ê = σ(MLP)
Stage 6 DAG Output

Topological sort + cycle removal. Final agent DAG with edge weights, token budgets, and spawn order.

Agent DAG · O(N log N)
128
Embedding Dim
3
MP Rounds
10
Neighbor Sample K
4
Attention Heads
0.92
Edge Pred AUC
<8ms
Inference Latency
42K
Params
GraphSAGE
Architecture
Root / Coordinator L1 Coordinator Worker Agent Runtime Synthesized Error / Recovery
09 Token Economy

Cost Attribution Flow

Every operation has a deterministic token cost. Tokens flow from budget allocation through category multipliers to final attribution. No hidden fees, no surprises.

Source Free Tier $10K 2,000,000 tokens
Source Pay-As-You-Go $0.005 per token
Source Volume Commit $0.003 per token · 40% off
Allocate
Operation Observe ~40% API reads, data ingest
Operation Reason ~25% Planning, evaluation
Operation Act ~30% Writes, mutations
Operation Overhead ~5% Traces, memory, coordination
Multiply
Category Finance 0.8x Low compliance overhead
Category CRM 1.0x Baseline cost
Category HR & Payroll 1.5x PII handling overhead
Category Compliance 2.0x Audit trail + validation
Attribute
Attribution Per Agent AGT-ID Token cost per agent node
Attribution Per Mission MSN-ID Aggregated mission cost
Attribution Per Tenant ORG-ID Org-level billing roll-up
Operation
Base Tokens
Multiplier
Final Tokens
USD Cost
Trace ID
GET /v1/accounts
12 tkn
0.8x
9.6 tkn
$0.048
trc_8f2a...d41c
POST /v1/invoices
45 tkn
0.8x
36 tkn
$0.180
trc_3b1e...a77f
PUT /v1/contacts/{id}
18 tkn
1.0x
18 tkn
$0.090
trc_c4d9...ee20
POST /v1/payroll/run
120 tkn
1.5x
180 tkn
$0.900
trc_91ab...f3c8
POST /v1/audit/report
200 tkn
2.0x
400 tkn
$2.000
trc_d7f0...1b2a
Mission Total
395 tkn
643.6 tkn
$3.218
msn_7741...proto
Cost Formula
final_cost = Σ( base_tokens × category_mult × $0.005 )
10 Memory Architecture

Hierarchical State & Knowledge

Three-tier memory system. Working memory for the current step, session memory for the mission, and a persistent knowledge graph that learns across runs.

L1 — Working TTL: Step

Per-step scratchpad. Holds current API response, parsed data, intermediate calculations. Garbage-collected after each ORAI cycle.

Capacity 128 KB per agent
Eviction LRU, post-step flush
Access O(1) key-value
Shared No — agent-local
Token cost 0 tkn (free)
L2 — Session TTL: Mission

Mission-scoped context. Accumulated observations, reasoning traces, decision log. Shared across all agents in the topology. Persists until mission completes.

Capacity 10 MB per mission
Eviction Mission end + 24h
Access Embedding search
Shared Yes — topology-wide
Token cost 2 tkn per read
L3 — Knowledge TTL: Permanent

GNN-powered knowledge graph. GAT attention over entity embeddings. Learns relationship weights across missions. GNN re-trains on each completed run.

Capacity Unlimited (GNN indexed)
Eviction GNN attention decay score
Access GNN traversal + embed
GNN Arch GAT, 4-head, d=128
Shared Yes — org-wide
Token cost 5 tkn per GNN query
GNN Knowledge Graph — Learned Entity Embeddings
42 nodes · 67 edges · d=128 · GAT 4-head attention
Vendor
supplies
Product
ordered_by
Customer
PO Created
Q4 Budget
Invoice Sent
paid_via
Payment
Warehouse
stores
Stock Level
Reorder
Lead Time
Cross-Run Learning — Pattern Accumulation
Last 8 missions
Run #1 · MSN-7201 Invoice Batch

Learned: batch POST faster than sequential. Saved 40% tokens on subsequent runs.

12,400 tkn → 7,440 tkn
Run #2 · MSN-7305 Vendor Sync

Learned: API rate limit at 100/min. Auto-throttle pattern stored in L3.

8,200 tkn → 6,150 tkn
Run #3 · MSN-7412 Payroll Run

Learned: pre-validate tax IDs before submission. Eliminated 90% of retries.

22,000 tkn → 13,200 tkn
Run #4 · MSN-7518 Report Gen

Learned: cache GL balances for 5min. Re-used across 3 sub-agents.

15,600 tkn → 9,360 tkn
Run #5 · MSN-7620 Contact Dedup

Learned: fuzzy match threshold 0.85 optimal. Stored as domain heuristic.

5,800 tkn → 3,480 tkn
Run #6 · MSN-7741 Inventory Rebal

Learned: warehouse A ships 2x faster. Re-routed fulfilment topology.

18,900 tkn → 11,340 tkn
Run #7 · MSN-7856 Compliance Audit

Learned: SOC2 evidence format. Template stored in L3. 60% faster generation.

31,000 tkn → 12,400 tkn
Run #8 · MSN-7963 Multi-Entity Close

Learned: close subsidiaries in dependency order. Graph edge weights from L3.

42,000 tkn → 25,200 tkn
GAT
Architecture
4
Attention Heads
128
Embedding Dim
42K
Nodes in L3
67K
Learned Edges
0.94
Link Pred AUC
50
Fine-Tune Steps
<3ms
Query Latency
Safety

Built-In Guardrails

Token Budget

Hard cap on tokens consumed per mission. Agent halts at limit.

Sandbox Mode

All tool calls isolated. Automatic rollback on failure.

Human Gates

Configurable approval checkpoints for high-stakes actions.

Audit Trail

Every decision logged. Exportable to compliance systems.

Proto Engine Active

Deploy Agents That
Design Themselves.

Define the mission. Proto architects the rest.

9 capability modules · 720+ app integrations · Full topology trace · Human override gates