Repository navigation
feat(research): preserve native execution and selected search accounts - #177228
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: needs changes before merge. What this changesThis PR preserves selected model and account context in search and records the execution route used by portable research. Example: A session selects openai/gpt-5.4 with profile openai:research and invokes Codex search.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the updated native authority evidence addresses the earlier concern, but MCP loopback can still replace a run-selected search account with the configured account. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherAgent and Gateway tool assembly supply host-selected model context to the shared search runtime, which dispatches to provider plugins; portable research retains returned execution facts with its evidence. flowchart LR
A[Agent run] --> C[Tool assembly]
B[Gateway invocation] --> C
C --> D[Search runtime]
D --> E[Codex native worker]
E --> F[Provider transport]
F --> G[Research evidence]
Technical reviewBest possible solution: Carry the resolved CLI account through the existing MCP grant producer so every search entry path preserves the same host-selected model and profile. Do we have a high-confidence way to reproduce the issue? Source establishes the MCP mismatch: its grant carries only provider/model, while the new resolver fills the absent account from agent configuration; no reproduction was run during this read-only review. Is this the best way to solve the issue? The existing search and native execution owners are appropriate, but the cutover needs the CLI grant producer to preserve its resolved account rather than reconstructing it from defaults. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e5253a3b0563. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +107, Tests +714, Docs +7, Other +3. Total +831 across 28 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 6, 2026, 8:45 AM ET / 13:45 UTC (Revision 2). |
7f1533b to
9910412
Compare
9910412 to
585ac36
Compare
0609209 to
c9490fc
Compare
Baseline-Refresh: f29682a52c39f7a95efd6aad996e1457762b2a42
|
@clawsweeper re-review The branch and PR body now contain the exact-head validation and production-boundary proof. Please review the current committed range; the selected-account authority and per-candidate profile-pin findings are resolved. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
openclaw#177228) * fix(research): keep evidence types in their leaf contract * test(codex): account for native research boundary coverage * feat(google): add authority-bound managed research adapter * feat(research): retain conversation-bound jobs and evidence * feat(research): recover durable jobs through current source authority * feat(research): activate lazy bundled research by default * feat(research): bind native search to selected model and evidence * fix(research): retain search authority and profile pins * test(research): keep native search proof host-owned
Sandboxed web search dropped its session sandbox flag before resolving a provider, allowing configured untrusted workspace or external providers to execute. Carry that flag through both resolver routes into the existing shared manifest trust filter used by web fetch. Bundled, verified official, and nonsandboxed behavior stay intact. Give sandboxed callers an actionable availability hint without loading rejected provider code for diagnostics. Remove obsolete type exclusions, redundant request forwarding, and a duplicate inherited authStore field; production LOC is net +1. The 100-line regression allocation protects the real plugin-loader boundary. On main, two sandboxed rejection cases execute the workspace plugin unexpectedly; the fix passes both and all six controls, with no import, registration, tool creation, or execution trace for rejected code. All 115 focused tests and touched-file format/lint pass on Blacksmith Testbox. The final working tree received P0-P2 autoreview; its only index-only fixture finding was resolved by staging the reviewed replacement. Final CI passes tests, types, lint, builds and security. Its only failure is the existing shared test-line ceiling, six lines over budget, independently reproduced on clean main 31ad71a. Own 100-line regression growth is exactly funded. Landing uses the native inherited-failure evidence route without relabeling failed CI. Supersedes #144520, thanks @Finn763. Related: #144164. Co-authored-by: finn763 <[email protected]> (cherry picked from commit 3e3935a) Release adaptation (OpenClaw 2026.11.6): - Cherry-picked onto parent candidate 82f1197 after the scoped #189423 backport. No production or regression-test adaptation required; preserved release's existing tool-result-error import. - Existing manifest trust filtering and explicit empty scopes remain the sole selection authority; sandboxed is now carried through context and both existing selection routes. No new trust owner, configuration, or permissions. - Companion audit pinned at bd692e9: e333f7e (#197657) removes the allocation after main's ratchet reset, not applicable here; retain source's 100-line allocation. a30ec5d (#177228) changes native-research/account-pinning execution, not a prerequisite for sandbox selection and excluded. No later PR mentions. Existing shared trust filter/empty-scope refusal is present-equivalent. Other heuristic runtime-name references do not consume the changed contract. Release validation (local isolated worktree): - Before this pick, source's real-plugin-loader regression: 2 failed / 6 passed. Both sandboxed workspace cases executed rejected code through runtime preference true and false. - After this pick: 95 passed across 7 runtime/owner suites, including all 8 regression cases and shared empty-scope cases. Additional tool, provider-error, fetch-provider and setup consumers pass (counts recorded in lane report). - Changed-TypeScript type-aware lint: 4 files clean using supported core config. Changed-file formatting and git diff --check clean. Manual self-review/pr-simplify: direct propagation into existing owner, no duplicate policy; 3 production files, net +1 line. - No real model/Gateway end-to-end run or broad gates in this lane; parent owns final release qualification. Upstream claims above describe source validation, not release qualification. One attempted suite was absent on this release and was corrected before running; not a product failure. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3be9be1ddaa4a19d3672994f03bf580fcf20b6c3)
Problem
Portable research must use the host-selected model and credential owner for model-backed search, retain source provenance, and replay prior receipts without new effects.
Changes
Stack and scope
Depends on the merged #173974. #177230 follows with authorized retained research views. The superseded #177229 remains closed; current native panel ownership is preserved. Source publication does not deploy a Gateway.
Evidence
03ce16a7f73ff2cdbba72d930d2c66663632291a; tree:7e78f46c02d0a773090dbf6dc8095c3ff928c94d.3f8d6d6b6ad6bcbf67c995c22f6d6d02d885dc33; independent audit verified all 24 conflict resolutions. Retired extension-host test copies and duplicate project registration were removed; the landed native, Google, durable-job, and wake owners remain intact.tools.invokeplus Codex0.164.0exercised selected model/account through a loopback Responses and native-search endpoint, rejected a foreign caller, and revoked persisted membership during native acquisition. The denied paths read no credentials, start no native client, and make no HTTP request. This is real native protocol/authority proof with synthetic local provider responses, not a paid search result.3f8d6d6bare P0–P2 scoped-clean. The latter included frozen native/authority owner source. Local ClawSweeper is unavailable because no clean dependency-qualified built runner is present; the documented hosted-review fallback was requested at feat(research): preserve native execution and selected search accounts #177228 (comment).23e424cdexposed an extension-test/core-type boundary violation in the new host test. The test now lives undertest/pluginsand enters through the approved lazy Codex test API, retaining the real binary and all authority assertions. The exact failed boundary gate, 52 affected tests, the native failed-CI replay, targeted types/lint, and fresh committed-range P2 review passed.23e424cdin 3m23.7s. Production code is byte-identical in this test-boundary-only replacement. Exact replacement-head CI passed: https://github.com/openclaw/openclaw/actions/runs/42230184053 (attempt 1). The native completed-hosted-evidence gates are accepted.