Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe branch redirects system-agent memory loading and indexing to the default workspace, adds OS-home expansion, and includes inherited release-preparation changes. Review scores
Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 11 items remain Keep open: both prior correctness findings remain, and no verified merged replacement establishes that this work is complete. The same-author shared-index proposal remains open but is not a safe supersession target. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherOpenClaw’s memory runtime loads the selected memory plugin; Memory Core then indexes and reads files from the agent’s workspace. Workspace selection affects the indexed corpus, while database ownership is separately resolved from the agent identity. flowchart TD
A[Agent configuration] --> B[Workspace resolver]
A --> C[Memory plugin loader]
B --> C
C --> D[Memory Core manager]
B --> D
E[Agent database identity] --> D
D --> F[Indexed workspace files]
F --> G[Memory search and reads]
Technical reviewBest possible solution: Use one canonical workspace resolver, preserve explicit agent settings and effective-home semantics, and keep shared-index ownership inside Memory Core with verified existing-state behavior. Do we have a high-confidence way to reproduce the issue? Yes, for the introduced defects: configure a system agent with an explicit workspace different from the default root, or use a tilde default with OPENCLAW_HOME different from the OS home. Source establishes the wrong selection; no runtime reproduction was executed. Is this the best way to solve the issue? No. The patch duplicates supported workspace selection and leaves database ownership agent-scoped; explicit workspace configuration already provides root selection, while genuine index sharing needs a Memory Core-owned design. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cb04039f21de. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
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 HistoryReview history (3 earlier review cycles)
Reviewed October 7, 2026, 10:40 AM ET / 14:40 UTC (Revision 4). |
Regenerate release package versions, official channel metadata, and UI/native locales from main b6a2e5b. Validated canonical release preparation, full generated checks, 20 UI locales, 21 native locales, production UI asset budgets, and independent P0-P2 review.
Backport the reviewed hardware scan inventory and exact release/2026.9.2 registration from openclaw#139046, preserving the frozen 2026.9.1 policy. Backport Undici 8.10.2/7.29.1, the approved version-specific overrides and cooldown exceptions, paired NO_PROXY normalization, and locked release toolchain digests from openclaw#139056. Validated 31 scanner/hardware tests, 205 proxy/guard/dispatcher tests, frozen dependency installation, full build and SDK/UI budgets, and independent P0-P2 review. Both patches match their canonical main landings. (cherry picked from commit 9010252) (cherry picked from commit d7a1753)
Lead with performance, reliability, and GPT-6 Astra support. Regenerate the complete contribution record from release history, preserving source refs, 161 credited contributors, and unchanged historical release notes. Verified 1,239 PR records, source packaging, full GitHub rendering, and independent P0-P2 review.
Backport the verified main repairs for update ledger isolation, Matrix client cleanup, paired client metadata, task cancellation, Telegram timer ownership, Claude adapter version resolution, MCP runtime leases, and native update/node E2E execution. Preserve strict assertions and authenticated routing contracts. Let stable malformed database bytes reach SQLite diagnostics through the existing verified private snapshot path. Keep the frozen worker interface; no schema, configuration, or stored representation changes. Match the Apple localization assertion to the release-generated Watch copy. The Watch Rust workflow correction is supplied separately by trusted tooling. (cherry picked from commit bcecb3d) (cherry picked from commit df78d38) (cherry picked from commit a20dbd7) (cherry picked from commit 48406f2) (cherry picked from commit b8f23d0) (cherry picked from commit a9f5e44) (cherry picked from commit 3383007) (cherry picked from commit d93fb26) Co-authored-by: Vincent Koc <[email protected]>
Lead with performance, reliability, and GPT-6 Astra support. Preserve the complete canonical contribution record and source-reviewed SDK guidance.
When the system agent is configured with an explicit default workspace (agents.defaults.workspace), use that path directly for the shared memory database instead of the per-agent subdirectory. This ensures the system agent and the memory plugin lifecycle share the same canonical workspace and SQLite database. Applies to both the runtime plugin loader (memory-runtime.ts) and the memory-core CLI/agent manager (manager.ts).
6ef2199 to
f789409
Compare
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- '.github/release/clawhub-cli/package-lock.json' '.github/release/vercel-cli/package-lock.json' 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Thanks for the shared-memory workspace work. We are closing this stale proposal as part of maintainer backlog cleanup. This closure does not establish that the originally reported workspace mismatch is fixed. If it remains reproducible on current main, please bring a focused report or change against the current memory owner paths. |
Summary
When the system agent is configured with an explicit default workspace (), the memory runtime and memory-core manager now use that path directly for the shared memory database instead of resolving to a per-agent subdirectory.
This fixes the shared memory database being keyed from different workspace paths depending on whether it is accessed through the runtime plugin loader () or the memory-core CLI/agent manager (). Without this change, the system agent scans while the shared store is keyed from the default workspace, overwriting shared source state.
Changes
src/plugins/memory-runtime.ts: WhenagentId === systemAgentIdandagents.defaults.workspaceis configured, resolve the workspace from the default workspace path (handling~expansion) instead of callingresolveAgentWorkspaceDir.extensions/memory-core/src/memory/manager.ts: AddresolveSharedMemoryManagerWorkspaceDirhelper with the same canonical workspace rule, used byMemoryIndexManager.get()for CLI and agent-spawned memory operations.Motivation
Multi-agent deployments that set
agents.defaults.systemAgent.agentIdandagents.defaults.workspaceexpect the system agent's memory to live in the configured default workspace. The current code resolves the system agent to aworkspace/<agentId>subdirectory, creating a mismatch between the plugin lifecycle path and the manager path. This leads to duplicate databases, stale indexes, and shared source state being overwritten.Testing
@openclaw/fs-safe>= 0.5.x (the 8.2 dependency version); the currentnode_modulessnapshot predates this dependency and cannot run vitest locally. CI will validate the full suite.