revert(mesh): drop open-relay unenforced mode; mesh stays allowlist-only

Remove the open-relay/open-mesh admission mode from PR #6189 at Mic's
direction: running the mesh unenforced when the Buzz relay does not
enforce NIP-43 membership is not a product mode we want, and it was the
source of all the fail-open complexity (NIP-11 mode probing, the
two-observation mode state machine, restart markers/throttles/latches).

Reverted to main's behavior: admission is always roster/allowlist
driven. On a relay with no membership snapshot the mesh simply runs
self-only — safe and boring, no mode probes, no whole-app restarts.
Removed: MeshRelayMode, relay_mesh_mode_from_nip11, the NIP-11 mode
probe, coordinator_admission.rs, mode-scoped discovery/availability, and
all their tests.

Kept from this branch (independent of the mode work):
- mesh-llm 0.76.0-rc7 upgrade and the restored hardware model ladder
- BUZZ_AGENT_LLM_TIMEOUT_SECS=660 mesh client timeout default
- desktop-standalone mesh=1 feature flag wiring
- cfg-only warning fixes in workspace.rs and restore.rs

desktop-tauri-clippy now lints BOTH cfg graphs (default and
--features mesh-llm): features are additive, so a single invocation
covers only one graph, and both ship (release-windows builds without
mesh-llm). CI keeps calling the recipe, and keeps the feature-enabled
--lib test step.

Verified on this commit: clippy -D warnings clean on both graphs;
feature-enabled lib suite 3110 passed / 0 failed / 19 ignored;
default-feature lib suite 3005 passed / 0 failed; fmt and diff checks
clean.

Signed-off-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Michael Neale
2026-08-29 10:59:31 +10:00
parent 502eed9028
commit d0ebf66117
10 changed files with 74 additions and 1011 deletions

View File

@@ -214,7 +214,7 @@ jobs:
run: just desktop-tauri-test
env:
CMAKE_POLICY_VERSION_MINIMUM: "3.5"
- name: Desktop Mesh admission tests
- name: Desktop Mesh feature tests
run: cargo test --manifest-path desktop/src-tauri/Cargo.toml --features mesh-llm --lib
env:
CMAKE_POLICY_VERSION_MINIMUM: "3.5"