Skip to content

refactor(memory-core): split manager sync operations - #108583

Merged
steipete merged 1 commit into
mainfrom
codex/refactor-memory-core-manager-sync
Jul 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/refactor-memory-core-manager-sync

Conversation

@steipete

@steipete steipete commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The memory-core synchronization manager had grown into one oversized production module that mixed shared state, filesystem watcher ownership, session event handling, source indexing, and shadow reindex coordination. That made ownership boundaries and synchronization invariants difficult to review safely.

Why This Change Was Made

Split the manager synchronization implementation into one inheritance spine with dedicated modules for shared state, memory watchers, session synchronization, source indexing, and top-level coordination. The public manager surface, metadata key, SQLite publication flow, retry state, watcher ordering, and session cancellation/error behavior remain unchanged. The old max-lines exemption is removed; no compatibility path or fallback was added.

User Impact

No user-visible behavior change. Maintainers get smaller production modules with explicit ownership boundaries and no max-lines exemption.

Evidence

  • Focused memory-core proof: 10 sync, reindex, targeted-session, and watcher test files; 76 tests passed.
  • Exact-head Testbox proof asserted head f406595 and tree 632f13be1ff2cc3a5ba87be090d03e222f3c4ca2, then passed the changed gate and full build: https://github.com/openclaw/openclaw/actions/runs/29469642936
  • Targeted Oxlint and Oxfmt checks passed for all five production modules.
  • Max-lines suppression ratchet passed with the target exemption removed.
  • Structural symbol audit confirmed every original class method remains exactly once; three former free session helpers are now protected owner methods.
  • AutoReview completed clean after fixing its one accepted missing type-import finding.
  • Hosted CI is terminal and green. One unrelated TUI PTY exit timeout rendered its expected response, then passed its single-job rerun; the exact base main CI was also green.
  • git diff --check passed.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: XL maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete merged commit c077e80 into main Jul 16, 2026
194 of 200 checks passed
@steipete
steipete deleted the codex/refactor-memory-core-manager-sync branch July 16, 2026 04:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

extensions: memory-core Extension: memory-core maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant