Skip to content

refactor(agent-tools): trim dead AgentChannel scaffolding to only doom_loop_hash#6535

Merged
bug-ops merged 1 commit into
mainfrom
feat/issue-6480/zeph-agent-tools-crate-is-90
Jul 20, 2026
Merged

refactor(agent-tools): trim dead AgentChannel scaffolding to only doom_loop_hash#6535
bug-ops merged 1 commit into
mainfrom
feat/issue-6480/zeph-agent-tools-crate-is-90

Conversation

@bug-ops

@bug-ops bug-ops commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • zeph-agent-tools was ~90% dead scaffolding from an abandoned crate-extraction plan (issue feat(core): extract zeph-agent-tools crate from zeph-core (Phase 2) #3516, closed): the AgentChannel sealed trait and its supporting types (ChannelSinkError, ToolEventOutput, ToolEventStart, ToolDispatchError, Sealed) had zero implementors or consumers anywhere in the workspace.
  • Removed channel.rs, error.rs, sealed.rs entirely; the crate now exposes only doom_loop_hash, its sole real production consumer (zeph-core's tool tier loop, now at agent/tool_execution/doom_loop.rs:19 after the unrelated refactor(core): split tool_execution/tier_loop.rs into concern-scoped modules #6534 split).
  • Dropped the now-unused futures/serde/serde_json/thiserror/tokio/tracing/zeph-common/zeph-llm/zeph-tools dependencies and the sqlite/postgres feature forwarding — the crate now has zero workspace or external dependencies.
  • Corrected two stale cross-crate doc references to the trimmed crate (zeph-agent-context, zeph-durable).
  • This is a breaking change for external consumers of the published zeph-agent-tools crate (documented in CHANGELOG.md under ### Removed).

Test plan

  • cargo +nightly fmt --check
  • cargo clippy --profile ci --workspace --all-targets --features "desktop,ide,server,chat,pdf,scheduler,testing" -- -D warnings
  • cargo nextest run --config-file .github/nextest.toml --workspace --features "desktop,ide,server,chat,pdf,scheduler" --lib --bins (14796 passed, 0 failed)
  • Rustdoc gate (RUSTFLAGS="-D warnings" RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links" cargo doc --no-deps --workspace ...)
  • cargo test --doc -p zeph-agent-tools
  • Workspace-wide grep confirms zero dangling references to the removed types
  • Confirmed doom_loop_hash and its call site are byte-for-byte unchanged
  • Updated .local/testing/coverage-status.md

Closes #6480

…m_loop_hash

Removes the unused AgentChannel sealed trait and its supporting
ChannelSinkError/ToolEventStart/ToolEventOutput/Sealed types
(channel.rs, error.rs, sealed.rs), along with ToolDispatchError
(error.rs) -- dead scaffolding from an abandoned dispatcher-extraction
plan (issue #3516, closed) with zero implementors or consumers
anywhere in the workspace.

zeph-agent-tools now exposes only doom_loop_hash, its sole real
production consumer (zeph-core's tool tier loop). Drops the
now-unused futures/serde/serde_json/thiserror/tokio/tracing/
zeph-common/zeph-llm/zeph-tools dependencies and the sqlite/postgres
feature forwarding they existed to support -- the crate now has zero
workspace or external dependencies.

Also corrects two stale cross-crate doc references to the trimmed
crate in zeph-agent-context and zeph-durable.

Closes #6480
@github-actions github-actions Bot added the refactor Code refactoring without functional changes label Jul 20, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes dependencies Dependency updates size/XL Extra large PR (500+ lines) and removed refactor Code refactoring without functional changes labels Jul 20, 2026
@bug-ops
bug-ops enabled auto-merge (squash) July 20, 2026 02:04
@bug-ops
bug-ops merged commit 9e043c9 into main Jul 20, 2026
47 checks passed
@bug-ops
bug-ops deleted the feat/issue-6480/zeph-agent-tools-crate-is-90 branch July 20, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates documentation Improvements or additions to documentation rust Rust code changes size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zeph-agent-tools crate is ~90% dead scaffolding: only doom_loop_hash is actually consumed

1 participant