Skip to content

chore(flags): turn off BATCH_HELD_POLL_SKIP_ENABLED and renew its review - #25649

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/heldpollskip-review
Nov 18, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/heldpollskip-review

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Why

BATCH_HELD_POLL_SKIP_ENABLED (owner firestore-lead) has review_by: 2026-11-18 in backend/config/flag_budget.json. After 2026-11-19T00:00Z, test_flag_budget.py::test_pipeline_env_surface_holds_its_budget fails on main and blocks every train. Separately, the prod overlay ran it true on all four workloads while its registry entry requires owner approval after replay and index readiness, an integration-first ramp, and terminal-loss/SLA/read and D+2 settled-SKU gates. None of that was recorded.

Change

  • backend/deploy/runtime_env/prod.overlay.yaml: BATCH_HELD_POLL_SKIP_ENABLED true -> false on backend, backend-sync, backend-sync-backfill and backend-integration. This is the documented rollback: OFF restores the exact old query/read sequence, no migration.
  • config/feature-flags.yaml: record the 2026-11-18 gate results and the decision in the registry notes.
  • backend/config/flag_budget.json: renew review_by to 2026-12-02 with the reason.
  • Regenerated backend/deploy/runtime_env.yaml and backend/docs/feature-flag-registry.md; updated the render pin in test_render_backend_runtime_env.py.

Gate results (2026-11-18)

Verified:

  • All four prod/dev capture-first poll indexes READY (gcloud firestore indexes composite list).
  • scripts.batch_pipeline_poll_state_census PASS (0) on prod and dev.

Not recorded or not met:

  • Query replay and real query plans.
  • Integration-first ramp (it was enabled on all four at once).
  • Terminal loss zero, held/summary SLA flat, caller reads per admitted audio-hour, D+2 settled SKU.

Contract

Config and registry only. No code path, reader or data change. OFF is the existing kill switch and restores the old queries.

Product invariants affected

  • INV-MEM-4

Test

pytest tests/unit/test_flag_budget.py tests/unit/test_render_backend_runtime_env.py tests/unit/test_backend_runtime_env_validator.py tests/unit/test_batch_terminal_poll_skip.py -> 482 passed.

compose_runtime_env.py --check, render_feature_flag_registry.py --check and check_feature_flag_registry.py pass.

Note: the first commit also renews SYNC_EARLY_CAPTURE_CLAMP_ENABLED (same change as #25647) so this branch is green on its own. If #25647 merges first, that commit will be dropped on rebase.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

review_by 2026-11-17 lapsed, so test_flag_budget.py fails on main and
blocks every train. Default-on ops kill switch; registry decision keep,
terminal keep. Renewed to 2026-12-16.

Failure-Class: none
The flag ran true on all four prod workloads without the recorded owner
approval its registry entry requires. Verified 2026-11-18: all four
prod/dev capture-first poll indexes READY and the poll-state census
PASS (0). Not recorded or not met: query replay, real query plans, the
integration-first ramp, terminal-loss zero, held/summary SLA flat,
caller reads per admitted audio-hour, and D+2 settled SKU.

Turn it off on backend, backend-sync, backend-sync-backfill and
backend-integration (documented rollback, no migration) and renew
review_by to 2026-12-02 for a recorded gated ramp.

Failure-Class: none
@Git-on-my-level
Git-on-my-level merged commit 393b21b into main Nov 18, 2026
58 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/heldpollskip-review branch November 18, 2026 03:14
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