Skip to content

fix(core): a consolidated record is linked to its room (#1594) - #1614

Merged
ajianaz merged 1 commit into
developfrom
fix/consolidation-room-key
Oct 30, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/consolidation-room-key

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What

Room consolidation now writes the room under room_id (the key ConsolidationStore::insert_memory reads to link a record to its room) instead of room. The reader also accepts the old room key. The metadata is built in one helper, consolidation_metadata.

Why

The executor wrote metadata["room"] and the reader looked for metadata["room_id"], so a consolidated record was stored but never linked to the room it came from (atlas finding 6). The existing test set room_id by hand, which hid the mismatch.

Testing

  • New: a record built with the executor's metadata is linked and returned by the room; a record carrying only the old room key is still linked.
  • fmt, clippy -D warnings, cargo test -p uteke-core (940 passed). Cora review: no findings.
  • Not on the import/recall path, so no LongMemEval run.

The executor wrote the room under metadata key room while the code that links the record read room_id, so a consolidated record was never linked. Write room_id and keep reading room as a fallback.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit eea03d7 into develop Oct 30, 2026
14 checks passed
@ajianaz
ajianaz deleted the fix/consolidation-room-key branch October 30, 2026 08:41
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