Skip to content

let anyone who uses a connection change Chat's permissions on it, and say who sets the rest - #378

Open
hkonsti wants to merge 3 commits into
mainfrom
hkonsti/agent-permissions-planning
Open

hkonsti wants to merge 3 commits into
mainfrom
hkonsti/agent-permissions-planning

Conversation

@hkonsti

@hkonsti hkonsti commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Who may change what on a connection shared with you:

Setting Who changes it Who it affects
Default The person sharing the connection (and the organization's owner on one shared with everyone) Every agent without a setting of its own, the owner's included
Chat Anyone who uses the connection Everyone's Chat on it
Your own agents You, beyond Default if you like You alone
Shared agents someone else made Whoever made it, or the organization's owner Everyone who uses it

Api

  • requireGrantable (agents/route.ts): Chat's settings on a connection are now changed by anyone who uses it, rather than only by whoever manages it. A connection the person doesn't use stays not found, the organization's owner included.

Web

  • A member a connection is shared with used to see Default and Chat as columns of faded boxes, with no word of why. Now:
    • Default has a lock by its name, saying on hover "Only the person sharing this connection can update the default"
    • its boxes stay legible, read-only rather than faded, and say who sets them on hover; boxes the sign-in didn't cover stay faded
    • a note over the grid says who sets Default, and what the member sets themselves: Chat's column, for everyone's Chat on it, and their own agents', beyond Default if they like
  • A shared agent someone else made gets the same lock and hover on its column
  • Chat's page says anyone who uses a connection changes its settings there, for everyone's Chat on it
  • AccessGrid takes who sets each column (setBy, defaultsSetBy, null where the person may change it) in place of mayChange and mayChangeDefaults; managesAgentOn becomes managesAgentSettings, and ownerOf, left without callers, is removed

Testing

  • bun run typecheck, bun run lint, the web tests (551) and the api tests (1684), with new ones for read-only columns, the lock and hover text, Enable all leaving the defaults alone, and Chat's settings changed by a member a connection is shared with
  • Checked in the browser as a second member of the demo workspace, with a mailbox shared with everyone

Open workspace in Conductor

…d-only rather than faded

On a connection shared with them, a member saw Default and Chat as two
columns of greyed-out boxes with no word of why. Those columns now carry
a lock by their name, their boxes stay legible but read-only, and each
says on hover who sets it. A note over the grid names who sets Default
and Chat, and what the member can still change: their own agents'
columns, or else whom to ask. Chat's page marks each connection it is
set elsewhere on.
…t staying its owner's

Chat's settings on a connection hold for everyone's Chat there, as one
agent's do, so anyone who uses the connection may widen them, as they may
their own agents'. Default, which every agent follows, its owner's too,
stays whoever's the connection is to change. The connection page says so,
and Chat's page no longer marks connections as set elsewhere.

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