Skip to content

feat(memory): read and update files on remote workspaces - #153124

Merged
Kimiyu-186 merged 1 commit into
mainfrom
codex/storage-memory-file-source
Sep 20, 2026
Merged

Kimiyu-186 merged 1 commit into
mainfrom
codex/storage-memory-file-source

Conversation

@Kimiyu-186

@Kimiyu-186 Kimiyu-186 commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Related: openclaw/openclaw-enterprise#76

What Problem This Solves

Memory reads and writes currently assume that workspace files are on Gateway. They need to reach the Harness when the two use separate storage.

User Impact

A configured workspace provider supplies Memory files for search, existing maintenance operations, and Doctor. The index, embeddings, session data and maintenance decisions remain on Gateway. Only memoryFiles opts into remote Memory; document-only workspace providers retain local Memory behavior, including after their document service stops during config reload or removal.

Why This Change Was Made

Extend the existing Memory file operations through one optional provider and reuse the native file code in a packaged worker. Include the callers that update these same files—promotion, dreaming, session corpus and forget—so reads and writes agree on where the files live.

The provider contract, worker, Memory callers and Doctor integration are reviewed together in this PR. Transport adapters plug into this contract separately; this PR does not turn on remote storage by itself.

Evidence

  • 205 focused tests pass across remote/local reads, session-only indexing, native watching, maintenance and Doctor.
  • Follow-up compatibility/ranking fixes: 65 affected tests, core/extension types, formatting, typed lint and source ratchets pass; the final Doctor fixture adjustment also passed all 49 Doctor tests. Remote extra-path ranking uses indexed host timestamps.
  • Native dependency scans and the affected Doctor test-type graph pass after CI cleanup of an unused internal re-export and a mismatched test mock. The retired hybrid fixture setting was removed; extension test types and unchanged host-timestamp assertions pass.
  • The stopped-document-only regression failed before the capability lookup fix. All three affected suites pass afterward, covering local indexing/search/read/maintenance and continued rejection for actual stopped remote Memory. Core/extension production types, affected core test types, extension test types, typed lint and source ratchets pass.
  • SDK surface remains within its approved allocation. The worker/build proof below predates these follow-up fixes; their build wiring is unchanged.
  • The worker, client and build wiring match the candidate already verified by a full build and a real packaged-worker smoke using separate Gateway/Harness directories.
  • Rebased onto 7d7e26a0 (merged remote-output support) at d85bd7dc. Preserves both workspace capabilities and worker entries. All 45 tests across workspace access, output reads, Memory indexing and worker resolution pass, alongside formatting, typed lint, core/extension types and the SDK check (4,518 exports / 2,662 callables: upstream baseline plus the existing Memory client). The subsequent conflict-free rebase onto 044f78ee at 3ad26fbc includes upstream cleanup-fixture fix fix: cleanup lifecycle test fails after shared worker reuse #153286; all 56 topic files are byte-identical and core types/SDK checks pass again. CI for this new head is pending; combined adapter/deployment validation remains separate.

Review note: remote multimodal files receive untrusted provenance, matching ordinary local image/audio files. Classification for multimodal files under special generated-dream paths remains unverified; this PR does not claim parity for that special case.

Limits retained in this first version

  • Reassigning an Agent to a different set of files requires an explicit openclaw memory index --force --agent <id> before serving searches; this PR does not automatically migrate the old index to a different source. Ordinary restart with the same files is distinct from source reassignment.
  • Stopping access does not retract content already read or partial results already retained by an in-flight search. Pending embedding work may finish. Compound diary updates are not safe across live replacement with a different workspace binding. Adapters must avoid that replacement while maintenance is active. These lifecycle cases remain follow-ups under the storage issue, not claimed fixes.

CI baseline evidence: main ae9326d1 failed job fails openclaw-agent-execution-cleanup.test.ts:87 with Shared-state admission requires the host broker, matching this PR. Upstream #153286 fixes that fixture and is included in the current base. This is not a passing-CI claim; no SQLite production change or test relaxation is added by this PR.

