Skip to content

fix: make result metadata safe across stale merger images - #25622

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/result-protocol-codeploy
Nov 17, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/result-protocol-codeploy

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Cloud Run intake and the separately deployed GKE ordered merger must not depend on copying a required marker in lockstep. A stale copier previously committed protocol-2 source results without the marker and blocked the owner's projection chain (#25479 / 2026-11-16).

This change makes source-marker recovery from the immutable job a permanent counted contract, adds one registry used by intake/alias/fallback producers, both merge paths and projection, and stamps required_result_markers on new jobs. A current merger refuses unknown protocol/marker requirements before writing a result or consuming an owner log sequence, leaving work ready for a capable merger. The refusal counter is exported by each GKE worker child's private metrics registry as well as Cloud Run. BATCH_RESULT_PROTOCOL_GUARD_ENABLED defaults on; false restores legacy copying. Explicit conflicting versions remain refused; null copies are treated as missing only under a supported explicit job map. A witnessed legacy projector alias-to-own-audio transition may retain its unknown envelope; only that exact known marker transition is interpreted, without modifying the job or accepting unknown requirements. A full provider/usage replay covers it.

The registry covers job-authoritative source metadata, not compute capabilities. No capability heartbeat is added: one upgraded replica cannot prove the absence of old workers. New semantic readers still deploy first. A pre-guard worker may omit copies; the reader recovers registered markers from the job. No production access, deploy, merge, requeue, account change, or flag change. #25617's alerting and projection-drain files are unchanged.

Validation: 627 tests across 10 focused unit files pass in separate pytest processes via omi-heavy; new regressions cover real admission plus historical merger-copy behavior and successful alias projection/owner watermark advancement, canonical intake through scheduler/merge, wrong-copy refusal, unknown protocols/markers without log mutation, accepted-alias fallback refusal, kill switch, registry completeness, and actual GPU worker /metrics export. The lifecycle writer inventory also passes all 1899 cases through backend/test.sh after updating the reviewed field sites for centralized stamping. See the run record for final preflight/CI results. These are local synthetic transaction/state-machine checks, not runtime acceptance.

Pre-push also exposed an existing stale failure-class migration test: it copied a seed that now has a family while asserting the family was absent. Its temporary fixture now explicitly removes that field; the assertion and CLI behavior stay unchanged.

Scope panel: scope-20261117t172601-0ddf, launched before implementation. Review panel review-20261117t181832-92dc completed with all six findings triaged: five accepted and addressed (legacy stamping, positional/global completeness checks, operator response and null copies), one rejected because incapable workers must not reinterpret unknown protocols using old slot assumptions. The final source head is being validated after those fixes. No merge/deploy approval is implied.

Failure-Class: FC-mirrored-model-omits-new-member
Batch-State-Exit: Unsupported result protocol requirements remain result_ready with merge_pending=true and existing audio/result custody; a capable merger commits the same job without repair/requeue. Refusal attempts are counted; no terminal state, new queue, or timer is introduced.

Final CI follow-up: a pre-existing concurrency test passed every assertion but repeatedly billed a cold lazy lifecycle-module import to its 1-second call-phase CPU budget. A module-scoped test fixture now loads that same real lifecycle owner during setup, matching the duration guard's documented exclusion of per-process import work. Actual transaction/reconcile code, assertions, production V3 behavior, rollout flags and CPU limits are unchanged. All 26 tests pass canonically; the previously slow call measured 0.14 CPU seconds locally.

Failure-Class: FC-mirrored-model-omits-new-member
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T18:18:26.445833Z
We couldn’t complete this review. Comment @codex review to try again.
8b9c254 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level
Git-on-my-level merged commit 4acf143 into main Nov 17, 2026
66 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/result-protocol-codeploy branch November 17, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant