Overview
Genesis runs natively on Databricks without requiring external infrastructure. The deployment uses three Databricks-native components:Architecture Diagram

- Browser connects to Databricks App via WebSocket
- Databricks App sends notifications to Lakebase PostgreSQL
- PostgreSQL Worker (in compute cluster) listens for database notifications
- Worker forwards messages to Genesis Backend for processing
Prerequisites
Before you begin, ensure you have:- Databricks Workspace with access to Databricks Apps, Compute clusters with custom container support, and Lakebase PostgreSQL.
- Databricks CLI installed and configured.
- Docker for building the Genesis container image.
- LLM Access via Databricks Model Serving endpoints or OpenAI.
Step 1: Set Up Lakebase PostgreSQL
Lakebase is Databricks’ managed PostgreSQL service that provides real-time messaging between components. The App’s bound Lakebase database is reserved for Genesis’s own metadata and durable state; it cannot be registered as a data connection. To connect to a separate Lakebase endpoint as the App identity, see Connections — Databricks Lakebase connections.1.1 Create a Lakebase PostgreSQL Instance
1
Navigate to Lakebase
In your Databricks workspace, go to Catalog → External Locations → Lakebase.
2
Create Instance
Click Create Lakebase Instance and configure:
- Name:
genesis-db - Size: Small (sufficient for most deployments)
3
Note Connection Details
Record the connection information:
- Host:
instance-xxxxx.database.cloud.databricks.com - Port:
5432 - Default database:
postgres
1.2 Create the Genesis Database and Schema
Connect to your Lakebase instance and run the provided SQL scripts:The schema script creates:
- Message queue tables (
app_requests,app_responses) - WebSocket connection tracking (
websocket_connections,websocket_messages) - Real-time NOTIFY/LISTEN triggers for instant message delivery
- Indexes for optimal performance
Step 2: Build and Push the Genesis Container
The Genesis backend runs in a custom Docker container on Databricks Compute.2.1 Build the Docker Image
From the Genesis repository root: The Databricks image now builds with Python 3.12.2.2 Push to Container Registry
Push the image to a registry accessible by Databricks (Docker Hub, Azure ACR, AWS ECR, or Databricks Container Registry):Step 3: Create the Databricks Compute Cluster
3.1 Create Cluster with Custom Container
1
Navigate to Compute
In your Databricks workspace, go to Compute and click Create Cluster.
2
Configure Cluster Settings
3.2 Set Environment Variables
In the cluster’s Advanced Options → Spark → Environment Variables, add:- PostgreSQL Connection
- LLM Provider
3.3 Configure Init Script
The init script starts both the Genesis backend server and the PostgreSQL worker on cluster startup.1
Upload Init Script
bash databricks workspace import \ genesis_bots/apps/genesis_server/deployments/databricks/cluster/databricks_init.sh \ /Workspace/Users/your-email/databricks_init.sh 2
Add to Cluster Configuration
In Advanced Options → Init Scripts, add the path:
/Workspace/Users/your-email/databricks_init.sh3.4 Start the Cluster
Click Create Cluster and wait for it to start. The init script will automatically launch Genesis.Step 4: Deploy the Databricks App
The Databricks App serves the frontend UI and proxies requests to the backend. In the checked-inapp/app.yaml configuration, POSTGRES_DB defaults to
databricks_postgres. Set POSTGRES_ENDPOINT_NAME to use a fresh Lakebase OAuth
credential for each database connection; when it is unset, the app uses
POSTGRES_PASSWORD if provided. The live deployment script currently generates
a separate App configuration with a static database password, as noted above.
4.1 Deploy the App
From the Genesis repository root, run the provided deployment script:4.2 Get the App URL
The app will be available at a URL like:
https://genesis-app-xxxxx.cloud.databricksapps.comStep 5: Verify the Deployment
5.1 Check Component Status
Databricks App
Databricks App
bash databricks apps get genesis-app databricks apps logs genesis-app Compute Cluster
Compute Cluster
In a Databricks notebook attached to the cluster:
bash %sh ps aux | grep -E "genesis|postgres_worker" Genesis Health
Genesis Health
bash curl [https://genesis-app-xxxxx.cloud.databricksapps.com/api/health](https://genesis-app-xxxxx.cloud.databricksapps.com/api/health) 5.2 Check Database Connectivity
Run in SQL editor connected to Lakebase:5.3 Access the UI
Open your browser and navigate to your Genesis app URL. You should see the Genesis dashboard.Configure the LLM provider
The cluster init script seeds the Databricks provider before the backend starts:ACTIVE_LLM_PROVIDER=databricks and DATABRICKS_ENABLED=true are set; the
enabled switch is for legacy-image compatibility (see AWS deployment notes). The init script also sets
DATABRICKS_MODEL_NAME, DATABRICKS_FAST_MODEL_NAME, DATABRICKS_PREMIER_MODEL, and
DATABRICKS_EMBEDDING_MODEL are empty by default — when all are unset, Genesis falls
back to the Databricks catalog default for each role (databricks-claude-opus-5-5 for
chat and premier, databricks-claude-haiku-5-5 for the fast model,
databricks-gte-large-en for embeddings). Setting DATABRICKS_MODEL_NAME (or
--model-name) also sets the fast and premier models to that value unless
DATABRICKS_FAST_MODEL_NAME / DATABRICKS_PREMIER_MODEL are set explicitly.
DATABRICKS_HARVESTER_MODEL defaults to OPENAI_HARVESTER_MODEL.
A value already saved in AppConfig or supplied by a mounted genesis-config.yaml
remains authoritative over these init-script defaults. Configure or change the
provider against the running deployment from Config -> AI Providers or
through the config API. Keep
credentials in a request-body file — process arguments are visible to every process
on the host and land in shell history.
200
with success: false (for example when the provider already exists — repeat that
call as a PUT).
auth_mode: "oauth" replaces api_key with oauth_connection_name, naming an
existing Databricks connection whose per-user OAuth grant is used at runtime.
For the full endpoint reference and the other providers, see
Configuring a provider through the config API.
Some schema fields carry a
default_env_var binding that seeds them from the
cluster environment while nothing is stored, so an image can come up pre-seeded.
That is bootstrap only — it is not the way to configure a provider, and anything
saved through the UI or the config API outranks it.Next Steps
After successful deployment:Add Data Connections
Connect Genesis to your Databricks data sources (Unity Catalog, Delta tables)
Create Agents
Start building AI agents for your data workflows
Set Up Authentication
Configure SSO or other authentication methods if needed
Updating Genesis
To update your Genesis deployment:1
Build New Container Image
Build a new container image with the latest code.
2
Push to Registry
Push the updated image to your container registry.
3
Restart Compute Cluster
Restart the compute cluster to pull the new image.
4
Redeploy App (if needed)
If frontend changes are included:
bash databricks apps deploy genesis-app --source-code-path "$WORKSPACE_PATH" Genesis as a Databricks App
The repository also builds the full Genesis product — backend, React UI, agents, scheduler and Twin — as a single Databricks App, with no cluster and no container image. Local disk in an App is a cache: the App’sapp.yaml stores metadata, threads,
the SQLite-backed stores and Genesis-owned git repositories in a bound Lakebase
database and Unity Catalog volume, so they survive stop/start, redeploy and upgrade.
The App package also ships the genesis-ontology library sources and its
package.json, allowing SCAFFOLD to vendor ported logic into a Databricks App
install.
It signs users in with Databricks SSO (forwarded-token verification) and calls models
as the App’s service principal. The bundle requests the Databricks user-authorization
scope sql so a Databricks connection in Signed-in Databricks user mode runs agent
SQL as the chat user; Unity Catalog grants, row filters, and masks then apply. Users
must consent again the next time they visit after this scope is added. Apps created
outside this bundle need sql added to their user-authorization scopes manually. See
Databricks connections
for connection setup and limitations. Bind the required sql-warehouse resource to a
warehouse your users can use; each user needs CAN_USE on it. Marketplace postinstall
refuses an App without this binding, and the Asset Bundle requires the sql_warehouse_id
variable. See Databricks App signed-in user connections
for the seeded connection and behavior when no warehouse ID is bound.
AI Gateway and model serving endpoints
Genesis calls the Databricks serving endpoints configured for its models as the App’s service principal. AI Gateway policies on a serving endpoint—such as usage tracking, inference tables, rate limits, or guardrails—govern Genesis’s calls only when the customer enables AI Gateway for that endpoint in Databricks. Genesis neither reads nor changes those endpoint settings, and deployment does not enable them. Enable AI Gateway on every serving endpoint whose model calls it should govern, including endpoints added after installation. Enabling AI Gateway does not grant access: the App’s service principal also needsCAN_QUERY on each endpoint. Calling Unity AI Gateway model services instead
of serving endpoints is a separate provider configuration and is not used by
this deployment.
Serverless egress for connections
A Databricks App can reach only destinations allowed by its workspace’s serverless network policy. Before the first App install, allowgithub.com, release-assets.githubusercontent.com,
objects.githubusercontent.com, pypi.org, and files.pythonhosted.org so
the build can download Python 3.12 and its packages. Without them the build
fails and its log names the blocked host. Allowlist changes take about ten
minutes to apply. A redeploy of the same package can reuse the build cache;
changing Python or locked package versions requires downloads again.
When a failed connection test looks like a blocked
egress attempt, Genesis shows the destination and account-admin guidance on
Config → Connections. It links to the policy guide for the workspace’s
cloud (AWS, Azure, or GCP) and identifies which external host names belong on
the policy’s Egress → Allowed domains list. To make the change, an account
admin opens Security → Networking → Context-based ingress & egress control
in the account console, opens the network policy attached to the workspace, and
adds the names on its Egress tab under Allowed domains. After the policy
is saved, the change reaches the App in about ten minutes; restarting the App
is not required. The page also shows the query for recent denials:
For Vertica, the connection destination is its configured host and port
(default 5433). See Vertica connections
for the connection fields.
system.access schema. Allowed
domains accepts host names, not public IP addresses; for a public IP, connect by
the server’s host name and allow that name, or route the connection through a
Genesis Outpost. An egress allowlist cannot reach private or on-premises hosts:
use a private connection on the workspace’s Network Connectivity Configuration
for a service in the cloud network, or route through an Outpost inside that
network. For Recall.ai Meeting Bots connections, allow the selected region’s
host: us-east-1.recall.ai, us-west-2.recall.ai,
eu-central-1.recall.ai, or ap-northeast-1.recall.ai. Allow api.openai.com
when using an OpenAI (voice) connection. A Databricks App using the Gmail
tool also needs egress to gmail.googleapis.com. For unresolved names,
check the spelling first. See Connections —
Databricks App egress guidance
for what appears in the test result.
Power BI report creation also calls api.fabric.microsoft.com; allow that host
when the Databricks App creates reports. The service-principal tenant and
workspace requirements are listed in Power BI connection setup.
For Collibra, allow the hosts in the connection’s base_url and token_url;
when token_url is blank, it uses the base_url host.
For a LiteLLM Admin connection, also allow the host in its base_url.
See Ramp connection setup for Ramp egress requirements.
Usage reporting to the vendor
By default (metrics.mode set to BRIDGE, in the Marketplace package too), the App sends
usage data over HTTPS to the vendor’s usage service, stats.genesiscomputing.ai. When Genesis
AI is the only provider, billing uploads adapt to activity: every 30 seconds near the
allowance limit, every 60 seconds while recently active, and every 5 minutes while idle.
When no billing rows wait, no billing batch is due; the diagnostics stream can still upload
on its configured cadence. Diagnostics also ride along with billing uploads. Other
deployments keep the hourly upload cadence. metrics.bridge_upload_frequency_s (default
3600 seconds) controls the diagnostics upload interval; see the
configuration reference:
- usage counts that Genesis Credits are priced on, such as agent steps, chat turns and tool use, and unpriced activity counts for conversation threads and Missions. Their dimensions, hashing, and rate-card treatment are documented in Metrics. Where a count names them, agent ids and display names, tool names (custom and MCP tools included), model ids and the App’s local instance name are sent in clear; user ids, and the names of blueprints that are not Genesis’s own, only as unsalted SHA-256 hashes (anyone who already knows a user id can check it against its hash);
- diagnostic counts, also on by default: LLM calls and tokens with model and provider, messages
sent, active users, per-tool call counts, governed-action outcomes, blueprint phases, app runs
and execution-slot gauges. They are counts only, with no prompts, answers, SQL or other
content. To stop them alone, set
metrics.diagnostics_upload_enabledtofalse(or addGENESIS__METRICS__DIAGNOSTICS_UPLOAD_ENABLED=falsetoapp.yaml) and restart the App; - a record describing the install, recorded when the App starts, whenever any of it changes, and at least once every 24 hours. It contains the operating-system user and machine name of the App’s container; for up to 20 people who have signed in, the email domain in clear and an unsalted SHA-256 hash of the full address (the address itself is not sent); for up to 20 data connections, the type and host, for example your workspace’s address; a hash of the LLM proxy key when one is set; and launch and cloud details.
Genesis Credits pool
A Databricks App has a local pool of 500 Genesis Credits each month. A signed license can instead grant a credit allowance per month, per year, or once for the whole license term. See License Activation for how license credit periods and expiry behavior work. The Configuration → Activation page shows the pool balance and license credit terms; the balance also appears in the App banner and chat context panel. Activating a license refreshes the displayed balance. To turn it off, setmetrics.mode to DISABLED in Settings → Advanced Settings, or add
GENESIS__METRICS__MODE=DISABLED to the App’s app.yaml environment (a value set there wins
and cannot be changed in the UI), then restart the App. This stops all usage reporting to
the vendor, not only the install record.
The App package sets LOAD_BASEBALL_DB=false and LOAD_FORMULA1_DB=false: these bundled
SQLite samples are not available in an App because their connections are not registered,
so they do not appear in the Context Graph. On startup, Twin removes previously loaded
sample entries from its graph and search index. The Data page shows the Genesis lakehouse
and Unity Catalog when the required SQL warehouse is bound.
The admin-only durability report checks which declared
durable state was restored, including durable trees and git repositories.
Local disk space
The App uses node-local disk shared with other Apps on that node. Databricks sets no per-App disk limit and does not stop or restart an App when the node disk fills. Genesis’s disk guard warns about low space and refuses guarded writes; see disk space guard settings for thresholds and affected operations. The admin-only durability report also exposes disk capacity and Genesis’s measured state-file usage; see the report fields. The Twin’s own git clones are not covered by this guard. Databricks does not automatically restart the App after its server process exits. Thestart_genesis.py launcher supervises the server and starts it again 5 seconds
after a nonzero exit or signal termination. If the server crashes three times within
10 minutes, the launcher exits with the last status and the App becomes CRASHED
instead of restarting indefinitely. Stopping the App is passed to the server, and
the launcher starts nothing after the stop. The launcher also runs the state-snapshot
exporter and starts the server again after its snapshot handoff. A launcher or
container crash is not covered; monitor app_status.state for CRASHED and redeploy
the active source with databricks apps deploy <app-name> to recover it.
At each launcher start, it logs a volume mount: diagnostic about whether the
configured GENESIS_GIT_DURABILITY_VOLUME is visible under /Volumes and writable.
This check is read-only; Genesis accesses the volume through the Files API.
Inbound SCIM and SCIM-based sign-in restrictions are unavailable in the App;
Databricks SSO and the App’s CAN_USE permission control sign-in. See the
SCIM admin API behavior.
First administrator
While the App has no human administrator, the first verified person to sign in becomes an administrator. If the App’s service principal can read the App’s permissions and those permissions name a person, only the App’s creator or a person grantedCAN_MANAGE directly on the App can take the role. Otherwise,
the first person to sign in can take it; this is the usual case because the
App’s own identity is not on its permission list. Workspace administrators can
open every App regardless of its CAN_USE list, so sign in before granting
CAN_USE to others. Other users receive the App’s default user role. If all
human administrator roles are later removed, the next eligible person to sign
in after an App restart becomes administrator. The grant is recorded in the
audit log as role.granted with source databricks_app_first_admin.
Databricks App users receive roles from workspace groups by default: genesis-admins
maps to admin, genesis-power-users to power_user, and genesis-users to user.
An administrator can review these defaults and map other workspace groups in
Users → Group mappings. A custom entry for one of the built-in groups overrides
its default; other defaults continue to apply. Membership is read from the workspace’s
SCIM response at sign-in, so role changes apply at the person’s next sign-in. See
Group-to-role mapping for
the mapping setting and its environment overrides. When someone leaves every mapped group,
the App removes the Genesis role previously granted by those groups; roles an administrator
granted by hand on the Users page are kept.
Automated test identities
Databricks service principals cannot normally sign in as Genesis users. For automated tests on a Databricks App, a Genesis administrator can opt in by listing workspace service-principal application IDs inauth.databricks_app_test_service_principals (empty by default; see
Advanced Settings).
The forwarded OAuth token must resolve through the workspace’s SCIM Me endpoint
to the listed service principal. Each accepted identity has the stable subject
databricks-sp:<application id> and a non-routable
<application id>@uat.genesis.invalid email, and receives only the default roles
for new users. It never takes the App’s first-administrator seat and receives no
role through group mapping. Unlisted service principals, personal access tokens,
and the App’s own identity remain refused regardless of the list. Leave the list
empty on customer installs; this setting has no effect outside a Databricks App.
The App does not use Genesis’s default local Iceberg lakehouse. Its catalog
database and Parquet files would be stored on local disk and lost when the App
restarts. Genesis therefore disables the local Iceberg authentication mode
and refuses local Iceberg catalogs or warehouses. Instead, Genesis seeds
iceberg.genesis_iceberg with auth type databricks_app_identity: it accesses
Unity Catalog’s Iceberg REST catalog as the App’s service principal, in the
<catalog>.<app-name>_lakehouse schema beside the state volume. This connection
stores no credentials or location, and is confined to that schema. A Flow output
that omits its connection uses this lakehouse; if it also omits namespace, it
writes to the App’s lakehouse schema. Only administrators can create additional
connections of this type, and only inside the App. The App principal needs
USE_SCHEMA, CREATE_TABLE, SELECT, MODIFY, and EXTERNAL_USE_SCHEMA on
the lakehouse schema; its volume binding supplies USE_CATALOG. Unity Catalog
grants EXTERNAL_USE_SCHEMA only when the metastore has External data access
turned on (it is off by default) and the catalog is on your own cloud storage, not
Databricks default storage. Without it Genesis installs and works, but its
lakehouse is unavailable: the setup notebook’s postinstall and status say why.
An Asset Bundle install grants it only when deployed with
--var lakehouse_external_privilege=EXTERNAL_USE_SCHEMA. Use a regular
Databricks connection for other Unity Catalog data; it runs as the signed-in user.
The App package also sets GENESIS__SECURITY__CODE_ISOLATION=confine. Agent-run code is confined
with Landlock, seccomp, and namespaces; code execution is refused if the kernel cannot
enforce confinement. The packaged App cannot be built with code isolation overridden:
build_package.py refuses an app.yaml unless it sets
GENESIS__SECURITY__CODE_ISOLATION=confine. Local dbt execution is refused in the
App. The package sets DISABLE_NGROK to TRUE so a public
tunnel cannot bypass the Apps proxy sign-in. See the tool guides for the App’s
Talend,
SQLite,
sandbox, and
Git restrictions.
Azure Container Instances sandboxes also need the Azure connection’s declared
external-access destinations for the ARM API and the exec WebSocket; see
Azure connections.
See Databricks Action Tools
for the per-user execute_python session behavior.
The stdio MCP child processes also receive reduced environments in the App. The
system stats, field mapping, and dbt building servers receive an allowlist rather
than the server environment; other MCP children inherit runtime settings with
recognized credential variables removed, except for credentials their own
configuration declares or that the child needs. The scheduler retains its Lakebase
authentication credential when durable SQLite uses Lakebase. Twin does not inherit
environment variables mapped by the configuration schema to LLM, provider, or embedding
settings; it pulls those credentials from Genesis at startup and before scan cycles or
embedding batches, then passes them explicitly to provider calls. The Databricks provider
gives Twin a minted token, not the App’s client secret. These children are not an
isolation boundary: they run as the server’s user and can read the server process
environment. This filtering limits accidental exposure, including through the
system stats tool; it does not prevent a same-user process from accessing secrets.
See AI Providers — Digital Twin reload behavior
for provider configuration context.
The Marketplace image includes Node and npm but not npx, so a custom stdio MCP server
configured with an npx ... command will not start. npm exec is available as an
alternative.
GenesisApp AppKit previews also need Node.js 22.18 or later and npm on the server’s
PATH; see AppKit projects for the
runtime and package-source requirements. The Databricks App install restores its
shipped AppKit npm packages at startup. If a restore fails, it keeps any configured
non-empty offline path; otherwise it names an empty fail-closed path so an install
refuses instead of falling back to the public registry. The startup log reports the
restore result and the package path AppKit will use.
The App does not support email delivery or managed artifacts: an agent’s send_email
returns an error, and manage_artifact returns an error in the App’s SQLAlchemy metadata
mode. The image also lacks Java, the SQLite CLI, and ODBC drivers. Local Talend jobs and
the SQLite CLI are unavailable; SQL Server connections use pymssql instead of ODBC.
For Talend, use a remote Talend runner.
OCR
In a Databricks App, Tesseract is unavailable and theai_parse_document
method requires the configured volume and a Databricks service-principal
connection. See OCR volume configuration
for the setting, permissions, and upload behavior.
Public URL and OAuth callbacks
The Apps proxy sends requests to Genesis on localhost and supplies forwarded host headers from the caller, so Genesis does not use request headers to construct public links or OAuth callbacks in a Databricks App.GENESIS_PUBLIC_BASE_URL and
SERVICE_BASE_URL default to unset; set one in app.yaml env to pin the App’s
HTTPS URL. Otherwise, Genesis uses DATABRICKS_APP_URL when the runtime provides it,
then the url from the App’s own record (GET /api/2.0/apps/<name>). Genesis reads
that record with the App’s identity at startup and retries every minute until it is
available; this lookup is automatic and requires no setting. It works on every cloud
and does not require a grant to read the App record. If those sources do not provide
a URL, on AWS commercial workspaces (*.cloud.databricks.com) and GCP workspaces
(*.gcp.databricks.com), Genesis can derive
https://<app name>-<workspace ID>.aws.databricksapps.com or
https://<app name>-<workspace ID>.gcp.databricksapps.com, respectively. Databricks
documents the part before databricksapps.com as the region, so if the derived URL
differs from the URL on the App’s page, set GENESIS_PUBLIC_BASE_URL to the page’s
URL. OAuth providers accept callbacks only for registered redirect URIs; use the
callback shown on the App’s page when registering them. Configured URLs must use
HTTPS; a bare host is treated as HTTPS, and an http:// value is ignored.
NGROK_BASE_URL and FRONTEND_BASE_URL are not used in an App.
Some flows have a higher-priority URL override:
- Connection OAuth: the provider’s Genesis Base URL (
guide_base_url) takes precedence over the shared URL settings above. Register the displayed connection callback with that provider. - MCP OAuth discovery:
GENESIS_MCP_PUBLIC_URL,GENESIS_PUBLIC_URL, thenGENESIS_EXTERNAL_URL(all unset by default) take precedence over the shared settings above.
*.cloud.databricks.us) Apps do not have a derived URL; Genesis
uses the App record’s URL once it has been read, so no cloud requires app.yaml to be
edited just to set the public URL. Until that record is available, the public URL is
unknown and the server logs a warning naming GENESIS_PUBLIC_BASE_URL. In an App,
/api/config/ui-endpoint returns an empty string so the browser always calls the API
on the origin that served the UI. If no public URL can be resolved, OAuth sign-in,
Slack installation, and the CLI-install link are refused with HTTP 503 rather than
using localhost. The Slack manifest URL is checked before
creating the Slack app. MCP OAuth metadata and
WWW-Authenticate discovery challenges also return 503 when no MCP-specific,
shared, or App URL is available; other MCP requests, including preflights, continue
to work. See Hosted MCP for Claude Code
for configuring MCP OAuth.
Register the applicable callback URLs with the identity provider:
App telemetry
The App package runs Genesis underopentelemetry-instrument. The Asset Bundle points App
telemetry at <catalog>.<app_name>_telemetry, a separate Unity Catalog schema for the App’s
logs, metrics, and traces. It contains the tables otel_logs, otel_metrics, and
otel_spans. preinstall creates this schema. For a Marketplace install, turn on telemetry
in the App’s settings and select those three tables in that schema; the Marketplace
postinstall action reports whether the destinations match. Databricks applies telemetry
destination changes at the App’s next deploy. With telemetry enabled, Genesis emits
genesis.setup.duration for each startup step and
genesis.feature.usage for each built-in tool group; the setup histogram is not sampled.
Traces are sampled at 25%. Databricks also copies App stdout and stderr into otel_logs
(including APP and BUILD log sources); the OpenTelemetry SDK does not export log
records. With telemetry enabled, these exported logs remain available beyond the Logs tab’s
short buffer and survive App restarts. Grant access to otel_logs on the same basis as
access to the App’s logs.
The package sets these telemetry environment variables:
Genesis App spans use an attribute allowlist: route template, method, status, ports,
scheme, setup step, outcome, feature, error type, exception type, code frames, RPC
method, and MCP method name. Other span, event, and link attributes are exported as
[redacted]. Span names are rebuilt from safe values; client spans identify only a
dependency class (databricks, anthropic, openai, mcp, or other). Built-in
Genesis tool groups have feature names; MCP servers and custom tools use tool:custom.
Failed setup steps record the exception type and code frames with error status, not the
exception message.
If Databricks App telemetry is off, Databricks does not provide an OTLP endpoint and the
launcher restarts Genesis without OpenTelemetry instrumentation. The App continues to
run without exporting telemetry.
The package builder refuses an app.yaml that opts
out of any durable store with a *_ALLOW_EPHEMERAL variable. The sections below
describe each store; the engineering guide
(genesis_bots/apps/genesis_server/deployments/databricks/full_app/README.md) lists
the App resources, permissions and the deploy bundle, but is not shipped in the package.
Durable SQLite stores
Databricks Apps can erase their local disk when the host is replaced. To keep selected Genesis state across restarts, enable durable SQLite with a bound Lakebase PostgreSQL app resource. Genesis restores the remote copies before it serves requests, ships committed database writes to Lakebase before acknowledging them, and checks for due whole-database checkpoints every minute. This mode supports one App instance; it does not makegenesis.db metadata or arbitrary
files durable.
On a Databricks App, startup fails if durability is off and
GENESIS_SQLITE_DURABILITY_ALLOW_EPHEMERAL is not true.
The standalone harvester mode is refused in a Databricks App. If
HARVESTER_MODE=standalone, harvesting stays off until the variable is set to
in_process or removed; Apps default to in-process harvesting.
With Postgres thread storage, large tool-call arguments archived during
conversation compaction are also kept in the message’s Lakebase thread-storage
archive entry, as metadata rather than prompt content, and are excluded from
thread search. GET_COMPRESSED_PARAM_ARCHIVE can recover these arguments after a
restart. Genesis keeps up to 512 KiB per call and 8 MiB per conversation;
arguments over either limit remain only in the local archive file, which a
restart can wipe, and their stub includes a durability_warning. Arguments
archived before this behavior was available also exist only in the archive file.
Archived arguments within the limits remain in thread storage after compaction,
so compaction does not reduce the thread’s stored size or in-memory footprint by
those arguments. Large tool results are unaffected because their full text
remains in the message.
The durable databases are flows.db, blueprint_runs.db, debriefs.db, and
datasets.db under the Genesis storage root. Whole-file stores also include
agent skills, blueprint registries and document feeds, bot settings and defaults,
flow bindings, the sender-signing secret, knowledge-base and managed-artifact
registries, the skills repository, and the GenesisApp registry at
{STORAGE_PATH}/runtime/microapps/registry.json. Registry saves upload to
Lakebase before completing, and Genesis restores the registry before serving
requests, so the GenesisApp list survives host replacement. The App package
pins GENESIS__APPS__AUTOSTART_AFTER_RESTART=true for
apps.autostart_after_restart; set it to "false" in app.yaml to leave
apps stopped after a Genesis restart. See
Genesis Apps for restart
eligibility and failed-start behavior. Genesis-owned files
outside these stores remain local. Durable whole-file stores also include user
avatars (avatars/), uploaded configuration profiles (config_profiles/), and
branding logos (branding/). Each supported file write is uploaded before it
completes, and deletions are recorded remotely, so these assets remain available
after a host replacement. Bind a Lakebase postgres resource so its PG* connection settings
are available, and configure GENESIS_LAKEBASE_AUTH and
GENESIS_LAKEBASE_ENDPOINT as described in Durable git repositories.
The App package sets GENESIS_SQLITE_DURABILITY=postgres with the Lakebase binding.
Durable whole files over 256 KiB
WithGENESIS_SQLITE_DURABILITY=postgres, GENESIS_GIT_DURABILITY=databricks, and the bound
volume described in Durable git repositories, supported durable
whole files larger than 256 KiB keep their AES-256-GCM-encrypted bytes in
<volume>/genesis/durable_files/; their Lakebase rows record the location, size, and digest.
This applies to scheduled jobs, registries, settings, avatars and logos, GenesisApp state
archives, and blueprint outputs. Smaller files and files written before this behavior was
available remain in Lakebase. Uploading a large file before acknowledging the write adds about
0.3–0.6 seconds. If the volume is unreachable or the master key (GENESIS_MASTER_KEY) is
missing, the write is refused and leaves the previous file unchanged. Files larger than 2 GiB
are refused with 413.
Rewrites and deletions remove the replaced volume copy. A failed removal, or an upload left
behind by a later failed write, remains in the volume; there is no cleanup sweep for these
leftovers. At startup Genesis checks each copy against the size and digest in its Lakebase row.
A missing or damaged copy stops startup, except a damaged GenesisApp state archive: that app
starts without its state, an error is logged, and a state export identifies the archive. A copy
written under a different master key remains unreachable until that key is bound as the
previous key; see Rotate the master key.
Do not roll back to a Genesis version older than this behavior while these files exist. The
older version treats the volume-backed rows as damaged: restored scheduled jobs, registries,
settings, avatars, or logos can stop its startup, while a GenesisApp state archive or blueprint
output restored on first use can leave the app without its state or the output unreadable. The
next GenesisApp snapshot then replaces the archive, so rolling forward restores that empty
state. Take a state export before upgrading and restore it after any rollback. Do not rebind
GENESIS_GIT_DURABILITY_VOLUME while these files exist; the copies will appear missing.
Blueprint release modes, saved-version metadata, promotion history, and
production assignments are stored in
{STORAGE_PATH}/runtime/blueprints/versioning.sqlite3 and survive host
replacement with GENESIS_SQLITE_DURABILITY=postgres. The saved-version files
also need the Apps repository covered by Durable git
repositories; with git durability enabled, Genesis
rebuilds a missing version directory synchronously from its recorded commit on
the first operation that needs its files, after the Apps repository restore
completes. If the SQLite copy is available but the version files were lost and
the Apps repository is not durable, Genesis reports the missing files instead
of serving an empty snapshot.
When GENESIS_SQLITE_DURABILITY=postgres (default off; the Databricks App
package sets it to postgres), the Cost & Usage history used by the Costs page,
bot stats, and spend reports is also kept in durable SQLite at
datasets/genesis_cost_usage_cube_v1/live/cost_usage_cube_v2.sqlite. It is
restored as a whole file at startup, so boot time grows with the cube size. A
background writer sends batches to Lakebase; while Lakebase is unavailable it
holds and retries its batch. Facts still queued when the App stops can be lost
(normally the queue is under 2 seconds of facts); once 20,000 facts are queued,
new facts are refused and counted.
Mission replay data used by Live Overview and mission durations is also kept
in mission_replay.db and restored as a whole database at startup. It grows
with mission history and has no age-based retention; in a sample of 97 local
missions, replay data averaged about 0.3 MB per mission (0.2 MB median, 0.4 MB
at the 90th percentile, and 6.9 MB for the largest mission). The main server
process records replay events through a background writer. Events reach the
browser only after their Lakebase batch commits, normally within a quarter of
a second; queued events can be lost if the App stops before they are committed.
When Lakebase refuses writes, the writer holds and retries its batch. Its queue
holds up to 10,000 records; additional events are dropped and counted, with a
log on the first drop and every 1,000th drop. Deleting a mission also deletes
its replay through the writer. If the App stops before that deletion is stored,
the replay rows remain and are restored at startup, although the app does not
show them because mission listings come from the metadata database.
At startup, before serving requests, Genesis imports legacy NDJSON replay files
from disk or a state import, one Lakebase commit per mission, for up to 60
seconds. Files not imported within that period are read from disk until that
mission’s next replay write imports them; unreadable files are logged.
Usage metrics in metrics.db are also durable with this setting. By default,
the metrics database is placed under the storage root instead of beside
SQLITE_DB_PATH, restored as a whole file at startup, and committed writes are
shipped to Lakebase. Counters and bridge-upload state survive restarts, but
metrics not yet exported can be lost. Metrics have no retention, so startup
restore time grows with the database. An explicit metrics.destination is used
as configured and is durable only when it points to the durable metrics.db.
When a kept disk is upgraded, the first durable start copies the older default
metrics.db beside SQLITE_DB_PATH if no local or Lakebase copy already exists;
a deployment that wiped the disk cannot recover that older database. If the copy
fails, the old file is left in place, metrics are not recorded, and no empty
durable database is started; Genesis retries the copy at the next open and
startup.
With this setting, scheduled job definitions and scheduler run history are
stored in Lakebase and survive App restarts. The history includes run status and
output, as well as job creation, changes, pauses, resumes, and removals. After
startup, the scheduler schedules jobs and answers tools while restoring the
history database; history reads and clears return HTTP 503 until restoration
finishes. Older history files and files included in a state import are merged
into the durable history once, including when the same file is imported again.
App state exports include the history database. An import without that database
leaves the existing Lakebase history intact and merges any history files carried
by the import.
History is not cleared automatically, and run output is retained, so restoration
takes longer as the history grows. Events are queued in the scheduler process
and written shortly after they occur; queued events can be lost if the process
stops before writing them. Events can also be lost while Lakebase is unavailable
or while a restarted scheduler waits for its predecessor to exit. Those losses
are logged; jobs continue to run, but scheduler status reports no run counts
while history storage is unavailable.
Each materialized dataset snapshot is uploaded whole after it is built, before
it becomes active. When a host replacement removes a local snapshot, Genesis
restores it on its first read, so the first query waits for the download rather
than delaying startup. See Datasets for cache behavior
and Advanced Settings
for the size limit.
The admin state export restores all active dataset snapshots before building
its archive. The post-exit/CLI state snapshot exporter cannot restore snapshots
that exist only in Lakebase: it warns which active snapshots are omitted and
leaves their remote copies intact. On forced state import, only active dataset
snapshots are made durable; older imported snapshots remain local and are lost
on the next restart.
GenesisApp runtime state is also snapshotted, per app, to the bound UC volume
(genesis/app_state, one encrypted file per state file), with each app’s newest
snapshot named by one Lakebase catalog row. Snapshots run when an app stops,
during orderly server shutdown, and every five minutes while apps run; only the
files that changed are uploaded. At app start, Genesis restores that app’s state
before launching it, but never over a state directory an earlier start marked as
decided; an unmarked one (a wiped disk, or a restore cut off before it finished)
is restored over. If the restore keeps failing, the app still starts, without its
state: its status shows the error, nothing it writes is saved, and the first start
after every runtime of the app (main and versions) has stopped tries the restore
again. What it wrote meanwhile is not lost: it is moved to
runtime/microapps/app_state_unrestored/<app_id>/ under the storage root, outside
the app’s workspace, and the app’s status and log name the folder. That folder is
kept until the app is deleted, and does not count towards the app’s state limit.
In a local install without app confinement, app processes that survive a backend
restart are not tracked by the restarted backend, so stop running apps before
restarting it; a Databricks App’s processes never survive a restart.
State changed since the last snapshot can be lost if the App exits or its host
is replaced before another snapshot completes. An app’s state is limited to
256 MiB in total; larger state is not saved and the previous snapshot remains.
App state snapshots need the GENESIS_SQLITE_DURABILITY=postgres setting above
and the bound volume, and require no additional configuration. State that an
earlier version kept as one archive per app is restored at the app’s first start,
and the archive stays until the app is deleted, so a rollback to that version
restores the app’s state as it was at the upgrade. Without the volume, an
earlier version’s archive is still restored, but nothing new is saved.
Saved GenesisApp versions and file-level change history use the durable
runtime/microapps/versioning.sqlite3 and
runtime/microapps/change_history.sqlite3 databases. This preserves version
metadata, Production assignments, and change records with
GENESIS_SQLITE_DURABILITY=postgres. To preserve saved-version files and
change-history snapshots, the apps repository must also be covered by
Durable git repositories. When a host replacement
removes a saved version directory, Genesis rebuilds it synchronously from its
recorded Git commit the first time an operation needs those files.
The rebuilt version keeps regular files up to 100 MiB total. It omits .env and
.env.* files at any depth, installed dependencies and caches (including
node_modules, virtual environments, __pycache__, and tool caches), and empty
directories. Re-enter omitted secrets and reinstall Python requirements when
the version starts. If kept files exceed 100 MiB, saving the version is refused
with the largest files listed; move large data out of the app folder or remove
it before saving again.
For local GenesisApps whose change history is stored in Git, the working copy
is also rebuilt from its latest file-level checkpoint after a restart. The
rebuild happens on first use that needs the files, including start, file list,
read or write, export, comparison, saving a version or checkpoint, and
checkpoint restore or undo. Runtime entries such as .microapp_state,
.microapp_venv, and __pycache__ are carried over. Only regular files from
the checkpoint return: edits made afterward, symlinks, and files ignored by
the app or apps repository are not recovered. If the workspace already has an
app file, it is not replaced; an app emptied later in the same process is not
restored again. If the apps repository is still being restored, the first
file-dependent request returns 503 and can be retried. Snapshot-backed remote
and managed-WIP apps are not covered.
Durable git repositories
A Databricks App refuses to start when git durability is off unlessGENESIS_GIT_DURABILITY_ALLOW_EPHEMERAL=true says losing repositories is intended.
The App package enables durability with a Unity Catalog volume and Lakebase:
Volume-backed content blobs are encrypted and named by a content ID keyed to the
master key, store, and folder. Identical files share a blob only within the same
folder of the same store under the same key, so a volume reader cannot determine
that separate stores or folders contain the same file. Re-sealing a blob after
key rotation keeps its existing ID. When a blob already exists, a write trusts it
without reading or replacing it; if a principal with
WRITE VOLUME corrupts the
blob, later writes of that content leave it in place and reads remain refused
until the corrupt blob is deleted.
Pending Action Review proposals keep staged attachments as sealed files, using
the same storage format described in Durable chat uploads.
They are written before a proposal can use them and fetched on Apply only after
the requester’s scope is checked; the bytes must match the digest recorded at
proposal time, and a proposal whose copy cannot be written is refused.
Attachments kept before sealed files are moved from
genesis/action_review_attachment_snapshots/ into sealed files in the
background, at most 8 per minute. Each legacy blob must be encrypted and match
the size and digest recorded at proposal time before it is sealed; the sealed
record is checked against the bytes before the old blob is deleted. Blobs that
cannot be moved are logged and left in the folder, and blobs no record names are
not restored. Until moved, an attachment restores from its legacy encrypted
blob; a plaintext object is logged, left in place, and never moved or served.
If the volume cannot return an attachment at Apply, nothing is sent and the
proposal ends as not applied; propose it again. Attachments are deleted when the
proposal ends, with cleanup retried by the Action Review sweep if a delete
fails. Releasing an attachment deletes its sealed copy so it is not restored
after a restart, and deletes its legacy blob only when it has one. The catch-all
sweep does not take their folder.
New bundles for Genesis-owned repositories are sealed with chunked AES-256-GCM
before they are written to the volume. The git hooks receive only the public
key derived from the bound genesis-master-key at server start, so they can
seal bundles but cannot open them; only the server opens them during restore.
Git durability refuses to start if the master key is missing or is the
published development key. A bundle copied to another repository, renamed,
truncated, changed or sealed to another key is refused during restore, which
leaves the repository record live and its path reserved for a retry rather
than archiving the repository. Sealing does not prove who created a bundle: a
principal able to read the hooks’ settings can seal one that the server will
accept.
Bundles from before this behavior remain plaintext under their existing
.bundle names. The background sweep starts 30 seconds after startup and
every 5 minutes thereafter, compacting up to 8 repositories with plaintext
bundles per run into sealed bundles. It deletes the plaintext bundles an hour
later. Archived repository incarnations retain their plaintext bundles. A
Genesis version that predates sealed bundles cannot restore a repository
whose saved chain names one, and refuses a new repository at that path. Do not
roll back past a version that has run with git durability enabled. A bundle
sealed with a different master key remains unrestorable until that key is
bound as the previous key; see Rotate the master key.
GENESIS_GIT_DURABILITY accepts off, local, or databricks; another value
stops the server at boot. In databricks mode, Genesis-owned repositories under
GIT_PATH/repos store new Git objects as bundles in the volume and refs in
Lakebase. Commits and ref creates or updates made through Git or GitPython
commit hooks are recorded before Git acknowledges them; ref deletions are
recorded immediately afterward. Operations that bypass those hooks, including
git branch -m, GitPython create_head, and sandboxed Git with a separate
HOME, are picked up by a sweep every 5 minutes. Uncommitted work (edited,
staged, untracked and deleted files, as git status sees them) is not kept while
the catch-all sweep is disabled. The Databricks full App enables it by default
with GENESIS_DURABLE_BY_DEFAULT=true; enable it with GENESIS_DURABLE_BY_DEFAULT
on other deployments. When enabled, work is kept on each sweep walk and
put back after the repository is restored. Changes since the previous walk can
be lost on restart; walks use storage_sweep.walk_interval_s (default 120
seconds). A local file edited meanwhile wins over the kept copy. An edited
tracked file keeps its checkout’s mode (an executable script stays executable);
a new untracked file comes back without its executable bit. Gitignored files are
not kept. Each durable commit adds about 0.35 seconds of hook time plus a
0.25–0.6 second volume upload.
Use one App instance (compute_max_instances: 1) and a stable GIT_PATH. Boot
restoration runs for up to 2 minutes; a sweep starts 30 seconds after the
server is up and retries outstanding restores every 5 minutes. If a repository
cannot be restored because the volume or remote is unavailable, writes that
would create a new repository at that path are refused until restoration. A
repository or plain files created there in the meantime are moved aside before
the recorded repository is restored. Deleted repositories are detected by a
row scan every 30 minutes, so a deletion less than about 30 minutes before host
loss can be restored. Archived incarnations are purged after 30 days.
For a clone of a customer remote, the volume preserves only local work. At
restore, Genesis fetches the remote’s default branch and fetched tags using the
connection used to clone it (genesis.<remote>.connection). A remote that
permanently refuses the fetch, for example because it is unauthenticated or
missing, is archived as unrestorable so a new clone can replace it.
Rotate the master key
The App can read stored secrets, encrypted volume files, and git bundles sealed with either the current master key or one previous key. It always writes new data with the current key. Keep a copy of the currentmaster-key in a secure password vault. Losing it makes every
secret Genesis stores unreadable, and nothing can recover them.
Rotate in this order so the old key remains available for reads:
- In the App’s Databricks secret scope, copy the existing
master-keyvalue tomaster-key-previous, then replacemaster-keywith the new key. - Bind that secret to the App as
genesis-master-key-previouswithREADpermission. The binding suppliesGENESIS_MASTER_KEY_PREVIOUS; leave it unbound when no rotation is in progress. - Redeploy or restart the App. The keys are cached for the life of the process, so the binding and key changes take effect after a restart.
updated_at and never overwriting a value written in the
meantime. With GENESIS_GIT_DURABILITY=databricks (off by default outside the Databricks App
package) and GENESIS_GIT_DURABILITY_VOLUME configured as described under Durable git
repositories, the durable-git sweep (every 5 minutes) re-seals
git bundles: it reads each bundle chain’s header once with a ranged read and remembers the
result, then compacts a repository holding bundles sealed with the previous key into one base
bundle sealed with the new key. The sweep allows 8 such compactions, sharing its budget and
backoff with replacement of plaintext bundles; replaced bundles are deleted after an hour.
The admin-only durability report tracks re-sealing progress.
Archived incarnations are counted but never re-sealed, and become unreadable when the previous
key is unbound. Durable trees (the Twin, each GenesisApp’s state, and each document index) are
re-sealed by natural turnover, never rewritten in place. Each manifest member records the
fingerprint of the key used to seal its blob; a unit’s next snapshot pass treats a member under
another key (or one recording no fingerprint, as for members written before this release while
a previous key is bound) as changed and commits a new generation under the current key. This
includes idle units: the Twin’s interval pass (every 5 minutes) and the first document-index
export after the restart pass over every unit. A GenesisApp’s state is passed over only while
the app runs, so a stopped app continues to need the previous key until it runs again. A unit
over its quota commits nothing and keeps its previous generation; a pass whose copy is declined
also commits nothing and is retried at the next interval. After the new generation commits, the
old blobs are no longer needed, but each commit retains the previous generation’s blobs, which
are deleted only by the unit’s following commit (the next change). The admin-only durability
report includes a durable_trees count. Durable files in
<volume>/genesis/durable_files/—write-through whole files over 256 KiB, sealed files such as
chat uploads and attachments, and swept files—are also re-sealed by each one-minute durable-SQLite
maintenance tick when the volume is configured as above and a previous key is bound. The tick
runs when GENESIS_SQLITE_DURABILITY=postgres (default off; the Databricks App package sets it
to postgres). It reads the next 50 catalog rows that name a volume blob, reads each blob’s header
once with a ranged read, and copies blobs sealed with the previous key to new blobs sealed with the
current key, up to 256 MiB per tick (one larger file still moves alone). Only the row’s blob
reference changes, and only while it still names the old blob; if the row changed meanwhile, the
copy is deleted. The old blob is then deleted under its owner’s lock. The report’s
under_previous_key.volume_files count reflects what the last complete cycle left.
Legacy chat uploads in genesis/uploads/ and legacy attachment snapshots are not re-sealed in
place. The same one-minute background maintenance tick first moves them into sealed files, which
are sealed with the current key; attachments are short-lived. Archived git incarnations are
counted but never re-sealed. Unbinding or replacing the previous key makes any remaining files,
git bundles, or tree members still sealed with it unreadable. Keep the previous key bound until
the legacy stores hold nothing you need and every applicable under_previous_key count is 0.
State snapshot key-compatibility and restore requirements,
including snapshots taken while secrets are being re-sealed, are covered in State Snapshots
and Migration.
Durable document indexes
WhenGENESIS_GIT_DURABILITY=databricks (off by default) and the bound volume
is configured by GENESIS_GIT_DURABILITY_VOLUME above, Genesis saves changed
indexes as one encrypted export per index under
<volume>/genesis/document_indexes/indexes/. The newest export is named by a
Lakebase catalog row, so restore returns one complete export or none. Anyone
with READ VOLUME can read the full document text, so grant volume access as
you would access to the indexed documents. This also requires durable SQLite
(GENESIS_SQLITE_DURABILITY=postgres; its default is off, but the Databricks
App package sets it to postgres). With durable SQLite off, new exports are
not kept and an error is logged; snapshots made by an earlier version are
still restored.
Genesis exports changed indexes every 2 minutes. Changes since the last export
can be lost on any App stop, including a clean stop; there is no export at
shutdown. The interval is longer while a document sync runs. Exports
wait during syncs, including restore or re-embedding after an embedding-model
change. Index exports are restored in the background after startup when the
LLM provider is ready. Until an index is restored, search reports that it is
being restored, and changes to it are refused. Creating or renaming an index
is also refused until startup restoration finishes. If the export used the
same embedding model, restore makes no embedding calls; otherwise it embeds
once per chunk, and the next export saves those new embeddings. Failed restores
are retried after 10 minutes, with the interval doubling up to 6 hours.
A compressed export larger than 2 GiB is not saved and the previous export is
retained. Deleting an index removes its catalog row before deleting the index;
renaming first commits the index’s current contents under its new name. A
deletion that starts during export waits for that export and is refused with
“retry” after 30 seconds. A deletion during restore stops it at the next chunk
batch, or at the next chunk if restore is re-embedding for another model; it is
refused with “retry” if the download takes longer than 30 seconds. Failed
cleanup of an older-version snapshot is retried by the next export pass, but
does not prevent the deletion. The support-docs index is rebuilt from the
shipped documentation and is not included.
Legacy plaintext snapshots are removed after upgrade only for indexes with a
catalog row. An earlier-version snapshot, plaintext or encrypted, is not read
once its index has a catalog row, and a plaintext snapshot beside a sealed
export is never read. If an index has no catalog row and its first export is
over 2 GiB compressed, the export is not committed and its plaintext snapshots
remain available for legacy restore. Deleting or renaming an index also removes
its earlier-version snapshots; if the volume refuses cleanup, the next export
pass retries it.
Do not roll back past a version that has run with document-index durability
enabled. That version cannot see the catalog rows: indexes return as of their
newest encrypted pre-upgrade export, without later changes, while indexes that
had only plaintext snapshots or were created since are missing. A deleted or
renamed index stays deleted once its earlier-version snapshots are removed. If
cleanup was refused and rollback happens before a later export pass removes
those snapshots, the old name can return; this version ignores those snapshots
under the catalog tombstone. On roll-forward, indexes with catalog rows return
as of the last export, losing changes made by the older version; indexes
deleted while rolled back return. Take a state export before rolling back.
Export and restore need temporary local disk for the uncompressed export (which
can exceed 2 GiB), its compressed copy (up to 2 GiB), and the encrypted copy at
the same time.
Durable chat uploads
WithGENESIS_GIT_DURABILITY=databricks and the bound volume configured by
GENESIS_GIT_DURABILITY_VOLUME above, new uploads recorded by Genesis are sealed: a Lakebase
catalog row records each upload’s size, SHA-256 digest and encoding. Upload bytes up to 256 KiB
are stored inline; larger files are stored as encrypted blobs in
<volume>/genesis/durable_files/. The App principal needs WRITE VOLUME for larger files; a
failed volume write refuses the upload with 503. Replacing an encrypted blob with plaintext
under its recorded name does not serve that plaintext. Uploads kept before this behavior are
moved from <volume>/genesis/uploads/ into sealed files in the background, at most 8 per
minute. Each legacy blob is read only if encrypted, sealed, checked against the bytes in its
sealed record, and then deleted. Blobs that cannot be moved are logged and left in the folder,
and blobs no record names are not restored. Until moved, an upload restores from its legacy
encrypted blob; a plaintext object is logged, left in place, and never moved or served. This
also covers selected generated files in their own conversation folder: images from
image_generation, provider responses saved by connection_api_action, get_web_content
downloads and static-page saves, and dashboard or GenesisApp screenshots. These are recorded
like chat uploads and attached to the conversation. A generated file that cannot be kept or
attached because the volume write or conversation attachment failed remains on the current
server only and its tool result carries durability_warning. A file outside an eligible
conversation folder is not recorded and has no warning.
Screenshot capture is kept only for an existing conversation the caller may access; captures
that time out before finishing or are replaced by a retry are not kept. A screenshot without
a known user is readable after restart once the conversation’s bot has loaded. Other files
written directly into uploads/ and uploads moved to another path are not durable.
After a host restart, supported reads restore a missing local copy on demand, so the first such
read waits for the volume download. These include file download and view, the uploads repository
browser, file(action="read", repo_id="uploads"), PDF/PPT parsing, Databricks upload_file,
sandbox repository transfers, SQL loaded through a dataset’s sql_path, Launchpad pre-start
files, and message attachments. An attachment wiped before a turn is restored while the prompt
is built, so a wiped image is absent from that first turn’s image input but remains listed and
readable. Access is checked before download. Other file actions (including search, listings,
batch reads, and archives) see only files currently on disk. upload_file and sandbox transfers
from uploads are limited to the current conversation.
Deleting an upload through the API or file tools, moving it, cleaning up an orphan, or deleting
its conversation tombstones its sealed copy so it is not restored again, and deletes any legacy
genesis/uploads copy. Deleting a conversation also removes its owner’s own uploads that were
linked from a new-chat folder; it keeps another conversation’s file attached to a message.
Uploads never sent in a conversation remain stored, as do copies whose deletion failed; failed
deletions are logged, and legacy genesis/uploads leftovers are not swept automatically.
The App accepts uploads up to files.max_upload_bytes (integer, default 104857600 bytes / 100
MiB), configurable in the App’s Genesis configuration. This cap applies only when uploads are
durable in a Unity Catalog volume; other deployments do not apply it, though their server or
ingress may limit request size. For larger data, place it in a Unity Catalog volume and give the
agent its path.
Durable Twin data
The Marketplace App snapshots the Twin’s data togenesis/twin in its bound Unity Catalog
volume. It keeps the graph and registered sources, corrections, schemes, wiki, scan cursors,
usage ledger, vector index, and scan history. Undo copies are not included, so an undo does
not survive a restart. The App package enables this using the same GENESIS_GIT_DURABILITY,
GENESIS_GIT_DURABILITY_VOLUME, and Lakebase binding described in
Durable git repositories; the App principal needs WRITE VOLUME.
Twin snapshots also require durable SQLite (GENESIS_SQLITE_DURABILITY=postgres; its default
is off, but the Databricks App package sets it to postgres). If durable SQLite is off, no
Twin snapshot is kept and an error is logged.
Each snapshot is an encrypted tree generation in the volume, committed by one Lakebase catalog
row that names the newest complete snapshot. Restore returns that whole snapshot or none. Files
from legacy plaintext snapshots are encrypted when first uploaded by this version; those older
copies are not deleted and remain readable to anyone with READ VOLUME. Once the catalog row
has been written, Genesis no longer reads legacy-format snapshots.
Snapshots run every 5 minutes, within 30 seconds after a user’s change through the Twin’s
tools, and at orderly shutdown. The shutdown snapshot runs after GenesisApp snapshots and
must finish within the remaining shutdown window, ending no later than 10 seconds after
SIGTERM. Only changed files are uploaded. At startup, Genesis restores the newest snapshot
before the Twin starts when its graph is missing. A crash or expired shutdown window can lose
changes since the last snapshot. If a user change is still running at the shutdown deadline,
the final snapshot is skipped to avoid publishing an incomplete copy; the previous snapshot
remains intact, and changes since its last periodic pass can be lost (up to 5 minutes of scan
results, plus up to 30 seconds of user changes and the running change).
If the volume cannot be read after three startup attempts, the Twin starts empty in degraded
state and snapshots stop for that process, preserving the good remote copy. Changes through
the Twin’s tools return a durability_warning explaining they will not be kept. At the next
start, Genesis retries restoration over the intervening local writes; if the disk was kept,
those writes are moved to twin.unrestored-<time> on local disk, retaining the newest three.
Only one App instance may write this volume at a time; each of multiple instances would replace
the other’s snapshot with its own.
Do not roll back to a version that predates encrypted Twin snapshots: it cannot read the new
catalog or snapshots and restores only its older copy. If that version writes Twin data, a later
roll-forward with the disk intact commits those changes, but a roll-forward after the disk is
wiped restores the catalog snapshot and loses them. Take a state export before rolling forward
again. The first snapshot after upgrading from the legacy format uploads the kept files once and
creates the catalog row.
Ship DuckDB extensions without runtime internet access
If the App runs Genesis code that uses DuckDB extensions and its workspace cannot reachextensions.duckdb.org, package the extensions with the App source
and restore them before Genesis starts. Run the fetch command in an
environment with internet access and the same DuckDB release as the App:
fetch uses the installed DuckDB version, targets linux_amd64,
and downloads avro, iceberg, httpfs, aws, and delta. Each compressed extension
is split into parts smaller than Databricks Apps’ 10 MB per-file limit. The App
package builder does this with --duckdb-extensions, and its launcher restores them at
start and sets DUCKDB_EXTENSION_DIRECTORY; Marketplace builds leave the bundle out.
Without egress to extensions.duckdb.org, the first agent DuckDB connection cannot download
any missing extensions.
Agent DuckDB connections load extensions only from DUCKDB_EXTENSION_DIRECTORY (or, when it is unset, the duckdb_extensions folder in Genesis storage) and never DuckDB’s sqlite extension. A bundle must not contain sqlite_scanner: Genesis removes it from a writable directory when a connection opens, and refuses agent DuckDB connections, naming the file, when the directory is read-only.
To restore a bundle yourself, set
DUCKDB_EXTENSION_DIRECTORY to a writable directory and run restore before launching
Genesis:
nss_wrapper library by default; use --no-outpost-name-resolver to
omit it. When /etc/hosts is read-only, the launcher installs and preloads that resolver so host names
routed through Outposts resolve to their tunnel listeners; if setup fails, Genesis starts
but those names do not resolve, and the App log explains why. See
How the Outpost signs in.
When GenesisApp restarts, the App launcher reaps exited orphaned setup and namespace-init
processes, allowing Genesis’s own Outpost connections to reconnect without restarting the
Databricks App.
Build the App package from the repository root (needs Node 24 and yarn for the UI). The
builder writes a new output directory: a few root files, a Python 3.12 lock, and the source
archive — tracked runtime source, the UI source and the UI built from it unminified with
source maps — excluding deployment tooling, secrets and untracked local files. It also
exports the Mintlify documentation to static HTML and includes it for the App’s in-app
/docs pages; this build step installs the pinned Mintlify CLI from npm and requires Node.
The package also includes the text of Genesis documentation and the pinned
Databricks AppKit 0.90.0 documentation for search_genesis_docs. Runtime
documentation is packaged, so the App does not fetch the source pages from the
public internet at runtime. At a cold start, the App indexes the packaged
docs in the background; search can return fewer results until indexing finishes.
AppKit results are identified as third-party documentation, not Genesis content. When
the install keeps Genesis docs internal, Eve uses the packaged docs rather than directing
users to the public docs site; if the built-in search is unavailable, Eve says so instead
of linking to the public site.
The UI’s
own source maps retain mappings and source paths but omit embedded source text to reduce
their size; third-party chunk maps are removed. It checks
that the backend imports from the packaged tree, and makes no Databricks API calls. Add
--duckdb-extensions to bundle the extensions above. The package carries a Databricks
Asset Bundle (databricks.yml) for deploying it; see
genesis_bots/apps/genesis_server/deployments/databricks/full_app/README.md.
The package check also requires RBAC_DEFAULT_ROLES in app.yaml as a JSON list without
admin; unset or invalid values are rejected because the App manifest names the roles
new users receive.
Install from a private Python package index
The package builder also writesoffline_install/requirements.txt, an exact
package list for Linux x86_64 and CPython 3.12, and the matching
offline_install/overrides.txt. Make the listed package versions available
from your private index or wheelhouse. For an offline wheelhouse, install with
the overrides file; without it, the resolver can reject versions Genesis
intentionally runs beyond another package’s declared bound. For a private
index, use the same requirements and overrides files with your configured index:
uv pip check for those overrides are
expected. The requirements list is exported from the package’s lock for the
App’s Linux and Python target, not for the machine that builds the package.
Chromium-dependent features
The full-App runtime provisions Playwright’s Chromium headless shell and its Ubuntu libraries without root orapt-get install. The App launcher does this before
starting the backend, by default, from the browser the release package ships. Set
GENESIS_DATABRICKS_CHROMIUM to false (or 0, no, off) in app.yaml to turn it
off.
The release package ships them: chromium_bundle/ holds Chrome headless shell
158.0.8127.36 (Chrome for Testing Stable, which Playwright 1.64.1 drives; linux x86-64) and the 54 Ubuntu
22.04 packages it needs, fetched when the package is built and checked against the
SHA-256 each is pinned to, in 18 parts of 9 MiB and a manifest.json (about 163 MB).
THIRD_PARTY_CHROMIUM.md beside it lists every artifact with its version, source URL,
size, SHA-256 and licence. At start the launcher runs the command below. In a package built with
--no-chromium-bundle it leaves out --bundle-dir, and the helper downloads instead:
--bundle-dir pointing at the shipped chromium_bundle, it makes no network call: it checks every part, the reassembled archive and each
artifact against its pinned digest, unzips the browser and extracts the packages with
dpkg -x into one generation directory under $HOME/.cache/genesis-chromium/generations
(about 340 MB; twice that while a refresh replaces one), and checks the pinned browser’s
version and libraries with --version and ldd. The environment file exports
PLAYWRIGHT_BROWSERS_PATH, GENESIS_CHROMIUM_SYSROOT, and
PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, so browser launches use the verified executable
with its libraries available. Chromium-dependent features include PDF export, screenshots,
and web browsing. It also supports
signed-in screenshots of a deployed GenesisApp through
apps_action(action="CAPTURE", runtime_type="databricks_apps"); see
GenesisApps Tools for the sign-in connection
and capture options. Its font configuration prefers DejaVu Sans for text before
Noto Color Emoji, so screenshot digits render as text rather than emoji keycaps.
The App log records the Chromium setup with one line:
- Fresh start, and a stop/start (a new host,
$HOMEempty): the bundle is unpacked, then the browser version and libraries are checked, a few seconds. - Redeploy of the same release (
$HOMEkept): nothing is unpacked; only thelddand pinned-version checks run. - Redeploy of a release that ships another bundle: it is unpacked into a new
generation, browser and libraries together, and checked for its pinned version and
libraries there. Only then
does one atomic switch (
$HOME/.cache/genesis-chromium/current) make it the one in use. A failure before that switch, including an interrupted start, leaves the previous generation complete and in use, and the next start tries again. If the start fails after the switch, before it publishes the browser to the server, that start runs without a browser and the next one uses the new generation. The launcher removes older generations after setup, on every start, but only while no other start on the same disk is running. - A missing or corrupt part: provisioning fails and names the part. If a browser an
earlier start set up still passes the
lddand pinned-version checks, it stays in use and browser features keep working; otherwise (a fresh start, or either check fails) Genesis runs with browser features unavailable. A browser older than the pin, or one that cannot identify its version, is not kept in use. Each refusal says what failed (for example “the packaged browser’s part chromium.tar.007 does not match its SHA-256”) rather than asking for a setting that is already on. - A lost or damaged bundle manifest: the package’s own
source/manifest.jsonrecords that it ships Chromium, so the launcher still sets the browser up from the package. The helper refuses, naming the manifest, and nothing is downloaded.
--no-chromium-bundle has no browser unless
GENESIS_DATABRICKS_CHROMIUM=true, which downloads the same pinned browser, checked against
its SHA-256 (storage.googleapis.com), and the packages (archive.ubuntu.com,
security.ubuntu.com) at start instead, within a 180-second deadline.
Turning Chromium on for a migration install
A Workshop-to-AppKit migration proves the rebuilt app by reading its deployed page. Without Chromium, the proof reads each page over HTTP with the prover connection’s token instead. That still checks the values the page rendered and the markup of its title bar. It does not check what each chart and grid drew, whether widgets are drawn with no room or over one another, or the app’s look. The run can then reach only “verified with indeterminate”. Each page in the proof names the instrument that read it (inspected_by: browser, http or none). The run summary’s page_instruments
lists the skipped checks and names this setting.
The release package sets the browser up by default, with no egress, so a migration
install normally needs nothing. If its pages read inspected_by: http:
- Check the App’s start log for the
genesis-offline: Chromium …line. If the log names a setup failure instead, fix what it names and restart the App. - If
app.yamlsetsGENESIS_DATABRICKS_CHROMIUMto a false value, remove it and redeploy. A package built with--no-chromium-bundleneeds it set to"true", and egress to the hosts above. - Prove the app again. Its pages now read
inspected_by: browser.
iam.current-user:read is enough), a genesis-master-key
secret resource, postgres and volume resources, and chat and embedding serving
endpoint resources with CAN_QUERY. app.yaml sets
GENESIS__PROVIDERS__DATABRICKS__CONNECTION__AUTH_MODE=app_identity and reads every
workspace-specific value from those resources; calls never fall back to personal
tokens. See the
Databricks App identity and provider configuration.
The package carries a Databricks Asset Bundle (databricks.yml) that requires Databricks CLI
1.19 or later; older versions refuse to deploy the bundle. Choose a catalog you own and can
create schemas in. List available catalogs with databricks catalogs list; Marketplace-
provisioned workspaces often have workspace rather than main. Create the master key once,
then deploy and start the App:
databricks-claude-opus-5-5. To use another endpoint served
by the workspace, add --var chat_endpoint=<endpoint> to the deploy and run commands; list
endpoints with databricks serving-endpoints list. For App URL requests to /api/healthcheck
or admin reports, use a Databricks OAuth token: personal access tokens receive HTTP 401.
Configure an OAuth CLI profile with databricks auth login --profile <name> and obtain its
token with databricks auth token -p <profile>.
The dev target uploads the package from your machine. staging and prod instead deploy
a release tag from the private genesis-computing-ai/genesis-databricks-app Git repository;
provide --var git_url=<repository> and --var git_tag=<release-tag> when deploying those
targets. Release candidates use tags such as v1.7.3-rc.1, and GA releases use tags such as
v1.7.3, matching the versions of the container and Snowflake releases. The release
workflows publish and deploy these tags to two Apps: every RC to genesis-alpha (the
alpha App), and every GA to genesis-internal-test (the App the Marketplace listing ships).
An App already running a newer tag is left unchanged; check its running tag before relying
on a successful deploy. Dev and RC
package builds also publish a GitHub Release in genesis-computing-ai/genesis-databricks-app,
marked as a pre-release; dev versions use the Genesis release line as vX.Y.Z-dev.N, and
the package metadata version follows that release version rather than a static package version.
RC publishing
is controlled by deploy_alpha_databricks on Release: Create RC or Release: Create New,
on by default. GA package publishing is mandatory on every real GA; skip_databricks_deploy
skips only the deployment of the Marketplace listing’s App. Publishing requires the release GitHub App’s DATABRICKS_RELEASE_APP_ID and
DATABRICKS_RELEASE_APP_PRIVATE_KEY; without them an RC or dev publish is skipped with a
notice, and a GA fails, because a GA is not finished without its package. Deploying also requires
DATABRICKS_HOST, DATABRICKS_CLIENT_ID, and DATABRICKS_CLIENT_SECRET for an OAuth M2M
service principal, not a personal access token. Without those deployment credentials, the
RC Databricks preflight fails before its package is published; a GA skips the listing App
deployment with a notice. After a dev release, cleanup retains the
five newest unused vX.Y.Z-dev.N tags, preserves tags used by an App or active deployment,
and removes unused legacy databricks-app-*-main.* tags. RC and GA tags are not pruned.
GA deploys the release tag to the App used by the Marketplace listing. Customers see
an update only after the provider submits a new listing version in the Databricks
provider console (Edit listing → Assets → next version), which snapshots that
App, and Databricks approves the listing version. The provider’s ability to submit a
new version through CI or an API remains an open partner-operations question. Do not
roll back past a version that has run with git durability enabled; older versions
cannot restore repositories with sealed bundles. See
Durable git repositories for the migration and key details.
Each bundle target has a separate App name and its own Lakebase
project, Unity Catalog volume and schema, so environments do not share state. Create the
secret scope named for that App and its master-key before its first deployment.
bundle destroy -t dev deletes the dev App and its Lakebase project, volume and schema,
permanently removing its data; staging and prod protect their data resources from bundle
destruction.
Right after the App first starts, sign in before granting anyone else CAN_USE;
see First administrator. The MEDIUM App size is billed
at 0.5 DBU per hour while running; stop the App when it is not in use
(databricks apps stop <app-name>).
MEDIUM remains the Marketplace default. A disposable App probe measured its container
limit at 8 GiB of memory and 2 vCPUs; Genesis’s own memory use could not be measured in
the App, so confirm capacity against your workload before changing the App size.
In the 2026-10-02 Marketplace rehearsal, a redeploy became healthy 56–57 seconds after
the Genesis process started (82–92 seconds end to end); a stop/start took 218 seconds
end to end, including 103 seconds for compute provisioning. These are observed timings,
not service-level guarantees.
During a redeploy or stop/start, Databricks shows its “App Not Available” page until
the new process listens (about 50 seconds on a redeploy in a 2026-10-06 measurement).
Genesis then shows its “Loading Genesis” overlay with live progress until ready (about
12 seconds after a redeploy). Clients that open a WebSocket before Genesis is ready
should retry; see the unified WebSocket handshake behavior.
Marketplace install and removal
For a customer install from the Databricks Marketplace, use thegenesis_lifecycle.py
admin notebook instead of preparing resources with the development bundle commands above.
The package ships a customer-facing README.md, which the listing attaches as its readme,
and a SECURITY.md policy at the package root. The README covers the product, data handling,
requirements, installation, upgrades, removal and support; the policy describes access,
encryption and vulnerability reporting.
Bring it into the workspace before installing the listing, in one of these ways:
-
Git folder (recommended). Choose Workspace → Create → Git folder and enter
https://github.com/genesis-computing-ai/genesis-databricks-setupas the repository URL, then opengenesis_lifecyclein the new folder. Nothing is uploaded. Pull only when upgrading Genesis, then runpostinstallagain; the restart job runs this notebook as it is in the folder. -
Import from a URL. Open Workspace → Users → your email, then use that folder’s
⋮ menu → Import → URL and paste
If restricted egress prevents Import → URL from fetching
raw.githubusercontent.com, downloadgenesis_lifecycle.pyfrom that address and use Import → File from the same folder menu. -
Databricks CLI. From a downloaded copy, with your own email in the path:
File upload failed with error: requirement failed: undefined/genesis_lifecycle is not absolute,
the Import dialog was opened without a target folder (from the workspace home page, Recents,
or the top-level New → Import). The file is fine: open a folder first, such as
Workspace → Users → your email, and import from that folder’s ⋮ menu, or use the
Git folder or the Databricks CLI.
Each GA release publishes its setup notebook there when publishing succeeds. Publication is
skipped when the release GitHub App’s secrets are not configured, and a publish failure does
not fail the release, so main can lag until publication is rerun. To pin a release, replace
main with its tag, such as v1.20.0. Keep the notebook in a folder you keep, such as your
home folder, not Drafts: the restart job that postinstall schedules runs it from that path.
Run it as a workspace admin: connect it to serverless and click Run all. A Genesis
setup form opens below the code. Pick an action, check the App name (default genesis) and
catalog (default: the workspace’s current catalog), and click the run button. The form shows
the Data, Confirm and Delete data fields only for the actions that read them, and changes
nothing until you click. The status action changes nothing: it lists what the install has,
what is missing, and the next step. Run as a job, the notebook takes the same names as job
parameters (action, app_name, catalog, confirm, delete_data, data).
Before installing the listing, run preinstall. Lakebase Postgres must be enabled in the
workspace first. A workspace admin can enable this preview from the workspace avatar →
Previews → Lakebase Postgres. If it is off, preinstall stops without creating
resources. Allow a few minutes for the preview to take effect, then run preinstall again.
It creates the Unity Catalog schema
<catalog>.<app_name> and its genesis volume, the Genesis lakehouse schema
<catalog>.<app_name>_lakehouse, the telemetry schema described in App telemetry,
the Lakebase Autoscaling project <app_name>, and secret scope <app_name> with a generated
master-key. It records a random install id on these resources and prints what to enter in
the install form: the App name and six resource bindings: postgres, volume,
genesis-master-key, chat-endpoint, embedding-endpoint, and sql-warehouse. Enter the
printed values. The install manifest provides help text but no field defaults, so use the
values printed by preinstall. During a key rotation, also bind
genesis-master-key-previous as described in Rotate the master key.
Leave it unbound otherwise: the App’s log then shows error resolving resource genesis-master-key-previous at every start, which is expected, and the next Genesis line
says so.
When endpoint listing succeeds, preinstall suggests the highest-version ready endpoint
matching databricks-claude-opus-<version> for chat-endpoint, or the highest-version
databricks-claude-sonnet-<version> when no Opus endpoint is ready, and suggests
databricks-gte-large-en for embedding-endpoint when that endpoint is ready. Model
availability varies by workspace. It also suggests a SQL warehouse, preferring serverless
and then running warehouses; choose one your users can use because Genesis runs Unity
Catalog queries on it as each signed-in user. If there is no suggestion, choose a ready
endpoint or usable warehouse yourself. If preinstall generates the master key, it prints a
reminder to keep a secure backup as described in Rotate the master key.
This action is idempotent and never replaces an existing master key. It refuses to adopt
same-named resources without this install’s ownership marker; choose a different
app_name if a resource belongs to another install. Lakebase project creation finishes
in the background and can take up to a minute.
After installing and configuring the App, run postinstall to verify its resource
bindings and permissions, single-instance setting, and user-authorization scopes, then
grant the App service principal the lakehouse permissions on
<catalog>.<app_name>_lakehouse. Run this after the App exists, so its service principal
can be identified. Ensure the App has the sql user-authorization scope (see Genesis as a
Databricks App); add it in the App’s authorization settings
if it is missing before running postinstall. The action reports the App state, URL, and
lakehouse schema, and whether the telemetry destinations are configured as described in
App telemetry.
When run from the imported notebook, postinstall also schedules the <app_name>-watchdog
job, which checks every five minutes and redeploys the active source if the App is crashed.
If postinstall is run outside the notebook, it schedules no watchdog; run the notebook’s
install_watchdog action instead.
Open the App and sign in before granting anyone else CAN_USE; see
First administrator.
Grant Genesis access to customer data
Bind the optionalsql-warehouse resource before granting data access. The App’s
own service principal must not run user-written SQL: it can read the App’s secret
scope and therefore the master key. grant_data provisions a separate
<app_name>-data-reader-<install id prefix> service principal with no access to that scope.
The notebook finds the reader by the client id it keeps in the App’s secret scope, so a reader
an earlier version named <app_name>-data-reader keeps working.
After postinstall, run the setup notebook’s grant_data action as a workspace
administrator. Set data to a comma-separated list of catalogs or catalog.schema
names. Without confirm, the notebook shows the planned setup and GRANT statements
but changes nothing. Set confirm to the exact App name to create or use the reader,
give it CAN_USE on the bound SQL warehouse, and apply the read grants. For example:
USE CATALOG and BROWSE; each named schema receives
USE SCHEMA and SELECT. Naming a catalog alone grants those schema privileges
throughout that catalog. BROWSE exposes names and metadata for the whole catalog,
even when only specific schemas were named. Every Genesis user allowed to use the
connection can read what the reader can read, regardless of their individual Unity
Catalog permissions. The reader is also a workspace principal in the users group,
so it can read data granted to all users.
When Unity Catalog refuses a query on either built-in data connection for a missing
privilege or reports an object as not found, the failed query result keeps its original
error and adds an access_hint. Eve is instructed to pass the hint on. It identifies
whether the signed-in user or the data reader lacked access, names the missing privilege
and object, and provides the applicable GRANT statements. For read access, the reader’s
grants include USE CATALOG and BROWSE on the catalog plus USE SCHEMA and SELECT
on the schema; the signed-in user’s grants omit BROWSE. If the error names an incomplete
object path, the hint marks the missing catalog or schema with placeholders. It may also
include the grant_data setup-notebook step for the reader. Genesis never runs these
grants: the object’s owner, someone with MANAGE on it, or a metastore admin must apply
them. A not-found hint says the object may be invisible to that identity; it does not
claim the object is absent. The data reader is read-only, so the hint never recommends a
write grant for it.
Instead of applying the grants themselves, users can ask Eve to request access from the
object’s owner through Databricks. Eve offers this option after an access_hint; it calls
request_databricks_access
only when the user asks. The request covers the catalog and, for a schema or table, its
schema, with read privileges only. A data-reader request also includes BROWSE on the
catalog. The request is for the identity that lacked access: the data reader for
genesis_databricks_app, or the signed-in Databricks user for genesis_databricks. It
waits in Action Review until a person approves sending it. Genesis sends the approved
request through Databricks’ request-for-access API (Public Preview) using the App’s own
token; no additional scope is needed. Databricks routes it to the configured approver
(by default, the object’s owner’s email). Nothing is granted until that approver accepts
in Databricks. If Databricks refuses the request, such as when no approver is configured,
Eve can provide the GRANT statements from the original hint instead.
Use revoke_data with the same data format and exact App-name confirmation to
preview or revoke grants. Revoking a schema removes only that schema’s direct grants;
revoking a catalog removes the reader’s catalog grants and its grants on every schema
in the catalog. If the reader’s schema access is inherited from a grant on the whole
catalog, revoke the catalog first, then grant access to the schemas to keep. The
reader’s OAuth secret lasts two years. Run rotate_data_reader with exact App-name
confirmation to replace it; Genesis picks up the new secret within five minutes.
Uninstalling with delete_data also deletes the reader, after deleting its OAuth secrets and revoking its grants on
every catalog where it holds one and on that catalog’s schemas. grant_data always grants
the catalog with any schema; a schema grant made by hand in a catalog where the reader holds
nothing is not found, and the reader has no secret left to use it. A workspace whose identities the account manages (every Unity Catalog workspace) keeps the reader in the account after the workspace deletes it, with no access left; an account admin can delete it there. The
status action names such leftovers when the workspace lists them, which can take a while
after the uninstall. See Databricks App data
reader connections
for connection access controls and usage.
To remove only the App, run uninstall and enter its exact name in confirm; leave
delete_data empty. To delete its data as well, enter delete <app_name> data in
delete_data. Before deleting anything, the notebook verifies the App is bound to this
install’s master key, the marked resources belong to this install, and the schema and
Lakebase project contain no additional objects it cannot safely remove. The lakehouse
schema may contain tables Genesis wrote there, but no other object types. Schema and
Lakebase listings follow every REST API page; schema checks include volumes, tables,
functions and registered models. To detect objects the workspace admin cannot otherwise
see, the admin must have BROWSE on the catalog. A refusal leaves the App and data in
place. Data removal deletes the Lakebase project, volume, schema, lakehouse schema and
its tables, telemetry schema and its tables, and secret scope (including the master key).
The Lakebase project is purged, not soft-deleted, so its name is free for a new install at
once. A project of the App’s name deleted outside the notebook keeps that name until it is
purged; preinstall and status say until when.
