Skip to content

fix(openai): enforce bounds on every realtime final transcript - #118928

Merged
steipete merged 3 commits into
mainfrom
codex/qa0803-openai-realtime-final-transcript-boundary
Aug 3, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/qa0803-openai-realtime-final-transcript-boundary

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enforce the existing 256 KiB UTF-8 aggregate transcript limit before emitting every OpenAI realtime transcription final, including missing and not-yet-committed item IDs
  • reuse the existing producer-owned guard after duplicate rejection and same-item partial release; preserve legitimate shipped no-ID/precommit finals, reconnects, terminal ordering, and exact-limit multibyte input
  • retain the separate 16 MiB shared WebSocket transport limit for legitimate provider messages

Actual production RED → GREEN evidence

{"actualProductionProvider":true,"providerSocketMaxPayload":16777216,"declaredTranscriptCap":262144,"before":[{"scenario":"missing_final_item_id","inboundTranscriptBytes":262145,"emittedTranscriptBytes":262145,"rejected":false},{"scenario":"uncommitted_final_item_id","inboundTranscriptBytes":262145,"emittedTranscriptBytes":262145,"rejected":false},{"scenario":"committed_control","inboundTranscriptBytes":262145,"rejected":true}],"after":{"oversizedMissingIdRejected":true,"oversizedUncommittedIdRejected":true,"oversizedCommittedIdRejected":true,"exactLimitUtf8Accepted":true,"sameItemPartialReleasedBeforeAccounting":true,"retainedSiblingAggregateRejected":true,"duplicateFinalIgnored":true,"explicitReconnectRecovers":true},"externalNetworkAttempts":0}
  • The actual production provider and shared runtime use a synthetic in-memory WebSocket; no credentials or remote requests.
  • Original owner regressions: 3 failing → 8/8 focused bounds + 33/33 existing provider tests passing.
  • Installed ws 8.21.1 source and shipped beta behavior inspected directly.
  • Exactly one independent structured Sol/high/P1 formal review: clean, confidence 0.94.
  • Production delta: zero lines (existing guard moved, not duplicated).

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P1 High-priority user-facing bug, regression, or broken workflow. labels Aug 3, 2026
@steipete
steipete merged commit 665b478 into main Aug 3, 2026
86 checks passed
@steipete
steipete deleted the codex/qa0803-openai-realtime-final-transcript-boundary branch August 3, 2026 20:56
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main:
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)

# Conflicts:
#	qa/scenarios/runtime/docker-package-install.yaml
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…-worker-update-20260803

* origin/main: (48 commits)
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)
  test(agents): prove process control roundtrip (#118843)
  test(qa): add memory redaction boundary coverage (#118916)
  fix(kilocode): model discovery overstates the usable context window (#118868)
  fix(media): isolate generated-provider text from delivery directives (#118780)
  test(gateway): add node control-plane QA coverage (#118784)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: openai maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant