Developers

Developer portal

Traces2
Approved1
Rejected1
Mode0G

Argus is accountability infrastructure. You bring the agent. Argus wraps it with a mandate, routes its proposals through ActionGate, seals the evidence, and makes every decision replayable and tamper-evident.

Integration lifecycle

8-step action path

01
Create mandate

DAO deploys mandate contract defining asset, max amount, allowed targets, and forbidden action types.

02
Register agent

Agent owner registers via AgentRegistry. Assigned agentId is the NFT token ID — agent passport on-chain.

03
Post bond

Owner posts ETH bond via AgentBonding. Compliance score initialises at 800. Bond is the collateral for slashing.

04
Build structured trace

Agent runtime produces an ArgusTrace: observation → memory → inference → proposedAction. All fields deterministic.

05
Store trace, commit root

Canonicalise trace, compute root with keccak256, upload to storage (local fallback or 0G Storage), then call submitAction().

06
ActionGate evaluates

On-chain: 6 mandate clauses checked against proposal. Bitmap encodes which clauses fail. Zero bitmap = APPROVED.

07
Approved or rejected

Approved: score +5, trace committed. Rejected: bond slashed, score −200, evidence sealed, violation record created.

08
Verify proof package

Off-chain or in browser: verifyTrace() recomputes root from stored trace, diffs against committedTraceRoot. Mismatch = tampered.

0G integration model

Each accountability primitive maps to a 0G role

0G Chain and 0G Storage are live on mainnet. 0G Compute and Agent iNFT are roadmap.

0G Chainlive
Mandate court deployed on 0G Mainnet (chain ID 16661). ActionGate verdicts, slash events, and trace roots are publicly settled on-chain. Explorer: chainscan.0g.ai
0G Storagelive
Black-box recorder. Compliant and violation traces uploaded to 0G Storage. Upload receipts verifiable at storagescan.0g.ai.
0G Compute / TEEroadmap
Sealed policy engine. Verifiable execution environment. Attestation currently simulated by agent runner.
Agent iNFTroadmap
Agent passport on 0G chain. Portable compliance record. Currently ERC-721 AgentRegistry on local chain.
Workspace packages

Helper libraries (this monorepo)

These packages are not yet published to npm. They are workspace helpers used inside this monorepo.

@argus/shared

Local TypeScript helper: schemas, canonical hashing, trace root computation, proof package builder, browser-safe verification, tamper diff. Zero runtime dependencies.

@argus/storage-0g

Local TypeScript helper: storage adapter with LocalStorageFallbackAdapter and adapter interface for 0G Storage. Returns StorageReceipt with URI, root, size, provider label.