{
  "date": "2026-10-07",
  "scope": "Local synthetic fixtures; serialized input estimates, not provider usage or invoices.",
  "source_revisions": {
    "service": "736d4552d929b2d0be8aefbb4efae0315bc08802",
    "gateway": "c3fa7def5f49067aa12b7d77a63cf6a8d1fbc375"
  },
  "helper_source_sha256": {
    "gateway/src/aixy/gateway/modules/mcp/domain/discovery.py": "e19375f6a3af736a5824e047b6051db28efd0acacd6134a186eea21d4b6195ed",
    "gateway/src/aixy/gateway/modules/mcp/application/gateway.py": "0ebdc4f3bb7847dbbd0024f6c50cefbb48fc8b906f528c5b7d5a800a45d2507d"
  },
  "capture_script_sha256": "840556cb36c3babee3349e72e074aa1482de2d0d57aa29235e3f2c7915cc0eac",
  "service_lock_sha256": "306e9dcb6cdd5b3334a5199dcb5ddfc88ad3f136695cbd42c319569c13504abd",
  "baseline_file": "mcp-context-fixtures-2026-10-06.json",
  "baseline_sha256": "ccbc9459622303368e68e5d59f538bf409f14bbac847ee6030bf495f1ce3679f",
  "runtime": "CPython 3.12.14 on Darwin arm64",
  "packages": {
    "tiktoken": "0.14.0",
    "toon-format": "1.1.0",
    "bm25s": "0.3.11",
    "grpcio": "1.84.0",
    "protobuf": "7.36.2"
  },
  "capture": "Current DiscoverTools RPC on an ephemeral local SQLite-backed service. Four literal helpers from the recorded gateway source. No live accounts, model inference or native execution. TOON is an offline same-data control.",
  "sample": "The eleven frozen 6 October native catalogs, plus one synthetic declared GitHub identity dependency. Ten deterministic sequences, fixed successful result; two initial 100-tool catalogs.",
  "helper_count": 4,
  "historical_helper_count": 2,
  "historical_label_correction": "The 6 October initial control contains search and execute only, not four helpers. Its frozen files and counts are unchanged.",
  "sequence_baseline": "Previous verbose discovery replies and legacy search/execute helpers from the frozen capture, with the two current connection helpers added to every previous request. Current requests contain all four actual gateway helpers. Native catalogs, user prompt, execution arguments and fixed successful result are unchanged. Schema lookup rounds follow the captured primary schema.",
  "encoding_baseline": "Same decoded response value and schema constraints; current compact JSON versus offline TOON. This control is distinct from the previous discovery sequence.",
  "limitations": "Local serialized input estimates with simulated model steps. No live accounts, native execution, provider framing, inference, quality, retries, latency, prompt caching or billed cost. Initial eager requests contain 100 native definitions; discovery requests contain four gateway helpers. Percentages have different denominators and cannot be added.",
  "tokenizers": {
    "o200k_base": {
      "cases": [
        {
          "id": "flat-1",
          "shape": "flat",
          "candidates": 1,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 96,
            "same_data_toon": 116,
            "json_reduction_percent": 17.24
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 2643,
            "current_json": 2016,
            "same_data_toon": 2050,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 23.72,
            "json_format_reduction_percent": 1.66
          }
        },
        {
          "id": "flat-2",
          "shape": "flat",
          "candidates": 2,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 196,
            "same_data_toon": 245,
            "json_reduction_percent": 20.0
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 3185,
            "current_json": 2244,
            "same_data_toon": 2326,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 29.54,
            "json_format_reduction_percent": 3.53
          }
        },
        {
          "id": "flat-5",
          "shape": "flat",
          "candidates": 5,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 189,
            "same_data_toon": 225,
            "json_reduction_percent": 16.0
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 4867,
            "current_json": 2212,
            "same_data_toon": 2282,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 54.55,
            "json_format_reduction_percent": 3.07
          }
        },
        {
          "id": "flat-10",
          "shape": "flat",
          "candidates": 10,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 299,
            "same_data_toon": 350,
            "json_reduction_percent": 14.57
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 7708,
            "current_json": 2442,
            "same_data_toon": 2552,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 68.32,
            "json_format_reduction_percent": 4.31
          }
        },
        {
          "id": "nested-1",
          "shape": "nested",
          "candidates": 1,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 184,
            "same_data_toon": 222,
            "json_reduction_percent": 17.12
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 2908,
            "current_json": 2218,
            "same_data_toon": 2290,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 23.73,
            "json_format_reduction_percent": 3.14
          }
        },
        {
          "id": "nested-2",
          "shape": "nested",
          "candidates": 2,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 372,
            "same_data_toon": 457,
            "json_reduction_percent": 18.6
          },
          "same_value_as_historical": false,
          "sequence": {
            "previous": 3744,
            "current_json": 2648,
            "same_data_toon": 2806,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 29.27,
            "json_format_reduction_percent": 5.63
          }
        },
        {
          "id": "nested-5",
          "shape": "nested",
          "candidates": 5,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 277,
            "same_data_toon": 331,
            "json_reduction_percent": 16.31
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 6218,
            "current_json": 2414,
            "same_data_toon": 2522,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 61.18,
            "json_format_reduction_percent": 4.28
          }
        },
        {
          "id": "nested-10",
          "shape": "nested",
          "candidates": 10,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 387,
            "same_data_toon": 456,
            "json_reduction_percent": 15.13
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 10391,
            "current_json": 2644,
            "same_data_toon": 2792,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 74.55,
            "json_format_reduction_percent": 5.3
          }
        },
        {
          "id": "flat-10-browse",
          "shape": "flat",
          "candidates": 10,
          "mode": "browse",
          "schema_in_search": false,
          "context_helpers": 0,
          "response": {
            "compact_json": 225,
            "same_data_toon": 189,
            "json_reduction_percent": -19.05
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 7704,
            "current_json": 3418,
            "same_data_toon": 3371,
            "previous_rounds": 3,
            "current_rounds": 4,
            "combined_reduction_percent": 55.63,
            "json_format_reduction_percent": -1.39
          }
        },
        {
          "id": "nested-10-browse",
          "shape": "nested",
          "candidates": 10,
          "mode": "browse",
          "schema_in_search": false,
          "context_helpers": 0,
          "response": {
            "compact_json": 225,
            "same_data_toon": 189,
            "json_reduction_percent": -19.05
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 10387,
            "current_json": 3620,
            "same_data_toon": 3611,
            "previous_rounds": 3,
            "current_rounds": 4,
            "combined_reduction_percent": 65.15,
            "json_format_reduction_percent": -0.25
          }
        },
        {
          "id": "github-list-tags",
          "shape": "nested",
          "candidates": 1,
          "mode": "example",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 128,
            "same_data_toon": 147,
            "json_reduction_percent": 12.93
          },
          "same_value_as_historical": true
        },
        {
          "id": "github-context-helper",
          "shape": "flat",
          "candidates": 1,
          "mode": "context",
          "schema_in_search": true,
          "context_helpers": 1,
          "response": {
            "compact_json": 80,
            "same_data_toon": 88,
            "json_reduction_percent": 9.09
          }
        }
      ],
      "initial_context": [
        {
          "shape": "flat",
          "catalog_tools": 100,
          "helper_count": 4,
          "eager": 10022,
          "discovery": 544,
          "reduction_percent": 94.57
        },
        {
          "shape": "nested",
          "catalog_tools": 100,
          "helper_count": 4,
          "eager": 18622,
          "discovery": 544,
          "reduction_percent": 97.08
        }
      ]
    },
    "cl100k_base": {
      "cases": [
        {
          "id": "flat-1",
          "shape": "flat",
          "candidates": 1,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 93,
            "same_data_toon": 116,
            "json_reduction_percent": 19.83
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 2622,
            "current_json": 1995,
            "same_data_toon": 2029,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 23.91,
            "json_format_reduction_percent": 1.68
          }
        },
        {
          "id": "flat-2",
          "shape": "flat",
          "candidates": 2,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 189,
            "same_data_toon": 245,
            "json_reduction_percent": 22.86
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 3164,
            "current_json": 2223,
            "same_data_toon": 2305,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 29.74,
            "json_format_reduction_percent": 3.56
          }
        },
        {
          "id": "flat-5",
          "shape": "flat",
          "candidates": 5,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 185,
            "same_data_toon": 225,
            "json_reduction_percent": 17.78
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 4846,
            "current_json": 2191,
            "same_data_toon": 2261,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 54.79,
            "json_format_reduction_percent": 3.1
          }
        },
        {
          "id": "flat-10",
          "shape": "flat",
          "candidates": 10,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 295,
            "same_data_toon": 350,
            "json_reduction_percent": 15.71
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 7687,
            "current_json": 2421,
            "same_data_toon": 2531,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 68.51,
            "json_format_reduction_percent": 4.35
          }
        },
        {
          "id": "nested-1",
          "shape": "nested",
          "candidates": 1,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 175,
            "same_data_toon": 222,
            "json_reduction_percent": 21.17
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 2884,
            "current_json": 2197,
            "same_data_toon": 2269,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 23.82,
            "json_format_reduction_percent": 3.17
          }
        },
        {
          "id": "nested-2",
          "shape": "nested",
          "candidates": 2,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 353,
            "same_data_toon": 457,
            "json_reduction_percent": 22.76
          },
          "same_value_as_historical": false,
          "sequence": {
            "previous": 3718,
            "current_json": 2627,
            "same_data_toon": 2785,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 29.34,
            "json_format_reduction_percent": 5.67
          }
        },
        {
          "id": "nested-5",
          "shape": "nested",
          "candidates": 5,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 267,
            "same_data_toon": 331,
            "json_reduction_percent": 19.34
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 6190,
            "current_json": 2393,
            "same_data_toon": 2501,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 61.34,
            "json_format_reduction_percent": 4.32
          }
        },
        {
          "id": "nested-10",
          "shape": "nested",
          "candidates": 10,
          "mode": "focused",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 377,
            "same_data_toon": 456,
            "json_reduction_percent": 17.32
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 10362,
            "current_json": 2623,
            "same_data_toon": 2771,
            "previous_rounds": 3,
            "current_rounds": 3,
            "combined_reduction_percent": 74.69,
            "json_format_reduction_percent": 5.34
          }
        },
        {
          "id": "flat-10-browse",
          "shape": "flat",
          "candidates": 10,
          "mode": "browse",
          "schema_in_search": false,
          "context_helpers": 0,
          "response": {
            "compact_json": 224,
            "same_data_toon": 189,
            "json_reduction_percent": -18.52
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 7683,
            "current_json": 3388,
            "same_data_toon": 3341,
            "previous_rounds": 3,
            "current_rounds": 4,
            "combined_reduction_percent": 55.9,
            "json_format_reduction_percent": -1.41
          }
        },
        {
          "id": "nested-10-browse",
          "shape": "nested",
          "candidates": 10,
          "mode": "browse",
          "schema_in_search": false,
          "context_helpers": 0,
          "response": {
            "compact_json": 224,
            "same_data_toon": 189,
            "json_reduction_percent": -18.52
          },
          "same_value_as_historical": true,
          "sequence": {
            "previous": 10358,
            "current_json": 3590,
            "same_data_toon": 3581,
            "previous_rounds": 3,
            "current_rounds": 4,
            "combined_reduction_percent": 65.34,
            "json_format_reduction_percent": -0.25
          }
        },
        {
          "id": "github-list-tags",
          "shape": "nested",
          "candidates": 1,
          "mode": "example",
          "schema_in_search": true,
          "context_helpers": 0,
          "response": {
            "compact_json": 120,
            "same_data_toon": 146,
            "json_reduction_percent": 17.81
          },
          "same_value_as_historical": true
        },
        {
          "id": "github-context-helper",
          "shape": "flat",
          "candidates": 1,
          "mode": "context",
          "schema_in_search": true,
          "context_helpers": 1,
          "response": {
            "compact_json": 77,
            "same_data_toon": 87,
            "json_reduction_percent": 11.49
          }
        }
      ],
      "initial_context": [
        {
          "shape": "flat",
          "catalog_tools": 100,
          "helper_count": 4,
          "eager": 9719,
          "discovery": 538,
          "reduction_percent": 94.46
        },
        {
          "shape": "nested",
          "catalog_tools": 100,
          "helper_count": 4,
          "eager": 17919,
          "discovery": 538,
          "reduction_percent": 97.0
        }
      ]
    }
  }
}
