{
  "protocol": "Semantic layer evaluation, round 2: agents with tools",
  "declared_at": "2026-10-22T23:08:07.398851+00:00",
  "status": "Frozen before the pilot and before any final collection. Round 1 files, caches, results and published numbers are unchanged.",
  "question": "On the 55 analytical questions of the published page, does the semantic layer help agents that answer without looking at the data, and hurt agents that query the data first? This tests whether an effect reported for data agents (a semantic layer stops investigating agents from looking; Same Context, Different Agents, arXiv 2610.20959) appears here. No direction is claimed in advance.",
  "questions": {
    "ids": [
      "Q01",
      "Q02",
      "Q03",
      "Q04",
      "Q05",
      "Q06",
      "Q07",
      "Q08",
      "Q09",
      "Q10",
      "Q11",
      "Q12",
      "Q13",
      "Q14",
      "Q15",
      "Q16",
      "Q17",
      "Q18",
      "Q19",
      "Q20",
      "Q21",
      "Q22",
      "Q23",
      "Q24",
      "Q25",
      "Q26",
      "Q27",
      "Q28",
      "Q29",
      "Q30",
      "Q31",
      "Q32",
      "Q33",
      "Q34",
      "Q35",
      "Q36",
      "Q37",
      "Q38",
      "Q39",
      "Q40",
      "Q41",
      "Q42",
      "Q43",
      "Q44",
      "Q45",
      "Q46",
      "Q47",
      "Q48",
      "Q49",
      "Q50",
      "Q51",
      "Q52",
      "Q53",
      "Q54",
      "Q55"
    ],
    "count": 55,
    "source": "evals/questions.json, answer_type not clarification",
    "questions_file_sha256": "4e5c8e371f403217013c1e36c8f9d818daee9e4e047eda08944e02bc741b3d01"
  },
  "data_hash": "539fdd3bd674e13e22e039e1d0e990fa4e3e6ed772676b1ae67e4b14d87b14cc",
  "arms": {
    "sql": {
      "tools": [
        "run_sql"
      ],
      "system_prompt": "You are a data analyst. Answer the user's analytical question about a public mobility sample: Chicago rideshare trips from January 2024. Use the tools as you see fit. Never guess unavailable business quantities. Follow the requested output column order. Dates are published Chicago civil dates. The sample covers January 2024; do not extrapolate to all Chicago trips. SQL NULL is missing, not zero.\n\nSchema:\ntrips(trip_id VARCHAR, trip_date DATE, trip_seconds DOUBLE, trip_miles DOUBLE, pickup_zone_id INTEGER, dropoff_zone_id INTEGER, fare DOUBLE, tip DOUBLE, additional_charges DOUBLE, trip_total DOUBLE, shared_trip_authorized BOOLEAN, shared_trip_match BOOLEAN, loaded_at TIMESTAMP)\nzones(zone_id INTEGER, zone_name VARCHAR)\ndaily_trips(trip_date DATE, pickup_zone_id INTEGER, trip_count BIGINT, total_fare DOUBLE, nonmissing_fares BIGINT, total_miles DOUBLE, total_seconds DOUBLE, shared_matched_count BIGINT)\n\nTools:\n- run_sql: runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.\n\nFinal answer: when you are done, reply with one JSON object and nothing else, with no markdown: {\"sql\": \"one DuckDB SELECT statement whose result answers the question\"}. The answer is scored by running the query you give and comparing its result with a checked answer. If the question lacks a definition or requires unavailable data, reply {\"clarification\": \"a specific question or explanation of the missing information\"} instead.",
      "tool_definitions": [
        {
          "name": "run_sql",
          "description": "runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.",
          "input_schema": {
            "type": "object",
            "properties": {
              "sql": {
                "type": "string",
                "description": "One DuckDB SELECT statement."
              }
            },
            "required": [
              "sql"
            ],
            "additionalProperties": false
          }
        }
      ],
      "codex_prompt_prefix": "You are a data analyst. Answer the user's analytical question about a public mobility sample: Chicago rideshare trips from January 2024. Use the tools as you see fit. Never guess unavailable business quantities. Follow the requested output column order. Dates are published Chicago civil dates. The sample covers January 2024; do not extrapolate to all Chicago trips. SQL NULL is missing, not zero.\n\nSchema:\ntrips(trip_id VARCHAR, trip_date DATE, trip_seconds DOUBLE, trip_miles DOUBLE, pickup_zone_id INTEGER, dropoff_zone_id INTEGER, fare DOUBLE, tip DOUBLE, additional_charges DOUBLE, trip_total DOUBLE, shared_trip_authorized BOOLEAN, shared_trip_match BOOLEAN, loaded_at TIMESTAMP)\nzones(zone_id INTEGER, zone_name VARCHAR)\ndaily_trips(trip_date DATE, pickup_zone_id INTEGER, trip_count BIGINT, total_fare DOUBLE, nonmissing_fares BIGINT, total_miles DOUBLE, total_seconds DOUBLE, shared_matched_count BIGINT)\n\nTools. They are commands in the current directory; pass the input as one quoted argument, for example ./run_sql 'SELECT 1'. Use no other commands, files or programs.\n- ./run_sql: runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.\n\nFinal answer: when you are done, reply with one JSON object and nothing else, with no markdown: {\"sql\": \"one DuckDB SELECT statement whose result answers the question\"}. The answer is scored by running the query you give and comparing its result with a checked answer. If the question lacks a definition or requires unavailable data, reply {\"clarification\": \"a specific question or explanation of the missing information\"} instead."
    },
    "layer": {
      "tools": [
        "run_sql",
        "query_metrics"
      ],
      "system_prompt": "You are a data analyst. Answer the user's analytical question about a public mobility sample: Chicago rideshare trips from January 2024. Use the tools as you see fit. Never guess unavailable business quantities. Follow the requested output column order. Dates are published Chicago civil dates. The sample covers January 2024; do not extrapolate to all Chicago trips. SQL NULL is missing, not zero.\n\nSchema:\ntrips(trip_id VARCHAR, trip_date DATE, trip_seconds DOUBLE, trip_miles DOUBLE, pickup_zone_id INTEGER, dropoff_zone_id INTEGER, fare DOUBLE, tip DOUBLE, additional_charges DOUBLE, trip_total DOUBLE, shared_trip_authorized BOOLEAN, shared_trip_match BOOLEAN, loaded_at TIMESTAMP)\nzones(zone_id INTEGER, zone_name VARCHAR)\ndaily_trips(trip_date DATE, pickup_zone_id INTEGER, trip_count BIGINT, total_fare DOUBLE, nonmissing_fares BIGINT, total_miles DOUBLE, total_seconds DOUBLE, shared_matched_count BIGINT)\n\nTools:\n- run_sql: runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.\n- query_metrics: runs a metric query through the semantic layer (metrics and dimensions defined once in the metric contract below and compiled by MetricFlow) and returns the column names, the row count and up to 50 rows. Input: {\"metrics\":[\"metric_name\"],\"group_by\":[\"dimension_name\"],\"filters\":[{\"dimension\":\"dimension_name\",\"operator\":\"=\",\"value\":\"literal\"}],\"order_by\":[\"dimension_name\"]}. Omit empty lists if desired. Filters support =, !=, >=, <=, >, < with string or boolean values; all filters are combined with AND. Use trip__trip_date for date filters and metric_time for daily grouping. Grouping columns precede metric columns; their list order is preserved. order_by names must be selected metrics or dimensions; prefix a name with - for descending order. These are the only supported query fields.\nMetric contract:\n{\"as_of\": \"2024-02-02T00:00:00\", \"data\": \"Chicago TNP January 2024 deterministic 10000-trip convenience sample\", \"dimensions\": [\"metric_time\", \"trip__trip_date\", \"trip__shared_trip_authorized\", \"trip__shared_trip_match\", \"pickup_zone__zone_name\", \"dropoff_zone__zone_name\"], \"freshness_assumption\": \"Simulated arrival is trip_date + 1 day. This is an operational fixture, not observed delivery latency.\", \"grain\": \"One retained source trip\", \"joins\": {\"dropoff_zone\": \"trips.dropoff_zone_id = zones.zone_id, many-to-one\", \"pickup_zone\": \"trips.pickup_zone_id = zones.zone_id, many-to-one\"}, \"metrics\": [{\"aggregation\": \"count\", \"definition\": \"Every retained source row, including missing fare records.\", \"expression\": \"trip_id\", \"label\": \"Recorded sampled trips\", \"name\": \"trip_count\", \"unit\": \"trips\"}, {\"aggregation\": \"sum\", \"definition\": \"Excludes NULL fares; fares are publisher-rounded, not profit or exact receipts.\", \"expression\": \"fare\", \"label\": \"Sum of published fares\", \"name\": \"total_fare\", \"unit\": \"USD\"}, {\"aggregation\": \"average\", \"definition\": \"Excludes NULL fares from numerator and denominator.\", \"expression\": \"fare\", \"label\": \"Mean published fare\", \"name\": \"mean_fare\", \"unit\": \"USD per nonmissing fare\"}, {\"aggregation\": \"sum\", \"definition\": \"Reported trip distance, including travel outside Chicago.\", \"expression\": \"trip_miles\", \"label\": \"Total trip miles\", \"name\": \"total_miles\", \"unit\": \"miles\"}, {\"aggregation\": \"average\", \"definition\": \"Excludes NULL distances.\", \"expression\": \"trip_miles\", \"label\": \"Mean trip miles\", \"name\": \"mean_miles\", \"unit\": \"miles per nonmissing distance\"}, {\"aggregation\": \"average\", \"definition\": \"Uses duration field, not the difference between rounded timestamps.\", \"expression\": \"trip_seconds / 60.0\", \"label\": \"Mean trip duration\", \"name\": \"mean_duration_minutes\", \"unit\": \"minutes\"}, {\"aggregation\": \"sum\", \"definition\": \"Cash tips are absent; publisher rounds noncash tips.\", \"expression\": \"tip\", \"label\": \"Sum of published noncash tips\", \"name\": \"total_tips\", \"unit\": \"USD\"}, {\"aggregation\": \"sum\", \"definition\": \"Consent to share does not imply a match.\", \"expression\": \"case when shared_trip_authorized then 1 else 0 end\", \"label\": \"Trips with sharing authorized\", \"name\": \"shared_authorized_count\", \"unit\": \"trips\"}, {\"aggregation\": \"sum\", \"definition\": \"Uses the publisher matched field even when authorization disagrees.\", \"expression\": \"case when shared_trip_match then 1 else 0 end\", \"label\": \"Trips actually matched for sharing\", \"name\": \"shared_matched_count\", \"unit\": \"trips\"}, {\"aggregation\": \"ratio\", \"definition\": \"Matched trip count divided by all retained trips, including inconsistent authorization records.\", \"expression\": null, \"label\": \"Share of trips actually matched\", \"name\": \"shared_match_rate\", \"unit\": \"fraction\"}], \"missingness\": \"NULL fares/tips remain NULL. Missing area codes map to explicitly labeled zone 0. No complete-case deletion.\", \"outliers\": \"Retain all valid nonnegative reported duration, distance and money values; no outcome-driven trimming.\", \"timezone\": \"Published civil date, treated as America/Chicago; no timestamp-to-UTC conversion\", \"version\": \"1.0.0\"}\n\nFinal answer: when you are done, reply with one JSON object and nothing else, with no markdown: {\"sql\": \"one DuckDB SELECT statement whose result answers the question\"}, or a metric query object in the query_metrics input format, {\"metrics\": [...], \"group_by\": [...], \"filters\": [...], \"order_by\": [...]}, whose result answers the question. The answer is scored by running the query you give and comparing its result with a checked answer. If the question lacks a definition or requires unavailable data, reply {\"clarification\": \"a specific question or explanation of the missing information\"} instead.",
      "tool_definitions": [
        {
          "name": "run_sql",
          "description": "runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.",
          "input_schema": {
            "type": "object",
            "properties": {
              "sql": {
                "type": "string",
                "description": "One DuckDB SELECT statement."
              }
            },
            "required": [
              "sql"
            ],
            "additionalProperties": false
          }
        },
        {
          "name": "query_metrics",
          "description": "Runs a metric query through the semantic layer described in the system prompt.",
          "input_schema": {
            "type": "object",
            "properties": {
              "metrics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "group_by": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "filters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dimension": {
                      "type": "string"
                    },
                    "operator": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "string",
                        "boolean"
                      ]
                    }
                  }
                }
              },
              "order_by": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "metrics"
            ]
          }
        }
      ],
      "codex_prompt_prefix": "You are a data analyst. Answer the user's analytical question about a public mobility sample: Chicago rideshare trips from January 2024. Use the tools as you see fit. Never guess unavailable business quantities. Follow the requested output column order. Dates are published Chicago civil dates. The sample covers January 2024; do not extrapolate to all Chicago trips. SQL NULL is missing, not zero.\n\nSchema:\ntrips(trip_id VARCHAR, trip_date DATE, trip_seconds DOUBLE, trip_miles DOUBLE, pickup_zone_id INTEGER, dropoff_zone_id INTEGER, fare DOUBLE, tip DOUBLE, additional_charges DOUBLE, trip_total DOUBLE, shared_trip_authorized BOOLEAN, shared_trip_match BOOLEAN, loaded_at TIMESTAMP)\nzones(zone_id INTEGER, zone_name VARCHAR)\ndaily_trips(trip_date DATE, pickup_zone_id INTEGER, trip_count BIGINT, total_fare DOUBLE, nonmissing_fares BIGINT, total_miles DOUBLE, total_seconds DOUBLE, shared_matched_count BIGINT)\n\nTools. They are commands in the current directory; pass the input as one quoted argument, for example ./run_sql 'SELECT 1' or ./query_metrics '{\"metrics\":[\"trip_count\"]}'. Use no other commands, files or programs.\n- ./run_sql: runs one DuckDB SELECT statement on the tables trips, zones and daily_trips and returns the column names, the row count and up to 50 rows. It accepts ordinary SELECT, joins, WHERE, GROUP BY, ORDER BY, LIMIT and common table expressions with SUM, AVG, COUNT, MIN, MAX, ROUND, ABS, COALESCE, NULLIF, CAST, TRY_CAST, CASE, DATE_TRUNC, EXTRACT, STRFTIME, DATE, YEAR, MONTH, DAY or DAY_OF_WEEK. Other functions, external readers, extensions, writes, other tables, recursion and multiple statements are refused with an error.\n- ./query_metrics: runs a metric query through the semantic layer (metrics and dimensions defined once in the metric contract below and compiled by MetricFlow) and returns the column names, the row count and up to 50 rows. Input: {\"metrics\":[\"metric_name\"],\"group_by\":[\"dimension_name\"],\"filters\":[{\"dimension\":\"dimension_name\",\"operator\":\"=\",\"value\":\"literal\"}],\"order_by\":[\"dimension_name\"]}. Omit empty lists if desired. Filters support =, !=, >=, <=, >, < with string or boolean values; all filters are combined with AND. Use trip__trip_date for date filters and metric_time for daily grouping. Grouping columns precede metric columns; their list order is preserved. order_by names must be selected metrics or dimensions; prefix a name with - for descending order. These are the only supported query fields.\nMetric contract:\n{\"as_of\": \"2024-02-02T00:00:00\", \"data\": \"Chicago TNP January 2024 deterministic 10000-trip convenience sample\", \"dimensions\": [\"metric_time\", \"trip__trip_date\", \"trip__shared_trip_authorized\", \"trip__shared_trip_match\", \"pickup_zone__zone_name\", \"dropoff_zone__zone_name\"], \"freshness_assumption\": \"Simulated arrival is trip_date + 1 day. This is an operational fixture, not observed delivery latency.\", \"grain\": \"One retained source trip\", \"joins\": {\"dropoff_zone\": \"trips.dropoff_zone_id = zones.zone_id, many-to-one\", \"pickup_zone\": \"trips.pickup_zone_id = zones.zone_id, many-to-one\"}, \"metrics\": [{\"aggregation\": \"count\", \"definition\": \"Every retained source row, including missing fare records.\", \"expression\": \"trip_id\", \"label\": \"Recorded sampled trips\", \"name\": \"trip_count\", \"unit\": \"trips\"}, {\"aggregation\": \"sum\", \"definition\": \"Excludes NULL fares; fares are publisher-rounded, not profit or exact receipts.\", \"expression\": \"fare\", \"label\": \"Sum of published fares\", \"name\": \"total_fare\", \"unit\": \"USD\"}, {\"aggregation\": \"average\", \"definition\": \"Excludes NULL fares from numerator and denominator.\", \"expression\": \"fare\", \"label\": \"Mean published fare\", \"name\": \"mean_fare\", \"unit\": \"USD per nonmissing fare\"}, {\"aggregation\": \"sum\", \"definition\": \"Reported trip distance, including travel outside Chicago.\", \"expression\": \"trip_miles\", \"label\": \"Total trip miles\", \"name\": \"total_miles\", \"unit\": \"miles\"}, {\"aggregation\": \"average\", \"definition\": \"Excludes NULL distances.\", \"expression\": \"trip_miles\", \"label\": \"Mean trip miles\", \"name\": \"mean_miles\", \"unit\": \"miles per nonmissing distance\"}, {\"aggregation\": \"average\", \"definition\": \"Uses duration field, not the difference between rounded timestamps.\", \"expression\": \"trip_seconds / 60.0\", \"label\": \"Mean trip duration\", \"name\": \"mean_duration_minutes\", \"unit\": \"minutes\"}, {\"aggregation\": \"sum\", \"definition\": \"Cash tips are absent; publisher rounds noncash tips.\", \"expression\": \"tip\", \"label\": \"Sum of published noncash tips\", \"name\": \"total_tips\", \"unit\": \"USD\"}, {\"aggregation\": \"sum\", \"definition\": \"Consent to share does not imply a match.\", \"expression\": \"case when shared_trip_authorized then 1 else 0 end\", \"label\": \"Trips with sharing authorized\", \"name\": \"shared_authorized_count\", \"unit\": \"trips\"}, {\"aggregation\": \"sum\", \"definition\": \"Uses the publisher matched field even when authorization disagrees.\", \"expression\": \"case when shared_trip_match then 1 else 0 end\", \"label\": \"Trips actually matched for sharing\", \"name\": \"shared_matched_count\", \"unit\": \"trips\"}, {\"aggregation\": \"ratio\", \"definition\": \"Matched trip count divided by all retained trips, including inconsistent authorization records.\", \"expression\": null, \"label\": \"Share of trips actually matched\", \"name\": \"shared_match_rate\", \"unit\": \"fraction\"}], \"missingness\": \"NULL fares/tips remain NULL. Missing area codes map to explicitly labeled zone 0. No complete-case deletion.\", \"outliers\": \"Retain all valid nonnegative reported duration, distance and money values; no outcome-driven trimming.\", \"timezone\": \"Published civil date, treated as America/Chicago; no timestamp-to-UTC conversion\", \"version\": \"1.0.0\"}\n\nFinal answer: when you are done, reply with one JSON object and nothing else, with no markdown: {\"sql\": \"one DuckDB SELECT statement whose result answers the question\"}, or a metric query object in the query_metrics input format, {\"metrics\": [...], \"group_by\": [...], \"filters\": [...], \"order_by\": [...]}, whose result answers the question. The answer is scored by running the query you give and comparing its result with a checked answer. If the question lacks a definition or requires unavailable data, reply {\"clarification\": \"a specific question or explanation of the missing information\"} instead."
    },
    "same_in_both": "Question text, system prompt apart from the tool list and the answer forms that follow from it, step limit and answer format.",
    "tool_backend": "run_sql runs through round 1's validated, network-less SQL sandbox. query_metrics compiles through round 1's MetricFlow adapter and runs the compiled SQL in the same sandbox. Each returns column names, the row count and up to 50 rows as JSON, or an error. A failed query reports the database error type only (round 1's sandbox withholds messages)."
  },
  "models": [
    {
      "model": "claude-sonnet-5-5",
      "family": "Claude",
      "size": "larger",
      "surface": "Messages API, 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": "Messages API, 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.162.1, ChatGPT plan)",
      "reasoning_effort": "medium"
    },
    {
      "model": "gpt-6-luna",
      "family": "GPT",
      "size": "smaller",
      "surface": "codex exec (Codex CLI 0.162.1, ChatGPT plan)",
      "reasoning_effort": "medium"
    }
  ],
  "model_reporting": "Each model is reported on its own, grouped by family. Results are never pooled across models into a mean or median.",
  "surfaces": {
    "messages_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."
  },
  "runs": {
    "per_question_arm_model": 3,
    "total": 1320,
    "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_messages_api": 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-run3/ 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.",
    "gold": "Round 1's gold SQL on the same database."
  },
  "analysis": {
    "per_model": [
      "Accuracy by arm within the looked and the did-not-look group, with group sizes (runs and distinct questions).",
      "An interval for each of those accuracies.",
      "Layer minus sql accuracy within each group, with an interval.",
      "The share of runs that looked, by arm, and layer minus sql, with an interval (does the layer stop looking).",
      "Overall accuracy by arm, with the layer minus sql difference and interval.",
      "Step-limit, cut-off, no-answer, refusal and provider-error counts by arm."
    ],
    "interval": "Question-clustered percentile bootstrap: resample the questions with replacement (10,000 replicates, seed 7) and keep every run of a drawn question; an accuracy is correct runs over runs in the resample. For a within-group difference both arms use the same drawn questions; replicates in which a cell is empty are skipped and counted.",
    "minimum_for_the_paper_comparison": "A within-group comparison is reported only when each arm's cell in that group holds at least 30 runs from at least 10 distinct questions. Otherwise the page says the group is too small to compare.",
    "reading_rule": "The paper's effect appears for a model when (a) the layer arm looks less (looking-share difference with an interval wholly below zero) and (b) within the looked group, layer minus sql accuracy has an interval wholly below zero. One of the two alone is partial. An interval that includes zero is \"no measurable difference at this size\". Groups are formed after treatment (the arm can change who looks), so within-group differences are descriptive, not causal."
  },
  "pilot": {
    "questions": [
      "Q01",
      "Q12",
      "Q23",
      "Q34",
      "Q45"
    ],
    "design": "5 questions x 2 arms x 1 run per model, before the final collection",
    "cache": "_private/pilot-cache-run3/",
    "use": "Cost projection and a harness check only; pilot runs are never scored into the results.",
    "projection_rule": "For each Claude model, projected final cost = mean pilot cost per run x 330 runs. If spend so far plus both projections exceeds the cap, stop and report; the design is not trimmed to fit."
  },
  "budget": {
    "cap_usd": 20.0,
    "scope": "All paid calls of this round to the Claude models: harness checks, pilot, final and re-runs.",
    "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.",
    "harness_checks_before_freeze_usd": 0.011019,
    "openai_models": "Through the ChatGPT plan in the Codex CLI; no per-token charge."
  },
  "outputs": {
    "cache": "cache-run3/",
    "results": "results-run3.json",
    "scorer": "score_run3.py",
    "page": "agents-with-tools.html"
  },
  "file_sha256": {
    "agents.py": "00661d546e27c459776203e0815b219ed770ce703aa995da1e1afb91e57d604a",
    "evals/questions.json": "4e5c8e371f403217013c1e36c8f9d818daee9e4e047eda08944e02bc741b3d01",
    "evals/prompts.json": "2acf2a67e95493c5285f56a7c16e2d46f38ae2219cf1f485a20daf6e012a8a77",
    "metric-contract.json": "49d82fa1cef0307140b7559aad347d820311cc83b632fc4ef1402d4bf4ad93d4",
    "score.py": "b962ca4362e38fdaacad8bfb69b3c2c133cc98864cd7ce6cc9ecab364ca1f3ba",
    "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": "aee8170d9ae24995f80c8952740d9b7966c5fdf8f5f964a62451ddd23b417e1a"
  }
}
