Repository navigation
Conversation
… ask again
A signed POST /query with {"access":"channels","ids":[...]} answers, per
readable channel, whether the signer may post, whether they joined, and
the role they act with. Without ids it answers for every channel the
signer can reach. A relay-signed ephemeral kind:20004 tells live
subscribers to ask again after a change to who may read or post.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: fix(relay): hold task conversations to comments and cover the review gaps feat(auth): tolerate client clocks up to 120 s off (#9485) docs: name the required stop as a relay build, not a release (#9577) buzz-db: drop the created_at floor, community write-fence and migration-only NIP-RS triggers (contract) (#8326) Keep community deletion working across a new tenant table's migration (#9304) docs: design Android push notifications (#9555) feat(push-gateway): accept deliveries on a platform-neutral route (#9557) fix(mobile): read a Solo chat through its newest message on open (#9515) fix(mobile): keep the Solo header's agent portrait while its roster reloads (#9512) perf(mobile): pulse the Solo working dots at 12 fps on a shared clock (#9554) test(mobile): match the resumeSince override in the search journey (#9546) mobile: show account communities in the switcher and sync saved destinations (#9262) perf(mobile): stop replaying stored read state on every resume (#9090) perf(mobile): save the open-channel directory and catch it up (#9513) fix(mobile): sign out from Settings in every build, keeping keys on the device (#9421) fix(mobile): wrap inline Markdown links with their sentence (#9462) feat(mobile): message the Bestie from Siri and Shortcuts (#9517) fix(mobile): slide a closing chat away instead of cutting to the list (#9511) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: Refuse opening a private channel that has other members (#9307) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
The list form now pages with `after`, `limit` (1 to 100) and `next` instead of refusing past 500 channels. Every entry carries `archived`. `post` now applies the community ban and timeout check ingest uses, and a timed-out viewer's entries carry `timed_out_until`. Timeout and untimeout push a relay-signed, #p-gated kind:20005 to the person and their agents. Channel lookups overlap four at a time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: feat(deletion): clean up media for users and owned agents (#9365) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: update feedback community invite link (#9588) fix(mobile): name the failing step in sign-in errors (#9263) fix(mobile): order same-second messages by millisecond offsets (#9541) fix(acp): saturate observer frame size estimates (#9494) feat(mobile): accept mentions with Tab and send with Enter on hardware keyboards (#8733) Fix remote Huddle ending cleanup (#9376) fix(mobile): host Duo long-press menus in native sheets (#9536) fix(mobile): keep the relay session across auth reloads (#9543) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> # Conflicts: # crates/buzz-relay/src/audio/handler.rs
Every route that sets or lifts a ban or timeout (the moderation commands, the admin API, and resolved reports) already had to drop the cached restriction rows. That drop is now AppState::restrictions_changed, which also sends the per-person kind:20005 push to the person and the agents they own. The per-route sends are gone, so a timeout set from the dashboard or by resolving a report now pushes, and a future route that clears the cache cannot skip it. A timeout that runs out sends nothing; the answer's timed_out_until is when the client asks again. A banned person's answer has post:false and no timed_out_until. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
A banned signer, or an agent whose owner is banned, is refused with 403 and the reason before any per-channel answer. Document that, and assert it beside the ban push. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: [buzz] Classify HTTP event request metrics by event type (#9561) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: feat(relay): grow DMs in place, identified by their people (#9125) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
* morganm/task-conversations: buzz-db: check membership, agent-owner and channel references in app code (#9404) buzz-db: enforce five single-table guards in app writers (phase 1) (#8320) docs(mobile): add REVIEWING.md with mobile review principles (#9298) Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This was referenced Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Stacked on #9569. A client can ask what its signer may do in named channels, and gets told when to ask again. Task conversations, channels read through a project and open channels the signer hasn't joined all get the same answer. The tasks app uses it to show either a composer or a read-only view without joining anything.
POST /querywith exactly[{"access":"channels","ids":[...]}], naming 1 to 100 distinct lowercase channel IDs. The NIP-98 proof must carry apayloadtag.ids,[{"access":"channels"}]lists the channels the signer can reach, ordered by ID. That covers joined channels, listed open channels, and what their parents' grants reach below them. A picker can show only the places the signer may post. Conversations and unlisted channels stay out.limit(1 to 100, default 100) andafter, and returns{"channels":[...],"next":<id or null>}. To read the next page, sendnextasafter. Walking every page lists each channel once.{"id","read":true,"post","joined","role","archived"}.postmeans a message would be accepted now. It is false for a guest role, an archived channel, a conversation whose home is archived, and a community timeout. Timeouts use the same check a post meets, including an agent restricted through its owner. A banned person, or an agent whose owner is banned, is refused with 403 and the reason, as every request from them is.timed_out_until, so the client asks again when the timeout ends.archivedsays whether the channel itself is archived, so a picker can leave it out without looking it up.roleis the viewer's own row, else an open channel'sjoin_role, else what the parents give (capped at member).["h", <channel>].join_role, archive,parentorparent_accesschanges; channel deletion; the TTL reaper; huddle auto-archive and auto-join; and a task's move, delete or restore.["p", <pubkey>]. It is sent whenever a person's community restriction changes (a timeout or ban starts or is lifted, or an agent's owner is recorded), to that person and each agent they own. Every route reaches it through one relay step,AppState::restrictions_changed, which also drops the cached restriction rows: the moderation commands, the admin API, and resolved reports. A future route that clears the cache can't skip the push. The kind is#p-gated in both REQ and fan-out, so nobody else learns of the timeout. A timeout that runs out sends nothing;timed_out_untilcovers it.buzz-channel-access. NOSTR.md has a new "Channel access" section and kind:20004 and kind:20005 rows.closed_by_archive, so ingest and the answer share it.Testing
channel_access_postgres_tests.rs). They go through the real/queryroute with payload-bound NIP-98, real ingest, and real Redis with multi-node fan-out:join_role, and a missing ID. Each answer is checked against what a post actually gets. Archiving closes posting for the channel and its conversation. A proof without a payload tag is refused. A forged 20004 is refused over both HTTP and WebSocket.post:true, and every subscription stays open. Other readers are told too. Removing the guest closes their subscriptions, notifies the remaining readers, and leaves the guest out of the answer.parent_access: nonestay out. An outsider gets only the open channel.post:falseandtimed_out_untileverywhere, and a post is refused. Each is pushed kind:20005 when the timeout starts and when it's lifted. A bystander's subscription to the kind, even without#p, gets nothing. After lifting, posting is back. A 3-second timeout lifts on its own, the answer follows, and no push fires at expiry. A ban is pushed to the person and their agent, and both are then refused with "you are banned", and can't post.join_rolepost, or droppingtimed_out_untilrestrictions_changed, or skipping the owner's agents#pgateafterinclusivearchivedbuzz-relayandbuzz-dbpassed, 1455/1455.-D warnings. The pre-push unit lanes pass atbedc2768c, after merging main through the stack (migrations renumbered to 0093–0095). CI runs the full Postgres lane on the final head.Known limits
🤖 Generated with Claude Code