← Model losses

Head-to-head comparison

openai / gpt-6-astra / xhigh / xhigh effort preferred over claude-code-cli / claude-opus-5-5 / high / high 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 code-review analysis. A search endpoint verifies membership in organizationA, then queries records WHERE title matches the search term with no organization predicate. Pagination counts all matches, and a shared cache uses only the search term and page. Detail the data leak and count/cache leak, propose the smallest authorization/query/cache contract, and explain why filtering response rows afterward is insufficient. Include two cross-tenant verification cases. No tools, edits or executed-test claims. Three numbered items, under180words.

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

1. **Independent assessment:** Membership in A authorizes A only. The unscoped title query can return B’s records; global totals/page counts expose cross-tenant match volume even without rows. Shared `(term, page)` cache entries can serve another tenant’s rows and totals.

2. **Minimal contract:** Validate the organization ID and authorize membership before every cache lookup. Apply `organization_id = authorizedOrg AND title matches term` to both row and count queries, before pagination. Key cached responses by organization, term, page, and any variable page-size/sort inputs; include narrower permission scope if applicable. Retire unscoped entries. Filtering rows afterward leaves totals exposed and cache entries contaminated, while producing short/missing pages because unauthorized rows already consumed pagination slots.

3. **Proposed verification cases:**
   - **B-only match:** Searching as A returns no rows, total zero, and no next page; B receives its matching record.
   - **Cache isolation:** Warm B’s cache, then request the identical term/page as A; repeat in reverse. Each tenant must receive only its own rows, totals, and pagination metadata.

claude-code-cli / claude-opus-5-5 / high / high effort answer

1. **Leak.** Membership is checked for organizationA, but the query has no `organization_id = :orgA` predicate. Any organizationB record whose title matches is returned. The total count also includes B's matches, so probing search terms reveals that foreign records exist and how many. The cache is keyed only by `(term, page)`, so one tenant's cached rows and count are served to other tenants.

2. **Contract.** Authorize `(user, orgA)` and take orgA from that check, never from client input. Use `WHERE organization_id = :orgA AND title MATCH :term` for both the page and COUNT queries. Key the cache as `(orgA, term, page, pageSize)`. Filtering rows afterward is not enough. Totals and page boundaries already include foreign rows, which causes short pages and wrong counts. Foreign data has also already reached the cache. Any path that skips the filter reopens the leak.

3. **Verification.** (a) Seed "Budget" in both organizations. An orgA member searching "Budget" gets only the orgA row, with count=1. (b) An orgB member searches "Secret", which exists only in orgB, and fills the cache. An orgA member then gets empty results, count=0, and no cache hit.

Confidence is high. The actual schema and cache code are not in the packet.

Primary judge's stated reason

B receives a slight forced preference because its explicit authorization-before-cache ordering makes the proposed contract less ambiguous for implementation. Its acceptance of a validated, authorized organization ID also avoids A's unnecessary input restriction. These are limited advantages within otherwise near-equivalent, useful analyses, not an established material quality gap; an independent review could reasonably favor A's concrete verification fixture.

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

Battle wave: ab6583d2-98e2-4996-8386-edcc6d58d634. Pair: brp1_f776679f8bc7c9aa76a53804d9ce67419554c71c79ec96bcfee3d21cd94301f6. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.