Repository navigation
refactor(memory-lancedb): separate shared policy data - #196265
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 changes before merge. What this changesThis PR moves LanceDB categories and text-limit defaults from configuration parsing into a private, import-free module. Example: LanceDB runs without explicit captureMaxChars or recallMaxChars settings.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored draft open: the private declaration move is coherent and introduces no identified defect, but its requested validation remains pending. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe LanceDB plugin accepts configuration and agent memory operations, applies capture and recall policy, and reads or writes agent-scoped memories; this change only relocates shared declarations consumed by those layers. flowchart TD
D[Shared policy data] --> C[Configuration parser]
D --> P[Capture and recall policy]
D --> E[Plugin entrypoint]
C --> E
P --> E
E --> S[LanceDB store]
S --> M[Agent scoped memories]
Technical reviewBest possible solution: Complete the existing draft’s validation and retain the verbatim private declaration move with unchanged behavior and public contracts. Do we have a high-confidence way to reproduce the issue? There is no reported runtime bug to reproduce; source inspection confirms the policy-to-config dependency targeted by the requested refactor. Is this the best way to solve the issue? The move is the smallest complete cutover for the approved scope: one import-free declaration owner, all consumers migrated, and no duplicate policy or retained aliases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7554b069a703. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3. Total -3 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 9, 2026, 4:38 PM ET / 21:38 UTC. |
|
Merged via squash.
|
Closes #196263
What Problem This Solves
LanceDB shared categories and text limits currently belong to configuration parsing, coupling policy consumers to that executable owner.
User Impact
No user-visible behavior change. Defaults, configured limits, categories, validation/errors, capture/recall authority and storage lifecycle remain unchanged.
Why This Change Was Made
Move the existing tuple/type and 500/1000 defaults verbatim into one private import-free data owner. Configuration and policy consume the limits, index consumes the categories while retaining configuration, and the store uses a type-only category import. Old private config exports are removed without aliases.
This removes one policy-to-config runtime edge and one erased store-type-to-config edge. The type edge is not runtime work. Index still imports config; no startup, bundle-size, CPU, memory or latency gain is claimed. The landed query-schema ownership from #196227 stays intact.
Evidence
7e33cf3dbfb7caf82bd82f3e3b9e5650d3bd296d; source base:cc5c2914c58bde53e0ef708620071213bce06ce8.