Skip to content

refactor: split config/types.rs and semantic.rs into domain modules#1756

Merged
bug-ops merged 4 commits intomainfrom
arch-phase-2
Mar 14, 2026
Merged

refactor: split config/types.rs and semantic.rs into domain modules#1756
bug-ops merged 4 commits intomainfrom
arch-phase-2

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 14, 2026

Summary

  • Split crates/zeph-core/src/config/types.rs (3331 lines) into 11 domain modules under config/types/: agent, channels, defaults, experiment, features, learning, logging, memory, providers, security, ui. All types re-exported from config/mod.rs; no change to serialized TOML format.
  • Split crates/zeph-memory/src/semantic.rs (3335 lines) into 7 sub-modules under semantic/: recall, algorithms, summarization, cross_session, corrections, graph, mod. Public API unchanged. Tests split into semantic/tests/ sub-modules.
  • No file exceeds the 500-line (config) or 600-line (semantic) limit.
  • Tests: 5427 passed (+395 vs baseline of 5032)

Verification

  • cargo +nightly fmt --check: clean
  • cargo clippy --workspace --features full -- -D warnings: clean
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins: 5427 passed, 0 failed

Closes #1735, Closes #1736

… semantic.rs

Split crates/zeph-core/src/config/types.rs (3331 lines) into 11 domain
modules under config/types/: agent, channels, defaults, experiment, features,
learning, logging, memory, providers, security, ui. All types re-exported
from config/mod.rs; no change to serialized TOML format.

Split crates/zeph-memory/src/semantic.rs (3335 lines) into 7 sub-modules
under semantic/: recall, algorithms, summarization, cross_session, corrections,
graph, mod. Public API unchanged. Tests split into semantic/tests/ sub-modules.

No file exceeds the 500-line (config) or 600-line (semantic) limits.

Closes #1735, Closes #1736
@github-actions github-actions bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes core zeph-core crate refactor Code refactoring without functional changes size/XL Extra large PR (500+ lines) labels Mar 14, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 14, 2026 15:49
@bug-ops bug-ops merged commit 84de136 into main Mar 14, 2026
15 checks passed
@bug-ops bug-ops deleted the arch-phase-2 branch March 14, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) refactor Code refactoring without functional changes rust Rust code changes size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split semantic.rs into recall, summarization, and cross-session sub-modules Split config/types.rs into domain-specific config modules

1 participant