You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Detection] Narrow images.generate batchCapable to a separate inlineParallelCapable flag #116
PR #110 marked openai.images.generate as batchCapable: true so the concurrency detector would not flag Array.from({length: n}).map(() => images.generate(...)) patterns. But this conflates two distinct API shapes:
True batch endpoints (/v1/batches, messages.batches.create, embedding multi-input) — accept an array of inputs in a single request.
Inline parallelism via API parameter (images.generate({ n: 4 })) — single request with a count parameter that produces N results.
The current batchCapable: true on images.generate is semantically loose. It works for the suppression we needed but blurs a meaningful distinction.
What to do
Add a new AstCallMatch field: inlineParallelCapable?: boolean.
Reclassify openai.images.generate from batchCapable to inlineParallelCapable in src/scanner/fingerprints/openai.json (or wherever the fingerprint lives).
Update the concurrency detector's BOUNDED_REPLICATION guard logic to suppress on inlineParallelCapable as well as the existing Array.from({length:N}) regex check.
Update the batch detector to keep firing for actual batch endpoints only.
Acceptance criteria
Two distinct fingerprint flags exist (batchCapable for real batch APIs, inlineParallelCapable for n/count parameters).
Activity
Merge pull request #126 from recost-dev/wave3/resolver-followups
docs(progress): reconcile wave tracker — mark waves 3/7/8/10 shipped