Skip to content

config(sync): turn the future-capture clamp on in prod (SCA-3501) - #26025

Merged
Git-on-my-level merged 2 commits into
mainfrom
config/sync-future-capture-clamp-on
Nov 22, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
config/sync-future-capture-clamp-on

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What

Turns SYNC_FUTURE_CAPTURE_CLAMP_ENABLED on in prod: one key, every surface that declares it. Dev stays off.

WAL recordings dated more than 24 h ahead are then recovered (the capture time is clamped) instead of refused with invalid_capture_time.

Rendered diff: one key per surface

Surface Before After
gke/backend-listen (overlay and prod_omi_backend_listen_values.yaml) false true
cloud_run backend false true
cloud_run backend-sync false true
cloud_run backend-integration false true
cloud_run backend-sync-backfill false true
cloud_run backend-projection-pump false true

Changes:

  • backend/deploy/runtime_env.yaml, regenerated with compose_runtime_env.py: 6 prod lines, value only, category still rollout.
  • backend/docs/feature-flag-registry.md, regenerated.
  • The validator test now asserts on for all 6 prod readers and the listen chart, and off for all 5 dev readers.

Also in this PR, after panel review:

  • the flag-budget entry is renewed to 2026-11-29 with the enablement reason; it expired today and would have failed test_flag_budget.py on every branch from 11-23;
  • the registry row summary and notes now state prod on and dev off;
  • the future-capture change note now records the prod-only scope;
  • the test renders each host's real manifest entry.

No other key changes.

Why now

David's 2026-11-21 decision (Shipping, survey item 17): turn it on for all users in one change, once every reader and admitter serves clamp code. That gate was verified on SCA-3501 at 06:11–06:14Z:

  • The four Cloud Run services each serve one 100% revision with no traffic tags, built from clamp-qualified sources a1a8b2d, d9be505, b45a0c9 and fb6048c.
  • Listen runs 22 Ready pods on 96f0631, and the batch workers run clamp code.
  • backend-projection-pump, the fifth Cloud Run reader: backend-projection-pump-e13f6a6-44936391941-1 takes 100% of traffic with no tags, image sha256:8e3445476bdac812…, source e13f6a68b34f. Read on ro-prod at 06:35Z.
  • Ancestry: fix(sync): accept recordings stamped with a future date as unknown-date uploads instead of refusing them #25401 (merged as fa4a99af) is an ancestor of all five Cloud Run sources (a1a8b2d, d9be505, b45a0c9, fb6048c, e13f6a6), checked with git merge-base --is-ancestor.
  • The provider-STT queue was inventoried in full: 360,358 tasks, all aimed at backend-integration, with no URI override.
  • The pre-clamp epoch-3 redrive is dormant, with a recorded relaunch restriction.

The go-ahead is on SCA-1819 and expires 2026-11-23T00:00Z.

Kill switch and rollback

Set 'false' on the same lines (overlay and listen chart) in one config train. Recordings already admitted are kept after rollback; test_sync_receipt_clock_anchor covers that.

Readback (SCA-3501)

invalid_capture_time refusals per hour before and after, target about 0, and no new sync 5xx. A 24 h guard is run by Release.

Verification

  • pytest tests/unit/test_backend_runtime_env_validator.py tests/unit/test_flag_budget.py: 327 passed.
  • scripts/check_feature_flag_registry.py: OK.

Runtime-manifest change: INV-MEM-4 (the manifest is the source of serving env; overlay and chart both carry the value).

🤖 Generated with Claude Code

Git-on-my-level and others added 2 commits November 22, 2026 13:16
One key on every prod reader and admitter (listen + 5 Cloud Run services);
dev stays off. Rollback: 'false' on the same lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cope (panel F2/F3/F5/F6)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 64bda87 into main Nov 22, 2026
68 checks passed
@Git-on-my-level
Git-on-my-level deleted the config/sync-future-capture-clamp-on branch November 22, 2026 07:33
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