Skip to content

fix(talk): align relay readiness with call admission - #142294

Closed
roboclaw-bot wants to merge 2 commits into
openclaw/pr138726-split-t-targetfrom
openclaw/pr138726-split-r-readiness
Closed

roboclaw-bot wants to merge 2 commits into
openclaw/pr138726-split-t-targetfrom
openclaw/pr138726-split-r-readiness

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #138726

What Problem This Solves

Fixes an issue where a configured relay could appear ready even though its forced-consult launch would be rejected.

Why This Change Was Made

Use the existing relay launch validator when reporting relay readiness. Do not apply relay-only constraints to client-owned WebRTC or provider-WebSocket calls.

User Impact

Unsupported relay configurations are visible before allocation. Client-owned calls retain provider-directed behavior and the existing Auto recovery rules; saved transport or credential choices are not rewritten, and forced consultation is not falsely promised for WebRTC.

Evidence

  • 116 Gateway Talk tests passed at this layer.
  • 23 browser Talk session tests passed, including Auto recovery for both consultation settings and strict client-transport behavior.
  • These suite totals overlap earlier layers; they are not additional unique coverage.
  • No native-mode migration, live audio result or provider entitlement is implied.

Core/UI typechecks, all 16 selected test-type graphs, and the full pnpm build also passed at combined-prefix commit 91bd0ba8e212a03de46f3bd4627a168293c7390d. These validate the five-layer prefix, not separate builds of each preceding layer.

Validation source tree: commit cea8f293d7d4f2b193fed7a7e6200c77c001ca81. The local evidence above has its stated scope.

Worked on by:

Use the existing relay launch validator when reporting readiness. Keep client-owned WebRTC and provider-WebSocket calls provider-directed without rewriting saved transport choices.

Worked on by:
- @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 8, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 8, 2026 15:53
@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 Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 11:15 AM ET / 15:15 UTC (Revision 7).

ClawSweeper review

What this changes

Talk’s readiness catalog now checks the existing relay launch rules, with documentation and tests preserving client-owned calls and automatic relay recovery.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped fix: current main still reports relay readiness without checking launch eligibility. No actionable defect was found in the introduced changes.

Priority: P2
Reviewed head: 3b3cf084ee3d065537e7147785386692e6287d13

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair that reuses the admission boundary, preserves existing behavior, and includes relevant regression coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: The bot-authored PR is exempt from the external-contributor proof gate. Reported Gateway and browser tests cover catalog rejection and preserved client routes; they do not establish live provider or audio behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The bot-authored PR is exempt from the external-contributor proof gate. Reported Gateway and browser tests cover catalog rejection and preserved client routes; they do not establish live provider or audio behavior.
Evidence reviewed 7 items Verified introduced production change: The pinned base-to-head diff adds relay-only launch validation inside catalog selection; existing exception handling converts rejection into ready=false.
Shared admission boundary: Session creation already calls the same relay helper and rejects its error before session allocation. The helper applies launch defaults and consult routing without writing configuration.
Provider-owned validation contract: The OpenAI plugin’s existing validator rejects forced transcript consultation for GPT-Live and otherwise returns no error. This is an OpenClaw-owned configuration check, with no changed external harness or protocol contract.
Findings None None.
Security None None.

How this fits together

Talk connects OpenClaw voice clients to realtime providers. Its Gateway catalog translates saved configuration and provider capabilities into readiness information that clients display before starting calls.

flowchart TD
  A[Saved Talk configuration] --> B[Resolve provider and transport]
  B --> C{Gateway relay?}
  C -->|Yes| D[Existing relay launch validator]
  C -->|No| E[Client route readiness]
  D --> F[Catalog readiness result]
  E --> F
  F --> G[Voice client settings]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +18, Tests +200, Docs +10. Total +228 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 20 2 +18
Tests 2 239 39 +200
Docs 1 34 24 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 293 65 +228

Review metrics

None.

Technical review

Best possible solution:

Keep readiness and relay admission on the same provider-owned validator while preserving saved transport choices and client-owned behavior.

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

Yes, from source: a configured relay can pass provider resolution while its forced-consult launch validator rejects it; current main omits that second check in the catalog. Runtime reproduction was not executed.

Is this the best way to solve the issue?

Yes. Reusing the existing admission validator prevents policy drift, and the relay-only condition preserves the supported client-owned paths.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Incorrect relay readiness is a bounded voice configuration defect; the patch does not change call authorization or saved settings.
  • 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: The bot-authored PR is exempt from the external-contributor proof gate. Reported Gateway and browser tests cover catalog rejection and preserved client routes; they do not establish live provider or audio behavior.

Evidence

What I checked:

  • Verified introduced production change: The pinned base-to-head diff adds relay-only launch validation inside catalog selection; existing exception handling converts rejection into ready=false. (src/gateway/server-methods/talk.ts:296, 3b3cf084ee3d)
  • Shared admission boundary: Session creation already calls the same relay helper and rejects its error before session allocation. The helper applies launch defaults and consult routing without writing configuration. (src/gateway/server-methods/talk-session.ts:283, 3b3cf084ee3d)
  • Provider-owned validation contract: The OpenAI plugin’s existing validator rejects forced transcript consultation for GPT-Live and otherwise returns no error. This is an OpenClaw-owned configuration check, with no changed external harness or protocol contract. (extensions/openai/realtime-voice-provider-factory.ts:639, 3b3cf084ee3d)
  • Still absent from main and latest release: Inspected catalog source at fetched main and v2026.9.3: both return provider resolution directly without invoking the relay launch validator. No merged replacement is established by the supplied related context. (src/gateway/server-methods/talk.ts:285, 5623bf28ac36)
  • Validation scope and review continuity: The captured body reports 116 Gateway tests and 23 browser tests, with combined-prefix builds explicitly scoped to older source revisions. These are supplemental validation, not live audio proof. The previous completed review contains no findings. Earlier-head comparison and deeper blame encountered unavailable Git objects, so no unchanged-code or introduction attribution is claimed. No tests were executed during this read-only review.
  • Current PR and stack ownership: The live REST response confirms this PR remains open and unmerged at the pinned head, targets the preceding stack branch, and is assigned to IWhatsskill. The supplied maintainer label protects it from automated cleanup. Related authentication and localization PRs remain separate open stack work. (3b3cf084ee3d)

Likely related people:

  • steipete: 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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-08T16:11:29.162Z sha 5a7dda7 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T16:53:26.807Z sha 5a7dda7 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T19:44:55.044Z sha cea8f29 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T20:28:32.761Z sha cea8f29 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T21:24:35.189Z sha cea8f29 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-09T10:07:04.219Z sha 463e62a :: needs maintainer review before merge. :: none

Integrate the reviewed owner-scoped repairs and updated stack prerequisite.
Retain the validated R layer source with only the inherited legacy agent-binding fix.
Preserve the historical secondary parent and the validated layer source while restacking its prerequisite.

Co-authored-by: IWhatsskill <[email protected]>
Worked on by:
- @IWhatsskill
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/pr138726-split-r-readiness branch from 463e62a to 3b3cf08 Compare September 9, 2026 15:07
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Closing this PR in favor of a planned rebuild on current main.

@RomneyDa
RomneyDa deleted the openclaw/pr138726-split-r-readiness branch October 22, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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