{
  "title": "TapeOut Circuit Index",
  "site": "index.html",
  "agent_guide": "llms.txt",
  "detail_url": "index.html#/{processor}/{circuit_id}",
  "circuit_key": "Lowercase processor address, a slash, and decimal circuit ID",
  "registration_order": "Processor index ascending, then circuit ID ascending. A proxy for earlier registration, with no authorship attribution.",
  "files": {
    "circuits": {
      "url": "data/index.json",
      "format": "JSON array of circuit records",
      "jsonl_source_in_repository": "data/index.jsonl",
      "fields": {
        "processor": "0x-prefixed processor address",
        "processor_index": "Zero-based factory index",
        "circuit_id": "Circuit ID within the processor",
        "nIn": "Input width in bits",
        "nOut": "Output width in bits",
        "nState": "State width in bits",
        "gates": "Gate count reported by circuitInfo",
        "netlist_len": "Raw netlist byte length",
        "netlist_sha256": "Hex SHA-256 of the raw netlist bytes",
        "ref_targets": "Direct REF instructions as [processor, circuit_id] pairs in instruction order, with repeats",
        "has_ref": "True when the netlist contains a direct REF instruction",
        "has_latch": "True when the netlist contains a direct LATCH instruction",
        "truth": "Output bit strings in ascending input-index order, least significant signal first in each string. The low bit of the input index selects input signal zero. Present for stateless circuits with at most 6 inputs when the scan could evaluate them.",
        "name": "Function label or null. Present alongside truth."
      }
    },
    "summary": {
      "url": "data/summary.json",
      "format": "JSON object",
      "fields": {
        "chain": "Chain name",
        "chainId": "Numeric chain ID",
        "factory": "TapeOut factory address",
        "processors_at_start": "Factory count recorded at scan start",
        "processors_with_records": "Distinct processor indices in the circuit records",
        "circuits": "Circuit record count",
        "truth_tables": "Records with a truth table",
        "circuits_with_ref": "Records with direct REF instructions",
        "stateful_circuits": "Records with positive state width",
        "scan_block_number": "Scan block number or null when unavailable",
        "scan_finished_at": "ISO 8601 scan completion time in UTC",
        "request_errors": "Reported request failures",
        "unique_netlists": "Distinct raw netlist digests",
        "identical_bytes_groups": "Digests with multiple registrations",
        "standard_small_gate_groups": "Identical-byte groups where every circuit has at most 4 gates",
        "same_function_groups": "Truth-table groups with multiple distinct netlist digests",
        "referenced_circuits": "Targets with at least one inbound REF edge",
        "ref_edges": "Distinct source-to-target direct REF edges"
      }
    },
    "clusters": {
      "url": "data/clusters.json",
      "format": "JSON object",
      "fields": {
        "identical_bytes": {
          "description": "Groups sorted by descending member count, then first seen",
          "netlist_sha256": "Shared digest",
          "size": "Circuit count",
          "first_seen": "First circuit key in registration order",
          "standard_small_gates": "True when every member has at most 4 gates",
          "members": "Circuit keys in registration order"
        },
        "same_function": {
          "description": "Groups sorted by descending member count, then first seen. Each has multiple distinct digests.",
          "nIn": "Shared input width",
          "nOut": "Shared output width",
          "truth": "Shared truth table in the circuit record format",
          "name": "Function label or null",
          "size": "Circuit count across all designs",
          "first_seen": "First circuit key in registration order",
          "standard_small_gates": "True when every member has at most 4 gates",
          "designs": "One object per digest, each with netlist_sha256 and members (circuit keys in registration order). Join to circuit records for gate counts."
        },
        "dependents": "Map from circuit key to distinct directly referencing circuit keys in registration order. Includes indexed circuits with no dependents and any referenced targets outside the index.",
        "most_referenced": "Up to 50 {circuit, count} entries ranked by distinct dependents, with ties ordered by registration when known.",
        "processors": "Registration-ordered objects with processor, processor_index, circuits, first_seen (including unique digests), and later_identical_bytes. Includes empty processors when a scan roster is available."
      }
    },
    "scan_metadata": {
      "url": "data/scan_meta.json",
      "format": "JSON object",
      "fields": {
        "chain": "Chain name",
        "chainId": "Numeric chain ID",
        "rpc": "RPC endpoint",
        "factory": "TapeOut factory address",
        "method": "Scan and evaluation method, when supplied",
        "scan_finished_at": "Scan completion timestamp with time zone",
        "duration_seconds": "Scan duration in seconds, when supplied",
        "processors_at_start": "Factory count recorded at scan start",
        "circuits_with_records": "Total circuit records",
        "request_errors": "Reported request failures",
        "note": "Scan notes, when supplied",
        "scan_block_number": "Pinned block, when supplied",
        "scan_started_at": "Scan start UTC timestamp, when supplied",
        "start": "First scanned factory index, when supplied",
        "end": "Exclusive end of selected factory range, or null for a scan to the factory count, when supplied",
        "processors": "Scanned processor roster with processor_index and processor, when supplied"
      }
    }
  },
  "mcp": {
    "transport": "stdio",
    "command_from_repository": ["node", "bin/circuit-ci-mcp.js"],
    "tools": ["circuit_info", "check_circuit", "evaluate_netlist", "snapshot_circuit", "drift_check"]
  }
}