@clawsweeper

clawsweeper Bot commented Sep 19, 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.

@Kimiyu-186
Kimiyu-186 marked this pull request as ready for review September 19, 2026 19:25
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: memory-core Extension: memory-core scripts Repository scripts agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 19, 2026
@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from eb10db3 to 05424c3 Compare September 19, 2026 19:31
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 19, 2026, 9:28 PM ET / September 20, 2026, 01:28 UTC (Revision 10).

ClawSweeper review

What this changes

Adds an optional workspace provider and packaged worker so Memory search, maintenance, and Doctor can read and update remote files while indexes and embeddings remain on Gateway.

Merge readiness

⛔ Blocked before merge - 13 items remain

This remains useful work absent from current main. The document-only provider and timestamp regressions are addressed, but all four previously reported lifecycle defects remain; documenting them as limitations does not enforce their required preconditions.

Priority: P2
Reviewed head: 3ad26fbc8a283fc9816c09855eb1d0dc0bdf90d6
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is coherent and fixes earlier normal-path regressions, but four retained lifecycle defects and missing authority-boundary evidence prevent readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the reported packaged-worker smoke covers separate Gateway and host directories, but does not show the production Memory owners rejecting old-source results, revoked deadline partials, new embedding submissions after release, or replacement-directed writes. The scoped authority gate remains unmet regardless of author association. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the reported packaged-worker smoke covers separate Gateway and host directories, but does not show the production Memory owners rejecting old-source results, revoked deadline partials, new embedding submissions after release, or replacement-directed writes. The scoped authority gate remains unmet regardless of author association. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Current main still lacks the capability: Current main's workspace contract exposes document and attachment access, and its Memory manager acquisition does not supply a remote file provider. The latest supplied release lacks src/agents/workspace-access.ts entirely; no implemented-on-main or released replacement was established.
Source changes do not invalidate persisted index identity: Manager reuse checks the provider object's identity, but a replacement manager opens the same published database. The persisted scope hash covers configured paths and multimodal settings, not the remote source; searches can use existing rows while synchronization runs in the background.
Deadline partials bypass the final manager guard: The operation wrapper checks authority before and after completion. Search emits partial results earlier; tools.ts retains them, and attemptMemoryCorpus returns them on deadline without rechecking the workspace binding.
Findings 4 actionable findings [P1] Reconcile the existing index before serving a new workspace source
[P1] Invalidate retained partial results when workspace access stops
[P1] Recheck workspace authority before embedding submissions
Security Needs attention Revoked content can reach tool results and embedding providers: Retained deadline partials and embedding submissions after asynchronous preparation outlive the binding checks that admitted the remote reads.
Replacement can redirect an existing maintenance operation: A compound diary operation can reacquire a replacement binding and write the previous host's content to the new host.

How this fits together

Memory Core turns workspace files into searchable knowledge and maintains generated memory documents. The new workspace capability sends file operations to a remote host while Gateway retains indexing, embedding requests, and maintenance decisions.

flowchart LR
  A[Search and Doctor requests] --> B[Gateway Memory Core]
  B --> C[Workspace capability]
  C --> D{Binding current?}
  D -->|Yes| E[Remote file worker]
  E --> F[Workspace files]
  E --> B
  B --> G[Gateway index and embeddings]
  D -->|No| H[Access unavailable]
Loading

Decision needed

Question Recommendation
Should the initial Memory capability enforce source handoff and revocation in Gateway, or require adapters to enforce a narrower lifecycle contract before activation? Enforce lifecycle safety in the owning operations: Bind results and compound writes to their original source and reject newly initiated effects after release.

Why: The PR intentionally defers these behaviors, but no demonstrated adapter enforcement makes those limitations safe; choosing the permanent responsibility boundary requires owner agreement.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the reported packaged-worker smoke covers separate Gateway and host directories, but does not show the production Memory owners rejecting old-source results, revoked deadline partials, new embedding submissions after release, or replacement-directed writes. The scoped authority gate remains unmet regardless of author association. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Reconcile the existing index before serving a new workspace source (P1) - The provider-identity comparison creates a new manager after source replacement, but that manager opens the same persisted index. Its scope identity does not include the remote source, and normal searches can serve existing rows while synchronization runs in the background. Activating different files at the same logical workspace can therefore return the previous source's content. The documented manual forced reindex is not enforced; require reconciliation or an activation barrier before serving that source.
  • Invalidate retained partial results when workspace access stops (P1) - Checking authority when the manager promise finishes does not cover the earlier partial-result callback. If lexical results are retained in tools.ts, the workspace is released, and semantic retrieval reaches its deadline, attemptMemoryCorpus returns those retained results without another binding check. Tie partial-result retention and final consumption to the captured workspace lifetime so release rejects them before they reach the tool response.
  • Recheck workspace authority before embedding submissions (P1) - Remote content now enters asynchronous chunk preparation, but embedBatchWithRetry and the batch-provider path do not check the workspace binding before sending it. Releasing access during preparation or a retry delay still permits a new embedding request containing that content. The later index-publication check cannot undo this disclosure; revalidate immediately before every initial, retry, split, and fallback submission. This concerns new requests, not cancellation of requests already dispatched.
  • Retain the workspace binding throughout compound diary updates (P1) - Each helper independently looks up the current maintenance provider. If binding A is released and B is registered while the updater awaits, the final write acquires B and publishes content read from A over B's diary. The workspace lock does not serialize registration replacement. Capture one binding for the entire read-modify-write operation and reject replacement before writing; an adapter warning alone does not protect this exported path.
  • Resolve security concern: Revoked content can reach tool results and embedding providers - Retained deadline partials and embedding submissions after asynchronous preparation outlive the binding checks that admitted the remote reads.
  • Resolve security concern: Replacement can redirect an existing maintenance operation - A compound diary operation can reacquire a replacement binding and write the previous host's content to the new host.
  • Resolve merge risk (P1) - Adapter deployment and upgrade evidence does not establish that forced reindexing before source reassignment and exclusion of replacement during maintenance are enforced.
  • Resolve merge risk (P1) - The new public Memory capability leaves lifecycle responsibilities split between Gateway and adapters; its accepted authorization and source-handoff contract needs explicit owner agreement.
  • Resolve merge risk (P1) - Remote multimodal provenance under special generated-dream paths remains unverified, as acknowledged in the PR.
  • Complete next step (P2) - Resolve the four lifecycle findings and the owner decision, then supply final-effect authority proof. Redacted terminal output or logs are sufficient; remove credentials, private endpoints, and user data. Update the PR body for a fresh review, or ask a maintainer for @clawsweeper re-review if it does not trigger.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] Reconcile the existing index before serving a new workspace source — extensions/memory-core/src/memory/manager.ts:215-216
  • [P1] Invalidate retained partial results when workspace access stops — extensions/memory-core/src/memory/manager-sync-base.ts:170-172
  • [P1] Recheck workspace authority before embedding submissions — extensions/memory-core/src/memory/manager-embedding-ops.ts:1071-1077
  • [high] Revoked content can reach tool results and embedding providers — extensions/memory-core/src/memory/manager-sync-base.ts:170
  • [high] Replacement can redirect an existing maintenance operation — extensions/memory-core/src/dreaming-dreams-file.ts:124
Agent review details

Security

Needs attention: No dependency or supply-chain change raises a concern, but workspace revocation and replacement do not consistently govern final data effects.

PR surface

Source +1052, Tests +787, Docs +21, Config +1, Other +2. Total +1863 across 56 files.

View PR surface stats
Area Files Added Removed Net
Source 43 1348 296 +1052
Tests 9 1026 239 +787
Docs 1 21 0 +21
Config 1 2 1 +1
Generated 0 0 0 0
Other 2 7 5 +2
Total 56 2404 541 +1863

Review metrics

Metric Value Why it matters
Production versus test growth Production TypeScript net +1,052 lines; tests and test support net +785 lines Production growth is explained by the shared remote-file contract, worker, and migration of existing callers; lifecycle coverage remains the important gap.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/gateway/server-methods/doctor-memory-files.ts, migration/backfill/repair: src/gateway/server-methods/doctor.ts, serialized state: extensions/memory-core/src/dreaming-markdown.ts, serialized state: extensions/memory-core/src/memory-forget.ts, serialized state: extensions/memory-core/src/memory-workspace-files.ts, serialized state: extensions/memory-core/src/memory/manager-index-source.ts, and 54 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete source-bound lifecycle handling (recommended)
    Repair the four retained defects and demonstrate safe first activation, source reassignment, release, and compound writes.
  2. Hold the capability until adapter enforcement is proven
    Pause landing if the required safety depends on transport adapters whose admission and lifecycle behavior is still separate.

Technical review

Best possible solution:

Keep one source-bound workspace capability through each operation, reconcile index ownership before serving results, and enforce the agreed lifecycle contract at result, embedding, and write boundaries.

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

Yes, source inspection establishes concrete triggers for the four retained findings: replace an indexed source, release after partial retrieval or before embedding submission, and replace a binding during an awaited diary update. These paths were not executed in this read-only review.

Is this the best way to solve the issue?

The optional provider and reuse of native file operations are a sound direction, but the current implementation needs source-bound lifecycle enforcement or demonstrably enforced adapter preconditions.

Full review comments:

  • [P1] Reconcile the existing index before serving a new workspace source — extensions/memory-core/src/memory/manager.ts:215-216
    The provider-identity comparison creates a new manager after source replacement, but that manager opens the same persisted index. Its scope identity does not include the remote source, and normal searches can serve existing rows while synchronization runs in the background. Activating different files at the same logical workspace can therefore return the previous source's content. The documented manual forced reindex is not enforced; require reconciliation or an activation barrier before serving that source.
    Confidence: 0.98
  • [P1] Invalidate retained partial results when workspace access stops — extensions/memory-core/src/memory/manager-sync-base.ts:170-172
    Checking authority when the manager promise finishes does not cover the earlier partial-result callback. If lexical results are retained in tools.ts, the workspace is released, and semantic retrieval reaches its deadline, attemptMemoryCorpus returns those retained results without another binding check. Tie partial-result retention and final consumption to the captured workspace lifetime so release rejects them before they reach the tool response.
    Confidence: 0.98
  • [P1] Recheck workspace authority before embedding submissions — extensions/memory-core/src/memory/manager-embedding-ops.ts:1071-1077
    Remote content now enters asynchronous chunk preparation, but embedBatchWithRetry and the batch-provider path do not check the workspace binding before sending it. Releasing access during preparation or a retry delay still permits a new embedding request containing that content. The later index-publication check cannot undo this disclosure; revalidate immediately before every initial, retry, split, and fallback submission. This concerns new requests, not cancellation of requests already dispatched.
    Confidence: 0.97
  • [P1] Retain the workspace binding throughout compound diary updates — extensions/memory-core/src/dreaming-dreams-file.ts:121-127
    Each helper independently looks up the current maintenance provider. If binding A is released and B is registered while the updater awaits, the final write acquires B and publishes content read from A over B's diary. The workspace lock does not serialize registration replacement. Capture one binding for the entire read-modify-write operation and reject replacement before writing; an adapter warning alone does not protect this exported path.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a0ec9f5c09d8.

Labels

