{
  "schema_version": 1,
  "suite_id": "internet-missing-index-interference",
  "title": "Internet domain-owned missing-index interference",
  "issue": "https://github.com/tidbcloud/TiPoC/issues/197",
  "status": "scenario_contract_not_evidence",
  "pr": "https://github.com/tidbcloud/TiPoC/pull/202",
  "purpose": "Compare identical Ride, Food, or Mart business lookups with the exact production index present or omitted while retaining plan, work, latency, and session-RU evidence.",
  "pass_warning": "This file defines runnable case inputs only. It is not live E2E evidence and does not establish an RU acceptance threshold.",
  "operation_id": "internet/platform/missing_index",
  "paired_invariants": [
    "same prepared snapshot_identity",
    "same statement SQL digest",
    "same parameter_digest and page_size",
    "same concurrency, offered QPS, timeout, and stable window",
    "only the exact declared production index state differs"
  ],
  "cases": [
    {"testcase_id": "internet-missing-index-ride", "domain": "ride", "business_case": "consumer ride-order status history", "case_id": "ride_order_history", "index": "i_ride_order_consumer_created", "states": ["indexed", "missing"]},
    {"testcase_id": "internet-missing-index-food", "domain": "food", "business_case": "merchant preparation queue ordered by promised deadline", "case_id": "food_merchant_order_queue", "index": "i_food_order_merchant_state", "states": ["indexed", "missing"]},
    {"testcase_id": "internet-missing-index-mart", "domain": "mart", "business_case": "consumer retail-order fulfillment history", "case_id": "mart_order_history", "index": "i_mart_order_consumer_created", "states": ["indexed", "missing"]}
  ],
  "required_evidence": [
    "prepared exact index name and ordered columns",
    "real bound business parameters and parameter digest",
    "indexed and missing EXPLAIN ANALYZE operators",
    "full-scan actual-row work amplification",
    "worker latency and session-RU observations",
    "schedule and error counters",
    "exact cleanup restoration proof"
  ],
  "pass_conditions": [
    "every selected case has at least one successful worker sample",
    "missing state proves TableFullScan without an equivalent expected index",
    "missing actual-row work is greater than indexed actual-row work",
    "cleanup restores and verifies every exact production index"
  ]
}
