Skip to content

feat(account): an agent the person approves only reads unless they choose more - #44

Merged
zfoong merged 1 commit into
mainfrom
feat/account-page-read-only-default
Nov 29, 2026
Merged

zfoong merged 1 commit into
mainfrom
feat/account-page-read-only-default

Conversation

@ahmad-ajmal

Copy link
Copy Markdown
Collaborator

What

The account page every starter ships (toolkits/*/template/a2app-account.html) now defaults to read-only access for agents:

  • Approving an agent's sign-in (#approve/<code>): "Only let it read" is ticked by default. The label says to untick it to let the agent make changes too.
  • Giving an agent access yourself (Connected agents → Give an agent access): "Only read" is the first option and selected; "Do everything you can do" is still available.

Why

The CraftBot team wants other people's agents to be able to join shared multi-user apps with scoped access, and to be read-only unless the person chooses more. An agent that only reads cannot change anything by mistake. The ceiling is unchanged: an agent never does more than its person can.

The Marketplace's PocketBase kit gets the same behaviour on its own account page in CraftOS-dev/agent-app-collection#85.

Tested

  • node toolkits/blueprint-react-node/test/account-page.test.mjs: every starter ships the same page.
  • No other test or script refers to these controls.
  • The protocol, scopes and APIs are unchanged (the page still sends the narrowed scopes it always did when the box is ticked).
  • Not in CHANGELOG yet; that's left to whoever cuts the next release.

…oose more

The account page every starter ships now ticks "Only let it read" by
default when a person approves an agent's sign-in, and offers "Only read"
first when they give an agent access themselves. An agent that only reads
cannot change anything by mistake; the person unticks the box (or picks
"Do everything you can do") to let it make changes. The ceiling is
unchanged: an agent never does more than its person can.
@ahmad-ajmal
ahmad-ajmal requested a review from zfoong November 27, 2026 18:10
@zfoong
zfoong merged commit 6d3df4b into main Nov 29, 2026
3 checks passed
@CraftOS-dev
CraftOS-dev deleted the feat/account-page-read-only-default branch December 2, 2026 11:16
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.

2 participants