Skip to content

feat(atlas): ingest native agent-memory LanceDB - #14492

Open
dezren39 wants to merge 2 commits into
mainfrom
queue/21642-14039-atlas-lancedb-v2
Open

dezren39 wants to merge 2 commits into
mainfrom
queue/21642-14039-atlas-lancedb-v2

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

LanceDB memories.lance
  -> native Arrow/Lance reader (vector column ignored)
  -> agent-memory staging unit
  -> provenance-aware idempotent upsert
  -> Atlas rebuild-from-sources proof

Adds native OpenClaw memory-lancedb ingestion, restricts it to the agent-memory unit, and restages changed content or provenance while leaving unchanged records alone. Documents the new CLI command.

Evidence

  • Before: the acceptance slice had no native LanceDB reader or rebuild-from-sources proof.
  • After: focused Atlas memory integration test dispatched; pending run 45443165513.
  • cargo fmt --check and git diff --check pass locally.

Merge Danger

Door: two-way.

Blast Radius: narrow — Atlas memory staging ingestion only.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T17:00:10Z",
    "session_id": "ses_e5df1db75d0ffeL6cdLdRT835y",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-lane-21642-atlas-v2",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-lane-21642-atlas-v2",
      "repo": "developing-today/code",
      "branch": "queue/21642-14039-atlas-lancedb-v2",
      "sha": "60e605b1b665f0ca8904653c71b4de2a862d4321"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…4039, task 21642)

Adds read_lancedb_store (lance 14 native scan, vector ignored), sync_memory_entries
(restage only changed source_refs), and fixture-based tests. Test build is blocked:
lance-linalg 14.0.2 fails codegen on rustc 1.99.0 (vpdpbusd intrinsic signature).
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ab90eb3-fdcd-406f-82e3-6c0bb7ff83f3
Commits

Reviewing files that changed from the base of the PR and between 8d299e9 and 60e605b.

Files selected for processing: 5

  • pkgs/atlas-search/book/reference/atlas-stage.md
  • pkgs/atlas-search/crates/atlas-core/Cargo.toml
  • pkgs/atlas-search/crates/atlas-core/src/memory.rs
  • pkgs/atlas-search/crates/atlas-core/tests/memory.rs
  • pkgs/atlas-search/crates/atlas-search/src/bin/atlas-stage.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Lane oc-code-06 verification for #14039 (queue task 21642).

Remote run: https://github.com/dezren39/fleet/actions/runs/45467121018 (fleet-personal, ref queue/21642-14039-atlas-lancedb-v2 @ 60e605b, toolchain 1.99.1, protoc 3.21.12 installed on the runner).

Command: cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --test memory
Result: 9 passed; 0 failed, including native_reader_reads_a_lancedb_store_without_its_vectors, native_store_rebuilds_the_index_from_sources, sync_is_idempotent_and_restages_only_changed_entries, and the provenance assertions (corpus, agent, source_ref, updated_at, sensitivity, zone=fleet).

Local: cargo fmt --check and git diff --check clean.

Note: PR #14415 (rebuild-from-sources fingerprint proof) overlaps in memory.rs and tests/memory.rs. A straight merge conflicts in both files. Not folded in here; disposition left to a follow-up.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant