Skip to content

refactor(core): split operations.rs by concern, part 1 (#1519) - #1563

Merged
ajianaz merged 1 commit into
developfrom
refactor/operations-split-1
Oct 28, 2026
Merged

ajianaz merged 1 commit into
developfrom
refactor/operations-split-1

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

What

  • operations.rs becomes the module directory operations/ (a rename, git shows operations.rs -> operations/mod.rs).
  • Moved verbatim into their own files, each an impl crate::Uteke block: lookup.rs (get_by_id, get_by_ids, resolve_id_prefix, count, count_by_tag), tags.rs (tags_with_counts, rename_tag, delete_tag), update.rs (update_memory, update_memory_detailed) and time_travel.rs (recall_at_time, list_at_time, memory_existed_at). About 375 lines.
  • One test import changed path (super::time_travel::memory_existed_at).

Why

#1519 part 1 (round 2 epic #1523): operations.rs is one impl Uteke with eight concerns. Pure move, no interface change; the next parts move write, recall, forget and listing the same way.

Testing

  • Pure move, checked: the multiset of lines of the old file equals that of the new files except the scaffolding (mod, use super::*;, impl crate::Uteke {, closing braces, headers and the one import).
  • cargo test --workspace (core lib 907 passed, same count as before), clippy -D warnings, fmt, docgen (no diff). No public path changed (uteke_core::{RememberOutcome, UpdateOutcome} stay re-exported from the same module).
  • Cora MCP review of the scaffolding diff: no findings.

operations/ is a module directory; lookup, tags, update and point-in-time methods moved verbatim into their own files.
@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 e29293b into develop Oct 28, 2026
14 checks passed
@ajianaz
ajianaz deleted the refactor/operations-split-1 branch October 29, 2026 01:00
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