Skip to content

refactor(extensions): deslop browser and memory plugins further - #159798

Merged
steipete merged 4 commits into
mainfrom
deslop/l127-browser-memory4
Sep 28, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/l127-browser-memory4

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Continues the browser and memory plugin cleanup after the earlier subsystem passes, removing redundant forwarding, duplicate result projections, and private dead code.

User Impact

No intended user-visible change. CDP protocol usage, SSRF/network guards, memory persisted formats, SQLite semantics, and model-facing tool text remain unchanged. No schema, configuration, or migration changes.

Why This Change Was Made

The sweep read the four production subtrees and their principal callers, starting with untouched large files after reviewing merged subtree changes since September 20. This pass removes 720 net production lines, plus seven net test/support lines. The two assertion-baseline entries shrink with their removed assertions.

  • Fold the private page-CDP wrapper into its actual scoped-session owner.
  • Share browser diagnostic request projection and common action option types, CLI error handling and doctor probe settlement, tab-index command dispatch, and tab-route response publication.
  • Delete the unreachable extension color mapper and redundant protocol-list wrapper; reuse the authentication constant and canonical tab-policy types, and combine identical JSON-parser transitions.
  • Reuse common profile fields, invariant comparisons, exact alias normalization, and the canonical bounded-map helper while retaining the existing lifecycle and network gates.
  • Remove the second hybrid-memory candidate projection; keep mergeHybridResults as the output owner. Share embedding cache-miss preparation, index-identity assignment and source normalization, and remove one-use aliases/wrappers.
  • Share diary fingerprint deduplication, simplify grounded-REM accumulation, and reuse the concept script classifier and bounded dreaming-stat selection.
  • Call the public memory-artifact owner directly through the registered plugin capability; retain its existing tests at that real entry point.
  • Unify wiki status/doctor routing and output ownership, and export Active Memory functions at their declarations instead of maintaining duplicate inventories.

Evidence

Independent Codex P0–P2 reviews are clean. Final head 530c0256973daa815fc19be291ce7f717b87d137 is based on repaired main 72b76842012f405400a2b6b694f46bd62b7bca1c. Both conflict-free rebases preserve all four reviewed patches exactly (git range-diff); no files in the four plugin subtrees changed between the final Testbox source and this last rebase.

The final full proof tested source 2696a41f7dbd39b1d987d5957a76e2bd4bd635da on Blacksmith Testbox tbx_01m3jp721g4ht3j745mq7evde3 (run), after frozen installation, one command at a time. It exited 0 in 37m02s; the lease is stopped.

  • pnpm test:extensions:batch for each plugin: browser 4,498 passed, memory-core 2,016 passed, memory-wiki 469 passed, Active Memory 368 passed. 7,351 plugin tests passed; 116 browser, four memory-core and one wiki test retain their normal live/platform exclusions.
  • node scripts/check-changed.mjs and pnpm build passed, including types, lint, formatting, and all three unused-export scans. The earlier explicit pnpm deadcode:full also passed.
  • 68 tests passed across src/infra/fs-safe-import-boundary.test.ts, test/plugin-extension-import-boundary.test.ts, test/test-helper-extension-import-boundary.test.ts, test/scripts/extension-import-boundary-checker.test.ts, and src/plugin-sdk/api-baseline.test.ts.
  • pnpm plugin-sdk:api:diff --base e205c9d6fced8f9201e5aa500a355ec93dbcff0b --head HEAD: no Plugin SDK API changes.
  • The unchanged six-case ui/src/e2e/chat-flow.history-recovery.e2e.test.ts passed on Linux after the upstream fixture repair, 27.51s Vitest wall.
  • Changed-test single-worker cost on Linux: pnpm test extensions/browser/chrome-extension/modules/relay-core.test.ts --maxWorkers=1: 1.66s wall; pnpm test extensions/memory-core/src/public-artifacts.test.ts --maxWorkers=1: 16.21s wall. Existing cases remain; artifact coverage now enters through the registered capability. Final CI recorded 0.064s across the 58 relay test bodies and 0.471s across the two artifact test bodies (excluding shared setup; extension bundles 1 and 8).

CI exposed a dynamic-module reachability limitation in unused-export analysis, so the original explicit Playwright object was retained without scanner exceptions. Typed lint rejected map-spread projection changes and an unbound test method; the established projections were retained and the method now keeps its registered receiver. The assertion baseline only shrinks by the two removed assertions. All corrections received fresh review and passed remote checks.

Fixes found along the way

The plugin batch runner rejected Active Memory because its inventory recognized only package.json, although the plugin declares openclaw.plugin.json. Merged #159981 fixes shared inventory and name/path/current-directory resolution. Its six regression cases fail before the fix and pass afterward. The repaired entry point passed 503 plugin tests, 121 tooling tests, two CI planner ownership/capacity cases, changed checks, and independent review on Blacksmith Testbox tbx_01m3jm0g6y1sdh4ehdf58jthba (run); that lease is stopped. The repair is verified on main as e205c9d6fce and included in this branch base.

Inherited hosted failures have separately owned merged repairs: media-retention fixtures in #159813, the mixed-history mock race in #159901, and a Bun-install assertion made stale by helper extraction in #159964. The latter now tests mismatched tarballs through the real smoke entry point. No duplicate repairs were published. Final-head CI passed for 530c0256973daa815fc19be291ce7f717b87d137: all 147 jobs completed, with no failures. Earlier failed/cancelled runs are not counted as success. This refactor remains unmerged and is not armed for auto-merge. BELOW-THRESHOLD-PR-READY: 720 net production lines removed, with the complete 217-file READ coverage log below.

Remote execution and lease cleanup

Provider: blacksmith-testbox throughout, via the repository Crabbox wrapper. All six lane-owned leases now report completed; no other lane's lease or staging directory was touched.

Lease Commands and outcome
tbx_01m3hv4kn2v3typnetydxvd1c3 Initial focused/plugin proof; superseded by the complete final runs.
tbx_01m3j2cmr9a8kzynf9yqnrn2yf Correction checks, build, and dead-code/import/API proof; superseded by the final full run.
tbx_01m3j792ytykxrmkynfm0m3jxg Resume transport failed with exit 255 before tests; no test success claimed.
tbx_01m3jg072tvxzek74ftwxp757h Full resumed changed checks, build, 7,351 plugin tests, and SDK comparison passed in 36m14s.
tbx_01m3jm0g6y1sdh4ehdf58jthba Manifest-only discovery: intended negative control, 626 passing candidate tests, and changed checks.
tbx_01m3jp721g4ht3j745mq7evde3 Final full changed checks/build, 7,351 plugin tests, 68 boundary/API tests, SDK comparison, and six history E2E tests passed in 37m02s.
Coverage log: all 217 production files over 200 lines

