Repository navigation
refactor: consolidate browser and memory plugin internals - #166973
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 maintainer review before merge. Reviewed October 8, 2026, 3:06 AM ET / 07:06 UTC (Revision 3). ClawSweeper reviewWhat this changesThis PR consolidates private browser operations, relay lifecycle handling, and Memory Core retrieval, publication, migration, and CLI helpers. Warning SQLite table change This PR modifies persisted SQLite tables in Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review This maintainer-owned cleanup remains useful, and no concrete introduced correctness or security defect was found. The prior extension-lint blocker is resolved on the reviewed head; remaining CI is routine validation. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser plugin turns agent and CLI requests into browser actions through Chrome MCP, Playwright, or the extension relay. Memory Core indexes notes and conversations, retrieves relevant content, and publishes memory updates through its existing storage owners. flowchart TD
A[Agent and CLI requests] --> B[Browser plugin]
B --> C[Session and navigation guards]
C --> D[Browser transports]
A --> E[Memory Core]
E --> F[Retrieval and publication workers]
F --> G[Existing memory stores]
D --> H[Action results]
G --> H
Technical reviewBest possible solution: Keep the consolidation within the existing plugin owners while preserving public contracts, cancellation, publication fencing, and retained upgrade behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing internals rather than reporting a reproducible product defect. Is this the best way to solve the issue? Yes: the inspected changes reuse existing owners and remove duplicate private paths without adding public APIs, settings, or stored formats. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bcc3b58b7c61. Provenance checked
TestingProof path: in-process harness. Added test files: 6. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -671, Tests +9, Other -1. Total -663 across 77 files. View PR surface stats
Stored data modelPersistent data-model change detected: LabelsLabel changes: No label 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 History |
…66973) * refactor: consolidate browser and memory plugin internals * fix(plugins): use SDK deferred promises for package compatibility * refactor(memory): construct mapped results explicitly
…#170511) ## What Problem This Solves Consolidate duplicate extension paths and remove speculative lifecycle defenses in Codex, Memory Core, Microsoft Teams, Matrix, Reef, and Workboard. The candidate removes **522 net production lines** (tests, fixtures, generated files, declaration files, and documentation excluded; both new production modules included). This uses the campaign's honest 500–999-line fallback after the scoped growth/largest-first pass; it does not remove features to reach a quota. Workboard's four card actions now share one discriminated action component, its draft controls share one renderer, and menu-only pass-through components are gone. Reef's worker and released-host adapters share one pure seven-command trust-transition policy while retaining their own atomic storage boundaries. Teams reuses its Graph/context/setup owners. Memory keeps normal parallel-query and sync-generation retirement draining, expressed with simpler active-completion tracking rather than nested borrower wrappers. An adjacent Workboard defect is fixed: conditional Solid fragments could run a popover ref before the preceding trigger entered the document, positioning the details menu at the page origin. Listener/anchor setup now runs after the DOM commit. The regression fails against the unchanged implementation and passes with this repair. No SDK export, config, protocol, dependency, database schema, durability, retention, or permission contract is changed. The protected standalone session-memory backend is untouched. No changelog edit. User impact: Workboard details menus anchor to their trigger instead of the page origin. Other changes simplify internal implementation, with the best-effort timing and diagnostic compromises below; no migration or operator action is required. ## Best-effort tradeoffs accepted - Codex diagnostic accessors throwing or mutable transport identities: [#163388](#163388) adds synthetic throwing-accessor coverage, not an actual-use human report. Actual accessors are local reads and registration publishes frozen identities. Accessor programmer errors now surface; the diagnostic sink catch, disclosure allowlist, attempt isolation, and timeout/cleanup behavior remain. - Offline Codex migration CAS conflicts: [#168479](#168479) introduced retry loops without a human competing-writer report. Gateway ownership excludes live foreign writers. One atomic attempt plus existing persisted-result validation now retains the source sidecar and reports a warning on conflict; a later Doctor run can retry. - Retired Codex legacy JSON rewritten during migration: [#104504](#104504) added a synthetic locator-rewrite test; human [#104503](#104503) concerns fingerprint overflow, whose fix remains. Legacy indexes are offline inputs, so a second locator/lifecycle read is removed. Initial containment/malformed-owner validation and canonical session ownership checks remain; unsupported concurrent legacy edits are picked up next run. - Memory manager acquisition repeatedly retrying failed global retirement: [#144252](#144252) has synthetic close failures, no human incident requiring recursive acquisition recovery. Acquisition now awaits the pending close once and reports its error; the retirement owner is retained and explicit close can retry. - Abandoned, abort-ignoring memory diagnostic probes holding provider retirement indefinitely: [#113471](#113471) and [#166973](#166973) provide synthetic lifecycle proof, not a human abandoned-probe incident. Timed-out read-only diagnostics no longer retain a redundant inner borrower. Ordinary active searches, sync generations, healthy operations, and custom closable-provider draining remain protected. - Teams simultaneous Gateway writers: [#88411](#88411) introduced the persistence migration/file lock without a human multi-Gateway incident and did not test live tenant traffic. The Gateway is the sole database owner. Removed cross-process stale-lock/backoff machinery; local FIFO remains. Unsupported simultaneous processes may overwrite each other rather than coordinate. - Workboard stale cache publication and an exact-expiry late join: [#165896](#165896), [#165141](#165141), and [#165698](#165698) use synthetic performance/interleaving controls, not a human incident. One read may return an older projection/fallback; normal revision/age invalidation refreshes it next read. Measured caching, the 64-entry bound, and read authority remain. - Workboard direct stop/start before asynchronous startup settles: [#146976](#146976) forces unsupported lifecycle ordering in a test. The host service owner already awaits raw startup before stop. Removed plugin-local generation/startup handoff; supported host lifecycle is unchanged, unsupported direct reentry no longer has a second lifecycle owner. - Reef failed owner-notice dispatch/ack retry timing: [#109160](#109160) pins injected failures and exponential timers, without a human report requiring that second scheduler. Durable pending notices now retry during ordinary successful 30-second reconciliation or restart. A failed acknowledgement may redispatch conservative stop-only guidance; durable resend reservation/cooldown prevents granting a second resend. The per-peer queue also makes the removed in-flight set redundant. - Reef synchronous intermediate lease theft: [#109380](#109380) and [#168340](#168340) describe synthetic interleavings, not human concurrent-writer incidents. SDK callbacks commit synchronously and there is no await between acquisition and settlement. Unsupported reentrant callbacks/foreign writers are no longer checked at every intermediate step. Initial acquisition, final head-owner check, staged recovery, uncertain-commit witness, rollback, and retention ordering remain. - Workboard fabricated native event targets and repeated widget predicates: renderer port [#168606](#168606) added boilerplate without a human incident. JSX native bindings already guarantee `currentTarget` types, and the owning menu already excludes widgets. Fabricated direct handler calls may throw; real event dispatch, widget behavior, and untrusted `event.target` checks are unchanged. ## Coverage ledger Discovery began with scoped three-day growth, then fourteen-day history and largest production owners. Each removed mechanism was checked against its introduction and current callers; no dormant/in-flight foundation was deleted. Exact and normalized duplicate scans informed structural inspection, not automatic rewrites. | Owner / original location | Decision and evidence | | --- | --- | | Codex `app-server/request-diagnostics.ts:28,109,133` | Remove speculative accessor catches/identity copy; keep timeout sink and disclosure boundary (#163388). | | Codex `command-handler-actions.ts:109` | Share sandbox/execution result assembly; preserve policy selectors, guards, currentness and release. | | Codex `migration/session-binding-sidecars.ts:460,549,627` | Single CAS attempt and one legacy-input read; preserve sidecar on conflict and canonical effect validation (#168479, #104504). | | Codex `installed-probe.ts:29`, native session preparation/monitor | KEEP isolated managed storage, credentials, native execution authority and ordinary write settlement. Upstream configuration/storage contract inspected directly. | | Memory `memory/search-deadline.ts:42` | One rejected cancellation promise replaces sentinel race; preserve cancellation/error identity, abort ordering, wall-clock guard and cleanup (#95757, #147702). | | Memory `manager-embedding-ops.ts:84`, `manager-registry.ts:264` | Simplify nested borrower bookkeeping and failed-close recovery; preserve outer leases, normal drain and documented retiring-cache fence (#113471, #166973, #144252). An initially broader removal was rejected during review. | | Memory publication, database context, index generation, transfer and cache owners | KEEP user-data transaction/publication, Forget exclusion, bounded transfers, worker ownership, integrity, performance caches and normal shutdown settlement (#168860, #169164, #169251, #170183, #170302, #170407). | | Memory paused deadlines, Unicode query, KNN/vector scan, watchers | KEEP human-reported SQLite stalls (#137056), dependency tokenizer behavior, external/native input validation, bounded resources and realistic cancellation. | | Memory dreaming/REM, migration/repair, backfill and standing intents | KEEP user-facing features, privacy/source validation, persisted rollback and public formats. Phase E untouched. | | Teams `sqlite-state.ts:27`, `graph.ts:85,177` | Remove redundant foreign-writer lock; one guarded Graph transport retains auth/SSRF, bounded parsing and release (#88411). | | Teams `setup-surface.ts:102`, `graph-group-management.ts:32,96`, `channel.ts:267` | Consolidate identical saves/context/pending result bookkeeping; preserve provider-specific validation, labels, errors, ordering and direct results (#112811). | | Matrix `matrix/actions/reactions.ts:135` | Remove duplicate missing-sender/empty-result guards; selector remains ownership boundary, empty list has no redactions. | | Matrix crypto store, verification, readiness, send FIFO and thread binding owners | KEEP room-key durability, real throwing dependency getters, encryption/send authority, public compatibility and accepted writes (#160707, #70401, #163012, #168485, #169405). | | Teams pending-upload dual owners | HOLD: persisting currently memory-only reply consent bytes would change privacy/persistence; deleting SQLite loses restart recovery. Needs an explicit policy choice, not a deslop shortcut. | | Teams streaming, multi-account configuration and exported setup factory | KEEP Stop/partial-delivery/FIFO, credential isolation and published factory signature (#141348, #112811). | | Reef `trust-state-operation.ts:164`, `trust-store.legacy.ts:115` | Share pure seven-command transitions, retain worker/native atomic adapters, schema checks, trust revisions and authorization (#168340). | | Reef `owner-notice.ts:32,72,122,253`, `audit-state.legacy.ts:145–255` | Remove duplicate retry scheduler/in-flight set and synchronous intermediate lease checks; preserve durable recovery/security (#109160, #109380). | | Reef released-host adapter and trust delivery settlement | KEEP declared host compatibility, accepted-write shutdown settlement, peer/key authority and user-data crash recovery. | | X events/allowlist/verification | KEEP paid-event settlement, bounded polling and credential/access authority. | | llama.cpp media/provider/install/orphan owners | KEEP confidentiality of local inputs, digest cache integrity and safe process identity before termination (#167902). | | ClawRouter pool/dashboard | KEEP untrusted network projection, bounded responses and active features; no useful large duplicate justified added abstraction. | | Workboard `view-card-actions.tsx:215`, `view-card.tsx:102`, `view-draft-choices.tsx:6` | Consolidate actions, menu wrappers and card/bulk draft controls; all callers migrated (#168606). | | Workboard native handlers and `view-popover.ts:19` | Drop impossible bound-target guards; repair ordinary conditional-fragment anchor timing (#168606). | | Workboard `sessions-board.ts:149,305`, `change-events.ts:6`, `gateway.ts:211` | Remove duplicate cache/lifecycle fences; share workspace input preparation while retaining workspace/security effect checks. | | Workboard draft/focus/pending-write/editor, board save and label measurement owners | KEEP real unsaved input, async writes, keyboard focus, live-authority checks and measured layout batching. | ## Evidence All local build/test/CLI commands use task-owned HOME, OpenClaw state/config and XDG directories. No real Gateway or user state is used. No timeout increases, retries, skips, new suppressions or weakened retained-behavior baselines. Final proof receipts and exact-head CI attribution are recorded below. Cold compiled-worker preparation dominates several local timings; these are not CI timings or live-provider claims. | Focused local proof | Result / wall cost | | --- | --- | | Codex request diagnostics | 14/14 pass; wrapper445.55s (cold worker/import dominated). | | Codex commands + Doctor contract | 122/123 pass; wrapper1352.60s. Doctor contract passes. The one method-list assertion (`commands.test.ts:951`) also observes background monitor `thread/read` calls. It **reproduces with explicit clean-base source loaded from `56715acf0e5943edecd34fa6f451532cfa9d5f35`**: extra reads followed by the expected `thread/resume`, selected-case8.411s/Vitest403.28s. The affected test/support/actions/bindings/monitor files are byte-unchanged between that base and pinned main. No test skips or timing changes were added;99 unrelated cases were unselected for attribution. | | Workboard backend (sessions-board, Gateway, change-events, registration lifecycle) | 48/48 pass, four files; wrapper587.54s, Vitest545.18s. | | Workboard entire browser scope before final followups; final affected browser suites | 237/237 across29 files in59.03s; final103/103 across6 files in31.95s. New popover regression1/1 in9.34s; unchanged source fails intended geometry assertion in14.57s. | | Workboard actual compiled WebKit consumer | Pass: anchored menu, filter keyboard dismissal, nested Escape preserving dialog, focus return, zero page errors. | | Reef trust/friends/audit/receipt/outbound/notifier | 119/119 across6 files; wrapper927.25s, including cold worker compilation. Earlier unchanged channel proof25/25 pass. | | Teams sqlite/Graph/read authority/setup | 72/72 across5 files; wrapper385.62s. | | Teams Graph contexts/actions | 73/73 across3 files; wrapper327.91s. | | Teams mutation callers/setup policy | 42/42 across5 files; wrapper776.30s. | | Teams resolver + existing channel tests | Resolver4/4 pass; existing channel44 pass/2 fail, wrapper550.01s. **Both failures reproduce on full pinned main `3c63da22f046b15db9d56cf35769f20b398b8c9b`**,44 pass/2 fail, wrapper464.42s: approval-monitor startup timeout120000ms (`channel.test.ts:313`) and subsequent `MSTeams runtime not initialized` (`runtime-store.ts:85` → `monitor.ts:81` → `channel.test.ts:970`). No budgets changed; the second appears cascading, not separately diagnosed. | | Matrix reaction ownership | 11/11 pass; wrapper339.25s. | | Lint suppression contracts | 3/3 pass on frozen candidate; wrapper48.94s. No new suppressions. | | Architecture | Zero runtime value cycles; zero static/Madge components. | Memory owner/sibling proof: 108/109 pass across nine files, wrapper939.49s. The only failure was this patch's newly authored assertion expecting the provider's raw close error instead of the owner's existing normalized diagnostic. After correcting that assertion without a production change, its exact case passed (4.389s execution, Vitest350.74s, wrapper373.90s, dominated by transforms). The other twelve registry cases were unselected in that focused invocation, not skipped in source. Together the runs prove all109 selected contracts, including actual-query retirement, shutdown drain, fallback/reload, healthy probe, transport and deadline behavior. Local tooling notes: the first changed-file run required removing one now-unused assertion-safety allowance. The corrected run passed conflict markers (27.14s), line-cap (4.43s), max-lines (69.87s), and assertion-safety (183.85s), then was intentionally stopped after the full-source SQLite worker inventory produced no result for 681.03s. This was incomplete local proof, not a passing inventory or an inherited source failure. Native production and test extension typegraphs both pass. Scoped lint could not begin analysis because SDK declaration preparation hit its unchanged 300000ms budget, both in the earlier Reef attempt and the final scoped attempt; neither produced a lint diagnostic. Final exact-head hosted CI below closes both gaps, with inventories running on the PR's frozen merge tree. Two custom-config attribution attempts were abandoned for harness setup failures; they are not behavior proof. Teams attribution above uses a normal full-main export and normal harness. No remote lease, live Teams tenant or live provider proof is claimed. Final formatting: all changed source/test/doc files pass. Plugin boundary report passes (zero eligible compatibility removals); UI localization verification passes. No public SDK files/exports or package manifests changed, so an SDK API-surface diff is not applicable. Independent review reported one P2 about an older Workboard read replacing newer `lastKnown` fallback facts before a subsequent backend outage. Declined as the explicitly accepted cache tradeoff, not silently ignored: fallback is presentation-only, availability remains visible, the next successful read repairs it, and `move` independently rereads authoritative facts/scope before its guarded write. The introducing controls are synthetic (#165896/#165141); no user-data, authorization, or persisted-write invariant is relaxed. First hosted CI run `38334064250` on `dabbd9208a20068c24e6901b41a13415c04ac856` completed with two owned lint failures: `check-lint-extensions-2` (explicit boolean and exhaustive return in Reef) and `check-lint-extensions-3` (default generic argument/Promise iterable in Memory, exhaustive return/shadowed local in Workboard). Its `openclaw/ci-gate` failure aggregates those two jobs. All other planned jobs passed, including SQLite inventories, source contracts, types, extension tests, and QA smoke. The focused correction adds five production lines. The first PR-evidence run also failed because this body's headings did not match the required template; corrected headings passed in run `38334357043`. Metadata auto-response cancellations and the superseded evidence run contain no product test suite. No inherited-failure exception is being claimed for these owned failures. **Final exact-head CI passes:** [run 38335564816](https://github.com/openclaw/openclaw/actions/runs/38335564816) on `b86c1ba06fa325f178007ba736c294cdd67a566d`, including `openclaw/ci-gate`, both extension-lint stripes, full inventories/ratchets, source contracts, typegraphs, selected extension bundles, security, and all QA smoke profiles. This closes the local inventory/lint tooling gaps described above. All exact-head check runs were enumerated; no failed, cancelled, timed-out, or pending check remains. No admin exception, manual rerun, dispatch, or rebase was used. CI job wall seconds: extension bundles 1/2/3/4-1/4-2/5 = 210/160/183/247/137/229; extension lint stripes 2/3 = 145/91; baseline ratchets = 271. These are parallel job wall times including setup, not added test execution time. The lint-only correction also passes native production types, formatting, suppression contracts (3/3; 65.59s wrapper), runtime cycles (0), static/Madge cycles (0), Workboard actions (32/32; 17.93s) and popover (1/1; 16.16s), plus Reef trust/Memory provider lifecycle (51/51; 401.38s Vitest, 445.49s wrapper). Independent review of that delta is scoped-clean at P0–P2; the original explicitly declined display-cache tradeoff remains documented above. ## Visual proof Before/after attachments show the actual built Workboard plugin against synthetic fixture data. Before: details menu at the page origin. After: anchored to its trigger. No pixel-identical claim across fixture timestamps.  
…openclaw#170511) ## What Problem This Solves Consolidate duplicate extension paths and remove speculative lifecycle defenses in Codex, Memory Core, Microsoft Teams, Matrix, Reef, and Workboard. The candidate removes **522 net production lines** (tests, fixtures, generated files, declaration files, and documentation excluded; both new production modules included). This uses the campaign's honest 500–999-line fallback after the scoped growth/largest-first pass; it does not remove features to reach a quota. Workboard's four card actions now share one discriminated action component, its draft controls share one renderer, and menu-only pass-through components are gone. Reef's worker and released-host adapters share one pure seven-command trust-transition policy while retaining their own atomic storage boundaries. Teams reuses its Graph/context/setup owners. Memory keeps normal parallel-query and sync-generation retirement draining, expressed with simpler active-completion tracking rather than nested borrower wrappers. An adjacent Workboard defect is fixed: conditional Solid fragments could run a popover ref before the preceding trigger entered the document, positioning the details menu at the page origin. Listener/anchor setup now runs after the DOM commit. The regression fails against the unchanged implementation and passes with this repair. No SDK export, config, protocol, dependency, database schema, durability, retention, or permission contract is changed. The protected standalone session-memory backend is untouched. No changelog edit. User impact: Workboard details menus anchor to their trigger instead of the page origin. Other changes simplify internal implementation, with the best-effort timing and diagnostic compromises below; no migration or operator action is required. ## Best-effort tradeoffs accepted - Codex diagnostic accessors throwing or mutable transport identities: [openclaw#163388](openclaw#163388) adds synthetic throwing-accessor coverage, not an actual-use human report. Actual accessors are local reads and registration publishes frozen identities. Accessor programmer errors now surface; the diagnostic sink catch, disclosure allowlist, attempt isolation, and timeout/cleanup behavior remain. - Offline Codex migration CAS conflicts: [openclaw#168479](openclaw#168479) introduced retry loops without a human competing-writer report. Gateway ownership excludes live foreign writers. One atomic attempt plus existing persisted-result validation now retains the source sidecar and reports a warning on conflict; a later Doctor run can retry. - Retired Codex legacy JSON rewritten during migration: [openclaw#104504](openclaw#104504) added a synthetic locator-rewrite test; human [openclaw#104503](openclaw#104503) concerns fingerprint overflow, whose fix remains. Legacy indexes are offline inputs, so a second locator/lifecycle read is removed. Initial containment/malformed-owner validation and canonical session ownership checks remain; unsupported concurrent legacy edits are picked up next run. - Memory manager acquisition repeatedly retrying failed global retirement: [openclaw#144252](openclaw#144252) has synthetic close failures, no human incident requiring recursive acquisition recovery. Acquisition now awaits the pending close once and reports its error; the retirement owner is retained and explicit close can retry. - Abandoned, abort-ignoring memory diagnostic probes holding provider retirement indefinitely: [openclaw#113471](openclaw#113471) and [openclaw#166973](openclaw#166973) provide synthetic lifecycle proof, not a human abandoned-probe incident. Timed-out read-only diagnostics no longer retain a redundant inner borrower. Ordinary active searches, sync generations, healthy operations, and custom closable-provider draining remain protected. - Teams simultaneous Gateway writers: [openclaw#88411](openclaw#88411) introduced the persistence migration/file lock without a human multi-Gateway incident and did not test live tenant traffic. The Gateway is the sole database owner. Removed cross-process stale-lock/backoff machinery; local FIFO remains. Unsupported simultaneous processes may overwrite each other rather than coordinate. - Workboard stale cache publication and an exact-expiry late join: [openclaw#165896](openclaw#165896), [openclaw#165141](openclaw#165141), and [openclaw#165698](openclaw#165698) use synthetic performance/interleaving controls, not a human incident. One read may return an older projection/fallback; normal revision/age invalidation refreshes it next read. Measured caching, the 64-entry bound, and read authority remain. - Workboard direct stop/start before asynchronous startup settles: [openclaw#146976](openclaw#146976) forces unsupported lifecycle ordering in a test. The host service owner already awaits raw startup before stop. Removed plugin-local generation/startup handoff; supported host lifecycle is unchanged, unsupported direct reentry no longer has a second lifecycle owner. - Reef failed owner-notice dispatch/ack retry timing: [openclaw#109160](openclaw#109160) pins injected failures and exponential timers, without a human report requiring that second scheduler. Durable pending notices now retry during ordinary successful 30-second reconciliation or restart. A failed acknowledgement may redispatch conservative stop-only guidance; durable resend reservation/cooldown prevents granting a second resend. The per-peer queue also makes the removed in-flight set redundant. - Reef synchronous intermediate lease theft: [openclaw#109380](openclaw#109380) and [openclaw#168340](openclaw#168340) describe synthetic interleavings, not human concurrent-writer incidents. SDK callbacks commit synchronously and there is no await between acquisition and settlement. Unsupported reentrant callbacks/foreign writers are no longer checked at every intermediate step. Initial acquisition, final head-owner check, staged recovery, uncertain-commit witness, rollback, and retention ordering remain. - Workboard fabricated native event targets and repeated widget predicates: renderer port [openclaw#168606](openclaw#168606) added boilerplate without a human incident. JSX native bindings already guarantee `currentTarget` types, and the owning menu already excludes widgets. Fabricated direct handler calls may throw; real event dispatch, widget behavior, and untrusted `event.target` checks are unchanged. ## Coverage ledger Discovery began with scoped three-day growth, then fourteen-day history and largest production owners. Each removed mechanism was checked against its introduction and current callers; no dormant/in-flight foundation was deleted. Exact and normalized duplicate scans informed structural inspection, not automatic rewrites. | Owner / original location | Decision and evidence | | --- | --- | | Codex `app-server/request-diagnostics.ts:28,109,133` | Remove speculative accessor catches/identity copy; keep timeout sink and disclosure boundary (openclaw#163388). | | Codex `command-handler-actions.ts:109` | Share sandbox/execution result assembly; preserve policy selectors, guards, currentness and release. | | Codex `migration/session-binding-sidecars.ts:460,549,627` | Single CAS attempt and one legacy-input read; preserve sidecar on conflict and canonical effect validation (openclaw#168479, openclaw#104504). | | Codex `installed-probe.ts:29`, native session preparation/monitor | KEEP isolated managed storage, credentials, native execution authority and ordinary write settlement. Upstream configuration/storage contract inspected directly. | | Memory `memory/search-deadline.ts:42` | One rejected cancellation promise replaces sentinel race; preserve cancellation/error identity, abort ordering, wall-clock guard and cleanup (openclaw#95757, openclaw#147702). | | Memory `manager-embedding-ops.ts:84`, `manager-registry.ts:264` | Simplify nested borrower bookkeeping and failed-close recovery; preserve outer leases, normal drain and documented retiring-cache fence (openclaw#113471, openclaw#166973, openclaw#144252). An initially broader removal was rejected during review. | | Memory publication, database context, index generation, transfer and cache owners | KEEP user-data transaction/publication, Forget exclusion, bounded transfers, worker ownership, integrity, performance caches and normal shutdown settlement (openclaw#168860, openclaw#169164, openclaw#169251, openclaw#170183, openclaw#170302, openclaw#170407). | | Memory paused deadlines, Unicode query, KNN/vector scan, watchers | KEEP human-reported SQLite stalls (openclaw#137056), dependency tokenizer behavior, external/native input validation, bounded resources and realistic cancellation. | | Memory dreaming/REM, migration/repair, backfill and standing intents | KEEP user-facing features, privacy/source validation, persisted rollback and public formats. Phase E untouched. | | Teams `sqlite-state.ts:27`, `graph.ts:85,177` | Remove redundant foreign-writer lock; one guarded Graph transport retains auth/SSRF, bounded parsing and release (openclaw#88411). | | Teams `setup-surface.ts:102`, `graph-group-management.ts:32,96`, `channel.ts:267` | Consolidate identical saves/context/pending result bookkeeping; preserve provider-specific validation, labels, errors, ordering and direct results (openclaw#112811). | | Matrix `matrix/actions/reactions.ts:135` | Remove duplicate missing-sender/empty-result guards; selector remains ownership boundary, empty list has no redactions. | | Matrix crypto store, verification, readiness, send FIFO and thread binding owners | KEEP room-key durability, real throwing dependency getters, encryption/send authority, public compatibility and accepted writes (openclaw#160707, openclaw#70401, openclaw#163012, openclaw#168485, openclaw#169405). | | Teams pending-upload dual owners | HOLD: persisting currently memory-only reply consent bytes would change privacy/persistence; deleting SQLite loses restart recovery. Needs an explicit policy choice, not a deslop shortcut. | | Teams streaming, multi-account configuration and exported setup factory | KEEP Stop/partial-delivery/FIFO, credential isolation and published factory signature (openclaw#141348, openclaw#112811). | | Reef `trust-state-operation.ts:164`, `trust-store.legacy.ts:115` | Share pure seven-command transitions, retain worker/native atomic adapters, schema checks, trust revisions and authorization (openclaw#168340). | | Reef `owner-notice.ts:32,72,122,253`, `audit-state.legacy.ts:145–255` | Remove duplicate retry scheduler/in-flight set and synchronous intermediate lease checks; preserve durable recovery/security (openclaw#109160, openclaw#109380). | | Reef released-host adapter and trust delivery settlement | KEEP declared host compatibility, accepted-write shutdown settlement, peer/key authority and user-data crash recovery. | | X events/allowlist/verification | KEEP paid-event settlement, bounded polling and credential/access authority. | | llama.cpp media/provider/install/orphan owners | KEEP confidentiality of local inputs, digest cache integrity and safe process identity before termination (openclaw#167902). | | ClawRouter pool/dashboard | KEEP untrusted network projection, bounded responses and active features; no useful large duplicate justified added abstraction. | | Workboard `view-card-actions.tsx:215`, `view-card.tsx:102`, `view-draft-choices.tsx:6` | Consolidate actions, menu wrappers and card/bulk draft controls; all callers migrated (openclaw#168606). | | Workboard native handlers and `view-popover.ts:19` | Drop impossible bound-target guards; repair ordinary conditional-fragment anchor timing (openclaw#168606). | | Workboard `sessions-board.ts:149,305`, `change-events.ts:6`, `gateway.ts:211` | Remove duplicate cache/lifecycle fences; share workspace input preparation while retaining workspace/security effect checks. | | Workboard draft/focus/pending-write/editor, board save and label measurement owners | KEEP real unsaved input, async writes, keyboard focus, live-authority checks and measured layout batching. | ## Evidence All local build/test/CLI commands use task-owned HOME, OpenClaw state/config and XDG directories. No real Gateway or user state is used. No timeout increases, retries, skips, new suppressions or weakened retained-behavior baselines. Final proof receipts and exact-head CI attribution are recorded below. Cold compiled-worker preparation dominates several local timings; these are not CI timings or live-provider claims. | Focused local proof | Result / wall cost | | --- | --- | | Codex request diagnostics | 14/14 pass; wrapper445.55s (cold worker/import dominated). | | Codex commands + Doctor contract | 122/123 pass; wrapper1352.60s. Doctor contract passes. The one method-list assertion (`commands.test.ts:951`) also observes background monitor `thread/read` calls. It **reproduces with explicit clean-base source loaded from `9b5bac5de29fac5a2df162265bbf01b6fb82e6ed`**: extra reads followed by the expected `thread/resume`, selected-case8.411s/Vitest403.28s. The affected test/support/actions/bindings/monitor files are byte-unchanged between that base and pinned main. No test skips or timing changes were added;99 unrelated cases were unselected for attribution. | | Workboard backend (sessions-board, Gateway, change-events, registration lifecycle) | 48/48 pass, four files; wrapper587.54s, Vitest545.18s. | | Workboard entire browser scope before final followups; final affected browser suites | 237/237 across29 files in59.03s; final103/103 across6 files in31.95s. New popover regression1/1 in9.34s; unchanged source fails intended geometry assertion in14.57s. | | Workboard actual compiled WebKit consumer | Pass: anchored menu, filter keyboard dismissal, nested Escape preserving dialog, focus return, zero page errors. | | Reef trust/friends/audit/receipt/outbound/notifier | 119/119 across6 files; wrapper927.25s, including cold worker compilation. Earlier unchanged channel proof25/25 pass. | | Teams sqlite/Graph/read authority/setup | 72/72 across5 files; wrapper385.62s. | | Teams Graph contexts/actions | 73/73 across3 files; wrapper327.91s. | | Teams mutation callers/setup policy | 42/42 across5 files; wrapper776.30s. | | Teams resolver + existing channel tests | Resolver4/4 pass; existing channel44 pass/2 fail, wrapper550.01s. **Both failures reproduce on full pinned main `4915e46c89b223ae4cdcdefe46fabc948b9bf7fa`**,44 pass/2 fail, wrapper464.42s: approval-monitor startup timeout120000ms (`channel.test.ts:313`) and subsequent `MSTeams runtime not initialized` (`runtime-store.ts:85` → `monitor.ts:81` → `channel.test.ts:970`). No budgets changed; the second appears cascading, not separately diagnosed. | | Matrix reaction ownership | 11/11 pass; wrapper339.25s. | | Lint suppression contracts | 3/3 pass on frozen candidate; wrapper48.94s. No new suppressions. | | Architecture | Zero runtime value cycles; zero static/Madge components. | Memory owner/sibling proof: 108/109 pass across nine files, wrapper939.49s. The only failure was this patch's newly authored assertion expecting the provider's raw close error instead of the owner's existing normalized diagnostic. After correcting that assertion without a production change, its exact case passed (4.389s execution, Vitest350.74s, wrapper373.90s, dominated by transforms). The other twelve registry cases were unselected in that focused invocation, not skipped in source. Together the runs prove all109 selected contracts, including actual-query retirement, shutdown drain, fallback/reload, healthy probe, transport and deadline behavior. Local tooling notes: the first changed-file run required removing one now-unused assertion-safety allowance. The corrected run passed conflict markers (27.14s), line-cap (4.43s), max-lines (69.87s), and assertion-safety (183.85s), then was intentionally stopped after the full-source SQLite worker inventory produced no result for 681.03s. This was incomplete local proof, not a passing inventory or an inherited source failure. Native production and test extension typegraphs both pass. Scoped lint could not begin analysis because SDK declaration preparation hit its unchanged 300000ms budget, both in the earlier Reef attempt and the final scoped attempt; neither produced a lint diagnostic. Final exact-head hosted CI below closes both gaps, with inventories running on the PR's frozen merge tree. Two custom-config attribution attempts were abandoned for harness setup failures; they are not behavior proof. Teams attribution above uses a normal full-main export and normal harness. No remote lease, live Teams tenant or live provider proof is claimed. Final formatting: all changed source/test/doc files pass. Plugin boundary report passes (zero eligible compatibility removals); UI localization verification passes. No public SDK files/exports or package manifests changed, so an SDK API-surface diff is not applicable. Independent review reported one P2 about an older Workboard read replacing newer `lastKnown` fallback facts before a subsequent backend outage. Declined as the explicitly accepted cache tradeoff, not silently ignored: fallback is presentation-only, availability remains visible, the next successful read repairs it, and `move` independently rereads authoritative facts/scope before its guarded write. The introducing controls are synthetic (openclaw#165896/openclaw#165141); no user-data, authorization, or persisted-write invariant is relaxed. First hosted CI run `38334064250` on `dabbd9208a20068c24e6901b41a13415c04ac856` completed with two owned lint failures: `check-lint-extensions-2` (explicit boolean and exhaustive return in Reef) and `check-lint-extensions-3` (default generic argument/Promise iterable in Memory, exhaustive return/shadowed local in Workboard). Its `openclaw/ci-gate` failure aggregates those two jobs. All other planned jobs passed, including SQLite inventories, source contracts, types, extension tests, and QA smoke. The focused correction adds five production lines. The first PR-evidence run also failed because this body's headings did not match the required template; corrected headings passed in run `38334357043`. Metadata auto-response cancellations and the superseded evidence run contain no product test suite. No inherited-failure exception is being claimed for these owned failures. **Final exact-head CI passes:** [run 38335564816](https://github.com/openclaw/openclaw/actions/runs/38335564816) on `b86c1ba06fa325f178007ba736c294cdd67a566d`, including `openclaw/ci-gate`, both extension-lint stripes, full inventories/ratchets, source contracts, typegraphs, selected extension bundles, security, and all QA smoke profiles. This closes the local inventory/lint tooling gaps described above. All exact-head check runs were enumerated; no failed, cancelled, timed-out, or pending check remains. No admin exception, manual rerun, dispatch, or rebase was used. CI job wall seconds: extension bundles 1/2/3/4-1/4-2/5 = 210/160/183/247/137/229; extension lint stripes 2/3 = 145/91; baseline ratchets = 271. These are parallel job wall times including setup, not added test execution time. The lint-only correction also passes native production types, formatting, suppression contracts (3/3; 65.59s wrapper), runtime cycles (0), static/Madge cycles (0), Workboard actions (32/32; 17.93s) and popover (1/1; 16.16s), plus Reef trust/Memory provider lifecycle (51/51; 401.38s Vitest, 445.49s wrapper). Independent review of that delta is scoped-clean at P0–P2; the original explicitly declined display-cache tradeoff remains documented above. ## Visual proof Before/after attachments show the actual built Workboard plugin against synthetic fixture data. Before: details menu at the page origin. After: anchored to its trigger. No pixel-identical claim across fixture timestamps.  
Related: #160810
What Problem This Solves
Browser and Memory Core still repeat private operation, validation, and lifecycle code after earlier cleanup passes. This is a maintainer-requested deep consolidation of those two plugins.
User Impact
No user-visible change. Features, configuration keys, CLI flags, protocol and stored-data shapes, error text, and output text are preserved. No dependency, schema, SDK facade, or changelog changes are included.
Why This Change Was Made
Browser operations now carry their admitted MCP session through one operation object, and share navigation, element interactions, relay authentication transitions, and CLI resize/hook handling. Memory Core shares provider fallback execution, generation leases, worker descriptors, corpus reads, dreaming publication, and CLI reporting. Differences in cancellation, cleanup, validation order, and wire projections remain explicit.
The implemented result removes 671 net production lines: Browser 332, Memory Core 339. Counts exclude tests, fixtures, test support, generated files, and declarations. The largest-first, file-by-file implementation and review pass covered 476 production files / 95,198 TypeScript and JavaScript lines. This is 0.70%, below the 3% target; it uses the requested 500–999-line exception after the deep pass. The coverage log is below.
Evidence
pnpm plugin-sdk:check-exportspassed. Public SDK files and export inventory are unchanged. Formatting and whitespace checks passed.readRecommendedModelsexport, already removed on main by858d31d074af; production/full-tree Knip hit their unchanged 600-second budgets, and extension lint could not pass SDK-declaration preparation within its unchanged 300-second budget. The next local lint batch was cancelled to avoid repeating that preparation failure. Final exact-head hosted CI supplies the missing lint/Knip proof. The assertion-safety baseline only shrinks two touched-file counts (relay bridge 8→7; memory search 5→4); the repaired route mock removes its obsolete closed-factory exception from the mock-export baseline.typescript/unbound-methodsuppressions are in untouchedsrc/logging/redact.tsandsrc/logging/redact-pattern-runtime.ts. No suppression was added here.Local memory timing failures were investigated against the unchanged tests and affected ownership paths. Baseline reproductions used clean main snapshot
a1ca0cd615f. Clean main reproduces the standalone KNN child deadline, all four native-publication marker failures, and provenance-repair startup catch-up=false timeout. The consolidation/forget case instead passed on main in 104 seconds; catch-up=true, targeted archive cleanup, transcript-redaction ingestion, the archived-only participant case, ordinary/project-aware search monotonicity, and the follow-up CLI rebuild remain unattributed local timeouts. No ordering or lease regression was found, but local passing replays do not resolve that uncertainty. The monotonicity case seeds 253 files, performs a vector sync, and runs seven searches inside its 240-second budget; the log does not identify which stage timed out. The consolidated fallback loop still permits at most two attempts, with the second failure propagated. Host load exceeded 600 on 16 logical CPUs during validation. Exact-head hosted CI remains the landing gate; none of these local observations waive a PR-caused CI failure.Remote validation was attempted: Testbox never admitted a runner and its owned lease was stopped. AWS admission was unavailable on both attempts; no AWS VM was created. No remote result is claimed.
Fresh independent Codex review completed through P2. Two findings were rejected against the complete source: separate dreaming reports still require
hasContent, and the frame collector already excludes non-HTTP(S) URLs before policy validation; the private call chain also requires an active policy. Existing no-content, subframe, and quarantine-ordering tests passed. The full review reported findings, not a scoped-clean verdict; there are no accepted/actionable findings after verification. The later two-file SDK compatibility fix received a separate scoped-clean review through P2.The first exact-head CI attempt passed its runtime jobs and the Node/Bun Browser MCP contracts but failed standalone plugin compilation: the plugin library surface does not expose
Promise.withResolversorPromiseWithResolvers. The follow-up usescreateDeferredfrom the existingconcurrency-runtimeSDK seam, whose implementation calls the same native operation. Compiler targets and dependencies stay unchanged. Both cycle checks and extension production types passed again; the admitted-provider retirement case passed. A focused browser run passed 24/25 cases and observed one extra navigation completion in the hold-delay abort case. An original-order baseline diagnostic passed 25/25 and did not confirm the suspected late callback from an earlier test. The test and its assertion remain unchanged; that local result is an investigated uncertainty, and every updated head requires complete hosted CI.The second CI attempt passed package compilation and runtime tests, then reported three owned extension-lint findings: two spreads in map callbacks and one redundant default type argument. The final follow-up constructs fresh result objects explicitly, preserving optional property presence and order, and omits the redundant type argument. Three existing workspace-ownership/project-recall cases passed; both cycle checks and extension production types passed again, and the follow-up received a scoped-clean P2 review. Local lint preparation still hit its unchanged declaration-build deadline; final hosted lint passed. No rule or baseline was loosened.
Tests only changed where removed private seams required it; assertions, timers, retries, skips, and budgets were not weakened. No new tests or CI jobs were added.
Final hosted validation passed on
334d150a73240e797994773e4dced6940f5bcdd3: CI run 37740511375, including standalone plugin compilation, extension lint, and all selected runtime jobs. Browser MCP contracts passed under Node and Bun. The exhaustive exact-head check census records 69 successful / 54 skipped / 0 failed / 0 cancelled / 0 pending check runs; all three commit-status contexts are successful. The skipped jobs are unselected workflow branches, not cancelled or missing selected proof. ClawSweeper completed review of this same head with no findings and no before-merge items. No inherited-red merge exception is used. The local uncertainties above remain documented; hosted success does not retroactively turn those local results into passing runs.File-by-file production coverage
Every file below was inspected in the implementation pass. “Changed” means a measured consolidation is included. Retained files had distinct contracts or already shared their implementation; no speculative abstraction was added for line count.
extensions/browser/src/browser/chrome.tsextensions/browser/src/browser/extension-relay/relay-bridge.tsextensions/browser/src/browser/routes/agent.snapshot.tsextensions/browser/src/browser/session-tab-store.tsextensions/browser/src/browser-dashboard.tsextensions/browser/src/browser/pw-session-actions.tsextensions/browser/src/cli/browser-cli-manage.tsextensions/browser/src/browser/pw-session-connection.tsextensions/browser/src/browser/extension-relay/relay-server.tsextensions/browser/src/browser/server-context.availability.tsextensions/browser/src/browser/chrome.executables.tsextensions/browser/src/browser/extension-install-registration.tsextensions/browser/src/browser/pw-tools-core.interactions.content.tsextensions/browser/src/browser/session-tab-tracking.tsextensions/browser/src/browser/routes/agent.act.tsextensions/browser/src/browser/pw-tools-core.interactions.navigation.tsextensions/browser/src/browser/server-context.lifecycle.tsextensions/browser/src/gateway/browser-request.tsextensions/browser/src/browser-tool.tsextensions/browser/src/browser-proxy-upload.tsextensions/browser/src/browser/extension-relay/relay-session-owner.tsextensions/browser/src/browser/server-context.tab-ops.tsextensions/browser/src/browser/cdp.helpers.tsextensions/browser/src/browser/config.tsextensions/browser/src/node-host/invoke-browser.tsextensions/browser/src/browser/pw-tools-core.downloads.tsextensions/browser/src/browser-tool.actions.tsextensions/browser/src/browser/routes/basic.tsextensions/browser/src/browser/extension-relay/relay-fetch.tsextensions/browser/src/browser/pw-session-navigation.tsextensions/browser/src/browser/extension-install-layout.tsextensions/browser/src/browser-tool.snapshot.tsextensions/browser/src/browser/client-fetch.tsextensions/browser/src/browser/pw-tools-core.interactions.actions.tsextensions/browser/src/cli/browser-cli-extension.tsextensions/browser/src/browser/cdp-websocket.tsextensions/browser/src/browser/pw-tools-core.snapshot.tsextensions/browser/src/browser/pw-session-state.tsextensions/browser/src/browser/chrome-mcp-routing.tsextensions/browser/src/browser/pw-tools-core.interactions.execution.tsextensions/browser/src/browser/routes/tabs.tsextensions/browser/src/browser/chrome-mcp-session.tsextensions/browser/src/browser/chrome.diagnostics.tsextensions/browser/src/browser/extension-setup.tsextensions/browser/src/browser/extension-relay/auth-v2.tsextensions/browser/src/browser-tool.schema.tsextensions/browser/src/browser/screencast/session.tsextensions/browser/src/browser/pw-role-snapshot.tsextensions/browser/src/browser/routes/agent.storage.tsextensions/browser/src/browser/session-tab-cleanup-claim.tsextensions/browser/src/browser/server-context.tsextensions/browser/src/browser/routes/agent.act.normalize.tsextensions/browser/src/browser/chrome-mcp-actions.tsextensions/browser/src/browser/chrome-mcp-tabs.tsextensions/browser/src/browser/session-tab-registry.tsextensions/browser/src/browser/extension-relay/relay-lifecycle.tsextensions/browser/src/browser/extension-install.tsextensions/browser/src/browser/client.tsextensions/browser/src/browser/chrome-mcp-process.tsextensions/browser/src/session-browser-dashboard.tsextensions/browser/src/browser/pw-tools-core.state.tsextensions/browser/src/browser/client-actions.tsextensions/browser/src/browser/system-profiles.tsextensions/browser/src/browser/extension-windows-host.tsextensions/browser/src/browser/routes/agent.act.existing-session.tsextensions/browser/src/browser-tool-dispatch.tsextensions/browser/src/browser/extension-relay/owner-client.tsextensions/browser/src/browser/system-chrome-cookies.tsextensions/browser/src/browser/server-context.selection.tsextensions/browser/src/browser/profiles-service.tsextensions/browser/src/browser/cdp.tsextensions/browser/src/browser/extension-windows-contract.tsextensions/browser/src/browser/act-policy.tsextensions/browser/src/browser/cdp-role-snapshot.tsextensions/browser/src/browser/pw-session-cdp-transport.tsextensions/browser/src/browser/extension-relay/gateway-relay-route.tsextensions/browser/src/browser-node-proxy.tsextensions/browser/src/browser/pw-role-snapshot-capture.tsextensions/browser/src/doctor-browser.tsextensions/browser/src/cli/browser-cli-actions-input/register.element.tsextensions/browser/src/browser/extension-relay/owner-server.tsextensions/browser/src/browser/screenshot-annotate.tsextensions/browser/src/cli/browser-cli-state.tsextensions/browser/src/cli/browser-cli-inspect.tsextensions/browser/src/browser/paths.tsextensions/browser/src/browser/errors.tsextensions/browser/src/browser/routes/agent.shared.tsextensions/browser/src/cli/browser-cli-cookie-sync.tsextensions/browser/src/browser/chrome.graphics.tsextensions/browser/src/browser/doctor.tsextensions/browser/src/gateway/session-browser-request.tsextensions/browser/src/browser/pw-session.page-cdp.tsextensions/browser/src/browser/routes/permissions.tsextensions/browser/src/browser/bridge-server.tsextensions/browser/src/browser/chrome-mcp-connect.tsextensions/browser/src/browser/cdp-page-session.tsextensions/browser/src/browser/chrome-mcp-result.tsextensions/browser/src/browser/navigation-guard.tsextensions/browser/src/browser/cdp-role-snapshot-tree.tsextensions/browser/src/browser/extension-relay/relay-runtime.tsextensions/browser/src/browser/chrome-mcp.snapshot-page.tsextensions/browser/src/browser/routes/agent.act.hooks.tsextensions/browser/src/browser/target-id.tsextensions/browser/src/cli/browser-cli.tsextensions/browser/src/browser-proxy-envelope.tsextensions/browser/src/browser/extension-native-host.tsextensions/browser/src/cli/browser-cli-actions-input/register.files-downloads.tsextensions/browser/src/browser/pw-download-capture.tsextensions/browser/src/browser/cdp-role-snapshot-dom.tsextensions/browser/src/browser/pw-session-contracts.tsextensions/browser/src/browser/extension-windows-platform.tsextensions/browser/src/browser/pw-tools-core.storage.tsextensions/browser/src/cli/browser-cli-shared.tsextensions/browser/src/browser/session-tab-ephemeral-aliases.tsextensions/browser/src/browser-tool.screenshot.tsextensions/browser/src/browser/resolved-config-refresh.tsextensions/browser/src/browser/chrome.profile-decoration.tsextensions/browser/src/browser/extension-relay/relay-auth.tsextensions/browser/src/cli/browser-cli-actions-input/shared.tsextensions/browser/src/browser/client.types.tsextensions/browser/src/browser-dashboard-records.tsextensions/browser/src/browser/chrome-mcp-contracts.tsextensions/browser/src/browser/config-mutations.tsextensions/browser/src/browser/extension-relay/auth-v2-websocket.tsextensions/browser/src/browser/pw-session-dialogs.tsextensions/browser/src/browser-tool.routing.tsextensions/browser/src/browser/cdp-proxy-bypass.tsextensions/browser/src/browser/extension-relay/relay-target.tsextensions/browser/src/browser/routes/agent.debug.tsextensions/browser/src/browser/routes/existing-session-limits.tsextensions/browser/src/browser-tool.lifecycle.tsextensions/browser/src/browser/extension-relay/relay-protocol.tsextensions/browser/src/browser-tool-description.tsextensions/browser/src/browser/pw-tools-core.shared.tsextensions/browser/src/cli/browser-cli-state.cookies-storage.tsextensions/browser/src/browser/engines/lightpanda.tsextensions/browser/src/attached-browser-tool-runtime.tsextensions/browser/src/browser-tool-session-tabs.tsextensions/browser/src/cli/browser-cli-debug.tsextensions/browser/src/gateway/browser-request-tab-scope.tsextensions/browser/src/browser/chrome.executable-probe.tsextensions/browser/src/security-audit.tsextensions/browser/src/browser/chrome-mcp.snapshot.tsextensions/browser/src/cli/browser-cli-actions-input/register.form-wait-eval.tsextensions/browser/src/browser/routes/utils.tsextensions/browser/src/browser/extension-relay/owner-auth-client.tsextensions/browser/src/browser/routes/agent.screencast.tsextensions/browser/src/browser/routes/dispatcher.tsextensions/browser/src/server.tsextensions/browser/src/browser/control-auth.tsextensions/browser/src/browser/extension-native-protocol.tsextensions/browser/src/browser/pw-tools-core.activity.tsextensions/browser/src/browser/session-tab-sweep-selection.tsextensions/browser/src/browser-control-state.tsextensions/browser/src/browser/extension-install-external.tsextensions/browser/src/browser-dashboard-definition.tsextensions/browser/src/browser-runtime-state.tsextensions/browser/src/browser/relay-daemon.tsextensions/browser/src/browser/snapshot-delta-cache.tsextensions/browser/src/browser-tool-binding.tsextensions/browser/src/browser-dashboard-events.tsextensions/browser/src/browser/chrome-mcp-options.tsextensions/browser/src/browser/extension-relay/preauth-websocket-guard.tsextensions/browser/src/browser/routes/agent.act.download.tsextensions/browser/src/browser/session-tab-process-state.tsextensions/browser/src/browser/server-context.types.tsextensions/browser/src/browser/extension-windows-context.tsextensions/browser/src/browser/runtime-lifecycle.tsextensions/browser/src/browser/proxy-files.tsextensions/browser/src/browser/cdp-reachability-policy.tsextensions/browser/src/browser/extension-relay/auth-v2-crypto.tsextensions/browser/src/browser/vision.tsextensions/browser/src/cli/browser-cli-actions-observe.tsextensions/browser/src/control-service.tsextensions/browser/src/browser/pw-snapshot-page.tsextensions/browser/src/browser/client-actions.types.tsextensions/browser/src/browser/pw-tools-core.responses.tsextensions/browser/src/browser/extension-pairing.tsextensions/browser/src/browser/pw-session-downloads.tsextensions/browser/src/browser/session-tab-cleanup.tsextensions/browser/src/browser/routes/agent.snapshot.plan.tsextensions/browser/src/browser/cdp-timeouts.tsextensions/browser/src/browser/pw-session-page-target.tsextensions/browser/src/browser/extension-install-context.tsextensions/browser/src/browser/engines/lightpanda-cdp.tsextensions/browser/src/browser/ssrf-policy-helpers.tsextensions/browser/src/browser/request-policy.tsextensions/browser/src/browser/csrf.tsextensions/browser/src/browser/client-request.tsextensions/browser/src/browser/engines/types.tsextensions/browser/src/browser-node-routing.tsextensions/browser/src/browser/routes/agent.snapshot-target.tsextensions/browser/src/browser/system-profile-import-state.tsextensions/browser/src/browser/http-auth.tsextensions/browser/src/browser/screenshot.tsextensions/browser/src/browser/extension-relay-daemon-spawn.tsextensions/browser/src/cli/browser-cli-actions-input/register.batch.tsextensions/browser/src/browser/pw-ai.tsextensions/browser/src/browser/routes/profile-capabilities.tsextensions/browser/src/browser/extension-relay/owner-playwright.tsextensions/browser/src/browser/screencast/tokens.tsextensions/browser/src/browser/extension-windows-management.tsextensions/browser/src/browser/snapshot-roles.tsextensions/browser/src/plugin-service.tsextensions/browser/src/browser/browser-proxy-mode.tsextensions/browser/src/browser/engines/chromium.tsextensions/browser/src/browser/pw-ai-module.tsextensions/browser/src/browser/profiles.tsextensions/browser/src/browser/routes/route-numeric.tsextensions/browser/src/cli/browser-cli-actions-input/register.navigation.tsextensions/browser/src/plugin-enabled.tsextensions/browser/src/browser/chrome-mcp-diagnostics.tsextensions/browser/src/browser/server-middleware.tsextensions/browser/src/browser/cdp-ax.tsextensions/browser/src/browser/pw-session.tsextensions/browser/src/browser/pw-tools-core.trace.tsextensions/browser/src/browser-host-availability.tsextensions/browser/src/browser/output-directories.tsextensions/browser/src/browser-dashboard.types.tsextensions/browser/src/browser/unhandled-rejections.tsextensions/browser/src/browser/client-actions-types.tsextensions/browser/src/browser/extension-relay/owner-protocol.tsextensions/browser/src/browser/bounded-utf8-tail.tsextensions/browser/src/browser/evaluate-source.tsextensions/browser/src/browser/routes/types.tsextensions/browser/src/cli/browser-cli-examples.tsextensions/browser/src/cli/browser-cli-resize.tsextensions/browser/src/browser/screencast/upgrade.tsextensions/browser/src/browser/extension-relay/relay-access.tsextensions/browser/src/browser/form-fields.tsextensions/browser/src/browser/cdp-auth.tsextensions/browser/src/browser/chrome-mcp.tsextensions/browser/src/browser/cdp-target-filter.tsextensions/browser/src/browser/session-tab-route.tsextensions/browser/src/browser/url-pattern.tsextensions/browser/src/browser-node-fallback.tsextensions/browser/src/browser/extension-relay/relay-request.tsextensions/browser/src/browser/output-files.tsextensions/browser/src/browser/screencast/wire.tsextensions/browser/src/browser/session-tab-untrack-selection.tsextensions/browser/src/browser/rate-limit-message.tsextensions/browser/src/config/port-defaults.tsextensions/browser/src/sdk-node-runtime.tsextensions/browser/src/browser/bridge-auth-registry.tsextensions/browser/src/browser/profile.types.tsextensions/browser/src/browser/screenshot-sharing.tsextensions/browser/src/browser/routes/agent.act.shared.tsextensions/browser/src/browser/routes/output-paths.tsextensions/browser/src/browser/constants.tsextensions/browser/src/browser/http-listen.tsextensions/browser/src/browser/server-lifecycle.tsextensions/browser/src/browser/system-profile-domains.tsextensions/browser/src/browser/routes/index.tsextensions/browser/src/browser/engines/registry.tsextensions/browser/src/browser/local-dispatch.runtime.tsextensions/browser/src/browser/playwright-core.runtime.tsextensions/browser/src/browser/chrome-mcp.snapshot-result.tsextensions/browser/src/browser/client-tab-close.runtime.tsextensions/browser/src/browser/extension-native-host-file.tsextensions/browser/src/browser/request-scope.tsextensions/browser/src/browser/routes/agent.act.errors.tsextensions/browser/src/browser-proxy-timeouts.tsextensions/browser/src/browser/extension-relay/relay-command-timeout.tsextensions/browser/src/cli/browser-cli-actions-input/register.tsextensions/browser/src/browser/snapshot-urls.tsextensions/browser/src/browser/trash.tsextensions/browser/src/browser/timer-delay.tsextensions/browser/src/browser/extension-native-host.runtime.tsextensions/browser/src/browser/extension-relay/create-target-params.tsextensions/browser/src/browser-tool.runtime.tsextensions/browser/src/browser/extension-host-config.tsextensions/browser/src/browser/snapshot-depth-limit.tsextensions/browser/src/browser/profile-capabilities.tsextensions/browser/src/browser/pw-tools-core.interactions.tsextensions/browser/src/browser/server-context.constants.tsextensions/browser/src/browser-node-commands.tsextensions/browser/src/browser/chrome-mcp.runtime.tsextensions/browser/src/browser/extension-relay.runtime.tsextensions/browser/src/browser/config-refresh-source.tsextensions/browser/src/browser/download-types.tsextensions/browser/src/browser/pw-session-page.types.tsextensions/browser/src/browser-gateway-contract.tsextensions/browser/src/browser-proxy-upload-cleanup.runtime.tsextensions/browser/src/browser/extension-native-host.constants.tsextensions/memory-core/src/dreaming-phases.tsextensions/memory-core/src/memory/manager-embedding-ops.tsextensions/memory-core/src/rem-evidence.tsextensions/memory-core/src/memory/manager-database-context.tsextensions/memory-core/src/memory/manager-provider-lifecycle.tsextensions/memory-core/src/memory/manager-search-orchestration.tsextensions/memory-core/src/memory/manager.tsextensions/memory-core/src/short-term-promotion-apply.tsextensions/memory-core/src/migration/doctor-memory-sidecar.tsextensions/memory-core/src/cli-index-search.runtime.tsextensions/memory-core/src/memory/manager-search.tsextensions/memory-core/src/dreaming.tsextensions/memory-core/src/migration/doctor-host-events.tsextensions/memory-core/src/memory/manager-sync-base.tsextensions/memory-core/src/memory/manager-sync-ops.tsextensions/memory-core/src/tools.tsextensions/memory-core/src/cli-status.runtime.tsextensions/memory-core/src/cli-rem.runtime.tsextensions/memory-core/src/session-backfill.tsextensions/memory-core/src/memory/manager-keyword-retrieval.tsextensions/memory-core/src/short-term-promotion-utils.tsextensions/memory-core/src/memory-forget.tsextensions/memory-core/src/dreaming-dreams-file.tsextensions/memory-core/src/dreaming-consolidation.tsextensions/memory-core/src/memory/manager-session-sync-ops.tsextensions/memory-core/src/session-ingestion.tsextensions/memory-core/src/memory/manager-search-knn-subprocess.tsextensions/memory-core/src/session-search-visibility.tsextensions/memory-core/src/migration/doctor-memory-sidecar-import.tsextensions/memory-core/src/concept-vocabulary.tsextensions/memory-core/src/memory/manager-publication.worker.tsextensions/memory-core/src/memory/manager-source-sync-ops.tsextensions/memory-core/src/memory/file-watcher.tsextensions/memory-core/src/memory/manager-registry.tsextensions/memory-core/src/short-term-promotion-record.tsextensions/memory-core/index.tsextensions/memory-core/src/cli.tsextensions/memory-core/src/memory-workspace-lock.tsextensions/memory-core/src/short-term-promotion-stats.tsextensions/memory-core/src/dreaming-narrative.tsextensions/memory-core/src/memory/hybrid.tsextensions/memory-core/src/short-term-promotion-rehydrate.tsextensions/memory-core/src/memory-corpus.tsextensions/memory-core/src/memory-entry-origins.tsextensions/memory-core/src/dreaming-cron.tsextensions/memory-core/src/memory/manager-cpu-worker-runtime.tsextensions/memory-core/src/memory/manager-embedding-cache-ops.tsextensions/memory-core/src/standing-intents-model.tsextensions/memory-core/src/short-term-promotion-artifacts.tsextensions/memory-core/src/memory/manager-embedding-cache.tsextensions/memory-core/src/dreaming-repair.tsextensions/memory-core/src/session-backfill-lifecycle.tsextensions/memory-core/src/memory-search-tool-query.tsextensions/memory-core/src/memory/manager-reindex-state.tsextensions/memory-core/src/memory/manager-db.tsextensions/memory-core/src/memory/manager-index-generation-lease.tsextensions/memory-core/src/cli-runtime-common.tsextensions/memory-core/src/remote/memory-files-worker.tsextensions/memory-core/src/standing-intents-kernel.tsextensions/memory-core/src/short-term-promotion-memory-write.tsextensions/memory-core/src/short-term-promotion.tsextensions/memory-core/src/memory-budget.tsextensions/memory-core/src/memory/watch-policy.tsextensions/memory-core/src/dreaming-ingestion-state.tsextensions/memory-core/src/memory/manager-search.worker.tsextensions/memory-core/src/standing-intents-tool.tsextensions/memory-core/src/memory/manager-embedding-policy.tsextensions/memory-core/src/dreaming-state.tsextensions/memory-core/src/short-term-promotion-types.tsextensions/memory-core/src/memory/embeddings.tsextensions/memory-core/src/memory/manager-db-kernel.tsextensions/memory-core/src/migration/doctor-host-event-sources.tsextensions/memory-core/src/memory/manager-source-index-kernel.tsextensions/memory-core/src/memory-forget-index-read.tsextensions/memory-core/src/migration/doctor-dreaming-cron.tsextensions/memory-core/src/dreaming-markdown.tsextensions/memory-core/src/doctor-health.tsextensions/memory-core/src/memory/manager-search-knn.tsextensions/memory-core/src/rem-harness.tsextensions/memory-core/src/memory-tool-contract.tsextensions/memory-core/src/memory/temporal-decay.tsextensions/memory-core/src/session-backfill-gateway.tsextensions/memory-core/src/memory/manager-search-vector.tsextensions/memory-core/src/standing-intents.tsextensions/memory-core/src/memory/manager-watch-ops.tsextensions/memory-core/src/memory/manager-publication-transfer.tsextensions/memory-core/src/doctor-vector-index-provider.tsextensions/memory-core/src/short-term-promotion-store.tsextensions/memory-core/src/memory/manager-sync-control.tsextensions/memory-core/src/tools.shared.tsextensions/memory-core/src/memory/manager-index-preparation.tsextensions/memory-core/src/memory/manager-chunk-writer.tsextensions/memory-core/src/memory/manager-source-state.tsextensions/memory-core/src/memory/manager-sqlite-lease.tsextensions/memory-core/src/memory/manager-status-state.tsextensions/memory-core/src/memory/manager-search-knn.child.tsextensions/memory-core/src/memory-workspace-files.tsextensions/memory-core/src/dreaming-consolidation-artifacts.tsextensions/memory-core/src/memory/manager-publication-task.tsextensions/memory-core/src/memory/manager-provider-state.tsextensions/memory-core/src/migration/doctor-dreaming-state.tsextensions/memory-core/src/flush-plan.tsextensions/memory-core/src/memory-session-tombstones.tsextensions/memory-core/src/dreaming-command.tsextensions/memory-core/src/memory-forget-kernel.tsextensions/memory-core/src/memory/search-deadline.tsextensions/memory-core/src/memory-read-tool.tsextensions/memory-core/src/memory-entry-origin-reads.tsextensions/memory-core/src/memory/manager-retrieval-read.tsextensions/memory-core/src/memory/mmr.tsextensions/memory-core/src/memory-entry-origins.worker.tsextensions/memory-core/src/memory-forget-content.tsextensions/memory-core/src/memory-entry-origins-task.tsextensions/memory-core/src/memory/manager-session-sync-state.tsextensions/memory-core/src/memory/memory-path-provenance.tsextensions/memory-core/src/memory/search-manager.tsextensions/memory-core/src/cli-reset.runtime.tsextensions/memory-core/src/memory-forget-curated-writes.tsextensions/memory-core/src/memory/watch-settle.tsextensions/memory-core/src/memory/manager-targeted-sync.tsextensions/memory-core/src/migration/dreaming-cron-classifier.tsextensions/memory-core/src/standing-intents.worker.tsextensions/memory-core/src/memory/tokenize.tsextensions/memory-core/src/short-term-promotion-metadata.tsextensions/memory-core/src/memory/manager-search-maintenance.tsextensions/memory-core/src/memory/manager-vector-rebuild-state.tsextensions/memory-core/src/cli-memory-slot.tsextensions/memory-core/src/tools.citations.tsextensions/memory-core/src/memory/manager-status-presence.tsextensions/memory-core/src/memory/lifecycle.tsextensions/memory-core/src/memory/manager-index-source.tsextensions/memory-core/src/memory-forget-report.tsextensions/memory-core/src/cli.types.tsextensions/memory-core/src/memory/manager-search-shared.tsextensions/memory-core/src/memory-forget-worker.tsextensions/memory-core/src/memory/manager-sync-outcome.tsextensions/memory-core/src/memory/project-ranking.tsextensions/memory-core/src/rem-evidence-files.tsextensions/memory-core/src/memory/manager-cpu-entrypoints.tsextensions/memory-core/src/memory-entry-origins-delete.tsextensions/memory-core/src/memory-forget-index-task.tsextensions/memory-core/src/session-backfill-selection.tsextensions/memory-core/src/dreaming-shared.tsextensions/memory-core/src/memory/embedding-local-service.tsextensions/memory-core/src/runtime-provider.tsextensions/memory-core/src/session-backfill-contract.tsextensions/memory-core/src/memory/manager-shadow-task.tsextensions/memory-core/src/memory/manager-embedding-errors.tsextensions/memory-core/src/memory-forget-index-sources.tsextensions/memory-core/src/memory/manager-reindex-lock.tsextensions/memory-core/src/session-reset-recall-metadata.tsextensions/memory-core/src/dreaming-events.tsextensions/memory-core/src/memory/manager-reset-chunk-boundary.tsextensions/memory-core/src/dreaming-session-cleanup.tsextensions/memory-core/cli-metadata.tsextensions/memory-core/src/workspace-path-classifier.tsextensions/memory-core/runtime-api.tsextensions/memory-core/src/memory/manager-session-reindex.tsextensions/memory-core/src/memory/manager-vector-warning.tsextensions/memory-core/api.tsextensions/memory-core/src/dreaming-consolidation-candidates.tsextensions/memory-core/src/memory/manager-vector-write.tsextensions/memory-core/src/memory/keyword-query.tsextensions/memory-core/src/memory/manager-index.worker.tsextensions/memory-core/doctor-contract-api.tsextensions/memory-core/src/memory-budget-append.tsextensions/memory-core/src/memory/importance.tsextensions/memory-core/src/memory/manager-runtime.tsextensions/memory-core/src/cli.runtime.tsextensions/memory-core/src/memory/source-filter.tsextensions/memory-core/src/memory-rebuild-notice.tsextensions/memory-core/src/memory/local-embedding-provider.tsextensions/memory-core/src/memory/manager-provider-runtime-facts.tsextensions/memory-core/src/migration/doctor-workspaces.tsextensions/memory-core/src/time.tsextensions/memory-core/src/memory/manager-status-presence.runtime.tsextensions/memory-core/src/memory/runtime-host.tsextensions/memory-core/src/memory/background-context.tsextensions/memory-core/src/memory/manager-search-knn-entrypoint.tsextensions/memory-core/doctor-health-api.tsextensions/memory-core/manager-runtime.tsextensions/memory-core/src/memory/index.tsextensions/memory-core/src/tools.runtime.tsextensions/memory-core/prewarm-api.tsextensions/memory-core/src/session-backfill-gateway.runtime.tsextensions/memory-core/session-search-visibility-api.tsextensions/memory-core/src/dreaming-cron-contract.tsextensions/memory-core/src/memory/vector-blob.tsextensions/memory-core/worker-api.tsextensions/memory-core/cli.tsextensions/memory-core/search-api.tsextensions/memory-core/status-api.ts