- Methodology version history — every methodology release, what
changed in the verdict logic, and which ADR decided it. That page is what a receipt’s
methodology_versionrefers to. - What’s new — the product story, written for humans rather than integrators.
2026-10-24: methodology 0.8.0 and verifier 0.6.0
- Methodology 0.8.0. Adds two receipt inputs that are hashed only when set
(
market_unavailable,premium_unconfirmed), a stricter verifier, threshold validation at load and a saturating collateral-ratio cast. Their gates ship disabled; existing receipts keep their hashes. Because every new receipt carries methodology 0.8.0, installpegana-replay0.6.0 (cargo install pegana-replay --locked) to verify them. Receipts from 0.7.0 remain verifiable withcargo install pegana-replay@0.5.2 --locked. - Verifier 0.6.0. A schema-v2 receipt now fails verification when its asset class,
thresholds, EWMA alpha or confirm/decay windows differ from the
assets.tomlit embeds or from the methodology constants. API calls time out (10 s connect, 30 s total), never follow redirects and cap response bodies at 8 MiB.
2026-10-24: MCP get_asset_history bounds and subscribe_peg_events cursor
get_asset_history.limitis now 1 to 5,000 (it was 50,000) and the lookback is at most 7 days (it was 30).discountis the mean of the 1-minute averages in the bucket;intrinsic_usdandmarket_usdare the last observation in the bucket and arenullwhen a bucket has no raw observation. A database timeout returns anisErrorasking to retry.subscribe_peg_events. The cursor is the pairnext_cursor+next_cursor_id(since_ts+since_id).next_cursor_idisnullon an empty first page;since_idacceptsnull. A client that sends onlysince_tsno longer receives the boundary event again on every poll.- Freshness.
get_assetsreports a stale entry withstate: "UNKNOWN"; a snapshot up to 60 s ahead of the clock counts as fresh. - Validation messages. The wording of MCP input validation errors changed with the zod 4
upgrade; the error code (
-32602) is unchanged.
2026-10-24: WebSocket limits and state_reason values
- WebSocket. The
subscribereply now carriescount(the number of assets you sent) instead of echoingassets. New limits: 30 handshakes per minute per address (429ws_rate_limitedwithRetry-After), 4 KiB per message and frame, at most 256 assets persubscribe, a 10-second slow-reader disconnect, IPv6 clients grouped by /64, and503above 10,000 open sockets. See the WebSocket guide. state_reason. AnUNKNOWNstate can now also readmarket_reference_divergence,depth_below_floororpremium_hold_timeout(guards that are off by default);market_unavailableis documented too. WebSocket updates may carrymarket_observed_at. See Why a state readsUNKNOWN.
2026-10-24: bounded raw history and clearer chat alerts
GET /v1/assets/{symbol}/history?bucket=rawnow accepts only windows inside the last 7 days and at most 7 days wide. Older or wider requests return400 invalid_range; usebucket=1mfor those. Symbol case variants (usdc,USDC) now share one cached response.GET /v1/audit/{id}(410) and/v1/audit/{id}/onchain(404) report a fixed error code inlast_errorinstead of internal error text.GET /v1/audit/{id}also returnsconsistency(ok,mismatchorunknown), comparing the alert state with the receipt’s computed state.- Chat alerts say
discountorpremiumexplicitly, with the sign of the price deviation.
2026-10-24: separate rate-limit budgets for the web app; WebSocket market fields
- Pegana’s own server-side web traffic now uses two authenticated budgets (pages and embeddable widgets) that are independent of each other and of the public per-IP limit. Public callers are unaffected.
- WebSocket update frames may carry
market_observed_at, andstate_reasonmay bemarket_unavailable; see the WebSocket guide.
2026-10-24: webhook signature v2 and unique event ids
- New header. Every signed webhook now also carries
x-pegana-signature-v2(ed25519:<base64>). It signs the UTF-8 messagepegana-webhook-v2.<x-pegana-timestamp>.<x-pegana-event-id>.<exact request body>, so the event id and timestamp are covered by the signature. - Unique event ids.
x-pegana-event-idis now unique per event. The original alert keeps itsalert_id; retractions and evidence follow-ups get their own deterministic id (a UUIDv5 derived from the alert id), so receivers that deduplicate on this header no longer drop them. Retries of one event reuse the same id.alert_idstays in the body. - v1 unchanged.
x-pegana-signature(<timestamp>.<body>) keeps working byte for byte. Move to v2 at your own pace. - Keys.
GET /v1/meta/webhook-keyslists the public keys that verify both versions.
2026-10-23: readiness polling budget
GET /readyz now has a separate 30 requests per minute, per-IP budget. Its response is
cached for 2 seconds, including when the URL has query parameters. Requests above the
budget receive 429 and Retry-After. GET /healthz remains exempt.
2026-10-22: open-core, the website and operations tooling are proprietary; the oracle stays MIT
- License scope. Pegana is open-core. The oracle (indexers, engine, API, dispatcher, MCP server, methodology, verifier, SDKs, migrations and the asset canon) stays open source under MIT at github.com/PeganaHQ/Pegana and github.com/PeganaHQ/ReplayCLI. The pegana.xyz website (marketing site and web app), its design system, the Pegana name, logo and wordmark, and our production operations tooling are proprietary and are no longer published in the public repository. Code published before 2026-10-22 remains available under MIT in the repository history. No API, MCP, SDK or verifier contract changes.
2026-10-22: free intrinsic sources for JLP, USDY, sUSDe, EURC and USD*
These assets used Pyth redemption-rate or FX feeds that are not available on Solana without paid Hermes. Each now reads its intrinsic value from a free source that the issuer or the protocol publishes itself. No API field changes;intrinsic_usd keeps its meaning.
- USDY: Ondo’s
RWADynamicOracle.getPrice()on Ethereum, read with a plaineth_call. - sUSDe: the sUSDe ERC-4626 vault’s
convertToAssets(1e18)on Ethereum (USDe per sUSDe, USDe treated as $1). For both Ethereum reads the block must be no more than 180s old, and at least two of three independent public RPCs must agree within 10 bps, or nothing is published. - JLP: the Jupiter Perpetuals pool,
aum_usd / JLP supply, decoded on Solana in one read and refused if the pool’s AUM has not been refreshed for 5 minutes. The market leg stays the Pyth JLP/USD spot price, which is likely arbitrage-coupled to the pool NAV (JLP mints and redeems at it), so the wide 200 bps drift band is the guard. - EURC: the EUR/USD spot rate as the median of two free public venues (Kraken, Coinbase), which must agree within 10 bps. As before, nothing is published over the forex weekend (Fri 20:30 to Sun 22:30 UTC) and the asset shows the “FX market closed” banner.
USD*: the Perena vault’smint_share_price, with the vault’slast_update_tsas the liveness signal. Jupiter quotes exclude thePerena Star V2route; there is still no independent deep market, soUSD*stays monitoring-only.- MCP:
get_methodologydescribes the new sources for these assets. - Slower Pyth push feeds: PYUSD/USD (about 20 minutes between updates), SUSDE/USD, USX/USD,
USDS/USD (about 5 minutes) and USDG/USD (about 4 minutes) now each get a staleness window
matched to their measured cadence, so their confidence label no longer drops to
unknownbetween updates. Every other feed keeps the existing windows. - Self-hosters: the Ethereum reads use keyless public RPCs by default; set
ETH_RPC_URLS(comma-separated) to use your own. Optional cadence knobs:EVM_NAV_POLL_MS(60000),JUPITER_PERPS_POLL_MS(15000),FX_HTTP_POLL_MS(60000). Ops: thefx_httpliveness alert (PeganaFxSourceNotPublishing) is calendar-aware and stays quiet over the forex weekend.
2026-10-22: Pyth prices read from the post-upgrade on-chain push program; Hermes removed; AUSD retired (no Solana market)
- Pyth source. Since the Pyth Core upgrade (2026-08-26) sponsored push feeds live under a new on-chain program. The indexer now derives each feed’s account under both the new and the legacy program, accepts only accounts owned by a Pyth receiver, and keeps the freshest fully-verified print. USX, ONyc, eUSX and the sUSDe market leg read live Pyth prices again.
- Hermes removed. There is no Hermes stream or API key any more; every Pyth print comes from
Solana. Self-hosters can drop
PYTH_HERMES_URL,PYTH_HERMES_API_KEY,PYTH_HERMES_RETRY_MSandPYTH_ONCHAIN_FALLBACKfrom their.env(they are ignored).PYTH_ONCHAIN_POLL_MSandPYTH_ONCHAIN_MAX_AGE_SECSstill apply. - USDY market leg moved from the Pyth USDY/USD spot feed (it steps about once a day on Solana) to a Jupiter quote. USDY no longer carries a Pyth cross-check feed.
- AUSD retired (
is_active = false): no Solana market deep enough to quote and no sponsored Pyth feed on Solana. History and existing receipts stay readable. - sUSD stays tracked as monitoring-only: NAV live; no Solana market deep enough to price.
2026-10-22: nullable cascade totals, history paging cursors, audit index scope, MCP limits
- BREAKING for strict typed clients:
simulate-depegtotals can benull.GET /v1/assets/{symbol}/simulate-depegnow returnsliquidatable_usd: nullandpositions: null(with an emptyby_protocol) whencoverageisunknown, that is when there are no fresh health-factor bands. It used to answer"0"and"<5", which read as “nothing liquidates”.nullmeans the amount is not known, not zero. Both keys stay required; the OpenAPI schema marks them nullable. A client generated from the old spec, or one that parses these fields as non-null strings, must acceptnull. /historysignals truncation.GET /v1/assets/{symbol}/historyalways carriestruncated(truewhen the window holds more rows thanlimit). When it istruethe envelope also carriesnext_to(just before the oldest row returned) andnext_from(the effective lower bound of the window); repeat the request withfrom=<next_from>&to=<next_to>for the next, older page. Additive: rows and defaults are unchanged. See Pagination.- Audit index scope. On
/v1/auditand/v1/audit.csv,?asset=naming an asset that is not public (leveraged synthetics, classsynth_lev, e.g. xSOL) now returns404unknown_asset, like the/v1/assetsroutes. xSOL receipts no longer appear in the index or the CSV export, and/v1/statsalerts_24hfollows. Every receipt stays resolvable by id:/v1/audit/{id}, its replay bundle and its on-chain route are unchanged. - Receipt caching.
GET /v1/audit/{id}is cachedimmutable(one year) only once the receipt is final:commit_statusnot_applicable,retry_exhausted,wallet_drained, orcommittedwith its signature. A receipt whose anchor may still change getspublic, max-age=60, so clients pick up the on-chain signature when it lands. The replay bundle keeps the immutable header. - MCP (
mcp.pegana.xyz).- A per-IP limit of 300 JSON-RPC messages a minute, counting every message (each batch
entry,
initialize,tools/list, calls that fail validation). Over it the reply is HTTP429withRetry-After: 60and a JSON-RPC-32000error carrying the requestid. The 100 tool calls a minute limit is unchanged. - A JSON-RPC batch holds at most 10 entries; a larger one is refused whole with one
-32600“batch too large” error. get_assetslists the same assets andcountasGET /v1/assets: an asset with no live snapshot appears asUNKNOWNwithnulldiscount,intrinsic_usd,market_usd,tsandupdated_at, andstale: true.subscribe_peg_eventsrejects an unknown or mistyped symbol with an error naming it (asset 'X' not tracked) instead of an empty batch.simulate_depeg_impactacceptsnullliquidatable_usdandpositions, matching the API change above.verify_alertis described honestly: it fetches the receipt as the API serves it and recomputes no hash. For independent verification use thepegana-replayCLI.
- A per-IP limit of 300 JSON-RPC messages a minute, counting every message (each batch
entry,
2026-10-21: per-IP limit raised to 240/min; hot-read cache; quieter rate-limit handling
- Per-IP limit. The public REST limit is now 240 requests a minute per IP (see the
RateLimit-Limitheader). The code default stays 60; production sets 240./v1/audit.csvstays at 10/min and WebSocket at 20 connections per IP. Keep reading the header and honouringRetry-Afteron a429rather than hard-coding a number. - Hot-read cache. The hot anonymous read routes (
/v1/assets*,/v1/peg/feed*,/v1/statsand others) are served from a short-TTL (3-5s), single-flight in-process cache, so many clients asking for the same thing cost one database query per TTL. Bodies are replayed exactly,generated_at/updated_atstill say when the data was computed, and a cache hit adds anAgeheader. Rate-limit headers are still stamped per request. - Quieter rate-limit handling on pegana.xyz. The dashboard polls less while its WebSocket is
connected, pauses polling in hidden tabs, and on a
429waits outRetry-Afterfor the whole tab instead of retrying every request. It keeps showing the last data received and only shows a small “live updates paused” note if nothing has refreshed for over a minute.
2026-10-21: Documentation corrections and behavior changes
discountsign documented correctly. The API has always returneddiscount = 1 − market / intrinsic: positive means the market trades below fair value, negative is a premium. Several pages and examples said the opposite; they are fixed. The dashboard shows the holder’s view of the same number with the opposite sign (a positive APIdiscountof0.0120displays as−1.20%).- OpenAPI description. The spec now states the real default rate limit (60 req/min per IP;
read
RateLimit-Limitfor the live budget) and the real anchor policy: only transitions intoDEPEG,CRITICALorBLACK_SWANare anchored on-chain, and only when on-chain commits are enabled.DRIFTand recoveries never are. - Errors. Errors now lists every code the API emits, including the
/v1/auditcodes, which add keys such ashintorgotnext tomessage. /v1/auditpaging. Pagination documents thebefore/before_idkeyset cursor and thesince/until/assetfilters.- WebSocket. WebSocket documents what the stream really does: a frame per
engine recompute (not only on state changes), the
asset: "system"subscribe acknowledgement,pongon unsubscribe, and the 120-second idle ping. - Removed endpoints. The 2026-10-20 removals are now documented as an exception to the stability contract, with a migration table.
pegana-replay. For receipts older than methodology 0.4.0, theVERSION_MISMATCHhint no longer claims an on-chain anchor it never checked, and links the receipt’s own page athttps://www.pegana.xyz/audit/<alert_id>. Ships in the next CLI release.
Behavior changes
These change what the API and the MCP server return. Integrators who relied on the old behavior should check each line. REST APIGET /v1/assets/{symbol}/historywith a symbol that was never tracked now returns404unknown_asset(it was200with an empty series).- New
400 invalid_assetfor a symbol or mint that cannot name any asset (bad characters or length; a NUL byte used to produce a500, other bad input a404). New400 invalid_rangewhenfromis afterto(it was200with an empty series). /v1/assetsand the asset card:stateandstate_reasonare no longernullfor an asset without a fresh snapshot. They readUNKNOWNandstale_source.risk_sideisbelowforlst,stable_yieldandsynth_levassets (it waseither), matching the engine’s rule that a premium on those classes is informational. Asynth_levpremium now scores0inrisk_score./v1/peg/feed:receipt_urluses the hostwww.pegana.xyzand a percent-encoded symbol;discount_bpsis rounded to 4 decimal places./v1/auditaccepts?state=UNKNOWN./v1/audit.csvdecimals have trailing zeros trimmed, like the JSON.- CORS:
Access-Control-Allow-Credentialsis no longer sent, allowed methods areGET,HEADandOPTIONS, andx-request-idis an allowed request header. - Cascade and systemic exposure data older than 3 hours is omitted instead of served under a
current timestamp;
simulate-depegthen returnscoverage: "unknown".
/v1/ws)
- Update frames use the REST wire format:
discountat 6 decimal places, USD values at up to 18 decimal places with trailing zeros trimmed, and millisecond RFC 3339 timestamps (the heartbeattstoo). - The per-IP connection cap is 20 (it was 5).
structuredContentnow matches the publishedoutputSchemaexactly. Undeclared keys such as the engine’skindare removed. Added fields:updated_atonget_assetsandget_asset_state, a per-assetstaleonget_assets,staleanddata_age_seconget_loop_exposureandsimulate_depeg_impact,cascade_staleandcascade_data_age_seconget_loop_exposure, andreplay_bundle_urlonverify_alert.get_asset_historyfor an unknown symbol returnsisError(it returned an empty series).- Request bodies over 64 KiB get
413. AGET /SSE probe gets405. - The rate limit is keyed on the client IP only.
2026-10-21: Data correction, stale-NAV history removed for 38 LSTs
- History trimmed (applied 2026-10-21, about 15:25 UTC). For 38 Sanctum-priced LSTs (all active LSTs except jitoSOL, STKESOL,
corvusSOL, rkuSOL and hyloSOL+), discount and
intrinsic_usdhistory before 2026-10-20 10:50 UTC was removed. From 2026-10-17 09:20 UTC to 2026-10-20 10:46 UTC the stored intrinsic value came from a stale Sanctum API NAV and was 1.8-3.6% too low (average 2.5%), which showed as a false premium. The affected rows were deleted (not estimated) and a post-check found no remaining bad rows. Peg states, alerts and receipts were not affected. - What you will see.
GET /v1/assets/{symbol}/history, MCPget_asset_history,series_24h,worst_abs_24handjitter_bps_24hfor these assets start at 2026-10-20 10:50 UTC./v1/assets/{symbol}/statesincecan predate the first history point. Other assets are unchanged. Details: status incident log.
2026-10-20 — Open-source release: all-free, no accounts
- Pegana is open source and free. The full product is public at
github.com/PeganaHQ/Pegana. The paid and authenticated surfaces were removed: there is no sign-in, no JWT, no API keys, no x402 payments, no Telegram bot and no/accountarea. Entries below describe those surfaces as they were at the time and are kept for history only. See the 2026-10-22 open-core entry. - MCP: all 10 tools are free, including
get_asset_historyandsubscribe_peg_events.ping_paidkeeps its name for compatibility, is free, and returnspaid pong. - REST:
GET /v1/alertsand the/v1/me/*and/v1/auth/*routes no longer exist. The transition ledger isGET /v1/audit(and/v1/audit.csv). The per-IP rate limit is currently 60 req/min, reported in theRateLimit-Limitheader. - Webhook registration is no longer offered, so the webhook guides were removed. The
Ed25519 verification keys remain published at
GET /v1/meta/webhook-keys(list currently empty).
Migrating from removed endpoints
These removals happened insidev1 without a v2 prefix or a Sunset period, an exception
to the stability contract that the accounts going away
made unavoidable. The removed routes now answer 404 not_found.
2026-07-30 — V1 is live · verifier 0.5.2 · TypeScript SDK on npm
@peganahq/sdk-tsis on npm —npm install @peganahq/sdk-ts. Full typed coverage of every/v1endpoint generated from the OpenAPI spec, the ADR-0043 list-envelope helper (unwrapList), and theconnectPegFeedlive-feed helper. Reads need no API key.- The Python client (
pegana-sdk) is built and validated at the same version; PyPI publication follows shortly. pegana-replay0.5.2 — ships the--jsonverdict announced on 2026-07-26 (0.5.1 was published without it) and makes theVERSION_MISMATCHremediation an exact, working command. Two real defects fixed there: the old hint pointed at a version list to decode, and the command it implied didn’t work — a barecargo install pegana-replay@0.4.3re-resolves the caret dependency to methodology 0.6.1 instead of the 0.6.0 its lockfile pins, failing the same check again. Every emitted command now carries--locked.GET /v1/calibrationreturns 68, matching/v1/assets,/v1/peg/feedand/v1/stats. It was the last endpoint still servingxSOLafter the 2026-07-23 removal, so it reported 69 rows — and xSOL was its onlymiscalibratedrow, advertising a calibration failure for an asset deliberately taken off the peg surface. All four surfaces now agree: 68 assets, 56 calibrated, 12 provisional.
Pinning table
Verification is exact-match by design (ADR-0028): a build verifies exactly one methodology version. Always pass--locked, or cargo re-resolves the methodology dependency and the
check fails again.
The CLI prints the right command for you on a mismatch.
2026-07-26 — Live WebSocket feed fixed · SDKs v0.2.0 (full coverage + WS helpers)
GET /v1/wsreal-time feed restored. Browser clients were failing the upgrade handshake — a global response-compression layer was compressing the101 Switching Protocolsresponse and corrupting the upgrade. (Non-browser clients that omitAccept-Encodingwere unaffected, which is why it went unnoticed.)/v1/wsis now served on its own router, outside the compression and rate-limit layers, so the handshake returns a clean101. No client change needed; the frame protocol is unchanged ({op:"update",asset,payload},{op:"heartbeat",ts}; client sendssubscribe/unsubscribe/ping).- TypeScript SDK
@peganahq/sdk-tsv0.2.0 — regenerated fromopenapi.jsonfor full typed coverage of every/v1endpoint (typeddata/errorper operation), the ADR-0043 list-envelope helper (unwrapList), and a bearer-auth option for/v1/me/*. NewPegFeed/connectPegFeedhelper subscribes to the live/v1/wsfeed (usesglobalThis.WebSocket; injectable for Node ≤ 21). - Python SDK
pegana-sdkv0.2.0 — full OpenAPI-generated client (pegana_api_client, all/v1endpoints) plus apeg_feed()async iterator over the live feed (TLS verified againstcertifi). The stable v0.1 receipt surface is retained in both SDKs. pegana-replayCLI —--json— emits a machine-readable verdict ({status, exit_code, alert_id, methodology_version, receipt_sha256, onchain}) at every terminal point; exit codes 0–5 are unchanged. Colored PASS/FAIL on TTYs (honorsNO_COLOR).
2026-07-25 — Single-asset endpoints: latency fix for empty-oracle-feed assets
- Fixed a degenerate TimescaleDB asof-join that made
GET /v1/assets/{symbol}and…/historyhang up to ~100s for ~15 DEX-priced USD stables carrying an emptypyth_feed_id. Responses are byte-identical — only latency changes (eUSX 106s → under 1s). No contract change. DB connection pools across all backend services were also given explicit sizing + astatement_timeoutbackstop.
2026-07-24 — /v1 response shapes made uniform (breaking, coordinated)
A one-time reshape of the /v1 wire contract for a consistent, self-describing API. All
in-repo consumers (web, embeds, MCP, docs, examples) ship in the same change; there are no
external key-holders yet, so this is coordinated rather than versioned.
- Lists are enveloped. Every collection endpoint —
GET /v1/assets,/v1/alerts,/v1/calibration,/v1/assets/{symbol}/history, and/v1/peg/feed— now returns a uniform envelope{ ok, generated_at, count, data: [ … ] }instead of a bare array. Read your rows fromdata. Single-resource GETs (/v1/assets/{s},/state,/loop-exposure, …) are unchanged — they still return the resource object directly (the Stripe/GitHub convention). - Peg feed is an array.
GET /v1/peg/feeddatamoved from a mint-keyed object (data[<mint>]) to an array — each signal carries its ownmint, so index bysignal.mint. The globalmethodologyversion is stamped once on the envelope instead of on every signal. - Field names unified. Freshness is always
updated_at(wasas_ofon the feed and Sub-C endpoints); the Sub-C advisory string isadvisory_note(wasmodel_note/note); the bucketed obligation range ispositions(waspositions_affected/position_bucket). - Errors unchanged — still
{ error, message, asset? }; branch onerror.
.data[], index the feed by each signal’s mint, and rename
as_of→updated_at, model_note/note→advisory_note, positions_affected→positions.
See the updated Response format and
Recipes.
2026-07-24 — Output formatting normalized (decimals + timestamps)
- Cleaner numbers, same values. Decimal fields (prices, discounts, USD amounts) are still
JSON strings carrying exact decimal values, now with trailing zeros trimmed
(
"3.582350020000000000"→"3.58235002") — parse them with a decimal library, as before. Large USD aggregate fields (market_cap,loop_exposure_usd,liquidatable_usd,collateral_usd,debt_usd) are rounded to the cent; price and discount signal fields keep full precision. Theseries_24hsparkline floats are rounded to 8 decimals. - Uniform timestamps. Every timestamp is now RFC3339 UTC with millisecond precision and a
Zsuffix (2026-07-24T15:33:14.545Z), replacing the previous mix of nanosecond/microsecond and+00:00/Zforms. Same instant —Date.parse()/ any RFC3339 parser is unaffected. - Non-breaking, value-preserving. No field was renamed or removed and every numeric value and instant is identical — this is a representation-only change under the additive stability contract. Consumers that parse numbers/dates (not exact byte strings) need no changes. See the new Response format conventions.
2026-07-24 — Systemic impact (Loop Intelligence) + Risk on the board
- New: cross-protocol systemic exposure.
GET /v1/assets/{symbol}/loop-exposurenow returns how much leveraged collateral rides on an asset across Solana lending (Kamino + Jupiter Lend, over $800M mapped across ~30 assets — a live figure) plus acascadearray — the liquidatable collateral at each preset depeg shock, in one call.GET /v1/assets/{symbol}/simulate-depeg?shock_bps=gives a single rung. All advisory, anonymous by construction (k-anonymised distributions, no wallet/owner ever read) — never a verifiable receipt. - Partner feed enrichment.
/v1/peg/feedgains an optional additivesystemicblock per mint (exposure + cascade + coverage), namespaced away from the verifiable peg fields and omitted when a token has no tracked leverage. No breaking change; existing consumers are unaffected. - Risk on the dashboard board. The command-center board now leads with the live,
state-anchored
risk_score(0–100, sortable), replacing the old static structural grade.
2026-07-23 — V1 is live in production (methodology 0.7.0)
The full V1 line shipped to production: methodology 0.7.0 across the engine, indexer, dispatcher and API, with migrations 0064–0068 applied.- Calibration widened. A batch recalibration promoted 36 assets from provisional to calibrated (20 → 56), based on their observed 8-day distributions rather than hand-set defaults.
risk_scoreandmarket_capon the feed.risk_scoreis a derived 0–100 branch-on number, anchored to the state so it can never disagree with the verdict; it is deliberately outside the receipt hash, because it is a convenience, not a claim.- xSOL removed from the public peg surface. A leveraged junior tranche has no peg — it
trades 60–85% away from its own NAV by design — so “market vs intrinsic” measures leverage,
not peg deviation. Publishing a peg verdict for it was a category error. Still tracked
internally;
/v1/assets,/v1/peg/feedand/v1/statsnow report 68. pegana-replay0.5.0 → 0.5.1 published, embedding methodology 0.7.0.
2026-07-16 — methodology 0.7.0: Pyth confidence gate
- When Pyth reports a price whose own confidence interval is wider than 500 bps, the
oracle leg is treated as unreliable and the asset publishes UNKNOWN with
state_reason: "pyth_confidence_gate"rather than a verdict derived from a number the oracle itself is unsure about. Class-agnostic and conservative-only — it can withhold a verdict, never manufacture one. ADR-0032, migration 0066.
2026-07-08 — methodology 0.6.0 + 0.6.1: arithmetic overflow hardening
- 0.6.0 —
apply_ewma_purereturnsOption<Decimal>andstate_for_crsaturates instead of overflowing on extreme inputs. A malformed or adversarial price could previously panic the classification path. - 0.6.1 — three further bps-scaling sites in the NAV-sanity and classification paths hardened against the same overflow class.
- Both are published:
pegana-replay@0.4.3embeds 0.6.0,@0.4.4embeds 0.6.1.
2026-07-01 — methodology 0.5.0 + verify version-pinning
- Methodology 0.5.0 (intrinsic-sanity): a garbage-HIGH intrinsic (a broken NAV/RR feed print,
30% “discount” on a NAV-anchored asset) now publishes honest-dark UNKNOWN instead of a false CRITICAL/BLACK_SWAN. Mirror of the 0.4.0 premium-sanity, on the discount side. Proven inert on the live universe and the 2025-10-10 backtest (no verdict moved).
- Verify version-pinning: receipts declare their
methodology_version, and verification is exact-match by design (ADR-0028). See the current pinning table — the versions quoted in this entry were correct on 2026-07-01 and have since moved. state_reasonon the dashboard: UNKNOWN assets now show why (e.g. “price above NAV looks unreliable — thin market”) instead of a generic wait message.- PST + ONyc market source moved DexScreener → Jupiter (deeper route; kills thin-pair flapping).
2026-06-24 — asset expansion (+37 assets, now 63 tracked)
- Added 37 net-new significant assets (>$1M Solana liquidity): 6 fiat/synthetic stables
(USX, USDG, USD1, USDu, CASH, AUSD), 2 yield-bearing stables (eUSX, PST) + Perena
USD*, and 28 liquid staking tokens (BNSOL, dynoSOL, PSOL, JSOL, hSOL, STKESOL, …). Coverage is now 63 active assets across 7 classes; the live list is alwaysGET /v1/assets. - New intrinsic sources: a generic SPL stake-pool reader for significant LSTs outside
the Sanctum registry (STKESOL/rkuSOL/corvusSOL), and a Perena savings-vault reserve NAV
decode for
USD*. eUSX and PST use existing Pyth Redemption-Rate feeds. - All 37 ship
monitoring_only: true(beta) — alerts live but flagged, on a 7-day recalibration window. No API/MCP/webhook contract change: they appear automatically in/v1/assets,/v1/assets/:symbol,/v1/assets/by-mint/:mint,/v1/stats, and the MCPget_assets/get_asset_statetools.
2026-06-16 — monitoring_only assets released as beta
- The 13
monitoring_onlyassets now alert publicly, labeled beta (provisional calibration). The read-time egress gate was removed, so/v1/alerts, the/v1/auditindex +.csv, and/v1/stats.alerts_24hnow include them. /v1/alertsrows and the/v1/auditindex rows gain an additivemonitoring_only: booleanso consumers can label beta rows.- Webhook payload: beta assets carry
"calibration": "provisional"(additive field; signature contract unchanged). The Telegram bot appends a ”🧪 Beta — provisional calibration” footer. - A beta
BLACK_SWANno longer bypasses dedup (30-min floor) so a provisional signal can’t blast subscribers every recompute.
2026-06-14 — Asset containment + FX-weekend banner
hyloSOL+(migration 0049) andONyc(migration 0050) moved to monitoring_only (contained from public alert/audit/stats egress; still visible in/v1/assetswithmonitoring_only:true). The freeze-detector approach was evaluated and Rejected (ADR-0024) — containment, not detection.- A calm ‘FX market closed’ StaleBanner variant ships for FX assets (EURC) over the forex weekend (Pyth EUR/USD feed closed Fri ~22:00 → Sun ~22:00 UTC). EURC has been monitoring_only since Phase-0 launch.
2026-06-12 — monitoring_only egress gate + JupUSD EWMA guard
- Public ledger feeds (
/v1/alerts,/v1/stats.alerts_24h,/v1/auditindex,/v1/audit.csv) now exclude monitoring_only assets at read time. By-id lookups (/v1/audit/{id},/onchain,/replay-bundle) stay public and ungated./v1/assetsis NOT gated — monitoring_only assets still render with amonitoring_onlyboolean. - Engine plausibility guard tightened from
|discount| <= 1.0to|discount| < 1.0after a $0 Jupiter quote poisoned the EWMA and painted JupUSD CRITICAL for ~7.5 min.
2026-06-11 — Public launch (FEATURE_PUBLIC_ALERTS)
- The public alert ledger is now live.
/v1/alerts,/v1/stats.alerts_24h, and the/v1/auditindex/csv now return real data (previously gated empty by ADR-0020’sfeature_public_alerts=false). 5 Phase-0 assets (JupUSD, JLP, EURC, dzSOL, vSOL) activated monitoring-grade.
2026-06-10 — API JSON-error hardening (Gecko report)
- Added
GET /healthalias for/healthz; every error path now returns an application/json{error, message}envelope (incl. 404, 429 withRetry-After, malformed-bodyinvalid_body); deduplicated operationIds; PegState/Confidence documented as enums.
2026-06-09 — Webhook channel types
- Webhooks now auto-detect channel by host: Discord (embed, unsigned), Slack (attachment, unsigned), Generic (Ed25519-signed). Migration 0046. 429
Retry-Afterhonored.
2026-06-04 — Methodology 0.3.0 (CR-side deadband)
- ADR-0023: added a magnitude deadband on the hyUSD CR path (
CR_DEADBAND_PCT=2), cutting CR band-flapping ~52→~10 transitions/2d. Migration 0044.
2026-06-03 — Bot is English-only
- ADR-0022: removed pt-BR localization and the
/langcommand; the bot is now English-only.
2026-06-01 — Methodology 0.2.0 (deadband + LST premium carve-out)
- ADR-0021: bps-path magnitude deadband (
DEADBAND_PCT=25) and LST/stable_yield premium carve-out (a premium is forced to PEGGED). Migration 0041.
2026-05-31 — API surface polish (close-deferred sweep)
Developer-facing changes from closing out the deferred B-005/B-006/B-007/B-011 items. All additive — HTTP status codes are unchanged, so status-based clients are unaffected.GET /v1/audit/{id}/onchainnow explains why a receipt is not anchored instead of collapsing every case intonot_committed_yet. The body carries acommit_statusand a discriminatingerror:not_applicable(cost-gated, never anchored — ADR-0004),not_committed_yet(in-flight/queued/unknown),retry_exhausted,wallet_drained, orpersistence_failed(ADR-0006 dead-letter terminal — the same state/detailreturns as 410). All stay HTTP 404 by design (clients such aspegana-replay --verify-onchaintreat 404 as “skip the on-chain check”). Note: forDRIFTalerts the bodyerroris nownot_applicable(previouslynot_committed_yet) — the 404 status is unchanged.GET /v1/methodology/currentwidened from{version, status}to also includegit_tag,released_at,status_reason, andsuperseded_by. When a version isbroken,fix_urlnow points at the live#lifecyclesection (the old per-version anchor never existed). The same fix applies to the broken-version retraction notices the dispatcher sends.- OpenAPI spec (
/openapi.json) now covers all 35 router path-items — the/v1/auth/*,/v1/me/*, webhook CRUD, and/v1/wssurfaces are documented — and registers thetelegram_jwtHTTP bearer scheme so authed routes resolve their security reference. - MCP paid tools now declare a per-tool
resource.url(mcp://tool/{name}) on each x402 402-challenge, soping_paid,get_asset_history, andsubscribe_peg_eventsare distinguishable in the payment-required body. Verification/settlement are unaffected.
2026-05-30 — API input validation + list caching
GET /v1/alerts?limit=/?offset=out-of-range values now return 400 instead of being silently clamped (B-018/019/021). Same forGET /v1/assets/{symbol}/history?bucket=— an unrecognized bucket is now a 400 rather than falling back to a default (B-020). If you were relying on the old clamp-and-continue behavior, send in-range values.GET /v1/assets(the full asset list) is now memoized in Redis for 5s, cutting p50 from ~1.2s (B-022). Response shape is unchanged.
2026-05-29 — Audit receipts: server-side state filter + raw/smoothed series
GET /v1/audit?state=<PEGGED|DRIFT|DEPEG|CRITICAL|BLACK_SWAN>now filters server-side (AC42). The previous client-side filter was bounded by page size; the fulllimitnow applies to matching rows. An unknownstatereturns 400 (error: invalid_state).- Audit receipt discount charts now expose both the raw and EWMA-smoothed series so a transition can be traced against the exact inputs that produced it.
2026-05-27 — Mintlify docs launched
- New docs site at
pegana.xyz/docs(Mintlify). Replaces the inline/concepts,/learn,/developers,/methodologyroutes on the marketing site. Old URLs redirect. - OpenAPI spec published; API Reference tab is auto-generated from
openapi.yaml.
2026-05-27 — MCP instrumentation
mcp-tsnow records per-tool metrics (ping_paidinstrumented viawithMetrics). No payload changes. Visible in Prometheus / Grafana.
2026-05-26 — Webhook 7-day dogfood window
- Started 7-day dogfood for webhook delivery. First mainnet deliveries returning 200 OK. Webhook channel is in preview in the channels table; promoting to live after dogfood concludes.
2026-05-26 — First mainnet x402 paid call
- MCP paid tools (
get_asset_history,subscribe_peg_events) are now settling on Solana mainnet via the Coinbase CDP facilitator (api.cdp.coinbase.com). The publicx402.orgfacilitator still advertises Solana devnet only, so the CDP swap is what unblocked mainnet. First 3 mainnet settlements recorded (commit7da9158).
2026-05-25 — Account UX shipped
- AccountChip in global header, persistent left sidebar on
/account/*, AlertMeButton + SubscribeModal on dashboard.
2026-05-25 — Production deploy to Hetzner
- Migrated from prod-local Docker stack to Hetzner CPX32 (Falkenstein). All 9 containers healthy.
2026-05-25 — Bot session storage → Postgres
- Replaced in-memory grammY session storage with Postgres-backed adapter. Sessions
now survive bot restarts. Migration
0014_bot_sessions.sql.
2026-05-22 — Calibrated thresholds
- Per-asset, per-class drift / depeg / critical thresholds shipped. Calibrated
against 24h p99 noise.
assets.tomldocuments every threshold.
2026-05-20 — API rate limit (corrected)
- Correction (2026-10-21): this entry used to say the REST per-IP limit was raised from
60 to 300 req/min. That never reached production, which kept serving the code default of
60 req/min until 2026-10-21, when it was raised to 240 (see that entry). Handle
429and back off rather than relying on any particular number.
2026-05-19 — Hysteresis FSM v2
- Asymmetric entry/exit thresholds and longer exit dwell (120s vs 30s entry). See hysteresis FSM.
2026-05-15 — Pyth confidence + Hermes jitter
- Confidence field populated 100% (range 1e-8 to 0.091).
- Hermes SSE reconnect uses ±50% jitter + exponential 500ms → 30s backoff.
2026-04-02 — dSOL frozen
- After the Drift exploit on 2026-04-01,
dSOLwas frozen inassets.toml— the entry remained for historical continuity but the engine no longer polled the asset. It was subsequently removed as an asset entry ahead of the public launch (so the symbol no longer resolves at the API edge) and survives only as a historical comment.
For the full list of commits, see
github.com/PeganaHQ/ReplayCLI/commits.