Lane l127 production coverage

Every production file over 200 lines in the baseline or final candidate. Sizes below describe the final candidate and are sorted descending. All listed files and smaller production modules were read. Recent merged subtree PRs and name-only diffs were inspected before edits.

LOC Production file Read outcome
1610 extensions/browser/src/browser/chrome.ts READ — exact-process launch, stale-lock recovery, and shutdown checks preserve distinct host/protocol contracts; no sound owner removal.
1511 extensions/memory-core/src/dreaming-phases.ts READ — Existing shared phase ingestion/run owner; daily-list hierarchy, taint, caps, and lock ordering are distinct contracts.
1434 extensions/memory-wiki/src/compile.ts READ — Retained canonical Object.assign projections: the repository requires this construction style, and optional-key omission and insertion order remain unchanged.
1345 extensions/memory-wiki/src/query.ts READ — No sound further reduction: ranked digest discovery, full-body fallback, and session visibility have distinct contracts; prior lane already consolidated scoring.
1281 extensions/memory-core/src/memory/manager-embedding-ops.ts READ — Shared cache-miss candidate preparation between inline and provider batch embedding; removed a redundant guard over the dense missing-index array and the single-use text-input mapper. Empty inputs still short-circuit before SQL in loadMemoryEmbeddingCache.
1242 extensions/browser/src/browser/extension-relay/relay-bridge.ts READ — Target synthesis, claimant lifetime, enumeration refusal rules and flat/non-flat CDP routing have distinct state contracts; recent passes already consolidated attachment and session ownership.
1153 extensions/memory-wiki/src/chatgpt-import.ts READ — No sound further reduction: import planning, tracked writes, and idempotent rollback/recovery ownership are separate persistence contracts.
904 extensions/memory-core/src/rem-evidence.ts READ — Applied local reflection accumulation owner and removed hand-written count/forwarding helpers; ranking, source references, text, and ordering preserved.
887 extensions/memory-wiki/src/cli.ts READ — Applied: one status/doctor runner owns bridge routing, local source synchronization, terminal formatting, and doctor exit status.
779 extensions/memory-core/src/memory/file-watcher.ts READ — Native recursive and Linux directory-only watchers enforce different platform and root-replacement contracts; recent pattern-filter repair retained. No further sound consolidation found.
774 extensions/browser/src/browser/routes/agent.snapshot.ts READ — transport-specific capture, document identity, delta and label sequencing have distinct contracts; no sound collapse remains.
766 extensions/browser/chrome-extension/modules/tab-access.js READ. Retain creation, epoch, navigation, persistence, and cleanup gates: each checks a distinct current-authority boundary, including after awaits. No sound additional removal identified.
754 extensions/browser/src/browser/session-tab-store.ts READ — compare-and-apply retry, native-identity admission, dashboard close reservations, and post-commit activity retirement have distinct ownership contracts; no sound simplification without changing hard durable semantics.
716 extensions/browser/src/browser/pw-session-actions.ts READ — complete-target enumeration and close/create cleanup carry cancellation and exact-browser authority; recent #159599 owns these flows and no redundant owner remains.
709 extensions/browser/src/cli/browser-cli-manage.ts READ. Consolidated nonfatal doctor probe settlement while retaining ordered requests and distinct gateway-auth failure handling; combined index-based tab select/close registration while preserving required/optional argument behavior, validation, and output.
708 extensions/memory-core/src/migration/doctor-memory-sidecar.ts READ — Legacy source discovery, WAL checks, retry copies, and archive rollback preserve distinct upgrade/data contracts; no safe broad collapse.
704 extensions/memory-core/src/memory/manager.ts READ — Construction, active-operation draining, fallback recovery, and status projection have distinct ownership. Removing repeated post-await checks would weaken current-authority validation.
689 extensions/memory-core/src/short-term-promotion-apply.ts READ — Source/store fingerprints, provenance reservation, atomic publication reconciliation, and append fallback have separate correctness roles.
689 extensions/memory-core/src/memory/manager-search-orchestration.ts READ — Removed manager-hybrid-candidates.ts; the caller supplies score aliases and exact-path classification directly while mergeHybridResults remains the canonical output-field projector.
687 extensions/browser/src/browser-dashboard.ts READ — retained tab ownership, compensation, stop intents and serialized authority checks are distinct lifecycle responsibilities.
683 extensions/browser/src/browser/pw-tools-core.interactions.navigation.ts READ — foreground abort, delayed navigation, and native action settlement own distinct SSRF lifetimes; hard guard behavior retained.
678 extensions/browser/src/browser/server-context.availability.ts READ — Distinct transport, launch, cancellation and ownership paths retained.
676 extensions/browser/src/browser/pw-session-connection.ts READ — cache retirement distinguishes pending, current, retained-closing, and replacement browser handles; reconnection and target quarantine cannot be collapsed without losing named lifecycle behavior.
675 extensions/browser/src/browser/chrome.executables.ts READ — platform-native discovery and explicit executable overrides differ materially; candidate construction was consolidated in earlier passes.
668 extensions/browser/src/browser/extension-relay/relay-server.ts READ — HTTP auth stages intentionally own separate connection-bound transitions and timers; CDP endpoints and websocket admission retain existing protocol and guard order.
665 extensions/memory-core/src/memory/manager-search.ts READ — Body/path FTS, Unicode fallback, exact-path headroom, and SQL snapshot ordering have different matching/ranking contracts; earlier query consolidation retained.
661 extensions/memory-wiki/src/compiled-cache.ts READ — No sound further reduction: publication identity rereads, generation validation, and cleanup protect concurrent lifecycle transitions.
649 extensions/memory-core/src/memory/manager-sync-ops.ts READ — Full, targeted, and incremental sync share the existing generation owner; remaining branches protect retries and publication ordering. No sound further cutover found.
644 extensions/browser/src/browser/extension-install-registration.ts READ — Inlined the one-use pathDerivedExtensionIds forwarding helper into its only origin-migration owner; preserved sorted IDs and the one-slot migration rule.
644 extensions/browser/chrome-extension/background.js READ. Retain duplicate-looking inventory retry loops: extracting an async reader would introduce a new await boundary after the revision check and admit a stale inventory. Recent #159430 already centralized native debugger ownership.
643 extensions/memory-core/src/memory/manager-provider-lifecycle.ts READ — Consolidated semantic and keyword-fallback index identity state/dirty assignment into one local owner while preserving each identity resolver.
637 extensions/memory-core/src/memory/manager-sync-base.ts READ — Removed the redundant EmbeddingProviderId = string alias at its sole consumer. Retry flags, vector readiness, and metadata identity contracts remain distinct.
632 extensions/memory-core/src/dreaming.ts READ — Recent shared phase/narrative owners already removed duplication; retained per-workspace ownership, lifecycle fencing, and cron cleanup.
631 extensions/memory-core/src/short-term-promotion-utils.ts READ — Normalization handles persisted legacy inputs; date, path, scoring, and contamination predicates have distinct contracts.
629 extensions/memory-core/src/cli-index-search.runtime.ts READ — Recent withMemoryCommand cutover already owns lifecycle; index progress, promote, search, and deletion projections remain distinct.
628 extensions/memory-core/src/memory-forget.ts READ — Replanning, tombstone-before-purge commits, lineage retention, and artifact publication order are intentional; SQLite semantics preserved.
626 extensions/memory-core/src/standing-intents.ts READ — Scope encoding, authority checks, bounded matching, and lifecycle transactions are distinct invariants; no schema or SQL changes.
626 extensions/browser/src/browser/session-tab-tracking.ts READ — re-read at e74690a after #159891: session membership uses a separate non-mutating durable reader and readOnly volatile resolution. Shared alias normalization preserves primary/alias keys, order, ambiguity, and registration semantics; no conflicting cutover.
621 extensions/memory-wiki/src/okf.ts READ — No sound further reduction: external Markdown normalization, bounded discovery, link rewriting, and guarded replacement have separate error policies.
620 extensions/browser/src/browser/pw-tools-core.interactions.content.ts READ — screenshot emulation ownership, frame-bound wait predicates, and upload payload rules remain distinct required flows.
620 extensions/browser/scripts/bench-lightweight.ts READ. Kept explicit engine launch, process-tree sampling, owned cleanup, startup readiness, and post-measurement capability checks: these protect distinct measurement/lifecycle contracts; merging them would obscure ownership or alter CDP/network behavior.
619 extensions/memory-wiki/src/markdown.ts READ — No sound further reduction: prior lane consolidated typed field normalization; remaining source-boundary and human Notes parsing preserve persisted bytes.
611 extensions/memory-core/src/migration/doctor-host-events.ts READ — Generation ordering, checkpoints, retention budgets, claim restoration, and archive recovery are required migration behavior.
608 extensions/memory-core/src/tools.ts READ — Search streams preserve per-corpus ranking, limits, partial-result provenance, cooldowns, and transient manager settlement.
597 extensions/browser/src/browser/config.ts READ — Shared common profile result fields.
580 extensions/browser/src/browser/routes/agent.act.ts READ — existing-session deadlines and managed execution have different protocol and verification contracts.
577 extensions/memory-core/src/cli-rem.runtime.ts READ — Recent historical-workspace lifecycle owner already shared; harness/backfill/rollback have distinct outputs and mutation contracts.
573 extensions/browser/src/browser-proxy-upload.ts READ — envelope validation, bounded staging and cleanup ownership are necessary; canonical abort helper has different error semantics.
570 extensions/browser/src/browser/cdp.helpers.ts READ — URL normalization, guarded discovery, credential handling, ownership fingerprinting, and stream release each own distinct contracts; recent #159430/#159599 changes preserved.
570 extensions/browser/src/gateway/browser-request.ts READ — re-read at e74690a after #159891: scoped tabs filter only after route dispatch completes; resolvedProfile is captured by existing authority admission. Centralized tab response publication preserves the body, ownership metadata, completion ordering, and node profile selection.
568 extensions/browser/src/browser/server-context.lifecycle.ts READ — Exact-handle cleanup and generation leases require existing distinctions.
568 extensions/browser/src/browser-tool.ts READ — bound session/dashboard routing and host/node fallback have different authorization owners; flattened act fields retain shipped compatibility.
562 extensions/browser/src/browser-tool.actions.ts READ — removed redundant unknown-field tab shape; retained input validation and stale-target recovery guards.
561 extensions/browser/src/browser/extension-relay/relay-session-owner.ts READ — Physical/logical session identities, admission and retirement debt are separate required lifetimes; no removable alternate owner remains.
560 extensions/memory-core/src/session-backfill.ts READ — Bounded scan, full-hash cursor, lineage reservation, and CLI drain differ intentionally from the Gateway single-batch path.
557 extensions/browser/src/browser/server-context.tab-ops.ts READ — Protocol, SSRF, discovery and ownership paths retained.
541 extensions/browser/src/node-host/invoke-browser.ts READ — upload settlement, exact authority and encoded-frame sizing require existing branch structure.
538 extensions/browser/src/browser/pw-tools-core.downloads.ts READ — passive arms, atomic uploads, explicit downloads, and current-document capture have different cancellation/authority contracts.
537 extensions/memory-wiki/src/lint.ts READ — No sound further reduction: the remaining checks emit distinct findings and the path versus alias normalizers intentionally differ.
536 extensions/memory-core/src/memory/manager-database-context.ts READ — Published/shadow access, worker admission, busy retries, and shutdown retain different authority and settlement requirements; even pragma readers have different fallback contracts.
534 extensions/memory-core/src/cli-status.runtime.ts READ — Status projections intentionally distinguish vector storage/semantic state and repair/diagnostic outcomes; no policy abstraction added.
528 extensions/browser/src/browser/routes/basic.ts READ — status probes, lifecycle admission and persistent profile mutations have distinct guards and error behavior.
526 extensions/memory-core/src/memory/manager-keyword-retrieval.ts READ — Existing shared keyword probe/result pipeline already owns fallback expansion; body/path snippet precedence, exact tiers, and metadata freshness remain necessary.
526 extensions/active-memory/index.ts READ — No sound further reduction: ordered preflight, authority checks, per-session policy, and recall settlement have distinct lifecycle boundaries.
521 extensions/memory-wiki/src/source-sync-state.ts READ — No sound further reduction: admission, tracked mutation plans, bounded Notes recovery, and salvage/pruning enforce separate data-loss safeguards.
504 extensions/browser/src/browser/client-fetch.ts READ — HTTP and local dispatch share classification but retain different auth, response-boundary, and cancellation contracts; model-facing text preserved.
503 extensions/browser/src/browser/extension-install-layout.ts READ — OS-specific browser roots, owned-copy rollback, and Store versus unpacked identity admission differ materially; no sound further merge without obscuring security checks.
499 extensions/browser/src/browser/extension-relay/relay-fetch.ts READ — Exclusive Fetch lease, stream handles, uncertain native outcomes and bounded retirement each enforce separate cleanup contracts; no sound simplification found.
495 extensions/memory-wiki/src/import-runs-state.ts READ — No sound further reduction: meta/path row projection and write order preserve restart recovery; fallback storage intentionally clones nested recovery paths.
493 extensions/browser/src/browser/pw-session-navigation.ts READ — request guard and navigate guard intentionally differ in source preservation, redirect handling, cleanup precedence, and owned-tab closing; do not combine SSRF policy paths.
492 extensions/memory-core/src/migration/doctor-memory-sidecar-import.ts READ — Raw SQL is the migration primitive; conflict verification, vector dimensions, and savepoint settlement remain unchanged.
492 extensions/memory-core/src/dreaming-dreams-file.ts READ — Applied one fingerprint-deduplication helper for append and repair; removed unused private timezone forwarding and trivial guards/wrapper.
484 extensions/memory-core/src/dreaming-consolidation.ts READ — Model decisions are validated against source-owned text and exact prior entries; lineage and duplicate checks preserve rewrite safety.
480 extensions/browser/src/browser-tool.snapshot.ts READ — derived JSON kind union from the canonical truncation-marker map instead of duplicate inventory.
478 extensions/active-memory/recall.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
466 extensions/browser/src/cli/browser-cli-extension.ts READ. Kept separate install/setup/repair/status/remove/pair/CDP commands: distinct host-state ownership and credential/error presentation contracts make their remaining apparent repetition meaningful.
465 extensions/browser/src/browser/client.ts READ / CHANGED — removed API/type comments that only repeated their names; preserved typed wrappers and request projections.
463 extensions/memory-core/src/short-term-promotion-record.ts READ — Recall/day/grounded identity and signal distinctions are intentional; shared recorder already owns provenance and state writes.
463 extensions/memory-core/src/memory/manager-session-sync-ops.ts READ — SQLite and archive paths use different identity/stat sources; batching and retained dirty generations preserve recent race fixes. No sound further simplification found.
460 extensions/memory-core/src/session-ingestion.ts READ — Canonical and foreign transcript admission plus append-prefix checkpoints are distinct trust/storage contracts.
460 extensions/memory-core/src/memory/manager-search-knn-subprocess.ts READ — Framing, per-database/global admission, idle retirement, cancellation, and process-close settlement each enforce an observable protocol or lifetime contract.
446 extensions/browser/src/browser/pw-tools-core.interactions.actions.ts READ — guarded locator, raw input, and evaluated-script actions have distinct native cancellation and timing semantics.
444 extensions/memory-core/src/concept-vocabulary.ts READ — Applied existing script classifier to entry-level coverage; removed compound-token wrapper and manual glossary collection.
443 extensions/browser/src/browser/chrome-mcp-routing.ts READ — operation lock, session leases, opaque target handles, and document-bound refs are canonical and all remain used.
437 extensions/browser/src/browser/pw-tools-core.snapshot.ts READ — snapshot publication, native identity checks, guarded navigation retries, and viewport transitions protect distinct contracts.
434 extensions/memory-core/src/session-search-visibility.ts READ — Private aliases, archived ownership, and reset cutoffs intentionally use different visibility rules; guards preserved.
434 extensions/browser/src/browser/cdp-websocket.ts READ — socket correlation, handshake retries, authority pinning, and cancellation scopes are protocol/network contracts; no sound removable layer.
432 extensions/browser/src/browser/pw-session-state.ts READ — target ref generations, frame invalidation, weak request identities, dialogs, and download capture all remain reachable; no sound duplication beyond explicit bounded event projections.
419 extensions/memory-core/src/memory/manager-registry.ts READ — Provider creation, reload retirement, per-scope queues, and failed-close recovery are authoritative lifetime state; apparent repeated gates protect awaits and late publication.
418 extensions/browser/src/browser/pw-tools-core.interactions.execution.ts READ — batch settlement, navigation termination, and download draining preserve separate observable behaviors.
417 extensions/browser/src/browser/routes/tabs.ts READ — moved identical successful response publication into the profile-route owner for four callers, retaining error boundary.
416 extensions/memory-core/src/memory/manager-source-sync-ops.ts READ — Memory files and session transcripts share the existing source writer but retain different discovery, content fingerprint, stale-row, and bounded-corpus rules.
404 extensions/browser/src/browser/chrome.diagnostics.ts READ — discovery versus handshake versus command probes preserve distinct timeout, SSRF, and diagnostic outcomes.
402 extensions/memory-wiki/src/import-insights.ts READ — Retained canonical Object.assign projections: the repository requires this construction style, and optional-key omission and insertion order remain unchanged.
398 extensions/browser/src/browser/chrome-mcp-session.ts READ — pending attachment, retained cleanup, temporary probes, and admitted sessions require their separate ownership states.
394 extensions/browser/src/browser/extension-relay/auth-v2.ts READ — Exact auth frame keys, connection promotion, replay quotas, and nonce lifetime checks are protocol/security contracts and remain unchanged.
390 extensions/browser/src/browser-tool.schema.ts READ — model-facing schema text and ordered action vocabulary must stay identical; route-only actions intentionally differ.
384 extensions/browser/src/browser/pw-role-snapshot.ts READ — lexical snapshot parsing, native ref retention, output budgets, and delta identity are canonical; model-facing bytes unchanged.
383 extensions/active-memory/recall-run.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
381 extensions/browser/src/browser/extension-setup.ts READ — Replaced exhaustive Pick with Omit of cfg and forwarded the existing setup options into the status owner instead of repeating its fields.
380 extensions/browser/src/browser/chrome-mcp-actions.ts READ — target-scoped operations use canonical MCP routing; remaining wrappers adapt distinct tool arguments and document locks.
378 extensions/memory-core/index.ts READ — Applied direct lazy import of SDK artifact owner; removed the private pass-through module and retained fixture coverage through the registered capability.
373 extensions/browser/src/doctor-browser.ts READ. Removed two private path-joining wrappers and reuse the resolved legacy directory for its user-data child. All legacy-profile retention, containment, migration, readiness, permission, and diagnostic text stays unchanged. Remaining defensive parsing intentionally serves Doctor's unnormalized config boundary.
372 extensions/browser/src/browser/screencast/session.ts READ — capture drain, URL admission, viewer authority, frame ACKs, and generation checks have distinct lifecycle contracts.
368 extensions/browser/plugin-registration.ts READ. Removed a redundant factory assertion so registration checks the actual function type, and removed filtering of empty session-key tokens that are never queried. Retain lazy runtime descriptors, authority checks, and shutdown draining, including the fresh #159599 fix.
367 extensions/memory-wiki/src/apply.ts READ — No sound further reduction: create/update have distinct required fields, confidence-null semantics, and frontmatter ordering.
362 extensions/browser/src/browser/routes/agent.storage.ts READ — prior sweep already consolidated mutation dispatch; parser ordering and read versus mutation guards remain distinct.
361 extensions/browser/src/browser/server-context.ts READ — Default-profile forwarding retained as exported runtime API.
360 extensions/memory-core/src/memory/manager-watch-resources.ts READ — Coalescing, file settling, capacity degradation, and close draining each own a separate event-lifetime stage; test factories retain production-boundary evidence.
360 extensions/browser/src/browser/extension-install.ts READ — Bootstrap mutation ordering, discovery waits, Windows receipt retention and read-only status are different flows; recent owner consolidation already removed duplicate setup policy.
360 extensions/browser/src/browser/chrome-mcp-process.ts READ — native process birth identities and platform-specific cleanup prevent PID reuse; retained cleanup state is authoritative.
358 extensions/browser/src/browser/routes/agent.act.normalize.ts READ — individual action validation errors and precedence are observable; common recursion and bounds already have canonical owners.
348 extensions/browser/src/browser/chrome-mcp-tabs.ts READ — marker/native ownership and compensation distinguish existing-page and first-page creation; preserve MCP and CDP commands.
347 extensions/browser/src/browser/extension-windows-host.ts READ — Reused NativeHostRegistrationStatus instead of a duplicate local registration shape; computed the repeated Windows management issue text once.
345 extensions/browser/src/browser/system-profiles.ts READ — cookie preflight, coherent snapshot, managed-profile admission, and best-effort injection preserve separate platform/data contracts.
341 extensions/memory-core/src/memory/hybrid.ts READ — Retained as the sole canonical hybrid-result projector; exact tiers, body relevance, temporal decay, project ranking, and MMR ordering remain distinct.
341 extensions/browser/chrome-extension/modules/relay-core.js READ. Removed unreachable hex color selection and its table; the sole runtime caller passed no color since #121586. Removed the subprotocol-list wrapper and duplicate constant in favor of the authentication owner's existing constant. Pairing storage and URL guards unchanged.
341 extensions/active-memory/session-policy.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
341 extensions/browser/src/browser/session-tab-registry.ts READ — re-read at e74690a after #159891: exports the canonical session membership filter. Lifecycle and sweep cleanup retain their mutating ownership resolver; the alias simplification does not change either path.
339 extensions/memory-core/src/cli.ts READ — Registration remains dependency-light; distinct command arguments, validators, errors, and lazy actions are needed.
337 extensions/memory-core/src/dreaming-narrative.ts READ — One narrative dispatcher already owns detached/awaited completion; model fallback and authority failures remain distinct.
337 extensions/browser/src/browser/extension-relay/relay-lifecycle.ts READ — Owned versus borrowed relays have different authority and cleanup; live profile identity checks before publication cannot be removed.
331 extensions/memory-core/src/short-term-promotion-stats.ts READ — Applied bounded findIndex insertion and comparator simplification; removed unreachable insertion branch and expect-runtime import.
329 extensions/browser/src/browser/pw-tools-core.state.ts READ / CHANGED — removed narrating operation comments; preserved emulation queue, session metrics ownership, and live-authority fences.
328 extensions/memory-core/src/memory-workspace-lock.ts READ — Nested FIFO scope, cross-process comparison receipts, failed-release reconciliation, and live process authority are separate invariants.
327 extensions/memory-wiki/src/gateway.ts READ — No sound further reduction: prior lane consolidated result registration; per-method validation ordering and sync policy must remain explicit.
327 extensions/browser/src/session-browser-dashboard.ts READ. Session and profile aborts now share their identical close callback; removed a one-use alias for the inferred session borrow. Preserve queue identity, bounded resources, definition rereads, profile generations, and compensating context cleanup.
325 extensions/browser/src/browser/client-actions.ts READ / CHANGED — shared action option shapes and diagnostic page-read request projection; exact query filtering/order, node timeout behavior, profile and abort propagation retained.
324 extensions/memory-core/src/short-term-promotion-rehydrate.ts READ — Source relocation ranks literal/list/heading candidates differently and excludes managed fences; cannot collapse without changing selection.
323 extensions/memory-core/src/memory-entry-origins.ts READ — Origin reservation/rollback and diary/index retention preserve deletion lineage; legacy synchronous database paths left untouched.
322 extensions/memory-wiki/src/status.ts READ — No sound further reduction: diagnostics and doctor fixes are explicit public text; count classifications preserve distinct provenance.
319 extensions/memory-wiki/doctor-contract-api.ts READ — No sound further reduction: legacy cache removal, source-sync migration, and import-run migration require different admission/archive behavior.
318 extensions/memory-core/src/dreaming-repair.ts READ — Archive safety and optional artifact diagnosis differ from normal writers; recent shared archive callback already consolidated paths.
318 extensions/browser/chrome-extension/modules/popup-background.js READ. Replace no-argument color mapper call with its identical orange result. Retain pairing/revocation transactions and their await-adjacent authority checks.
317 extensions/memory-core/src/memory-corpus.ts READ — Shared deadline/supplement settlement already owns both search and read; partial, absent, and failed corpora remain distinct.
315 extensions/active-memory/prompt.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
314 extensions/memory-core/src/memory/manager-publication.worker.ts READ — Staging protocol, native transaction admission, commit fencing, and connection cleanup preserve SQLite semantics; no protocol or schema simplification attempted.
314 extensions/browser/chrome-extension/modules/native-bootstrap.js READ. Retain bounded exact native frames, opt-out generations, retry classification, and retired-custody recovery. No safe simplification beyond already distinct responsibilities found.
306 extensions/browser/src/browser/routes/agent.act.existing-session.ts READ — deadlines, document rebinding and post-navigation checks protect distinct protocol transitions.
303 extensions/memory-core/src/dreaming-cron.ts READ — Doctor classifier already owns legacy recognition; runtime patches and retirement preserve authored jobs and declaration ownership.
299 extensions/browser/src/browser/system-chrome-cookies.ts READ — native encrypted cookie formats, partition filtering, key lifetime, and SQLite snapshot semantics are hard contracts.
298 extensions/browser/src/browser/server-context.selection.ts READ — Sticky identity and discovery fallback contracts retained.
296 extensions/browser/src/browser-tool-dispatch.ts READ — action result publication includes different tracking, external-content and file ownership semantics.
295 extensions/browser/src/browser/extension-relay/owner-client.ts READ — RPC pending work, reference leases and CDP/ingress streams have separate cleanup acknowledgement contracts; no duplicate policy owner found.
292 extensions/browser/chrome-extension/modules/relay-debugger.js READ. Native cleanup debt, superseded attachment chains, and socket ownership recently centralized by #159430; apparent repeated checks guard separate acquisition and release boundaries.
290 extensions/memory-wiki/openclaw.plugin.json READ — No sound further reduction: manifest config/schema/UI hints and plugin/runtime declarations are discovery contracts.
290 extensions/active-memory/types.ts READ — No sound further reduction: types/constants carry distinct cache, tool, transcript, timeout, and model-text contracts.
287 extensions/browser/src/browser/cdp.ts READ — direct WebSocket discovery fallback, target creation compensation, accessibility projection and screenshot behavior are distinct entry points; no unused exports found in inspected caller surfaces.
287 extensions/browser/chrome-extension/modules/tab-document-provenance.js READ. Root-document proof and bounded event buffering own distinct lifecycle transitions. Pending versus responded versus confirmed state preserves event ordering; no sound additional consolidation identified.
285 extensions/memory-wiki/src/bridge.ts READ — No sound further reduction: artifact visibility, workspace provenance, and source-owner pruning authority are already separate from shared import flow.
284 extensions/memory-core/src/short-term-promotion-artifacts.ts READ — Repair preserves derived-phase-before-recall ordering, dangling lineage, and retention contracts; current shared store helpers retained.
283 extensions/memory-core/openclaw.plugin.json READ — Migration declarations, registered tool metadata and configuration schemas retain shipped contracts; no behavior or text changes.
283 extensions/browser/src/browser/cdp-role-snapshot.ts READ — scoped ignored roots, native DOM identities, iframe expansion, and finalizer integration are distinct snapshot contracts.
282 extensions/memory-wiki/src/tool.ts READ — No sound further reduction: model schemas/text frozen; status, lint, apply, search, and get require different result shapes and validation order.
281 extensions/browser/src/browser/profiles-service.ts READ — Reused client result contract.
280 extensions/browser/src/browser/act-policy.ts READ — action-specific budgets reflect serial phases and different runtime capabilities; model-facing limits remain byte-identical.
279 extensions/active-memory/config.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
277 extensions/browser/src/browser/session-tab-cleanup-claim.ts READ — mandatory lifecycle claims, sweep revocation, dashboard stopped-state retention, and ownership verification require distinct branches; hard persisted semantics retained.
275 extensions/active-memory/trigger-recall.ts READ — No sound further reduction: trusted-project admission, scored trigger selection, run reuse, and abort settlement have distinct responsibilities.
275 extensions/active-memory/session.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
274 extensions/memory-core/src/session-backfill-lifecycle.ts READ — Rewind journal, baseline, agent-owned reset, and bounded drain are distinct recovery contracts; no state-shape changes.
272 extensions/memory-core/src/memory-search-tool-query.ts READ — Single query owner already handles closed-manager refresh, bounded session post-filtering, and current partial-result authority.
272 extensions/active-memory/recall-state.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
271 extensions/memory-core/src/memory/manager-db.ts READ — Reset preserves exact table/index/trigger definitions; orphan-shadow cleanup and read-only admission implement different recovery contracts.
271 extensions/browser/src/browser/extension-windows-contract.ts READ — Strict path, receipt, origin and JSON grammar checks implement the native ABI; no schema or protocol change allowed.
269 extensions/memory-core/src/memory/manager-reindex-state.ts READ — Reused configured-source normalization for persisted source sets, preserving deduplication, filtering, sorting, and legacy default behavior.
268 extensions/memory-wiki/src/unsafe-local.ts READ — No sound further reduction: unreadable scope retention and recursive-source exclusion preserve destructive-pruning guards.
266 extensions/browser/src/browser/pw-session-cdp-transport.ts READ — contextless-target resume/detach, engine normalization, and scheduled transport publication protect Playwright protocol behavior; no safe reduction without changing protocol/lifecycle ordering.
260 extensions/memory-core/src/short-term-promotion.ts READ — Ranking is one canonical owner; public barrel preserves callers and admission/scoring behavior.
260 extensions/browser/src/browser/pw-role-snapshot-capture.ts READ — frame/document checks and backend marker binding remain necessary; no duplicate owner or unused capture path.
260 extensions/browser/src/browser-node-proxy.ts READ — automatic fallback is limited to pre-dispatch failures; route pinning prevents duplicate mutation.
260 extensions/active-memory/transcript-result.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
259 extensions/memory-core/src/standing-intents-tool.ts READ — Runtime and lazy schemas intentionally differ today; consolidating them would change forbidden model-facing text/schema.
257 extensions/memory-core/src/short-term-promotion-memory-write.ts READ — Canonical file writer distinguishes conflict, uncertain/committed publication, native/remote transport, and shipped in-place fallback.
257 extensions/memory-core/src/memory/manager-embedding-cache.ts READ — Provider-identity precedence, malformed-vector rejection, latest-entry retention, and bounded eviction are already owned here. Confirmed empty hash lists return before query creation.
257 extensions/browser/src/browser/extension-relay/gateway-relay-route.ts READ — V2 and legacy authentication remain distinct shipped ingress contracts; guarded lazy preparation and borrowed relay authority must stay.
257 extensions/active-memory/openclaw.plugin.json READ — No sound further reduction: manifest config/schema/UI hints are discovery and operator contracts.
254 extensions/browser/src/browser/errors.ts READ — distinct error classes carry stable HTTP/type identity and closed metadata validation; repeated constructors encode those contracts.
254 extensions/active-memory/transcript.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
253 extensions/browser/src/browser/chrome-mcp-connect.ts READ — handshake, waiter cancellation, and process adoption have different retained-cleanup boundaries.
252 extensions/active-memory/query.ts READ — Applied: export existing APIs at their declarations, removing duplicated trailing export inventories; behavior, imports, and API names unchanged.
250 extensions/memory-wiki/index.ts READ — No sound further reduction: lifecycle reconciliation, source-sync shutdown, and agent-scoped tool registration already share canonical owners.
250 extensions/memory-core/src/dreaming-ingestion-state.ts READ — Canonical/legacy normalization and chunk encoding preserve persisted formats, including malformed-input behavior.
248 extensions/memory-core/src/cli-runtime-common.ts READ — Recent lifecycle owner already handles command config, secrets, manager closure, diagnostics, and source projection.
248 extensions/browser/src/browser/paths.ts READ — inbound/upload precedence and direct-child checks are explicit filesystem authority; keep identical resolution and failure paths.
246 extensions/browser/src/browser/screenshot-annotate.ts READ — image coordinate transforms and label accounting preserve rendered snapshot contracts; retained viewport/element distinctions.
244 extensions/memory-core/src/memory/manager-index-generation-lease.ts READ — Local FIFO and cross-process admission are complementary; abort/release paths preserve publisher fairness and reader snapshot leases.
244 extensions/memory-core/src/memory-budget.ts READ — Generated-section parser protects user-authored Markdown and loss bounds; shortening it would weaken preservation rules.
243 extensions/browser/src/cli/browser-cli-actions-input/register.element.ts READ. Kept action-specific parsing/ref policy and output; coordinate decimals intentionally reject scientific notation/trailing decimal points, unlike the shared finite-number parser, so replacing this parser would change accepted CLI inputs.
242 extensions/browser/src/cli/browser-cli-inspect.ts READ. Moved identical inline error handling to the existing CLI execution owner; kept screenshot versus snapshot capture/output differences.
241 extensions/browser/src/browser/chrome.graphics.ts READ — native GPU payload normalization and exact-process cache lifetime already have one owner.
240 extensions/memory-core/src/memory-forget-index-sources.ts READ — Index planning and purge selection retain source provenance, vector admission, and SQL semantics; recent batching owner retained.
240 extensions/browser/src/cli/browser-cli-state.ts READ. Prior passes already consolidated timezone/locale/device registration. Remaining environment setters have different validation, optional arguments, and security-sensitive payload semantics.
240 extensions/browser/src/browser/extension-relay/owner-server.ts READ — Owner references and stream cleanup are already centralized; remaining operations implement distinct wire protocol outcomes.
237 extensions/memory-core/src/remote/memory-files-worker.ts READ — IPC separates watcher lifecycle, file reading, and maintenance adapters; stream close settlement and error provenance retained.
237 extensions/browser/src/browser/routes/agent.shared.ts READ — shared profile/tab admission already owns lifecycle and error mapping; URL redaction intentionally differs from execution guard.
231 extensions/memory-wiki/src/config.ts READ — No sound further reduction: schemas and agent/global resolution own public config validation and path semantics.
230 extensions/browser/src/browser/routes/permissions.ts READ — Playwright and CDP permission fallback and optional permission settlement are distinct required contracts.
230 extensions/browser/src/browser/navigation-guard.ts READ — preflight, postflight, redirect, and proxy constraints are distinct required SSRF guards; no changes.
228 extensions/browser/src/cli/browser-cli-cookie-sync.ts READ. Kept explicit in-flight/pending/stopped state and cached-secret abort handling: they protect serialized cookie reads, watcher shutdown, and final settlement, with no redundant owner remaining.
227 extensions/browser/src/browser/doctor.ts READ / CHANGED — removed narrating module/type/function comments; all check status logic and operator/tool text retained.
227 extensions/browser/src/browser/chrome-mcp-result.ts READ — structured/text fallbacks follow dependency result contracts; page identity and snapshot parsing remain validated.
225 extensions/browser/src/gateway/session-browser-request.ts READ — isolated session allowlist and retained screencast authority cannot be merged with administrator route.
224 extensions/browser/src/browser/pw-session.page-cdp.ts READ / CHANGED — made public withPageScopedCdpClient the sole page-session lifecycle owner, removing its private forwarding layer and routing document reads through it. Same CDP session, frame fallback, bounded operation, and detach behavior. Net -14 lines.
223 extensions/browser/src/browser/bridge-server.ts READ — Separate bridge lifecycle and authenticated noVNC contracts retained.
222 extensions/memory-wiki/src/claim-health.ts READ — No sound further reduction: claim and page freshness/contradiction policies intentionally differ; prior lane consolidated traversal.
215 extensions/browser/src/browser/cdp-role-snapshot-tree.ts READ — native AX tree identities, transparent scoped ancestors, depth bounds, and rendering rules preserve model-facing text.
213 extensions/browser/src/browser/cdp-page-session.ts READ — document identities, committed-navigation stability observation, and page-domain preparation are separate reusable owners; current protocol calls and stable identity encoding preserved.
213 extensions/browser/chrome-extension/modules/relay-auth-v2.js READ. Preserve protocol vectors, challenge shape, binding, timing, proof validation, and terminal sequence checks. No protocol/guard changes.
212 extensions/memory-core/src/migration/dreaming-state-comparison.ts READ — Archive acknowledgement and canonical comparison deliberately preserve historical malformed-state behavior and source hashes.
206 extensions/memory-wiki/src/prompt-section.ts READ — No sound further reduction: optional digest admission, ordering/truncation and enabled-tool guidance preserve the frozen model-facing text.
206 extensions/memory-core/src/dreaming-state.ts READ — Workspace-keyed store owns bounded yielding, stable range ordering, and replacement-before-delete behavior; no SQLite semantics changed.
204 extensions/memory-core/src/rem-harness.ts READ — Preview has deliberate no-write selection caps and grounded-input behavior; shared ranking/phase owners already reused.
204 extensions/memory-core/src/memory/manager-embedding-policy.ts READ — Removed exported one-use buildTextEmbeddingInputs and the redundant oversized-chunk special case: the existing next-chunk/end flush already emits the same singleton batch because byte estimates are nonnegative. Retry classifications and budgets remain unchanged.
204 extensions/browser/src/browser/extension-relay/relay-runtime.ts READ — Context replay and native binding ownership have different state lifetimes; subscriber admission and binding retirement checks are required.
203 extensions/memory-core/src/memory/manager-db-kernel.ts READ — The existing atomic publication owner preserves metadata, derived tables, FTS trigger order, and vector fallback; hard SQLite semantics preclude speculative changes.
193 extensions/browser/src/browser/config-mutations.ts READ — Simplified credential type and redundant finite checks.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 27, 2026 17:33
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 9:27 PM ET / September 28, 2026, 01:27 UTC (Revision 6).

