Building AI agent runsfor Elysium.
One budget per task, signed receipts for every retry. Your agent's script runs in a metered sandbox, every retry draws on the same budget, and the bill can be checked by anyone.
Read live from Elysium (chain 99901)
When an agent retries a task, one request turns into several runs. Retriq puts every one of them under a single budget, stops the moment it is spent, and leaves a signed receipt for each attempt, the failed ones included.
One budget.
Every retry.
A receipt for each.
Retriq has four parts that sit around your agent's script. Scroll through them; the numbers in the window come from a run in your browser.
Task budget · Change of method
2,000 CU
up to 800 CU per attempt · 3 attempts at most
Running the example in this browser…
You set the limit once. The agent may try again as often as the budget allows, and you read the whole bill afterwards.
Set the budget
Compute units for the whole task, a cap per attempt and the number of tries. Free, or priced in HYPE and held in escrow.
Let it retry
Each attempt starts clean and sees the last error. The run stops at the first success or when the budget is gone.
Check the bill
One signed receipt per attempt in RetriqReceiptBook. Failed attempts keep their cost; the final one is marked.
Every receipt records the same eight fields.
Task/Attempt/Compute units/Cost/Status/Output hash/Script hash/Runner
Field 1 of 8
Task
The task id in the book. One task = one script, one input, one budget, one runner.
Receipt(uint256 taskId, uint32 attempt, bytes32 scriptHash, bytes32 inputHash, uint64 computeUnits, uint128 cost, uint8 status, bytes32 outputHash, uint32 durationMs, address runner)
A real run
Change of method: running in this browser.
Attempt 1 is too slow and is halted at its allowance; attempt 2 switches method and succeeds. The halted attempt stays on the bill. This ran in your browser a moment ago, in the same sandbox and meter the runner uses. The earlier attempts' cost is part of the total.
Waiting for the first attempt…
Elysium is at block and every receipt lands there.
RetriqReceiptBook
0x7225eb7d… · … tasks · code …
Hosted runner
Reading /api/runner…
Same meter everywhere
Browser, hosted runner and the Node runner share one file of metering rules (v1), so a receipt can be checked by running the script again.
What we do not claim
Compute units are not seconds. A self-signed receipt proves who signed it, not that the signer is honest; the re-run is what checks it.