Skip to content

feat(relay): add durable community archival#1834

Merged
kalvinnchau merged 6 commits into
mainfrom
fry/community-archival
Jul 14, 2026
Merged

feat(relay): add durable community archival#1834
kalvinnchau merged 6 commits into
mainfrom
fry/community-archival

Conversation

@kalvinnchau

@kalvinnchau kalvinnchau commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add durable community archived_at state while retaining data and hostname reservation
  • expose owner-authorized, idempotent POST /operator/communities/archive
  • reject archived tenants at admission and disconnect existing sockets locally and cluster-wide
  • stop reminder, workflow, and ephemeral-channel background work for archived tenants
  • forbid archiving the configured deployment community

Rollout

Land/deploy this relay contract before enabling the kgoose and UI archive actions. Mixed-version relay pods safely ignore the new disconnect command; active-only admission remains the durable backstop.

Validation

  • cargo fmt --check
  • cargo check --workspace
  • relay library: 564 passed, 11 environment-dependent ignored
  • pubsub connection control: 6 passed
  • fresh Postgres migrations 0001–0012
  • Postgres-backed buzz-db ignored tests: 79/79
  • Postgres-backed relay ignored HTTP/operator tests: 11/11

@kalvinnchau kalvinnchau requested a review from a team as a code owner July 13, 2026 23:14
@kalvinnchau kalvinnchau changed the title Add durable community archival feat(relay): add durable community archival Jul 14, 2026
npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 and others added 6 commits July 14, 2026 08:36
Co-authored-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
The archival migration bumped the migration count to 12, but the
pre-0007 retry test still asserted the last applied version was 11.
list_communities_owned_by_returns_only_owner_rows used fixed shared
pubkeys, so it counted communities leaked by sibling ignored tests on
a shared database; use per-run unique pubkeys instead.

Both failures reproduced on a fresh fully-migrated database and are
test-baseline issues, not archival logic defects. 79/79 buzz-db and
11/11 buzz-relay ignored tests pass after this change.

Co-authored-by: npub1ks3yhswfl2z70myka7wltdg39qpvqhspt2w3l2ajtaee8tmz5qkqrvl4et <b4224bc1c9fa85e7ec96ef9df5b5112802c05e015a9d1fabb25f7393af62a02c@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ks3yhswfl2z70myka7wltdg39qpvqhspt2w3l2ajtaee8tmz5qkqrvl4et <b4224bc1c9fa85e7ec96ef9df5b5112802c05e015a9d1fabb25f7393af62a02c@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub16ynjrn8tm9gxg4kpgfgj24eup8met48z58m9g0cvmpq9msjht0lq7r96r6 <d12721ccebd9506456c1425125573c09f795d4e2a1f6543f0cd8405dc2575bfe@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@sprout-oss.stage.blox.sqprod.co>
@kalvinnchau kalvinnchau force-pushed the fry/community-archival branch from c5b1ee2 to aa1f4f0 Compare July 14, 2026 15:40
@kalvinnchau kalvinnchau enabled auto-merge (squash) July 14, 2026 15:43
@kalvinnchau kalvinnchau merged commit 2b15a72 into main Jul 14, 2026
53 of 55 checks passed
@kalvinnchau kalvinnchau deleted the fry/community-archival branch July 14, 2026 16:02
brow pushed a commit that referenced this pull request Jul 14, 2026
…image-paste

* origin/main:
  refactor(clients): standardize product naming on community (#1858)
  fix(desktop): retain live rows after window exhaustion (#1810)
  Add private product feedback sidecar (#1857)
  fix(desktop): resolve Doctor install shell and command detection on Windows (#1854)
  fix(desktop): navigate to channel from inbox thread header (#1847)
  feat(desktop): surface needsRestart badge on live UI surfaces (#1853)
  fix(desktop): prevent menu-to-dialog UI lockups (#1839)
  feat(relay): add durable community archival (#1834)
  feat(desktop): add conversation-style DM composer (#1768)
  feat(push): add public APNs gateway (#1770)
  feat(relay): add atomic community ownership transfer (#1845)
  fix(desktop): stabilize agent identity restore (#1831)
  fix(buzz-acp): distinguish idle vs hard-cap timeout, dead-letter hard kills immediately (#1844)
  fix(observer): align scroll-anchor ids with transcript display-block keys (#1849)
  [codex] Add view activity label to agent popover (#1748)
  ci(desktop): surface flaky E2E tests instead of retry-masking them (#1838)
  fix(desktop): treat channel creator as member before 39002 provisioning (#1830)
  fix(mobile): mirror app bar title padding when actions are empty (#1832)

Co-authored-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1shglkdhngx3hrnhf4gf8vhpqdrmeludctechdvpwd3988zzs7ncq2cmtxu <85d1fb36f341a371cee9aa12765c2068f79ff1b85e7176b02e6c4a738850f4f0@sprout-oss.stage.blox.sqprod.co>
tlongwell-block pushed a commit that referenced this pull request Jul 14, 2026
* origin/main:
  fix(desktop): prevent menu-to-dialog UI lockups (#1839)
  feat(relay): add durable community archival (#1834)

Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
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.

2 participants