Skip to content

fix: recover language-guarded batch units with an independent recognizer - #23651

Merged
Git-on-my-level merged 20 commits into
mainfrom
lane/langfix
Oct 26, 2026
Merged

Git-on-my-level merged 20 commits into
mainfrom
lane/langfix

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Language-guarded batch units skip Parakeet, then recovery and paid redrive both call Modulate. A second empty Modulate answer supplies no independent evidence and leaves accepted speech without a transcript.

Recovery now uses at most one independent Soniox async attempt after guarded Modulate fails. Words follow normal ordered projection. Two validated empty providers authorize silence only below one strict-VAD frame (512 original samples / 32 ms). Unknown VAD, provider error, a full frame or words contradicting zero VAD retain custody. Receipts retain provider, outcome, word count and measured VAD; the T2 census keeps max(prior,new) across worker, ordinary/paid recovery, saved replay, legacy operator disposition and shadow settlement/reaping. Legacy no-provider tools cannot bypass guarded recognition. Epoch 1 and spent Modulate epoch 2 remain immutable; exact-ID independent recovery requires a new --independent-language --paid-epoch 3 digest. General prerecorded/PTT routing is unchanged.

Serving awaits Soniox HTTP/polling outside the shared sync executor, releasing the shared STT semaphore between requests. Short fenced continuations/setup/validation use existing executors; no transaction remains open during provider waiting. Cancellation or ambiguous replies cannot repeat the paid submission. The private operator CLI keeps its synchronous driver; existing primary Modulate execution is unchanged.

Spend is bounded by a hard 60-second/unit cap, one independent submission across automatic/operator attempts, a company-funded allowance recheck and no paid POST retries. The kill switch defaults off under lead ruling404ca5; explicit true enables it and false is rollback without releasing held obligations. Incremental public-rate Soniox estimate: $0.000556/20 s, $0.001667/60 s, approximately $0.004904 for the ten RCA units (pricing); actual billing is token-based. Fresh zero-VAD guarded units also buy Modulate: combined estimate $0.000722/20 s or $0.002167/60 s. Development made zero STT vendor calls.

Validation:

  • All 26 explicit targeted files passed through backend/test.sh: 938 cases, 3 existing opt-in historical replay skips, with the corrected contract file rerun. Final affected route/runtime/drain rerun: 87 passed.
  • Additional explicitly enabled slow budget-ratchet: 11 passed; Soniox async: 9 passed; drift inventory: 32 passed. CI-found tiny real timeout and stale live-only inventory causes were reproduced and fixed without allowlist exceptions.
  • Hermetic e2e: 135 passed, 3 skips, 2 expected failures. Hermetic deployment preflight: 348 tests and 36 source-admission tests passed, dev/prod manifest/workflow/render/source validation clean. No live preflight.
  • Mandatory final push gates passed: preflight, zero type errors, 19-image source closure, dev/prod env validation and 20 selected changed-file suites.
  • Luna SHIP/no findings for runtime at 1e86886e501 and subsequent test-only delta at c03d57c3e1e. The final one-line live-only inventory shrink is accepted without another review by lead ruling a90867. Runtime code matches the reviewed source.
  • GitHub Checks owns final CI status at 68f2642caa94ef26cc68359bfd3a7fc542aa08d5. Merge requires terminal green checks, including all six backend shards, guardrails, unit suite and hermetic e2e; earlier-head results are not acceptance.

David approved the existing SONIOX_API_KEY production backend-integration binding (lead ce5485), included here without payload, IAM or workflow changes. Dev stays unbound. The final metadata correction removes that now-sourced service from the live-only inventory while preserving the other services. Op1 verifies live pre-bind and existing service-account accessor permission before deployment; any needed IAM grant stops for separate approval. Missing key refuses before the independent claim.

Lead owns merge. Op1 owns CPU recovery-role deployment, aligned worker chart controls and the same-source operator CLI; a GPU-only roll cannot activate this fix and GPU gets no Soniox credential. Lead owns the 2026-10-26 morning activation/ramp decision: align CPU/worker flags, canary one exact-ID epoch-3 unit, require clean T1/T2/T4, then explicitly expand the approved ten-unit prefix. A failed-held canary stops. Admission stays at its separately approved percentage; an unactivated path is a 06:00Z blocker to report.

Limits: <32 ms is a conservative VAD-resolution proposal supported by synthetic boundary tests, not labeled false-positive or language evidence. The measured 64 ms, 320 ms and 4.384 s units remain held if Soniox is empty, so re-ramp is not promised. No supported exact-window legacy transcript adapter exists; zero of ten units is confirmed legacy-resolvable. Temporary vendor resources have bounded best-effort cleanup; crash/lost acknowledgement can retain them until documented 30-day expiry. No user audio/transcripts, production account data or secret payloads were read, and no production writes occurred.