Label justifications:

  • P2: This is a bounded optional storage capability; the PR does not activate remote storage by itself.
  • merge-risk: 🚨 compatibility: The public provider contract and existing-index handoff require explicit lifecycle and upgrade guarantees.
  • merge-risk: 🚨 session-state: Source replacement can retain the wrong indexed corpus or direct a compound diary update to a different workspace.
  • merge-risk: 🚨 security-boundary: Revoked workspace content can still reach deadline results or newly initiated embedding requests.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the reported packaged-worker smoke covers separate Gateway and host directories, but does not show the production Memory owners rejecting old-source results, revoked deadline partials, new embedding submissions after release, or replacement-directed writes. The scoped authority gate remains unmet regardless of author association. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Revoked content can reach tool results and embedding providers — extensions/memory-core/src/memory/manager-sync-base.ts:170
    Retained deadline partials and embedding submissions after asynchronous preparation outlive the binding checks that admitted the remote reads.
    Confidence: 0.97
  • [high] Replacement can redirect an existing maintenance operation — extensions/memory-core/src/dreaming-dreams-file.ts:124
    A compound diary operation can reacquire a replacement binding and write the previous host's content to the new host.
    Confidence: 0.99

What I checked:

  • Current main still lacks the capability: Current main's workspace contract exposes document and attachment access, and its Memory manager acquisition does not supply a remote file provider. The latest supplied release lacks src/agents/workspace-access.ts entirely; no implemented-on-main or released replacement was established. (extensions/memory-core/src/memory/search-manager.ts:45, a0ec9f5c09d8)
  • Source changes do not invalidate persisted index identity: Manager reuse checks the provider object's identity, but a replacement manager opens the same published database. The persisted scope hash covers configured paths and multimodal settings, not the remote source; searches can use existing rows while synchronization runs in the background. (extensions/memory-core/src/memory/manager.ts:215, 3ad26fbc8a28)
  • Deadline partials bypass the final manager guard: The operation wrapper checks authority before and after completion. Search emits partial results earlier; tools.ts retains them, and attemptMemoryCorpus returns them on deadline without rechecking the workspace binding. (extensions/memory-core/src/memory/manager-sync-base.ts:170, 3ad26fbc8a28)
  • Remote content reaches later embedding submissions: Remote reads feed asynchronous chunk preparation. The subsequent batch submission and retry paths invoke the embedding provider without checking workspace authority; the added publication guard runs after that external effect. (extensions/memory-core/src/memory/manager-embedding-ops.ts:1071, 3ad26fbc8a28)
  • Compound writes reacquire the binding: Diary resolution, reading, and writing each acquire the currently registered maintenance provider. Registration replacement does not participate in the workspace maintenance lock, so an awaited updater can read one host and write its content to another. (extensions/memory-core/src/dreaming-dreams-file.ts:121, 3ad26fbc8a28)
  • Discussion acknowledges unresolved lifecycle behavior: The captured body, sourceRevision afab1114112704c346ed1aa699d24f3e91e02c81bc4fb92199e2f1a5ef9a6dc6, and both supplied author comments explicitly retain manual source reindexing, in-flight partial results, pending embeddings, and unsafe replacement during maintenance. The reported packaged-worker smoke covers separate directories, not rejection at these final effects. The supplied prior review lists the same four findings. (3ad26fbc8a28)

Likely related people:

  • Kimiyu-186: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

  • Resolve the lifecycle responsibility boundary and repair or enforce the preconditions behind the four findings.
  • Add redacted production-path terminal traces or logs showing allowed operation and rejection before final effects after release or reassignment.
  • Show first activation over an existing local index and restart with unchanged remote files without stale-source results.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-19T20:08:40.007Z sha d89b74b9196576ca96ec49eb3c01bd999b7fbe0e :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P2] Use host timestamps for remote extra-path ranking
  • reviewed 2026-09-19T20:26:16.635Z sha 1944574aef39a0970cb60c9fe926213e5c703aca :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P2] Use host timestamps for remote extra-path ranking | [P1] Retain the workspace binding throughout compound diary updates
  • reviewed 2026-09-19T20:38:10.373Z sha d5953ac83d4e5eaf9591cf466f34ad8567bbe809 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P2] Use host timestamps for remote extra-path ranking | [P1] Retain the workspace binding throughout compound diary updates
  • reviewed 2026-09-19T21:17:37.407Z sha f38b9a517a4c8922994d27309f56b035342680b5 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P1] Retain the workspace binding throughout compound diary updates | [P2] Preserve local Memory when a document-only provider stops
  • reviewed 2026-09-19T21:35:24.455Z sha 8034676 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P1] Retain the workspace binding throughout compound diary updates
  • reviewed 2026-09-19T22:17:45.279Z sha e83b048 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P1] Retain the workspace binding throughout compound diary updates
  • reviewed 2026-09-20T00:46:19.846Z sha d85bd7dce429dbc03315fe46d653a9705285dfa9 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P1] Retain the workspace binding throughout compound diary updates
  • reviewed 2026-09-20T01:03:37.582Z sha d85bd7dce429dbc03315fe46d653a9705285dfa9 :: needs real behavior proof before merge. :: [P1] Reconcile the existing index before serving a new workspace source | [P1] Invalidate retained partial results when workspace access stops | [P1] Recheck workspace authority before embedding submissions | [P1] Retain the workspace binding throughout compound diary updates

@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from 05424c3 to d89b74b Compare September 19, 2026 20:01
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 19, 2026
@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from d89b74b to 1944574 Compare September 19, 2026 20:18
@Kimiyu-186 Kimiyu-186 changed the title feat(memory): search files stored in remote workspaces feat(memory): read and update files on remote workspaces Sep 19, 2026
@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from 1944574 to d5953ac Compare September 19, 2026 20:30
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 19, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 19, 2026
@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from d5953ac to 3592c95 Compare September 19, 2026 20:59
@Kimiyu-186

Copy link
Copy Markdown
Contributor Author

Addressed the normal-path regressions:

  • A document-only workspace adapter retains local Memory. Explicit memoryFiles adapters still use the remote source, and missing remote maintenance still fails.
  • Temporal decay for remote extra-path files now uses the host mtime already stored in the index, across keyword, vector and hybrid ranking. It does not stat a Gateway copy.

The affected 65 tests and production type/lint checks pass; the final Doctor fixture adjustment also passed all 49 Doctor tests. New-head CI is pending.

The other findings are retained limitations, not dismissed as false positives. Deliberate reassignment to different files requires a manual forced reindex before serving searches. Stopping a binding does not retract already-read content or retained deadline partials; pending embedding work may finish. Compound diary updates must not overlap live replacement with a different workspace. Automatic source migration and mid-operation revocation are outside this first release; these limitations are recorded in the PR and tracked under openclaw/openclaw-enterprise#76.

@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch 2 times, most recently from 95f78f5 to f38b9a5 Compare September 19, 2026 21:09
@Kimiyu-186
Kimiyu-186 force-pushed the codex/storage-memory-file-source branch from d85bd7d to 3ad26fb Compare September 20, 2026 01:21
@Kimiyu-186
Kimiyu-186 merged commit 14cf168 into main Sep 20, 2026
218 checks passed
@Kimiyu-186
Kimiyu-186 deleted the codex/storage-memory-file-source branch September 20, 2026 01:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
Kimiyu-186 added a commit that referenced this pull request Sep 23, 2026
* feat: backport split storage to the September 4 release

Carry the merged workspace attachment, file-transfer, Memory, Skills,
and paired-node contracts onto sjf_openclaw_2026-09-04. Preserve the
release registry lifecycle, Skills cache and Memory database owners.

Includes the approved fs-safe 0.17.0 upgrade and its consumer adaptations.

Backports:
#152633 7d7e26a
#152640 fd46f38
#153124 14cf168
#152652 59916ac
#153126 e1976b0
#153438 e63393b
#154087 20db76a

* fix(node): preserve resumable pairing in release backport

* fix: complete release split-storage runtime compatibility

* fix: complete split-storage release integration

* test: align release file-safety fixtures with native operations

* test: scope gateway lock fault injection to Node handles

* test: align release automation and diagnostic fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: memory-core Extension: memory-core gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant