Skip to content

docs(protocol): propose community-scoped NIP-AR artifacts - #9638

Closed
LordMelkor wants to merge 2 commits into
block:mainfrom
LordMelkor:clod/nip-ar-community-scope
Closed

LordMelkor wants to merge 2 commits into
block:mainfrom
LordMelkor:clod/nip-ar-community-scope

Conversation

@LordMelkor

@LordMelkor LordMelkor commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Proposal only: a documentation change to docs/nips/NIP-AR.md with no code. Before anyone implements it, it asks the NIP-AR authors three things:

  1. Should NIP-AR gain a community scope, or should the feature-specific feat(relay): add shared mention groups with durable CAS commands #9589 go ahead instead?
  2. Is a separate relay-admin command (kind 9034, pending allocation) the right way to set a type's write policy?
  3. Is the relay cost below acceptable for the reuse it buys?

Why. Some shared records belong to a whole community, not to one channel. The first case is mention groups: named groups of people and agents that anyone in the community can mention, like Slack user groups, where owners and admins can restrict who edits them. Each group would be one community artifact keyed by its name, holding its members, and editable by any member unless an owner or admin restricts that type to admins. NIP-AR is the relay's general store for editable shared records, but every artifact needs a home channel, so a community-wide set has nowhere to live except a channel created to hold it.

The open alternative is #9589, a relay subsystem for mention groups alone: its own event kinds, tables, name rules and default-channel joins. That puts one feature's rules into the relay. This proposal adds a general primitive instead. Any client or plugin can keep community-wide records with NIP-AR's existing compare-and-set, accepted retries, deletion and sync, and write them with the desktop app's existing kind 45010 writer (block/buzz-app, where plugins run), so no plugin needs a general event signer. The feature's own rules (names, member count, default channels) stay in the plugin.

Alternatives considered

Proposal

Extend NIP-AR with community-scoped kind 45010 artifacts. A signed community UUID binds an artifact to its tenant. An explicit query scope gives community artifacts their own audience and keeps existing channel filters compatible. The relay supplies admission, per-type policy, compare-and-set, accepted retries, deletion, and sync. Clients define the record schema, canonical keys, and feature behavior. NIP-AR on main

Policy command

Use a signed relay-admin command, with kind 9034 proposed pending allocation. Require global admin:users and the signer's own community owner or admin role. The command compares the previous policy revision and runs under the same lock as artifact admission for that type. Reuse the application’s typed community-admin path for an explicit settings action. Relay admin routing · Typed member commands · Native admission

A reserved kind 45010 policy type could reuse artifact revisions, receipts and history. The supported artifact writer accepts kind 45010 without checking its type, so a plugin using that API in an admin's session could submit policy writes for other types. A relay role check would see the same admin signer. A reserved-type design with equivalent protection would need a trusted host gate and a separate explicit admin action. A policy-only live subscription would also be a second sync under the one-type limit. Native artifact writer · Browser artifact writer

Core changes and scope

Surface Why core needs it Proposed change
Relay storage and authorization Eligibility must hold across writers, transports, and relay instances. Clients cannot enforce it. Extend the existing NIP-AR heads and revision ledger with a separate scope. Use existing tenant admission and a bounded per-type policy map.
Relay queries and sync Core controls stored and live delivery, including access revocation. Add explicit tenant scope to the existing views, with one exact type per live sync. Keep incremental reads channel-only.
App capability discovery and filters The host resolves the community and validates queries. Expose typed artifact capability and community ID. Extend the shared filter to accept the new scope.
App record writes The host already signs and publishes kind 45010. Reuse the existing artifact writer.
App policy writes The policy can change future write authority for a whole type. Extend the typed community-admin path with an explicit settings action.

The plugin owns record content, names, membership count, and default-channel joins after an accepted save. This estimate covers the relay extension.

Relay estimate (non-normative)

Source estimate against b769d5bee81e99b8ff9189686bf6ab1856897c31. Counts cover new or changed relay Rust and SQL lines.

Work Production lines Test lines
Envelope, routing and discovery 120–170 100–180
Scope-aware storage and migration 210–330 140–230
Admission, policy command and transaction order 200–310 150–240
HTTP views, generic read isolation and moderation 220–360 170–270
Live access checks and resync 180–300 180–280
Total 930–1,470 740–1,200

The upper estimate is close to the feature-specific relay's roughly 1,600 production lines. Scope isolation and mixed-version rollout dominate the work. Older writers target the current head key. Expand the schema first, deploy compatible readers and writers, then retire the old uniqueness key and enable community writes. Keep existing channel IDs and use separate community and channel namespaces in storage. Head schema · CAS and receipts

Verify the generic query, count and direct-ID paths exclude community payloads. Cover direct and delegated admission, policy changes racing writes, and HTTP and live revocation during snapshots and after EOSE. The channel redaction path expects a home channel, so community redaction needs explicit target authorization and a resync signal. Generic reads · Sync · Cluster revocation · Channel moderation

The documentation patch applies cleanly to the baseline. Implementation and runtime validation follow a design decision.

Related issue

If accepted, this replaces #9589 and its compatibility release #9587. If not, #9589 continues with its default-channel joins moved into the client. Related open drafts: #9584 (provisioned system channels) and #8819 (user groups). I looked through the open PRs for artifact, NIP-AR and user-group work and found none that proposes a community scope.

Testing

  • Documentation only. The patch applies cleanly to b769d5bee81e99b8ff9189686bf6ab1856897c31 and git diff --check passes.
  • Implementation and runtime tests follow a design decision.

The PR's author, who directs this work, gave the human guidance; AI agents drafted the text and the estimate.

🤖 Generated with Claude Code

Add a proposed extension to NIP-AR for kind 45010 artifacts scoped to a
whole community instead of a home channel: a signed community tag, an
explicit query scope, a separate identity space, and a per-type write
policy set by community owners and admins through a relay-admin command.
Documentation only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Krish Ray <kray@block.xyz>
@LordMelkor
LordMelkor requested a review from a team as a code owner November 18, 2026 02:01
@LordMelkor

LordMelkor commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Update, Nov 18: Closed as replaced by draft #9646, which includes this spec commit and builds the relay implementation on it. Earlier note below.


Update, Nov 18: Moved to draft. No read is needed yet. We'll ask again once the implementation is complete, so the note can be judged alongside working code.


@baxen @loganj @dr0uleau: you wrote NIP-AR, its sync and its incremental reads, so you're the people best placed to judge this. Before anyone writes code, could you give it a design read? Three questions:

  1. Is a community scope acceptable in NIP-AR, or should the feature-specific feat(relay): add shared mention groups with durable CAS commands #9589 go ahead instead?
  2. Is a separate relay-admin command the right way to set a type's write policy?
  3. Is the relay cost acceptable?

Incremental reads stay channel-only in this version.

…nity

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Krish Ray <kray@block.xyz>

@joahg joahg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 This is a comment, not an approval. A human maintainer needs to review this PR. The three design questions it asks are for the NIP-AR authors and relay maintainers to decide, so I'm not taking a side on whether this replaces #9589.

I read the spec text for internal consistency only; this is a docs-only change.

What looks right

  • The compatibility story holds. A legacy channel filter still sees only channel artifacts. A relay that doesn't know the new scope key rejects it as an unknown key (CLOSED), so an old relay can't silently serve the wrong set. Community writes and the NIP-11 capability are gated on every backend enforcing the community audience.
  • Identity spaces stay separate in storage, not just through the derivation prefix, which is the right call since channel authors choose arbitrary UUIDs.
  • The policy command is kept out of kind 45010, and the reason is stated: the app's artifact writer doesn't check type, so a plugin could forge policy writes. The signed community is checked before any receipt lookup.
  • Admission and revocation are specified for HTTP and live sync, including the failed-initial-read and post-EOSE cases. Counts are rejected explicitly rather than returning zero.

Findings (spec clarity, P3)

  • The d derivation says "The UUID is lowercase and hyphenated", but it's unclear whether that describes the community_uuid input, the output, or both. Two clients that format the input differently would derive different ds for the same key. Please state the input's canonical text form.
  • Type policy entries can't be removed: switching back to everyone keeps the entry and it still counts toward max_policies. A community that reaches the bound can never set a policy on a new type. Either add a removal path or say this is intended.
  • The exact-replay rule acknowledges a replay without re-checking the edit policy or timeout, as long as the signer has community read admission. That's safe because nothing is written, but a sentence saying so would stop an implementer from treating the ack as authorization.
  • The community kind 9005 moderation command has no h, unlike today's channel moderation. Please name how a relay tells a community-scoped 9005 apart from a malformed channel one.

No P0 or P1 findings.

@LordMelkor
LordMelkor marked this pull request as draft November 18, 2026 04:01
@LordMelkor LordMelkor closed this Nov 18, 2026
LordMelkor added a commit that referenced this pull request Nov 18, 2026
## Summary

NIP-AR clients can store community-scoped artifacts and subscribe to
live changes for one exact artifact type. Community and channel
artifacts share revision and retry semantics and use separate identity
scopes. Community owners and admins can choose whether a type accepts
edits from all admitted members or only administrators. This PR combines
the protocol from #9638 with the relay implementation.
[Protocol](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/docs/nips/NIP-AR.md#community-scoped-artifacts-proposed-extension)

- Kind `45010` binds community writes to a signed tenant UUID. Explicit
community filters select signed HTTP reads and WebSocket sync. NIP-11
advertises capability after the schema transition.
- Kind `9034` sets per-type policy using compare-and-set. The relay
commits the policy update and audit entry together. Readers fetch the
current policy and its revision through the explicit policy view.
- Kind `9005` redacts a community revision. Relay peers send
tenant-scoped change metadata and re-read the authorized head for
delivery. This reuses the existing snapshot, bounded buffering, and
resync semantics.

## Rollout

Migration `0097` expands storage and retains the existing channel write
key. Deploy compatible serving backends, deletion executors and operator
tools with community scope disabled. Then run the guarded key transition
and enable the capability. The resulting rollback floor is the first
compatible relay version. [Rollout
guide](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/docs/community-artifact-rollout.md)

## Why each change belongs in the relay or protocol

| Change | Necessity | Minimality |
| --- | --- | --- |
| NIP-AR community scope | The current protocol gives every artifact a
home channel and defines channel-based access. Clients need a shared
contract for community identity, admission, reads and moderation to
interoperate.
[NIP-AR.md:9](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/docs/nips/NIP-AR.md#L9)
[NIP-AR.md:65](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/docs/nips/NIP-AR.md#L65)
| An optional version-1 section reuses the artifact envelope version and
revision operations. The channel sections state where their existing
rules apply.
[NIP-AR.md:242](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/docs/nips/NIP-AR.md#L242)
|
| Signed community revisions | The validator requires an `h` tag, and
the write path stores an event and mentions for that channel. A
client-defined tag cannot establish a different audience on the relay.
[artifact.rs:122](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-core/src/artifact.rs#L122)
[artifact.rs:196](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/artifact.rs#L196)
| The existing event kind accepts a mutually exclusive, signed community
UUID. HTTP and WebSocket bind it to the resolved tenant at ingest and
reuse the revision authentication checks.
[community_artifact.rs:120](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/community_artifact.rs#L120)
[community_artifact.rs:174](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/community_artifact.rs#L174)
|
| Scoped heads and revisions | The database key places every artifact in
one identity space per community. Only the relay can advance an accepted
head atomically across clients.
[artifact_heads.sql:2](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/schema/tables/public/artifact_heads.sql#L2)
[artifact.rs:187](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/artifact.rs#L187)
| The head and revision ledger gain a scope discriminator. Community
revisions keep their signed payload in the ledger and reuse the
compare-and-set, replay and tombstone rules.
[community_artifact.rs:350](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/community_artifact.rs#L350)
|
| Community admission | Channel reads check channel visibility and
membership. A client can filter its own view but cannot enforce
admission for other readers or synchronize delivery with a revocation.
[artifact_query.rs:65](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/artifact_query.rs#L65)
| Explicit community reads and writes share an admission check against
current membership, verified delegation and bans. Administrative
authority requires a direct role.
[community_artifact.rs:36](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/community_artifact.rs#L36)
|
| Per-type write policy | The administrative scope dispatch has no
artifact-policy command. A client preference cannot enforce an edit rule
against another client or a concurrent write.
[ingest.rs:650](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-relay/src/handlers/ingest.rs#L650)
| One signed admin command sets policy for one exact type using
compare-and-set. A bounded map on the existing community row records the
policy and revision. A shared lock orders policy changes with writes,
and the existing audit chain commits in the same transaction.
[community_artifact.rs:183](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/community_artifact.rs#L183)
[community_artifact.rs:365](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/community_artifact.rs#L365)
[community_artifact.rs:189](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/community_artifact.rs#L189)
|
| Signed HTTP reads | The artifact endpoint dispatches to the channel
store. It cannot return a community head, its history or the
authoritative write policy.
[artifact.rs:70](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-relay/src/api/artifact.rs#L70)
[artifact_query.rs:65](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/artifact_query.rs#L65)
| One scope selector on the existing signed endpoint extends the
current, history and head views and adds an exact-type policy lookup.
Counts and HTTP incremental tokens stay channel-only.
[artifact.rs:73](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/api/artifact.rs#L73)
[artifact_sync.rs:154](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/api/artifact_sync.rs#L154)
|
| Community WebSocket sync | The relay requires channel IDs and confirms
live interest on those channels. A client cannot register community
interest through the existing filter.
[artifact_sync.rs:51](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-core/src/artifact_sync.rs#L51)
[artifact_sync.rs:440](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-relay/src/handlers/artifact_sync.rs#L440)
| One exact type selects the community set. The relay reuses
subscription ownership, snapshot paging, bounded buffering, EOSE and
resync, with a current admission check before delivery.
[artifact_sync.rs:683](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/artifact_sync.rs#L683)
[artifact_sync.rs:755](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/artifact_sync.rs#L755)
[artifact_sync.rs:934](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/artifact_sync.rs#L934)
|
| Cross-node delivery | Redis routes channel and ordinary global events.
A connected client cannot coordinate when peers reread an authorized
head.
[topic.rs:15](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-pubsub/src/topic.rs#L15)
| One tenant-scoped topic carries the identity, exact type and change
cause. Each relay filters its own subscriptions and rereads the
authorized head or signals resync.
[artifact_sync.rs:211](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/artifact_sync.rs#L211)
[artifact_sync.rs:1039](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/artifact_sync.rs#L1039)
|
| Ordinary event audience | Generic queries and search apply event-store
rules. A client cannot enforce who else receives a response from those
paths, including on a relay with community writes disabled.
[event.rs:785](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/event.rs#L785)
[query.rs:329](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-search/src/query.rs#L329)
| Community payloads stay in the ledger. Ordinary reads and fan-out
enforce the channel boundary, including for rows from older paths.
Explicit artifact views enforce community admission.
[event.rs:7267](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/event.rs#L7267)
[event.rs:153](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/event.rs#L153)
|
| Community redaction | The moderation path requires a channel in `h`. A
client delete cannot apply relay moderation to a stored community
revision.
[side_effects.rs:671](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-relay/src/handlers/side_effects.rs#L671)
| The existing moderation kind gains one community-scoped target form
for direct owners and admins. Redaction preserves the accepted revision
ID and sends affected syncs through the existing resync path.
[community_artifact.rs:214](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/community_artifact.rs#L214)
[community_artifact.rs:609](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/community_artifact.rs#L609)
|
| Community purge | The deletion executor retains the community row as a
tombstone. Client-side removal cannot clear authoritative policy on that
row or prove it was erased.
[deletion.rs:2448](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/deletion.rs#L2448)
[deletion.rs:3488](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/deletion.rs#L3488)
| The existing purge covers both ledger tables. The tombstone
transaction clears the policy map when the column exists, and the
absence check verifies it.
[deletion.rs:2451](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/deletion.rs#L2451)
[deletion.rs:3489](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-db/src/store/deletion.rs#L3489)
|
| Schema rollout | Older writers use the existing two-column conflict
target. Clients cannot preserve that write contract during a key change
or attest which relay binaries are serving.
[artifact.rs:196](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-db/src/store/artifact.rs#L196)
| Migration 0097 adds columns and indexes without a backfill and
preserves the old key. A separate guarded SQL operation installs the
scoped key after the compatible fleet is in place. The rollout guide
documents the sequence and rollback boundary.
[0097_community_artifact_expand.sql:7](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/migrations/0097_community_artifact_expand.sql#L7)
[community-artifact-contract.sql:13](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/scripts/maintenance/community-artifact-contract.sql#L13)
[community-artifact-rollout.md:38](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/docs/community-artifact-rollout.md#L38)
|
| NIP-11 and enablement | The baseline artifact descriptor supplies
neither the tenant UUID nor a signal that the scoped schema is active.
Clients cannot infer activation across mixed-version deployments.
[nip11.rs:478](https://github.com/block/buzz/blob/493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474/crates/buzz-relay/src/nip11.rs#L478)
| One optional discovery object advertises the version, canonical tenant
UUID and policy limit. The handlers and NIP-11 share the configuration
and schema-readiness gate.
[nip11.rs:482](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/nip11.rs#L482)
[community_artifact.rs:51](https://github.com/block/buzz/blob/0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb/crates/buzz-relay/src/handlers/community_artifact.rs#L51)
|

## Size

Measured with `git diff` from `493cb4cc1` to `0b8949f5e`. Dedicated test
files and changed lines inside Rust `#[cfg(test)]` items count as tests.
Each side of a mixed hunk is classified against its own revision.

| | Added | Removed |
| --- | ---: | ---: |
| Production, including schema and rollout SQL | 2,249 | 117 |
| Tests | 1,897 | 53 |
| Docs | 180 | 8 |
| Standalone runtime probe | 397 | 0 |
| **Total** | **4,723** | **178** |

The total includes
`crates/buzz-relay/examples/community_artifact_probe.rs`. The production
and test rows exclude it. The probe supports manual mixed-version and
feature-disabled checks against a running relay.

## Validation

Validated at `0b8949f5e29f5ccf51ec5e2d487f09e2f49bffeb` against
`493cb4cc1369ff9fdb44ae6c50f18c66d1fb6474`.

- The signed HTTP and WebSocket workflow exercised the old and new
channel writers on the expanded schema, the guarded key transition,
community snapshot and live sync, policy compare-and-set and replay,
tenant binding, scope isolation, and redaction followed by resync.
Restarting the relay with community scope disabled after the transition
withheld capability advertisement and preserved channel artifact
operations.
- The normal `buzz-db` suite passed 268 tests, including doctests. All
860 `buzz-db` PostgreSQL tests passed, including the wide `#e` read
regression from #9591.
- The full eight-package PostgreSQL run passed 1,695 of 1,696 tests.
`handlers::ingest::postgres_tests::reaction_and_deletion_h_must_name_the_target_channel`
failed while setting up its private-channel fixture. The same fixture
failed on the protocol base `27a4c8a86e9e9795bfaf5fe59f35164a6389a9ed`.
- The hosted PostgreSQL run at `686b8445` passed 1,698 of 1,699 tests.
The same test was the sole failure on the PR and on `main` at
`493cb4cc13`. In both runs, fixture setup returned `restricted: not a
channel member` while storing the private target. #9640 fixes the
fixture by invalidating the author's membership cache after creating the
private channel. Its PostgreSQL run passes the test. [PR run
44325182932](https://github.com/block/buzz/actions/runs/44325182932/job/134884438543)
· [Main run
44254013047](https://github.com/block/buzz/actions/runs/44254013047/job/134638066441)
· [Fix #9640](#9640) · [Passing test
on
#9640](https://github.com/block/buzz/actions/runs/44248427229/job/134618695910)
- `just test-unit` and `just test` passed on Linux in separate runs. The
commands recorded 6,611 and 7,243 passing test executions, respectively,
with overlap between the suites. These runs passed the CLI socket
ownership tests and push-gateway fixture that failed during the earlier
parallel hook run. Both Tauri Clippy configurations and 3,560 Tauri test
executions also passed at this commit.
- `just ci` passed Rust formatting, workspace Clippy, and desktop,
Tauri, and web checks. It stopped at mobile formatting after the Linux
environment failed to resolve `pub.dev` for the Flutter dependencies.


## End-user test

The PR author’s agent ran the app and plugin end to end on Linux against
a local relay built at `0b8949f5e`. The final browser rerun passed all
15 steps plus the public default-channel case. The native desktop run
passed all seven steps it covered.

- A group saved by the owner appeared in a member’s open Settings
without a reload.
- Changing the write policy to owners and admins made the member’s
editor read-only. The relay refused a signed write by that member and
preserved the current record.
- The audit log identified the policy revision as the accepted
kind-`9034` event ID. The policy change back to everyone used that ID as
`prev`.
- A second relay with community artifacts disabled advertised no
community scope, and the app withheld shared group actions.

[End-user test
evidence](block/buzz-app#3838 (comment))

Supersedes #9646. The reviewed commit is now on an upstream branch.

---------

Signed-off-by: Krish Ray <kray@block.xyz>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex <codex@openai.com>
@LordMelkor
LordMelkor deleted the clod/nip-ar-community-scope branch November 19, 2026 02:10

This branch had an error being deployed

1 failed deployment
codex-review — 27a4c8a8 Deployed Nov 18, 2026 by LordMelkor via Run Codex Security Review #15930
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