Product invariants: INV-DATA-1, INV-MEM-4. Owner, privacy generation, ledger, paid token and original audio custody remain fenced; vendor input is canonical audio without user identifiers. See operator runbook and owning contract.

Failure-Class: FC-empty-asr-without-evidenced-disposition

Failure-Class: FC-empty-asr-without-evidenced-disposition
Separate recognizer calls from recovery orchestration, register spend controls,
and bind explicit independent plans to preserved paid intents.
Separate recognizer calls from recovery orchestration, register spend controls,
and bind explicit independent plans to preserved paid intents.
Separate recognizer calls from recovery orchestration, register spend controls,
and bind explicit independent plans to preserved paid intents.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T04:34:56.853169Z 1e86886 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.

@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: 203dcc7e47

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

Comment thread backend/utils/stt/soniox_batch.py Resolved
Run both recognizers before a guarded silence disposition, retain recognized
words that contradict VAD, and reuse valid-empty evidence from either spent
Modulate epoch. Preserve funding, duration and at-most-once intent fences.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Update the scoped CLI fixture for independent-mode selection and verify the
metadata-only dry run, exact approved prefix and replay without paid dispatch.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Carry #23652's baseline recap test correction as directed by lead ruling280f41.
Check the existing Soniox dependency before claiming its sole attempt. A
missing key records refusal and permits explicit recovery after configuration
is corrected, while uncertain submitted calls remain spent.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Share the held-only Soniox model and credential contract with runtime and
deployment validation. Preserve typed language failures in shadow handoff,
mirror the guarded two-recognizer disposition, and retain measured receipts.

Document the pipeline and pin recovery-role activation off pending the
separate service-access approval required by lead ruling 01d584. No secret
binding or access mutation is included.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Declare the non-secret recovery kill switch as configuration so its
approval-blocked runtime overlay passes the deployment boundary guard.

Failure-Class: FC-empty-asr-without-evidenced-disposition

@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: 21268058cd

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

Comment thread backend/utils/stt/soniox_batch.py Resolved
Keep worker and later CPU VAD evidence monotone across prepared refusals,
recognizer writes and failed settlement. Preserve provider-local measurements
separately, and refuse fresh or saved silence when retained evidence is
unknown or above the silence threshold.

Align the worker kill-switch declaration with the approval-blocked CPU role,
and exercise the actual cross-service reader-split guard without exceptions.
Lead rulings 3e5f68 and c42440 authorize the narrow third review of this delta.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Share the silence/disposition fence across ordinary and independent recovery,
paid redrive, no-provider and terminal disposition, and shadow settlement.
Pass validated result measurements into atomic settlement so genuine saved
zero results reconcile without erasing prior positive evidence. Retain new
higher evidence even when completion is refused, after ownership fences.

Prevent legacy guarded disposition from bypassing independent recognition.
Add thirty synthetic path/race/replay regressions and preserve completed
history. Lead ruling 356a09 authorizes the final narrow fourth review.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Suspend the fenced recovery continuation while serving awaits async Soniox
requests and polling. Preserve one-submit custody across cancellation, retain
worker-mode VAD measurements, and default activation off. Include the approved
production recovery-service secret reference without changing IAM.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Suspend the fenced recovery continuation while serving awaits async Soniox
requests and polling. Preserve one-submit custody across cancellation, retain
worker-mode VAD measurements, and default activation off. Include the approved
production recovery-service secret reference without changing IAM.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Suspend the fenced recovery continuation while serving awaits async Soniox
requests and polling. Preserve one-submit custody across cancellation, retain
worker-mode VAD measurements, and default activation off. Include the approved
production recovery-service secret reference without changing IAM.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Suspend the fenced recovery continuation while serving awaits async Soniox
requests and polling. Preserve one-submit custody across cancellation, retain
worker-mode VAD measurements, and default activation off. Include the approved
production recovery-service secret reference without changing IAM.

Failure-Class: FC-empty-asr-without-evidenced-disposition
Suspend the fenced recovery continuation while serving awaits async Soniox
requests and polling. Preserve one-submit custody across cancellation, retain
worker-mode VAD measurements, and default activation off. Include the approved
production recovery-service secret reference without changing IAM.

Failure-Class: FC-empty-asr-without-evidenced-disposition
The approved production backend-integration Soniox binding is now in source.
Remove only that service from the live-only ratchet entry, preserving the
backend, sync and backfill inventories.

Failure-Class: FC-empty-asr-without-evidenced-disposition
@Git-on-my-level
Git-on-my-level merged commit a22be07 into main Oct 26, 2026
74 of 76 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/langfix branch October 26, 2026 05: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