Sign-in and roles
This page lists the identity controls Mushi Mushi enforces on the server, and what each one means for your team. The decision record is ADR 0093.
Two-step sign-in
Anyone can add an authenticator app (1Password, Google Authenticator, Authy and others) in Settings → General → For every app → Two-step sign-in. After that, signing in asks for the 6-digit code.
An owner or admin can turn on Team → Setup → Sign-in rules → Require two-step sign-in. From then on:
- The API refuses every console request from a session that has not passed the second step. The answer is
403with codeMFA_REQUIRED. - The console shows one dialog: enter the code, or set up the app first. Nothing else in the console works until then.
- This holds for single sign-on users too. Mushi Mushi cannot see whether your identity provider asked for a second factor.
To change the rule you must be an owner or admin and signed in with two steps yourself. The card shows how many members have not set it up yet, so you can warn them first.
API keys are not sessions, so the rule does not apply to them. Only owners and admins can create keys, and in a team that requires two-step sign-in they must be signed in with two steps to do it.
Single sign-on on verified domains
A SAML provider routes sign-in only for email domains your team has proved it owns. See Single sign-on for the steps. In short:
- Add the domain. Mushi Mushi shows a TXT record: name
_mushi-verification.<your domain>, valuemushi-domain-verification=<token>. - Add the record to your DNS and press Check.
- Only then is the domain sent to the sign-in service. People sign in from Sign in with SSO on the sign-in page.
A domain can be verified by one team only. Mushi Mushi checks every verified record again each day. If it is missing three days in a row, the domain stops routing sign-in until you check it again.
Mushi Mushi does not offer SCIM provisioning. Invite and remove people from Team. Removing someone in your identity provider does not remove them from Mushi Mushi.
Who can change setup
| Change | Owner | Admin | Member | Viewer |
|---|---|---|---|---|
| Project settings | yes | yes | no | no |
| Prompt Lab (add, edit, activate, delete) | yes | yes | no | no |
| API keys (create, rotate, revoke) | yes | yes | no | no |
| Integrations, GitHub connect, Telegram | yes | yes | no | no |
| Single sign-on and its domains | yes | yes | no | no |
| Team sign-in rules | yes | yes | no | no |
| Read all of the above | yes | yes | yes | yes |
A refused change answers 403 with code ROLE_REQUIRED and a sentence naming what was refused.
Slack buttons act as a person
A button in Slack (Dispatch fix, Resolve, Dismiss, Approve, Decline and the others) runs only for a Slack user linked to a Mushi member, and runs as that member:
- Linking starts in Slack: an unlinked click answers, only to that person, with a one-time link that works once for 15 minutes. The member opens it while signed in to the console, sees which Slack user and workspace it names, and confirms. Mushi stores only a hash of the link.
- A click is refused, and nothing runs, when the Slack user is not linked, the clicked workspace is not the one the app is connected to, the member is not on the app, or the member is a viewer.
- Approve and Decline on a “Waiting for your OK” card record the member as the approver. Approving runs every merge check again, as that member.
- Every action writes an audit row with the member’s account. Each person sees and removes their links in Settings → General → For every app → Slack buttons.
How agent commits are labelled
Commits made by a local agent (mushi work) carry their own identity:
- Author:
Mushi local agent (<agent>) <local-agent@mushi-mushi.invalid>. The person who runs the worker stays the committer, so their signing key still signs and they stay accountable. - Trailers:
Mushi-Report: <report id>,Mushi-Agent: <agent>, and from the workerMushi-Host: <hashed machine id>andMushi-Lane: <lane id>. The host name never leaves your machine.
If your repository’s CLA check or author rules refuse an unknown address, set MUSHI_AGENT_AUTHOR=operator on the worker. You stay the author; the trailers stay.
Cloud fix agents commit as their vendor’s bot (for example the Cursor or GitHub App bot) and put Mushi report: <id> in the pull request.