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. Reviewed September 24, 2026, 10:52 AM ET / 14:52 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch forwards memory-search deadline control through Ollama and LM Studio embedding service acquisition, including LM Studio initialization, and adds provider wiring tests. Merge readiness⛔ Blocked before merge - 3 items remain Current main still lacks the documented readiness-budget behavior for the two bundled providers, and this PR remains the linked fix candidate. The earlier generic API scope concern is resolved; the managed cold-start result remains unproven. Priority: P2 Review scores
Verification
How this fits togetherMemory Core receives a flowchart LR
A[Memory search request] --> B[Search deadline]
B --> C[Memory Core provider]
C --> D{Managed local service?}
D -->|Yes| E[Readiness wait]
E --> F[Ollama or LM Studio embedding]
D -->|No| F
F --> G[Memory results]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +84, Tests +95. Total +179 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep readiness timing with the existing Memory Core deadline owner, and verify that a managed cold start returns search results while post-readiness work and caller cancellation retain their limits. Do we have a high-confidence way to reproduce the issue? Yes by source inspection: current main omits the readiness callback in the dedicated Ollama and LM Studio paths. No after-fix managed cold-start search has been observed. Is this the best way to solve the issue? Yes in direction: the branch uses the existing deadline-control contract and keeps it memory-specific. A real managed-service search is still needed to establish the intended result. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1b32a8b3c7fc. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat 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 (4 earlier review cycles)
|
This reverts commit 2d02e78.
|
@clawsweeper re-review Please review the type-scope correction at The recommended memory-specific option is now on Real managed cold-start |
|
🦞👀 Re-review progress:
|
|
Closing this candidate because the remaining managed Ollama/LM Studio cold-start proof and public SDK type-scope decision are not currently reachable in an isolated environment. Existing source findings and review evidence remain preserved. |
Closes #156359
What Problem This Solves
Managed Ollama and LM Studio embedding startup can consume the
memory_searchdeadline because the dedicated local-service acquisition paths omit the existing readiness-wait callback.User Impact
The intended behavior is for the search deadline to pause while the managed local embedding service becomes ready, and resume for embedding and retrieval. The patch wires the existing deadline control through the dedicated adapters and memory-provider initialization. A real managed cold-start
memory_searchacceptance run is still missing; the provider-entry tests below do not establish that end-to-end result.Why This Change Was Made
The shared memory deadline-control contract already exposes depth-balanced
pauseandresumereporting. The fix forwards that control through Ollama acquisition, LM Studio acquisition/preload/variant discovery, and the memory provider initialization path. HTTP, cancellation, preload, and lease cleanup remain with their existing owners.Existing Evidence and Limits
The following observations were recorded before the type-only correction below and are retained as historical evidence, not as new executions on the latest head:
embed()implementations with controlled local-service acquirers and embedding responses. The callbacks producedpause -> resume(2 tests passed). These are adapter wiring tests: the acquirer itself reports readiness, so they are not real managed-service cold-start proof.oxfmt --check, focused extension lint, andgit diff --checkreceipts remain historical; none is relabeled as a fresh check of the type-only follow-up.Review correction: keep provider-creation control memory-specific
Previous reviewed head:
2b08efbc02e5949e8da83b7c8985fe381e5bd503.Current head:
abbec3271ab950493c073d5020e5b05736109758.The review recommended confining the memory-specific creation option instead of expanding the generic embedding-provider SDK contract. This follow-up takes that option:
MemoryEmbeddingProviderCreateOptionsnow explicitly composesMemorySearchDeadlineControlOptionsat the existing memory registry contract.EmbeddingProviderCreateOptionsno longer acquires the memory-only option. Its entire source file is restored byte-for-byte to the PR base blob69966befb508a10bb160ea507b878257f1f2b9ec.LocalServiceAwareEmbeddingOptionsalready derives from the memory-specific creation type, so its initialization callback remains expressible without a new generic SDK field.Validation of the type-only follow-up
The exact fetched source copies were verified against Git blob IDs
a2ba2934a4691b3e4136b8f30fa547038ed0dcbdande8336c1c0510929860c3d492b0ecb625c3f4cc36. The published final blobs match the inspected candidates: generic69966befb508a10bb160ea507b878257f1f2b9ec; memory contract4a9a1a078037fd804c91705e4d021153c1b5a69c.TypeScript 5.8.3 AST parsing passed. AST comparisons confirmed that declarations/imports outside the intended two creation aliases and the new type-only import are unchanged, including the existing per-call contract. TypeScript's emitted JavaScript was identical before and after for both files.
A strict extracted-declaration type probe passed: old/new memory options are mutually assignable; the generic creation type no longer declares the deadline symbol; the memory creation type and existing per-call type still do. The probe keeps unchanged foreign configuration/secret types opaque. It is a focused type-boundary check, not the full repository's
tsgograph, adapter execution, or independent review.The COS execution connections were unavailable during this continuation. Full repository typechecking, focused provider suites, formatting/lint gates, new test timing, and managed cold-start runtime proof were not executed for this follow-up.
Actual PR Surface
The generic embedding-provider type file is restored to the PR base; the introduced changes are now in:
extensions/lmstudio/src/embedding-provider.tsextensions/lmstudio/src/embedding-provider.test.tsextensions/memory-core/src/memory/manager-provider-lifecycle.tsextensions/memory-core/src/memory/manager-search-orchestration.tsextensions/ollama/src/embedding-provider.runtime.tsextensions/ollama/src/embedding-provider.test.tssrc/plugins/registry-contribution-types.tsPersistent-data Scope and Remaining Acceptance
The readiness control is symbol-keyed, not a new serialized provider request or stored field. The type correction itself has identical emitted JavaScript. The patch changes timing/control propagation, not vector contents, dimensions, cache identity definitions, database schema, migration/backfill code, or stored-data formats. No data migration is introduced by the type correction. No migration/upgrade matrix cell or existing-index runtime compatibility run is claimed by the static checks.
Integration status observed on September 24, 2026: GitHub reported the previous
2b08efbhead as not mergeable. After the type-only commits, the PR snapshot forabbec3271ab950493c073d5020e5b05736109758reportedmergeable: true, with merge commitc7057d482549b6be48a8c6674887cd894b6c0495. No rebase, merge commit authored by this continuation, or unrelated runtime edit was used. This is GitHub's mergeability observation, not a passing integration test or CI claim.Still required:
memory_searchresults for the affected providers through the actual service manager, with after-readiness retrieval/readback and applicable controls. Controlled callback/provider tests are not a substitute.No upgraded rating, all-green CI, completed cold-start proof, or maintainer approval is asserted by this follow-up.