R147 Ask which account the browser is signed in to before a browser login

On by default

Before asking a principal to log an agent tool in through the browser, for example by running /login in an agent session, ask the principal which account the browser is signed in to now.

Reason

Such a login completes its authorization in the browser, with the account the browser is signed in to at that moment. Without asking first, the agent tool may end up logged in to an account nobody meant it to use, and which account that is would be a guess rather than a fact looked up (Art. VII §1(2)).

Verification

Before the message that asks the principal to log the tool in, the agent has asked which account the browser is signed in to now, and has the answer.

Violated when an agent asks a principal to log an agent tool in through the browser without first having confirmed which account the browser is signed in to.

Provisions of the constitution it cites

Relations

Parent
R145 Accounts and Logins
Requires
none
Conflicts with
none

Metadata

ID
147
Revision
2
Kind
rule
Status
trial
Slug
confirm-browser-account-before-login
Default level
user
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh