Repository navigation
Conversation
The relay names each refusal of a task save with a NIP-AR reason code and the keys involved (block/buzz#9602). Each code now reads as a plain sentence that names the people the app knows; an unknown code, or text with no code, gets one plain line, never the relay's words or a key. A creator-changed refusal names the creator the relay keeps, so the save is sent again once with it, without asking. Someone assigned who can no longer see where a task lives is named on the task, and whoever can edit can unassign them. As the relay rules, an edit is checked only for the people it adds, so they don't block it. Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
…ccess guess
- Name the task's place when known ("Riley can't see #mobile"), with
"where this task lives" as the fallback; "One of the people assigned"
when names aren't known; "This change isn't allowed" for anything else.
- An agent's tool result carries the relay's own text after the plain
line, and every invalid refusal is logged with it.
- Drop the lost-access line and its Unassign button: the app can't always
read the member lists it would need, so it could flag people who can
still see the task. It returns with the relay's "who can read" answer.
Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
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
When the relay turns down a task save, people now see why in plain words. Stacked on #3561.
block/buzz#9602 gives each refusal of a task save a fixed reason code and the people involved. This PR reads those codes:
The relay's own text
People get only the plain line. The relay's text is still kept in two places:
Edits check only the people they add
Like the relay, an agent's edit is now checked only for the people it adds. Someone assigned who has since lost access no longer blocks an unrelated edit. A move still checks everyone, and the move preview still names who will be unassigned.
There is no "lost access" line on the task. The app can't always read the member lists it would need, so it could wrongly say someone lost access. That line comes back once the relay can answer "who can read this" directly.
Stack and order
Testing
Screenshots
The refusal appears as the usual error toast on the task.
Someone assigned can't see the place, wide, light:

Narrow, dark:

Any other refusal, wide, dark:

Narrow, light:

🤖 Generated with Claude Code