Fault_Line.

An AI adversary stress-tests driving stacks in CARLA, with 0G decisions and replayable evidence.

Fault_Line.

Created At

ETHGlobal Mumbai

Project Description

The problem. Autonomous vehicles are tested against scenarios chosen by the organization running the test. A car maker may question a competitor’s benchmark, while a testing vendor could change a scenario or publish only favorable runs. Safety teams need to inspect what the adversary did, when it did it, and whether a reported result matches the recorded test.

What Faultline does. Faultline runs an AI adversary against a driving stack in CARLA. In our PDM-Lite demonstration, the car under test perceives other vehicles through its LiDAR while a lead car, or a coordinated four-car swarm, creates demanding but bounded situations. A model on 0G chooses adversary actions at simulation checkpoints. Local code applies physics limits, advances the simulator, and measures time-to-collision, headway, required deceleration and criticality. We have logged more than 300 live 0G decisions with request IDs. Our four-car demonstrations show one model plan coordinating the swarm.

Why the record can be checked. For anchored episodes, Faultline commits the scenario and configuration on 0G Galileo before the first model call. Each prompt includes the commit block hash and asks the model to echo a nonce. After the run, Faultline publishes a public episode record and an encrypted evidence package to 0G Storage, then finalizes their roots and the result on Galileo. Selected published runs have archived provider signatures that can be checked again offline: 8/8 for a lead-brake episode, 6/6 for a cut-in episode, and 7/7 accepted decisions for a paid CARLA job. The verifier checks the downloaded root, file hashes, metrics, available signatures, commitment timing and replay data.

Safe failure is part of the result. If 0G is unreachable or an answer fails validation, the adversary stops safely and the episode is marked interrupted. In the paid CARLA job, seven 0G actions were accepted; the next answer omitted the required nonce. Faultline recorded the safe halt, published the interrupted episode and reproduced its 194-tick trajectory in replay. It did not substitute a fabricated model action.

Agents can purchase a test. Faultline exposes a Hedera x402-protected test service. A buyer client checks the quote against its suite, merchant and spending limits, pays without per-request human approval, and receives a permit for one run. A second attempt to use the permit returns HTTP 409. Our paid CARLA job settled 0.001 HBAR on Hedera testnet before running through CARLA, 0G Compute, 0G Storage and Galileo. Separately, we demonstrated A2A proposal, offer and acceptance, plus x402 settlement in an HTS test token under a bounded repeat-purchase budget.

How it's Made

Pipeline: commit on Galileo → Hedera x402 payment → single-use permit → CARLA episode → 0G TEE decision every 1 s → hash-chained log → 0G Storage (public + sealed) → finalize on Galileo → static verifier

Simulation. CARLA 0.10 on Town10. The car under test is PDM-Lite (carla_garage's rule-based expert) on full CARLA physics, perceiving other cars only through its own LiDAR tracker. Python owns every 50 ms tick and every physics limit, and the simulator pauses while 0G answers so latency never changes the outcome.

0G Compute (targeting: 0G Physical AI). The part we can't fake. Each checkpoint calls 0gm-1.0-35b-a3b through the 0G Router with X-0G-Provider-Trust-Mode: private, JSON mode, temperature 0, an 8 s timeout and one retry only on 429. There is no fallback tier: a standard-only model returns 503 no_provider_for_trust_mode, which we treat as a safe halt. For every decision we keep the request ID, provider address, Zg-Res-Key, latency, raw response hash and observation hash. Providers cache signatures for only about 20 minutes, so at publish we fetch every {text, signature} through the Compute SDK's processResponse and archive it, which makes the check repeatable offline.

0G Storage (targeting: 0G Physical AI). Each episode is split in two. A public JSON holds decisions, metrics, trajectory and the revealed scenario plus salt. A sealed tar holds observations and the private scenario, encrypted with our own AES-256-GCM envelope and a per-episode key from HKDF(tenant key, episode id). We deliberately don't use the SDK's built-in encryption. Downloads are checked against the Merkle root.

0G Chain, Galileo (targeting: 0G Physical AI). EpisodeRegistryV2 at 0xeE2260cE4835059F0e0f1FB9C9948Ca5a7d4b5A4 (source-verified, built with Foundry). commitScenario(episodeId, keccak256(salt, sha256(scenario)), configHash) is mined before the first inference, and finalizeEpisode(publicRoot, sealedRoot, resultCommitment, status, collision) after the last. AgentMemoryRegistry (0x7a8676D267f1aa17d6B55cF5BfcD2A9509b963e3) anchors versioned safety memory, owned by the adversary's ERC-8004 identity (agentId 579).

AI that does real work, not decoration. The LLM does strategy and code does everything else. A research agent picks experiments and hypotheses. A strategist writes a named attack plan, whose hash goes into the manifest. An executor picks one action per car each second. Underneath, a deterministic tactics layer estimates the car under test's reaction delay and braking online, rolls out every joint action, and removes any the car could not physically escape before the model ever sees them. That turns "make it crash" into "find what the stack should survive but doesn't". In the same 8 seeds, mean criticality rose from 0.837 to 0.868 and unfair choices dropped from 3 to 0.

Hedera (targeting: Hedera x402 / agentic payments). A TypeScript merchant publishes an A2A 0.3 agent card. The buyer agent proposes a suite and a price cap, verifies the x402 quote against its allowlist, and pays on Hedera testnet, with settlement checked through Mirror Node and the Hedera Agent Kit. Paid job 002 ran end to end, from HBAR transfer (0.0.9185802@1794006563.434123686) to CARLA run to 0G decisions (7/7 signatures) to Galileo finalize, and its replay matched exactly. Recurring campaigns have a hard budget and a lock that freezes spending on any ambiguous payment.

Frontend. Faultline Studio is a static SPA on Vercel. It has Mission Control (recorded CARLA video synced to the decision timeline, plus a live chase camera), Proof Explorer and Results. Wallets connect over EIP-6963, and run requests are EIP-191-signed with single-use nonces.

The hacky part. Putting the commit block's hash into every prompt as a nonce is our cheap proof that each decision came after the commitment. When the model forgot to echo it once, the run halted and was recorded as interrupted, not quietly kept as a good run.

What we don't claim. 0G proves the decisions and the record, not the physics: CARLA runs on our machine. The Router encrypts private turns end to end, so the provider signs ciphertext, and binding that signature to our logged text isn't checkable yet. Our criticality score measures how dangerous a run was; it is not a crash probability.

background image mobile

Join the mailing list

Get the latest news and updates

Fault_Line. | ETHGlobal