Foundational Mental Model: Agents as Engineers
In Genesis:- Agents (Eve, Adam, etc.) are first-class in RBAC. Each agent has an identity (agent ID) and can be assigned roles, just like human users.
- Users are people who log in (e.g. via Azure AD, OAuth). They also have roles.
- Tools are the capabilities agents use when you chat with them (e.g. querying a database, running Git operations, managing access). Which tools an agent can use can be restricted by role.
- Secrets store sensitive values (passwords, API keys). Access is determined by ownership, admin status, or role-based policies. You manage them in Config → Secrets (if you have access).
- Connections are named configurations for external systems (GitHub, Snowflake, Postgres, etc.). You create and edit them in Config → Connections. Credentials in connections are stored as secrets; who can use a connection depends on who has access to those secrets (and agent-created database connections use an explicit allowed-agent list). Supported in-chat connection forms submit credentials through the connection flow rather than sending them to the agent; see Connections — in-chat connection form.
security.tool_auth_mode to intersection — see Capability authorization modes. When an agent uses a connection’s credentials, that is checked against the agent’s identity and roles, and against yours as well when the connection requires a double key.
For object-scoped agent tools, tool access does not grant access to every object the agent can reach. When sign-in is enabled, Genesis also checks the signed-in person in the turn against the target object—for example, a Mission or todo, flow, repository, Blueprint, dashboard, or file source. A turn with no person is left to the agent’s own tool grant; an unidentified sender cannot use these object-checked tools. Turning sign-in off disables these person-specific checks. Private-thread plan cards, live notifications and hosted MCP resource listings also require current thread-read access; see the Genesis API reference.
For public branding reads and the permissions required to change branding, see
Branding endpoints.
Mission upload access
An upload normally remains visible only to its recorded uploader. When that person attaches their own_orphaned/ upload to a Mission they may open, Genesis tags it with that Mission;
from then on, anyone who may open the Mission can read the attached upload. Other
_orphaned/ uploads and new-chat uploads remain uploader-only. The attach does not widen
access for an upload attached by someone else or to a Mission the caller cannot open.
Deployment-level staff access gates are separate from RBAC roles and permissions; configure them in Advanced Settings — Genesis Staff resolution.
Hosted identity links
Hosted authentication separates assertion verification from application authorization. A valid signed assertion identifies a subject, but hosted access is admitted only when that subject has an active explicit identity link for the configured tenant and installation. A subject from another tenant or installation, or a subject whose link was revoked, cannot use the assertion to bypass Genesis authorization. The hosted identity lifecycle has three API operations:POST /api/hosted-identities/initial-admincreates the sole initial admin and requires thehosted.identity.bootstrapmanagement capability.POST /api/hosted-identities/invitationscreates an ordinary hosted user and requires the caller’smanage_userspermission.POST /api/hosted-identities/{binding_id}/revokerevokes one exact link; ordinary callers needmanage_users, while emergency management callers needhosted.identity.emergency_revoke.
admin, and an invitation receives user.
Hosted users are excluded from startup’s default-role backfill, so roles remain
owned by the identity-link lifecycle rather than by a separate startup grant.
Revocation therefore removes the active hosted access path without leaving an
unowned role behind. See the hosted identity lifecycle
API for request
fields and response states.
Establishing or recovering an administrator
Genesis has no shared admin key: once an install has an administrator, a signed-in user cannot make themselves one. Administrators come from one of these paths.-
Default roles for new users. A brand-new user receives the roles in
rbac.default_roles, or the list saved under Default Roles for New Users. The shipped default isadminanduser, so on an unconfigured install the first person to sign in is an administrator. Administrators are asked what new users should get until one saves a list, except on hosted Try Me where the default-role choice is closed (see choosing what new users get). If the saved list cannot be read when a user is created, that user receives no roles rather than the shipped default. -
The first person to sign in, when the default roles leave
adminout: while no person holdsadmin, the first person to sign in becomes the administrator, unless a group-to-role mapping grantsadmin(see the first administrator). -
An existing administrator grants the
adminrole in Config → Users. -
Hosted installs create their first administrator with
POST /api/hosted-identities/initial-admin, described above. -
Operator recovery, when no administrator can sign in. This needs access to
the deployment’s infrastructure, not to Genesis:
- Self-hosted (Kubernetes, Docker, Railway): the person signs in once, then an
operator runs
python -m genesis_bots.apps.cli grant-admin --email <person> --actor-email <operator>inside the Genesis container, from the app directory (/appin the standard image), and restarts the service. The grant is recorded in the admin audit log with sourcecli. If several users share the email, the command lists them; rerun it with--user-id. It refuses a user whose roles SCIM manages: grant admin through the identity provider’s group mapping instead, because the next SCIM sync resets that user’s roles to what the provider grants. - Snowflake (SPCS): insert the user’s
adminrow into the deployment’sCASBIN_RULEtable, then suspend and resume the service. The restart briefly interrupts every user, and a direct table write records no Genesis audit event. - Databricks Apps: there is no shell into the App. With verified sign-in
(
PROXY_AUTH_DATABRICKS_VERIFY_TOKEN=true), its first administrator is seated at sign-in; see first administrator for Databricks Apps. You can also map a workspace group toadmininGENESIS_GROUP_ROLE_MAPPING; members receive the role when they sign in. Service principals are admitted as users only through the administrator-configured test-identity exception; see Databricks App test identities.
- Self-hosted (Kubernetes, Docker, Railway): the person signs in once, then an
operator runs
Admin vs User: What Each Can Do
Genesis has three built-in roles: admin, user, and power_user. Admins can create custom roles (with a subset of permissions) in Config → Users (Roles tab) or by asking an agent in chat.Admin
Admins have full access. They can:- Access every agent (including Eve). No per-agent configuration is required.
- Manage users and roles in Config → Users: assign and revoke roles, create custom roles, set default roles for new users, and configure which roles can access which agents and which capabilities (tools).
email and email_verified,
the issuer may also prove the grant email: Genesis asks the
configured issuer’s /userinfo endpoint about that exact token and accepts only
the same subject, a boolean email_verified: true, and the matching email. A
failed or non-matching answer does not admit the guest. Tokens with an explicit
email claim, an explicit email_verified value, or machine-token claims do not
use this fallback.
pending-grant API
documents the email matching format.
- Manage agents in Config → Agents: create, update, and delete agents.
- Create agents without global edit access with
create_agents. The creator can then maintain the agents they create or import, but cannot edit unrelated agents unless a role grants management for those specific agent IDs. - Manage managed artifacts when granted
manage_skills,manage_flows, ormanage_apps: register Git sources, sync Skills/Flows/Apps, and open workspace MR/PR flows from each library page. Binding logical dependencies after sync usesmanage_git. - Manage unified Git sources when granted
manage_repos: register one repository with multiplescan_types_enabledvalues (includingdocumentsfor Knowledge Base feeds), sync, and delete multi-type sources from Config → Managed Sources, Document Indexes → Sync from Git, orGET/POST/PATCH/DELETE/api/managed-sources. Holders ofmanage_reposcan also use the legacy per-type repository routes; multi-type deletes must go through the unified API. On upgrade, Genesis backfillsmanage_reposonce for the built-inadminrole and for custom roles that already have all ofmanage_skills,manage_flows,manage_apps, andmanage_git. - Manage connections in Config → Connections: create, update, and delete connections and their credentials.
- Manage secrets in Config → Secrets: create, update, delete, and view all secrets. Only admins can update system-owned secrets.
- Edit the global Context Graph token cap in Digital Twin → Spend or through the
SET_USAGE_BUDGETlineage action. This requiresaccess_config_panel; the built-inadminrole has it, and a custom role must be granted it explicitly. - Use the scheduler and the Pulse (monitoring) panel.
- View all chat threads and view all secrets for auditing.
view_users can open Config → Users to search the directory
and read each person’s display name, email, and roles. The API directory response
also includes the user’s ID. This is read-only; editing users or their roles still
requires manage_users. See Users and Roles for
the directory view and page behavior.
Environment snapshot export
Admins and custom roles can download the scrubbed environment snapshot from Config → Support and Enhancements → Other diagnostics only when the role has all four permissions required by the export endpoint:access_config_panel,
view_agents, view_users, and view_connections. The UI hides the export
control unless all four are present, and the API enforces the same AND gate, so
having only one or some of these permissions is not sufficient.
The export is diagnostic inventory, not a backup. It contains no credentials or
customer records, but it can contain operator-chosen names and non-secret
deployment values such as hostnames and account identifiers. See the API
Reference
for the archive file set and redaction contract.
Each attempt is recorded in the admin audit log with target type
environment_snapshot. Successful attempts use action
environment_snapshot.exported; failed collection attempts use
environment_snapshot.export_failed. The event includes the export ID and
coarse status/count metadata, not the archive contents.
View as
Admins can use View as on Config → Users & Roles to verify the app with one person’s non-admin roles or a custom set of roles, without changing persisted role assignments. Preview is request-scoped: API permission checks, connection visibility, and sidebar access follow the selected roles, but the admin stays signed in as themself and remains the actor for audit and administration. This does not show another user’s chat threads. The built-inadmin role cannot be included in a preview.
Open the View as tab and choose a person or one or more roles. Choosing a
person uses their roles except admin; from a user row’s actions menu (⋮),
Preview Access opens the same tab with that person selected. Click View
as to start. Use Exit preview to return to your normal admin permissions.
For programmatic checks, an admin may send
X-Genesis-Access-Preview-Roles (JSON array of role names, or comma-separated)
and optional X-Genesis-Access-Preview-Label on authenticated requests; the
server ignores preview headers from non-admin callers and drops invalid or
admin roles.
While preview is active, GET /api/rbac/me/permissions and Config → Users
& Roles → Current User Info reflect the preview role set: roles and
permissions match the selected preview roles, and is_admin is false
(because the built-in admin role cannot be previewed). Your persisted
user_id is unchanged.
User (regular user)
The built-inuser role is not blank. It starts with a set of common
workspace and creation permissions, and then still depends on agent
access and tool access for sensitive actions:
-
Built-in
userrole defaults:view_apps,view_context_graph,view_deployments,view_flows,create_app,import_app,view_git,view_agents,view_skills,view_connections,view_scheduler,view_all_missions,view_sandboxes,use_cli_terminal,use_desktop_link,ratify_source_contract,manage_own_scheduler, andmanage_own_flows -
use_desktop_link: Lets a person link their own Genesis Desktop computer to this Genesis and use that computer’s tools through its Outpost, under the person’s own access setting. The built-inadminanduserroles include it. Admins still control whether linking (desktop_link.enabled) and Desktop tools (desktop_link.desktop_tools.enabled, defaultfalse) are enabled; see Genesis Desktop server connection. -
Sandbox permissions:
view_sandboxeslists the caller’s own sandbox sessions;manage_sandboxescreates and manages the caller’s sessions but does not grant access to sessions started by other users.manage_all_sandboxesreaches every user’s sessions, including listing, terminal access, command execution, stop, delete, and rename. It also gates editing the shared sandbox spec, target-environment, and security profiles, and restarting or cancelling any user’s CLI workspace. The relevant view or manage permission is still required for each operation. -
ratify_source_contractlets user-role operators seal source contracts, grade Prover comparisons against them, mint attestations and license findings; this is not an admin-only task. -
Built-in
userPAT permissions:access_pat_connections_databases,access_pat_connections_git,access_pat_connections_cloud,access_pat_connections_pipelines, andaccess_pat_connections_tools -
use_cli_terminal: Allows the user to attach a real terminal to their own private Claude Code workspace from the GUI or a laptop client. It is separate fromview_sandboxesandmanage_sandboxes; neither sandbox permission implies it. The feature also requires thecli_terminal.enableddeployment setting. Because the workspace is a genuine shell and Claude Code runs without permission prompts, grant this permission deliberately. -
Team Wiki commentary: Users with
view_gitcan list, post, and soft-delete their own Markdown comments on any Team Wiki page through the dashboard commentary API (GET/POST/DELETE/api/wiki/v1/pages/{qualified_name}/commentary). Agent- and Flow-driven learnings still followwiki.write_enabledin AppConfig (see Advanced Settings → Team Wiki settings). -
wiki_author(non-default): Optional permission retained for legacy role grants. It is not included in built-in role defaults and is no longer required for dashboard wiki commentary. -
Agent access is not automatic. An admin (in Config → Users) assigns the user to a role and configures that role to have access to specific agents (e.g. the Data Agent and Report Agent). With no configured agent list, the built-in
userrole reaches other agents by default, but not Eve or the built-in source-reading agent (whose displayed name is configurable withgennie.display_name; see the Configuration Reference). When enabled, admins can use it, and Genesis grants the built-inpower_userrole access once; an administrator can revoke that grant and later startups will not restore it. Other roles need an explicit agent grant. -
Agent Managers and Users can also be assigned per agent: Managers may update that agent’s sharing, and Users may chat with it. A Manager can chat as well. These grants can name a person or a role; creator ownership also makes its people Managers. Admins and holders of
manage_agentsmanage every agent without appearing on its Manager list. Sharing changes are blocked when the Manager’s room policy excludes that agent. The agent sharing API reads and changes these per-agent grants; they are separate from replacing a role’s complete agent-access list. -
Agent Chat access and Genesis App sharing are separate: changing a role’s agent access does not grant or revoke app
view. Apps are private to their owner until shared; see GenesisApps access control for sharing defaults and grants. For how app deletion and replacement affect grants, see Genesis Apps deletion behavior. -
Older releases automatically gave agent-built apps
viewgrants to roles that could chat with the creating agent. On startup, Genesis runs a one-time cleanup for apps created before2026-11-21T22:01:23Z; it removes matching roleviewgrants but preserves person grants, the built-inuserrole’s views, non-viewactions, and grants from managed role files. Because grant provenance is not stored, a manually shared roleviewthat matches the same conditions can also be removed. Admins can preview the candidates or run the cleanup with a later cutoff using the inherited app-view cleanup API. If the app registry has not fully loaded or the managed-source registry cannot be read, the startup cleanup makes no changes and retries on the next start. -
If an existing built-in
userrole already has agent grants from before Adam was seeded, startup adds access to Adam once. An administrator can revoke that grant afterward; later startups do not restore it. - Tool access: by default, a role can use all capabilities except those an admin has globally disabled (for example, the code execution tool family). An admin can restrict a role so it can use only the capabilities explicitly granted to that role.
- Secrets: a user can create secrets they own (e.g. in Config → Secrets, if they have access). They can use a secret if they own it, or if it’s system/shared, or if they’re admin, or if their role has been granted access to that secret. They cannot update or delete system-owned secrets; only admins can.
-
Connections: creating or editing shared connections in the UI requires the manage_all_connections permission (admins or a custom role with that permission). PAT-class saved connection modes (
pat,api_token,api_key) also require the matchingaccess_pat_connections_<category>permission for the connector category (databases,git,cloud,pipelines,tools) when you create, update, or test them. Roles without a category’s PAT permission can still use OAuth-based connection modes where available; token-only connectors in that category stay unavailable until an admin enables the capability. Using a connection is governed by secret access and, for database connections created in chat, by the allowed-agent list.
Power user
The built-inpower_user role inherits the user role and adds build-and-run
access without administration. It can create agents and maintain agents it
created or was granted management rights on, manage its own sandbox sessions,
and use its own CLI terminal. It also receives the own-item permissions described
below, so it can manage its own scheduled jobs, flows, skills, document indexes,
apps, managed repository sources, and Git repositories, plus learning proposals
for agents it manages. It does not grant user, secret, configuration, or upgrade
administration. The role description in Config → Users summarizes this as
“Build and run agents, apps, flows and data work; no user, secret, config or
upgrade administration.”
Own-item management permissions
Themanage_own_* permissions let roles perform selected management actions on
items they own without granting access to everyone else’s items. The matching
all-item permission continues to reach every item, including items with no
recorded creator. Existing items without a recorded creator are not claimed by
the person who first edits them; they require the all-item permission. Creation
records the signed-in user as creator, and replacing an existing item preserves
its original creator.
Skills, document indexes, knowledge bases and flows can be shared with configured
roles from their library or detail view. An
edit grant allows changing and
deleting the item; manage also allows changing who it is shared with. A creator
with the matching own-item permission, a holder of manage, or a holder of the
all-item permission can manage sharing. For skills, indexes and knowledge bases,
the creator and any grant holder also need the corresponding manage_own_*
permission. Flows use their own permission model. Using an edit grant on another
person’s item is recorded in the Admin Audit Log.
The built-in user role includes manage_own_scheduler and
manage_own_flows; power_user includes the remaining own-item permissions as
well. The all-item permissions remain separate grants. The Config → Users →
Roles editor shows each permission’s description and scope.
For shared repositories, everyone signed in can view; editing requires ownership,
admin access, or an explicit edit grant to the person, agent, or one of their
roles. Shared grants provide edit, not manage. With sign-in disabled, shared
repositories remain editable without a grant. On startup, a one-time upgrade
adds edit grants for every signed-in role to existing shared repositories;
admins can remove those grants in Manage Access, and later starts do not
restore removed grants. Newly registered system-managed shared repositories
also receive the everyone-edit grant, while a shared repository created by a
person is owned by its creator. See Git Action Tools for managing repository grants.
For the access choices on newly cloned repositories—including when connection
access does not grant access to a Personal or Restricted clone—see Git Browser.
SCIM-provisioned users
If your deployment uses inbound SCIM, Genesis treats the identity provider as the source of truth for role membership on SCIM-managed human users. In Config -> Users, those rows are labeledManaged by SCIM; inactive
provisioned users show Managed by SCIM (inactive). Manage their Genesis roles
by updating the IdP group membership or the SCIM group-role mapping, not by
editing the role chips in the UI.
Outside a Databricks App, when GENESIS_SCIM_REQUIRE_PROVISIONED_USERS=true,
Genesis also limits sign-in to active SCIM-provisioned users and blocks manual
role edits for SCIM-managed accounts. When the same person later signs in via
OIDC, Genesis can promote the pre-provisioned SCIM placeholder row to the real
login identity by matching email so the user keeps one canonical Genesis
account. On Databricks Apps, SCIM admission is ignored and access is controlled
by the App’s CAN_USE permission. See the API reference for details.
OIDC group-to-role mapping (Helm-driven)
For native OIDC deployments (without SCIM), you can map identity-provider group identifiers to Genesis roles using Helm or environment configuration. This is the recommended pattern for Entra ID on Kubernetes when group membership should drive Genesis roles on every login. Configuration options (in priority order for the mapping file):- Helm
groupRoleMapping.content— mounted at/app/.genesis/config/group-role-mapping.yamlwithGENESIS_GROUP_ROLE_MAPPING_FILE GENESIS_GROUP_ROLE_MAPPING— JSON object with the same group-id → role name shape (non-Helm fallback)
- On each login, Genesis reads group claims from the authenticated user (JWT
groupsfor OIDC) and assigns mapped roles. - Roles are removed when group membership is lost — but only for roles that appear as values in the mapping. Manually assigned roles outside the mapping are never removed.
- Genesis refuses a manual edit that the next group sync would undo: a role granted by the user’s recorded groups cannot be removed, and a mapped role that their groups do not grant cannot be added. If a directory sync has not yet read membership for a mapped group, edits to mapped roles wait until the next sync. Change the IdP membership or mapping instead.
rbacSeedPolicy.content (or GENESIS_RBAC_SEED_FILE)
applies Casbin CSV policies at startup — custom roles, permissions (p rules),
and hierarchy (g rules). Permissions in this file are reapplied on every
start, so removing one in the role editor lasts only until restart; edit the
seed file to remove it permanently. Built-in role defaults other than admin
are granted once, so later removals remain removed across starts; admin
defaults are restored at every start. Use the seed file together with group mapping when you need
custom roles (for example analytics_user) that inherit from built-in roles and
grant per-agent access.
With a PostgreSQL metadata database, Genesis stores RBAC policies in that
database. A fresh database gets the casbin_rule table during startup; concurrent
starts serialize table creation, so they can initialize against the same new
database without conflicting. Existing tables are left in place, and a migrated
database role does not need schema-creation privileges just to start. SQLite and
Snowflake metadata modes do not use the metadata database for RBAC.
See Deploying Genesis - Azure AKS with OIDC Authentication for Helm examples.
QA Fleet service identity (automated testing)
WhenGENESIS_QA_FLEET_CLIENT_ID is set, Genesis maps verified
machine-to-machine tokens from Auth0 or the proxy auth path (matching azp or
appid on an app-only token) to a fixed service user:
The
qa-fleet user never receives the built-in admin or user roles and is
excluded from Default Roles for New Users backfill — Genesis assigns exactly
the qa_fleet role on create and on every subsequent login.
This identity supports the LLM config matrix QA harness and fleet probing.
Deployments that use the role seed a restricted qa_fleet Casbin policy. On
upgrade, an existing config_panel grant is replaced with model_config view
access so the service identity can read active chat and embedding model
configuration without configuration-panel administration; tool:file remains
available for blueprint artifact writes. Map the Entra or Auth0 app registration
client id to GENESIS_QA_FLEET_CLIENT_ID so only that M2M application can
authenticate as qa-fleet.
Top-level workspace visibility
When authentication is enabled, Genesis uses dedicated top-level view permissions to decide whether a primary workspace appears in the sidebar and whether its route can be opened. Common examples areview_apps,
view_context_graph, view_deployments, view_flows, and
view_scheduler.
Scheduler is the main exception with a broader allowlist: users can open the
workspace if they have any of access_config_panel, view_scheduler, or
manage_scheduler.
Genesis also keeps these sidebar permissions aligned with object-scoped
access. Granting dashboard or microapp access implies view_apps, granting
Flow access implies view_flows, and existing custom roles are backfilled
with the new sidebar view permissions during rollout so previously visible
workspaces do not disappear unexpectedly.
Agents, Tools, Secrets, and Connections
For the affected agent, connection, configuration, and Prover operations, a permission refusal names the required permission with its admin-console label and tells the caller to ask an administrator for it. When the refusal lists permissions joined by “or”, any one is sufficient. A permission without an admin-console label is shown by its ID. Relevant admin-console labels and IDs are Open every Configuration page, including admin-only settings (access_config_panel), Create, edit, and delete every agent
(manage_agents), and Add, edit, and remove every data connection, including
ones other users created (manage_all_connections). share_own_connections
lets a connection owner share their connection with roles they belong to; it
does not permit granting built-in roles or transferring ownership.
The source-contract permission label and ID are listed below.
Agents
- Agents are set up in Config → Agents.
manage_agentsallows creating, updating, and deleting every agent.create_agentsallows creating or importing new agents without editing existing ones; the creator receives a manage grant on each agent they create or import. - A role can receive per-agent management grants without global
manage_agents. Configure the complete list through the role’s agent-manage grants; those grants control editing, deletion, instruction reset, settings, skills, and knowledge-base assignments for the listed agents. - A newly added per-agent Chat or Manage grant must use the exact ID of a stored agent. Existing grants are not revalidated when a role keeps them unchanged; deactivated agents and built-in agents whose feature flag is off still count as stored agents. The role editor reports invalid additions when you save; see Users and Roles.
- Managed-source operations use the same scope: registering or changing a source
that scans agents requires global
manage_agents, but listing agent artifacts reveals only agents the caller may manage. Enablement changes and sync apply are checked per agent; sync applies authorized changes and leaves the rest for an administrator.create_agentscan authorize a change that creates an agent not yet installed. - If a creator grant is missing after creation or import, an administrator with
manage_userscan restore it from the agent’s creator grants in the RBAC administration surface. Creator ownership is a Manage grant, not a role-based Chat grant; people who can manage an agent can also chat with it. - Each agent has an agent ID. Agents are assigned roles (e.g. Eve often has the admin role so she can manage users and access).
- When an agent does something in a chat, it acts under its own identity. Access to secrets and connections is checked for that agent (and, when you’re in the chat, for you). Capability (tool) access is checked for both you and the agent, and the two results are combined according to
security.tool_auth_mode— see Capability authorization modes. - For agent tools that administer agents or assign roles, the caller’s grant does
not replace the signed-in person’s grant. The agent must hold its required
permission, and the person must also hold the matching permission; role reads,
assignments, and revocations require the person to hold
manage_users. These tools accept agent targets only, not user IDs. Turns without a mapped person keep the agent-only check for system-started work; with authentication enabled, other operations that require a person fail closed when no person is present. - At least one active agent must always hold manage_agents, otherwise no agent could administer agents from chat anymore. Genesis refuses the change that would leave none — deactivating or deleting that agent, revoking the role carrying the permission, removing the permission from that role, or deleting the role. Grant manage_agents to another active agent first, then repeat the change.
Room policies
A custom role can carry a room policy that limits its members to named rooms and agents. When enabled, the restriction applies across room access, agent chats, mail, wakes, handoffs, and tools used on behalf of a turn its restricted member stands behind. If a person holds any restricting role, that restriction wins over grants from their other roles. An empty allowlist still restricts. A person’s own agents remain allowed. Manage policies through the role room-policy endpoints in the API reference; they requiremanage_users, and built-in roles cannot carry a policy.
Enforcement is off by default. An administrator with access_config_panel can set
rooms.room_policy_enforcement to true to apply saved policies; while it is false,
policies can be managed but do not restrict access. See the Configuration
Reference for the setting and override.
Tools (agent capabilities)
- Agents only use capabilities they’re allowed to use. Access is checked when a capability is used:
- Code execution capabilities can be globally disabled by an admin; the current list includes
dbt_action,execute_python_code, and_run_sqlite_cli_commands. - Per-role tool access: by default, a role can use all capabilities (except globally disabled ones). An admin can make a role restricted so it can use only the capabilities explicitly granted to that role.
- Fail-closed when auth is enabled: if the tool-access check cannot complete—RBAC is unavailable, the check raises an error, or there is no user or agent principal on the request—Genesis denies the tool rather than running it. Users see an access-denied message; transient check failures suggest retrying shortly. With authentication disabled (typical local dev), the same conditions fail open so tools keep working.
- Code execution capabilities can be globally disabled by an admin; the current list includes
- Configuring a custom scanner to use a Genesis-bundled scanner, its Foundry connection, or its
space_ridsscope requiresaccess_config_panel. This decision must come from a signed-in person; the internal service token is refused for those bundled-scanner settings even when its system identity is an administrator. - Admins configure role–agent and role–tool mappings in Config → Users, or by asking Eve in chat to assign roles and grant access to agents or capabilities.
Capability authorization modes
When a user is present, Genesis evaluates the capability against the user’s role and against the agent’s role, then combines the two results according tosecurity.tool_auth_mode:
union(the default): the capability runs if either role allows it. A user whose role does not grant a capability can therefore still reach it through an agent whose role does.intersection: the capability runs only if both roles allow it.
security.force_double_key_on_connections, makes every saved
connection behave as though require_double_key were on. It governs connections
only and does not change capability authorization, so the two settings never
override each other. require_double_key by itself controls access to a
connection — both its credentials and whether it is visible — and defaults to
off. A request carrying only an agent and no user is treated
differently by the connection boundaries — see What double key means when only
one principal is
present.
A run with no user context — a scheduled job, a webhook — is authorized against
the agent’s role alone in both modes, and the log line for the call records that
no user context was present.
Every decision is logged with the mode in force, the principal or principals that
satisfied the check, and what decided the outcome. These records are kept whatever
LOG_LEVEL the deployment runs at — raising the level does not thin the audit
trail.
Secrets
- Who can create: In Config → Secrets, any user or agent with access can create a secret; they become the owner unless it’s created as a system secret. System secrets are readable by those with access; only admins can update or delete them.
- Who can use: A user or agent can use a secret if: they are the owner; or it’s system or shared; or they have the admin role; or they have a permission that grants broad secret access; or their role has been granted access to that specific secret (configured in Config → Users).
- Who can update/delete: The owner can update or delete their own secrets. Admins can update or delete any secret (including system). Shared secrets can be updated by any authenticated user. Non-owners cannot update or delete someone else’s personal secrets unless they are admin.
Connections
- Saved connections (Config → Connections): Credentials are stored in Genesis Secrets. Who can use a connection is determined by secret access (ownership, admin, role grants on the connection’s secrets, and double-key rules when enabled). Shared connections can list Roles with Access so only members of those roles see and resolve the connection. For the permissions that control who can share connections and which roles can receive access, see Connections.
- Shared runtime identities: BigQuery Application Default Credentials and the Databricks App data reader hold no stored key whose resolution could enforce role grants. If Roles with Access is set, Genesis checks the signed-in user’s roles before every use and refuses callers outside those roles; a request with no signed-in user is refused while grants are set.
- Shared connections with no stored secret: SQLite and other secretless connections enforce Roles with Access when grants are set. Owners, administrators, broad secret-permission holders, and principals admitted by those role grants can use the connection; lacking a credential does not make a role-shared connection open to every viewer.
- Per-agent connection profiles: Admins assign connection profile roles to agents from Agents → [agent] → Data Access (requires
manage_users). A profile is a reusable custom role whose Roles with Access bindings on saved connections define what that profile grants. An agent can hold multiple profiles; its reachable connections are the union. With no profile, the agent inherits each connection type’s default. Built-in roles such asusercannot be profile roles. Agents with broad secret permissions (admin or view-all-secrets) can still reach connections beyond any profile until those broad roles are removed. - Database connections created in chat: When an agent (e.g. Eve) adds a database connection during a conversation, that agent becomes the owner and specifies which other agents can use it (allowed-agent list, or all agents). Only the owner and agents on that list can use that connection.
- Access intent (database connections): Saved database connections can carry
access_intent(unspecified,read_only, orread_modify). This is an awareness label for agents and the Agent Center badge — it does not replace database-role or RBAC enforcement. - What users see in browsing APIs:
/api/config/db-connectionsand the Data Explorer connection lists only return database connections visible to the current user. Direct calls to/api/data/...for a connection the user cannot use return403 Forbiddeninstead of exposing metadata. - Pipeline source access: Launchpad pipeline inspection and pipeline evidence use the selected repository’s normal
view_gitpermission and repository-level read access. Selecting a repository does not grant access to it; a user who cannot read the repository cannot inspect its files or open pinned pipeline evidence.
Default Snowflake connection
WhenSNOWFLAKE_METADATA=TRUE and sign-in is enabled, SQL through Genesis’s
built-in default Snowflake connection cannot access Genesis’s internal schemas
unless the caller is an administrator. This applies to the configured internal
schema named by GENESIS_INTERNAL_DB_SCHEMA, the app’s CORE and APP
schemas, and other non-workspace schemas in Genesis’s app database. Agent workspace
schemas remain available. Non-admin callers also have
read-only access on this connection. Use a personal Snowflake connection for
direct writes; agent writes go through Action Review. The guard does not apply
to a user’s own Snowflake connection or when sign-in is disabled. See
Snowflake integration
for connection setup.
Transition-contract verification and approval
Governed migration verification (compiled transition contracts) uses two RBAC permissions:view_connections— browse the Migration verification page under Data (/data/verify/), list correspondence rules and verification requests, compile objectives, execute contracts, and read run reports. Also browse and run the Estate source-contract characterization surface (/api/estate/...): characterize snapshots, mine candidates, compile and verify contracts, run jitter campaigns, and read ledgers and attestations. This is the same permission family as Data Explorer connection access. The built-inuserrole includes it.ratify_transition_contract— approve (ratify) a qualified correspondence rule: the server signs a binding as the authenticated human approver. Included in the built-inadminrole only; grant it explicitly to custom roles when operators other than admins must sign. Chat and agent tools can propose and qualify rules but never ratify — the in-app approval modal andPOST /api/transition_contract/rules/{rule_hash}/ratifyare the only signing surfaces.
auth.enabled is false (every caller reads as admin, so approvals are refused), when the caller is a system or delegated identity rather than a genuinely authenticated human, or when transition_contract.ratifier_private_key is not configured.
Source-contract characterization and approval
Source-estate characterization (estatechar) uses two RBAC permissions:view_connections— browse and run the Estate API surface: characterize estates and non-data planes, mine rule candidates, compile draft contracts, verify against fresh characterization, run jitter and clone-jitter campaigns, and read snapshots, ledgers, deviations, and attestations. The Estate nav is shown by default; it is hidden only when a deployment setfeatures.show_estatetofalse(show_estateis thenfalseonGET /api/config/frontend). The built-inuserrole includesview_connections.ratify_source_contract— adjudicate mined rule candidates (accept_fact,endorse_policy, orreject), seal draft source contracts, mint a contract’s attestation (POST /api/estate/contracts/{contract_id}/attestation, including a QUALIFIED one withallow_open_residue=true), license a finding by any path (licenseorreconfirm_licenseonPOST /api/estate/findings/{finding_key}/ruling,agreeonPOST /api/estate/episodes/{episode_id}/issues/{issue_number}/adjudicate, orPOST /api/estate/episodes/importwith a bundle carrying a licence; the rulings and verdicts that license nothing need onlyview_connections), and change ruling-library authority (settle, ratify provisional directions, unsettle, or answer build-time ruling questions). Prover review approvals, including disposition packages, bundles, correspondence rules, consult rulings, and Action Review requests, require ordinary Prover access (view_connections) but not this permission: any signed-in person may approve, including their own proposals. The admin console labels this permission Approve source contracts and manage estates. Included in the built-inadmin,userandpower_userroles; a custom role that does not inherituserneeds it granted explicitly before its members can perform the authority-changing operations above. Agents can propose and trigger characterization workflows but never adjudicate, seal, or settle rulings —POST /api/estate/candidates/{candidate_id}/adjudicate,POST /api/estate/contracts/{contract_id}/seal, and the ruling-library write routes under/api/estate/rulings/...and/api/estate/ruling-questions/{question_id}/answerare the human authority-changing surfaces. Browse the library withview_connections(GET /api/estate/rulings,GET /api/estate/ruling-questions). For Prover approval identity and audit details, see Roles and Approvals.
auth.enabled is false (every caller reads as admin, so approvals are refused) or when the caller is a system or delegated identity rather than a genuinely authenticated human.
Agent action approval (CRM merges and beyond)
Irreversible actions that agents can stage but cannot authorize for themselves use one RBAC permission:approve_agent_action— sign off on an action an agent has staged but cannot authorize for itself, such as an irreversible CRM record merge. Required for all/api/salesforce/merge/...,/api/crm/.../merge/..., and cross-provider/api/crm/merge/approvalsroutes (preview, list, approve, and execute). Included in the built-inadminrole only; grant it explicitly to custom roles when operators other than admins must review merges without also holdingmanage_all_connections. On authentication-enabled stacks, approving and executing require a genuinely authenticated human, and this permission decides who that can be. With authentication disabled, a browser press to approve or decline a non-Prover Action Review item is accepted and recorded aslocal operator (auth disabled); that label does not verify a person, and an agent’s or app’s own credential is not a press. List and approve operations are scoped to connections the caller can access; holdingapprove_agent_actiondoes not grant visibility into every connection. Agents can preview and request approval through connector tools but cannot approve on behalf of a human.
auth.enabled is false or when the caller is a system or delegated identity rather than a genuinely authenticated human, except for the auth-disabled Action Review press described above.
Blueprints
- Who owns a blueprint: Genesis resolves blueprint ownership from
blueprint_manifest.yaml. It checks the top-levelcreated_byfield first, then falls back to legacyblueprint.created_by. - Who can use it by default: When authentication is enabled, the owner automatically passes Blueprint RBAC checks. Newly created and copied blueprints are owner-only by default until you grant additional access.
- How access is granted: Blueprint access is role-based and uses the Blueprint actions
view,edit,manage, andexecute. Grants apply only to configured RBAC roles—the built-in roles and any custom roles defined in Config → Users. Genesis rejects grant requests for unknown role names. - Blueprint-wide role permissions: In addition to per-blueprint grants on
blueprint:<name>, admins can grant a custom roleview_all_blueprintsormanage_all_blueprintsso members get every existing and future blueprint in one action.view_all_blueprintsgrants the usable read level (viewandexecute) on all blueprints — matching the default per-blueprint grant on the built-inuserrole.manage_all_blueprintsgrants full control (view,edit,manage, andexecute), including sharing and access management. Genesis checks ownership and per-blueprint grants first, then falls back to these role permissions — the same pattern asview_all_missions/manage_all_missions. The built-inadminrole includes both permissions; the built-inuserrole does not include either by default. - Granting from the UI: On a blueprint’s access panel, choose a role from the searchable Select a configured role list. The Grant button stays disabled until you pick a matching configured role; typed search text cannot become a grant on its own.
- Folder sharing: A role selected in a Blueprint Library folder’s Share menu receives inherited
viewaccess to blueprints in that folder, but notexecute,edit, ormanage; direct Blueprint grants are unchanged. See organizing the Blueprint Library for the workflow and move permissions. - What happens on rename: Renaming a custom or remote-backed blueprint requires Blueprint
manageaccess. When a rename succeeds, Genesis migrates stored Blueprint role grants from the old resource name to the new one so existingview,edit,manage, andexecuteaccess continues to apply. - What appears in the library: The Blueprint Library and related listing APIs return only blueprints the caller can
view. For visible blueprints, Genesis separately evaluates whether the caller canmanage,edit, orexecute.
Apps, missions, and shared-role visibility
- Without explicit grants, apps stay owner-scoped by default and mission visibility follows the underlying thread access rules.
- Mission management follows the Mission’s open-access rule rather than owner-only access; a required-check waiver also needs a directly authenticated human with
approve_agent_action. See Missions and Tasks. - For team-style sharing, admins can grant a custom role the
view_shared_role_resourcespermission. When two users share that same role, Genesis lets them see each other’s apps and mission-backed threads without adding per-app grants or thread invitations one by one. - This is a view-only widening. It does not grant app
refresh,edit, ormanage, and it does not let teammates hide, delete, or change access on each other’s threads. - Shared-role visibility does not expose Talk voice or helper threads. Those remain private to their owner and administrators with
view_all_threadsormanage_all_threads. - Thread file attachments follow the access check documented in the file API reference.
- In a shared thread, an agent’s private notes about one participant are not included in the prompt seen by other participants.
- Built-in roles do not include
view_shared_role_resourcesby default.
Practical Flows
Who creates a connection, and how can an agent use it?
-
Connections in Config → Connections
- Creation: Any user can create a personal connection; see Connections for shared-connection permissions. Credentials are stored as secrets. For database connections, optionally set Access intent (
unspecified,read_only, orread_modify) as an awareness label. - Use by an agent: When an agent uses that connection (e.g. to access GitHub or Snowflake), Genesis checks whether the agent (and your role, if relevant) can access the connection’s secrets. Typical setup: create the connection, bind Roles with Access on the connection (or grant secret access on a custom role), create a connection profile role if you want a reusable bundle, then assign that profile to the agent on Data Access. Double-key and user OAuth rules still apply at runtime.
- Creation: Any user can create a personal connection; see Connections for shared-connection permissions. Credentials are stored as secrets. For database connections, optionally set Access intent (
-
Database connections created in chat
- Creation: In a chat, you (or an admin) ask an agent (e.g. Eve) to add a database connection. The agent that creates it becomes the owner and specifies which agents are allowed to use it.
- Use: Only the owner and agents on the allowed list (or all agents, if configured that way) can use that connection.
search_data_context
responses include a warning so the fallback is distinguishable from a healthy
RBAC result.
Who can create and use a secret?
- Create: Opening Config → Secrets and creating a secret there both need the manage_secrets permission. The creator becomes the owner unless it’s created as a system secret.
- Use: As above—owner, system/shared, admin, or a role with access to that secret. When an agent uses a connection whose credentials are in secrets, that agent’s identity is used for the check.
- Update/delete: Owner or admin; system secrets only by admin; shared by any authenticated user.
How are users given access to interact with an agent?
- Role-based Chat access is controlled by role → agent policies, not by the roles the agent itself runs with. In Config → Users → Agents, Who can chat shows and edits the roles allowed to open chats; Runs with roles is the separate set of roles the agent uses to reach resources.
- An admin assigns users to roles on the Users tab and grants those roles access to agents on the Roles tab. The built-in admin role can always chat with every agent and is not configurable per agent. The built-in user role is held by every account: when its agent list is empty, users can reach every agent except Eve. The built-in Support Agent is not excluded from the user role and is granted to existing user-role lists when its agent row exists. The Help (?) entry is still hidden when Support is disabled. Configure at least one agent for the user role on the Roles tab before using Edit chat access to restrict individual agents; an empty user-role list cannot enforce a per-agent restriction. If the user role already has agent grants, Genesis refuses an edit that removes its last grant; keep at least one agent assigned so access is not opened to every agent.
- A direct person Chat grant also lets that person open a chat. Agent Managers
are Users of that agent too, including its creators, people with a role-based
Manage grant, and people with global
manage_agents. - So: user gets a role → that role is allowed to chat with an agent → the user
can open a chat with it. Direct person grants and management rights also
allow chat. An admin can also ask Eve in chat to assign a role
to a user or to grant a role access to an agent. For chat-based user
targeting, see
rbac_actionguidance.
manage access to the app. The check applies
to reads and writes through the alias, including Git and Excel tools; access is
refused if the app cannot be checked or the caller lacks manage.
Admin audit log
Genesis persists administrative mutations in theADMIN_AUDIT_LOG metadata
table (Snowflake metadata schema or local SQLite, depending on deployment).
Each row is a best-effort insert: a failed audit write is logged as a warning
but does not roll back the underlying admin action. Insert-failure warnings
report the exception type, not its message.
When available,
details also records how the change was made:
These keys are added only when the corresponding actor, request, or change data
is available for the event.
In Config → Admin Audit Log, filter by thread or request correlation id,
switch to oldest-first order, or use a row’s Show request and Show
history actions to narrow the list. The details drawer shows the acting agent,
turn origin and recorded request text when present. The CSV export includes
agent, thread, request, message, origin and request-text columns in addition to
the existing audit fields. The table and details drawer show timestamps in UTC
when their zone is known and label legacy zone-less timestamps as having no
recorded time zone; see the audit API timestamp contract
before treating those legacy values as instants.
Common
action values for RBAC and workspace policy work:
Agent changes made through the dashboard or REST API identify the signed-in
person and use
source=api. When an agent tool makes a change for a person,
the row identifies that person and uses source=bot; details.agent includes
the acting agent and thread when available. Sensitive values are masked in
change details. Slack agent-tool audit rows do not include token values.
Connection credential events use target_type=connection and set target_id to
connection_type.connection_name. Their details payload includes the target
user ID and credential_kind (principal or oauth); it never includes secret
values. The actor_user_id identifies the user who performed the bind or
revoke, which may differ from the target user for an administrator action.
PAT events use target_type=pat with the PAT ID as target_id; service
credential saves use target_type=credential with the service name as
target_id; SCIM token events use target_type=scim_token with the tenant ID
as target_id. These events identify the person who performed the action when
available. Their details contain token metadata or credential parameter names,
not token values, token hashes, or credential values. SCIM token actions also
remain recorded in the separate SCIM_AUDIT_LOG table.
Bundle export events use target_type=connection_bundle with no target_id.
Their details contain the exported type.name identifiers and connection
count, never secret values.
UI and REST RBAC mutations record source=api with the signed-in admin as
actor_user_id. Chat-based rbac_action
write operations record source=bot with the acting bot ID as
actor_user_id. SCIM-provisioned changes continue to use the separate
SCIM_AUDIT_LOG table; they are not duplicated here. Operator grants made with
genesis grant-admin record source=cli.
Configuration write events identify the signed-in person when available,
otherwise the user supplied by the writer, or the system when neither is
available. Provider, model, and other APP_CONFIG changes use
target_type=app_config; old and new values appear in details.changes with
credentials masked.
Profile, template, and partial applies that change values also write
app_config.updated events. Startup file applies use actor_user_id=system and
source=startup; their details.config_source is file. An agent’s
config_manager changes to APP_CONFIG-backed settings use source=bot, with
the acting person and available agent/thread identifiers recorded as described
in details.agent. Changes to gateway settings stored in EXT_SERVICE_CONFIG
through config_manager are also recorded as app_config.updated; their
details.changes paths begin with user_config., and details.config_source
is api. Changes made from Config → Agent Gateways use the same action,
target type, and user_config. change paths, with details.config_source=ui;
the signed-in person is recorded when available.
Applying a role definition from a managed Git source records the role changes
with source=managed_source; scheduled applies use actor
system:managed_source_auto_sync.
Managed skill release and revision-policy changes record
target_type=managed_skill_source and source=managed_sources_api. The managed
sources panel links to the audit-log view filtered to that source.
Example query (adjust schema/database names for your environment):
- Dashboard: the Config → Admin Audit Log page lists events with date,
action, actor, target, and source filters, a row-detail view of the
detailsJSON, and CSV export. - REST API:
GET /api/admin/audit-logreturns a cursor-paginated list and acceptssince,until,action(exact match),action_prefix(prefix match),actor_user_id,target_type,target_id, andsourcefilters;GET /api/admin/audit-log/{audit_id}returns a single event.
access_config_panel permission, held by
the built-in admin role. The endpoints are read-only — audit rows cannot be
created, edited, or deleted through the API. To feed an external SIEM, poll the
list endpoint with a personal access token or query the metadata table directly.
Summary Table
FAQ: Connections and credentials (Git, Databricks, Snowflake, etc.)
Whose credentials are used when I chat with an agent (e.g. clone a repo, create a pull request (PR))?
The effective default connection for that tool type for the current user or role (My default, then Role default), or an explicit connection id when one is passed. There is no workspace-wide system default fallback. Your credentials are used when your connection is the resolved default or when you (or the agent) explicitly choose your connection (e.g. “use my GitHub” or “use connection github.alice”).When would my (the user’s) Personal Access Token (PAT) or connection be used?
When your connection is the resolved user default, when a role default you hold points at your connection, or when your connection is explicitly selected. Genesis does not silently pick “the current user’s” connection when no scoped default is set.What’s the best way to summarize how PATs work for agents?
Agents use the scoped default connection (user or role default) for that tool type whenconnection_id is omitted. They use a specific user’s PAT only when that connection is the resolved default or when explicitly told to use that connection.

