Skip to content

fix(deploy): declare finish backoff off for prod integration and sync (SCA-2283) - #25320

Merged
Git-on-my-level merged 3 commits into
mainfrom
fix/finish-backoff-off-prod-config
Nov 14, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
fix/finish-backoff-off-prod-config

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Why

BATCH_PROJECTION_FINISH_BACKOFF_ENABLED was turned off in production at 19:41Z on 2026-11-14 (revision backend-integration-provfix-off1114) by the SCA-2175 owner on its 5xx-doubling trigger, and the push captain ruled that it stays off (SCA-2173, SCA-2222, SCA-2283). Main still declares it 'true' for prod backend-integration and backend-sync since #25307, so the next deploy rendered from the repo would turn it back on. This PR makes the repo say what production runs.

The flag saved nothing while it was on (17:11Z to 19:41Z): every finish row on backend-integration is an async-policy row, and those are never deferred. Finish rows read stayed at 63k to 69k per five minutes and completions stayed at 0. The real fix is #25314 (SCA-2280).

What changed

  • backend/deploy/runtime_env/prod.overlay.yaml: the binding is 'false' (category rollout) for backend-integration and backend-sync. It stays declared, not removed, so an operator value cannot silently differ from the repo.

  • backend/deploy/runtime_env.yaml, backend/docs/feature-flag-registry.md: regenerated.

  • config/feature-flags.yaml: the flag's record says terminal off, with a dated note. Its ramp stays in the record because the registry check requires one on a pending rollout row; the note says it is suspended. Whether to remove the flag is decided after the SCA-2280: skip async receipts in the projection finish sweep #25314 readout.

  • backend/tests/unit/test_render_backend_runtime_env.py: the pin moves from 'true' to 'false' on those two services; absent everywhere else, as before.

  • prod.overlay.yaml forbidden_env for backend and backend-sync-backfill: the flag is on the removal list. Both services still serve a hand-set true from 2026-11-13 (read from the traffic-receiving revisions at 20:26Z). Deploy merges env, so leaving the key undeclared would keep it. Neither service runs the finish sweep, so the value is inert there; this makes the repo and production agree. The test pins the removal.

What did not change

No code path. The code default was already off. No other environment. On backend and backend-sync-backfill the only change is removing an inert leftover.

Tests

tests/unit/test_render_backend_runtime_env.py and tests/unit/test_backend_runtime_env_validator.py pass; both generator --check commands pass.

Rollout

Rides Train 2 (cut-off 01:00Z on 2026-11-15). After it serves, the cost owner reads the value back from the revisions receiving traffic on both services. To turn it on again: set it 'true' here; nothing else is needed.

Product invariants affected

  • INV-MEM-4

Named because backend/deploy/runtime_env.yaml changes. This PR changes one batch-projection binding and touches no memory intake, consolidation, promotion or privacy TTL setting; INV-MEM-4 behaviour is unchanged.

Failure-Class: FC-deploy-literal-reverts-operator-value

🤖 Generated with Claude Code

Git-on-my-level and others added 3 commits November 15, 2026 02:59
Production turned BATCH_PROJECTION_FINISH_BACKOFF_ENABLED off at 19:41Z on
2026-11-14 and the ruling is that it stays off (SCA-2283). Main still said
true since #25307, so the next rendered deploy would have turned it back on.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The flag record still said terminal on with a ramp to 100 percent, which
contradicted the production overlay now that the flag is kept off by ruling
(SCA-2283). Review finding on #25320.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…kfill

Both services still serve a hand-set true from 2026-11-13. Deploy merges env,
so leaving the key undeclared would keep it. Listing it in forbidden_env makes
the next deploy remove it (release owner's finding on SCA-2283).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit bc8406d into main Nov 14, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/finish-backoff-off-prod-config branch November 14, 2026 21:10
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