Skip to content

feat(relay): add local single-node message tracer - #5580

Draft
loganj wants to merge 9 commits into
brother-darryl/local-mode-pr1-communityfrom
brother-darryl/local-mode-pr2-messages
Draft

feat(relay): add local single-node message tracer#5580
loganj wants to merge 9 commits into
brother-darryl/local-mode-pr1-communityfrom
brother-darryl/local-mode-pr2-messages

Conversation

@loganj

@loganj loganj commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

🤖

Summary

  • Add the local single-node SQLite message tracer: persist and replay relay events while retaining the authenticated send/read demo path.
  • Preserve the PR1 desktop-sidecar foundations: membership authorization, owner-aware community rebind, and loopback-only metrics and health listeners.
  • Add SQLite relay-handler conformance coverage and make the local smoke provision its channel before subscribing.

Scope

This PR is intentionally message-tracer only. DM/FTS, reactions, and feed work are deferred to PR3+.

Provenance and stack notes

  • Carries the message-tracer work from source 7db512e48 and cherry-picks the SQLite relay-handler conformance gate as 1a7883c4f, from wip-experiment-local-mode at b3f365faf.
  • The smoke provision-own-channel adjustment and pulling the conformance gate ahead of its source-stack position are new work in this PR.
  • Reconciles the conformance gate's fixture dependency from source 46283f403; two documented SQLite skip: annotations defer feedback-admin reads until PR5. The mesh-demo timeout remains a known parallel-suite environmental flake and passes in isolation.
  • This is stacked on brother-darryl/local-mode-pr1-community; expect a small rebase when PR1's Windows fix lands.

Validation note

RUST_TEST_THREADS=1 cargo test -p buzz-relay --lib has the same pre-existing/environmental failures at base and head: two admin 500 vs expected 404 failures, six media Sqlx(PoolTimedOut) failures, and an intermittent mesh-demo timeout. There are no head-only failures.

npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je and others added 9 commits August 11, 2026 11:03
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
The PR1 base removed local_mode.rs. Keep its removal while the PR2
single-node profile supplies the supported local runtime.

Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
(cherry picked from commit 045b9c0)
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Centralize relay test state construction behind BUZZ_TEST_BACKEND, defaulting to the unchanged PostgreSQL path and providing a migrated in-memory SQLite database with a configured community fixture.

Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant