Skip to content

fix(bench): grid compression cache stores the promise — one call per key#247

Merged
drewstone merged 1 commit into
mainfrom
fix/grid-compress-race
Jun 10, 2026
Merged

fix(bench): grid compression cache stores the promise — one call per key#247
drewstone merged 1 commit into
mainfrom
fix/grid-compress-race

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Grid run #2 failed loud exactly as designed (#246's guard) — and the autopsy of the failure found the real bug in MY code, not the model: retask() compresses 12 holdout tasks via Promise.all, the check-then-set value cache raced, 12 duplicate compression calls fired per κ cell, and one blipped empty → guard threw. (Probe verified flash compresses this prompt fine in isolation.)

The cache now stores the promise: exactly one compression call per unique (γ, κ, prompt) key, shared by every concurrent caller, with one named retry on a degenerate first attempt. Artifact persistence awaits the cached promises.

Bench typecheck ✓. Run #2 relaunched on this code.

retask() compresses N holdout tasks concurrently; the check-then-set value
cache raced, firing N duplicate compression calls per cell, and any single
blip (one empty response among twelve) killed the run via the degenerate-
output guard. The cache now stores the promise (exactly one compression per
unique prompt, shared by all concurrent callers) with one named retry;
artifact prompt persistence awaits the promises.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — 4107e7f9

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-10T22:13:37Z

@drewstone drewstone merged commit 735067a into main Jun 10, 2026
1 check passed
@drewstone drewstone deleted the fix/grid-compress-race branch June 10, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants