Repository navigation
fix(browser): protect private observation media and Canvas trust boundaries - #118775
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 2:13 PM ET / 18:13 UTC. ClawSweeper reviewWhat this changesThe PR keeps Browser and Canvas observation images available to the model while preventing automatic outbound delivery, sanitizes remote-controlled Browser and Canvas text, and records Canvas results as network-derived. Merge readinessThis is a sound, well-proven repair for an existing privacy and trust-boundary defect. The branch is rebased on current Priority: P1 Review scores
Verification
How this fits togetherBrowser and Canvas tools turn remotely rendered pages into model observations and, in some cases, media artifacts that can be sent through a channel. The agent runtime uses each tool's provenance metadata to treat network-derived content as tainted on the following assistant turn, while channel delivery must honor artifact-level outbound policy. flowchart LR
A[Remote browser or Canvas page] --> B[Browser or Canvas tool]
B --> C[Sanitized model observation]
B --> D[Image artifact policy]
D --> E[Model-visible image]
D --> F[Automatic channel delivery blocked]
B --> G[Network provenance]
G --> H[Agent turn marked tainted]
Decision needed
Why: The code is narrowly consistent with existing sanitization and delivery contracts, but this is an intentional behavior change at a sensitive channel-delivery boundary and the PR carries the repository's protected maintainer label. Before merge
Agent review detailsSecurityNone. PR surfaceSource +17, Tests +288. Total +305 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep observation screenshots model-visible but require an explicit, user-directed sharing or message action for outbound delivery, with Canvas network provenance retained through its lazy registration path. Do we have a high-confidence way to reproduce the issue? Yes. The PR supplies a concrete real production-path reproduction showing that Browser and Canvas screenshots were eligible for automatic outbound extraction before the repair, and current source confirms the missing artifact-level outbound policy on the base path. Is this the best way to solve the issue? Yes. The patch fixes the producer-owned artifact policy, reuses the canonical external-content wrapper, and marks the real lazy registration boundary as network-derived rather than relying on downstream channel guards or inner-tool-only metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a67c52611e57. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
…0803-browser-labeled-snapshot-outbound
|
Merged via squash.
|
…-state-mutation * origin/main: (22 commits) fix(delivery): renew stable producer leases (#118663) test(mcp): isolate catalog size checks from wall-clock load (#118871) test(ui): add credentials primary QA proof (#118790) fix(slack): prevent stalled presence polling from hanging shutdown (#117478) test(security): cover gateway shared auth modes (#118834) fix(macos): show gateway auth failures in app status (#118841) test(tui): route PTY gateway scenarios through explicit models (#118802) test(qa): add session transcript primary coverage (#118820) fix(browser): protect private observation media and Canvas trust boundaries (#118775) fix(build): restore SDK packages and signed macOS app builds (#118833) test(qa): cover plugin authoring contracts (#118821) fix(parallels): keep provider keys out of POSIX job logs (#118840) improve: reduce redundant Code Mode test work (#118815) fix(models): report primary OpenRouter limits in scans (#110855) test: speed up setup inference fixtures (#118811) fix(auto-reply): enforce canonical reset authorization (#118580) docs(gateway): fix invalid heartbeat visibility examples (#118827) fix(plugins): unify HTTP route conflict handling (#118203) test(agents): use prepared auth fixtures (#118816) fix(lmstudio): resolve JIT embedding variants ...
…daries (openclaw#118775) * fix(browser): protect observation screenshots and Canvas trust boundaries * test(canvas): preserve actual image helper result types
Summary
Real production-path verification
Actual production Browser/Canvas privacy + taint proof
Real browser/canvas owner results and registered tool metadata were executed in-process; no simulated JSON substitution:
{"browserScreenshot":{"modelVisible":true,"outbound":false,"automaticallyDelivered":false},"canvasScreenshot":{"modelVisible":true,"outbound":false,"automaticallyDelivered":false},"registeredCanvas":{"resultContentSource":"network","toolResultContentSource":"network","assistantTurnTainted":true}}Browser/canvas screenshots remain visible to the model but cannot silently enter outbound delivery, and network-backed canvas results taint the actual assistant turn.