Repository navigation
fix(memory): repair search package boundaries - #173641
Conversation
Declare the existing Kysely pin for memory-core search and route the moved sqlite-vec loader through the private host package SQLite bridge. Repairs the two unchanged fast-contract failures introduced by #172681 without changing search behavior, SDK exports, or contract allowances. Proof: 512 plugin contracts, 6 native loader cases and 3 KNN cases pass; targeted types, core lint, formatting, frozen install and P2 review pass.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Hourly 38832586414 exposed exports left public after the file-transfer classifier and engine-owned memory search migrations. Keep those helpers private, along with the unused plugin-state read alias and install-action DOM alias; their implementations and actual consumers remain intact. Model the documented standalone Doctor proof as a real executable entry and use the production-shaped dynamic chat route import in its existing test. Preserve every route export and assertion; add no Knip ignores. The requested three audits reproduced on main 4cf3df6. With the reviewed candidate, production/script exports and all unused-file scans pass; full-tree exports only reports TranscriptTestHost, covered by the active ready PR #173575. After proof, omit the lazy-error/loading adapter hunks because new ready PR #173638 deletes those files. Their findings remain until that PR lands. Memory package repair #173641 is independent; this commit changes no dependencies, SQL, or engine contracts. Proof: 151 tests across 12 focused files, each invoked with pnpm test <file> --maxWorkers=1; summed wall time 548.15s. The changed router-outlet-legacy.test.tsx passed in 23.00s with all assertions retained. Core, scripts, extensions, UI, memory-core and UI-app test typechecks pass, as do targeted typed lint, boundary lint, formatting and diff checks. Stale generated SDK declarations were regenerated normally before the memory package typecheck passed. Isolated P2 review: scoped-clean.
Export the existing engine-owned vector loader directly from its SDK storage facade and remove the private package forwarding path. Keep the schema-only host bridge unchanged so PR wrapper consumers do not acquire vector-loader imports. No wrapper inventory or contract allowance changes. The initial route reproduced three wrapper closure failures locally. The revised six-file proof passes all 542 cases; targeted types, core lint, formatting and P2 review pass.
|
Codex review: needs changes before merge. What this changesThis PR declares memory-core’s existing Kysely dependency and routes SQLite vector-loader exports through the private host bridge. Example: Installing memory-core with its declared dependencies and importing its search implementation.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful maintainer-authored repair open; the new bridge export introduces a confirmed PR-wrapper dependency-closure failure that needs a focused inventory fix. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherMemory-core consumes search and storage helpers through Plugin SDK facades; the private memory host package bridges those helpers to core database-engine implementations. flowchart LR
A[Memory core search] --> B[Plugin SDK facade]
B --> C[Memory host storage barrel]
C --> D[SQLite runtime bridge]
D --> E[Database engine loader]
F[PR wrapper extraction] --> D
Technical reviewBest possible solution: Keep the package-boundary repair and include the newly reachable vector loader in the PR wrapper’s canonical inventory. Do we have a high-confidence way to reproduce the issue? The existing dependency and package-boundary contracts expose the original defects directly; exact-head CI additionally records the introduced extracted-wrapper import failure, without requiring local execution. Is this the best way to solve the issue? The dependency declaration and bridge routing restore the intended ownership boundaries, but the bridge’s expanded import graph must also be reflected in wrapper extraction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74b7df7e5546. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +4, Config +1, Other +3. Total +8 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed October 15, 2026, 10:10 PM ET / October 16, 2026, 02:10 UTC. |
|
Merged via squash.
|
Hourly 38832586414 exposed exports left public after the file-transfer classifier and engine-owned memory search migrations. Keep those helpers private, along with the unused plugin-state read alias and install-action DOM alias; their implementations and actual consumers remain intact. Model the documented standalone Doctor proof as a real executable entry and use the production-shaped dynamic chat route import in its existing test. Preserve every route export and assertion; add no Knip ignores. The requested three audits reproduced on main 93c11c2. With the reviewed candidate, production/script exports and all unused-file scans pass; full-tree exports only reports TranscriptTestHost, covered by the active ready PR openclaw#173575. After proof, omit the lazy-error/loading adapter hunks because new ready PR openclaw#173638 deletes those files. Their findings remain until that PR lands. Memory package repair openclaw#173641 is independent; this commit changes no dependencies, SQL, or engine contracts. Proof: 151 tests across 12 focused files, each invoked with pnpm test <file> --maxWorkers=1; summed wall time 548.15s. The changed router-outlet-legacy.test.tsx passed in 23.00s with all assertions retained. Core, scripts, extensions, UI, memory-core and UI-app test typechecks pass, as do targeted typed lint, boundary lint, formatting and diff checks. Stale generated SDK declarations were regenerated normally before the memory package typecheck passed. Isolated P2 review: scoped-clean.
* fix(memory): keep search runtime dependencies package-owned Declare the existing Kysely pin for memory-core search and route the moved sqlite-vec loader through the private host package SQLite bridge. Repairs the two unchanged fast-contract failures introduced by openclaw#172681 without changing search behavior, SDK exports, or contract allowances. Proof: 512 plugin contracts, 6 native loader cases and 3 KNN cases pass; targeted types, core lint, formatting, frozen install and P2 review pass. * fix(memory): keep vector loading off the schema bridge Export the existing engine-owned vector loader directly from its SDK storage facade and remove the private package forwarding path. Keep the schema-only host bridge unchanged so PR wrapper consumers do not acquire vector-loader imports. No wrapper inventory or contract allowance changes. The initial route reproduced three wrapper closure failures locally. The revised six-file proof passes all 542 cases; targeted types, core lint, formatting and P2 review pass.
Related: #172681
What Problem This Solves
Fixes the memory-core package contracts broken when search primitives moved to the database engine.
User Impact
Memory-core declares the Kysely runtime dependency its search implementation uses. The existing SDK storage facade exports the native vector loader directly from its engine owner. Search behavior and SDK export names stay unchanged.
Why This Change Was Made
The search migration added three Kysely value imports without updating memory-core's manifest, and the private memory-host storage barrel directly reached into core. Declare the already pinned Kysely 0.29.6 in the owning plugin and move the existing loader re-export to the SDK facade. Remove the private barrel forwarding path. No new dependency version, SDK subpath, contract allowance, or test change.
The first PR head routed the loader through the schema-only SQLite bridge. CI correctly caught three wrapper closure failures because that expanded the bridge's import graph. The final change restores that bridge exactly and keeps vector loading on the existing SDK storage surface; the wrapper inventory remains unchanged.
Evidence
Both unchanged package contract files reproduced the main failures (2 failed / 510 passed). The first-head wrapper regressions also reproduced locally (3 failed / 18 passed).
The revised patch passes all 542 cases across six files: 512 package contracts, six native loader cases, three memory-core KNN cases through the SDK facade, and 21 wrapper closure cases. All use the repository runner with --maxWorkers=1. Targeted source-graph types, core lint, formatting, frozen installation and P2 review pass. PR CI supplies broad build and packaging proof.