Skip to content

feat(tasks): Tasks with one home per task, projects, and comments - #3561

Draft
morgmart wants to merge 18 commits into
morganm/conversation-accessfrom
morganm/tasks
Draft

morgmart wants to merge 18 commits into
morganm/conversation-accessfrom
morganm/tasks

Conversation

@morgmart

@morgmart morgmart commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this does

Adds Tasks as a bundled plugin (slice 2).

  • One home per task. Every task lives in exactly one place: a project, a channel, or a chat. Who can read and edit it always comes from that home. There is no separate tasks channel and no share request.
  • Projects. The list groups tasks by project, with a "Not in a project" group. You can filter by project, status, and whose tasks they are.
  • Four statuses (open, in progress, done, won't do) and up to four assignees.
  • Comments. Each task's comments live in a hidden conversation of their own (a NIP-AR artifact conversation), opened by name through session.channels.reach from feat(relay): open a conversation the relay lets you see #3604.
  • Agent tools: find, create, update, move, and comment on tasks.
  • Agents' channel list leaves out task conversations.

Rules

  • Edit rights come from the relay. Every edit control follows the relay's answer for the task's home ("can post"). That covers status, assignees, Edit, Move, link and unlink, the "Read-only access" notice, and the places offered for create and move. Joining doesn't matter: someone with access who hasn't joined can still edit, while view-only people see no edit controls.
  • Checked fields live in tags. Status, assignees, creator, and via are tags the relay can check and filter on. The content holds only the description and images.
  • Creator. The creator is whoever signed the first version. Agent-created tasks are signed by the owner, so the creator is the owner, with a "via" label naming the agent.
  • Assignees. Only people who can see the task can be assigned. One "who can see this place" walk decides it, for the picker, the agent check and the move preview: the roster of the home and its parents, stopping at a channel whose project access is none. A relay refusal shows its reason. Unknown profiles and agents are refused.
  • Where a task can live. One rule, shared by the screens and the agent tools: a project, channel or chat that isn't archived, never a DM or a huddle.
  • Moves. A move names the places that gain and lose access. If an assignee can't see the new place, it says so ("Riley can't see #random and will be unassigned"), and confirming saves without them. Agents get the same as a preview, then a single-use confirmation.
  • Place names. Projects show as "Buzz", channels as "#random", and chats by their name.
  • Narrow widths. Edit and Move move into a "More" menu.

Agents

  • Agents read tasks and post comments as themselves. Every read in an agent tool is the agent's, including a save's conflict retry; if the task is gone or has moved, nothing is saved.
  • Saves are signed by the owner, and only where the agent can read. For a move, that means both the current home and the destination.
  • Closing a task with evidence posts the comment first. If the comment fails, the task stays open. If the close fails, the comment stays and the agent is told.
  • Relay refusals are shown plainly and never retried as another identity.
  • Find filters on the relay (#status, #assignee, unassigned, within) and says when results may be incomplete. The duplicate check on create covers the whole project.

Stack

Known limits

  • The create and move pickers can't yet list channels you reach only through a project. Each place you pick is checked with the relay; the full list arrives with the channel-access list form.
  • The browser build falls back to the channel list for edit rights and is read-only for comments.
  • Moving a task into a place you see through a project you aren't in can wrongly say some assignees can't see it, and unassign them, because the app can't read that project's member list. No one can reach this until projects can be created (slice 3). The follow-up after the relay's "who can read" query closes it, and it must land before projects ship.
  • Mentions aren't supported in task comments yet.
  • The screenshots can't show a filled comment thread, because that needs a full session.

Testing

  • Unit tests cover the task model (tags are trusted, content isn't), store, places, routes, links, TaskView (view-only, loading, edit without joining, place names, allowed and refused create), TaskComments, the agent comment helper, and the tools.
  • Tool tests include: an agent that can't read a private channel its owner is in can't find, edit, move, or create tasks there; evidence before close; a failed comment leaves the task open; plain owner refusals; assignee checks; and move preview and confirm, including dropping an assignee.

Screenshots

Task, wide:
Task view, wide, light
Task view, wide, dark

Task, intermediate width:
Task view, intermediate width, light

Task, narrow, with the More menu:
Task view, narrow, light
Task view, narrow, dark
More menu with Edit and Move, narrow, light

Read-only access:
Read-only task view, light
Read-only task view, dark

New task opened from a DM: the place starts empty and Create waits for one:
New task from a DM, wide, light
New task from a DM, narrow, dark

Comments couldn't load:
Comments failed with Try again, dark

Tasks page:
Tasks page, wide, light
Tasks page, wide, dark
Tasks page, narrow, dark

Side panel:
Tasks side panel, light
Tasks side panel, dark

Move, naming the assignee who loses access:
Move dialog, light

Assignees (compact trigger):
Assignee picker, dark

🤖 Generated with Claude Code

@morgmart
morgmart force-pushed the morganm/tasks branch 2 times, most recently from a6562f2 to 65e234b Compare November 16, 2026 07:46
@morgmart
morgmart changed the base branch from main to morganm/conversation-access November 16, 2026 07:46
@morgmart morgmart changed the title feat(tasks): add Tasks v0 as a bundled plugin feat(tasks): Tasks with one home per task, projects, and comments Nov 16, 2026
@morgmart
morgmart force-pushed the morganm/tasks branch 2 times, most recently from 6997c92 to 45e48e5 Compare November 16, 2026 23:05
morgmart and others added 18 commits November 16, 2026 15:20
Add `Combobox.Trigger variant="compact"`, matching Select's compact variant:
an outlined capsule whose label is announced rather than shown, for rows of
compact controls such as a task's status and assignees.

Give every Combobox menu the compact Select's minimum width, so a narrow
trigger such as an avatar stack no longer squeezes names mid-word.

Co-authored-by: Vogue <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
An avatar stack inside the compact trigger sat on the text baseline, which
grew the line box and made the trigger 37px beside a 32px compact Select.
Align artwork in a compact value to the line box, and tuck identity artwork
toward the leading edge as small identity buttons do. The viewer specimen now
uses a real avatar stack.

Co-authored-by: Vogue <86a9516b8bdd0bbb22ab9340ed157fccdf422ae31bbb2fe2d59aba37c886f5d3@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
Plugins can call `ctx.reflect.get("chatSharing").requestShare(session,
channelId)` to ask the viewer to make one of their own Solo chats View
only. The app shows its existing "Share this chat?" confirmation with the
same disclosure, and only the chat's owner can confirm. An agent tool
that calls it raises the same dialog in the owner's app and cannot skip
it. Requests end when the calling plugin stops.

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>
Tasks hold the context for a piece of work and link the conversations
about it. Each task is a NIP-AR artifact in one open system channel an
admin sets up; saves are compare-and-set on the revision the editor
opened, so a concurrent edit is reported, never overwritten.

- Tasks page: filter by status and mine, master/detail that collapses to
  one pane with Back at narrow widths.
- Conversation panel: tasks linked here, new task from this chat, link
  to an existing task.
- Agent tools: tasks_create, tasks_read, tasks_update, tasks_link.
- Linking a private Solo chat goes through the app's chatSharing
  confirmation; other conversations link without changing access.

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>
- chatSharing names the chat, honors a caller's abort signal, and keeps
  working after a StrictMode remount.
- Tasks asks for consent only when a save adds a link; agent tools check
  their input and the task first, and pass cancellation through.
- A new task keeps one id across retries, so an unseen create is found
  rather than duplicated; a conflict always carries the newer version.
- Saved-on-this-device overlays are per task and yield once the relay
  has that revision or a newer one.
- Unsaved edits survive opening another task; narrow layout queries the
  page, not the grid itself; the channel lookup is cached per session.
- Document chatSharing in docs/plugin-architecture.md.

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>
No admin setup: the Tasks page, panel or an agent tool creates the
community's tasks channel on first use. Every client uses the oldest open
labeled system channel, whoever made it, so racing first uses converge
before any task is saved.

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>
- The share confirmation names the asking plugin, its reason (the agent and
  task), and a chat without a name by a short id.
- Once the viewer chooses Share, the caller can no longer withdraw the
  request, so its outcome always matches the chat's access.
- Agent tools wait on the owner's confirmation with no deadline of their own.
- Looking at Tasks never makes the tasks channel; the first saved task does.
  Concurrent opens on one connection share a single creation.
- An unclear tasks_create names the task id to check before retrying.
- Tool descriptions say tasks are readable by the whole community.

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>
The desktop catalog comes from the plugin manager's bundled manifests, so
Tasks was missing there. It stays off by default.

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>
A task now lives in a project, channel or chat, and that place decides
who sees and edits it. The community-wide hidden tasks channel and the
Solo chat share request are gone: links live with the conversation they
point to and never change access.

- Four statuses and up to four people assigned; starting a task assigns you.
- The Tasks page groups and filters by project; a task opens beside the list.
- Moving a task names the places whose people gain or lose access.
- Task links in messages show the task's live title and status.
- Agents get find, create, update and comment. Create checks for an open
  match first; Done or Cancelled needs evidence.

Comments wait on a host piece that can open the task's hidden conversation.

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>
The relay already hides artifact conversations from reads that don't
name them; the agents' channel list now leaves them out itself too.

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>
Each task's comments live in a hidden NIP-AR conversation whose id comes
from the task. The task view holds it open with channels.reach: a
neutral wait, then the comments with a composer or read-only, and a
retry when the relay couldn't be asked. Someone who can post in the
task's home starts the conversation with "Add a comment".

The session opens a conversation through a narrow writer that signs only
the exact kind:9007 opening (buzz-artifact-conversations). The agents'
tasks_comment tool and closing evidence now post there and wait for the
relay to accept.

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>
… own reads

Edit controls, linking, the read-only notice and the place lists all follow
the relay's answer for the task's place, not channel membership. Status,
assignees, creator and via live in tags the relay can check and filter on.
Only people who can see a task can be assigned, and a move names anyone who
would lose access before it unassigns them.

Agent tools read as the agent and comment as the agent; saves stay signed by
the owner and need the agent to read both ends of a move. Closing a task
posts its evidence first and stays open when that fails. Moves preview and
then confirm. Find filters on the relay and says when results may be
incomplete.

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>
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>
A save reads back through the reader its caller gives it, so an agent's
conflict retry reads as the agent and stops when the task is gone or has
moved. Who can see a place now honors parent_access, for the assignee
picker, the agent's assignee check and the move preview alike, and a
relay refusal shows its reason. One rule says where a task can live: a
project, channel or chat, never a DM or a huddle. A failed home check
shows a retry instead of an empty comment thread.

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>
The store now refuses to create or move a task into a place that can't
hold one, so no screen or tool can skip the rule. The editor applies the
same rule to its starting place: from a DM or a huddle, "Where it lives"
starts empty and Save waits for a choice. The Tasks button is hidden in
DMs and huddles, where its panel could only be empty.

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