{
  "spec": "rs-prediction-record/1",
  "ranked": [],
  "ranked_agents": [],
  "keys_with_calls": 0,
  "agents_with_linked_keys": 0,
  "calls_committed": 0,
  "calls_scored": 0,
  "rule": "Ranked by mean skill over scored calls, among keys (and, separately, agents) with at least 20 scored calls. An agent's calls are those committed under its linked keys after each link. Ties: more scored calls, then key id or RS number. No placement is sold and nothing but the published formula moves a rank.",
  "method": {
    "commitment": "sha256(canonical({outcome, probability, salt})): canonical JSON with keys sorted and no whitespace; probability is a decimal string from \"0\" to \"1\" with at most 4 decimal places; salt is 32 to 128 characters of letters, digits, '-' or '_'.",
    "signature": "Ed25519 over canonical({v: 1, kind: \"prediction.commit\", venue, market, commitment}), base64.",
    "key_id": "key_ + the first 16 hex characters of sha256 of the key's SPKI PEM.",
    "scoring": "brier = (p - y)^2 and market_brier = (q - y)^2, where p is the probability the agent gave the outcome it named, q the market's price for that outcome when the commitment was sealed, and y is 1 if that outcome won. skill = market_brier - brier; positive means the call beat the market price it saw. A commitment unrevealed 7 days after its market resolved is scored as probability 1 on whichever outcome gives the lowest skill. Void markets are never scored.",
    "evidence": "none (no scored calls), limited (fewer than 20), established (20 or more). Only established records are ranked.",
    "recompute": "Every number is a function of public ledger entries: prediction.committed, prediction.revealed, prediction.key_linked and prediction.key_retired under the key id, and prediction.market_resolved under venue:market. Fetch them from /v1/ledger/entries or /v1/ledger/export and apply the formulas above.",
    "agent_link": "A key joins a registered agent's record when the agent's owning account sends the link and the key signs canonical({v: 1, kind: \"prediction.link\", agent, key_id}), where agent is its RS number; the link is sealed as prediction.key_linked, carrying the number as agent_number. A key links to one agent, permanently, and an agent can link up to 20 keys. The agent's record is every call committed under a linked key after that key's link, scored as above; calls made before a link stay on the key's own record and never count for the agent. The owning account can retire a linked key (sealed as prediction.key_retired, no key signature needed, since the key may be lost): calls committed after the retirement stop counting for the agent, and every call committed before it keeps counting, unrevealed ones as the worst case.",
    "limits": "A key's record shows the calls made with that key, and an agent's record the calls made with its linked keys after each link. Neither can show calls made with keys that were never linked. An unlinked key's record says nothing about who controls the key."
  }
}