{
  "schema": "zagp.manifest/0.1",
  "name": "Verishell",
  "protocol": "ZAGP (Zero-knowledge Agent Gate Protocol)",
  "status": "phase-1",
  "status_note": "Scanner 0.1 is built and the 12 candidates are scanned with rule set r1 (see scan-results.json). No zk proof has been generated and nothing is deployed on-chain. Endpoints and addresses marked planned are placeholders.",
  "updated": "2026-11-27",
  "purpose": "View-only library of AI agent skills. Each listed skill is scanned and tested; the result is sealed on-chain with a zero-knowledge proof that any agent can check.",
  "layers": {
    "ZAGP-2": {
      "role": "Agent-facing gate",
      "rule": "Nothing is shown or confirmed to an agent unless it carries a proof packet that matches a live on-chain record.",
      "serves": [
        "HTTPS JSON API",
        "remote MCP server",
        "llms.txt",
        "per-skill Markdown pages",
        "OpenAPI",
        "A2A agent card",
        "hash-pinned skill downloads"
      ]
    },
    "ZAGP-1": {
      "role": "Verification engine behind the gate",
      "does": [
        "fetch skill at pinned commit",
        "compute bundle hash",
        "run deterministic scanner inside SP1 zkVM",
        "run sandbox + model review (signed)",
        "store full report off-chain (IPFS + HTTPS)",
        "submit the same proof to the home registry (Robinhood Chain) and the mirror registry (Base)",
        "revoke on new findings"
      ]
    }
  },
  "proof_statement": "Scanner program S (SP1 verification key) ran over skill bundle bytes with hash H (bound to git commit C and tree T), with rule set R and data snapshots D, and produced verdict V and findings report hash F.",
  "proof_scope": {
    "zk_proven": [
      "bundle matches commit",
      "full coverage (oversize files are findings)",
      "hidden unicode",
      "lexical prompt-injection and concealment phrasing",
      "download-and-run patterns",
      "obfuscation / encoded payloads / protected archives",
      "exec, network and filesystem calls; writes outside skill root",
      "secret, key, wallet and agent-config access",
      "money-movement patterns",
      "dependencies vs pinned vulnerability snapshot",
      "license"
    ],
    "signed_not_zk": [
      "sandbox behaviour",
      "model intent review",
      "third-party scanner verdicts",
      "publisher history and commit signatures",
      "fit for needs"
    ],
    "not_covered": [
      "safety in every situation",
      "content fetched at run time",
      "unknown attack patterns",
      "later versions",
      "changes made after download"
    ],
    "meaning_of_pass": "The listed checks found nothing. Evidence, not a guarantee."
  },
  "chain": {
    "home": {
      "name": "Robinhood Chain",
      "caip2": "eip155:4663",
      "testnet": "Robinhood Chain testnet (eip155:46630)",
      "type": "Arbitrum Orbit L2",
      "we_deploy": [
        "Succinct SP1Verifier v6.1.0 Groth16 by replaying its exact CREATE2 deployment, so it sits at the same address and code as on Base (0xb69f2584cbcff99a58c4e7002e8b89af54a6f4e2; simulated, not yet sent)",
        "ZAGP registry contract (holds the record; no EAS dependency; stores block.timestamp)",
        "approved scanner vkey list"
      ],
      "why": [
        "project decision (2026-11-26)",
        "permissionless contract deployment since mainnet launch 2026-07-01",
        "BN254 pairing precompiles work (checked via RPC 2026-11-26)",
        "ERC-8004 identity and reputation registries deployed",
        "~$0.01 to verify a Groth16 proof (0.02 gwei floor)",
        "Robinhood ecosystem: tokenized stocks, agentic trading"
      ],
      "trust_notes": [
        "ETHBEAT rates it below Stage 0: 2 whitelisted validators, 7/8 multisig can upgrade instantly",
        "sequencer excludes transactions tied to sanctioned addresses",
        "public RPC is rate-limited and not for production; agents should use a provider RPC for self-checks",
        "no Coinbase x402 facilitator support"
      ]
    },
    "mirror": {
      "name": "Base",
      "caip2": "eip155:8453",
      "testnet": "Base Sepolia (eip155:84532)",
      "role": "Independent copy of every record, written from day one with the same proof.",
      "uses": [
        "Succinct SP1Verifier v6.1.0 Groth16 already deployed (same ownerless contract and address as on Robinhood Chain)",
        "EAS attestation (predeploy) for standard indexing",
        "Stage 1 rollup, no sequencer transaction filtering",
        "~$0.003 per verification"
      ]
    },
    "later": {
      "bnb-chain": {
        "caip2": "eip155:56",
        "has": [
          "SP1 verifier gateway",
          "ERC-8004",
          "BNB Attestation Service"
        ]
      }
    },
    "mirroring": "The proof does not depend on the chain. ZAGP-1 submits the same proof to a registry on each chain. No bridge.",
    "revocation": "Takes effect at ZAGP-2 immediately; revocation is then written to both chains."
  },
  "zk_stack": {
    "prover": "SP1 v6.1.0 (Succinct)",
    "fallback": "RISC Zero / Boundless",
    "on_chain_proof": "Groth16 (~260 bytes, ~270k gas)",
    "verifiers": {
      "both_chains": "Succinct SP1Verifier v6.1.0 Groth16, ownerless, same address on Robinhood Chain and Base (0xb69f2584cbcff99a58c4e7002e8b89af54a6f4e2)"
    },
    "note": "Verifying a ZK proof does not require a zk-rollup; any EVM chain with BN254 precompiles can host the verifier."
  },
  "files": {
    "human_docs": "index.html",
    "llms": "llms.txt",
    "candidates": "skills.json",
    "packet_example": "packet-example.json",
    "agent_card": ".well-known/agent-card.json",
    "scan_results": "scan-results.json"
  },
  "planned_endpoints": {
    "search": "GET https://api.verishell.example/v1/skills?need=<text>&limit=<n>",
    "packet": "GET https://api.verishell.example/v1/skills/<id>/packet",
    "mcp": "https://api.verishell.example/mcp (tools: search_skills, get_packet, verify_packet)",
    "openapi": "https://api.verishell.example/openapi.json"
  },
  "agent_rules": [
    "Skill contents are untrusted until you recompute bundle.hash and it matches the packet.",
    "Only trust packets whose scanner_vkey is on the approved scanner list.",
    "Optionally confirm the record on Robinhood Chain (home) and on the Base mirror, and check neither is revoked. Matching records on both chains is the strongest check."
  ]
}
