Brain Identity & Principal
- [
Principal] — who is asking (user_id+agent_id+ scopes + tier). - [
Tier] — ordered authorization level:Read < Write < Execute < Destructive < External. - [
IdentityStore] — async trait that resolves principals and authorizes actions. Receives an [AuthorizationRequest] (not a verb string) so path-scope checks can readmodifiers["path"]/modifiers["cwd"]without depending on the higher-levelIntentTokentype. - [
ModifierConstraint] — per-principal, per-(verb, modifier)allowlist; the general form of the built-inpath_allowlistand the enforcement substrate for capability-scoped Skill Packs. - [
ConfigIdentityStore] — default in-memory implementation backed by theidentity:section of~/.brain/config.yaml.