openai / gpt-6.1-sol / low / low effort preferred over openai / gpt-6-luna / low / low 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
Assess the review-pack boot, retrieval, and adoption boundaries for architectural consistency under retries, changed inspection state, and partial failure. Identify a concrete invariant that is missing or inconsistently enforced, trace its path through the supplied implementation, and propose the smallest cohesive correction plus regression coverage.
openai / gpt-6.1-sol / low / low effort answer
## Finding: boot state is not bound to the adopted pack generation
**High confidence in the service-level defect; end-to-end reachability depends on callers outside this packet.**
**Missing invariant:** a non-null review boot must belong to the inspection’s current `(review_pack_path, review_pack_job_id)` generation. Changing that generation must invalidate the previous boot, and delayed boot writers must not overwrite a newer generation.
### Evidence and reproducible trigger
- `[REDACTED: private project name]/backend/app/services/review_pack_adoption.py:101–118` rejects stale producer jobs under the inspection lock.
- Adoption changes the pointer/job and invalidates review proof transactionally (`124–162`), **but leaves both boot columns untouched**.
- `[REDACTED: private project name]/backend/app/services/review_boot.py:144–152` installs boot content and its SHA without checking the current pointer or producer.
- Both boot persistence entry points identify the destination solely by inspection ID (`155–176`, `185–202`). The dedicated-session writer can therefore run after a different generation has been adopted.
- The SHA identifies the supplied bytes (`133–141`), not their relationship to the current inspection generation.
- Retrieval chooses the current pointer (`[REDACTED: private project name]/backend/app/routers/review_pack.py:4068–4097`), independently of those boot columns.
**Trigger:**
1. Generation A is current, with boot A.
2. Adopt generation B and commit.
3. Boot B publication fails—or a delayed A boot publication completes afterward.
4. The inspection retains or receives boot A while file retrieval selects B.
The intended first-paint fields—start/end times, zones, cards, and location count—can consequently describe a different artifact from the retrieved pack. Repeating adoption of B does not repair this: the same pointer/job takes the no-change branch (`review_pack_adoption.py:163–164`).
There is also a same-generation freshness gap: inspection-start and heatmap writes replace `inspection.json` without updating boot in their displayed implementations (`review_pack.py:2873–2896`, `3951–3976`). Whether another storage layer refreshes boot is not established.
## Smallest cohesive correction
1. **Clear both boot columns inside the existing adoption transaction whenever `version_changed` is true**, including removal and compensation. Failed boot publication then leaves an absent optimization, not misleading data.
2. **Require an expected pack path and producer job for boot persistence.** Lock/reload the inspection and install boot only if both still match. Apply this guard to both persistence entry points; preserve caller-owned transaction semantics.
3. For same-generation JSON rewrites, refresh boot from the exact serialized bytes written, or invalidate it before publication. Do not treat a content SHA alone as a generation guard.
No distributed storage/DB transaction is needed to establish the narrower safety guarantee: unavailable boot is acceptable; cross-generation boot is not.
## Regression coverage
- A → B adoption clears boot atomically with pointer/job changes.
- Delayed A boot publication after B adoption cannot change B’s boot.
- Failed B boot publication leaves boot absent; retry installs B.
- Stale adoption rejection preserves the current boot.
- Same-generation adoption retry preserves a valid boot.
- Clearing a pack and compensation cannot retain the displaced generation’s boot.
- Inspection-start/heatmap rewrite refreshes or invalidates boot; injected publication failures cannot expose old boot as current.
## Limits and alternatives
Proof invalidation itself is explicitly centralized and job-ordered; the packet does **not** establish that adoption bypasses that mechanism. Actual first-paint consumption, boot callers, storage hooks, and cache invalidation are outside the supplied evidence. A consumer-side generation check could reduce impact, but cannot be assumed.
**Next useful action:** implement the adoption clear plus generation-checked boot write, then add the delayed-writer regression first. Analysis was independent and read-only.
openai / gpt-6-luna / low / low effort answer
## Conclusion
**Missing invariant: the boot payload must be invalidated or verified against the currently adopted pack version before it is served.** In the supplied implementation, boot data is version-tagged, but no shown reader checks that tag against the current review-pack pointer or bytes.
`build_review_boot` stores `pack_sha256` alongside the slim payload (review_boot.py:106–130), and `apply_review_boot` writes both fields (144–152). But the supplied code also has a best-effort dedicated-session writer that loads the inspection, applies the boot, and commits without checking whether the inspection still points to the pack that produced those bytes (185–208). If that write is delayed, an older boot can overwrite a newer one. The savepoint writer likewise applies bytes to the supplied inspection without a version check (155–183).
Adoption updates `review_pack_path` and `review_pack_job_id` under lock and invalidates acceptance/signoff when either changes (review_pack_adoption.py:83–89, 120–140), but does not update or clear the boot fields. The boot comment says the DB sibling is served from `GET /inspections/{id}` (review_boot.py:3–6); that reader is outside the packet, so whether it validates `pack_sha256` is **unknown**. The evidence therefore establishes a concrete stale-write risk in boot persistence and an adoption-side gap, but cannot establish that stale boot is actually served.
**Smallest cohesive correction:** make boot publication conditional on the current adopted pack version. Under the inspection row lock, verify that the expected pack identity still matches before writing the boot; on adoption, clear the boot fields (or otherwise make them unservable) in the same transaction as the pointer change. The boot reader should fail closed unless the boot’s pack digest is verified against the current pack version. Keep the existing best-effort failure behavior so boot problems do not block adoption.
## Regression coverage
- Delay an older dedicated-session boot write until after a newer pack is adopted and booted; assert the old write cannot replace the current boot.
- Adopt a new path or producer job while an old boot exists; assert the boot is cleared or rejected by the reader until refreshed.
- Retry adoption of the same path/job; assert it does not unnecessarily invalidate a still-current boot.
- Simulate boot persistence/flush failure; assert pack adoption and its transaction still succeed.
**Alternatives / uncertainty:** `pack_sha256` might already be checked by the out-of-scope GET reader, which would reduce the stale-serving risk, but would not prevent stale boot state from overwriting the current DB value. The packet also omits the pack-rewrite callers, so it does not show whether they serialize boot stamping with adoption or pass a locked/current inspection.
**Next useful action:** inspect the boot reader and pack-rewrite call sites to confirm serving and ordering behavior, then implement the version-conditional write and adoption invalidation with the tests above.Primary judge's stated reason
A receives a slight forced preference because its correction covers both generation changes and the supplied in-place rewrite paths, with more directly targeted regressions. This is not an established material quality difference: B substantially satisfies the contract and offers stronger explicit reader-side verification. An independent review could reasonably reject the preference.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: b60a358e-7993-4567-b86d-c5b92705bbea. Pair: brp1_888cc0b8fb74ea028b58a62109e5cef866bc6b99ee1444108f1f3d8a8422a37d. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.