{
  "protocol": "Semantic layer evaluation, round 3: the same agents on questions written blind (second author)",
  "declared_at": "2026-10-24T18:11:10.603342+00:00",
  "status": "Frozen before the pilot and before any final collection on these questions, under amendment 3 (evals/blind-amendment-3.json, sha256 ee1d9325e6457b5ab63fb3980fba45c1152930a1df9ec03a0c76eddf10a96fd7). It replaces the first set of blind questions, which is withdrawn from the published results. Design: DESIGN-blind.md, with amendments 1 and 3. Rounds 1 and 2 are unchanged.",
  "question": "Per model, is the layer minus SQL accuracy gap on questions written by an independent author who never saw the layer, the prompts or the earlier questions the same as on the 55 published questions? Where does it break, and is the scoring valid on questions it was not built around?",
  "questions": {
    "ids": [
      "B01",
      "B02",
      "B03",
      "B04",
      "B05",
      "B06",
      "B07",
      "B08",
      "B09",
      "B10",
      "B11",
      "B12",
      "B13",
      "B14",
      "B15",
      "B16",
      "B17",
      "B18",
      "B19",
      "B20",
      "B21",
      "B22",
      "B23",
      "B24",
      "B25",
      "B26",
      "B27",
      "B28",
      "B29",
      "B30",
      "B31",
      "B32",
      "B33",
      "B34",
      "B35",
      "B36",
      "B37",
      "B38",
      "B39",
      "B40"
    ],
    "count": 40,
    "file": "evals/blind2-questions.json",
    "file_sha256": "6f6cc15a64a4fee7016df1afcd765bc406566c3e51503bc30dfe2591f66f5b69",
    "author": "A second independent author, not one of the four models tested, given exactly the same inputs, instructions and output format as the first author; it never saw the layer, the metric definitions, the prompts, the earlier questions or any data rows; run once, no commands. Its run record is kept with the private files.",
    "excluded": []
  },
  "keys": {
    "file": "evals/blind2-keys.json",
    "file_sha256": "0bc8c95a50be096311387c08c659f9556fdd72bec5217c46efa9b44deab9285e",
    "written": "question text alone, before the second author readings were opened",
    "covered_by_the_layer": 9,
    "not_covered": 31
  },
  "readings": {
    "file": "evals/blind2-agreement.json",
    "file_sha256": "f385778d852d90be5728c764f07f6bbf06e912d9bef5247bc78fff5ee32f31f9",
    "agreed": 40,
    "differ": 0,
    "translations_that_are_the_key_query": 40
  },
  "data_hash": "539fdd3bd674e13e22e039e1d0e990fa4e3e6ed772676b1ae67e4b14d87b14cc",
  "arms": {
    "same_as": "evals/run3-protocol.json",
    "run3_protocol_sha256": "913ce16ae35b4582326349f2c03c5f7e64819ef8acb144f20dc1ae806f0ab5a4",
    "check": "system prompts, Codex prompt prefixes and tool definitions asserted byte-identical to round 2 at freeze time; the agents.py bytes are pinned below",
    "sql": {
      "tools": [
        "run_sql"
      ]
    },
    "layer": {
      "tools": [
        "run_sql",
        "query_metrics"
      ]
    }
  },
  "models": [
    {
      "model": "claude-sonnet-5-5",
      "family": "Claude",
      "size": "larger",
      "surface": "the model provider's API, round 2's manual tool loop",
      "effort": "medium",
      "thinking": "adaptive (the model default; not configurable off on this model)",
      "max_tokens": 8000,
      "prices_usd_per_million": {
        "input": 2.0,
        "output": 10.0,
        "cache_write": 2.5,
        "cache_read": 0.2
      },
      "reserve_usd_per_run": 0.4
    },
    {
      "model": "claude-haiku-5-5",
      "family": "Claude",
      "size": "smaller",
      "surface": "the model provider's API, round 2's manual tool loop",
      "effort": "medium",
      "thinking": "adaptive (the model default)",
      "max_tokens": 8000,
      "prices_usd_per_million": {
        "input": 0.1,
        "output": 0.5,
        "cache_write": 0.125,
        "cache_read": 0.01
      },
      "reserve_usd_per_run": 0.03
    },
    {
      "model": "gpt-6.1-sol",
      "family": "GPT",
      "size": "larger",
      "surface": "codex exec (codex-cli 0.164.0, ChatGPT plan); round 2 used Codex CLI 0.162.1",
      "reasoning_effort": "medium"
    },
    {
      "model": "gpt-6-luna",
      "family": "GPT",
      "size": "smaller",
      "surface": "codex exec (codex-cli 0.164.0, ChatGPT plan); round 2 used Codex CLI 0.162.1",
      "reasoning_effort": "medium"
    }
  ],
  "model_reporting": "Each model is reported on its own. Results are never pooled across models into a mean or median.",
  "surfaces": {
    "provider_api": "The system prompt above, the question as the user message, the tool definitions above. Each run is a fresh conversation. The provider prompt cache is on: it stores the processed prompt prefix to lower cost and does not store or reuse answers. No response is reused across runs.",
    "codex": "codex exec with a clean CODEX_HOME holding only a copy of auth.json, --ephemeral, --ignore-user-config, --ignore-rules, workspace-write sandbox in a fresh directory per run, web search disabled, the arm's prompt (codex_prompt_prefix, then \"Question: \" and the question) on stdin. The tools are two logged wrapper commands in that directory that hand each call to the study's tool server. Any other command Codex runs is recorded per run as a protocol deviation and reported; the run is still scored.",
    "codex_home": "A fresh folder holding only a copy of auth.json before every collection command."
  },
  "runs": {
    "per_question_arm_model": 3,
    "total": 960,
    "order": "Run index outer, then questions in file order, arms alternating first by question."
  },
  "limits": {
    "max_tool_calls": 10,
    "over_limit": "Tool call limit reached (10 calls). Reply now with your final JSON answer. The run is flagged step_limit_hit.",
    "max_assistant_turns": 13,
    "codex_wall_seconds": 600,
    "rows_returned_per_call": 50
  },
  "outcomes": {
    "counted_and_scored_not_correct": [
      "cut_off (output ceiling or Codex wall clock)",
      "no_final_answer",
      "refusal",
      "an answer after the step limit is scored as given; the flag is reported"
    ],
    "method_failures": "provider_error: an API, network, quota or CLI failure. Each gets one declared re-run (--rerun-errors). A run still failing is excluded from accuracy and counted in the report.",
    "never_dropped": "Every run, whatever its status, is kept in cache-blind2/ and counted in the report."
  },
  "labelling_rule": {
    "looked": "A run looked at the data if, before its final answer, it made at least one run_sql call that executed without error and whose FROM or JOIN names trips or daily_trips (the trip tables). Calls that read only zones, calls with LIMIT 0 (schema-only) and calls refused or failed do not count. query_metrics calls do not count as looking: they read the data through the layer. Calls made past the step limit never ran and do not count.",
    "did_not_look": "Every other run.",
    "layer_arm_also": "tools_used (none, run_sql, query_metrics, both) and answer_form (sql, metric_query, clarification, unparsed) for each run."
  },
  "answer_format": {
    "final_message": "One JSON object: {\"sql\": ...}; in the layer arm also a metric query object; or {\"clarification\": ...}.",
    "decode": "The final message with one surrounding markdown code fence removed if present (agents.decode_final), then round 1's json.loads and per-answer rules."
  },
  "scoring": {
    "scorer": "Round 1's score.prepare and portfolio_eval.evaluator.execute_prepared, unchanged, with the frozen tolerance (absolute and relative one millionth, no rounding). A {\"sql\"} answer is scored on round 1's raw SQL path; a metric query answer on round 1's governed path (MetricFlow compile, then the same sandbox). In the sql arm every answer is scored on the raw SQL path. Round 2 amendment 1: SQL the parser cannot tokenize is scored query_denied.",
    "gold": "The frozen key SQL in evals/blind2-keys.json, run in the same sandbox.",
    "primary_decode": "frozen decode; the lenient decode of round 2 is a labelled sensitivity"
  },
  "analysis": {
    "primary": "Per model: layer minus sql accuracy on the agreed blind questions with a question-clustered percentile bootstrap interval (10,000 replicates, seed 7), beside the published gap from results-run3.json recomputed the same way, and the blind minus published difference with an interval from independent resampling of both question sets (10,000 replicates, seed 17).",
    "reading_rule": "A gap is \"layer ahead\" if its interval lies wholly above zero, \"SQL ahead\" if wholly below, and \"no measurable difference\" otherwise. The result held for a model when the blind class equals the published class, and did not hold otherwise. The difference between gaps is \"smaller on blind questions\" or \"larger\" when its interval excludes zero, otherwise \"no measurable change\".",
    "secondary": [
      "The same gap on covered and on not-covered blind questions, with accuracy per arm on each.",
      "Questions whose readings differ: reported separately under both keys (none differ).",
      "Within-group accuracy and the looking share, with round 2 code (descriptive).",
      "Causes of misses by answer status, step-limit, cut-off, no-answer, refusal and provider-error counts.",
      "Latency: median and interquartile range of seconds per run, per arm (Codex runs include CLI start-up).",
      "Safety: tool calls refused as writes (Statement denied, One SELECT is required) or as reads outside the three tables (Relation denied, Namespace denied), final answers that would do either, and Codex commands outside the two tools. Any such query that executed stops the round."
    ],
    "scoring_validity": [
      "Re-score 100 stored round 2 runs (25 per model, seed 11) with the same code; agreement with the published per-run verdicts.",
      "The declared sample of verdicts is left for a person to read; no reading of it is published."
    ]
  },
  "reading_of_outputs": "No reading of outputs is published. The declared sample (per model, 10 runs scored correct and 10 scored not correct, seed 13, all of them when fewer) is left for a person to read (amendment 1, carried over).",
  "pilot": {
    "questions": [
      "B01",
      "B09",
      "B17",
      "B25",
      "B33"
    ],
    "design": "5 questions x 2 arms x 1 run per model, before the final collection",
    "cache": "_private/pilot-cache-blind2/",
    "use": "Cost projection and a harness check only; never scored into the results.",
    "projection_rule": "For each Claude model, projected final cost = mean pilot cost per run x 240 runs. If spend so far (both sets) plus both projections exceeds the cap, stop and report; the design is not trimmed to fit."
  },
  "stopping_rule": "The full plan is collected whatever the interim results. Collection stops early only at the spend cap or on a provider access block, and then reports what was collected.",
  "budget": {
    "cap_usd": 20.0,
    "scope": "All paid calls of round 3 to the Claude models, both sets: probes, pilots, finals and re-runs.",
    "spent_before_this_protocol_usd": 2.182036,
    "rule": "Each run reserves a ceiling (reserve_usd_per_run) before it starts; a run that would take recorded cost plus open reservations past the cap is never started. Recorded cost is computed from the usage the API returned and the list prices above.",
    "ledger": "_private/spend-blind/",
    "openai_models": "Through the ChatGPT plan in the Codex CLI; no per-token charge."
  },
  "outputs": {
    "cache": "cache-blind2/",
    "results": "results-blind2.json",
    "scorer": "score_blind.py",
    "page": "blind-questions.html"
  },
  "file_sha256": {
    "agents.py": "b95f142464c2a8a07ed9f3b78520fc30d8453c4e0321e1d116fac4b9c237ef65",
    "blind.py": "c344e882e1700fe1730f3b1817a2f57a84dc94bd2d2612ea105d8cdaaeb9db43",
    "blind2.py": "39bc9452b22d36b42e88d64d5842d4aff72d6289507cce869e2dd25519d82a74",
    "evals/prompts.json": "2acf2a67e95493c5285f56a7c16e2d46f38ae2219cf1f485a20daf6e012a8a77",
    "metric-contract.json": "49d82fa1cef0307140b7559aad347d820311cc83b632fc4ef1402d4bf4ad93d4",
    "score.py": "b962ca4362e38fdaacad8bfb69b3c2c133cc98864cd7ce6cc9ecab364ca1f3ba",
    "evals/run3-protocol.json": "913ce16ae35b4582326349f2c03c5f7e64819ef8acb144f20dc1ae806f0ab5a4",
    "evals/blind2-questions.json": "6f6cc15a64a4fee7016df1afcd765bc406566c3e51503bc30dfe2591f66f5b69",
    "evals/blind2-keys.json": "0bc8c95a50be096311387c08c659f9556fdd72bec5217c46efa9b44deab9285e",
    "evals/blind2-agreement.json": "f385778d852d90be5728c764f07f6bbf06e912d9bef5247bc78fff5ee32f31f9",
    "evals/blind-amendment-3.json": "ee1d9325e6457b5ab63fb3980fba45c1152930a1df9ec03a0c76eddf10a96fd7",
    "portfolio_eval/contracts.py": "41d78065ff08581e8c20f5e503ffe1e8e10ed77bcdf798f650a28dfb560bf24b",
    "portfolio_eval/evaluator.py": "50d6afcd671fb9d6574398a73f15b6ab9f6da81e23b5cfada0c9aad71551c28a",
    "portfolio_eval/metricflow_adapter.py": "9f390b6d5465bd9e02613c4519b0eb60a673c8420dcdf159027581c955390aa9",
    "portfolio_eval/sandbox.py": "cb96e018071228d769a0cb53ec176edaf77b39c9df3f4073eda22143dadc8e27",
    "portfolio_eval/sql_worker.py": "2129e3c8e32d44706efefdb5c840b9ccdd77a96b8b5d7b6d9aa3c32cde99b2e1",
    "portfolio_eval/inputs.py": "4475f4135c1af756b6515a9a4650aee2090247a6c38d198761a8a89f65277a5c"
  },
  "private_file_sha256": {
    "_private/tools/claude_agents.py": "38a002faa86eb82e9e27be57eb42ebef6cb8e847d5c16608579c937c6d3b481a",
    "_private/tools/claude_agents_blind2.py": "800833b62cac2c645672b72745e0db5fcc812c5e3430036d631cf60de1bec897"
  }
}
