Repository navigation
feat(memory): read and update files on remote workspaces - #153124
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. |
eb10db3 to
05424c3
Compare
|
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 reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherMemory 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]
Decision needed
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
Findings
Agent review detailsSecurityNeeds attention: No dependency or supply-chain change raises a concern, but workspace revocation and replacement do not consistently govern final data effects. PR surfaceSource +1052, Tests +787, Docs +21, Config +1, Other +2. Total +1863 across 56 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a0ec9f5c09d8. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
05424c3 to
d89b74b
Compare
d89b74b to
1944574
Compare
1944574 to
d5953ac
Compare
d5953ac to
3592c95
Compare
|
Addressed the normal-path regressions:
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. |
95f78f5 to
f38b9a5
Compare
d85bd7d to
3ad26fb
Compare
* 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
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
memoryFilesopts 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
7d7e26a0(merged remote-output support) atd85bd7dc. 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 onto044f78eeat3ad26fbcincludes 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
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.CI baseline evidence: main
ae9326d1failed job failsopenclaw-agent-execution-cleanup.test.ts:87withShared-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.