Skip to content

SCA-3503: Retire three inactive margin levers - #25913

Merged
Git-on-my-level merged 2 commits into
mainfrom
agent/multica-worker-1-codex-sol/25e2a2093cab
Nov 21, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
agent/multica-worker-1-codex-sol/25e2a2093cab

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • Retire the Soniox idle cohort and its three treatment settings. Listen now uses the fleet idle policy for every session. SONIOX_IDLE_CLOSE_SECONDS and the aggregate connected-seconds metric remain available.
  • Remove synchronous projection finish deferral. The independently gated async finish-page classification still uses the shared finish clock, its backfill marker, and its index.
  • Use capture-order merge polling on Firestore, Postgres, and the simulator. Remove the production worker Helm override and use the Cloud Run removal list to clear stale settings on the next deployment.

Invariants

INV-MEM-4. Projection receipts, privacy fences, and memory promotion authority follow the existing paths.

Batch pipeline tuning

The fresh merge poll limit stays at 32 before and after. The pending-page limit stays at 160 before and after, and the first-pending limit stays at 1.

Verification

  • Targeted backend unit and configuration suites passed, including Cloud Run canary composition, Helm rendering, and the Firestore query guards.
  • Targeted store conformance on the simulator and local Firestore emulator passed. Postgres SQL unit checks passed. A live Postgres test backend was unavailable.
  • After deploy, verify the retired keys are absent from the serving revisions. Compare listen connected seconds and projection and merge poll reads against normal variation. Roll back by reverting the PR.

View guided diff Turn on auto-fix

@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-21T04:45:03.285138Z a6a7848 PR opened
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a6a7848865

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

class ListenReceiver(ReplayFilterMixin):
def __init__(self, host: Any, channel_configs: List[ChannelConfig], channel_id_to_index: Dict[int, int]):
self.soniox_idle_budget = SonioxIdleBudget(uid_provider=lambda: host.request.uid)
self.soniox_idle_budget = SonioxIdleBudget()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required listen pipeline change note

This retires the session-specific Soniox idle policy and its experiment telemetry, but the commit adds no note under backend/docs/listen_pusher_pipeline/changes/. The applicable backend/AGENTS.md explicitly requires a same-PR change note for audio, transcription, and listen/pusher WebSocket changes. Add a dated note describing the retirement, retained fleet policy, rollout state, and supporting evidence; removing the old env contract from the pipeline document does not satisfy that separate requirement.

AGENTS.md reference: backend/AGENTS.md:L164-L164

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 8c5ef38 into main Nov 21, 2026
66 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/multica-worker-1-codex-sol/25e2a2093cab branch November 21, 2026 13:37
Git-on-my-level added a commit that referenced this pull request Nov 22, 2026
## What changed and why

SCA-3688 retires the three inactive controls with terminal kill
decisions.

- DEC-BTR-001 removes live Parakeet window diarization configuration.
The offline shape qualification harness explicitly opts into the
existing speaker embedding path.
- DEC-STT-006 removes the Soniox elapsed-axis experiment. The compact
send map remains authoritative for placement, including when the wire
ledger is disabled. Managed Soniox capture-axis diagnostics, the
Modulate control measurement, and prerecorded Soniox are preserved.
- DEC-STT-005 removes the dedicated Soniox reconnect ring and flag-only
death typing. The strike-accounting fixes in #22734 and #23771 are on
main. Shared window replay, cross-provider recovery, and the separate
idle reopen path are preserved.

Read-only production sampling confirmed inactive control values across
listener, pusher and Cloud Run surfaces. Compact placement remains the
incumbent path for both wire-ledger settings. Regenerated the runtime
manifest and flag catalog from their sources. #25913 covers separate
Soniox controls.

## Product invariants affected

- INV-MEM-4 is selected for the listen receiver path. This change
preserves conversation ownership and operates on inactive STT provider
paths.

## How it was verified

- Feature-flag registry check at 2026-11-22, 109 registry fixtures, and
generated runtime manifest check passed.
- Repository preflight passed 55 checks. The bounded pre-push gate
passed backend type checking, its 40 selected unit files, and the
OpenAPI compatibility check. GitHub CI covers the full selector.
- The candidate passed 152 selected backend unit files, including the
flag budget and reason-label ratchets, managed and legacy replay, live
demand switching, real Soniox WebSocket closure, wire-ledger on/off
placement, and offline speaker qualification under both legacy toggle
values.

## Release ordering

Land #26007 (SCA-3683) first. The source registry merges cleanly.
Regenerate the catalog from the combined source after rebasing this PR.
Release owns merge and rollout.

## UI evidence

UI-Evidence: none -- backend STT and flag cleanup

## Failure class (fixes)

Failure-Class: none

Line-Count-Exception: backend/utils/stt/parakeet_window.py | 1545 ->
1547 | Explicit offline qualification argument keeps the live default
disabled and preserves existing qualification coverage.
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