ClawSweeper review

What this changes

The branch consolidates private Browser and memory plugin helpers and routes memory artifact listing through the registered plugin capability, with no intended user-visible change.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open. This is distinct cleanup that current main does not contain, and the review found no definite introduced defect. The required upgrade check for an existing Browser profile remains undocumented.

Priority: P3
Reviewed head: 530c0256973daa815fc19be291ce7f717b87d137

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cleanup is coherent and broadly checked, with saved-profile upgrade evidence still needed.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The provided MEMBER association exempts this internal refactor from the ordinary external-contributor proof gate. The PR reports Testbox plugin and build checks on an earlier source revision, but no published-updater × candidate saved-profile trace; the latter remains a separate repository-policy gate. The reviewed changes do not materially alter a stored-data format.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The provided MEMBER association exempts this internal refactor from the ordinary external-contributor proof gate. The PR reports Testbox plugin and build checks on an earlier source revision, but no published-updater × candidate saved-profile trace; the latter remains a separate repository-policy gate. The reviewed changes do not materially alter a stored-data format.
Evidence reviewed 8 items Introduced Browser profile change: The PR shares resolved profile fields across the existing driver branches; the introduced patch changes this saved-profile resolution path.
Profile refresh behavior: The PR consolidates comparisons that decide whether a running Browser profile transitions after config refresh; source comparison found the same compared fields and order.
Doctor path change: The PR inlines path construction for legacy managed-profile detection, an update-sensitive Doctor path.
Findings None None.
Security None None.

