Skip to content

Comments

refactor: move CliChannel, add newtype IDs, restrict visibility#279

Merged
bug-ops merged 3 commits intomainfrom
feat/m20/architecture
Feb 14, 2026
Merged

refactor: move CliChannel, add newtype IDs, restrict visibility#279
bug-ops merged 3 commits intomainfrom
feat/m20/architecture

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • R5.1: Move CliChannel from zeph-core to zeph-channels/src/cli.rs — proper crate layering
  • R5.2: Deferred — zeph-memory→zeph-llm dependency is functional (uses Message/Role too)
  • R6.1: ConversationId(i64) and MessageId(i64) newtypes with sqlx::Type(transparent)
  • R7.1: pub(crate) restrictions on internal helpers in zeph-skills, zeph-index, zeph-memory

Test plan

  • cargo nextest run --workspace --lib --bins — 1351 passed
  • cargo clippy --workspace -- -D warnings — zero warnings
  • Code review: approved (0 blockers)

Phase 4 of #268. Closes #273, closes #274.

R5.1: move CliChannel from zeph-core to zeph-channels/src/cli.rs
R5.2: deferred (zeph-memory->zeph-llm dependency is functional, not just embedding)
R6.1: introduce ConversationId/MessageId newtypes in zeph-memory with sqlx::Type
R7.1: restrict internal helpers to pub(crate) across zeph-skills, zeph-index, zeph-memory

1351 tests pass, clippy clean.

Closes #273, closes #274
@github-actions github-actions bot added skills SKILL.md system memory Persistence and memory channels User interface channels rust core refactor size/XL labels Feb 14, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2026

Codecov Report

❌ Patch coverage is 80.75472% with 51 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/zeph-channels/src/cli.rs 61.11% 35 Missing ⚠️
crates/zeph-memory/src/qdrant.rs 0.00% 8 Missing ⚠️
crates/zeph-memory/src/semantic.rs 87.27% 7 Missing ⚠️
crates/zeph-memory/src/sqlite/skills.rs 94.11% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #279      +/-   ##
==========================================
+ Coverage   80.36%   80.40%   +0.04%     
==========================================
  Files          94       96       +2     
  Lines       23718    23780      +62     
==========================================
+ Hits        19060    19120      +60     
- Misses       4658     4660       +2     
Files with missing lines Coverage Δ
crates/zeph-core/src/agent/context.rs 87.10% <100.00%> (ø)
crates/zeph-core/src/agent/mod.rs 78.89% <100.00%> (-0.13%) ⬇️
crates/zeph-core/src/channel.rs 100.00% <ø> (+20.11%) ⬆️
crates/zeph-core/src/metrics.rs 100.00% <ø> (ø)
crates/zeph-index/src/chunker.rs 95.23% <ø> (ø)
crates/zeph-index/src/context.rs 100.00% <100.00%> (ø)
crates/zeph-memory/src/sqlite/messages.rs 98.39% <100.00%> (+0.06%) ⬆️
crates/zeph-memory/src/sqlite/summaries.rs 98.63% <100.00%> (ø)
crates/zeph-memory/src/types.rs 100.00% <100.00%> (ø)
crates/zeph-skills/src/resource.rs 89.13% <100.00%> (+0.36%) ⬆️
... and 5 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions bot added the tests label Feb 14, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 14, 2026 22:05
@bug-ops bug-ops merged commit 3abe0bb into main Feb 14, 2026
18 checks passed
@bug-ops bug-ops deleted the feat/m20/architecture branch February 14, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channels User interface channels core memory Persistence and memory refactor rust size/XL skills SKILL.md system tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R5: fix architectural layering violations R6+R7: type system improvements and API surface cleanup

2 participants