HEAD 1afd5cb2123eda0364897765ff8391d8aadc613f
Linux x86_64; Node v26.13.1; same machine, sequential measurements
Same action and synthetic fixture on both commits.

WARM — Status-filtered read:
Samples (ms): 1.933, 1.835, 1.816, 1.911, 2.044, 1.824, 1.846, 1.839, 1.998, 1.888, 1.844, 1.940, 1.882, 1.907, 1.993
Median 1.888 ms; range 1.816-2.044; spread 0.228 ms

WARM — Full MCP Stop action:
Samples (ms): 33.634, 21.995, 18.292, 30.006, 25.399, 21.674, 30.194, 30.416, 22.417, 24.428, 19.642, 25.832, 28.882, 32.505, 23.691
Median 25.399 ms; range 18.292-33.634; spread 15.341 ms

COLD — Status-filtered read:
Samples (ms): 48.174, 42.473, 48.800, 38.136, 45.673, 48.166, 46.922
Median 46.922 ms; range 38.136-48.800; spread 10.665 ms

COLD — Full MCP Stop action:
Samples (ms): 133.880, 95.916, 117.845, 101.504, 99.490, 114.537, 113.020
Median 113.020 ms; range 95.916-133.880; spread 37.964 ms

Read rows: 9
Ordinals: [3100, 6200, 9300, 12400, 15500, 18600, 21700, 24800, 27900]
Full ordered payload SHA256: ca4a8fce7a91419de2b73a40de38c57bdf57b0a47d47b7eed8717cfd5cf7ceef
All parent task outcomes: interrupted
MCP result: no_active_run (the completed parent has no active root run; Stop still interrupts the stale native task).
Actual query plan:
SEARCH orchestration_v2_projection_turn_items USING INTEGER PRIMARY KEY (rowid=?)
LIST SUBQUERY 3
SEARCH orchestration_v2_projection_turn_items USING INDEX orchestration_v2_projection_turn_items_thread_type_idx (thread_id=?)
LIST SUBQUERY 1
SCAN json_each VIRTUAL TABLE INDEX 1:
LIST SUBQUERY 2
SCAN json_each VIRTUAL TABLE INDEX 1:
USE TEMP B-TREE FOR ORDER BY

Actual SQL:

                SELECT payload_json
                FROM orchestration_v2_projection_turn_items
                WHERE rowid IN (
                    SELECT rowid FROM orchestration_v2_projection_turn_items
                    WHERE 
      thread_id = ?
        
        
        AND status IN (SELECT value FROM json_each(?))
        
        
        AND (run_id IN (SELECT value FROM json_each(?)) OR (? = 1 AND run_id IS NULL))
    
                  )
                ORDER BY ordinal ASC, turn_item_id ASC
              
Bindings: ["thread:perf-proof", "[\"pending\",\"running\",\"waiting\"]", "[]", 1]
