cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

commit c761bd1de80119716c87b2cfffa37f85b23984b4
parent 340ed54af1782c92c977ba3df0c53dc5867a07b4
Author: triesap <tyson@radroots.org>
Date:   Tue,  7 Jul 2026 09:27:10 +0000

transport: guard status message shape

- Ban the removed proxy transport literal in transport source-boundary coverage.
- Guard exact Reticulum unavailable message witnesses.
- Guard the Reticulum preview status deduplication branch.
- Validate with CLI fmt, check, and focused transport tests.

Diffstat:
Mtests/target_cli.rs | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/target_cli.rs b/tests/target_cli.rs @@ -1394,6 +1394,7 @@ fn transport_source_boundary_rejects_removed_relay_and_publish_proxy_surfaces() ] { let source = fs::read_to_string(manifest_dir.join(relative_path)).expect("read source"); for forbidden in [ + "\"radrootsd_proxy\"", "radrootsd.publish_proxy.v1", "publish.relays.resolve", "\"publish.event\"", @@ -1407,6 +1408,20 @@ fn transport_source_boundary_rejects_removed_relay_and_publish_proxy_surfaces() ); } } + + let transport_source = + fs::read_to_string(manifest_dir.join("src/runtime/transport.rs")).expect("read source"); + for required in [ + "RETICULUM_PREVIEW_UNAVAILABLE_MESSAGE", + "Reticulum transport is configured for future compatibility, ", + "but this build does not implement Reticulum delivery.", + "if config.transport.profile != TransportProfileKind::ReticulumPreview", + ] { + assert!( + transport_source.contains(required), + "src/runtime/transport.rs must retain transport status/message witness `{required}`" + ); + } } fn help_lists(stdout: &str, command: &str) -> bool {