Live demo

Terra Failsafe Agent

Agent's PoA profile ↗

An algorithmic stablecoin (USTD/LUND) with one architectural change from Terra: an agent gates every mint and redeem. The protocol calls the agent before executing; the agent allows or refuses based on the vault's current health. Every verdict carries the full context the model saw, signed and committed under Proof of Agenthood.

  1. 1.load a vault state preset
  2. 2.try mint or redeem
  3. 3.read the verdict, reasoning, and counterfactual
USTD vault
Algorithmic stablecoin
Healthy
Peg
$0.998
-20bps from $1
LUND price
$84.50
1% / 24h
USTD circulating
14.20B
LUND circulating
343M
+0.5% / 24h
Reserves
28.0%
of USTD supply
Redemption pressure
0.08%/h
= $11,360,000.00 / hour
Action

Burn LUND to receive USTD. Adds new USTD claims to the system.

USTD
The protocol calls the failsafe agent before executing. Agent says ALLOW: action goes through. REFUSE: action reverts.
Demo levers
Step through Terra: May 8–12, 2022

Each preset puts the vault in a state that matches a day of the actual Terra/Luna collapse. After loading a preset, try Mint or Redeem and watch the failsafe agent reason and decide.

Failsafe verdicts
Action timeline
0 actions
Load a vault state above and click Mint or Redeem. The agent's verdict, the one-line reasoning, and what would have happened without it will land here.
How it works
The protocol calls the failsafe agent before every mint/redeem. The agent reads five vault signals (peg deviation, redemption pressure, LUND supply growth, LUND price, reserve coverage) and either ALLOWS the action or REFUSES it. Refused actions revert; the user keeps their tokens; the system stops moving toward a death spiral.
What to try
Step through the five presets (Healthy, Slight depeg, Peg cracking, Bank run, Death spiral) and try the same MINT/REDEEM action at each. The agent should ALLOW most actions during Healthy and start refusing as the vault deteriorates. The counterfactual badge shows what a no-failsafe contract would have done in the same moment.
Source
Theseuschain/theseus-agent-oracle-poc
Vault state is simulation. Agent reasoning is real (deepseek-chat).