Batch security reviews into one process: 61 invocations paid 61 cold prefixes #174

Closed
opened 2026-08-15 17:15:57 +00:00 by john · 0 comments
Owner

A 25-turn session never amortizes its cold start. Measured, 3.x era:

  • opus-5 main reads 128K per call against 3K written
  • security-review reads 37.8K against 8.2K

One process reviewing N diffs pays one cold prefix instead of N. 61 invocations paid 61 cold starts.

This is the second exit on #173 and the one reachable without an upstream change: batching also lands consecutive invocations inside the 5-minute window, so it fixes the TTL mismatch as a side effect rather than needing the TTL raised.

Open question: whether a batched review over N diffs finds what N single-diff reviews find. A per-commit review is scoped to one change on purpose, so this is a real trade rather than free.

A 25-turn session never amortizes its cold start. Measured, 3.x era: - opus-5 main reads 128K per call against 3K written - security-review reads 37.8K against 8.2K One process reviewing N diffs pays one cold prefix instead of N. 61 invocations paid 61 cold starts. This is the second exit on #173 and the one reachable without an upstream change: batching also lands consecutive invocations inside the 5-minute window, so it fixes the TTL mismatch as a side effect rather than needing the TTL raised. Open question: whether a batched review over N diffs finds what N single-diff reviews find. A per-commit review is scoped to one change on purpose, so this is a real trade rather than free.
john added this to the v3.4.1 milestone 2026-08-15 17:15:57 +00:00
john removed this from the v3.4.1 milestone 2026-08-15 17:25:39 +00:00
john added this to the v3.5.7 milestone 2026-08-18 10:23:31 +00:00
john closed this issue 2026-08-22 11:45:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: crenshawdev/cadence-archived#174
No description provided.