Skip to content

feat: add an existing memory to a room without copying it (#1589) - #1590

Merged
ajianaz merged 1 commit into
developfrom
feat/room-link-memory-1589
Oct 29, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/room-link-memory-1589

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a way to put an existing memory in a room without copying it:

  • core: Uteke::add_memory_to_room(memory_id, room_id, author) (room and memory must exist, NotFound otherwise; idempotent, the first link and its author are kept; returns whether a new link was made)
  • CLI: uteke room link <memory_id> <room> [--author]
  • HTTP: POST /room/memory with { memory_id, room, author? } (LAB tier, a write row so read-only tokens are refused); memory_id is a full id or an unambiguous prefix (shared resolver); answers { memory_id, room, linked, already_linked }
  • MCP: uteke_room_link_memory
  • docs: api-reference and core-contract regenerated, docs/mcp.md (50 tools), both skill copies, CHANGELOG.

Why

#1589: the only ways to get a memory into a room were remember with a room (a duplicate) or room move, which returns 404 when the memory has no link in the source room.

Testing

  • cargo fmt, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked, cargo run -p docgen.
  • New tests: core (no copy, idempotent, first author kept, not found), HTTP (200, prefix, already linked, 404 for room and memory, 400 for a bad id and a missing field), MCP, CLI integration.
  • LAB tier on purpose: a new CORE endpoint needs a uteke-cloud contract issue first; promote later on the owner's order.

uteke room link, POST /room/memory (LAB) and the MCP tool uteke_room_link_memory. The room and the memory must exist; linking twice is not an error.
@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 843bad0 into develop Oct 29, 2026
14 checks passed
@ajianaz
ajianaz deleted the feat/room-link-memory-1589 branch October 29, 2026 08:23
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