← Model losses

Head-to-head comparison

openai / gpt-6-astra / max / max effort preferred over openai / gpt-6-sol / xhigh / xhigh effort · close win.

Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.

Reviewed public evidence

Task goal

Read-only implementation analysis. A cache starts fetch(key) and stores its promise. invalidate(key) removes it; a new fetch stores a new promise. The old request completes later and writes its stale value unconditionally; its finally also deletes the new promise. Design minimal per-key generation and identity checks for both successful completion and cleanup, including rejection, concurrent callers, and invalidation. Explain which cancellation guarantees are actually needed. Give two deterministic interleavings to verify. No edits, tools or executed-test claims. Three numbered items, under180words.

openai / gpt-6-astra / max / max effort answer

1. Direct analysis: keep per-key generation `G`, cached value, and in-flight promise `P`. Invalidation increments `G` (never reset/reuse it) and removes value/`P`. Concurrent callers reuse `P`. New requests capture `g` and install their exact promise `p` before execution can settle.

2. Fulfillment caches only if `G === g && P === p`; `finally` removes `P` only under that same guard. Checks and mutations must be atomic relative to invalidation. Rejection propagates without caching; guarded cleanup enables retries. Cancellation is unnecessary for cache correctness: abort may race with completion. Existing callers may still receive old results; caller-visible freshness requires an additional stale-result check.

3. Verify with deferred promises:
   - Start A; invalidate; start B; another caller joins B; resolve A/run its cleanup while B remains pending. Assert no stale cache write and B retained. Resolve B: cache B.
   - Start A; invalidate; start B; reject A/run cleanup. Assert B retained. Reject B/run cleanup: its entry clears, no value is cached, and the next caller starts a fresh request.

openai / gpt-6-sol / xhigh / xhigh effort answer

1. Keep a monotonic generation per key and an in-flight entry `{generation, promise}`. Concurrent callers return the same promise. `invalidate(key)` increments the generation and removes the cached value and in-flight entry; the next caller starts a new fetch.

2. On success, cache the result only if both the generation and in-flight entry still match. On settlement—including rejection—delete the in-flight entry only under that same check. A rejection writes no value; callers of the rejected promise still receive its rejection. Cancellation is optional for saving work, not required for correctness: an aborted request may still settle, so the checks remain necessary.

3. Verify two controlled interleavings: **(a)** A starts, invalidate, B starts, A succeeds and cleans up, then B succeeds; A neither caches its value nor removes B. **(b)** Two callers share A, invalidate, B starts, A rejects and cleans up, and a new caller joins B; both A callers reject, B remains in flight and can populate the cache.

Primary judge's stated reason

B earns a slight forced preference because its verification examples explicitly check recovery after the current request fails. Its clarification that existing callers may still receive old results also usefully bounds the cancellation guarantee. These are modest practical benefits, not a proven material quality gap; A's shared-rejection scenario is meaningful counterevidence, and an independent review could reasonably reject this preference.

This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.

Battle wave: 9c8e2bb2-6ea9-4ce6-9ef5-3d06faca2bbd. Pair: brp1_3b230dbb79487f2404fc11c018dcca494230a4bedb7440bdc26599bea19dbd2c. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.