Oracle cards: decision record (2026-09-28)
What was decided on 2026-09-28 about the carry row's oracle panel (the "Oracle transparency" dialog behind the "Inspect oracles" step on /carries), and why. The design and every sentence of copy were approved by Fred that day; the approved copy for all 38 listed carries is the review page https://claude.ai/artifact/3MH3KJjAjqcxtehLcJd3Ut.
1. The decision
The oracle panel is replaced by an oracle card: a fixed layout, filled with fixed approved sentences, in which every number is read live.
- Header: "Oracle transparency", the pair and venue ("sUSDe → USDT · Aave v3"), and one fact chip, Upgradable or Immutable.
- How this pair is priced: a Collateral box and a Debt box, one row per token (coin, symbol, live mark, how it is marked, an optional sub-line), then the vault oracle the venue reads (with its live rate where it quotes one, a link and a Copy button).
- Blocks in a fixed order: Collateral price (PT price on a Pendle PT market), Underlying price, Borrowed token price, Upgradability, and Maturity on a PT market. A block that does not apply is omitted.
- One loading line and one error line. Nothing else is ever shown in their place.
2. Why
The old panel assembled a long narrative per carry from curated fragments: a platform mechanism, a per-collateral profile with layered "protects / does not protect" prose, generated pricing sentences and a per-vault liquidation story. It read like a credit memo, it was long, and the parts that described live facts were prose that could quietly go stale when a venue changed an oracle. The card keeps what a reader needs to size a position (what the mark is, what can move it, who can change it and how fast) and nothing else, and it cannot say something that is no longer true: every number is read at request time and every fact it relies on is asserted against the chain first.
3. The content model
Three layers, all fixed text reviewed once and reused by every carry that shares the leg. Nothing is worded by code on the fly.
- Venue rules: the Upgradability block and the chip, one per venue. Fluid has two: standard, and capped for a vault whose oracle chain contains a Fluid capped-rate source.
- Leg blocks: one per collateral shape, underlying and borrowed token on each venue, keyed as in the approved copy (
COL-F-SUSDE-POOL,UND-A-USDE-USDC,DEBT-M-USDC, ...). - PT descriptors: one per Pendle PT market, verified on-chain and dated, in five families (
market-only,market-min-curve,market-bounded,linear-discount,unverified). The live market today ismarket-min-curve.
4. The rules the card keeps
- Every number is live. A number in a sentence comes from an on-chain read or the registry at request time, never from the copy.
- Never part of a card. A failed read, a verified fact that a sentence rests on no longer holding, or a pair with no approved blocks sends the whole card to its error line. A changed fact that no sentence rests on is a warning for the weekly check, not a dark card.
- No risk grades. No scores, badges, or colours or icons that rate risk. Amber is a brand accent only.
- No historical events in the copy, and no em-dashes.
- No incomplete card is ever listed. The listing command reports a carry whose card cannot be assembled under NEEDS A DECISION and refuses to approve it; on a complete card it prints the card before listing it. A weekly check assembles every listed card against the chain and pages on any failure.
5. Decisions taken while building it
These were not in the approved brief, or depart from it, and are recorded here so a reviewer can overturn any of them.
- Redemption rates in the boxes are read on-chain at request time, not from the 6h
token_yield_apysnapshot. The snapshot contradicted the live vault oracle line on the same card (sUSDe 1.2502 against 1.2503). - Aave and Spark liquidation thresholds are read from the pool's e-mode category, not from the registry, which only a manual sync refreshes.
- The route has two views. The Market Depth panel reads the same
/api/carry-oracleroute; its fields are served without the card, so a card that cannot be served (a 502 onview=card) never takes Market Depth down. - The weekly check is its own crontab line (
check-oracle-cards.ts, Mon 04:45) on the existing WS8 cron alert path, rather than a step inside the portfolio token-registry sync, whose alerts are about a different registry. - Copy approved in review (2026-09-29).
PT-MIN-CURVEcloses with "The price is recomputed every block from the pool's own trade history, so there is no stale price to freeze on; only a failed price read halts borrowing, withdrawals and liquidations, and repaying and adding collateral keep working." The old freeze sentence could never be true: both inputs reportupdatedAtequal to the block time on every read, so the min feed's staleness rule never fires. The descriptor now records that fact (inputsStampBlockTime) in place of a freeze flag, and the card asserts it live: an input that starts reporting its own update time is drift. The variant for the day the curve is the lower price is approved as written.PT-MARKET-ONLYandPT-MARKET-BOUNDEDhave new texts, with no freeze sentence. The bounded text states the largest whole percent of its collateral a position can borrow and still not be liquidated by a PT price move alone: floor(100 × LLTV × P(high) / today's mark), with P(high) = 1 / (1 + high)^T by Pendle's convention. It is re-verified against the bounded oracle's own formula when the first such market is verified.PT-LINEAR-DISCOUNTstays as written.- The five dollar Underlying blocks on Aave name what the USDT/USD adapter does, "a market price counted at no more than" its price cap, with the cap a live slot read from the adapter.
- Guardian rule (review should-fix). A Fluid capped-vault card fails only when the team multisig stops being a Liquidity guardian, the one fact "Fluid's guardians, a team multisig" rests on. The pause-only guardian leaving or being replaced changes no sentence, so the card holds and the weekly check prints a
[warn]line. Neither guardian may hold a global or vault auth, as before. - Aave's risk steward. The card pins the steward contract it verified. A new steward contract fails every Aave card until its powers are verified and the fact is updated. That is intended: the release step tells the on-call that the fix is a fact update, never a copy edit.
- One liquidation-threshold reader (#982, 2026-09-29). The screener showed a Fluid vault's collateral factor where its liquidation threshold belongs (vault 17: 92% against the 94% this card prints), because its weekly risk refresh read a hand-kept list under retired strategy keys and the page fell back to the max LTV. The card's per-venue threshold reads (a Fluid vault's settings, the Aave or Spark e-mode category, the Morpho market's LLTV) moved into
src/lib/data/liquidation-threshold.tsas the only implementation. The card still reads the chain when it opens, with the call riding in its batch, and prints exactly what it did. The screener reads a stored copy written by the same reader: daily for every listed carry (registry-driven, now covering Fluid and Morpho), and bysync-carries --approvewhen a carry lists. A carry not yet read shows a dash, never its max LTV, and the weekly card check warns where the stored copy and the chain differ. - The risk refresh runs daily and pages when a run reads nothing (Fred, 2026-09-29). It was weekly, with an exit code that never paged, so a broken refresher showed only in a log. Daily keeps the screener within a day of the card; a run in which every read fails, or more than the refreshers' shared 10% floor, exits non-zero and pages.