Repository navigation
fix(talk): honor explicit OpenAI authentication choices - #138726
roboclaw-bot wants to merge 5 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 9, 2026, 4:50 PM ET / 20:50 UTC (Revision 26). ClawSweeper reviewWhat this changesThe branch enforces explicit OpenAI Talk credential choices, skips inactive API-key references, exposes authentication choices in the catalog, and negotiates session metadata with clients. Merge readiness⛔ Blocked before merge - 4 items remain This PR remains useful: current main does not enforce explicit authentication choices. No blocking code defect was identified in the pinned diff; the recorded Secret-owner integration and validation requirements remain unresolved. Priority: P2 Review scores
Verification
How this fits togetherTalk connects OpenClaw voice clients to realtime providers through the Gateway. Provider configuration and prepared credentials determine session admission, while negotiated responses tell clients how to establish their connection. flowchart TD
A[Talk configuration] --> B[Secret preparation]
B --> C[OpenAI authentication policy]
D[Client capabilities] --> E[Gateway session admission]
C --> E
E --> F[Provider voice session]
F --> G[Compatible client response]
Decision needed
Why: The discussion expressly leaves this protected-path participation unresolved; product acceptance and a requested review do not supply it. Before merge
Agent review detailsSecurityNone. PR surfaceSource +117, Tests +199, Docs +6, Other +6. Total +328 across 20 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain provider-owned credential exclusion and negotiated metadata, with Secret-owner-approved integration that preserves Automatic behavior and demonstrates fresh and retained-configuration compatibility. Do we have a high-confidence way to reproduce the issue? Not applicable as a strict existing-contract bug: the branch adds enforced authentication modes. Source inspection confirms that current main ignores this field, while supplied historical checks exercise the proposed behavior. Is this the best way to solve the issue? Yes, the provider-owned policy and additive response negotiation are a coherent approach; the outstanding concern is integration and upgrade validation, not a competing implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b1aa4805a6c4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (25 earlier review cycles; latest 8 shown)
|
b8ea249 to
4c28169
Compare
61832ea to
b7611d2
Compare
Restore Main client admission without claiming forced consultation on WebRTC. Correct auth selection and target normalization; retain validated lifecycle behavior. Include the checked native and test formatting corrections. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Keep explicit credential selection and inactive saved-key handling consistent with the safe static capability catalog. OAuth-only and Platform-key-only choices never fall through to the other credential source. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Keep real manifest-owned catalog construction and all credential/session operation traps in the shared fixture boundary. Preserve Gateway cold-owner assertions without importing a bundled-plugin loader from core tests. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Project authentication metadata only for opted-in clients. Preserve provider-owned authentication facts and released decoder behavior. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
|
@openclaw/openclaw-secops — please explicitly request or co-review the scoped collector integration below. Integration refresh — September 10, 2026The public stack remains based on unchanged A f868fae. Its prepared nonrestricted resolutions are being refreshed against pinned Main a4ad6f3. The Main-side collector blob is still 2b888cacffe3e5b9119c76defa341bfb0d75d6e5, byte-identical to the earlier fe79d36 input. The import-union proposal below is therefore unchanged in scope. Any additional protected change discovered during the refresh will remain unapplied. Please explicitly request or actively co-review that restricted import union. Manual CI run 34503641105 also identifies canonical-formatting failures in runtime-config-collectors-core.ts and runtime-talk-secret-owners.test.ts. Please include the formatter-only updates to those two files in the scoped request/co-review; no new hook or test behavior is proposed. All six Android lanes passed in that run, but the complete gate failed. Neither this evidence nor the existing review request is integrated-Main proof or a waiver of ownership, CI, or enforced reviews. Maintainer decisions recorded on September 9, 2026:
The earlier prepared integration inputs were pinned: A f868fae and Main fe79d36. The earlier nonrestricted conflict resolutions were prepared; current-pin refresh and full integrated runtime validation remain pending. Retain Main's shared request-secret collector and A's existing bundled-provider activity check. No new hook, collector logic, test behavior, or policy exception is proposed. Canonical formatting only reorders imports and wraps existing expressions. The protected runtime-talk-secret-owners.test.ts was conflict-free in that earlier inventory. The PR evidence records 53 historical synthetic runtime-transition cases (82 observations) with 15 matching pinned non-UI inputs, separately qualified historical routing coverage and negotiated legacy-response checks. The three older UI-reload cases are excluded from A-head evidence because their test source differs. These are not resolved-Main or live-provider acceptance. No approval or CI waiver is inferred from the existing review request. |
|
Closing this PR in favor of a planned rebuild on current main. |
Related: #115021 — earlier OpenAI realtime OAuth fallback discussion.
What Problem This Solves
Fixes an issue where an explicit OpenAI Talk credential choice could fall through to another authentication source, or an unused saved API-key reference could make OAuth unavailable.
Why This Change Was Made
Keep credential activity, provider normalization, session admission and the safe capability catalog on one policy. OAuth-only and Platform-key-only choices exclude the other source; Automatic retains the existing provider-owned precedence.
User Impact
Operators can select the intended credential source without changing the model or transport. Unavailable credentials fail visibly, while cold Talk owners still expose safe static authentication choices.
Evidence
The cold-catalog boundary failure was reproduced and fixed in the existing test/helpers owner: 10 boundary tests passed; credential traps and zero-operation assertions are retained.
Source-bound historical runtime proof: 53 fresh/retained-key cases with 82 observations across 15 matching pinned non-UI inputs. These assert headers/broker credentials at synthetic transport seams, not live provider entitlement. The separate 52-case routing run is historical; its test source was not separately pinned. Three older UI-reload cases are excluded because that test source differs from this head.
The A-owned metadata capability reproduced two legacy failures; six focused repaired A cases passed. Provider-owned authentication facts remain unchanged.
This is local runtime-refresh proof, not live OAuth/provider or one RPC/file-watcher/restart E2E. Listed Secret-owner participation in the collector integration and the current-main conflict remain unresolved; requesting Secops review is not approval.
Exact repaired A source tree passed canonical core production and core test-type lanes, both exit 0, with checkout-local dependencies.
Maintainer product decision (September 9, 2026): the authentication modes and bundled-only pre-credential activity hook were accepted (no credential access/egress; absent means active). Listed Secops participation in collector integration, validation and formal reviews remain required.
Validation source tree: commit
f868fae5d06072a8dfcc57535a3a41c8b1beb1ec. The local evidence above has its stated scope.Related changes
Review order for the Android realtime Talk stack:
Worked on by: