Repository navigation
fix: make result metadata safe across stale merger images - #25622
Merged
Merged
Conversation
Failure-Class: FC-mirrored-model-omits-new-member
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Failure-Class: FC-mirrored-model-omits-new-member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_markerson 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_ENABLEDdefaults 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.