R155 After logging in, check the account in the configuration file
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.