Phase 3.2: Complete Chibi Integration (Task Groups 4-6)#9
Merged
terraboops merged 4 commits intomainfrom Feb 2, 2026
Merged
Conversation
… Group 3) - Add custom_message_type field to HookFilter struct - Implement extract_custom_message_type() for namespace detection - Update matches_filter() to check custom types against expected types - Add unit tests for custom type extraction and filtering (6 new tests) - Add integration test for E2E custom type routing - Fix clippy warnings in existing filter tests Phase 3 Task Group 3 complete. Hook system now supports filtering on all 12 custom XEP message types (thought, tool_call, tool_result, todo, code_change, integration, review_comment, work_available, question, answer, status_update, feature_complete) defined in Phase 3.1. Test Results: - 20 unit tests pass (chattermax-server) - 1 integration test passes - 15 chattermax-core tests pass - Zero compiler warnings - Clippy passes with -D warnings - Code formatted with cargo fmt
- Created Client struct with async connect, send_message, send_custom_message - Added ClientBuilder for ergonomic configuration - Created lib.rs exposing public API with re-exported core types - Updated error handling to use library-specific ClientError - Made Connection module internal (pub(crate)) with send_raw method - Prepared foundation for CLI to use library (Phase 3 Task Group 4) Library features: - ClientBuilder::new(server, username, password) with port/tls options - Client::send_message() for plain text - Client::send_custom_message() for 12 XEP types - Client::join_room/leave_room/close for room management - Graceful error handling with thiserror Chibi integration ready: Library can be used as dependency to send/receive structured inter-agent messages over XMPP.
Task Group 4 (Client Library): - chattermax-client library already extracted with public API - Supports all 12 message types with type-safe construction - Includes documentation and examples Task Group 5 (Chibi Integration): - Implement tool invocation handler for chattermax_send tool - Accept high-level message parameters (to_agent, message_type, content) - Plugin connects to Chattermax and sends custom messages - Return success/error responses to Chibi Task Group 5 (Server Hook): - Implement server message handler for receiving XMPP messages - Parse incoming messages and extract custom XEP types - Convert to Chibi unified inbox entry format - Store semantic message type and XMPP metadata - Support correlation_id for request/response linking Architecture: - Hook-based spawning: per-message process for scalability - Unified format: preserve semantic types with metadata - Tool interface: high-level for LLM accessibility - Correlation: UUID-based, stateless approach Documentation: - CHIBI_INTEGRATION.md: complete integration guide - ADR-0003: architectural decisions and rationale - Unit tests: tool invocation, message parsing, serialization All tests passing. Ready for Phase 4 (Chizu integration).
terraboops
added a commit
that referenced
this pull request
Feb 3, 2026
…sage-routing Phase 3.2: Complete Chibi Integration (Task Groups 4-6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes Phase 3.2 (Chibi Integration) for the Chattermax project, implementing all remaining task groups:
Implementation Details
Tool Invocation (chattermax_send)
Server Message Handler
Architecture
Documentation
Testing
✅ All 35 tests passing (15 core, 20 server, 10 plugin)
✅ Message parsing and serialization validated
✅ Hook responses and tool invocation tested
✅ Configuration validation working
Files Changed
Next Steps
Phase 4 will implement: