Repository navigation
SCA-3909: fix(batch): memoize deterministic decode failures on the sampled upload path - #26147
Merged
Git-on-my-level merged 1 commit intoNov 23, 2026
Merged
Conversation
…ad path The intake memo gate recognized only phase 'decode', but a sampled upload (unknown-multilingual admission) advances the same decoder under phase 'sample_decode' before anything is staged, so its deterministic decode failures returned the retryable 503 uncached and every retry re-decoded the same bytes. Include 'sample_decode' in the gate; the probe phase classifies already-decoded audio, so no decoder fault can surface there. Regression tests: the sampled path stores the memo and the retry answers the same 503 without linking a sample or invoking the decoder; the existing kill switch keeps repeating the decode when off.
Codex Review Summary: ✅ CompletedThis 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. |
Git-on-my-level
deleted the
agent/omi-control-hermes-glm-5-3/4cbe099ae258
branch
November 23, 2026 18:37
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.
Multica: SCA-3909.
Failure-Class: none
Line-Count-Exception: backend/utils/batch_pipeline/intake.py | 1499 -> 1505 | the memo-gate comment documents why the sampled decode phase is memoizable and the probe phase is not
What
Luna's R2 review of the 24h-push decode-memo fix (SCA-2229, #25302) found a P2 that never landed: the intake memo gate recognized only phase
decode, but a sampled upload (unknown-multilingual admission, legacy still on) advances the same decoder under its own phasesample_decodebefore anything is staged. A deterministic decode failure there returned the retryable 503 uncached, so every retry of bytes that cannot decode linked a fresh private sample and decoded them again.backend/utils/batch_pipeline/intake.py— the gate now admitssample_decodebesidedecode. The probe phase (language_probe) classifies already-decoded audio, so no decoder fault can surface there; it stays out of the gate.backend/tests/unit/test_batch_intake_decode_failure_memo.py— the fixture is parameterized (user row + legacy mode); a newsampled_worldruns the unknown-multilingual admission. The regression test proves the sampled path stores the memo and the retry answers the byte-identical 503 without linking a sample directory or invoking the decoder; the kill-switch test provesSYNC_RECORD_DECODE_FAILURE_MEMO=offstill repeats the decode.Contract
_sync_unavailable_response()on both the hit and the miss path; no new status, headers or body.SYNC_RECORD_DECODE_FAILURE_MEMOkeeps its default-on state and its off-switch semantics; the memo key, 300 s TTL and NX write are untouched._cached_decode_refusal), so only the write gate changed.Evidence