openai / gpt-6.1-sol / low / low effort preferred over openai / gpt-6.1-sol / 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
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.1-sol / high / high effort answer
## Finding: boot state is not bound to the adopted pack version
**High confidence:** the supplied implementation permits the current pack pointer, boot payload, and retrieved pack bytes to describe different versions.
**Missing invariant:** changing the adopted artifact must atomically replace or invalidate its derived boot state; delayed writers must not restore boot data from an obsolete version.
### Evidence and reproducible triggers
All paths below are under `[REDACTED: private project name]/backend/app/`.
1. **Adoption preserves old boot state.**
`services/review_pack_adoption.py:120–162` updates the path/job, invalidates acceptance, and audits the version change—but neither updates nor clears `review_boot_json` or `review_boot_pack_sha256`.
Reproduction:
- Populate boot from pack A using `apply_review_boot` (`services/review_boot.py:144–152`).
- Adopt pack B with a different path or job.
- The inspection now points to B while retaining A’s boot payload and SHA.
- Retrieval selects the current pointer B (`routers/review_pack.py:4068–4121`).
2. **A delayed boot writer can overwrite newer state.**
Both boot persistence functions select only by inspection ID, without checking the expected pack path/job:
- Caller-owned transaction: `services/review_boot.py:155–182`.
- Dedicated session: `services/review_boot.py:185–208`.
After B is adopted, a delayed `persist_review_boot_from_bytes(id, bytes_A)` can successfully install A’s boot again. Rejecting older jobs during adoption (`services/review_pack_adoption.py:101–118`) does not protect this separate write boundary.
3. **Successful in-place edits also cause divergence.**
Inspection-start changes rewrite `inspection.json` at `routers/review_pack.py:2873–2881`; heatmap regeneration rewrites it at `3951–3954`. Neither visible path refreshes boot. Inspection-start is particularly concrete: boot contains that field (`services/review_boot.py:126`), so the displayed start and stored boot start can differ after a successful request.
4. **Failure preserves potentially stale boot.**
Invalid pack bytes make `apply_review_boot` return `False` without clearing previous columns (`services/review_boot.py:146–152`). Persistence exceptions are non-blocking (`177–182`, `203–208`). Heatmap publication also precedes the DB commit; a subsequent failure rolls back DB state but leaves changed storage bytes (`routers/review_pack.py:3954–3983`).
### Implications
Boot is a free-floating projection rather than an adopted-version projection. This permits obsolete first-paint locations/start markers and makes retries capable of reversing newer boot state.
There is also a related certification boundary: adoption defines version changes exclusively through path/job differences (`services/review_pack_adoption.py:120–122`). Changed bytes at the same path/job are therefore invisible to that invalidation mechanism. The supplied router rewrite paths do not visibly invoke it.
The track-response SHA does not solve this: it attests the canonical footage trajectory, not the complete pack or boot payload (`routers/review_pack.py:423–497`, `4208–4236`).
## Smallest cohesive correction
Centralize **publication plus adoption of a version-bound boot projection**, rather than adding unconditional stamping calls:
- On every adopted version change, replace boot from the candidate’s exact bytes in the adoption transaction, or clear both boot columns when boot is unavailable.
- Require background boot writers to supply an expected artifact identity and verify it under the same inspection lock before writing. Obsolete attempts must be no-ops.
- Route inspection-start and heatmap publications through that boundary.
- Use an immutable revision key for changed published bytes, with an expected-current-version check for edits. Upload the revision first; then atomically commit its pointer, boot, acceptance/sign-off transition, and audit.
The immutable revision is necessary for the supplied partial-failure ordering: merely stamping boot after overwriting the existing object still leaves changed storage paired with rolled-back DB state. An unsuccessful DB adoption should leave only an unreferenced candidate, not modify the currently referenced artifact.
## Regression coverage
1. **A → B adoption:** B’s pointer and boot commit together; unavailable boot clears A’s projection.
2. **Delayed A writer:** after B adoption, attempting to persist A leaves B’s state unchanged.
3. **Retries:** identical adoption is idempotent; older-job adoption changes neither pointer nor boot; A → B → A does not revive prior proof.
4. **In-place edit replacement:** start/heatmap edits publish a revision whose boot SHA matches its exact bytes.
5. **Fault injection:** fail upload, boot derivation, audit/flush, and commit separately. Assert the previously adopted artifact remains coherent and failed candidates cannot become current through a delayed boot write.
6. **Concurrent edits:** an edit based on A cannot overwrite already-adopted B.
## Limits and discarded conclusions
- The inspection-detail reader and frontend reconciliation are outside the packet. Thus **state divergence is established; actual stale UI rendering is not**.
- Cache implementation and adoption call sites are outside the packet; their freshness or caller-level safeguards cannot be assessed.
- Strict older-job rejection and same-version adoption no-ops are useful existing controls. Null-job handling, explicit ordering bypass, and compensation overrides are not independently proven defects.
**Next action:** implement and test the version-bound publication contract before adding more best-effort boot writes.
*Direct analysis of the supplied immutable snapshot; no execution or external inspection.*
Primary judge's stated reason
Forced weak preference for A: its central recommendation provides a more bounded starting fix for the concretely demonstrated boot-generation defect, while preserving explicit uncertainty about end-to-end effects. B provides stronger publication-failure assurance at the cost of a broader revision architecture. This is not an established material quality difference; an independent review could reasonably prefer B's stronger guarantee.
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_7d61d7c172d6618538ce7693a3a968c042f02d62c88ea1a107db7fa3b5838469. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.