Security, Vault, Rules & Audit Log
Security Architecture at a Glance
Mycelis Roleplay strictly separates reasoning (the LLM) from enforcement (deterministic runtime code):
- Invariant I3 (Intersection): Effective permissions are always
Fleet ∩ Role ∩ Task. Lower layers can narrow permissions, never widen them. - SEC-1 (Data vs. Instructions): Untrusted external inputs — email bodies, webhook payloads, web pages, file contents, device memory, and learned skills — are wrapped in explicit data-only blocks and can never override policies, budgets, or goals.
- Gateway Bottleneck: The brain reaches the machine exclusively through the MCP Gateway. Before any tool executes, Policy validates both the canonical action (
capability.invoke,file.write,file.delete,package.install,process.elevate,network.egress, etc.) and its scope.
Shell commands (
shell_run,shell_session_exec,process_start) are parsed before execution: deletions (rm,rmdir,find -delete,git clean), redirects, package managers (brew,apt,winget,pip,npm -g,curl | sh), andsudoautomatically trigger their matching policy actions and approval gates.
The Vault (/dashboard/roleplay/vault)
Credentials for external tools, APIs, mail servers, or web portals never belong in prompts, Role Blueprints, or skill files. Manage them centrally in the Cockpit under Roleplay → Vault.
How Placeholders Work
- Store a secret in the Vault — for instance
mail(username,password) orbrave(apiKey). - Optionally scope the secret to specific jobs or individual devices.
- In tasks, roles, or workflows, the agent references only the placeholder:
{{secret:mail.password}}
{{secret:hook-github.url}}
- At execution time, the Gateway resolves the placeholder in memory right before calling the tool.
- Automatic Redaction: Whenever a secret value appears in tool output, logs, or the ledger, it is scrubbed automatically. On screen, accessibility-marked password fields (
redactSecretFields: true) are blacked out before screenshots leave the device.
Standalone Mode (Without Hub)
When running standalone, credentials are stored in the native OS secret store (DPAPI on Windows, Keychain on macOS, Keyring or 0600 file on Linux) via the Desktop App (/local → Vault) or CLI:
mycelis-roleplay secret set mail username=bot@example.org password=secret
mycelis-roleplay brain-key set ANTHROPIC_API_KEY
Workspace Rules (/dashboard/roleplay/rules)
Under Roleplay → Rules, workspace administrators configure fleet-wide guardrails:
| Rule Area | Effect |
|---|---|
| Global gates & forbidden actions | Hard-ban actions (forbidden) or require human confirmation (approval: required) across all jobs. forbidden always evaluates before gates and cannot be bypassed. |
| Autonomy ceiling | Controls whether jobs are allowed to run in Stegreif mode or whether the workspace enforces Souffleur. |
| Self-provisioning & catalog | Restricts allowed sources (connected mode favors the curated Mycelis MCP Catalog with publisher allowlists over the open registry). |
| Delegation & spawn quotas | Caps maxDepth, concurrent child actors, permitted role pairs for agent_ask, and capability lending. |
Mycelis Cloud (cloud) |
Controls cloud.enabled, cloud.allowAgents (whether employees may trigger cloud provisioning), and default server sizes per OS. |
Roles & Permissions (RBAC)
Roleplay defines dedicated workspace permissions — kept separate from ViewAgents/ManageAgents (which govern Brain models). Configure them per team role in Workspace Settings:
Group: Roleplay
| Permission | Scope |
|---|---|
ViewDevices |
View devices, tasks, employees, and Company Memory |
ManageDevices |
Enroll, rename, unenroll devices, and trigger emergency stop |
ManageEmployees |
Hire, edit, move, and dismiss digital employees |
CreateMissions |
Create new tasks and cancel existing ones |
SteerMissions |
Intervene: pause, resume, cancel action, step mode, approve gates |
ViewDeviceScreen |
Watch Live View and fleet thumbnails |
ControlDevice |
Take over remote mouse and keyboard control |
ManageRules |
Manage jobs, vault secrets, workspace skills, workflows, and rules |
CreateInstances |
Provision and tear down Foundry or Cloud instances |
Groups: Server & Storage
| Permission | Scope |
|---|---|
ViewServers / OperateServers / ManageServers |
View cloud servers · pause/resume/auto-pause · rent, delete, and configure limits |
ViewStorage / ManageStorage / ExportStorage |
View cloud storage · rent, attach, detach, delete · download ZIP exports (never granted automatically) |
Immutable Audit Log (/dashboard/roleplay/ledger)
Every action across every employee is appended chronologically to the Audit log (Ledger):
- Task starts, planner stage choices (
step.stage.chosen), gate decisions, and human approvals with user ID - Tool invocations (with secrets redacted) and machine verification outcomes
- Live View and Takeover sessions (who, when, duration)
- Trigger, readiness, and outage alert events (
duty.notice.alert)
Filter by device, task, actor, or event kind to audit any execution end-to-end.
Next steps
- Blueprint Reference — all policy action identifiers and validation rules
- Cloud Servers, Storage, Foundry & Self-Hosting — network isolation, firewalls, and encrypted Hub deployment
- CLI Reference — managing local secrets and OS permissions from the terminal
