GeezerVison is showing github.com — atlas(memory): five design corpora in the registry + memory-lancedb connector (#8622 slice 1a) by dezren39 · Pull Request #13319 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Slice 1a of the Atlas memory integration (#8622), following the re-cut proposed in the issue's parked findings (comment 7089812478):
crates/atlas-core/src/memory.rs (new): the first memory connector.
MEMORY_CORPORA + register_memory_corpora register the atlas: integrate fleet/agent memory into Atlas — one queryable memory surface across agents/corpora (follow-on to the #1300 decision) #8567 design's five corpora (agent memory, fleet memory files, zettelkasten notes, repo docs, research reports) as staging units in the stage registry, each with its owner and sensitivity as registry provenance. Registration is idempotent.
parse_memory_export reads a read-only JSON export of OpenClaw's memory-lancedb store in the store's own column shape. The store's vector column is deliberately ignored — Atlas re-embeds at promotion with the mandated model (design §2), so vectors stay comparable across corpora. Malformed rows fail loudly, naming the row and field.
stage_memory_entry / stage_memory_export stage entries into the agent-memory unit through the existing items + chunks_raw write path: kind=memory, source = the source-of-truth pointer (memory-lancedb:<id>), and meta carrying the design's provenance set (corpus, agent, source_ref, updated_at, sensitivity, zone=fleet).
atlas-stage CLI: two new verbs — provision-corpora (register the five corpora) and ingest-memory (stage a memory-lancedb export). Promotion and search are the existing aggregator + fan-out, unchanged.
stage.rs: open and sha256_hex become pub(crate) so the connector reuses the staging write path's own helpers instead of duplicating them.
Tests (oracle: crates/atlas-core/tests/memory.rs)
- The five design corpora register with provenance; re-registration is a no-op.
- Export parsing maps the store's columns, ignores its vectors, and rejects a malformed row naming row + field.
- A staged memory carries the full provenance set in its recorded meta.
- End-to-end acceptance: register → stage a fixture export → promote through the aggregator → the production fan-out returns the agent-memory hit, the shard chunk carries the
memory-lancedb:<id> source pointer, and the unit ends merged with its merge manifest recorded.
Full atlas-core suite run on the laptop route; the live store on the laptop (1 row) was also staged and promoted end-to-end with the production embedder as a smoke check (recorded on #8622).
Scope boundary
#8622 stays open: slice 1b (native LanceDB reader, idempotency keyed on id+updated_at, rebuild-from-sources proof) and the remaining acceptance items are untouched, as are slices 2–4 (#8623, #8625, #8626), which remain gated on this slice landing.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ector (slice 1a of #8622)
New atlas-core `memory` module implementing re-cut slice 1a of the
#8567 Atlas memory integration (proposed in #8622's parked findings):
- MEMORY_CORPORA + register_memory_corpora: the design's five
corpora (agent memory, fleet memory files, zettelkasten notes,
repo docs, research reports) registered as staging units with
owner/sensitivity provenance; registration is idempotent.
- parse_memory_export: read-only JSON export of OpenClaw's
memory-lancedb store in the store's own column shape; the store's
vector column is deliberately ignored (Atlas re-embeds at
promotion with the mandated model, design section 2); malformed
rows fail loudly naming row and field.
- stage_memory_entry / stage_memory_export: stage entries into the
agent-memory unit through the existing items + chunks_raw path —
kind=memory, source = memory-lancedb:<id>, meta carrying the
design's provenance set (corpus, agent, source_ref, updated_at,
sensitivity, zone=fleet).
atlas-stage gains `provision-corpora` and `ingest-memory` verbs;
promotion and search remain the existing aggregator + fan-out.
stage.rs: `open` and `sha256_hex` become pub(crate) so the
connector reuses the staging write path's own helpers.
Oracle tests in crates/atlas-core/tests/memory.rs: corpora
registration with provenance, export parsing, staged provenance,
and the end-to-end acceptance (promote -> fan-out returns the
agent-memory hit; unit merged with manifest).
Refs #8622 (slice 1a only; the issue stays open on slice 1b).
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 29 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:
9d474307-c3ec-4390-a478-1b295a682c74
Commits
-
Reviewing files that changed from the base of the PR and between 7e58102 and 4994201.
Files selected for processing: 5
-
pkgs/atlas-search/crates/atlas-core/src/lib.rs
pkgs/atlas-search/crates/atlas-core/src/memory.rs
pkgs/atlas-search/crates/atlas-core/src/stage.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T13:26:48.451679Z |
4994201 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4994201848
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
unit_id: AGENT_MEMORY_UNIT,
|
|
|
title: "Agent memory (OpenClaw memory-lancedb store)",
|
|
|
owner: "openclaw",
|
|
|
sensitivity: Tier::Internal,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep secret memory rows out of the internal corpus shard
When an export contains a row with "sensitivity":"secret", the parser accepts it, but this corpus is always provisioned as Tier::Internal. embed_unit_into_shard selects the physical shard using unit.sensitivity (aggregate.rs:462–465), so the secret text and vectors land in atlas-core-internal-agent-memory-00. Although the row-level search filter still applies, this defeats the separate-database/credential boundary documented and implemented in shards/mod.rs. Reject rows above the unit's tier or route them into tier-appropriate staging units before promotion.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|