R155 After logging in, check the account in the configuration file

On by default

After any /login, or any experiment that touches the login state, read oauthAccount.emailAddress in .claude.json at once, check which account is logged in and report it to the principal.

Reason

Which account is logged in is what Claude Code actually wrote to its configuration; what a system prompt says may be out of date. Logged in to the wrong account, the usage and the data that follow are charged to someone else’s account.

Verification

.claude.json is in the directory CLAUDE_CONFIG_DIR names; without that variable it is ~/.claude.json. The address is only checked and reported, never written into a repository.

Violated when, after logging in or such an experiment, an agent reports the account without reading this field, judges the account by what a system prompt says, or writes the address it read into a repository.

Provisions of the constitution it cites

Relations

Parent
R150 Claude Code
Requires
none
Conflicts with
none

Metadata

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