Skip to content

feat(desktop): add local community tracer (PR 1A/12) - #5531

Draft
loganj wants to merge 16 commits into
brother-darryl/local-mode-pr0-seamsfrom
brother-darryl/local-mode-pr1-community
Draft

feat(desktop): add local community tracer (PR 1A/12)#5531
loganj wants to merge 16 commits into
brother-darryl/local-mode-pr0-seamsfrom
brother-darryl/local-mode-pr1-community

Conversation

@loganj

@loganj loganj commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

🤖

Summary

  • Adds the community-only SQLite persistence slice and desktop local-relay lifecycle for local mode, behind the default-off local_communities experiment gate.
  • Keeps the bundled SingleNode sidecar private: application, health, and metrics listeners bind loopback only. It also uses atomic durable service-key persistence plus distinct-port allocation, bind-conflict retry, and bounded stderr diagnostics.
  • Makes SQLite add_member match the public Postgres contract transactionally, including key validation, private-channel admission, role/last-owner restrictions, and original-inviter preservation across active re-add and soft-delete reactivation.
  • This is stacked on refactor(relay): backend seams prep for local mode (PR 0/12) #5506 (brother-darryl/local-mode-pr0-seams) and retargets to main after that PR merges.

Fix-round follow-up

  • Confined all SingleNode listeners to loopback.
  • Added the complete transactional SQLite membership invariant family and provenance-parity regressions.
  • Replaced direct service-key writes with the atomic owner-only persistence primitive.
  • Hardened sidecar port allocation, retry, and diagnostics.
  • Cleared push checks by using explicit stderr if/else handling and moving the local auth-tag backfill to agent_auth.rs, avoiding an agents.rs file-size-ratchet exception.

Integration debt

Conflicts with current main in WelcomeSetup.tsx and onboarding.spec.ts from #5310 onboarding polish. Deliberately deferred: resolve in the rebase-onto-main at retarget time after #5506 merges, with delta review of the resolutions.

Related issue

N/A — stacked follow-up to #5506.

Testing

  • Hermit pre-push checks passed with hooks enabled: desktop check/typecheck/test, mobile test, Rust tests, and desktop Tauri checks.
  • cargo test -p buzz-db --lib: 97 passed, 154 ignored.
  • Relay baseline/head comparison had identical known failures; this host's PostgreSQL was down, so CI is authoritative for PostgreSQL coverage.

npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh and others added 16 commits August 10, 2026 15:29
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: npub13n66s06epmqf2kc3v373ez8hj65cuzyvxzjf93vwpervxqn2u7jq2qd9je <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <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>
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>
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>
@loganj
loganj force-pushed the brother-darryl/local-mode-pr1-community branch from 8652610 to aaf4be8 Compare August 11, 2026 00:25
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