05/The desk
Forecasts anyone can score
Every 15 minutes the agent commits a falsifiable forecast to HCS, scores it after one hour, and prices its advice by how well calibrated those forecasts turn out to be. The forecasts are written before the outcome is known, so the record cannot be edited after the fact, and the dashboard can recompute it from HCS without trusting the gateway.
What a forecast says
buildPrediction in packages/quant-kernel/src/forecast.ts turns the cycle's volatility into a band: "the HBAR reference price stays within ±bandBps over the next hour, with 80% confidence".
sigmaHorizon = σ_annual × √(horizon / 1 year)
z = Φ⁻¹((1 + 0.8) / 2) // ≈ 1.2816 for 80%
bandBps = z × sigmaHorizon × 10 000
id = sha256(pair | poolId | issuedAtMs | decisionProofHash)[0..16]The message, parity.prediction.v1, also records the reference price and its source, the predicted regime, the toxicity score, the safe slippage and the decision proof hash. A forecast is only issued when the cycle has more than 10 returns to estimate volatility from.
How it is scored
scorePrediction runs at the first cycle after the horizon ends, against that cycle's reference price. The realised move is ln(realised / reference) × 10,000 bps; the forecast is a hit if the absolute move is within the band. The score also records a z-score, the absolute move divided by the forecast one-sigma move, which averages about 0.8 when the forecasts are calibrated. It is published as parity.score.v1.
Credibility
summarizeTrackRecord rewards calibration, not boldness: hitting 100% of 80% bands is as wrong as hitting 60%.
| Quantity | Formula |
|---|---|
| Hit rate | hits / scored |
| Calibration gap | (hit rate − 80%) in percentage points |
| Raw credibility | clamp(100 − 2.5 × |gap|, 0, 100) |
| Weight | min(1, scored / 50) |
| Credibility | 50 × (1 − weight) + raw × weight |
| Price multiplier | 0.8 + 0.4 × credibility / 100, so 0.8 to 1.2 |
Until the first score, credibility is 50 and the price multiplier is 1.0. It moves fully to the raw score after 50 scored forecasts. See x402 endpoints and pricing.
Check it yourself
GET /track-recordreturns the summary, the last 500 predictions and scores, the topic id and averifyHint: the Mirror Node URL for that topic.- Read the topic directly:
https://mainnet.mirrornode.hedera.com/api/v1/topics/{topicId}/messages?order=desc&limit=100. Eachmessageis base64 JSON. - On /app, the Verify on HCS control runs
verifyTrackRecordfromapps/web/src/lib/hcs.tsin your browser. It recomputes each hit from the prices in the HCS messages, uses the band committed in the prediction rather than the one restated in the score, and counts flag mismatches, scores with no matching prediction, and predictions published after their horizon ended.
The track topic is HCS_TRACK_TOPIC_ID; if it is unset, the agent and gateway fall back to the decision topic.