{
  "skill_id": "oracle-on-chain",
  "name": "On-Chain State Oracle",
  "evaluation": "free",
  "quality": "agent-decision-grade",
  "price_usd": 0.01,
  "category": "Oracle",
  "tier": "foundation",
  "protocol": "SCO",
  "esp_skill": true,
  "tags": ["oracle", "sco", "on-chain", "base", "sealed", "challengeable", "depth:deep"],
  "summary": "Sealed Consensus Oracle for Base chain state (block, fee, finality). Free-eval first; multi-provider canary; challengeable on public ledger.",
  "when_to_use": [
    "Need verifiable chain height / fee snapshot before settlement",
    "Multi-source canary before high-stakes on-chain decisions",
    "Agent requires challengeable sealed proof, not a trusted feed"
  ],
  "outline": [
    "GET /api/sco?op=eval&oracle=oracle-on-chain (free)",
    "POST /api/sco {op:canary, oracle_id:oracle-on-chain, providers:[lvl-foundation-a,lvl-foundation-b]}",
    "POST /api/sco {op:consensus, input_cids:[...]}",
    "Optional: POST challenge with counter-proof + $0.01 stake",
    "Reputation from SCO ledger only"
  ],
  "capabilities": [
    "Free outline + sample + ledger reputation",
    "Parallel multi-provider sealed packs",
    "Content-addressed cid + challenge window",
    "Bound-witness style origin_proof attachment"
  ],
  "decision_criteria": [
    "Use when chain state must be sealed and challengeable",
    "Prefer consensus of ≥2 providers before large settlement",
    "Reject if free-eval reputation shows high upheld challenges"
  ],
  "free_eval": "https://lvlltd.com/api/sco?op=eval&oracle=oracle-on-chain",
  "esp": "https://lvlltd.com/api/esp?skill=oracle-on-chain",
  "canary_price_usd": 0.01,
  "challenge_stake_usd": 0.01,
  "providers": ["lvl-foundation-a", "lvl-foundation-b"],
  "schemas": {
    "oracle_pack": "https://lvlltd.com/schemas/sco-oracle-pack.v1.schema.json",
    "consensus": "https://lvlltd.com/schemas/sco-consensus-pack.v1.schema.json",
    "challenge": "https://lvlltd.com/schemas/sco-challenge.v1.schema.json"
  },
  "invariants": {
    "free_eval_always": true,
    "reputation_ledger_only": true,
    "every_result_challengeable": true
  }
}
