Skip to content

test(xai): keep barge-in validation stable without truncate ack - #163530

Merged
RomneyDa merged 1 commit into
release/2026.9.8from
backport/2026.9.8-xai-vad-ack
Oct 2, 2026
Merged

RomneyDa merged 1 commit into
release/2026.9.8from
backport/2026.9.8-xai-vad-ack

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the 2026.9.8 xAI realtime voice live lane fails after a successful server-VAD barge-in when xAI omits the conversation.item.truncated confirmation event.

User Impact

User impact: 2026.9.8 release validation continues to verify audible interruption and resumed conversation without treating an optional provider acknowledgment as a product failure. There is no runtime behavior change.

Why This Change Was Made

This is the release/2026.9.8 backport of #163529. The affected test file was byte-identical on main and the release branch before the cherry-pick. The live test still requires xAI's input_audio_buffer.speech_started, OpenClaw's outbound conversation.item.truncate, local playback clearing, post-barge-in transcription, and continued response completion.

Evidence

  • Pre-fix release failure: xAI auth and the other live xAI capabilities passed; the barge-in case timed out only on the absent truncate acknowledgment after OpenClaw sent the truncate and cleared playback.
  • Main/release pre-fix test blob: identical (614bec2653c2ca64d59e8b834949dcec668b845e).
  • Main fix proof reused unchanged: 55/55 focused realtime voice tests passed in 31.12 s; the full changed-file gate passed; P1 AutoReview was scoped clean.
  • git diff --check origin/release/2026.9.8...HEAD: passed.
  • The exact authenticated live case was not rerun locally because the release xAI credential is not available to this checkout; hosted release validation remains the live proof owner.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 8:54 AM ET / 12:54 UTC.

ClawSweeper review

What this changes

The PR updates xAI voice release validation to allow a missing truncation acknowledgment while still checking interruption and continued conversation.

Merge readiness

✅ Ready for maintainer review

Keep this useful release-branch backport open. The change preserves meaningful interruption and continuation checks, introduces no identified correctness defect, and remains absent from the pinned main and latest release.

Priority: P2
Reviewed head: 4fc8434a435f9ccfbf6ca6862f35b91728c11c53

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent validator correction preserves meaningful coverage and has no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This bot-authored test-only backport is exempt from the external-contributor proof gate. It changes the live validator for the production xAI voice bridge; the body reports pre-fix hosted failure and focused tests, but no after-fix authenticated run. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored test-only backport is exempt from the external-contributor proof gate. It changes the live validator for the production xAI voice bridge; the body reports pre-fix hosted failure and focused tests, but no after-fix authenticated run. No stored-data contract changes.
Evidence reviewed 9 items Pinned introduced change: The merge-base-to-head patch removes only the conversation.item.truncated requirement and adds an explanatory comment; production code remains unchanged.
Remaining behavioral coverage: The complete live test retains server speech detection, an outbound truncate, playback clearing, absence of manual response cancellation, new user transcription, completion of the identified subsequent response, tool continuation, and reconnect context recall.
Production interruption owner: Server speech detection invokes the provider-owned interruption path, which sends truncation and clears playback directly without waiting for a truncation acknowledgment. Existing provider tests cover server-VAD truncation and playback clearing.
Findings None None.
Security None None.

How this fits together

The xAI plugin connects OpenClaw voice sessions to the provider’s realtime audio service. Its live validation sends spoken interruptions and checks the resulting transport events, playback clearing, transcription, and response completion.

flowchart TD
  A[Spoken interruption] --> B[xAI realtime service]
  B --> C[Server speech detection]
  C --> D[OpenClaw voice bridge]
  D --> E[Truncate history and clear playback]
  B --> F[Transcription and next response]
  E --> G[Live validation result]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 1 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 1 +2

Review metrics

None.

Technical review

Best possible solution:

Keep the release validator aligned with the provider’s interruption behavior while retaining transcription, response completion, and resumed-context checks.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: the existing predicate times out when the provider omits the acknowledgment despite satisfying the other interruption conditions. The authenticated provider scenario was not executed during this review.

Is this the best way to solve the issue?

Yes. Removing the acknowledgment dependency from the live validator matches the production interruption path and preserves the subsequent behavioral checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against cee0906f3877.

Labels

Label changes:

  • add P2: This is a bounded correction to xAI release validation with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored test-only backport is exempt from the external-contributor proof gate. It changes the live validator for the production xAI voice bridge; the body reports pre-fix hosted failure and focused tests, but no after-fix authenticated run. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded correction to xAI release validation with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored test-only backport is exempt from the external-contributor proof gate. It changes the live validator for the production xAI voice bridge; the body reports pre-fix hosted failure and focused tests, but no after-fix authenticated run. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head patch removes only the conversation.item.truncated requirement and adds an explanatory comment; production code remains unchanged. (extensions/xai/xai.live.test.ts:620, 4fc8434a435f)
  • Remaining behavioral coverage: The complete live test retains server speech detection, an outbound truncate, playback clearing, absence of manual response cancellation, new user transcription, completion of the identified subsequent response, tool continuation, and reconnect context recall. (extensions/xai/xai.live.test.ts:624, 4fc8434a435f)
  • Production interruption owner: Server speech detection invokes the provider-owned interruption path, which sends truncation and clears playback directly without waiting for a truncation acknowledgment. Existing provider tests cover server-VAD truncation and playback clearing. (extensions/xai/realtime-voice-protocol.ts:116, 4fc8434a435f)
  • Documented voice contract: The xAI Talk documentation describes server-owned interruption, clearing queued playback, and truncating unplayed history; it does not define a confirmation echo as the observable interruption contract. Public docs: docs/providers/xai.md. (docs/providers/xai.md:544, 4fc8434a435f)
  • Main and release necessity: The pinned release base and fetched main contain the identical pre-fix test blob 614bec2653c2ca64d59e8b834949dcec668b845e. Separate source inspection confirms that both fetched main and v2026.9.7 still require the truncation acknowledgment. (extensions/xai/xai.live.test.ts:623, cee0906f3877)
  • Related main-branch implementation: The captured discussion explicitly identifies test(xai): keep barge-in validation stable without truncate ack #163529 as the corresponding main-branch change and this PR as its release/2026.9.8 backport. The supplied snapshot records the related PR as open, so it is not merged-fix or supersession evidence.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit b8d03ed into release/2026.9.8 Oct 2, 2026
91 checks passed
@RomneyDa
RomneyDa deleted the backport/2026.9.8-xai-vad-ack branch October 2, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: xai P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

2 participants