team_assign_role
Assign roles (admin, reviewer, contributor, viewer) to team members on a shared brain instance, controlling access and actions. First call bootstraps governance; only admins can assign roles thereafter.
Instructions
Assign a role (admin | reviewer | contributor | viewer) to a team member on a shared brain instance. Roles control what each person can do: admin can manage roles and delete lessons; reviewer can senior-review (🛡️ badge, stronger recall boost); contributor can store lessons and peer-review (✔️ badge); viewer is read-only. First call bootstraps governance (no auth required when no admins exist yet). After that, only an admin can assign or change roles. Example: team_assign_role(handle="alice", role="reviewer", assigned_by="bob") — bob must be an admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role to assign. admin: manage roles + all actions. reviewer: senior-review (🛡️). contributor: store + peer-review. viewer: read-only. | |
| handle | Yes | Handle or name of the team member to assign a role to | |
| assigned_by | No | Handle of the admin performing the assignment (required after governance bootstrap) | |
| instance_id | Yes | UUID of the shared team brain instance |