{
  "side": "before",
  "sha": "8edefc8818aed1222428af5cf4d92df3bf566689",
  "environment": "Linux x86_64; Node 26.13.1; SQLite 3.54.1",
  "measurements": [
    {
      "completed": 1000,
      "running": 1,
      "groups": [
        {
          "statementMs": [
            0.174838,
            0.113423,
            0.153708,
            0.108063,
            0.156813,
            0.152938,
            0.1654,
            0.162725,
            0.160931,
            0.169299,
            0.155423,
            0.167935,
            0.159911,
            0.171101,
            0.172875,
            0.127388,
            0.160251,
            0.171992,
            0.195217,
            0.116488,
            0.147797
          ],
          "vmSteps": [
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179
          ],
          "medianMs": 0.160251,
          "httpMs": [
            6.596778,
            3.269244,
            5.042601,
            3.307786,
            3.687519,
            14.700844,
            4.735386,
            3.306425,
            3.335308,
            3.018013,
            3.185286,
            3.148608,
            3.247584,
            3.266038,
            3.479448,
            2.97361,
            3.153998,
            3.808076,
            3.651642,
            2.811435,
            3.357529
          ],
          "httpMedianMs": 3.307786
        },
        {
          "statementMs": [
            0.142287,
            0.142877,
            0.105149,
            0.163227,
            0.154489,
            0.15965,
            0.161113,
            0.147686,
            0.158347,
            0.136988,
            0.157255,
            0.140654,
            0.15475,
            0.153498,
            0.166031,
            0.107571,
            0.115948,
            0.103213,
            0.179357,
            0.111469,
            0.118101
          ],
          "vmSteps": [
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179
          ],
          "medianMs": 0.147686,
          "httpMs": [
            2.833847,
            2.901424,
            3.244117,
            3.105688,
            3.392505,
            3.242554,
            3.688512,
            6.706815,
            3.57059,
            3.437891,
            3.733035,
            3.194564,
            3.456095,
            3.31457,
            3.648056,
            3.731573,
            3.538189,
            3.622156,
            3.951073,
            3.496371,
            3.424867
          ],
          "httpMedianMs": 3.456095
        },
        {
          "statementMs": [
            0.108684,
            0.137618,
            0.180719,
            0.104406,
            0.188143,
            0.200175,
            0.206828,
            0.186349,
            0.197209,
            0.183474,
            0.183393,
            0.177423,
            0.177343,
            0.205826,
            0.189155,
            0.173435,
            0.167714,
            0.170871,
            0.154569,
            0.263395,
            0.160752
          ],
          "vmSteps": [
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179
          ],
          "medianMs": 0.180719,
          "httpMs": [
            3.706486,
            3.700633,
            3.868829,
            8.72409,
            9.533728,
            4.554887,
            4.054037,
            4.245997,
            4.171167,
            4.054038,
            4.233233,
            4.144808,
            4.249894,
            8.917823,
            8.293241,
            7.474956,
            6.818834,
            5.965944,
            5.899759,
            6.643025,
            7.113929
          ],
          "httpMedianMs": 4.554887
        },
        {
          "statementMs": [
            0.200175,
            0.237505,
            0.247284,
            0.21826,
            0.226074,
            0.242274,
            0.226745,
            0.195468,
            0.188414,
            0.230944,
            0.199544,
            0.200356,
            0.211507,
            0.236694,
            0.230602,
            0.21326,
            0.166192,
            0.22429,
            0.241262,
            0.214623,
            0.236243
          ],
          "vmSteps": [
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179
          ],
          "medianMs": 0.22429,
          "httpMs": [
            7.06152,
            7.090204,
            6.682089,
            5.955976,
            6.166169,
            7.419762,
            7.720125,
            7.206332,
            6.604432,
            7.265382,
            6.42693,
            6.420596,
            6.942696,
            7.032125,
            6.615493,
            7.317259,
            7.074575,
            7.69017,
            7.497328,
            6.916628,
            10.716909
          ],
          "httpMedianMs": 7.06152
        },
        {
          "statementMs": [
            0.192521,
            0.201197,
            0.235702,
            0.213361,
            0.218419,
            0.23448,
            0.263554,
            0.200946,
            0.236143,
            0.190317,
            0.116489,
            0.227858,
            0.176431,
            0.164489,
            0.206979,
            0.191849,
            0.241202,
            0.166813,
            0.238398,
            0.219992,
            0.251721
          ],
          "vmSteps": [
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179,
            13179
          ],
          "medianMs": 0.213361,
          "httpMs": [
            7.548855,
            14.993143,
            12.043468,
            6.935633,
            7.496757,
            7.326336,
            7.398262,
            7.545708,
            7.426924,
            6.709289,
            5.389873,
            5.830731,
            5.376979,
            6.538838,
            5.471527,
            5.070944,
            7.001207,
            7.928668,
            7.279159,
            7.337498,
            6.96506
          ],
          "httpMedianMs": 7.279159
        }
      ],
      "plan": [
        {
          "id": 1,
          "parent": 0,
          "notused": 0,
          "detail": "COMPOUND QUERY"
        },
        {
          "id": 2,
          "parent": 1,
          "notused": 0,
          "detail": "LEFT-MOST SUBQUERY"
        },
        {
          "id": 9,
          "parent": 2,
          "notused": 108,
          "detail": "SEARCH i USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
        },
        {
          "id": 13,
          "parent": 2,
          "notused": 0,
          "detail": "LIST SUBQUERY 1"
        },
        {
          "id": 15,
          "parent": 13,
          "notused": 0,
          "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
        },
        {
          "id": 80,
          "parent": 2,
          "notused": 46,
          "detail": "SEARCH p USING INDEX sqlite_autoindex_orchestration_v2_projection_provider_threads_1 (provider_thread_id=?) LEFT-JOIN"
        },
        {
          "id": 88,
          "parent": 2,
          "notused": 46,
          "detail": "SEARCH r USING INDEX sqlite_autoindex_orchestration_v2_projection_runs_1 (run_id=?) LEFT-JOIN"
        },
        {
          "id": 116,
          "parent": 1,
          "notused": 0,
          "detail": "UNION ALL"
        },
        {
          "id": 119,
          "parent": 116,
          "notused": 107,
          "detail": "SEARCH i USING INDEX orchestration_v2_projection_turn_items_run_ordinal_idx (run_id=?)"
        },
        {
          "id": 123,
          "parent": 116,
          "notused": 0,
          "detail": "LIST SUBQUERY 3"
        },
        {
          "id": 125,
          "parent": 123,
          "notused": 0,
          "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
        }
      ],
      "statement": "\n      SELECT i.thread_id, i.payload_json, p.provider_instance_id AS owning_provider_instance_id\n      FROM orchestration_v2_projection_turn_items i\n      LEFT JOIN orchestration_v2_projection_provider_threads p\n        ON p.provider_thread_id = i.provider_thread_id\n      LEFT JOIN orchestration_v2_projection_runs r\n        ON r.run_id = i.run_id\n      WHERE i.type IN ('command_execution', 'dynamic_tool', 'subagent')\n        AND i.status NOT IN ('completed', 'interrupted', 'failed', 'cancelled')\n        AND (i.run_id IS NULL OR r.status <> 'rolled_back')\n        AND i.thread_id IN (SELECT value FROM json_each(?))\n      \n        -- Preserve the pending-item partial index; read other work only from running runs.\n        UNION ALL\n        SELECT i.thread_id, i.payload_json, NULL AS owning_provider_instance_id\n        FROM orchestration_v2_projection_turn_items i\n        WHERE i.run_id IN (SELECT value FROM json_each(?))\n          AND i.type IN ('file_change', 'file_search', 'web_search', 'compaction')\n          AND i.status IN ('running', 'waiting')\n      \n    ",
      "binds": [
        "[\"mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9\"]",
        "[\"run:thread:mcp%3Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9:ordinal:2\"]"
      ],
      "returnedRows": [
        {
          "thread_id": "mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9",
          "payload_json": "{\"id\":\"turn-item:provider:acpRegistry:native-item:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Atool%3Abb34f30f-53d3-4845-bd8b-39813f604874-pending\",\"threadId\":\"mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9\",\"runId\":\"run:thread:mcp%3Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9:ordinal:2\",\"nodeId\":\"node:provider:acpRegistry:native-item:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Atool%3Abb34f30f-53d3-4845-bd8b-39813f604874-pending\",\"providerThreadId\":\"provider-thread:provider:acpRegistry:native-thread:pending%3Arun%3Athread%3Amcp%253Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9%3Aordinal%3A1\",\"providerTurnId\":\"provider-turn:provider:acpRegistry:native-turn:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Aturn%3A2\",\"nativeItemRef\":{\"driver\":\"acpRegistry\",\"nativeId\":\"bb34f30f-53d3-4845-bd8b-39813f604874-pending\",\"strength\":\"strong\"},\"parentItemId\":null,\"ordinal\":2000002,\"status\":\"running\",\"title\":\"Ran command\",\"startedAt\":\"2026-11-19T18:21:26.483Z\",\"completedAt\":null,\"updatedAt\":\"2026-11-19T18:21:26.483Z\",\"type\":\"command_execution\",\"input\":\"pending synthetic command\"}",
          "owning_provider_instance_id": "bulk"
        }
      ],
      "medianMs": 0.176431,
      "groupMedianRangeMs": [
        0.147686,
        0.22429
      ],
      "vmSteps": [
        13179
      ],
      "functionalResult": {
        "rowCount": 1,
        "type": "command_execution",
        "status": "running",
        "input": "pending synthetic command",
        "owningProviderInstanceId": "bulk"
      }
    },
    {
      "completed": 15000,
      "running": 1,
      "groups": [
        {
          "statementMs": [
            1.600624,
            1.495936,
            1.527947,
            1.472772,
            1.595294,
            1.431126,
            1.356837,
            1.307353,
            1.394146,
            1.385179,
            1.309768,
            1.311762,
            1.334194,
            1.283869,
            1.269473,
            1.456033,
            1.564486,
            2.35088,
            1.888453,
            1.614699,
            1.819884
          ],
          "vmSteps": [
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192
          ],
          "medianMs": 1.456033,
          "httpMs": [
            4.46615,
            4.188199,
            4.189912,
            4.369189,
            4.362696,
            4.14622,
            3.977703,
            3.788168,
            6.611265,
            4.309937,
            4.189501,
            3.972655,
            3.796874,
            3.82113,
            5.54243,
            6.005358,
            5.586693,
            6.680044,
            6.17105,
            5.436921,
            5.048894
          ],
          "httpMedianMs": 4.362696
        },
        {
          "statementMs": [
            1.435585,
            1.379299,
            1.390439,
            1.327611,
            1.357706,
            1.337981,
            1.330647,
            1.339714,
            1.645427,
            1.624509,
            1.625531,
            1.654154,
            1.616473,
            1.616924,
            1.585244,
            2.352414,
            1.360593,
            1.323564,
            1.354752,
            1.309216,
            1.327631
          ],
          "vmSteps": [
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192
          ],
          "medianMs": 1.379299,
          "httpMs": [
            4.5192,
            4.362556,
            19.51645,
            8.370265,
            5.177675,
            4.86085,
            4.685552,
            4.587117,
            5.037632,
            5.145875,
            5.229381,
            5.131839,
            4.946822,
            4.846725,
            4.813432,
            8.160984,
            4.782965,
            4.081999,
            4.257169,
            4.409053,
            4.285341
          ],
          "httpMedianMs": 4.846725
        },
        {
          "statementMs": [
            1.281945,
            1.302725,
            1.301823,
            1.408474,
            1.339684,
            1.773287,
            2.243049,
            1.565137,
            1.582509,
            1.456504,
            1.343672,
            1.376964,
            1.408442,
            1.541442,
            1.634205,
            1.323332,
            1.329854,
            1.338,
            1.371944,
            1.707674,
            1.773989
          ],
          "vmSteps": [
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192
          ],
          "medianMs": 1.408442,
          "httpMs": [
            4.489133,
            4.437647,
            4.533277,
            4.560898,
            4.366583,
            5.380545,
            7.422246,
            5.580851,
            4.51875,
            4.356215,
            4.035362,
            4.169694,
            9.044552,
            7.695439,
            5.235335,
            4.56201,
            5.028495,
            4.725026,
            4.917798,
            5.852811,
            6.772307
          ],
          "httpMedianMs": 4.725026
        },
        {
          "statementMs": [
            1.707364,
            2.09958,
            1.659563,
            2.079221,
            1.671447,
            1.907399,
            1.670054,
            1.397691,
            1.387884,
            1.38061,
            1.333391,
            1.330266,
            1.335164,
            1.349521,
            1.364951,
            1.32673,
            1.362027,
            1.329054,
            1.308405,
            1.337069,
            1.469899
          ],
          "vmSteps": [
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192
          ],
          "medianMs": 1.38061,
          "httpMs": [
            5.881556,
            8.187212,
            6.1019,
            6.407093,
            5.443684,
            5.789683,
            6.118802,
            5.983156,
            5.388841,
            5.050697,
            4.757015,
            4.691233,
            4.627423,
            5.241303,
            4.686413,
            4.581738,
            5.278303,
            5.355239,
            5.055727,
            5.448763,
            5.059794
          ],
          "httpMedianMs": 5.355239
        },
        {
          "statementMs": [
            1.302283,
            1.276185,
            1.269422,
            1.519261,
            1.448377,
            1.315689,
            1.478804,
            1.735888,
            2.034257,
            1.973271,
            1.296573,
            1.293357,
            1.665204,
            1.671797,
            1.553495,
            1.474186,
            1.486348,
            1.496568,
            1.519431,
            1.466091,
            1.375421
          ],
          "vmSteps": [
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192,
            195192
          ],
          "medianMs": 1.478804,
          "httpMs": [
            5.023116,
            5.414749,
            4.93473,
            4.738912,
            4.926865,
            5.095311,
            5.261081,
            6.139901,
            9.192738,
            6.49646,
            12.813744,
            4.767065,
            5.024417,
            5.014118,
            5.028947,
            5.015751,
            4.991125,
            6.28361,
            5.140236,
            4.752147,
            4.448627
          ],
          "httpMedianMs": 5.024417
        }
      ],
      "plan": [
        {
          "id": 1,
          "parent": 0,
          "notused": 0,
          "detail": "COMPOUND QUERY"
        },
        {
          "id": 2,
          "parent": 1,
          "notused": 0,
          "detail": "LEFT-MOST SUBQUERY"
        },
        {
          "id": 9,
          "parent": 2,
          "notused": 108,
          "detail": "SEARCH i USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=? AND type=?)"
        },
        {
          "id": 13,
          "parent": 2,
          "notused": 0,
          "detail": "LIST SUBQUERY 1"
        },
        {
          "id": 15,
          "parent": 13,
          "notused": 0,
          "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
        },
        {
          "id": 80,
          "parent": 2,
          "notused": 46,
          "detail": "SEARCH p USING INDEX sqlite_autoindex_orchestration_v2_projection_provider_threads_1 (provider_thread_id=?) LEFT-JOIN"
        },
        {
          "id": 88,
          "parent": 2,
          "notused": 46,
          "detail": "SEARCH r USING INDEX sqlite_autoindex_orchestration_v2_projection_runs_1 (run_id=?) LEFT-JOIN"
        },
        {
          "id": 116,
          "parent": 1,
          "notused": 0,
          "detail": "UNION ALL"
        },
        {
          "id": 119,
          "parent": 116,
          "notused": 107,
          "detail": "SEARCH i USING INDEX orchestration_v2_projection_turn_items_run_ordinal_idx (run_id=?)"
        },
        {
          "id": 123,
          "parent": 116,
          "notused": 0,
          "detail": "LIST SUBQUERY 3"
        },
        {
          "id": 125,
          "parent": 123,
          "notused": 0,
          "detail": "SCAN json_each VIRTUAL TABLE INDEX 1:"
        }
      ],
      "statement": "\n      SELECT i.thread_id, i.payload_json, p.provider_instance_id AS owning_provider_instance_id\n      FROM orchestration_v2_projection_turn_items i\n      LEFT JOIN orchestration_v2_projection_provider_threads p\n        ON p.provider_thread_id = i.provider_thread_id\n      LEFT JOIN orchestration_v2_projection_runs r\n        ON r.run_id = i.run_id\n      WHERE i.type IN ('command_execution', 'dynamic_tool', 'subagent')\n        AND i.status NOT IN ('completed', 'interrupted', 'failed', 'cancelled')\n        AND (i.run_id IS NULL OR r.status <> 'rolled_back')\n        AND i.thread_id IN (SELECT value FROM json_each(?))\n      \n        -- Preserve the pending-item partial index; read other work only from running runs.\n        UNION ALL\n        SELECT i.thread_id, i.payload_json, NULL AS owning_provider_instance_id\n        FROM orchestration_v2_projection_turn_items i\n        WHERE i.run_id IN (SELECT value FROM json_each(?))\n          AND i.type IN ('file_change', 'file_search', 'web_search', 'compaction')\n          AND i.status IN ('running', 'waiting')\n      \n    ",
      "binds": [
        "[\"mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9\"]",
        "[\"run:thread:mcp%3Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9:ordinal:4\"]"
      ],
      "returnedRows": [
        {
          "thread_id": "mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9",
          "payload_json": "{\"id\":\"turn-item:provider:acpRegistry:native-item:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Atool%3Afb1f42d5-204d-4228-b623-739245cd5bf7-pending\",\"threadId\":\"mcp:ecb4d278-8ecb-47cc-92a0-d5c4e5377ee9\",\"runId\":\"run:thread:mcp%3Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9:ordinal:4\",\"nodeId\":\"node:provider:acpRegistry:native-item:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Atool%3Afb1f42d5-204d-4228-b623-739245cd5bf7-pending\",\"providerThreadId\":\"provider-thread:provider:acpRegistry:native-thread:pending%3Arun%3Athread%3Amcp%253Aecb4d278-8ecb-47cc-92a0-d5c4e5377ee9%3Aordinal%3A1\",\"providerTurnId\":\"provider-turn:provider:acpRegistry:native-turn:provider-instance%3Abulk%3A4f2c571e-1073-44c9-a49a-5363c2fb7a5f%3Aturn%3A4\",\"nativeItemRef\":{\"driver\":\"acpRegistry\",\"nativeId\":\"fb1f42d5-204d-4228-b623-739245cd5bf7-pending\",\"strength\":\"strong\"},\"parentItemId\":null,\"ordinal\":4000002,\"status\":\"running\",\"title\":\"Ran command\",\"startedAt\":\"2026-11-19T18:22:48.628Z\",\"completedAt\":null,\"updatedAt\":\"2026-11-19T18:22:48.628Z\",\"type\":\"command_execution\",\"input\":\"pending synthetic command\"}",
          "owning_provider_instance_id": "bulk"
        }
      ],
      "medianMs": 1.408474,
      "groupMedianRangeMs": [
        1.379299,
        1.478804
      ],
      "vmSteps": [
        195192
      ],
      "functionalResult": {
        "rowCount": 1,
        "type": "command_execution",
        "status": "running",
        "input": "pending synthetic command",
        "owningProviderInstanceId": "bulk"
      }
    }
  ]
}