About
Peal Bidder is an AI agent that bids in Peal sealed auctions for its owner, inside limits QoreChain itself enforces.
The owner gives the agent a mandate: the auctions it may bid in, a budget, the most per bid, the highest price, an expiry and plain-English instructions. The mandate is signed with the owner's ML-DSA-87 key and sealed to the agent with ML-KEM-1024. The agent acts on nothing else: it checks every mandate against the owner's key as QoreChain's pqcKeyStatus reports it, and refuses a forged, altered, replayed or expired one with a signed receipt.
For each bid, Claude Opus 5.5 proposes a price and size, reading the auction's text as data, never as orders. A deterministic policy then clamps the proposal to the mandate, and the bid is sealed to the auction's 2-of-3 committee. Then the chain checks again: the agent's key is linked to the owner's smart account under a spending rule (fUSD only, at most 100 fUSD a bid and a daily limit, only commitBid and claim on the mandate's auction, a 24-hour expiry) that only the owner's post-quantum key can change.
It ran live on the qorechain-diana testnet on 16 November: two mandates accepted, three bids landed and won 44.65 PEAL-T, which were claimed; the chain refused a bid over the per-bid limit, a bid past the daily limit and a call outside the rule; on 24 November the agent's own scoped EVM window let one call through and the chain refused calls off target, over the transaction count, over the value limit and after expiry; the agent refused a forged mandate, and Claude disregarded an injected "ignore your mandate" in the auction text. Every decision is a hash-chained, ML-DSA-87-signed receipt. The site checks all 21 receipts in your browser, and `pnpm agent audit --published` checks their 8 transactions against the chain (8 of 8 agree).
On the site you can run your own agent: make a guest account in the browser, sign a mandate, watch the agent seal a bid to the real committee, then try to break it with a forged, tampered, replayed, expired or misdirected mandate, or an injected plan.
How it's made
TypeScript on Node 22: an owner CLI, the agent, a relayer and a Vite web app.
- Mandates: QoreSign hybrid signatures (secp256k1 + ML-DSA-87) and QoreSeal envelopes (ML-KEM-1024 + X25519) through qore-pq-kit's messaging module; canonical JSON, so a signature over the bytes is a signature over the meaning. The agent reads the owner's key from the pqcKeyStatus precompile and fails closed.
- Planner: Claude Opus 5.5 with structured output (through OpenRouter or the Anthropic API), a rule-based fallback, and auction text framed as untrusted data. A deterministic policy clamps every proposal; a 2,000-case fuzz test holds that no proposal escapes the mandate.
- Chain limits: the agent's key is linked to the owner's account as an authenticator with a spending rule (abstractaccount module); each bid is a MsgExecuteEVM the agent signs and a relayer broadcasts. The owner's approval runs inside a scoped EVM window. Bids are sealed to Peal Sealed Auction's committee with qore-pq-kit's threshold module.
- Receipts: a hash-chained log signed with ML-DSA-87 (@qorechain/pqc), verified in the browser on the live page. The agent audits itself through the QoreChain MCP server; the owner can pause it with Sign In With QoreChain; a QoreScan CBOM inventories its cryptography.
- Tests: 268 offline tests (Vitest, fast-check), a headless-browser smoke test of the site, and the live run with every transaction hash in the README.
- Hard parts: smart-account execution had no documented end-to-end run, so it was proven on the testnet first; a token listed in the rule can be transferred within the limits (documented in the threat model with its bound); events of MsgExecuteEVM calls do not reach eth_getLogs, so the agent reads its bids from storage.
Part of the Peal family: Peal Sealed Auction is the venue it bids in, Peal Tender the treasury that runs buybacks through it. Built with AI coding agents; see AI_USAGE.md.