Skip to content

config(listen): pin privacy writer, packing and backfill cap to live behaviour for the listen roll - #25954

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/listen-pin-preserve
Nov 21, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/listen-pin-preserve

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

backend-listen still serves backend:44d0a4f (18 Nov). On current main, the listen values would switch three things on at the next listen roll (SCA-3516). Release's installed preflight refuses all three. This PR pins each one by effect, so the roll preserves today's behaviour. Shipping ruled at 2026-11-21 13:25Z on SCA-3516 that no activation rides the listen roll.

Key What 44d0a4f does today Main without this PR Pinned Why the pin matches
BATCH_ACCOUNT_PRIVACY_WRITER_ENABLED Nothing. The account privacy writer (database/batch_account_authority.py, kill switch in config/policy/kill_switches.py) is not in 44d0a4f. true (kill switch default on) false false keeps the legacy writer routing that 44d0a4f has. A first activation on listen is a custody decision (David).
BATCH_PIPELINE_PACKING_SAMPLE_RATE Nothing. config/batch_pipeline_packing.py is not in 44d0a4f. 0.001 0 sample_rate() accepts 0, and packing_counterfactual gates on bool(sample_rate()), so 0 means no sampling.
UNLIMITED_V2_BACKFILL_HOURS_CAP_ENABLED The cap exists in 44d0a4f and its chart renders "false" (live: false). true (#25677) false Same as live. Listen also admits sync backfill uploads (/v2/sync-local-files), so listen admission stays uncapped exactly as today; Cloud Run sync stays capped. Capping listen is the follow-up below.

Rotation: CONVERSATIONS_V3_RECORDING_ROTATION already renders off, with CONVERSATIONS_V3_ROTATION_MIN/MAX_SECONDS at 180/300. rotation_seconds() reads those two values only at routers/listen/conversations.py:1273 and :1412, and both calls sit behind recording_rotation_enabled(). With rotation off, nothing reads them. 44d0a4f does not contain #25726.

Changed: prod overlay backend/deploy/runtime_env/prod.overlay.yaml (gke/backend-listen), the regenerated backend/deploy/runtime_env.yaml, the listen prod chart values, the regenerated flag registry doc, the listen contract doc line, a change note under backend/docs/listen_pusher_pipeline/changes/, and the backfill-cap validator test. The test now carries a dated exception for prod backend-listen and asserts all three pins on both the composed manifest and the listen chart. The floor is kept at >= 5 surfaces.

Follow-up after the listen roll

This is a cost-control item: listen backfill admission is uncapped today and stays so until then. Turn the backfill cap on for listen as its own config change: David's 2026-11-18 support-packet decision 13 intends it on for every prod surface. Then remove the test exception. The privacy writer on listen stays off until David decides it.

Verification

  • bash test.sh changed-file selection under bin/omi-heavy: passed (rc 0). tests/unit/test_backend_runtime_env_validator.py: 300 passed.
  • Release's installed preflight render is the acceptance check at the exact head.

Product invariants affected

  • INV-MEM-4: the change touches a locked deploy path (runtime manifest) but changes no memory intake or promotion behaviour. Each value is pinned to what the serving listen image already does, and no code path changes.

Rollback

Revert this PR. The listen roll itself rolls back with mode=rollback to the prior Helm revision.

🤖 Generated with Claude Code

…behaviour for the listen roll

backend-listen still serves 44d0a4f (18 Nov). Main's listen values would
switch on three things at the roll (SCA-3516); this pins each by effect:

- BATCH_ACCOUNT_PRIVACY_WRITER_ENABLED=false: 44d0a4f has no account
  privacy writer, and on a current image the kill switch defaults on.
  A first activation on listen is a custody decision (David).
- BATCH_PIPELINE_PACKING_SAMPLE_RATE=0: 44d0a4f has no packing
  observation; 0 disables it (sample_rate() accepts 0, bool(0.0) is off).
- UNLIMITED_V2_BACKFILL_HOURS_CAP_ENABLED=false: 44d0a4f has the cap and
  runs it false; sync uploads go to backend-sync, where it stays on.
  Turning listen on is its own config change after the roll.

Rotation already renders off with 180/300 bounds; those bounds are read
only by rotation_seconds(), called only when rotation is enabled.

Rollback: revert this commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T13:57:36.163888Z fc7e639 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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 and others added 2 commits November 21, 2026 20:41
# Conflicts:
#	backend/docs/feature-flag-registry.md
Correct the cap rationale (listen also admits sync backfill uploads, so
it stays uncapped exactly as today), assert the privacy-writer and
packing pins on the manifest and chart, keep the >=5 surface floor,
fix rollback wording, update the contract doc and add a change note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 36c811d into main Nov 21, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/listen-pin-preserve branch November 21, 2026 14:22
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