feat(kerykeion): gateway bridge, MQTT parsing, collector run loop, and mesh CLI#62
Merged
forkwright merged 1 commit intomainfrom Mar 22, 2026
Merged
feat(kerykeion): gateway bridge, MQTT parsing, collector run loop, and mesh CLI#62forkwright merged 1 commit intomainfrom
forkwright merged 1 commit intomainfrom
Conversation
…d mesh CLI Implement the final Wave 4 kerykeion modules: - GatewayBridge: multi-gateway selection by priority and health rank, automatic failover with cooldown, health monitoring (Healthy → Degraded → Offline transitions), periodic health check loop - MQTT message parsing: decode ServiceEnvelope, MapReport, and MqttClientProxyMessage protobuf envelopes; extract gateway info from envelope gateway_id strings - MeshCollector run loop: connect transports, perform config handshake, spawn heartbeat and health monitor background tasks, main receive loop with biased select and CancellationToken shutdown - Mesh CLI commands: status, nodes, send, topology with formatted table output and live-data helpers for daemon integration 48 new tests across bridge (12), mqtt (10), collector (11), mesh CLI (15). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Consider splitting into smaller PRs for easier review. Not a blocker, just a signal. |
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
bridge.rs): multi-gateway selection by priority and health rank, automatic failover with 30s cooldown, health monitoring with Healthy → Degraded → Offline state transitions, periodic health check loop withCancellationTokenshutdownmqtt.rs): decodeServiceEnvelope,MapReport, andMqttClientProxyMessageprotobuf envelopes; extract gateway info from!hexgateway ID strings; lat/lon conversion from fixed-point integerscollector.rs): transport connection, config handshake, heartbeat and health monitor background task spawning viaJoinSet, main receive loop with biasedtokio::select!, graceful shutdown draining all tasksmesh/mod.rs):akroasis mesh status,mesh nodes,mesh send,mesh topologysubcommands withcomfy-tableformatted output; live-data helpers (build_status_table,build_nodes_table,format_node_row,format_gateway_health) for daemon integrationlib.rsre-exports, CLI registration, akroasis → kerykeion dependencyTest plan
cargo fmt --all -- --checkcleancargo clippy --workspace --all-targets -- -D warningscleancargo test --workspace— 462 tests pass, 0 failurescargo test --workspace --doccleanValidation gate