Autonomous Working Capital for AI Agents.
Agents shouldn't just know how to pay with x402. They should know how to stay solvent. Vigil forecasts upcoming obligations, detects liquidity shortfalls before default, and executes autonomous swaps and metered settlements on Hedera.
Unencumbered gas & collateral
10 metered calls + fees & buffer
Flipped by VigilRouter swap
Consensus Topic 0.0.10524552
Why wallets don't prevent agent defaults.
An AI agent holding 100 HBAR can still default on a FUSDC-denominated API obligation due in 30 minutes. Traditional DeFi optimizes for yield; Vigil optimizes for guaranteed continuous solvency.
The Naive Agent (Status Quo)
- ✕Reactive default: Waits until receiving an HTTP 402 challenge before realizing it has zero settlement tokens.
- ✕No fee awareness: Unaware of HTS custom transfer fees or gas slippage, causing transactions to revert.
- ✕No execution audit trail: Decisions happen off-chain in private memory without verifiable receipts.
The Vigil Agent (Solvency OS)
- Forward obligation forecast: Calculates required working capital across upcoming metered tasks with safety buffer.
- Payment Coverage Ratio (PCR): Maintains solvency above 110%, triggering automatic VigilRouter LP swaps when low.
- Verifiable HCS consensus: Every state transition, quote evaluation, and settlement is anchored immutably to Hedera.
How Vigil operates autonomously on Hedera.
From requirement discovery to on-chain settlement, Vigil executes every phase with cryptographic verification.
Obligation Model
Agent discovers service on the Vigil Directory, requests quotation (0.50 base + 0.10/field × 5 fields = 1.00 FUSDC), adds HTS custom fee (0.10) + safety buffer (0.20), totaling 10.30 FUSDC.
PCR Evaluation
With 0 FUSDC held, Payment Coverage Ratio is 0.0% (CRITICAL). Vigil emits SHORTFALL_DETECTED to HCS and activates the algorithmic treasury desk.
Two-Leg Swap
Evaluates VigilRouter (2 HBAR/FUSDC + 30 bps) vs DEX AMMs. Executes on-chain swap of 22.066 HBAR for 11.00 FUSDC. PCR flips to 110.0% (HEALTHY).
x402 Metering
Executes 10 metered requests. Each payment assesses the 0.01 FUSDC fixed custom fee to the collector. Replay stores prevent duplicate attacks; receipts stream to HCS.
Live Hedera Testnet Verified Anchors
| Entity | Hedera ID | Role in Working Capital Lifecycle | HashScan Explorer |
|---|---|---|---|
| Agent Account | 0.0.10510026 | Autonomous agent holding reserve HBAR & operating FUSDC | View |
| Merchant Account | 0.0.10510028 | Provider of x402-gated Market Intelligence API | View |
| FUSDC Token | 0.0.10510032 | HTS token configured with 0.01 fixed custom fee (HIP-18) | View |
| HCS Audit Topic | 0.0.10524552 | Consensus stream of shortfall, routing, swap, and payment events | View |
Ready to witness autonomous solvency?
Experience the full working capital lifecycle in real time: trigger liquidity forecasts, watch the route matrix pick VigilRouter, and observe on-chain metered settlements with HCS receipts.
