Repository navigation
feat(research): retain authorized browser research state - #177231
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 real behavior proof before merge. What this changesThis PR adds account-bound browser recovery for research requests and a versioned plugin storage capability. Example: Account A starts research for “How do urban trees reduce summer heat?” and loses the response.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored PR open: account isolation is improved, but an expired uncertain-start key can submit work again after server deduplication expires. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe research browser client turns native panel actions into authenticated Gateway research RPCs and stores uncertain starts through the Control UI credential owner. flowchart LR
A[Research panel] --> B[Research browser client]
B --> C[Account bound recovery storage]
D[Gateway credential owner] --> C
B --> E[Authenticated research RPC]
E --> F[Research job service]
F --> G[Expiring job receipts]
Technical reviewBest possible solution: Keep the existing account recovery owner and bound uncertain retries to the server’s deduplication lifetime without silently converting an expired retry into new work. Do we have a high-confidence way to reproduce the issue? Source shows that an uncertain start retained beyond the server’s seven-day receipt lifetime can be admitted again under the same conversation incarnation; no target code or tests were executed. Is this the best way to solve the issue? The account-bound SDK seam fits the existing credential owner, and the added tests cover distinct failures, but retaining the same key alone cannot guarantee safe retries after server receipts expire. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 94e673477560. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. SecurityNeeds attention: The previous account-leak path is repaired in source, while final-effect retirement evidence remains incomplete. EvidenceWhat I checked:
PR surfaceSource +517, Tests +434, Docs +12, Other +3. Total +966 across 14 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. Review metrics
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, 10:50 AM ET / 15:50 UTC (Revision 2). |
4d1c46c to
1c53521
Compare
964fa83 to
3a96940
Compare
Baseline-Refresh: d2666e59f95604c51bd0290e8e5deafcb1f63dc1
|
@clawsweeper re-review The exact reviewed head is |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…7231) * 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 * feat(research): expose current-authority retained job views * feat(research): retain authorized browser research state * fix(research): bind browser recovery to account * fix(research): keep browser recovery off startup
Problem
Research panes need conversation-bound views and safe retry behavior without exposing one authenticated account’s private question to another account or submitting paid work twice after an uncertain reply.
Changes
recoveryStorageSDK capability; retire captured handles and stored drafts when their owner changes.Stack and scope
The server-view layer is merged in #177230. The native pane and final responsive screenshots follow in #177232. The native and Google acceptance gates were completed in their merged predecessor PRs. This is source publication, not a production Gateway deployment or restart.
Verification
ff272050db71c4e6ae58bb23ccdbf9a05a4a99a1; tree:44866a785e17af8bc88d0442320aead44f21131a.6e3d9d30d03799f92e8ba431f35d8ba5f6bf99c0. Independent audit approved all 26 conflict resolutions as byte-identical lower-owner blobs.jsdomenvironment.6e3d9d30..50157454review and the new50157454..ff272050correction review are P0–P2 scoped-clean. The correction’s local and committed reviews scored 0.91 and 0.88. Its full production build passed; build-info matchesff272050. The unchanged SDK API inputs retain the completed comparison: one added type and optional host member only (acknowledgement digeste34ea508), with no removal or required-member change.security-fastand every other selected job passed. The native inherited-failure route retains this failed CI result.Performance correction acceptance
The existing cold-entry asset workload is
pnpm ui:check-performance:base <exact-comparison-base>. The failing CI tested mergeaca744f6b82f036516e7093c823fee4ce460f450against base73005a14b8c2c68565e7a8abfffa6834a160a5f2: normalized startup JavaScript was 93,019 B gzip versus the 90,198 B enforcement limit (89,622 B base + 512 B growth + 64 B variance). Accept the correction only when the same owner’s source-paired comparison passes every enforced asset budget without raising a baseline or allowance. This is deterministic asset-size evidence, not a latency benchmark.The corrected source-paired run against
6e3d9d30d03799f92e8ba431f35d8ba5f6bf99c0passed all unchanged budgets: startup 90,378 B (limit 90,856), chat 1,289,069 B (limit 1,289,482), new-session 797,502 B (limit 797,620), and largest JS 547.0 KiB (limit 547.2 KiB). The comparison used clean, matched generated-plugin inputs; the previous package-build outputs were retained separately. Source maps confirm that synchronous retirement stays in the connection chunk and the factory loads with the plugin host.