Skip to content

feat(tasks): ask the relay who can see a place, not member lists - #3706

Draft
morgmart wants to merge 1 commit into
morganm/tasks-refusalsfrom
morganm/tasks-readers
Draft

morgmart wants to merge 1 commit into
morganm/tasks-refusalsfrom
morganm/tasks-readers

Conversation

@morgmart

Copy link
Copy Markdown
Contributor

What this does

Tasks now ask the relay who can see a place, instead of working it out from member lists. Stacked on #3705. Needs block/buzz#9603, which adds the relay's answer.

The member lists the viewer can read aren't the whole story. Someone can see a channel through a project the viewer isn't in, and its member list is hidden from the viewer. The app used to read a missing list as "can't see", which could wrongly unassign people on a move. Now the relay decides, in four places:

  • Assignee picker: offers only people the relay says can see the task's place.
  • Move preview: names, and unassigns, only people the relay says can't see the destination.
  • Lost-access note: back on the task, fed by the relay's answer: "Riley can't see this task anymore." Someone who can edit gets "Unassign Riley", or "Unassign all" when several are named. View-only readers see the note with no button.
  • Agent tools: an agent adding someone, or previewing a move, goes by the same answer.

No wording says or hints at why someone can't see a place.

When the relay can't answer

An older relay, a refusal or a failure all mean the app doesn't know. It then:

How it asks

  • It asks as the owner, the person who signs the save, the same way the app already asks what the viewer may do in a channel.
  • The relay takes up to 100 people per question. Longer lists go in batches of 100, and a failure in any batch makes the whole answer unknown. Nobody is silently dropped.
  • Member lists now only supply names for the picker to ask about. They no longer decide access anywhere.

Known limits

  • The picker can only offer people it can list: the members of the task's place and of the places it's filed under, where the viewer can read those lists. Someone who sees the task only through a project whose member list the viewer can't read won't appear. The picker's search filters that list; it doesn't search the whole community. An agent can still assign such a person by key, and the relay judges it.
  • The answer is read when a task or the move dialog opens. It isn't refreshed live when access changes; reopening reads it again.

Testing

  • The relay question's tests cover the advertised capability, the request shape and limits, and an exact one-entry-per-person answer. They also check that a refusal or failure is an error and never a list of "no"s, and that batches of 100 are joined.
  • Tool tests: agents follow the relay's answer, not the member lists. That includes someone not on a channel's list who reads it through its project, who is kept on a move. When the relay can't say, nobody is refused or unassigned.
  • TaskView tests: one person lost access and only they are unassigned; several get "Unassign all"; a view-only reader gets no button; the picker leaves out whoever the relay says can't see the task; the move dialog unassigns only those the relay names. When the relay can't say, there's no note and the picker offers everyone.
  • Mutation checks: removing the picker's filter, or unassigning people on a move when the answer is unknown, each makes a test fail.

Screenshots

Lost access, one person, wide, light:
Lost access, wide, light

Several people, "Unassign all", narrow, dark:
Lost access, several, narrow, dark

View-only reader, no button:
Lost access, view-only, light

Move preview naming only the person the relay says can't see the destination, dark:
Move preview, dark

Picker leaving out someone on the member list whom the relay says can't see the task, light:
Picker, light

🤖 Generated with Claude Code

The relay's `buzz-channel-readers` answer (block/buzz#9603) now decides
who can see a task's place, in the assignee picker, the move preview, the
lost-access note on a task and the agent tools. Member lists only supply
names for the picker to ask about.

When there is no answer (an older relay, a refusal or a failure), the app
doesn't know: it flags and unassigns nobody, the picker offers everyone it
can list, and the relay's own check refuses a bad save by name.

- The lost-access note returns: "Riley can't see this task anymore.", with
  "Unassign Riley" or "Unassign all" for someone who can edit.
- The question is asked as the owner, who signs the save, in pages of 100;
  any page that fails makes the whole answer unknown.

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

No deployments
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