BASE 90fc3e900b3d839d0be2fc5b49e60b71a52b9c61
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): 40.835, 29.525, 29.690, 37.289, 29.175, 29.611, 37.794, 29.364, 28.625, 29.906, 37.599, 40.355, 29.332, 28.962, 36.413
Median 29.690 ms; range 28.625-40.835; spread 12.209 ms

WARM — Full MCP Stop action:
Samples (ms): 87.959, 53.672, 56.642, 65.580, 57.943, 55.640, 61.306, 52.887, 52.074, 50.643, 77.017, 81.301, 52.178, 46.285, 56.618
Median 56.618 ms; range 46.285-87.959; spread 41.673 ms

COLD — Status-filtered read:
Samples (ms): 3559.340, 4053.447, 3854.909, 2945.658, 2894.132, 2929.381, 2952.779
Median 2952.779 ms; range 2894.132-4053.447; spread 1159.316 ms

COLD — Full MCP Stop action:
Samples (ms): 3624.313, 4110.095, 3948.031, 3019.221, 2959.396, 2995.945, 3022.007
Median 3022.007 ms; range 2959.396-4110.095; spread 1150.700 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 INDEX orchestration_v2_projection_turn_items_thread_ordinal_idx (thread_id=?)
LIST SUBQUERY 1
SCAN json_each VIRTUAL TABLE INDEX 1:
LIST SUBQUERY 2
SCAN json_each VIRTUAL TABLE INDEX 1:

Actual SQL:

                SELECT payload_json
                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]
