Repository navigation
SCA-2015: select fresh results past intervening held provider stock - #25283
Conversation
Failure-Class: FC-backlog-release-shares-lane-with-fresh-work Co-authored-by: multica-agent <[email protected]>
…ex-sol/8eb3d2b4f917
Co-authored-by: multica-agent <[email protected]>
|
Independent exact-head review. Reviewer model: DeepSeek V4.1 Flash (M1 Studio OpenCode, via Multica). Reviewed commit: VERDICT: SHIP
|
|
Round-two exact-head review. Reviewer model: DeepSeek V4.1 Flash (M1 Studio OpenCode, via Multica). Reviewed commit: VERDICT: SHIP
|
|
Independent exact-head review (gpt-6-luna via agentctl review pool, author was Sol): no BLOCKER or SHOULD-FIX. |
An unready fresh or unstamped GPU head can leave a later ready fresh result stuck indefinitely when an intervening ready provider backlog row is held. The expired head-wait path repeatedly selects the held row, while the existing transactional fresh selector only runs for catch-up or held-provider heads.
After that head-wait path hits held provider stock, retry fresh selection and commit in one transaction. The selected fresh row must satisfy its own head wait. The provider backlog remains held; stored classes, privacy checks, result-log predecessors and projection fences are preserved. This shared merge path runs in backend-integration and the GKE batch worker.
Proof limits and release order
This fixes the three-row selection shape above. The production metadata read at 2026-11-14 08:38Z matched this shape directly for one owner. It is not the fix for the 62 stalled owners: 60 were outside the 36-hour nudge window. The durable discovery cursor in #25266 must release first, followed by a counts-only re-count after a full wrapped pass; report remaining owners' head shapes before proposing further code. The claim that uploads under a day late are fixed remains open until that production check passes.
The Firestore and Postgres conformance cases skip on this host because their backends are unavailable. The simulator passes do not establish real-store behavior or production acceptance.
Validation
No endpoint or deployment configuration changes. Synthetic tests invoke the real OrderedMerge.commit_next path. No production writes or customer content reads were performed.
Review and rollback
Author model: GPT-6.1 Sol. Current head:
5a0bb5abe6550792fe891eabe97074f986ab2c63. Requested independent reviewer: DeepSeek V4.1 Flash through Multica. Round-two independent review: DeepSeek V4.1 Flash, VERDICT: SHIP for this exact head, recorded at #25283 (comment). CI and cursor-first release prerequisites remain separate. No earlier SHIP applies to this change. Record the actual reviewer model and reviewed SHA here before release.Rollback: BATCH_PIPELINE_MERGE_TX_FRESH_GATE_ENABLED=false disables the additional selection. Missing transactional indexes fail closed with backoff. No knobs, queue budgets or lifecycle states are added or retuned.
Part of SCA-2015; this PR alone does not complete the metered-release contract.
Failure-Class: FC-backlog-release-shares-lane-with-fresh-work
CI conformance repair on this successor
The provider conformance tests were intercepting only fresh_pending, which the default transactional gate never calls. The privacy revoke and predecessor settlement therefore did not occur in the failing CI cases. The tests now parameterize the outside-probe and transactional modes, inject each race at the boundary used by that mode, and assert the interleaving actually executed. Privacy still requires no result and unchanged custody; the predecessor must commit first or prevent the later result from passing. No production code changes in this successor. Local provider conformance: 18 simulator passes, 36 real-store skips; full real-store proof remains with CI. This commit invalidates any confirmation of the previous head.
Prior exact-head review: DeepSeek V4.1 Flash, SHIP at 45a802b, recorded at #25283 (comment). That verdict does not cover current head 5a0bb5a; round-two exact-head confirmation is now recorded above. Cost: the target head shape now uses three transactions per drain attempt rather than two, adding one transactional fresh-selection attempt and its reads/contention; no backlog budget is increased.
CI receipt: at 2026-11-14 11:32Z, the GitHub API reported 66 terminal outcomes on 5a0bb5a: 41 SUCCESS and 25 SKIPPED, with no pending or failed checks. DeepSeek V4.1 Flash SHIP names this same head. The PR remains draft while cursor-first release and verification prerequisites are unresolved.