Repository navigation
chore(batch): diagnose projection follow-up failures and verify cooldown recovery - #25135
Conversation
Failure-Class: none
|
Verdict: safe, well-scoped diagnostics change — the hashed-correlation design is right and I verified the tests; no blocking findings. What I verified on this head:
Security/privacy: strictly improves log hygiene — correlation no longer requires raw source IDs, and the new tests pin that guarantee. USER IMPACT: none — internal change; it makes batch-pipeline production failures diagnosable without exposing user data in logs. Still wanted: nothing material. Once this leaves draft it looks merge-ready from my side unless new commits land. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
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. |
Follow-up failures currently log only
blockedor an exception type/site. A production investigation cannot associate those failures with its persisted receipt, so it cannot distinguish discovery delay from a repeatedly refused follow-up. Add a stable, hashed unit key to existing failure/timeout logs and reuse the closed projection/privacy reason helpers. Source IDs, exception messages, audio URLs and transcript text remain out of these logs. Scheduling, retry budgets, privacy fences and stored data are unchanged.The Firestore timeout-recovery fixture also expected an immediate retry through intentional cooldown. Use a controlled monotonic clock to prove preservation before the deadline and completion at the deadline, including lost replies after commit.
Related to #24768. This closes the diagnostic and verification gaps only; it does not repair the customer's backlog or enable the separately controlled producer-lease rollout. Keep the incident open. After a separately approved deployment, the correlated failure identifies the exact follow-up refusal; an approved operator can use the existing bounded projection-repair workflow without bypassing deletion/privacy fences.
Product invariants affected
none — additive failure diagnostics and tests only; no mutation or scheduling contract changes.
Failure class
Failure-Class: none
UI evidence
UI-Evidence: none -- backend diagnostics only
Line-Count-Exception: backend/utils/batch_pipeline/projection_followup.py | 515 -> 535 | Attach hashed correlation and existing closed reason/source-site helpers at the four existing failure log sites; no new scheduling authority or retry path.
Validation
make preflightpassed all 37 selected checks; the normal pre-push hook passed with 0 backend type errors and 42 focused tests. The existing operator repair-plan suite also passed all 17 cases; no production repair was run.7168f93ede05390ec3097193c70db576761ddf9b. Code CI passed: all 8 backend unit shards and slow guardrails, Firestore emulator proofs, hermetic E2E, listen/pusher and sync Cloud Tasks stack gauntlets, CodeQL, hygiene, formatting and metadata validation. Unaffected mobile/web/desktop jobs are path-filtered skips, not executed tests. The PR remains draft; this diagnostic patch does not complete the remaining production investigation.Emulator command (Python 3.11):
FIRESTORE_EMULATOR_HOST=127.0.0.1:8476 GCLOUD_PROJECT=demo-omi-24768 GOOGLE_CLOUD_PROJECT=demo-omi-24768 OMI_ENV_STAGE=local python -m pytest -p no:langsmith_plugin tests/integration/test_server_batch_completion_emulator.py tests/integration/test_batch_pipeline_projection_followup_firestore.py -q.Only synthetic accounts and a loopback Firestore emulator are used in tests; Redis advisory claims use fakeredis. No production recovery, deletion, deployment, flag change or customer message was performed.