How this fits together

The Browser plugin turns agent and CLI requests into profile-specific browser operations. The memory plugins turn conversation and workspace material into search, recall, and artifact results.

flowchart LR
  A[Agent and CLI requests] --> B[Browser plugin]
  B --> C[Profile and tab routing]
  C --> D[Browser results]
  E[Conversation and workspace memory] --> F[Memory plugins]
  F --> G[Search and artifact results]
Loading

Before merge

  • Resolve merge risk (P1) - An existing Browser profile could resolve, diagnose, or load differently after update; no published-updater × candidate check with saved operator state has been recorded for the changed profile, setup, and Doctor paths.
  • Complete next step (P2) - Record a published-updater × candidate check with a saved Browser profile, including setup, Doctor, and loading outcomes, before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -720, Tests -7, Other -2. Total -729 across 67 files.

View PR surface stats
Area Files Added Removed Net
Source 64 483 1203 -720
Tests 2 13 20 -7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 2 -2
Total 67 496 1225 -729

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/browser/src/doctor-browser.ts, migration/backfill/repair: extensions/memory-wiki/src/cli.ts, unknown-data-model-change: extensions/active-memory/session.ts, unknown-data-model-change: extensions/memory-core/src/concept-vocabulary.ts, unknown-data-model-change: extensions/memory-core/src/dreaming-dreams-file.ts, unknown-data-model-change: extensions/memory-core/src/memory/manager-embedding-ops.ts, and 12 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove saved-profile upgrade (recommended)
    Record a sanitized published-updater × candidate result using an existing Browser profile and show its setup, Doctor, and load outcomes.

