Lab · Agentic economy · Policy-gated spending
Policy-gated spending
Halden’s procurement agent pays suppliers from a wallet contract that asks a policy engine before any USDC moves: a pause, a credential, an allowlist and a spending limit, in that order. What passes is paid in the same transaction; what is refused is recorded in the audit trail, not reverted, and the ops lead can still approve it by hand. Switch the engine’s order to see a bypass placed first let everything through, or pause the wallet and watch nothing move.
Real: the contracts (PolicyEngine.sol with its policies, the credential registry and the agent wallet) compiled with solc and executed by an EVM in this page; every decision, event and revert is theirs. Re-created: the design follows Chainlink ACE’s policy engine (policies answer Reject, Allow or Continue, evaluated in order, with a default result) and Metal Intelligence’s agent permissions (identity, delegated limits, audit trail); neither product is used here. Simulated: the agent’s decisions unless you connect a model, and the vendors. Hold a payment and raise its amount, or issue an expired credential, and read what the engine recorded.