Lab · Agentic economy · Oracle-gated workflow

An oracle-gated workflow

Halden’s shopping agent wants 50 tents from a supplier that quotes in ETH, but only if ETH/USD stays under the customer’s limit. It arms the purchase on a consumer contract and leaves the decision to a workflow in the shape of the Chainlink Runtime Environment (CRE): a trigger (cron, or an HTTP call from the agent), the supplier’s quote fetched by three nodes that must agree, the real ETH/USD feed on Base Sepolia read through a public RPC, a report signed by the nodes and delivered through the forwarder, and PriceConsumer.sol, which alone decides whether the purchase executes.

Real: the Chainlink feed read (drawn as real internet traffic), the contracts and the EVM in this page, the nodes’ signatures and the HTTP trigger’s signature. Re-created: the CRE runtime, its three nodes, their consensus and the forwarder, written for this page with the SDK’s names so you can watch them; Chainlink runs workflows like this on its decentralized oracle network, and the cre CLI simulates them locally. Simulated: the agent’s decisions unless you connect a model, the supplier, and the feed price only if the RPC cannot be reached (the terminal says so). Hold a node’s answer and change it to see the consensus rule drop it; backdate the report and see the contract refuse it.

Simulationscripted modelloading the lab

Experiments

Who decides for the agents

Scenario