Technical review

Best possible solution:

Preserve the simpler plugin owners while demonstrating that an installed updater carries a saved Browser profile through setup, Doctor, and loading.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR proposes internal cleanup rather than reporting a failing user path. Source comparison and the reported plugin checks support behavior preservation, but they do not establish the saved-profile upgrade outcome.

Is this the best way to solve the issue?

Yes, provisionally: removing forwarding layers and retaining the existing plugin and SDK owners is a maintainable approach. The update-sensitive Browser paths still need the repository-required upgrade check.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 06fb4362eb7c.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal plugin cleanup without an intended user-visible behavior change.
  • merge-risk: 🚨 compatibility: The patch touches Browser profile resolution, setup, and Doctor paths used by existing installations, while saved-state upgrade proof remains outstanding.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The provided MEMBER association exempts this internal refactor from the ordinary external-contributor proof gate. The PR reports Testbox plugin and build checks on an earlier source revision, but no published-updater × candidate saved-profile trace; the latter remains a separate repository-policy gate. The reviewed changes do not materially alter a stored-data format.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Kimi Yu: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach a sanitized published-updater trace showing setup, Doctor, and loading outcomes for an existing Browser profile.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-27T17:40:36.467Z sha 3eb6578e5e16d89cda7887d3717413ec336c0aa9 :: blocked before merge. :: none
  • reviewed 2026-09-27T18:05:11.565Z sha c8e396c7dffd0840d849c08277896479477fd3d7 :: blocked before merge. :: none
  • reviewed 2026-09-27T20:03:54.054Z sha 426c22fc487a87bb5beca3f96c1b0f370cdf2201 :: blocked before merge. :: none
  • reviewed 2026-09-27T22:40:36.684Z sha f1b9e00517a4fb051d5877e0d75604e58012d4e7 :: blocked before merge. :: none
  • reviewed 2026-09-28T00:28:24.874Z sha 2696a41 :: blocked before merge. :: none

@steipete
steipete force-pushed the deslop/l127-browser-memory4 branch 3 times, most recently from f1b9e00 to 2696a41 Compare September 28, 2026 00:21
@steipete
steipete force-pushed the deslop/l127-browser-memory4 branch from 2696a41 to 530c025 Compare September 28, 2026 01:16
@steipete
steipete merged commit fd9ac3e into main Sep 28, 2026
206 checks passed
@steipete
steipete deleted the deslop/l127-browser-memory4 branch September 28, 2026 01:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…claw#159798)

* refactor(extensions): deslop browser and memory plugins further

* chore: shrink browser assertion baseline after cleanup

* refactor(browser): retain explicit lazy helper reachability

* refactor(memory): retain projection and capability method contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: active-memory extensions: browser extensions: memory-core Extension: memory-core extensions: memory-wiki merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant