Current user endpoint
GET /api/auth/me returns the signed-in user’s information. With authentication
enabled, user.role reports the effective role derived from persisted RBAC
assignments; for example, an administrator is reported as admin, rather than
the legacy user value.
Blueprint versioning and access
These endpoints are mounted under/api/blueprints/... and cover Blueprint
Library inventory, versioning, and role-based access management for blueprint
workspaces.
Blueprint versioning follows the same edit and promotion model used by Genesis
Apps: a blueprint can stay in standard mode or opt into versioned mode with
immutable saved versions, a production assignment, and a mutable working copy.
When authentication is enabled, Genesis resolves blueprint ownership from
blueprint_manifest.yaml using the top-level created_by field, with fallback
to legacy blueprint.created_by metadata and, when needed,
origin.created_by_user_id. The owner automatically satisfies Blueprint RBAC
checks on these routes, and newly created or copied blueprints are owner-only
by default until you add role grants. When a caller imports a blueprint ZIP as a
new local install or separate copy, Genesis sets created_by to the importing
user so they can access the installed copy immediately; archive creator metadata
is preserved in origin when the ZIP does not already include that block.
When authentication is disabled, Blueprint RBAC checks do not block requests
on these routes.
HTTP authentication refusal responses
When an HTTP request is refused by the authentication middleware, Genesis returns the same JSON error envelope used by the rest of the API rather than a bare response string:error_type identifies the refusal category: authentication for 401,
forbidden for 403, and service_unavailable for 503. Other server-side
refusals use the shared internal category when no more specific status
mapping exists. HTTP 410 Gone uses error_type: "gone"; for example, a
dataset snapshot that is no longer available after a restart cannot be retried
as-is and the dataset must be refreshed. Genesis also returns the same value
in the X-Request-Id
response header. Clients can use request_id or that header to correlate the
refusal with server logs, including when HTTP request logging is disabled.
For an HTTPException raised with structured detail fields, Genesis also
returns those fields at the top level of the JSON response. The top-level
error is the human-readable sentence from the detail’s error or message
field when available; error_code and other structured fields remain separate
for clients that need to branch on the refusal.
An unexpected server error on a person-attributed non-read request may also
include the top-level support_diagnosis object with the failure signature and
diagnosis status. This is present only when automatic diagnosis is enabled and
the request is eligible; ordinary GET, HEAD, and OPTIONS failures, expected
errors, and machine or delegated requests do not receive it. See Support Agent
configuration and the
diagnosis endpoints.
Features unavailable in a deployment can return HTTP 501 with
error_type: "not_available_here"; the error field gives the reason and
available alternative. Browser-dependent features also use this response in a
Databricks App deployment when Chromium is not included. Databricks App SCIM
endpoints use this response for admin routes; the /scim/v2 routes return the
corresponding SCIM error shape.
For a missing or invalid credential, the error detail names the configured
authentication provider and explains the accepted forms: an
Authorization: Bearer <access token> issued by that provider or a Genesis
service credential in the X-Genesis-Service-Token header. The detail also
distinguishes authentication failure from a separate 403 permission refusal.
API clients should preserve and display the full 403 refusal detail on affected
routes: it includes actionable administrator guidance, not just a permission ID.
See the RBAC Practical Guide for
the permission labels.
HTTP API routes never accept a sign-in token in a token query parameter.
auth.allow_query_token applies only to the legacy WebSocket query-token
fallback; send HTTP credentials in the Authorization header or session cookie.
For the credentials most commonly used by API clients, the refusal identifies
which credential was rejected: a Genesis personal access token uses
Authorization: Bearer gp_... and points to POST /api/auth/pats to mint a new
one; a sandbox thread token uses Authorization: Bearer gsk_... and expires with
its sandbox run. These credentials are not interchangeable. Internal endpoints
that explicitly require X-Genesis-Internal-Token report whether that header was
absent or present but unrecognised and do not accept an Authorization: Bearer
token or a session cookie as a substitute.
Some refusals preserve a machine-readable error code and add existing
response fields alongside the envelope. For example, a demo access denial
continues to use error: "demo_access_denied" and may include reason,
detail, and redirect_to.
When the demo gate denies an identity, an HTML browser request is redirected
with HTTP 303 to the refusal page; non-HTML requests receive HTTP 403 rather
than a missing-credential 401. The hosted /mcp/ transport also returns
403 for this denial.
Requests from local agent code
The local agent-run guard can refuse a request before ordinary authentication is evaluated. It returns HTTP403 with a JSON detail describing the refusal;
with white-labeling on, the refusal text uses the configured product name in
place of “Genesis”; protocol identifiers remain unchanged. WebSocket requests
are closed with code 1008. This response is separate from the authentication
refusal envelope above. On Linux, package installation
builds for managed agent environments and GenesisApps build commands cannot
call Genesis; their API requests are refused by this guard. See Local agent-run
API access
for the credentials and routes accepted from a run.
JSON response transfer
Eligible unencoded whole JSON200 responses use zstd compression when the client sends
Accept-Encoding: zstd and the response is at least 32 KiB. Smaller responses,
streamed responses, and non-JSON responses are not compressed by this middleware.
Eligible whole JSON 200 responses to a GET under /api/ also get a weak
ETag and, unless the route sets its own cache policy, Cache-Control: private, no-cache.
A client can send that tag in If-None-Match; an unchanged response
returns 304 Not Modified without a body. Genesis still runs the route and
checks the caller’s access before returning 304. The default policy keeps a
response in the caller’s browser, not shared caches.
Genesis Desktop sign-in errors
GET /api/desktop/auth/login returns HTTP 400 with
error_type: "bad_request" when the Genesis backend listens on a port that
Genesis Desktop does not register for sign-in callbacks. The response’s
payload.reason is sign_in_port_not_registered, and payload.sign_in_ports
lists the supported ports (47080–47083). An invalid
desktop.callback_relay_url remains a 400 validation error.
Genesis Desktop sign-in dialog
GET /api/desktop/auth/login returns data.authorize_url and data.state.
Open the authorization URL in the system browser, then use the state to follow
the sign-in while the Desktop dialog waits:
The
state query parameter and cancel-request field must contain 1–128
characters. A completed attempt reports succeeded or failed through the
status endpoint.
Genesis Desktop webview session
Before opening a dashboard page in its webview, the Desktop shell exchanges its launch credential for a separate session cookie:
Both routes are available only in Genesis Desktop laptop mode; outside it they
return HTTP
404. The shell opens the start URL inside the webview. The URL
contains only the short-lived code, never the shell’s launch secret.
Genesis Desktop shell command
POST /api/desktop/shell/run runs a person’s command in the local command sandbox and
delivers its run record to the specified chat thread. On an idle thread, the record starts
the agent’s turn; during a running turn, it is queued for the next tool result without
interrupting that turn. This route is available in laptop mode when command mode is enabled
(always on in Genesis Desktop), and only for threads the caller owns; agent-room threads
are not supported. By default, the request waits for the command to finish, up to 300
seconds. Set background to true to return after startup while the command continues.
Commands use the same sandbox as an approved run_local_command and do not create an
Action Review approval card.
All /api/desktop/shell/... routes run only for the signed-in person. A request authenticated
with Genesis’s internal service token is refused with HTTP 403.
Request JSON:
Successful responses return
{ "success": true, "data": ... }. The run record in
data contains:
The route returns HTTP
403 when command mode is unavailable, the caller does not
own the thread, or the thread is an agent room. A background start refused by its
per-person run limit returns a run record with status not_run and a refusal reason.
The route returns HTTP 409 when two shell requests are already running on this computer
or the supplied run_id is already in use.
To read a background run, send GET /api/desktop/shell/background/{run_id}. The optional
view query accepts full (the default) or tail; tail returns only the latest 4,000
characters for a live view. The response’s data includes run_id, status (running,
ok, failed, timed_out, stopped, ended_by_restart or error), command,
working_directory, exit_code, redacted output, truncated, started_at,
finished_at, elapsed_seconds, max_seconds, started_by (agent or person) and
note. A read returns HTTP 403 if the run belongs to someone else or command mode is
unavailable, and 404 when the id is unknown.
To stop a foreground or background run, send POST /api/desktop/shell/stop with
{"run_id":"..."}. For a background command, use its background_run_id. The id must
contain 8–64 letters, digits, - or _. A successful response is
{ "success": true }; the stop request waits a few seconds at most for the process group
to end. It returns HTTP 403 when command mode is unavailable or the caller did not start
the run, and 404 when no matching run is known or active.
GET /api/desktop/activity includes active_background_commands, the number of
background run_local_command and ! runs currently executing on this Desktop. The
response also reports active_turns and active_flow_runs; the Desktop shell uses these
counts to avoid restarting while work is in progress.
The Advanced Settings API treats desktop.local_cli_background_max_seconds and
desktop.local_cli_background_max_runs as admin-only Desktop settings. They are omitted
from the Advanced Settings reads outside laptop mode. See Genesis Desktop command
mode for their values and
behavior.
Before returning Desktop state or checking in an activated device, the service
compares the saved sign-in target with the configured provisioner URL and
identity-provider issuer. If either changed, it clears the prior sign-in and
device activation and asks the person to sign in again; the install and its
chats and data remain. Older installs without a saved target are treated as a
different target when they have activation state. The current Desktop defaults
are listed in Genesis Desktop sign-in targets.
If Desktop cannot remove the Genesis AI key from the previous sign-in, the
sign-in callback returns HTTP 503 with Genesis could not remove the AI key
from your previous sign-in. Try again in a moment. It does not record the new
sign-in target until removal succeeds, so the person can retry sign-in later.
After a successful sign-in, the callback page confirms the signed-in identity
and attempts to open Genesis Desktop through genesis-desktop://signed-in
300 ms after loading. The page also offers Return to Genesis Desktop as a
link to open the app. The browser may ask permission to open it; if Genesis does
not open, switch back to the Genesis window.
When the provisioner refuses activation because the account’s email domain is
not allowed, the activation result uses status: "not_allowed" and its message
says Genesis Desktop isn’t available for this account yet. Use a different
account, or contact [email protected]. This is distinct from
email_unverified, which remains the status for an account that needs email
verification.
Genesis Desktop returning activation
Thedata.activation.llm.returning, data.activation.llm.plan_mode, and
data.activation.llm.remaining_usd fields are returned by
GET /api/desktop/status and the responses to POST /api/desktop/activate,
POST /api/desktop/check-in, and POST /api/desktop/sign-out when an LLM
activation is present. returning is true when the provisioner indicates an
activation before this one; otherwise it is false.
When a returning activation has no saved AI choice and no other AI provider is
active, Genesis Desktop restores Genesis AI as the person’s choice instead of
asking them to choose again. If another provider is active, Desktop does not
replace it during this step and may read the person’s remaining Genesis AI
credit from the provisioner.
Genesis Desktop first-run mode and telemetry
GET /api/desktop/status includes first-run and connected-mode status. The
first-run question appears before sign-in on an unanswered install. Choosing
connected continues to the organisation-server connection; choosing
standalone continues to Genesis account sign-in. An organisation can require
the connected mode, in which case choosing Standalone returns 409.
POST /api/desktop/first-run-mode and
PUT /api/desktop/telemetry-to-genesis return the updated Desktop status. They
are laptop-mode routes and remain available before sign-in; see Genesis
Desktop server connection for request
bodies and refusal codes.
Genesis Desktop Genesis AI-only mode
DesktopStatusData exposes these fields:
After showing the notice, acknowledge it with
POST /api/desktop/genesis-ai-only-notice/seen. It takes no request body and
returns BaseResponse; the notice is not due again after acknowledgment. This
laptop-mode route returns 409 when Genesis Desktop mode is unavailable.
Genesis Desktop also enforces its provider restrictions on the server; its
company-provider exception and selection flow are described in the Genesis
Desktop guide.
While connected to an organisation’s Genesis, that server manages every AI
choice: POST /api/desktop/llm-choice refuses every choice with 403. The
refresh and company-ai routes below also return 403 while connected.
POST /api/desktop/credit/switch also refuses a switch away from Genesis AI with 403.
Genesis Desktop company AI candidates
These routes are available only in laptop mode; otherwise they return404.
Listing candidates can make paid model calls: fresh probe answers are reused for
10 minutes, and each listing starts at most eight probes. A refresh probes again
even when an answer is fresh.
The candidate response’s
data is an array with candidate_id, provider
(cortex, databricks, litellm_bedrock, azureopenai, litellm_proxy, or
litellm_vertex_ai), source_kind (snowflake, databricks, aws, azure,
gateway, or gcp), source_id,
label, destination, billed_to, probe_ok, reason, and checked_at.
probe_ok is null when the candidate has not been checked yet; checked_at
is the time of the cached answer. source_id identifies a saved connection,
CLI profile, or AWS profile, or uses azure_subscription.<id> for Azure,
gateway.<host> for a company gateway, and gcp_project.<project> for Vertex AI.
Vertex AI candidates use the person’s gcloud user sign-in; their project is billed
for the probe and destination names the chat and embedding locations.
resource is an Azure resource object
with name and endpoint, or null when no resource was checked or the
provider has no resource. note explains a capability limit despite a successful
check; for example, a gateway may be available for chat only when no embedding
model answered, or Genesis may report that it could not check a model against its
minimum level. A minimum-level refusal sets probe_ok to false and explains
the reason in reason; see Genesis Desktop
for the model threshold. embedding_model is the embedding model found by
the probe, or null when none was found, the probe failed, or it has not
answered; it is the model confirmation would use when include_embeddings is
true.
Send POST /api/desktop/company-ai a JSON body with the candidate id and the
optional embedding choice:
include_embeddings defaults to false; when true, Desktop also switches
embeddings to the company provider and existing content is re-indexed. The
server re-derives the candidate from candidate_id and ignores any provider or
connection fields supplied by the client. An unknown candidate returns 404;
a failed probe or confirmation returns 409. A failed probe does not change
the configured provider. A successful response is DesktopStatusResponse.
Genesis Desktop saved credential notice
GET /api/desktop/status returns data.saved_credentials_unreadable, an
integer that defaults to 0. When it is greater than 0, Genesis Desktop
shows a notice asking the person to reconnect saved connections whose
credentials this install’s encryption key cannot open. After the notice is
dismissed, Desktop acknowledges it with
POST /api/desktop/credentials-notice/seen; the request has no body and
returns BaseResponse. The notice is not due again after acknowledgment.
This laptop-mode route returns 409 when Genesis Desktop mode is unavailable.
See Master encryption key
for how Desktop stores and recovers its key.
GET /api/desktop/status can also return data.computer_owner, the owner of
this computer’s Genesis AI allowance as last reported by the provisioner. It
is null until an owner is reported, and the last value survives sign-out.
Otherwise it contains name and email, with is_you: null on this status
response.
Genesis Desktop Genesis AI allowance
GET /api/desktop/credit returns the current Genesis AI reading when Genesis AI
is active. With fresh=false (the default), a cached reading can be about three
minutes old. With fresh=true, or while a monthly refusal is recorded, readings
older than about 15 seconds are refreshed.
Desktop reads the provisioner’s allowance with the sign-in token while it is
valid, then uses this install’s device credential after the token expires. This
keeps the reading refreshable without another sign-in when the provisioner
accepts device-credential entitlement reads. If the provisioner refuses that
credential, the reading is unavailable and Desktop waits 180 seconds before
retrying; a new sign-in resumes sign-in-token reads immediately. A successful
reading also updates the stored activation’s plan when it differs from the
provisioner’s reported plan.
On the
monthly plan the Desktop allowance display shows the credit numbers
(for example “343 credits left · 157 of 500 used · resets Nov 9”) when they are
present, and percent_used otherwise, always with resets_at and never with
dollar amounts. The provisioner decides which (GENESIS_CREDITS_SHOW_NUMBERS).
The one_time plan keeps the existing credit display.
The response also includes the existing available, model, max_budget_usd,
spend_usd, used_fraction, exhausted, heads_up_due, and alternatives
fields. If Genesis AI is not active or a reading is unavailable, available
is false; plan usage and reset fields are null when there is no reading.
Genesis Desktop trial status
Thedata.trial field in GET /api/desktop/status and the responses to
POST /api/desktop/activate, POST /api/desktop/check-in, and
POST /api/desktop/sign-out is present when the provisioner marks a trial for
display; otherwise it is null. It reports the provisioner’s latest trial
answer:
For how trial status affects Genesis Desktop locking and display, see
Genesis Desktop lock and origin controls.
Genesis Desktop version policy
The provisioner can include anapp_version_policy object in activation,
check-in, or entitlement answers to set a minimum or recommended Desktop
version. The running app reports the resulting notice in
GET /api/desktop/status; data.update_required and
data.update_available are null when there is no applicable update:
In these notices,
min_version, recommended_version, and current_version
use the display name for named Genesis Desktop builds: for example,
1.19.98-3 is returned as 1.19.98d3. Other version strings are returned
unchanged.
The provisioner policy fields are min_version, recommended_version,
message, and download_url. The version fields are optional release-version
strings such as 0.2.28; message is optional text, and download_url is an
optional HTTPS URL. A required notice locks Desktop until it updates; a
recommended-only notice does not lock it. A 426 refusal uses
status: "update_required" and may include app_version_policy beside
detail. It locks the app even if the response omits a minimum version. The
app retains the latest policy in memory and checks again at the normal
check-in cadence, so it can unlock when the provisioner lowers its minimum.
For lock enforcement and in-progress agent turns, see
Genesis Desktop lock and origin controls.
Genesis Desktop release-channel updates
The Desktop updater checks its install’s release channel withGET /api/desktop/update/{target}/{arch}/{current_version}. target and arch
must each match [a-z0-9_]{1,32}; current_version must match
[0-9A-Za-z.+_-]{1,64}. The provisioner selects the channel (dev, internal, or
public) from the install’s device credential, and the endpoint returns that
channel’s Tauri latest.json manifest as published.
The route returns 204 when no newer version is available, 404 when Desktop
laptop mode is unavailable, 409 when the install is not activated, and 503
when the provisioner update check fails. On 409 or 503, Desktop checks the
stable feed instead. The release-channel check is also available from the
Update now action on the Update required lock screen.
Genesis Desktop diagnostics
Genesis Desktop sends redacted diagnostic logs to its provisioner. Secrets are removed before upload. This behavior is limited to Genesis Desktop; hosted and self-hosted deployments do not send these diagnostics. The provisioner must advertisediagnostics in its latest check-in response’s accepts list for
automatic uploads to run.
At each start, after this process’s first successful check-in, the Desktop
check-in job uploads new redacted log content since the previous accepted upload.
This includes the previous session’s remaining logs and the current start’s first
lines. If Desktop starts offline, this upload runs on a check-in tick after the
first successful check-in. After that startup attempt, the job attempts another
automatic upload at most once an hour, measured from the previous attempt. Each
attempt sends at most four chunks; any remaining log content is sent on a later
hourly attempt. Failed chunks are retried on that schedule, not on every check-in
tick. Both automatic uploads require an activated device credential and a
provisioner that advertises diagnostics in its latest check-in response.
Each chunk contains up to 1,500,000 log bytes by default. If the provisioner’s
latest check-in response also advertises diagnostics_gzip, Desktop sends gzipped
chunks of up to 4,000,000 log bytes instead; Send diagnostics uses gzip under
the same condition. If a provisioner responds with HTTP 413, Desktop halves the
automatic chunk size and retries, down to 64,000 bytes, then retains that size for
the rest of the process. The job also includes redacted log excerpts around recent
failures in a check-in when the provisioner accepts diagnostics. A failure excerpt
is generated for an error or crash, or a failed tool or query event.
Genesis Desktop can also show a preview before a person chooses Send
diagnostics. These laptop-mode routes return HTTP 404 when laptop mode is
unavailable:
Successful responses use
{ "success": true, "data": ... }. The preview’s
data contains:
Send the preview identifier in the request body:
data contains the provisioner’s receipt id, and optional
received_at and expires_at timestamps. The send route returns HTTP 404 if
the preview expired, was already sent, or laptop mode is unavailable; 409 if
the device is not activated; and 503 if the provisioner cannot accept the
upload.
When Desktop is connected to an organisation’s Genesis, it has no Genesis
account or device credential. Automatic and previewed diagnostic uploads then
use the no-account connected telemetry credential instead. The person’s
Send logs and telemetry to Genesis switch and the server’s telemetry policy
must both allow the upload; otherwise the send route returns 409 with
code: "telemetry_off". If the connection mode changes while a preview is
being prepared, the send is refused with 409 and code: "mode_changed".
Genesis Desktop browser tools
These routes manage the browser driver and Chromium downloaded by Genesis Desktop. They are available only when the server runs in laptop mode; otherwise they return HTTP403. The install and remove operations apply to the computer
running Genesis, not to a remote browser client.
Successful responses use
{ "success": true, "data": ... }. The data object
contains:
The install and remove routes return HTTP
501 when this Genesis does not
manage downloadable browser tools. The Settings controls and first-use browser
behavior are described in Advanced Settings — Browser tools
and Browser Tools.
Genesis Desktop Computer Use
These routes manage opt-in Computer Use for the local Genesis Desktop app. Requests must include the Desktop launch credential; they are not general deployment configuration endpoints. The UI and consent settings are described in Advanced Settings — Computer Use.
The
PUT request body is { "enabled": boolean, "apps": [...] }.
apps defaults to an empty array and accepts up to 16 entries, each with a
bundle_id string and name string. A successful response uses
{ "success": true, "data": ... }; data contains:
POST /api/desktop/computer-use/apps accepts one app object with required
bundle_id (string, up to 255 characters, matching
^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$) and name (string, 1–100 characters).
It adds that selected app to the saved approvals; the response uses the same
status shape below.
Requests without the Desktop launch credential are refused with HTTP
403.
Genesis Desktop MCP clients
These laptop-mode routes inspect and connect MCP clients on the computer running Genesis. The client list is available only in laptop mode; otherwise it returns HTTP403.
The per-client
server_name is also used in that client’s manual setup instructions, so
the instructions target the name already registered in the client, or the name Connect
would use for a new entry.
Each client includes connectable (boolean). false means Connect cannot work
for that client; connect_action gives the reason.
Desktop CLI connections
These routes detect and import connections configured in local CLIs and Git on the computer running Genesis. They are available only in laptop mode; otherwise they return HTTP403. Detection never returns credential values. If gh has
no github.com account, detection also checks Git’s credential helper and, when
that check finds no sign-in, may run an SSH authentication check against
github.com. That check can make one network round trip.
The decline request accepts one to 100 candidate IDs, for example:
{ "success": true }. A successful import clears that candidate’s
declined state.
Genesis Desktop server connection
Genesis Desktop uses/api/desktop/server-link routes in laptop mode to connect
this computer to an organisation’s Genesis. The authorization flow opens in the
system browser; responses do not return access or refresh tokens. A connected
Desktop uses the organisation server’s sign-in and does not require a Genesis
account. These routes return 404 outside laptop mode. The separate /api/desktop-link routes below
are served by an organisation’s Genesis, not by Desktop; they return 404 in
laptop mode.
For server access entries,
auto_run is optional. null allows every change reached by the
entry’s other scopes; otherwise actions can contain excel.macros, excel.sheets,
excel.cells, or excel.save, and folder optionally limits the grant to workbooks in that
folder. An empty actions list allows no changes.
| POST /api/desktop/server-link/outpost/pause | Native shell only. Body: { "paused": true } or { "paused": false }; pause or resume the Outpost. Requires the launch-secret header. |
| GET /api/desktop/server-link/outpost/launch | Native shell only. Return whether the linked Desktop should run its Outpost and, if so, its settings and tunnel key, plus whether serving is paused, the connected organisation, and current tool use. The launch-secret header is required; the webview session is not sufficient. |
The GET /api/desktop/server-link status, also returned by
POST /api/desktop/server-link/check, includes sign_in_required when the server
has rejected the saved sign-in. sign_in_renewal is waiting_for_owner, denied,
failed, not_owner, or unavailable; while waiting, sign_in_code, sign_in_url
and sign_in_code_expires_at give the owner’s approval code, link, and expiry. The
owner can use the link in a browser on any device.
Genesis Desktop links and Outposts
These organisation-server routes link a person’s Desktop computer and register the Outpost it runs. The server must allow Desktop linking withdesktop_link.enabled; using the computer’s tools also requires
desktop_link.desktop_tools.enabled and the person’s use_desktop_link
permission. Link-only routes require
X-Genesis-Desktop-Link: <link_id>.<secret> in addition to the caller’s
authentication. Secrets and keys returned by creation or registration are
returned once; store them on Desktop, not in application logs.
GET /api/desktop-link/usage/me returns rollups_ready, the effective UTC
window (from_utc, to_utc), total measures, and by_model and by_agent
breakdowns. total is null until the cost rollups are ready. Measures include
known-priced and estimated spend, token counts, request count, and a separate
unpriced request count. The response includes this server’s Genesis AI allowance
only for callers with ACCESS_PULSE_PANEL while the server is connected to
Genesis AI; otherwise allowance is null. A connected computer’s row in the
admin GET /api/desktop-link/links response also reports ai_calls_24h and
ai_last_used_at from hourly cost rollups; the timestamp is null when there
was no use in the last seven days. The usage response also includes local_work,
the linked computer’s own work counted by this server over the same window, as
rate-card unit and count pairs; this is not AI spend. If the rollup window is
not available yet, local work uses the preceding 30 days. credit_refusal is
present while the server’s Genesis AI allowance refuses billable work and gives
its code (server_credit_exhausted), reason, and message.
GET /api/desktop/server-link can also return credit_refusal from the last
link check when the connected server refuses billable work. The refusal has the
same code, reason, and message fields. GET /api/desktop/server-link/usage
returns org_name and usage from the connected server’s GET /api/desktop-link/usage/me response for the connected person.
PUT /api/desktop-link/access requires serving ("on" or "paused").
owner_scopes is optional: omit it to keep the current value, set it to null
to allow all enabled capabilities for the owner, or provide a list of scopes.
entries is also optional; omit it to keep the current entries, or send up to
200 entries with entry_id, who (kind: user, role, agent, or
everyone; subject; and display label), see, address, scopes (up to
32), and optional expires_at (null means no expiry). see permits the
entry’s local agents to appear on the server; address permits room posts to
start a local agent turn. The owner’s Server Access controls are the only way
to grant access; administrator views are read-only.
Desktop AI endpoint
On a supported Genesis server, a linked Desktop can use this OpenAI-compatible API for chat, embeddings, image generation, and web search. Set an OpenAI client’sbase_url to
https://<genesis-server>/api/desktop-link/llm/v1. Every request needs the
person’s own server sign-in and
X-Genesis-Desktop-Link: <link_id>.<secret> for one of that person’s active
links with the link.chat scope. X-Genesis-Desktop-Agent: <local-agent-id>
is optional and identifies the local agent for cost attribution. The server uses
its own configured AI providers; the Desktop does not choose or receive provider
credentials. See
Desktop server connection setup
for the server-side enablement and platform support. Calls made through the
endpoint are attributed to the linked Desktop and its person in this server’s
Costs and My spend. When the server’s credits are exhausted, billable calls are
refused with server_credit_exhausted (402) when the server’s credits gate or
Genesis AI budget refuses the call; listing /models remains available.
Errors use an OpenAI-shaped
error object with message, type, and code.
Rate limits return 429 with Retry-After.
Hosted identity lifecycle
Hosted deployments useauth.provider: hosted to verify signed assertions
against the configured issuer, audience, JWKS URL, tenant, and installation.
Verification alone does not authorize application access: the assertion
subject must resolve to an active explicit identity link for that tenant and
installation. Hosted lifecycle responses contain only the selected binding_id
and its state; assertion claims and audit details are not returned.
For the role-ownership rule that keeps hosted roles tied to active identity
links during startup and revocation, see Hosted identity links.
POST /api/hosted-identities/initial-admin
Creates the sole initial administrator binding. This route requires a verified
hosted management assertion with the hosted.identity.bootstrap scope.
POST /api/hosted-identities/invitations
Creates one ordinary hosted-user binding. The authenticated hosted user must
have the manage_users permission.
POST /api/hosted-identities/{binding_id}/revoke
Revokes one exact binding selected by the path parameter. A hosted user needs
manage_users; a management assertion needs the
hosted.identity.emergency_revoke scope.
The request body for the initial-admin and invitation routes is:
The revocation body contains only
operation_id with the same bounded string
rules. Successful responses have the form:
Hosted WebSocket admission
In hosted mode, the estate-live, log, unified, sandbox-terminal, and CLI-terminal WebSockets require the same verified hosted assertion and active identity link before accepting the socket. Sandbox and CLI terminal access are then checked against the admitted user’s existing permissions and ownership rules. Hosted sockets are rechecked while connected; an expired or revoked identity closes the socket instead of leaving the session usable.Blueprint library inventory endpoint
GET /api/blueprints/ returns the Blueprint Library inventory used by the web
client.
GET /api/blueprints/mission-models lists the available Model Universe LLMs
that a blueprint Mission may pin at kickoff. Each entry contains provider,
model, and display_name; the response contains no credentials. It performs
one metadata read and reads a config snapshot for each provider.
The inventory and agent capability catalog/search omit built-in blueprints
marked hidden: true; those blueprints remain startable by name. See
Hidden built-in blueprints
for the affected blueprints and supported start routes.
Malformed manifest fields do not remove the rest of the library from the index;
see Library index resilience
for the handling of the skipped entry.
When authentication is enabled, Genesis filters out blueprints the caller
cannot view. The same ownership resolution applies here, so owners continue
to see their own blueprints without separate role grants. Callers also pass
when their role includes view_all_blueprints or manage_all_blueprints.
An installation’s blueprints.offered_builtins setting also filters its
offered built-ins. See Offered built-in blueprints.
GET /api/blueprints/
GET /api/blueprints/mission-models
Returns success and models, an array of available Mission model choices.
Each choice has provider, model, and display_name.
GET /api/blueprints/offer-status
Check which requested names are built-in blueprints this installation lets
anyone start. Names that are not built-ins and built-ins this installation does
not offer are both omitted from the response, so this endpoint does not reveal
which blueprints ship but are withheld.
The response contains
success and available, the requested names available
as offered built-ins.
Blueprint library response fields
On white-labelled installations, reader-facing text in shipped blueprint list
and detail responses uses the configured product name. The same applies to
GET /api/blueprints/{blueprint_name}/phases/{phase}, including phase names,
step labels and descriptions, exit criteria, and next-option labels and
descriptions. Step instruction values are unchanged. This changes display copy
only: blueprint identifiers and structural keys remain stable, custom blueprints
are unchanged, and starting or copying a shipped blueprint still uses its source
package. See Branding.
Key per-blueprint inventory fields
Blueprint authoring short-description field
The Blueprint editor also sendsshort_description on create and update
requests. This field writes to blueprint.short_description in
blueprint_manifest.yaml.
Create requests also accept
default_mode, which writes blueprint.default_mode:
Blueprint create and update requests also accept
lint_ignore, an optional
array of lint rule IDs to treat as intentional across every phase:
In
phases, a phase’s instructions value, when present, must be a string.
Create and update requests reject other value types rather than saving a Blueprint
that cannot be loaded later.
Create a Blueprint from threads
POST /api/blueprints/create-from-threads starts asynchronous Blueprint generation
from one to five conversation threads. The response includes success, job_id,
status, progress, and message; poll
GET /api/blueprints/creation-status/{job_id} with the returned job_id for
progress and the final result.
With sign-in enabled, the caller must be allowed to use a named agent and open
each source thread; an inaccessible thread returns
404. Access to the selected
repository or managed source is checked before the generation job starts; a
denial returns 403. With sign-in disabled, these access checks do not block
the request. Invalid thread lists return 400.
Blueprint lint endpoints
These endpoints lint the Blueprint editor’s unsaved draft. They do not save the draft. Existing-blueprint routes require edit access and accept the optionalblueprint_id query parameter to resolve duplicate names.
Each fix request needs 1–40 findings. A finding accepts
rule (string,
required), phase (string or null, default null), title (string, default
empty), problem (string, required), and fix (string, required). The fix
endpoints return the revised phases, phase_order, optional
changes_summary, and a fresh lint report; they do not save those changes.
Lint requests check for a remembered review first; a design not reviewed before
uses one fast-model call. A fix request also uses an edit-planner call, then
reviews the revised draft. If the review is unavailable, the endpoint returns a
service-unavailable error. A fix request returns a bad-request error when no
edit can be planned or applied; if the follow-up review is unavailable, the
revised draft is still returned with lint.ran: false and an error.
A successful lint response has success, blueprint_name, and lint; the
report has ran: true, findings, and partial. partial is true when the
model review reaches its 20-finding limit and may have omitted additional review
findings. Each finding includes rule, phase, title, problem, fix, and
source (pattern or review). For example:
lint; findings are warnings and
do not block the save. Create and update saves record findings in
blueprint.lint_findings; a save with no findings removes that summary. The
Blueprint Library and detail responses expose the summary. If the review cannot
run, the save is refused and no changes are written.
Blueprint recommendation wizard endpoint
POST /api/blueprints/wizard powers the guided mission-creation flow. Genesis
matches the caller’s free-text goal against the Blueprint Library and only
considers blueprints the caller can execute.
Depending on how specific the request is, the route returns either up to two
clarifying questions or up to three ranked blueprint recommendations. When the
caller has visible saved connections, Genesis may also use a compact
RBAC-filtered connection summary as a soft signal about likely platforms.
Missing or mismatched connections do not make a blueprint ineligible.
After a client submits answers, Genesis does not start another follow-up
round and instead returns type: recommendations. Follow-up calls can also
include answer_context so Genesis receives the original question text
alongside each answer instead of only question IDs.
POST /api/blueprints/wizard
Blueprint wizard answer-context item fields
Blueprint wizard response fields
When the advisor LLM omits
type but returns exactly one non-empty,
shape-valid array — questions (each item has id and text) or
recommendations (each item has blueprint_name, numeric confidence, and
rationale) — Genesis infers type server-side before returning the response.
An absent or empty array, malformed items, an explicit but invalid type, or
both arrays present without type still fail validation.
Some Claude endpoints return the complete recommendation object as a JSON
string in the top-level recommendations field. Genesis accepts this form only
when the outer object contains exactly that field and its decoded object
contains exactly type: "recommendations" and a non-empty recommendations
array of valid items. Recommendation confidence must be numeric (not a
boolean) and between 0.0 and 1.0, inclusive; out-of-range values fail
validation.
Blueprint wizard question fields
Blueprint wizard recommendation fields
Blueprint wizard error responses
POST /api/blueprints/wizard returns a classified LLM error when the advisor
cannot produce a usable result; clients should not treat it as an empty
recommendation list. The response uses error_type: "llm_error", a safe
top-level error message, request_id, and payload.llm_failure. The
llm_failure object contains kind, message, action, and error_id; it
does not include the provider’s raw error text. It can also include
provider_label and connection_id; see
Chat endpoints — working with threads
for when those optional fields are present. The response also includes the
request ID in the X-Request-Id header.
For the same structured failure metadata on chat messages and stream events,
see Chat endpoints — working with threads.
Blueprint path parameter
Optional blueprint identity query parameter
Blueprint export endpoint
GET /api/blueprints/{blueprint_name}/export streams a ZIP of a custom
(non-default) blueprint working copy. When the blueprint is versioned, Genesis
also bundles saved version snapshots and embeds a blueprint_export_manifest.yaml
sidecar.
GET /api/blueprints/{blueprint_name}/export
Current Genesis exports use
manifest_version: 2 in the sidecar. In addition
to blueprint_name, the manifest records blueprint_id, source_identity
(source_type, source_id, repo_id, path), and
working_copy_fingerprint so destination imports can match identity across
environments. When the blueprint is versioned, the manifest also includes a
versioning block with production and working-copy metadata plus per-version
snapshot roots. Legacy exports without blueprint_id remain importable; the
import preview marks them as legacy_export: true and requires explicit
confirmation before Add as a new version can target an exact name match.
If a saved version’s files are no longer available, Genesis completes the
working-copy export but omits that version from the archive. The manifest lists
omissions in versioning.versions_not_included and sets
versioning.includes_all_saved_versions to false; if the omitted version was
production, its reason warns that an imported archive will have no production
pin for it.
Blueprint ZIP import endpoints
Blueprint ZIP uploads are limited to 64 MiB. Archives with more than 2048 members, oversized members, or unsafe compression ratios are rejected during validation.POST /api/blueprints/import/preview accepts multipart form field file and
optional confirm_legacy_name_match (boolean, default false). The route
validates a ZIP without changing files, registrations, or version history. The
response identifies the incoming blueprint_name, optional blueprint_id,
manifest_version, legacy_export, matching local target, allowed collision
strategies, and recommended_strategy. When valid is false, message
carries the validation error. Preview responses can also include:
Older exports can be previewed without confirmation; the response marks
create_version as requiring a legacy name-match confirmation when the export
lacks blueprint_id.
POST /api/blueprints/import accepts multipart form field file plus:
collision_strategy:create_copy(default),create_version, orreplace.promote_imported_version: optionally promote a newly created destination version whencollision_strategy=create_version. Ignored for copy and replace operations. Requires Blueprintmanageaccess on the destination.confirm_legacy_name_match: required before a pre-v2 export can update an existing blueprint by exact name withcollision_strategy=create_version.override: backward-compatible boolean alias forcollision_strategy=replace.
create_copy keeps the existing object and suffixes the imported name on
collision. create_version requires one matching editable local
blueprint_id, preserves destination-owned history and production, and appends
one local version; identical content returns no_change=true. When the backing
Git repository already exists, Genesis stages and commits the imported working
copy with message Import blueprint version: {blueprint_name} so the import is
visible through GET /api/blueprints/{blueprint_name}/history. replace
changes only the working copy and preserves existing destination history.
Default, WIP, ambiguous, and managed-repository targets reject version import
with HTTP 409 and structured detail fields such as error_code,
blueprint_name, and blueprint_id (for example
BLUEPRINT_IDENTITY_MISMATCH, BLUEPRINT_VERSION_TARGET_NOT_UNIQUE,
LEGACY_BLUEPRINT_CONFIRMATION_REQUIRED).
Successful import responses include import_action, blueprint_name,
blueprint_id, created_version_number, created_version_id, promoted,
no_change, overrode_existing, and a human-readable message.
For new installs and create_copy imports, Genesis assigns the importing user
as manifest created_by so RBAC grants immediate view, edit, and manage
access to the installed copy. When the archive lacks an explicit origin
block, Genesis records the archive creator there (including legacy manifests
that only stored created_by) before replacing the local owner.
create_version and replace preserve the destination blueprint’s existing
created_by and origin.
Blueprint detail endpoint
GET /api/blueprints/{blueprint_name} returns the resolved Blueprint manifest,
phase payloads, source-selection metadata, and caller access flags used by the
Blueprint detail page.
GET /api/blueprints/{blueprint_name}
If
blueprint_manifest.yaml has phases: null, the detail response treats it as
an empty phase mapping. A non-mapping phases value returns HTTP 400 with
error_type: "validation" rather than an internal server error; use
phases: {} for a blueprint with no phases.
Key Blueprint detail response fields
Blueprint file endpoint
GET /api/blueprints/{blueprint_name}/files/{file_path} serves a resource file
from a Blueprint package. Use mission_id for a file read rendered in a
mission when duplicate Blueprint names need to resolve to the Blueprint that
mission recorded or ran.
With download=true, the response uses an attachment filename with an ASCII
fallback and a UTF-8 encoded filename. Modern clients can therefore preserve
non-Latin characters in the downloaded filename.
Blueprint origin fields
The same origin schema is used by the inventoryorigin field and the detail
payload blueprint.origin.
blueprint.source_view fields
Blueprint rename endpoint
POST /api/blueprints/{blueprint_name}/rename renames an existing local or
remote-backed blueprint. The route rejects default blueprints, active WIP
sessions, and blueprints that still have in-flight missions. Local renames take
effect immediately. Remote-backed renames open a pull request and become
effective after that pull request is merged and the next source sync applies
the rename.
Genesis also migrates completed mission references, saved versioning state, and
Blueprint access grants to the new name.
Requires Blueprint manage access and the system-level manage_git
permission.
POST /api/blueprints/{blueprint_name}/rename
Blueprint rename response fields
Blueprint rename status behavior
Blueprint RBAC actions
The access-management endpoints accept these Blueprint action names:
Remote-backed Blueprint workspace and rename permission details are in the
Blueprint guide.
Blueprint revert endpoint
POST /api/blueprints/{blueprint_name}/revert restores the Blueprint to the
requested target_commit as a new forward commit. The caller must have Blueprint
edit access, write access to the backing repository, and the applicable
manage_git or manage_own_git permission. If Genesis cannot read the
auth.enabled setting while checking Blueprint access, it refuses the request
with 503 rather than allowing the operation to proceed.
Blueprint-wide role permissions
Genesis checks Blueprint access in two layers. First, it evaluates the per-blueprint policy: admin bypass, ownership, or an explicitblueprint:<name> grant for the requested action. If that does not allow
access, Genesis falls back to role-level blueprint-wide permissions:
Grant these on a custom role in Config → Users (or via RBAC role updates) to
give members every existing and future blueprint without individual
/api/blueprints/{blueprint_name}/access/grant calls. The built-in admin
role includes both permissions by default.
Blueprint delete endpoint
DELETE /api/blueprints/{blueprint_name} permanently deletes a custom
Blueprint without missions. If it has associated missions, Genesis hides it
instead. When durable blueprint history is enabled (durable SQLite or git
durability for the Apps repository), hard deletion also removes its saved
versions, release mode, promotion history, and production assignment, and the
caller must have manage access. Without durable history, the caller must
have manage or edit access. The optional blueprint_id query parameter
pins the request to a stable Blueprint identity; see Optional blueprint
identity query parameter.
Versioning endpoints
A blueprint must already be in
versioned mode before you can create, promote,
or restore saved versions.
When an operation needs saved-version files from an Apps repository still being
restored after a restart, it can return 503 and be retried. A missing
production assignment or unavailable production snapshot returns 404;
conflicting or unsafe Apps-repository state returns 409.
Versioning summary fields
GET /api/blueprints/{blueprint_name}/versioning/summary returns these top-level
fields:
Versioning request bodies
POST /api/blueprints/{blueprint_name}/versioning/enable
This endpoint does not document any request body fields.
POST /api/blueprints/{blueprint_name}/versioning/versions
POST /api/blueprints/{blueprint_name}/versioning/promote
POST /api/blueprints/{blueprint_name}/versioning/restore
Access-control endpoints
Shared library item access endpoints
These endpoints manage role grants. For caller eligibility, see Own-item RBAC.kind is skill, document_index, knowledge_base or flow. Grant and revoke
requests use role_names (a non-empty array of configured role names) and
privileges (an array containing edit, manage, or both; omitted defaults
to both). See Own-item RBAC
for what each action permits. The response includes available_roles and
role_access, whose entries contain role_name and its granted actions.
GET /api/blueprints/{blueprint_name}/access
Response fields:
POST /api/blueprints/{blueprint_name}/access/grant
Grant requests reject unknown
role_name values with 400 Bad Request, for example: Unknown role 'analyst'. Choose one of the configured roles. Empty or whitespace-only role_name values return 400 with role_name is required.
POST /api/blueprints/{blueprint_name}/access/revoke
Grant and revoke operations attribute the change to the signed-in person in the
RBAC manager log and the
role.blueprints_updated audit log. A request writes
one audit row when it changes one or more actions; the row identifies the role
and blueprint and lists the changed actions under granted or revoked. No
row is written when no action changes. If a multi-action request fails after
changing earlier actions, those changes are still audited.
Blueprint folder endpoints
These endpoints manage Blueprint Library folders, folder memberships, and the configured role audience.GET /api/blueprint-folders returns the folders
visible to the caller and the configured role names available for sharing. For
how folder audiences interact with Blueprint permissions, see
Blueprint folder sharing.
For the user workflow, see organizing the Blueprint Library.
POST /api/blueprint-folders
PATCH /api/blueprint-folders/{folder_id}
PUT /api/blueprint-folders/{folder_id}/members
POST /api/blueprint-folders/move
Action Review endpoints
These routes provide one generic lifecycle for governed actions: propose, inspect, decide, execute, and reconcile. Proposal creation and reconciliation requireAPPROVE_AGENT_ACTION. Inbox listing accepts either APPROVE_AGENT_ACTION or
view_connections: a signed-in caller without APPROVE_AGENT_ACTION sees Prover
requests and outside-mail plans only, with each row limited to the caller’s own
visibility rule. A caller with APPROVE_AGENT_ACTION continues to see every
authorized action family, subject to each family’s row filter. For a Restricted
Caller’s Rights or signed-in-user write, the registered handler may identify one
person from the proposal’s frozen intent as its sole applier. After a reviewer
approves the request, that person can read its record and status, verify its seal,
execute it, or withdraw it without
APPROVE_AGENT_ACTION; this does not let them approve or reject it. Reading or
acting on other proposals still requires APPROVE_AGENT_ACTION, except registered
Prover requests and outside-mail plans, which use their own access rules. A mail plan
(agent_mailbox.mail_plan.v1) can be read and decided only by someone who manages
the agent named on that request or an administrator. Approve and
reject remain person-only. With authentication disabled, a browser press to approve or
reject a non-Prover request is recorded as local operator (auth disabled); agent and
app credentials are not treated as browser presses. For Prover requests, any signed-in person with
view_connections may decide only when they can also read the subject the request
decides on: its comparison, finding, or view test cases. A request whose subject is
hidden is answered as an unknown proposal (404), including for a caller who holds
APPROVE_AGENT_ACTION. The person’s own PAT is accepted and attributed to its owner,
while with authentication enabled an agent’s own call, the system identity, and an app-only token are refused.
Execute and reconcile also enforce the authenticated caller and deployment tenant
boundary.
The registry admits crm.merge.v1, the first Action Review action, and the Prover
evidence-request action prover.request_finding_evidence.v1. The CRM action’s shipped
default posture is require_review, so proposals for it enter the review lifecycle
before execution; there is no configuration key that enables its action type. Salesforce
and HubSpot CRM merge routes and connector tools now submit crm.merge.v1 proposals
through this lifecycle while retaining their compatibility facades and legacy response
shapes. The Prover action type is used by the
request_evidence tool;
its approval flow and result are documented there.
Outside-mail plans use agent_mailbox.mail_plan.v1 and are offered through
mailbox_action(action="PROPOSE_PLAN"); see the tool reference
and Action Review guide for
the plan and review workflow.
Reviewer reads are scoped to the authenticated human and the deployment tenant.
Rows for action scopes the caller cannot access are omitted, and detail, status,
approval, rejection, execution, and reconciliation requests do not grant access
just because the caller knows a proposal ID. Prover requests are also filtered by
whether the caller can see the comparison or finding the request decides on, using
the same visibility rule as the corresponding Prover read. Hidden requests are omitted
from the inbox and total_count; requests beyond the visibility probe budget are
withheld and reported as incomplete with incomplete_reason=probe_budget.
Action Review policy previews use the same Prover visibility rule: sampled requests on
comparisons the caller cannot open are left out of both the preview list and its counts.
When the sample contains a Prover request, preview loads one visibility scope and reads
each distinct finding or view boundary it needs to resolve.
Action Review route summary
Staged approval-rule changes
All staged-change routes requireACCESS_CONFIG_PANEL. Publishing and discarding also
require an authenticated human; an agent or machine credential cannot decide the change.
The list is newest first and returns changes, current_revision, and truncated.
state accepts open, closed, or all (default all); optional thread_id limits the
results to one conversation. limit defaults to 200 and must be between 1 and 200.
thread_id is limited to 255 characters. include_document defaults to true; set it to
false to omit the policy document from list or single-change reads.
The single-change response returns change; the list response returns each item with its
effective status (pending, published, discarded, or superseded). A pending change
remains pending when the policy revision advances. Its gates are applied on top of the
current policy at approval unless an intervening revision changed a rule that overlaps the
staged gates; that conflict makes it superseded and identifies the changed rule.
change.rules carries all gates staged together, while change.rule is the first; a
published change.rebase names the from_revision and to_revision when it was rebased.
GET /api/action-review/policy/staged-changes/{change_id}/preview returns the current
status, revision, and a preview_digest to bind approval to what the caller saw, plus
rebase or conflict details and any counts, displaced_defaults, and warnings. Counts
cover only recent requests visible to that caller. The digest is null when the change is
not pending or has a conflict. To publish, send a JSON body with expected_revision and
preview_digest copied from that preview. expected_revision is an integer greater than
or equal to zero; preview_digest is a non-empty string of at most 128 characters. Publish returns the resolved change,
policy_version_id, new revision, warnings, and governed_actions; it refuses a preview
that changed after it was shown. Discard leaves the active policy untouched.
Previewing policy activation
Both preview routes requireACCESS_CONFIG_PANEL and take no request body. The shipped
preview composes the shipped posture in process without reading policy or proposal rows. The
version preview reads the named stored version once, then composes it with today’s shipped
defaults and platform floor; it does not write policy or read proposals. Each response has
success and governed_actions_after, listing the resulting outcome for each governed
action. The version route returns 404 when the version is unavailable and 409 when it
cannot be reactivated under the current policy state.
Governed-action entries
Each item ingoverned_actions or governed_actions_after gives the default
outcome for a request that names only its action type. It also includes
scoped_rules (array, default []); each entry has rule_id (string),
outcome (string), and selectors (object of string keys to string values).
These are rules that narrow that type to a connection, resource, or tag. A
scoped rule does not change the action type’s general outcome; the most
specific matching rule decides a request that supplies those selectors.
Record an Action Review outcome
POST /api/action-review/proposals/{proposal_id}/record-outcome lets an
authenticated human with APPROVE_AGENT_ACTION record what they found after
checking the target system themselves. Use it for an uncertain action whose
effect cannot be read back; it settles the proposal as executed or
not_applied and never runs the action again. The note is stored with the
recorded outcome.
The response contains
success, recorded, optional final_status,
refusal_reason, and proposal. recorded: false with a refusal_reason
is a normal lifecycle refusal, such as an attempt that is still settling or a
proposal already settled. It does not execute or retry the action.
POST /api/action-review/proposals request fields
GET /api/action-review/proposals query fields
For inbox listing, the service checks
APPROVE_AGENT_ACTION once per request to choose
whether to apply the Prover-only family filter; the RBAC lookup is served from memory
once RBAC is warm. A caller without that permission sees Prover requests only, with the
family filter applied in the ledger query before the bounded scan. Other action families
therefore neither consume that caller’s scan ceiling nor make the Prover-only result
incomplete. In either case, a Prover request is listed and counted only when the caller
can read the subject it decides on.
Prover subject visibility is checked independently of visible_threads_only. When
the scan reaches a Prover request, it makes one indexed read per distinct finding or
view boundary, up to 100 subjects. For a view boundary with snapshots, visibility
requires access to every snapshot. For a boundary with no snapshots, visibility requires access to every connection
sealed in the request (source, target, and any warehouse connection). A request that
sealed no connections uses the pair recorded for its boundary instead; an unreadable or
missing pair is visible only to a caller with manage_all_connections. The same
visibility rule applies when retrieving or deciding a Prover request. Requests beyond
the subject budget are withheld; the response sets truncated=true and
incomplete_reason=probe_budget.
Submitting a Prover request also requires the caller to see its comparison, finding, or
view boundary; an unseeable subject is refused as unknown before the request is stored.
Reconciling an uncertain Prover request applies the same subject check before the
handler reads it.
The list is bounded: reviewer-scope checks are performed before offset paging,
and the response can be incomplete when Genesis cannot examine every candidate
or must omit a candidate. Use truncated and incomplete_reason to distinguish
an incomplete view from an empty inbox. The wire values for
incomplete_reason are probe_failure, probe_budget, handler_unavailable,
row_unreadable, and scan_ceiling. Only one value is returned, using this
precedence order: probe_failure > probe_budget > handler_unavailable >
row_unreadable > scan_ceiling. The page limit is not an incomplete reason;
compare total_count with the number of returned proposals to detect it.
The detail route accepts include_events as a boolean query parameter, default
true, and view as full, summary, or outcome, default full. Set
include_events=false when the caller needs the reviewer dossier without the
durable event trail. view=full parses and returns the stored review payloads;
view=summary returns the status view, linked record, expected_effect,
requester_kind, bot_id, decided_by, decided_by_label, and
decision_source, and decision_reason. decision_source identifies the source
of the decision; person_review_door marks a Prover decision made through a person’s
review route from their own session (sign-in on or off). Agent decisions use
agent:agent_person_present when a person asked in chat and agent:agent_delegated
when the decision is part of a goal or mission they set. The summary provides the
request’s state, approval lifetime, and
decision context without producing the omitted review payloads. When
include_events=false, events is absent; when it is true, events is an
array that can be empty.
view=outcome returns only the status view and the attempt’s masked
outcome_detail; it does not parse the review payload. It uses the same access
check as the other detail views and is intended for polling an apply’s result.
For detail reads with view=summary, include_receipt defaults to false;
set it to true to include execution_receipt once an execution has produced
one. This parses one additional stored column. view=full already includes
execution_receipt.
The view=full response also includes grant_offer, either null or an object
with label and thread_available. It is non-null only for a pending request
that the signed-in viewer was asked to approve, when standing grants are enabled
and the action family’s tool and scope are eligible for a grant. The family
scope check is performed for each full-detail read; thread_available indicates
whether the request has a chat that can be granted as its scope. Summary views
do not include grant_offer. See Action Review settings.
The detail route also accepts include_thread_links=false. Set it to true to
include thread_openable and, when the caller may open a thread associated with a
Mission, mission_id and mission_name. It costs one thread-ownership check and
at most one projects read. The caller’s thread access is checked independently of
proposal visibility; a failed check yields no link.
For a Prover disposition-package approval request, set
include_package_signability=true to include viewer_can_sign,
viewer_can_apply, and viewer_cannot_sign_reason for this caller. The server
performs one package-state fold to produce these fields, so the option is
opt-in; the package read already carries the same verdict when that page is
available.
For a Prover package request withdrawn because an agent’s bundle adopted it,
the detail response also includes bundle_supersession with bundle_id,
outcome, superseded_by_proposal_id, and superseded_by_url. The outcome is
superseded when the bundle request was created, or
bundle_request_not_created when it was not; in the latter case the package
can be requested again. These fields are null until the supersession event is
sealed. If include_events=false, this field costs one ledger event read for
an adopted package request; other requests do not incur that read. When a bundle
request holds the adopted package, detail also returns can_renew: false,
ownership_reason (bundle_request_live, bundle_declined, or
bundle_policy_denied), and holding_bundle_request with the owning request’s
identity and decision details. Checking this ownership reads the package owner;
in view=summary, when the response has no intent, it also reads the proposal
to locate the package coordinates.
POST /api/action-review/proposals/{proposal_id}/approve and /reject
Both decision routes accept the same body:
When
allow_similar is agent or thread and the approval is recorded, the
response includes either standing_grant (the permission saved) or
grant_refusal (why it was not saved). The permission’s scope is determined by
the action family. Standing grants are controlled by
action_review.standing_grants_enabled (default true; see Action Review
settings). For scope rules, see
local_files,
run_local_command, email,
Jira, Linear,
and ServiceNow.
Approval and rejection are separate operations by default. For a proposal that
the current human is allowed to execute, POST /api/action-review/proposals/{proposal_id}/approve-and-execute combines the
approval and the single execution attempt. Its body uses the same optional
reason field and optionally accepts apply_in_background (boolean, default
false) and chat_push_digest (string, 1–128 characters). The digest is for a
reviewed ordinary GitHub HTTPS push from chat; when supplied, Genesis requires
the signed-in reviewer and the exact proposal digest shown on the card. A stale
or ineligible push is refused before it is claimed. The response reports
success, decided, claimed,
final_status, execution_refusal_reason, and the optional
execution_refusal_detail and execution_error_detail. success is true
only when final_status is executed; a refusal is returned with HTTP 200 and
success: false. When a handler or provider proves that it refused before any
write was applied, final_status is not_applied, and the handler’s reason
and detail are returned in execution_refusal_reason and
execution_refusal_detail. When the effect may have applied,
final_status is reconciliation_required; do not retry the action, and use
execution_error_detail for the provider’s error when the handler captured it.
Approval refusal issues no grant, while refusal before claiming leaves the
grant unspent. A decision can be refused with 409 Conflict when the proposal
or current policy no longer matches the decision context.
With apply_in_background: true, the decision and single-use claim are still
recorded before responding, but the apply continues after the response.
applying: true means the apply is in progress; the proposal’s status is
claimed until its final outcome is recorded. Poll the detail route with
view=outcome or the status route to read that outcome. If the background
owner cannot accept the work, the request performs the apply before responding
and returns the settled result instead.
Execution identity follows the stored connection’s auth mode; for the Databricks App
signed-in-user mode, see Databricks App signed-in user connection.
For a one-click Action Review approval of a Prover disposition package, the
handler re-derives the approved package under the package lock from the
transaction’s readings before writing. The response follows the Prover decision
commit; sealing the linked Action Review outcome happens after the response, and
the request remains claimed until that seal lands. If sealing fails, the
stale-claim sweep reconciles the request. A refusal or uncertain attempt is
sealed before the response.
Some actions have no separate apply step: approving them is the whole action.
Every proposal read (status, list rows and detail) carries
approving_is_the_action, and it is true for those actions, currently
learning adoption (learning.adopt.v1) and local command runs (local_cli.run.v1; see
run_local_command). For
such a proposal, POST .../approve also
applies it in the same request, exactly as approve-and-execute does, and its
response adds the same claimed, final_status, execution_refusal_reason,
execution_refusal_detail and execution_error_detail fields; success is
then true only when the change was applied. The proposal stays authorized
only when the apply could not start (the policy could not be reloaded, or the
executor was refused before the claim); claimed is then false and
execution_refusal_reason says why. execution_refusal_reason: "claim_lost"
means another executor holds or has already spent the grant. claimed: true
with no final_status (outcome_not_recorded) means the attempt ran but its
outcome was not stored; do not retry it. For every other proposal, approve
answers success, decided, refusal_reason and proposal only, with the
optional standing-permission fields when requested above.
Standing-grant endpoints
Both endpoints require eitherAPPROVE_AGENT_ACTION or VIEW_CONNECTIONS.
They return or modify only the signed-in caller’s permissions; an attempt to
revoke another person’s grant is returned as not found.
GET /api/action-review/standing-grants accepts these query parameters:
The response contains
success and grants, newest first. Each grant has
grant_id, bot_id, action_type, scope_label, all_chats, thread_id,
created_at, expires_at, revoked_at, use_count, and last_used_at.
all_chats is true when the grant applies across chats; otherwise thread_id
identifies its chat. Nullable timestamps and thread_id may be absent from the
serialized response.
POST /api/action-review/standing-grants/{grant_id}/revoke takes no body. It
returns success, revoked, and the grant record. revoked is false if the
permission had already been revoked; a successful revocation takes effect at
once.
Decision hand-back to the agent
After a human approval or rejection is committed, Genesis sends the decision and optionalreason to the registered agent conversation that raised the
proposal. This applies whether the person decides in the Action Review page or
through these API routes. A tool call made outside a Genesis conversation (over
MCP or /api/tool_call) does not receive this hand-back; its caller must poll
action_review_request_status
for the request it opened. A delivery failure does not undo the decision; the
default-on Action Review cleanup sweep retries a hand-back that was not
delivered durably. The sweep cadence is controlled by
action_review.sweep_interval_seconds (default 600 seconds; see
Action Review settings).
The Prover disposition-package action type is
prover.approve_disposition_package.v1. Its handler compares the package’s
approval projection digest before writing and applies every staged item in one
strict transaction or none. The Action Review proposal’s expected_effect
identifies each finding’s disposition and durability; the package’s overall
durability is the furthest-reaching item level. A successful execution returns
an execution receipt that links the Action Review proposal and digest to the
Prover decision event; a drift, unavailable promotion, or lock conflict is
reported as not applied rather than as a partial package approval.
The composite Prover bundle action type is
prover.approve_composite_bundle.v1. It is created when a review bundle carries
one or more disposition packages, and its sealed projection includes the bundle’s
rules, packages, and evidence-gap decisions. Execution applies every carried
member in one transaction or none. The native bundle /approve endpoint does
not accept this grant; approve the linked Action Review proposal instead.
The improvement-docket action type is
prover.decide_improvement_docket_entry.v1, one request per finding. Its sealed
projection names each open element, the finding’s disposition, and the licence
approving installs. Execution accepts every element in one transaction or none.
Declining leaves the elements open. The native docket /accept endpoint refuses
an agent-filed entry; approve its Action Review request instead.
Generic HTTP execution does not carry a trusted tool or Blueprint runtime origin.
When an authorized proposal is bound to a non-empty origin, the execute route
refuses it with claimed=false and refusal_reason=execution_origin_required
before claiming the single-use grant, so the human approval remains available
for execution from its originating runtime.
Action Review response fields
Status responses containsuccess and a proposal object with these fields:
On list and detail reads, local-command proposals render the product references in
summary and expected_effect.runs_in using the current white-label product name;
the stored proposal is unchanged. See Branding.
The list response returns success, proposals, total_count, offset,
limit, truncated, and incomplete_reason. Each row includes
effective_status, requester identity, tenant, optional bot and thread
identifiers, decision metadata, and the review payload selected by dossier_scope:
headline adds a dossier holding only its title and first record, and
full adds the whole dossier plus expected_effect. When
include_statement=true, a row also includes requested_statement and
requested_connection for an action that runs a statement; otherwise those
fields are null. A row also includes
standing_grant when the request ran under a standing permission; it contains
grant_id and scope_label, including when that permission has since been
revoked, and is null otherwise. The list response also includes
visible_threads_only, which is true when the caller requested
thread-visibility narrowing. With include_thread_links=true, rows also carry
thread_openable; rows the caller can open may carry mission_id and
mission_name. A full detail response can include chat_push_approval: true
only for a signed-in human reviewer viewing a pending ordinary GitHub push
eligible for application from its chat card; the field is omitted otherwise.
The detail response additionally returns parsed stored
payloads, including execution_receipt once an execution has produced one, and
carries the effective status in status rather than in a separate
effective_status field. Execute responses report success, claimed,
final_status, an optional refusal_reason, an optional refusal_detail, an
optional error_detail, and execution_result when available. success is
true only when final_status is executed; not_applied means the handler
or provider proved that no write was applied, while
reconciliation_required means the effect may have applied and must not be
retried. When available, error_detail is the provider’s own error text.
Reconcile responses report resolved, final_status, and an optional
refusal_reason. Record-outcome responses report recorded, with an optional
final_status, refusal_reason, and proposal.
A full detail response for a Prover test-case request may also include
change_agents, keyed by the exact sealed where value of a Decision-tab change line.
Each value is {basis, agent, person} for an earlier decision an agent made on a
person’s word; basis is agent_person_present or agent_delegated. The agent is shown
beside the sealed marker, not substituted into it; the field is absent when no cited
line has an agent decision to attribute or the earlier decision cannot be read. For a
marked request, resolving this field reads the view’s stored specs and reads cited
declines when present; other Prover requests do not read case specs for this field.
Proposal summaries, including list rows, also include nullable decision_source
and agent_basis. decision_source is action_review_api for a person’s API
decision outside a Prover person-review route, slack_interactive
for a person’s decision from an Action Review card in Slack,
person_review_door for a Prover decision made at a person’s review route from their own session,
or agent:agent_person_present /
agent:agent_delegated when an agent decided on a person’s word. agent_basis, when
present, contains basis, agent, and
person, plus goal when available; it is null for a person’s own decision or
an undecided request. The basis values mean the person asked in chat
(agent_person_present) or delegated it through a goal or mission, or the server records
the asking agent as theirs (agent_delegated). The owned-agent basis applies only to
eligible proof and plan-building approvals; decisions needing the person’s own words still
require them. person_review_door identifies a person’s native Prover review
route used from their own session, with sign-in on or off (never a personal access token, an agent, the internal service or a machine token).
If Action Review storage fails with a database error, the endpoint returns
503 Service Unavailable with a generic message directing operators to the
server log; raw driver error text is not included in the response. This is
separate from error_detail, which describes an action handler or provider
execution result when available.
For governed Linear writes (ticket.write.v1), the default-on cleanup sweep can
settle a reconciliation_required item without retrying the write when the item
recorded a shared linear connection that has personal_credentials set to
disabled, does not use User OAuth, and does not require double-key access. The
sweep reads through that recorded connection’s service credential rather than a
default connection, then verifies the Linear organization and authenticated user
against the original attempt. If any check fails, the item remains unresolved.
When a stored by-reference literal cannot be rejoined, reviewer reads and
authority-bearing operations return 409 Conflict with
code: "proposal_text_unavailable"; the proposal cannot be shown, approved,
or executed, but it can still be rejected or revoked. If a proposal is too
large to store, Genesis refuses it before writing and returns 413 Payload Too Large.
Action Review also runs a default-on cleanup sweep in the background. Each pass
materializes expired proposals and reconciles claims that have remained claimed
past their stale threshold; expiry is still enforced when decisions and claims
are evaluated, so the sweep makes the resulting state visible rather than
providing the enforcement itself. Configure its cadence and stale-claim age in
Advanced Settings.
Blueprint history endpoint
This route returns commit history from the backing Git repository. When authentication is enabled, it requires the system-levelview_git permission
rather than a Blueprint action grant.
GET /api/blueprints/{blueprint_name}/history
In a Databricks App, these routes follow the repository’s Git safety policy.
See the Git policy.
Blueprint import endpoint
The canonical preview, request fields, collision strategies, compatibility behavior, and response contract are documented in Blueprint ZIP import endpoints. The legacyoverride=true form field remains supported as an alias for
collision_strategy=replace; new clients should send the explicit strategy.
Blueprint repository sync and dev-session remediation
POST /api/blueprints/repositories/{source_id}/sync and
POST /api/blueprints/{blueprint_name}/dev-session can return a structured
remediation payload when the requested refresh or workspace setup fails for an
actionable reason, such as an expired saved Git OAuth grant.
For these routes, Genesis returns HTTP 409 when error_code is
OAUTH_RENEWAL_REQUIRED. The structured payload is returned in the FastAPI
error detail body so clients can render a recovery CTA instead of treating
the response as a session-auth failure.
Blueprint sync remediation payload fields
Blueprint sync remediation action fields
Blueprint mission-start sync warning fields
POST /api/blueprints/{blueprint_name}/start keeps remote release refresh
best-effort. If Genesis cannot refresh the remote release before execution, the
mission can still be created from the previously synced release and the success
payload can include these warning fields:
Blueprint mission-start request fields
GET /api/blueprints/{blueprint_name}/mission-grant-offer
Returns {"offer": null} unless delegation applies to the requested blueprint,
the caller is signed in, and delegation grants are enabled. The setting
action_review.delegation_grants_enabled must be on; see
Advanced Settings. A non-null
offer contains the sentence shown in the Mission start modal, the allowed acts,
and a hash that must be sent back with an explicit delegation choice. This route
checks blueprint start access and reads the resolved blueprint category and
manifest; it does not load the full blueprint detail.
The
POST /api/blueprints/{blueprint_name}/start request also accepts
delegate_to_agent (boolean, optional) and delegation_offer_hash (string,
optional). A start opts in only when delegate_to_agent is true and the hash
matches the offer for that authenticated person, agent, and blueprint. Starts without that
person’s valid offer can leave a draft for the Mission’s person; the draft
allows nothing until signed.
POST /api/blueprints/{blueprint_name}/start accepts the following model fields
in the JSON body (alongside mission_name, description, kickoff_notes,
agent_id, mode, source_context, repo_id, and optional blueprint_id):
The migration-owned migrate_and_prove blueprint cannot be started directly
through this route; it returns HTTP 409 before creating a Mission. Start it
only through the approved migration-plan hand-off using start_migration.
When
llm_provider or llm_tier is omitted, Genesis resolves the value from
the selected agent_id before persisting mission kickoff defaults on the thread.
Phase context_defaults.model_tier overrides the mission kickoff tier while that
phase is active. See
Model tier during blueprint missions.
When inputs is present, Genesis validates each key against the blueprint
manifest inputs.required and inputs.optional names, stores the normalized
object on the mission thread as blueprint_inputs, and includes it in the
initial kickoff message. When journey_context is present, Genesis stores
blueprint_journey_context on the thread and inherits it across
blueprint_chain handoffs.
For the system_test blueprint’s release and sandbox-trial inputs, including
their model-selection behavior, see
System Test mission guidance.
For local_file_uploads, use the session_id supplied by the Launchpad upload
flow and pass the returned file_ids unchanged. The session id is an opaque
presenter- value; uploads are authenticated to the caller and are consumed
after the Mission’s immutable client_files/manifest.json snapshot is
created. Invalid, incomplete, duplicate, or unauthorized file references
reject the start without leaving a partially created Mission.
Blueprint journey definitions
Resolve one declarative journey variant (for example thedatabase-migration
recipe’s snowflake or databricks platform variant).
GET /api/blueprints/journey-definitions/{journey_id}
Response
data (BlueprintJourneyDefinition):
Blueprint mission-start execute access
With authentication enabled,POST /api/blueprints/{blueprint_name}/start and
POST /api/blueprints/{blueprint_name}/runs require the caller to have execute
access to the resolved Blueprint. A caller who can view a Blueprint may still
receive HTTP 403 when no applicable owner, administrator, or role permission
allows execution. This denial is distinct from the agent-access 403; its
response includes these top-level fields:
The
execute action and role-wide permissions are described in
Blueprint RBAC actions.
Blueprint mission-start tool policy preflight
POST /api/blueprints/{blueprint_name}/start and
POST /api/blueprints/{blueprint_name}/runs run the same code execution tool
policy preflight before Genesis creates a mission project or thread. When the
selected blueprint requires tools that are globally blocked under Code Execution
Controls, Genesis returns HTTP 409 with error_type policy_blocked. The
ErrorResponse.payload object includes:
Preflight inspects phase
context_defaults tool groups (for example
code_executor_tools or dbt_action) and phase text that references
dbt_action, execute_python_code, or _run_sqlite_cli_commands. Model tier
selection (llm_tier / llm_provider on mission start and
context_defaults.model_tier per phase) is unrelated to this preflight.
Programmatic BlueprintRun endpoints
These routes let a host application start and supervise a blueprint mission without holding the mission chat UI. Full integration guidance, gate contracts, and the Atlas reference app are in Programmatic BlueprintRun.
The caller needs system
view_git permission, access to the run’s agent and
mission project, and the repository must be associated with that project.
Unlike direct Git repository routes, this run-scoped route does not perform the
repository view check described under Git permissions.
For an agent workspace, the route returns 403 when its Git history contains
per-person memory or that history cannot be checked.
In a Databricks App, the repository-bundle route applies the same Git safety
policy as other agent-writable repositories; see
Git Action Tools.
POST commit routes accept optional Idempotency-Key (max 120 characters).
Replay with the same key and body returns 204; a different body returns 409
(idempotency_key_mismatch).
Genesis carries the authenticated request’s user context into the kickoff and turns
created by gate submissions, so Prover permission checks in those turns use the API
caller. The optional actor field is audit metadata and does not supply that identity;
see Programmatic BlueprintRun.
Project detail payloads can include blueprint_run_id when the mission thread
is linked to a programmatic run.
Required-check waiver
Call the waiver route only after reviewing why the server-owned check cannot be run or pass. The request body contains a human-authoredreason string from 1
to 2,000 characters:
blueprint_name,
phase_id, script_sha256, waived: true, and idempotent. Repeating the
same waiver for the same phase-entry snapshot is safe and returns
idempotent: true. A waiver is recorded as platform provenance and clears the
required-check gate only when all checks in the active phase are satisfied or
waived.
BlueprintRunCreateRequest fields
BlueprintRunInputRequest fields
Todo endpoints
POST /api/todos accepts a TodoCreate JSON body, including required
todo_name, project_id, and bot_id, and returns success, message, and
the created todo_id.
GET /api/todos/{todo_id}/questions
Returns the latest unanswered questions for a todo in data. When an open plan
card is the answer to an ask, data.pending_card identifies it. It may be set
when the ask only requests card approval or when a plan card in the same turn
answers the ask. Explicit card-based asks do not create a second question entry.
It is null when no open card answers the ask or no question is pending.
Bundle API contract
For bundle behavior beyond the HTTP contract, see the Work Bundles guide.POST /api/work-bundles/export
Send a JSON body with at least one selection. The response is a ZIP attachment with media
type application/zip.
For Prover run and comparison visibility requirements, see the guide; runs or comparisons
the caller cannot fully see are omitted with warnings. Prover JSON uses the credential
scrubber also used by comparison transfer.
POST /api/work-bundles/import/preview and POST /api/work-bundles/import
Both endpoints accept multipart/form-data:
/preview reports without writing; /import applies the additions. The response includes
success, applied, source, exported_at, per-section results (missions, threads,
prover, connections), listed apps, and warnings. Mission and thread results report
new, present, and skipped items; Prover reports its new and present rows. Importing
permission requirements and the results when access is missing are described in the
Work Bundles guide. A connection permission failure returns 403. A bundle with an
invalid member hash or unsupported newer format is rejected with 400.
Mission and project list endpoints
Genesis missions are backed by projects. The Mission Center UI loads its mission list fromGET /api/projects.
Mission access also gates related assets, results, and todos. An inaccessible
Mission is reported as
404; anyone who may open a Mission may also update or
delete it. A todo in a Mission follows that Mission’s access
rule, while a todo without a Mission is visible only to its requester or a
mission administrator. Creating todos requires access to the destination
Mission. Bulk status changes check every named Mission before writing, so an
inaccessible Mission rejects the whole request without changing any statuses.
A run this server starts from a Mission conversation is visible to users who may
open that Mission. An imported run’s source conversation does not grant Mission
visibility, even if its conversation id matches a Mission thread.
A project manager’s explicit invalid-request refusal during a project create or update
returns 400 with its reason; other manager failures retain the server-error response.
Mission export requires access to the Mission and omits repositories the caller
cannot view. Saving an export into a repository requires edit access to that
destination. Mission import requires access to the selected agent, view access
to a repository used as the import source, and edit access to every repository
the archive adds files to. When a signed-in person imports a mission, that person
becomes the mission creator and owner of its thread and restored datasets-backed
query results; owner IDs recorded in the archive are not carried over. Replacing
or updating an existing thread requires its owner or an administrator who can
manage every thread. If the importer cannot overwrite it, use the rename conflict
option to preserve both threads.
An exported Mission’s replay includes Prover progress only when the exporter may see the
named run, matching the live replay visibility rule; progress without a run id is omitted.
Todo deletion
For the actor attribution and summary retained in these deletion events, see Project Manager Tools.
Mission required-check endpoints
GET /api/projects/{project_id}/required-checks requires access to the Mission.
It reads the active phase snapshot and, when one exists, its provenance
evidence. If there is no active snapshot, checks is empty. Each check includes
name, blueprint_name, phase_id, script_sha256, entry_nonce, status,
and summary. status is missing (not run), blocked (the latest run failed
or cannot pass), passed, accepted (a person’s valid acceptance covers the
check’s eligible undecided or requested-change Prover result), or waived; summary explains the status in
plain language. A waived check can also include waived_by. An accepted check
includes acceptance (accepted_by, accepted_at, expires_at,
grade_run_ids, accepted_count, and optional grades). Each grades entry records
grade_run_id, population_hash, and the accepted items (member, by, at, until)
for that grade. The response also includes acceptance_summary. It also includes
success and can_waive. Each request reads the Mission thread and its
provenance file; a check whose latest run declared undecided Prover grades also
reads their current acceptance records.
To record a waiver, call
POST /api/projects/{project_id}/required-checks/{check_name}/waive with the
identity values shown for the check and a reason:
reason must contain 1–2,000 characters, phase_id and entry_nonce must be
non-empty strings of at most 128 characters, and script_sha256 must be 64
lowercase hexadecimal characters. The request is rejected if the active phase,
script pin, or phase-entry nonce changed after review. Waivers require enabled
authentication, a genuine human request (not an agent approval or trusted
internal-service request), Mission-management access, and the
approve_agent_action permission. The response includes success, waived,
check_name, blueprint_name, phase_id, script_sha256, and idempotent.
Waivers are durable provenance; the phase gate is satisfied when every check has
passed, been accepted, or been waived. For the separate run-scoped waiver,
see Programmatic BlueprintRun endpoints.
To record the waiver chosen on an agent’s question card, call
POST /api/projects/{project_id}/required-checks/waive-from-question with the
proposal ID returned on that card:
approve_agent_action checks as the Mission-page waiver. The recorded reason is
the question and the selected Waive this check option; repeated answers to
the same card are idempotent. An agent, internal-service request, or proposal
from another Mission cannot record the waiver. proposal_id is required and
accepts 1–512 characters.
PUT /api/projects/{project_id}/status
Request body:
The response includes the persisted result of the change:
PUT /api/projects/bulk/status
The request body contains a required, non-empty projects array. Each item has
project_id (string) and new_status (string): one of NOT_STARTED,
IN_PROGRESS_ACTIVE, IN_PROGRESS_WITH_FAILURE,
IN_PROGRESS_NEEDING_INPUT, PAUSED, STUCK, FAILED, COMPLETED,
CANCELLED, or RETIRED. Genesis checks access to every named Mission before
calling the bulk writer; if any Mission is not visible, the request makes no
changes. The response includes success, message, and results, with one
result per project including its project_id, success, and status or error
details.
Read-only project record endpoints
These endpoints provide the Goals page’s read-only view of typed project records. They are separate from Mission projects and organizational Projects. Records are created and updated through the project tools.
The list endpoint accepts these optional query parameters:
Both endpoints require authentication and return
{ "success": true, "data": ... }.
The list keeps at most the 100 newest records. truncated is true when more
records exist than the response contains. A different person’s record returns the
same 404 as an unknown project_id. List errors include 401 and 500; detail
errors include 401, 404, and 500.
Without these filters, listing projects uses three database reads plus a user
read per distinct person named in the records. A thread_id with no matching
project uses one database read and no user reads; setting include_people=false
skips the person-name reads for matching records as well.
The list data contains items, people, truncated, and generated_at.
Each item includes id, name, project_type, principal, opened_by,
thread_id, created_at, closed_at, goal_total, status_counts,
last_note, plan_incomplete, plan_banner, and planned.
thread_id, created_at, closed_at, and last_note may be null;
closed_at is set when the project is retired. plan_incomplete is true only
while at least one plan gap remains uncovered. plan_banner describes the open
gaps in plain sentences, counted by kind, or is null when none remain. A
not_translatable job gap is covered only when every output dataset named by
the plan has a passing copy on the project’s Landed goal at that dataset’s
current recorded version. Stale passes, failed passes, and passes on another
goal do not count. Copying an unknown_origin dataset does not explain its
producer, so that gap stays open.
planned maps each constrained goal to
{"total": <expected assets>, "done": <assets with a passing check at their current version>}.
people maps person IDs to display names or email addresses, or null when no
name is available. A non-null last_note contains goal, at, actor,
principal, kind, verification, status, and person_turn.
The detail data includes id, name, project_type, parameters, principal,
opened_by, thread_id, created_at, note_sequence, goals, notes, assets,
and people. Goal ordering follows the project_read
contract; notes are oldest first in server sequence. Each goal includes its id,
name, status, acceptance_criterion, skill_ref, preconditions,
asset_refs, and input_versions. For a met goal, input_versions records the
versions its proof is based on: the last met note’s versions when the goal declares
asset_refs, or the latest passing version of each asset cited by its checked
evidence otherwise. These are assets registered to that goal, except that a goal
met before assets belonged to goals may include an asset registered to another goal.
It is empty unless the stored goal status is met. A note includes id, sequence, goal,
actor, principal, at, evidence, asset, finding, waive_reason,
person_turn, verification, verification_reason, server_check_result,
previous_status, status, and input_versions. The detail read does not
re-check evidence; verification describes the check when the note was recorded.
Goals may also include status_qualifier (planned_scope when a met status
applies only to the plan’s constrained scope) and planned with total expected
assets and done passing at their current versions.
Each goal includes server_records, newest first, for work the server filed
under that project and goal whether or not it has been cited. A record includes kind
(foundry_copy_receipt, notebook_publish, notebook_overwritten, databricks_run,
or prover_grade), evidence_id (a Foundry copy receipt, published notebook version,
overwrite mark, Databricks run id, or filed Prover grade reference), asset_id (the
dataset or pipeline), target_table (the copy target or notebook path), state, reason,
attempts, created_at, and updated_at;
kind, target_table, reason, attempts, and timestamps may be null. Foundry copy
states include copy_running, copied, copied_no_receipt, and copy_failed;
notebook publishing and run submission use published and run_submitted; a filed grade
uses graded while awaiting its check. Recording outcomes include recorded_passed,
recorded_failed, registered, replaced, not_readable, not_checkable, unanswered,
and project_retired; future states may be returned as well. attempts is how many times
the server has checked the work; an open record with at least one attempt and a reason is
waiting for another check. A Prover grade is filed once per covered dataset on proved;
see checked project records
for when grades qualify and how a later review-page decision rechecks them.
Each row also includes in_plan: true or false when the project’s plan specifies
whether that asset is expected for the goal, and null when the plan does not constrain
that goal.
The detail read also selects every row in the project’s evidence queue, which is
unbounded and grows with the copies, notebook activity, and Prover grades filed under that
project. Reading this data does not re-check filed work.
The detail also includes parameter_words, the parameters the server can render
as text. It renders the pyspark value of rendering as PySpark. For targets,
it renders recognized planning keys (catalog, copy_schema, rebuilt_schema,
databricks_connection_id, and kept) as destination text: copy and rebuilt-table
schemas are qualified with the catalog when supplied, and a connection is shown as
via <connection>. The kept bookkeeping marker is not shown. An empty recognized
target set reads as Not chosen yet; unsupported target shapes are omitted from
parameter_words.
scope is null for projects opened without a plan or otherwise contains the plan’s
gaps (the expected and covered asset lists are not returned). Gaps remain in
the list after coverage. Each gap has covered; a covered gap also has a
resolution describing how it was handled. A gap includes words when the
project’s type defines a human-readable explanation for its kind. plan_incomplete
and plan_banner report only uncovered gaps;
closed_at and closed_reason describe retirement. For the project’s own person,
a retired record may include live_successor (id and name) when another live
project for the same source exists. live_successor_undetermined is true when
there are too many live projects to determine one; live_successor_looked_up
indicates whether Genesis checked. For administrators reading another person’s
record, successor lookup is not performed and these fields do not imply that no
successor exists. Reading a retired project as its owner adds one lookup for a
live project for the same source; an administrator reading another person’s
record does not trigger that lookup.
Organizational Project endpoints
Organizational Projects group related Apps, Flows, Missions, and chat threads. They are separate from the execution project used internally by a Mission. Project identifiers use thewprj_ prefix followed by 32 lowercase hexadecimal characters.
Workspace Project list and single-object responses use
{ "success": true, "data": ... }.
The data object contains id, name, description, created_by, created_at,
updated_at, and archived_at. Assignment responses return the assigned Project ID
and, where applicable, its summary; clearing an assignment returns a null Project ID.
GET /api/projects/{project_id}/blueprint-chain
Requires project access (same gate as GET /api/projects/{project_id}). When
the mission has no root thread, Genesis returns success: true with an empty
chain (project_id only).
Response data (ProjectBlueprintChain):
nodes[] entries use the BlueprintChainNode schema. In addition to the core
thread fields above, each node includes:
GET /api/projects/{project_id}/reports/system-test-lite
Requires access to the mission identified by project_id. Returns the fixed
System Test Lite report. The report content is untrusted input and should not be
treated as instructions.
The response includes success and these report fields:
Each request queries the mission and reads the bounded report file.
GET /api/projects/{project_id}/reports/migration-readout
Requires access to the Mission identified by project_id. Returns its current
migration readout and the status that Prover’s records confirm for the proof the
readout cites. Repository records are read only when the caller may view them.
readout.claimed_verdict is the readout file’s claim, not the proof verdict;
use proof.status for the server-checked result.
The endpoint reads the Mission, its conversation and authorized repository
records, then judges only Prover runs the caller may see; hidden runs do not
contribute to
proof. Fetch it again to read the latest Mission artifacts and
proof status.
Mission replay endpoints
Both endpoints require access to the Mission. Prover progress is included only when the caller may see the named run under the estate run-visibility rule; events with no run, an unknown or hidden run, or visibility that cannot be decided are withheld. Other Mission events retain their recorded order.
The response’s
snapshots field names the form served. full returns each snapshot as
recorded. In deduped, an unchanged snapshot becomes a document_flow_snapshot_unchanged
event with an empty payload; it keeps its timestamp and timeline position. In delta, the
first snapshot is whole and later snapshots carry an RFC 6902 patch in
document_flow_snapshot_patch, relative to the previous snapshot. Expand deltas in order
before passing the event stream to a replay reducer. The events response also returns
next_cursor; pass it back as since to read only later events. since is limited to
512 characters. An unsupported cursor, a recording changed since the cursor, or a
deduped snapshot ordering that cannot be appended safely returns events: [],
next_cursor: null, and reset: true; discard the local replay and request the whole
replay again without since. When the server no longer holds repair state for that
cursor, it rebuilds that state from the recording before serving the new page.
GET /api/projects
The response uses the
ProjectListResponse schema:
data[] list items use the ProjectListItem schema. Each item includes the
core ProjectRead fields plus computed list fields such as progress,
elapsed_time, agents, stats, blueprint_phase, and creator labels.
Project responses omit the server-owned mission_lifecycle bookkeeping key and
system_test_lite_output_binding key from fields; their presence in storage
does not prevent a Mission from appearing in list or detail responses.
user_can_manage indicates whether the caller may rename, update, or delete the
Mission. It is authoritative on a Mission detail response. On lists read through
view_all_threads, it is a conservative hint and is true only for the owner or
a caller with manage_all_missions, because those lists do not check each
Mission’s thread.
The
GET /api/projects/{project_id} detail response also includes last_activity:
the newest of the thread’s activity, Mission history entries, and its created_at
or updated_at timestamps. It is null when none of those sources has a time.
Genesis resolves requested_by_display_name and requested_by_email on this
route from the user directory. Identities that are already emails are returned
as requested_by_email without a separate directory lookup. The built-in
system_default_user identity is not resolved to a display name or email; UIs
show it as System User.
GET /api/projects/awaiting-input
This route has no query parameters. It returns missions in
IN_PROGRESS_NEEDING_INPUT or STUCK status that the caller may open, newest
mission update first. A mission waiting for a person’s answer is reported as
IN_PROGRESS_NEEDING_INPUT; STUCK remains for missions with a faulted phase.
Each request reads task details, recent thread messages, thread-goal questions,
and staged approval-rule state for up to 50 visible missions; blueprint gates
are read for missions with waiting tasks. A staged rule also requires a policy
read, so this endpoint does more work than the light
mission-list request. The candidate read checks up to 500 rows for each waiting
status; truncated is true if a status read reports or reaches that limit, or
more than 50 visible missions need describing.
The response contains success, items, and truncated. Each items[] entry
represents one waiting task, or the mission itself when no task describes the
wait:
When
answered is present, it contains questions (the answered question
set), question_set_id, asked_at, answer (the person’s first message
below the question set, as sent), and answered_at. Timestamps can be null
when the thread did not record them. This lets a caller explain a stale wait
using the answer already in the mission thread instead of presenting the
question as unanswered.
Each question includes phase, priority, category, and content, with
optional expected_response_type, options, question_id, and
question_set_id, and kind fields. kind is optional when the question
would help but the agent continues without an answer; an omitted kind means
the default ask. It can also include recommended (string or null),
the option text the agent recommends for a choice or multiple question, plus
context (string or null) for the agent’s preceding explanation and
recommendation_note (string or null) for its recommendation and rationale.
A goal’s queued questions are included when no QUESTION block supplies questions
for that waiting task; when no task describes the wait, they are attached to the
mission entry. question_source identifies which kind the entry carries. A
mission whose tasks or thread and goal questions cannot be read can still appear without
question data. A bare AWAITING_INPUT status does not create a question: its synthetic
Unspecified question placeholder is omitted from questions.
A goal question that proposes a required-check waiver also has
waives_check: {proposal_id, mission_id}. Preserve that object and the question’s
two options when returning it to the agent; the proposal ID lets the person’s own
answer record the waiver through the question-card waiver route.
GET /api/projects/waiting-on
Query parameters bot_id and thread_id (both required) name the thread. It
returns the one thing that thread, or the mission it runs, waits on a person to
decide: an unanswered question first, then a change held in Action Review, then
a staged approval-rule change, then a phase’s go-ahead that has not been given.
kind is null when none of these is open, whatever the thread’s goal last said
about waiting on a person. The goal button’s popover and the mission header’s
“Awaiting Input” badge open what this names.
A thread the caller may not open answers 404. A staged rule is read only for a
caller with access_config_panel, and a held change only for one with
approve_agent_action. For a mission’s thread the route describes that one
mission as GET /api/projects/awaiting-input does, then reads one held change.
Managed artifact repositories and dependencies
Skills, Flows, Apps, agent definitions, and document indexes (Knowledge Base feeds) can each register Git-backed managed sources and edit artifacts in per-user workspaces. Dependency binding is shared across artifact types. Operator workflows are documented in Multi-Instance Skill, Flow & App Sync and Document Indexes.Repository sync and workspace routes can return the same structured
OAUTH_RENEWAL_REQUIRED remediation payload described for Blueprints when a
saved Git OAuth grant has lapsed.Managed source permissions
Own-item RBAC.
Per-type repository
POST, PATCH, and DELETE routes also accept manage_repos
via require_any_permission alongside the legacy permission for that artifact
type. POST on those legacy create routes sets the response header
Deprecation: true; prefer /api/managed-sources when registering a repository
that should scan more than one artifact type.
Deleting a source through a per-type route when scan_types_enabled contains
more than one type returns HTTP 409 with error_code SOURCE_HAS_MULTIPLE_TYPES
and admin_url /api/managed-sources/{source_id}. Use
DELETE /api/managed-sources/{source_id} instead.
Unified managed sources (/api/managed-sources)
Requires manage_repos or manage_own_repos. The own-item permission sees and
changes only sources the caller added; a new source records created_by, which
is included in source responses. An existing source keeps its original creator
when updated. POST /api/managed-sources/remote-skill-release-tags can inspect
a remote before a source exists, while operations on an existing source check
its owner. See own-item RBAC scopes.
Creating or updating a source that includes roles, or
applying a role preview, also requires manage_users (HTTP 403 when absent).
Agent-source registration and operation authorization vary by action; see the
managed-agent authorization rules.
Use this surface when one Git repository should discover Skills, Flows, Apps,
Blueprints, agent definitions, document indexes (Knowledge Base feeds), and
(when enabled) Missions from a single repo_id checkout. The dashboard page is
Config → Managed Sources (also requires access_config_panel). The
Document Indexes page exposes the same panel through Sync from Git.
Flow pending-promotion endpoints
These endpoints manage Flow definitions held after a managed-source sync whenauto_promote_on_sync is false. They accept manage_flows, or
manage_own_flows for changes the caller may manage. A caller with only the
own-item permission sees and promotes changes only for flows they manage or new
flows from a source they added.
The promotion request also returns
401 when the acting user is missing,
403 without the required all-item or own-item access, 404 when the pending
change or source is gone or is outside the caller’s scope,
and 400 for other promotion validation failures.
When a managed-source sync or preview cannot resolve
release_ref, its error
identifies the requested ref and reports available release tags, branch refs
tried, local branches, and whether a remote is configured (or that remote state
could not be read).release_poll on each source object from list,
detail, create, and update operations. It is null when skill revision tracking
is disabled or the source does not scan skills. Otherwise it reports the
scheduled check state: checked_at, skipped_at, and error; new_release
(tag, commit_sha); moved_tag (tag, anchored_commit_sha, nullable
remote_commit_sha, detected_at); and upgrade_refusal (tag, error_code,
message, at). A null remote_commit_sha means the pinned tag was deleted
remotely. Findings describe conditions that still hold; a failed check sets
error and retains the findings from the previous check.
Each source response also includes auto_sync (default false) and
auto_sync_state. The state reports whether the scheduled job is running,
whether the source is currently eligible and any ineligible_reason, the last
recorded outcome, checked_at, skipped_at, optional counts in waiting, and
sanitized failures. Outcomes are up_to_date, updated,
updated_awaiting_promotion, updated_with_errors, failed, or not_eligible.
checked_at changes when the outcome changes, not on every unchanged pass; the
first unchanged pass after an update records up_to_date. skipped_at records
when the latest pass left a source alone because it was syncing. waiting counts
items needing administrator action by kind: blueprint_versions,
agent_changes, document_indexes, flow_changes, and role_changes. For
role changes, it also reports counts by reason: roles_edited_locally,
roles_owned_elsewhere, roles_rejected, roles_removed_from_source,
roles_granting_unmanaged_agents, roles_changed_during_sync,
roles_waiting_for_review (when auto-promote is off), and role_errors.
auto_sync_state.role_notes lists rejected roles to fix in Git and removed
roles to delete manually in Admin → Roles; these notes are not waiting
work. Their reasons are visible only to callers with manage_users. For agent
changes, waiting also reports counts by reason: agents_edited_locally,
agents_switched_off_locally, agents_without_applied_record,
agents_changed_during_sync, agent_conflicts, and agent_errors.
failures contains by_type counts,
degraded, fixed-name exceptions, and an optional error_code.
If sync resolves release_ref to a tag that now names a different remote
commit, it fails with error_code: RELEASE_TAG_CHANGED_ON_REMOTE rather than
using the stale local tag. Reset the checkout and sync again, or re-pin the
release tag for a governed skill source.
Managed-source deletion is retryable. A source remains marked as pending
deletion until dependent cleanup succeeds, so a failed delete does not lose
the ownership records needed for a retry or allow a deleted legacy source to
reappear after reload. While cleanup is pending, sync returns HTTP
500 with
error_code SOURCE_DELETE_CLEANUP_PENDING; resolve the reported
cleanup_warnings and retry DELETE /api/managed-sources/{source_id}.Async managed-source sync.
POST .../sync-async returns immediately with a
job_id. Poll GET .../sync-status/{job_id} until status is complete or
error. The dashboard polls every 2 seconds for up to 15 minutes. Job status is
held in memory (up to 200 terminal jobs); restarting the server drops in-flight
and completed job records, so polling after restart returns HTTP 404. A second
sync-async for the same source with a different overwrite_indexes,
apply_agent_changes, expected_agent_commit, expected_agent_plan_hash,
apply_role_changes, expected_role_commit, or expected_role_plan_hash
starts a new job (serialized behind the first); matching values on all seven
fields reuse the in-flight job.Background governed skill release changes. On
PATCH /api/managed-sources/{source_id}, send both sync_now: true and
sync_in_background: true to save and audit a governed skill release or policy
change, then run its sync as a background job. The response has sync_job
(job_id, status, expected_release_commit) instead of sync; poll
GET /api/managed-sources/{source_id}/sync-status/{job_id} until complete
or error. The job is complete only when both the sync result and current source
name the expected commit and the source is no longer pending. Otherwise it ends
with error_code SKILL_RELEASE_CHANGED_DURING_SYNC or
SKILL_RELEASE_STILL_PENDING. If no job starts after the change is saved, the
response has warning code SKILL_RELEASE_SYNC_NOT_STARTED and no sync_job.
Another release change is refused with HTTP 409 and
error_code MANAGED_SOURCE_SYNC_IN_PROGRESS while a sync or release change is
in progress. For other saves with sync_now: true, sync_in_background is
ignored and sync completes before the response. Job records are process-local
and are lost when the server restarts.Managed agent sync and apply. Agent sources discover one subdirectory per
agent under
agents_root, each with an agent.yaml or agent.yml manifest
(schema_version, agent_id, name, instructions, optional description,
llm_provider, default tool/skill groups, and tool/skill access modes). Sync
without apply_agent_changes only checks out Git content and returns
agent_preview (summary, changes, commit_sha, plan_hash) plus
requires_agent_apply_confirmation when any change is not noop. To apply,
call sync again with apply_agent_changes: true,
expected_agent_commit set to the preview’s commit_sha, and
expected_agent_plan_hash set to the preview’s plan_hash. Missing preview
pins return error_code AGENT_PREVIEW_REQUIRED; commit or plan drift after
preview returns AGENT_PREVIEW_STALE. An apply can include
agent_changes_left_for_admin for changes not applied in that request.
Managed agents are non-editable in the UI (is_editable: false); disable them
per artifact or by removing the source (owned agents are deactivated, not
hard-deleted).Scheduled sync agent apply. When scheduled sync runs for an agent source
whose auto_promote_on_sync is not false, Genesis applies the discovered
agent changes without a separate confirmation. The sync result includes
agent_auto_apply with applied and waiting; changes it cannot safely apply
remain for an administrator, and set
requires_agent_apply_confirmation: true. See auto_sync_state.waiting
above for the waiting counts and reasons. With auto_promote_on_sync: false,
scheduled sync previews the agent changes but does not apply them unattended.Managed role sync and apply. A source with roles scans
roles/<role_name>/role.yaml (or role.yml) role definitions. Manual sync
returns role_preview with summary, changes, commit_sha, and
plan_hash, and sets requires_role_apply_confirmation when applicable; an
administrator with manage_users confirms the preview using
its commit and plan hash. Preview details and reasons are visible only to
callers with manage_users; secret grant names also require manage_secrets.
When scheduled sync is active for the source (auto_sync: true) and
auto_promote_on_sync is omitted or not false, Genesis applies safe role
creates and updates automatically only when every agent granted by the role
is managed by that same source. Other applicable changes wait for review;
rejected definitions must be fixed in Git, and roles removed from Git remain
on the instance until deleted in Admin → Roles. With
auto_promote_on_sync: false, scheduled sync records a preview but does not
apply roles unattended. The next scheduled pass checks the source (300 seconds
by default; see Managed source automatic sync).
Role definitions cannot grant admin-level access; see Users and Roles
for the definition restrictions.ManagedSourceUpsertResponse and sync outcomes. POST and PATCH return the
full upsert envelope at the top level (success, source, sync, optional
sync_job, warning / warning_code / warning_action). When sync_now runs, inspect
sync for partial_success, degraded_artifact_count, hydrate_errors, and
per-type entries under sync.hydrate (for example skills.degraded_artifacts
with artifact_id and reason). A completed sync with lenient-recovered
SKILL.md or flow YAML frontmatter still sets sync.partial_success to true
and lists the artifact under the matching hydrate.*.degraded_artifacts entry.
Config → Managed Sources surfaces these as warning toasts rather than plain
success.SCAN_TYPE_REMOVAL_NOT_SUPPORTED on PATCH. When scan_types_enabled would
remove one or more existing types, the route returns success: false with
error_code, error, current_scan_types, attempted_scan_types,
removed_scan_types, recovery (delete_and_recreate), and remediation
(delete the source and recreate with the desired scan_types_enabled).document_feed_summary document counts. Each entry in indexes includes
count (markdown files under Git management in that index) and
index_doc_count (count plus index_only_doc_count — documents present in
the live index but not yet in the repo). total_count sums managed count
values only; total_index_doc_count sums index_doc_count across every index
and is the accurate total for UI chips such as Config → Managed Sources
“N documents” rows. Per-index fields also include index_only_doc_count,
pending_change_count, proposer, pr, adopted, name_conflict_count,
and requires_overwrite_ack.checkout_exclude (managed checkout pruning). checkout_exclude is an
ordered string[] on create, update, and ManagedSourceResponse that
controls which repository paths Genesis omits from the managed base checkout
using Git sparse checkout. It is separate from include / exclude, which
only govern artifact discovery and enablement — those selectors do not
change what is present on disk. Each rule must not contain NUL or embedded
newline characters. Blank lines and lines starting with # are ignored.
Other lines use gitignore-style path patterns; prefix a line with ! to
re-include a path inside a broader exclusion. When checkout_exclude is
absent or empty ([]), Genesis performs a full checkout (same as before
this field existed). On PATCH, omitting checkout_exclude preserves the
stored rules; sending checkout_exclude: [] disables sparse checkout on the
next sync. Non-empty rules require Git 2.25 or newer — otherwise sync returns
error_code SPARSE_CHECKOUT_UNSUPPORTED. Failed sparse apply attempts
return SPARSE_CHECKOUT_APPLY_FAILED or MANAGED_CHECKOUT_DEGRADED when
rollback also fails. Paths pruned from the base checkout are not present in
the Git Browser tree or other filesystem enumeration of that checkout.
Per-user managed worktrees (skills, flows, apps, agents, and document
workspaces) stay on a full checkout even when the base checkout is sparse.Runtime skill catalog routes
For how shipped skill summaries are presented by
GET /api/skills and
GET /api/skills/discover/{bot_id}, see Skill Admin Tools.
The execution response’s data contains execution_id, bot_id, skill_name,
version, status, started_at, finished_at, duration_ms, invoked_by,
input_payload, evidence, and error. A caller without manage_skills, or
without both manage_own_skills and management access to the target agent,
cannot execute a skill; the POST route returns 403.
See runtime HTTP guidance.
For shell-step payload substitution and its security boundary, see
Skill Runtime Tools.
DELETE /api/skills/{skill_name} operates on the runtime skill registry
(SkillService). To remove an imported AgentSkills package and its on-disk
files, use DELETE /api/agent-skills/{skill_name} instead.Skill repository and workspace routes
App repository and workspace routes
On
GET /api/apps/repositories, artifact_counts includes only apps whose
microapps record was created by managed sync (created_by starts with
managed_sync:). Standalone apps whose workspace_path was mis-pathed into
a managed clone after a failed export are excluded so Managed Sources counts
stay accurate. Artifacts with no microapps record yet are still counted; if
the microapps service is unavailable, Genesis falls back to counting all
registry artifacts for that source./api/flows/... with flows_root
on create and optional auto_promote_on_sync. Flow create and update validation
also applies the bulk_copy contract before saving; see Flows — Move a table
between registered connections
for the accepted fields and target-specific rules. In a flow definition,
steps[*].run_concurrently is a boolean that defaults to false; consecutive
steps marked true run as one batch, with at most 8 steps at once.
Managed artifact dependency routes
Blueprint example requests
Team Wiki endpoints
These endpoints are mounted under/api/wiki/v1/... and provide Team Wiki browsing plus per-page commentary for the dashboard. Read responses cover both graph-backed entity pages and generated wiki://... subgraph documents. Graph-backed page responses are rendered dynamically from the Context Graph and can include graph-backed properties, lineage, ancestry, child-navigation metadata, related subgraph-document references, and a learning count for the requested node. Commentary routes let callers list, post, and soft-delete Markdown comments on any wiki page; only the comment author can delete a live comment, and soft-deleted comments return an empty body_markdown in list responses. The same page payload also backs the Digital Twin node detail panel and graph-backed entity pages in the standalone Wiki workspace when the frontend wiki feature flag is enabled. The page endpoint is optimized for the web UI: graph-native pages return the main rendered markdown without waiting for the ## Children rollup, and clients can load children separately from /api/wiki/v1/tree?parent=<qualified_name> when needed.
When authentication is enabled, all Team Wiki routes in this section require
the system-level
view_git permission, including commentary list, create, and
delete.Endpoint summary
GET /api/wiki/v1/tree
Team Wiki tree response fields
Team Wiki tree node fields
GET /api/wiki/v1/subgraphs
This route has no request parameters. It returns the generated wiki://...
document refs used to populate the standalone Wiki discovery pane. When Twin
cannot enumerate those documents, the route returns 503 instead of an empty
success response. An empty subgraph_documents list therefore means Twin was
reachable and no generated documents were found.
Team Wiki subgraph list response fields
Team Wiki subgraph list error responses
GET /api/wiki/v1/pages/{qualified_name:path}
Team Wiki page response fields
Team Wiki page error responses
Subgraph document reference fields
Team Wiki link fields
GET /api/wiki/v1/subgraph/{qualified_name_tail:path}
Team Wiki subgraph document response fields
Team Wiki subgraph document error responses
GET /api/wiki/v1/pages/{qualified_name:path}/commentary
Team Wiki commentary list response fields
Team Wiki commentary row fields
POST /api/wiki/v1/pages/{qualified_name:path}/commentary
Create one Markdown comment on the requested wiki page. Genesis attributes the
comment to the authenticated caller and returns 201 Created on success.
Team Wiki commentary create response fields
Team Wiki commentary create error responses
DELETE /api/wiki/v1/pages/{qualified_name:path}/commentary/{comment_id}
Soft-delete one commentary row. Genesis verifies that the comment belongs to the
path qualified name and that the authenticated caller is the author.
Team Wiki commentary delete response fields
Team Wiki commentary delete error responses
Configuration and secrets permissions
These endpoints back the Genesis Config UI and related administrative flows. They are mounted under/api/config/..., /api/secrets/...,
/api/push-metrics/..., and selected /api/genesis-enhancements/... routes.
When authentication is disabled, RBAC permission checks do not block
requests on these routes.
Public, do not require an RBAC permission. Protected routes
return 403 Permission denied when the caller lacks access.
Configuration permissions
Protected configuration and secrets endpoints
Configuration request bodies on these routes reject undeclared JSON fields with HTTP422 Unprocessable Entity; fields are no longer silently ignored. Send only
the fields listed for the endpoint, including for partial updates and connection
tests. This applies to the request models used by the configuration, provider,
automation, profile, secret, branding, SCIM, and custom-endpoint routes below.
On PostgreSQL or SQLite metadata deployments,
GET /api/config/warehouse/status
reports a successful non-Snowflake status with is_snowflake: false, no current
warehouse, and an empty available_warehouses list. The application name remains
GENESIS_DATA_AGENTS.
On those same deployments, the email settings endpoints report and manage the
saved default email in the metadata database. GET /api/config/email/status
returns that address when configured, with is_validated: false; email sending
and test sends are unavailable because they require a Snowflake notification
integration. DELETE /api/config/email clears the saved address.
LLM provider delete request fields
TheDELETE routes for /api/config/llm-providers/openai,
/api/config/llm-providers/cortex, /api/config/llm-providers/databricks,
/api/config/llm-providers/litellm-proxy, and
/api/config/llm-providers/other accept the same JSON request fields:
These request models reject undeclared fields instead of ignoring them. Use
sub_provider—not provider—when deleting a LiteLLM sub-provider; an unknown
field returns request validation feedback rather than deleting the base
provider or reporting that no base configuration exists.
Encryption key endpoints
These routes back the Encryption Key Configuration card on Config → Secrets and related setup flows in Snowflake Native App (SPCS) deployments. All requiremanage_secrets. The /encryption-key/enable and
/encryption-key/verify-setup routes return 400 with
"Not running in Native App mode" when SPCS_MODE is not TRUE. First-time setup
SQL is shown by the dashboard and generates the key inside Snowflake; no route
generates, returns or receives key material.
GET /api/secrets/encryption-key/status response
When
status is unavailable, treat encryption as not confirmed missing —
retry after the underlying Snowflake or external-secret outage clears. Older
backends may return only configured and source; clients map that to
status: "configured" or status: "missing".
POST /api/secrets/encryption-key/enable response
Returns
503 when the database connector is unavailable.
GET /api/secrets/encryption-key/verify-setup response
Embedded Tailscale auth-key endpoints (Native App)
These routes back the Tailscale tab of Config → Secrets in Snowflake Native App (SPCS) deployments. They return400 with
"Not running in Native App mode" when SPCS_MODE is not TRUE. All require
manage_secrets. The Tailscale auth key never crosses these APIs — operators
paste it into Snowflake SQL locally.
GET /api/secrets/tsnet-auth-key/status response
When
enabled is false, online is false and backend_state is omitted.
GET /api/secrets/tsnet-auth-key/setup response
POST /api/secrets/tsnet-auth-key/enable response
Returns
503 when the database connector is unavailable.
GET /api/secrets/tsnet-auth-key/verify-setup response
GET / PUT /api/secrets/tsnet-auth-key/egress
GET returns the stored egress allow-list read from APP1.TSNET_EGRESS (instance
schema). When unset, the response is ["0.0.0.0:443"] — the broad default that
permits outbound TCP/443 to any host.
PUT accepts a JSON body:
Validation trims blanks, de-duplicates (order-preserving), requires at least one
entry, allows at most 256 entries, and enforces
host:port shape (DNS name or
IPv4 host, port 1–65535). Returns 400 on invalid input.
Both routes return:
The saved list takes effect on the running EAI only after the operator
re-connects Tailscale Control Plane External Access in Snowsight, then
suspends/resumes the Genesis service.
GET / PUT /api/secrets/tsnet-auth-key/advertise-tags
GET returns the operator-set Tailscale ACL tag(s) read from
APP1.TSNET_ADVERTISE_TAGS (instance schema). When unset or the table is
missing, the response is an empty string. The value is folded into
CORE.GET_TSNET_BOOT_CONFIG() at container boot (one round-trip with the auth
key).
PUT accepts a JSON body:
Validation trims the input, de-duplicates tags (order-preserving), and rejects
blank tokens inside a non-empty list (stray or doubled commas). Each tag must
match
tag:<name> where <name> is letters, digits, or hyphens (starting
alphanumeric). Allows at most 32 tags and a total stored length of 512
characters. Returns 400 on invalid input.
Both routes return:
The saved value takes effect on the device only after the operator suspends and
resumes the Genesis service (read at container boot via
CORE.GET_TSNET_BOOT_CONFIG()). Required for the OAuth-client auth path when
the auth key is an OAuth client secret — Tailscale requires --advertise-tags
in that case.
POST /api/secrets/tsnet-auth-key/disable response
Disables embedded Tailscale for Native App deployment by calling
CORE.DISABLE_TSNET_ACCESS() (reverts the auth-key UDF, removes the Tailscale
EAI from the running service, unbinds references). The stored egress allow-list
is left intact for a later re-enable.
GET /api/secrets/tsnet-auth-key/disable-template response
External Access Integration (EAI) assignment endpoints
These routes back Assign to Genesis in the Config UI for Snowflake Native App / SPCS deployments. All requireaccess_config_panel.
Genesis stores each binding as its own
EAI_CONFIG row keyed by the reference
identity (EAI_NAME = reference('<reference_name>')), not by EAI_TYPE.
Multiple references can share the same type (for example
genesis_external_access and tailscale_external_access both use CUSTOM);
assigning one reference updates only that row and does not replace bindings for
other references. On startup, Genesis also seeds one EAI_CONFIG row per
external-access reference on the running service (splitting Snowflake’s
comma-joined external_access_integrations list) so disable/cleanup paths such
as CORE.DISABLE_TSNET_ACCESS() can match each reference independently.
GET /api/config/eai/{reference_name}/assigned query fields
POST /api/config/eai/assign request fields
Returns
success: false with error: "Invalid EAI reference name or type" when
reference_name or eai_type contains characters outside letters, digits, or
underscore.
When reference_name is genesis_external_access, a successful assign may also
return refreshed_connection_egress with updated connection egress preflight
states.
Assignment does not treat a non-throwing CORE.UPGRADE_SERVICES() call as
success. That procedure returns Services upgraded successfully even when it
attached nothing (for example when the service had no prior external-access
list and ALTER SERVICE was skipped). After the upgrade, Genesis reads
SHOW SERVICES and confirms the reference is on GENESISAPP_SERVICE_SERVICE
(the service CORE.UPGRADE_SERVICES upgrades). The same verification runs on
POST /api/genesis-enhancements/eai/assign.
POST /api/config/eai/assign response fields
EAI assignment verification object
Returned inverification on POST /api/config/eai/assign,
and POST /api/genesis-enhancements/eai/assign.
Callers should treat assignment as failed only when
checked is true and
applied is false. When checked is false, Genesis does not fail a
request that otherwise completed — for example local SQLite has no live service
to inspect.
The verification object uses exact reference identity matching on
GENESISAPP_SERVICE_SERVICE, not the looser substring matching
GET /api/config/eai/{reference_name}/assigned may use for status display.
Config setup apply endpoints
These routes validate and apply YAML or JSON configuration through the setup API. All requireaccess_config_panel.
POST /api/config/setup/apply vs POST /api/config/setup/apply-partial
POST /api/config/setup/apply fully replaces persisted configuration: it
clears existing APP_CONFIG values, writes only the supplied paths, drops
fields not in the schema, and relies on schema defaults at read time for
omitted fields. POST /api/config/setup/apply-file uses the same full-replace
semantics for uploaded YAML or JSON. Use these routes for profile import and
full-environment activation flows.
POST /api/config/setup/apply-partial merges the payload on top of the
current database state. Only paths present in the body are written; every other
field keeps its existing value. Use this for targeted YAML/JSON patches where a
full replace would be too destructive.
A field’s storage semantics depend on the field’s schema, not on the write
door: apply-partial and the Advanced Settings UI both write through the same
ConfigApplier, so any given field is persisted identically whichever path
sets it. apply-partial rejects connection payloads — manage connections
through their dedicated /api/connections API instead.
For secret-field storage and audit attribution, see Secret-valued settings.
For a caller who is not an administrator, these routes refuse with 403 (“Admin
access required to …”) when the content names what they may not change, before
anything is previewed or written:
apply-partialrefuses content naming an admin-only setting, such asfeatures.presenter_controls_enabled, even at its stored value.apply,apply-fileand/api/config/setup/templates/{template_name}/applyreplace every section the content names, so they refuse content naming a section that holds an admin-only setting, such asfeaturesorauth.
auth.* setting is admin-only, since turning sign-in off
would make everyone an administrator. A dry run is never refused.
Shared apply request fields
POST /api/config/setup/apply accepts:
POST /api/config/setup/apply-file accepts multipart form field file (YAML or
JSON) and optional query parameter dry_run (boolean, default false). It does
not accept content or output_format in the body.
POST /api/config/setup/apply-partial accepts:
Partial apply strips optional metadata keys
schema_version, name, and
description before validation. The configuration root must be a mapping.
Partial apply restrictions
Schema sections that own a dedicated REST write surface cannot be applied through partial apply. Requests that includeconnection (nested or dotted keys
such as connection.api_key) are rejected with a validation error directing
callers to /api/connections instead. This prevents mixed-row storage and
bypasses secret-migration and cache-invalidation hooks on the connections API.
Apply response shape
Both apply routes returnConfigApplyResponse with top-level success and a
result object containing added, updated, deleted, skipped (integers),
changes (array of path, old_value, new_value, action), and errors
(string array).
Opaque dict schema fields
Schema fields declared with type: dict (currently connection and
pricing.model_overrides) are stored as a single JSON blob in one APP_CONFIG
row (KEY empty) rather than flattened into dotted path segments. Export,
drift, and partial-apply merge operations preserve these dicts as opaque units.
Connection changes must still go through /api/connections, not partial apply.
Use partial apply or Advanced Settings for pricing.model_overrides updates.
Config sources endpoint
GET /api/config/setup/sources resolves where each configuration value comes
from — the effective value and every layer in the priority chain. The Config
Profiles Show Sources modal and Advanced Settings per-field source badges
call this route. Requires access_config_panel.
GET /api/config/setup/sources query parameters
When neither parameter is supplied, Genesis resolves source information for
every schema field (~640 paths). This is a database-intensive operation —
prefer
path or section when calling programmatically.
GET /api/config/setup/sources response fields
When path is set, the response is SingleValueSourceResponse:
When
path is omitted, the response is ConfigSourcesResponse with sources
mapping each path to the same ValueSourceInfo shape (path, effective_value,
source, all_sources).
Snowflake context endpoint
GET /api/config/snowflake/context backs Snowflake-aware setup helpers in the
Config UI, including generated Snowsight approval links and Snowflake endpoint
values shown for outbound-access setup.
GET /api/config/snowflake/context response fields
Snowflake Native App install status procedure
CORE.GET_INSTALL_STATUS() reports the Native App’s installation or restart
progress from Snowflake service state and Genesis startup progress. Call it from
a Snowflake worksheet using the installed application’s database name:
APP_PUBLIC role. It does not wait for startup. Each call reads
Snowflake privilege, reference, compute-pool, service, container, and endpoint
state; a failed probe leaves its fields NULL rather than failing the call.
Genesis publishes changed startup details to APP1.STARTUP_STATUS every 15
seconds after its metadata connection is available.
CORE.GET_INSTALL_STATUS() result fields
The ETA uses cold-install baselines of 270 seconds for pool provisioning, 150
seconds for image pulling, and 450 seconds for Genesis initialization. When
Genesis has reported progress for the current container, that progress informs
the initialization ETA. These are estimates, not startup time guarantees.
Database connections config endpoint
GET /api/config/db-connections backs the Data tab connection list and other
read-only database-connection pickers. Unlike most Config routes, this endpoint
accepts any one of access_config_panel, manage_all_connections, or
view_connections via require_any_permission.
GET /api/config/db-connections response fields
Each item in data[] includes:
The three access fields above are read-only here. They describe legacy
CUST_DB_CONNECTIONS rows, where every connection access gate still enforces them; a
connection stored by the Connections API carries none of them and controls access with
scope and role_names instead — this API’s spelling of the RBAC role grant;
roles_with_access is the connections_action spelling and is not an HTTP alias.
Sending a deprecated access field back to POST /api/connections,
PUT /api/connections/{type}/{name} or connections_action CREATE/UPDATE is refused
rather than accepted and dropped. * on an allowlist is the one accepted value, because it
restricts nobody — on an HTTP body, and inside connections_action’s locator_json. That
exception does not cover a deprecated name passed as a top-level tool parameter:
connections_action does not declare those names, so its unknown-parameter guard rejects
the call before any of this applies, * included. owner_bot_id has no wildcard: omit it.
Sending roles_with_access to either HTTP route is also refused, with 422 — it is the
connections_action spelling and not a field of this API, and unknown fields are dropped
here, so accepting it would answer success having applied no grant.
Sensitive fields (allowed_bot_ids, allowed_user_ids, connection_string)
are returned only when the caller has manage_all_connections or owns the
connection (owner_user_id match). For the virtual System Snowflake row
injected when native Snowflake metadata is enabled, sensitive fields require
manage_all_connections.
Microsoft Teams OAuth provider bootstrap endpoints
These routes are mounted under/api/config/oauth_providers/microsoft_teams
and back the shared-default UI in Config -> Advanced Settings -> OAuth
Providers. They require access_config_panel.
Microsoft Teams OAuth provider fields
License management endpoints
These routes are mounted under/api/license/... and back the Config ->
Activation page. They require access_config_panel.
In bypass mode, GET /api/license/status can still return activated: true.
When no real license is stored, Genesis returns a synthetic placeholder so
clients can distinguish bypass mode from a genuinely activated key. When a
real license is stored, the same endpoint surfaces the real license details
while still reporting spcs_mode and enforcement_disabled.
GET /api/license/status response fields
POST /api/license/activate request and response fields
POST /api/license/deactivate response fields
GET /api/license/check response fields
Credits standing endpoint
GET /api/credits/standing returns the current credit gate status. It costs a
lock and clock reads, with no database or network I/O.
Genesis allowance endpoints
GET /api/credits/allowance gives a caller outside the web app the allowance
remaining on this install, whether work is refused now, and how to get more.
It combines Genesis Credits with the Genesis AI meter on Desktop or a pot-backed
Try Me instance, and the Try Me preview budget when one applies. Meter and spend
reads use their cached readings; a failed reading leaves that section unavailable
rather than guessing a balance. GET /api/credits/get-more returns only the
remedy fields and does not read a meter or spend total.
The allowance response is
{ "success": true, "data": ... } with these fields:
GET /api/credits/get-more returns success and data containing context,
how_to_get_more, get_more_url, and contact_email.
Jira automation and service-worker endpoints
These routes are mounted under/api/config/jira/.... The base Jira config
routes and Jira EAI helpers require access_config_panel. The shared Jira
automation and Jira service-worker routes in this section accept either
access_config_panel or manage_all_connections, and Genesis exposes them
only when Jira automation rollout is enabled. When rollout is off, these
automation and service-worker routes return 404 with the disabled-feature
message instead of exposing partial setup state. The web client discovers that
rollout through GET /api/config/frontend field jira_automation_enabled.
Jira automation and service-worker auth fields
Jira automation poll-now request field
Jira automation polling behavior
Scheduled Jira Ticket Poller runs and steady-statepoll-now calls (when
lookback_minutes is omitted) share the same cursor and throttle rules:
- Poll cursor overlap: After the first successful poll, steady-state runs
search from
last_successful_poll_atminus 600 seconds (10 minutes). Genesis replays this wider window because Jira enhanced search is eventually consistent — a delayed issue can still appear after the successful-poll cursor advances. The first poll and manualpoll-nowruns with an explicitlookback_minutesusepoll_lookback_minutesfrom the saved config instead. - Poll throttle: When
lookback_minutesis omitted onpoll-now, Genesis compares the later oflast_poll_started_atandpoller_last_run_atagainstpoll_interval_seconds. A poll is allowed when elapsed time is at leastpoll_interval_secondsminus 2 seconds — managed interval Flows can start just before the nominal boundary, and without this allowance sub-second drift would skip every other scheduled poll. Skipped responses includenext_poll_secondswith the remaining wait time. - Duplicate-trigger metadata refresh: When an issue still matches the poller
but Genesis has already recorded the same trigger fingerprint, the issue is
skipped for redispatch. If that issue already has an open Request row in
the observation ledger and the Jira
summarychanged since the stored title, Genesis records ametadata_changedledger event and updates the Request title without redispatching the bot. When no open Request exists for that issue key, Genesis skips the metadata refresh and does not create ledger activity from summary drift alone.
ServiceNow automation endpoints
These routes are mounted under/api/config/servicenow/... and require
access_config_panel or manage_all_connections.
ServiceNow webhook endpoint
ServiceNow automation request fields
Linear automation endpoints
These routes are mounted under/api/config/linear/... and require
access_config_panel or manage_all_connections. Saving automation settings
with enabled: true requires a shared Linear api_key connection;
personal connections are rejected.
Each delegated issue is handed to the orchestrator bot as a direct request in a
stable thread, one per connection and issue. On pickup Genesis moves the issue to
working_state and comments with the linked thread ID. The orchestrator then
works the request and moves the issue to needs_info_state with a concrete
question, or to review_state with a comment describing the outcome. An issue
already dispatched to its thread is skipped on later polls, so each issue is
picked up once.
Linear automation request fields
Azure DevOps automation endpoints
These routes are mounted under/api/config/azure-devops/... and require
access_config_panel or manage_all_connections. Saving automation settings
with enabled: true requires a usable Azure DevOps connection and project.
Azure DevOps automation request fields
run_as_user_id is not a request field. When enabled is true, Genesis
persists it from the authenticated caller and clears it when automation is
disabled. Scheduled polls and poll-now pass that stored owner into connection
resolution, orchestrator thread ownership (create new stable threads with
user_id / user_email, or reassign existing
azure-devops-<connection>-<work-item-id> threads to the stored owner and
synchronize thread metadata), and kickoff send_message (user_context). The
GET response exposes only run_as_configured (whether an owner is recorded).
Azure DevOps automation poll-now response fields
Ticket automation endpoints
Read-only routes backing the Requests page Activity view and the Config → Request sources Health panel. They aggregate the observation ledger and per-provider configuration. Routes are syncdef handlers (FastAPI runs them
on the thread pool).
For a currently failing source, its health entry also includes
error_cause
(the classified cause of the latest failed poll) and failing_since (when the
current consecutive-failure streak began). Both are null when the source has
no active failure streak; a successful poll clears the streak.
When the ledger store is unreachable, activity and health responses set
ledger_degraded: true with ledger_degraded_reason instead of returning HTTP
500. Event detail objects are redacted to an operational allowlist (no prompt
text or customer content).
Timeline kind values include detected, claimed, claim_failed, dispatched,
resumed, suppressed_duplicate, status_changed, metadata_changed, writeback,
error, promoted, and follow_up. A metadata_changed event means
provider-side metadata (for Jira polling, the issue summary) changed on an
already-tracked open Request; Genesis does not emit it when the open-work-item
lookup is empty.
Activity rows include last_checked_at as an ISO timestamp or null. It records
when the source status was last checked, advances on every status check unlike
last_event_at, and remains null until a refresh first visits the item.
For Jira polling, a status_changed event is also emitted when the provider
status is unchanged but its configured lifecycle mapping differs from the
ledger. Its summary identifies the provider status as remapped and includes the
mapped lifecycle state when one exists, allowing a newly configured terminal
mapping to close an item that already recorded that provider status.
For Slack and Teams health entries, intake is automatic or manual promotion according to ticket_automation.auto_track_chat_requests (defaults
to true). The intake checklist step is labeled Automatic chat intake or
Manual chat promotion with matching detail text.
For Azure DevOps (provider: azure_devops) health entries, intake is
polling. Checks report whether assignment automation is Enabled, whether
its connection, project, and owner are Configured, and whether a Recent
poll completed. A poller that has not completed within its freshness window is
reported as stale. source_key is {organization}/{project} (lowercased).
Activity rows use the same provider, source_key, and external_key (the
Azure DevOps work item id) identity.
While a source has a failing poll streak, its health entry includes
error_cause (auth, network, not_configured, scope, rate_limit, or
unknown) and failing_since (the ISO timestamp when the current streak began).
Both fields are null while the source is healthy. A successful poll clears the
streak; its start time is retained across server restarts.
SCIM admin configuration endpoints
These routes back inbound SCIM setup in the Genesis Config panel and requireaccess_config_panel.
In a Databricks App, every route in this admin group and every /scim/v2
provisioning route returns HTTP 501 with error_type: "not_available_here"
for the admin API, or a SCIM error response with status "501" for the
provisioning API. The response detail explains that users and groups come from
Databricks SSO and recommends managing access with Databricks groups and Genesis
roles. An identity provider cannot reach SCIM through the App’s sign-in flow.
GENESIS_SCIM_REQUIRE_PROVISIONED_USERS is ignored in a Databricks App, including
for SCIM-deactivated users in a migrated metadata database; sign-in eligibility
comes from the App’s CAN_USE permission. If the variable is set, startup logs
one warning that it is ignored.
Okta directory sync settings endpoint
PUT /api/config/scim/okta-sync/settings requires the MANAGE_USERS permission. It saves
the Okta connection settings and returns the refreshed directory sync status. Omit
private_key to keep the stored key; the key itself is never returned.
The response
data contains the refreshed status, including these connection fields:
GET /api/config/scim/config response fields
SCIM admin mutation fields
Slack configuration and runtime endpoints
These routes are mounted under/api/slack/... and back the Slack
Integration admin flow, saved-token connection testing, per-bot deployment
status, and live Socket Mode diagnostics. Except for the OAuth callback at
/api/slack/oauth/callback and the home-workspace and email-trust routes below,
the admin routes in this section require access_config_panel. The home-workspace
and email-trust GET routes below require access_config_panel; their PUT routes
require manage_users. Further-workspace lifecycle routes also require
access_config_panel.
The home-workspace and per-agent email-trust routes back the Slack Integration
workspace picker and each agent’s Slack settings. Workspace discovery is cached
for five minutes on reads. A home-workspace save refreshes installations (one
auth.test per agent and one auth.teams.list page per org-wide install) and
checks one users.info profile per workspace that needs proof. Turning on
email-trust refreshes only that agent’s installation (one auth.test, plus
auth.teams.list pages for an org-wide install); reads use the discovery cache.
Every Slack workspace of an agent, its first included, is set up through the deploy
routes:
POST /api/slack/bot/{bot_id}/deploy with add_workspace: true makes the
agent’s app in one more workspace and answers its install_id; the same route with
install_id answers a pending workspace’s next step or redeploys a live one;
POST /api/slack/bot/{bot_id}/app-level-key with install_id saves that workspace’s
app-level token and answers its install link; and GET /api/slack/bot/{bot_id}/status
with install_id reports one workspace. The workspace routes below list, remove and
choose the default. Each write is audited before its change is saved. Responses never
include stored credentials. All require access_config_panel, and writes require a
signed-in user.
The workspace list exposes each install’s
install_id, status, workspace
IDs/names and app IDs when known, has_app_level_token, is_default, creator, and
timestamps. Status is pending_app_level_token (waiting for its app-level token),
pending_oauth (waiting for install approval), or active. Invalid or refused
requests return an error response; unauthenticated requests return 401,
permission failures return 403, and invalid request bodies return 422.
GET /api/slack/home-workspaces returns workspaces entries with
team_id, team_name, enterprise_id, source (agent_install, org_install,
or configured), agents, selected, and primary. The PUT response also
returns live_reached and live_total; warning explains when some running
connections will take the saved list only after restart. team_ids and
expected_team_ids are arrays of up to 100 strings, each at most 32 characters.
The saved list cannot be emptied after it has been set.
Email-trust responses contain bot_id, workspaces entries with team_id,
team_name, installed, trusted, and source (record or home_list), plus
problems when some installations could not be read. The PUT request requires a
workspace ID matching T followed by uppercase letters or digits (maximum 32
characters) and a boolean trusted. Turning email recognition on reads that
agent’s Slack installation freshly; GET discovery may use the five-minute cache.
Unauthenticated writes return 401; permission failures return 403; invalid
request bodies return 422. A workspace or agent that cannot be validated may
return 400, 403, or 404 as applicable. A failed audit or config write
returns 503.
The current-user account-link routes are separate from the admin routes and do
not require access_config_panel; they accept no user id and act only on the
authenticated caller’s link:
Both require a signed-in user (
401 otherwise). A link-flow failure returns
400; the response includes success and the applicable status or flow fields.
The status response lists all of the caller’s Slack links, newest first; link entries
include team_name when Slack’s workspace name is available. Unlinking
is allowed while account linking is disabled; the user store returns 503 when
it is unavailable. Status also returns email_recognition, a list of {team_id, team_name} entries for workspaces where Slack’s chat identity gate recognizes the
caller through their own email even though no explicit link is saved there;
team_name may be null. The recognition check follows the gate’s account rules and
may return an empty list when there is no match or Slack cannot be read. Complete
answers are cached for five minutes per user.
Slack account identity-link admin endpoints
These routes back the Config → Users & Roles → Slack accounts panel. Every route requiresmanage_users; approval and unlink audit the signed-in
administrator rather than accepting an actor in the request. The overview and
CSV preview read Slack workspaces, Genesis users, and saved links. Each can make
a full directory read: one users.list request per 999 members in each Slack
workspace, plus a read of every Genesis user and saved link. CSV preview does
not write links.
An approval pair requires
slack_user_id, team_id, and genesis_user_id; it
may include basis (email or name). One request accepts 1–5000 pairs.
Results can be linked, already_linked, invalid_slack_ids,
genesis_user_not_found, name_match_for_user_admin, or error. Name-based
suggestions are never approved in bulk by the UI and the service refuses a name
match to an account that administers users. A CSV has two columns (Slack ID or
Slack-confirmed email, then Genesis email or user ID), may start with a header,
and is limited to 5000 rows and 1,000,000 characters. The unlink subject must
match slack:<user_id> or slack:<team_id>:<user_id>.
The overview’s workspace entries contain
team_id, team_name, email_scope,
and member_count. Each member includes Slack IDs, names, email and
email_confirmed, plus nullable link and suggestion objects; the suggestion’s
basis is email or name. link and other_links entries include the subject,
Slack and Genesis identifiers, Genesis display name/email, linked_via, and
linked_at. problems contains readable notices for incomplete workspace reads.
The endpoints return the standard success/data envelope. Unauthenticated
requests return 401; permission failures return 403; request-schema failures
return 422. Domain validation errors return
400. Approval returns 409 when Slack linking is disabled; unlink returns
404 for an unknown saved link. An unavailable user store returns 503.
Slack Events API signature verification
On every deployment,POST /api/slack/events and POST /api/slack/events/{bot_id} accept
callbacks only when Slack’s X-Slack-Signature validates against a signing secret stored
for the matching bot and its timestamp is within Slack’s five-minute window. Genesis matches
the bot by the request’s api_app_id; Slack url_verification requests, which have no app
ID, use the URL’s bot_id. A missing matching secret or invalid signature returns HTTP
401. A bot with no stored signing secret (one that receives Slack only through Socket
Mode) therefore never accepts HTTP events. Databricks Apps refuse this endpoint entirely.
Slack path and request fields
Slack channel monitor settings endpoints
These/api/config/... routes manage which agent watches a Slack channel and
whether a matching new message starts a plain thread or a Mission. The agent
must already be deployed to Slack and a member of the channel. GET list and
get accept either access_config_panel or manage_all_connections; create,
update, reorder, and delete require access_config_panel. List, get, create,
and update responses include monitor health and channel_name (the Slack-reported channel
name, or null when Slack was not asked). Each health read uses one
agent-roster read and one Slack round trip per agent with monitors, including
one conversations.info call per monitored channel. The applied field reports
whether an edit reached the running Slack connection; see
Slack settings for when
configuration edits take effect.
The create body requires
agent_id and channel; channel accepts a Slack
channel ID or #name. Other create fields are optional:
PATCH accepts the create fields other than agent_id and channel, all
optional. PUT order accepts monitor_ids, an array containing each monitor
ID exactly once. Use a monitor_id from data.monitors to target one monitor;
channel references can be used only when they identify one monitor for that
agent. For monitor precedence and selection guidance, see
manage_slack_channel_monitors.
Watch monitor health includes a Watch triage check: it skips before
the first triage, reports the joined/triaged count after a decision, and fails
for a recent rate-limit skip or triage error. List responses return
data.monitors and data.errors; each monitor includes its intake,
monitor_id, optional name, applied (boolean or null), and health
values. The health field is null after delete. For tool-based
configuration and examples, see
manage_slack_channel_monitors.
Slack agent channels and new-channel mode
These routes list an agent’s channels without monitors and read or change its per-agent behavior for channels without a monitor. Channel listing costs one config read, an activity query, a card-store query, and one round trip to the agent’s Slack connection; the connection caches membership for up to five minutes.
The channel response has
data.channels[] with these fields:
data.membership_error reports why Slack membership could not be read. The mode response has
data.agent_id and data.mode; the PUT body is {"mode":"tagged"},
{"mode":"watch"}, or {"mode":"every_message"}. An unset agent uses
tagged.
Slack activity endpoint
GET /api/config/slack/activity returns the recorded Slack activity summary.
Read access requires access_config_panel or manage_all_connections. Totals
and time buckets are returned for the whole period, with agent and monitor
counts. When agent_id is supplied, data.conversations contains that agent’s
most recently active conversations, up to the requested limit; without it,
that list is empty. One-day summaries use hourly buckets; longer periods use
daily buckets. partial is true when the period contains more than 100,000
events and the summary includes only the newest events.
The response’s
data includes days, since, until, bucket_hours, and
partial, along with totals, buckets, agents, monitors, and
conversations. Each count object has conversations, replies, missions,
skips, and last_active_at; agent counts also include channels, and monitor
counts include agent_id and monitor_id. skips counts new messages a watch
monitor stayed out of because triage declined or failed, or the per-minute triage
budget was reached. Skips count toward totals, buckets, agent counts, and that
monitor’s counts, but are not conversations or channel activity and do not move
last_active_at. Conversation entries include the agent,
channel, thread, monitor (when one started it), title and Slack link when
available, started_at, last_active_at, reply count, and whether it started
a Mission. channel_name is null for direct messages or when Slack could not
name the channel. bucket_hours is 1 for one day and 24 otherwise.
Activity is recorded as conversations start, agents reply, and channel monitors
start Missions, and watch monitors skip messages; it is not backfilled. Activity
events are retained for up to 90 days. The Slack settings page refreshes the
summary every minute while open. A summary reads the period’s activity rows and
can make up to 25 Slack calls to name selected conversation channels when those
names are not cached.
GET /api/slack/bot/{bot_id}/status pending setup and authorization fields
The optional install_id query parameter selects one workspace; without it the
response reports the first-workspace flow. The bot status response reports pending
Slack setup steps so a page reopened before setup finishes can resume the OAuth step.
needs_app_token is true while
the deploy is waiting for the Slack app-level token; needs_oauth is true while
it is waiting for Slack OAuth. auth_url contains the authorization URL only
while needs_oauth is true. While an install may still set email recognition
automatically, viewers without manage_users receive null for the install URL
and state; text that quotes the URL is replaced with an instruction to finish
the install from the agent’s Slack page. These fields default to false or
null when not applicable.
For a workspace-specific status, install_id identifies the requested install
and team_name is its workspace name when known. can_redeploy is true for a
live workspace and for the first-workspace flow.
When a callback failure matches the bot’s pending OAuth state, Genesis also
returns the latest recorded failure in memory until an authorization succeeds
or the process restarts.
POST /api/slack/test response fields
GET /api/slack/ngrok response fields
GET /api/slack/bot/{bot_id}/runtime response fields
If no live adapter exists for the bot, the route returns success: true,
has_adapter: false, and a message indicating that the session may not be
running. When diagnostic collection fails unexpectedly, the route returns
success: false with message and error.
POST /api/slack/bot/{bot_id}/reconnect
When the reconnect request succeeds, Genesis returns success, bot_id, the
normalized requested_reason, a low-level result object from the adapter,
and a fresh runtime snapshot. If no live adapter exists, the route returns
404. If targeted reconnect is unsupported or the reconnect does not complete
successfully, the route returns 400.
Microsoft Teams Bot Framework endpoints
These routes back the Bot Framework messaging surface, per-bot credential management in Agents → [bot] → Teams, and optional ingress diagnostics.POST /api/teams/messages/{bot_id} and GET /api/teams/health are public —
Genesis validates the Microsoft-signed Bot Framework JWT inside the adapter (or
accepts a relay-forwarded JWT in X-Teams-Bot-Authorization only after the
configured relay Snowflake identity passes confinement). Per-bot credential
routes require global manage_agents or management rights on the path’s
bot_id; the confined relay identity is denied every credential path.
Recall.ai event endpoint
POST /api/recall/events receives Recall.ai webhook deliveries. It is exempt from
Genesis session authentication, but each request must carry a valid Recall signature.
Genesis checks the webhook-id, webhook-timestamp, and webhook-signature headers
against the raw request body using only the secret associated with that meeting’s binding:
the secret from its bound Recall connection, or the install’s meetings secret for a meeting
sent through Genesis AI. A different Recall connection’s secret does not verify that
meeting’s event. The timestamp must be within five minutes of the current time.
Missing or invalid signatures, a bot with no bound meeting, or an unreadable connection
return 403; a signed body that is not a JSON object returns 400. The endpoint is
unavailable in Databricks Apps and returns 501 there.
Accepted events are routed in a background task; meeting speech and chat reach the
agent’s meeting thread, and their text is not written to server logs. A repeated
webhook-id already accepted in this process is not routed again while remembered
(up to 26 hours or 20,000 recent delivery IDs). When the pending-event backlog reaches
1,000, the endpoint returns 503 so Recall.ai can retry the delivery. Events for the
same bot are routed sequentially.
For the meeting stage camera, Recall.ai loads the meeting bot’s page at
GET /api/recall/stage. The page is public and carries its meeting claim in the
URL fragment; it opens /api/recall/stage/ws and proves the claim in the
WebSocket subprotocol handshake. A newer valid stage socket replaces the
current one, and the socket closes when the meeting ends. The page is used only
when meetings.voice_enabled enables the preview; see Recall.ai connection setup.
The stage page and socket are unavailable in Databricks Apps.
The stage loads its canvas renderer and vendored chart and diagram libraries from
GET /api/recall/stage/asset/{name}. The public route serves only plotly.js,
mermaid.js, and canvas.js; the stage page pins each script by hash in its Content
Security Policy. Successful reads return JavaScript with Cache-Control: public, max-age=86400, immutable; an unknown or missing asset returns 404. These static assets are also unavailable
in Databricks Apps.
The stage normally negotiates WebRTC for meeting voice. Recall’s bot browser has no
WebRTC, so it requests a WebSocket voice session instead; audio is carried as binary
frames over the stage socket and relayed through the Genesis server. The simultaneous
server-streamed session cap is meetings.max_live_voices; see Meetings through Genesis
AI.
When the stage runs a Nuance persona, it identifies the persona’s Nuance conversation to
Genesis. Genesis attempts to end that conversation when the persona ends or the stage socket
goes away, including when the meeting bot leaves or a newer stage socket replaces it. If
Nuance does not confirm an end, Genesis retains the conversation and retries when a later
start for the same inviter is refused at Nuance’s concurrent-conversation limit.
Recall.ai can also stream meeting video to
/api/recall/video/{meeting_thread_id}/ over WebSocket. The handshake is admitted
only when Recall signs it with the secret associated with that meeting’s binding, or it
carries a video token bound to that meeting. A secret from another Recall connection cannot
admit the stream. Frames must name the same meeting thread and bot as the handshake. Genesis
retains the latest screen-share frame only while the bot is still in the meeting; webcam
frames are ignored. The stream is
limited to 2 MiB per message, four simultaneous streams per meeting and 64 total.
The route is unavailable in Databricks Apps.
Microsoft Teams path and request fields
GET /api/teams/bot/{bot_id}/credentials and POST /api/teams/bot/{bot_id}/credentials response fields
Credential changes take effect on the next bot session reload or Genesis restart.
GET /api/teams/bot/{bot_id}/runtime response fields
Saving Teams credentials does not guarantee a live adapter — registration also
requires teams_active, the server-wide teams.enabled switch, and a non-empty
teams_app_id. This route answers whether the adapter is registered, whether
Teams is enabled server-wide, and whether inbound activities are actually
accepted. POST /api/teams/messages/{bot_id} refuses inbound traffic when
teams.enabled is false even if an adapter is still registered, and when no
adapter is registered. Both cases return 404.
If the bot’s session has not been created since the server started, decision,
reason, detail, and decided_at are null and message explains that no
registration decision was recorded yet.
reason values and typical message text
Genesis never returns the Bot Framework client secret from this route.
POST /api/teams/messages/{bot_id} behavior
- 202 — activity accepted for normal message, conversation-update, or installation-update activities.
- 200 (or other invoke status) — Adaptive Card
invokeactivity; response body is the invoke payload. - 401 — Bot Framework JWT validation failed.
- 403 — inbound
serviceUrlhost is not allowed (seeteams.allowed_service_url_hostsin Advanced Settings). - 404 — no adapter registered for
bot_id, or Teams is disabled server-wide (teams.enabledisfalse). The error text distinguishes the global kill-switch from an unknown bot. - 503 — transient failure reaching Microsoft’s signing metadata (JWKS); Bot Framework may retry.
Google Chat direct-message endpoint
POST /api/google-chat/events/{bot_id} receives Google Chat HTTP endpoint events
for a bot. The route is public so Google Chat can deliver events, but Genesis
requires a Google-signed Bearer token whose audience matches the configured
Google Chat endpoint audience. Genesis accepts only verified Google Chat service
tokens, direct messages from human users, and users whose Google Workspace
domain ID matches the connection’s allowed domain ID. Other event types,
non-DM spaces, and non-human users are ignored.
The endpoint returns an empty acknowledgement for accepted, ignored, or
successfully dispatched events that do not require a synchronous card update.
Approval-card interactions return a Google Chat update response with
actionResponse.type: "UPDATE_MESSAGE" and a replacement cardsV2 entry. The
replacement keeps the approval message in the conversation while showing its
result. Authentication, validation, missing-adapter, or transient delivery
failures are reported by the API service boundary.
GET/POST /api/teams/ingress-canary response fields
When teams.ingress_canary_enabled is false, the route returns 404. When
enabled, the response is value-redacted — header values are summarized by
presence, length, and a sha256_prefix only.
Launchpad endpoints
Launchpad checklist, guided-start, and personalized ask-box endpoints. They are authenticated-only with no RBAC permission gate, so brand-new non-admin users can load their checklist and guided-start cards on first login.
When
launchpad.checklist_enabled is false, the response still succeeds with
data.items: [] and data.mandatory_complete: true.
The demo-flow endpoints require authentication. GET /api/launchpad/demo-flows/access
is the lightweight editor check: it reads the presenter-controls setting but no
stored flow or Mission. The full GET /api/launchpad/demo-flows may read each
named Mission, its access policy and thread metadata, and its replay summary;
pass the optional journey query parameter to limit those checks to one journey.
A journey-filtered response has revision: null and cannot be used as the basis
for a replacement. The full read returns a revision for PUT. A baked Mission
with a recording also returns duration_seconds, its cached replay playback
length with waits for a person removed; it is null until that length has been
computed.
PUT /api/launchpad/demo-flows accepts { "revision": "...", "flows": { ... } }.
Each flow may contain baked_mission_id (string or null), estimated_minutes
(integer 1–240 or null), offer_after_seconds (integer 0–120; default 2),
and golden_path (journey step ids or answer ids recorded beside a step, mapped
to arrays of expected option or answer values). baked in a read
reports ready, missing, not_finished, not_visible, agent_restricted,
chat_missing, no_replay, or unreadable. A save replaces every flow and
returns a new revision; it is refused if presenter controls are off, the
environment override locks the setting, the revision is stale, or a named
Mission cannot be made available for presenters.
GET /api/launchpad/checklist response fields
Checklist item fields (data.items[])
Completion rules match the operator table in
Advanced Settings — Launchpad setup checklist.
The
encryption_key item is returned only when the in-app Snowflake setup applies
and the user can manage secrets; see RBAC Practical Guide.
Connection visibility uses the same predicates as the Connections API
(user_can_see_connection).
POST /api/launchpad/guide
This authenticated endpoint uses the fast model to select the next card or
handoff, and its calls are billed. A response can require a second completion
if the model repeats a question already answered. See Cost accounting
for its Cost & Usage classification. Requests are rate-limited per user to
20 per minute and 6 per 10 seconds.
Request body:
The response uses the standard
{success, data} envelope.
For a question,
data.question contains id (string), text (string),
multi_select (boolean, default false), and options (two to six option
objects). Each option has id (string), label (string), and description
(string, default "").
GET /api/launchpad/suggestions
This authenticated endpoint returns 3–8 short example requests for the ask
box, or an empty array when none could be written. Suggestions can use the
caller’s visible connections and Context Graph wiki page titles when the caller
can read the wiki. A cache miss can make a billed model call; results are cached
in memory for up to six hours per backend process, caller, and role, and are
refreshed sooner when the connection catalog changes. See Cost
accounting for its Cost & Usage
classification.
The response uses
{success, data} with data.suggestions as a string array.
POST /api/launchpad/first-results
This authenticated endpoint writes three first-result choices using the
caller’s role, selected system labels, visible connections, and Context Graph
wiki page titles when the caller can read the wiki. When systems are selected,
only visible connections whose types are included in connection_types are
used; when no systems are selected, all visible connections can be used. A
selected system without a connection type does not broaden the filter to other
types; if no connection types are supplied, no connections are used. A cache
miss can make a billed model call; results are cached
in memory for up to six hours per backend process, caller, role, selected
systems, and connection types, and are refreshed sooner when the connection
catalog changes.
Requests are rate-limited per user to 20 per minute and 6 per 10 seconds.
See Cost accounting for its
Cost & Usage classification.
The response uses
{success, data} with data.options. Each option has a
label, description, and request string. The list is empty if no choices
could be written.
CLI login bootstrap
GET /api/config/cli-login returns the narrow, unauthenticated OAuth bootstrap
contract used by genesis login for its loopback+PKCE browser flow. It returns
only IdP coordinates and authentication state; it does not assemble the broader
frontend runtime configuration.
GET /api/config/cli-login response fields
Frontend bootstrap config
GET /api/config/frontend is the lightweight bootstrap contract the web client uses for auth-safe runtime flags and chat UI limits.
GET /api/config/frontend response fields
Activity endpoints
The web client’s header activity strip reads these endpoints. The shared activity snapshot is reused across viewers; its refresh behavior and configuration are documented under Header activity strip.
In the server-stats response,
cpu_percent is the server’s usage as a percentage
of one core. cpu_scope identifies whether the reading covers the container or
process tree; cpu_limit_cores is the container’s CPU limit when known;
cpu_cores_available is the cores the server may use, using the CPU limit when
set or the CPUs it may run on otherwise. The Activity Server panel uses these
fields to show cores in use out of cores available when that count is known.
GET /api/activity/summary returns enabled, any_active, counts and
taken_at (Unix time). counts contains users, threads, agents and
missions; context_graph_nodes is null when the viewer cannot open Context
Graph or its count is unavailable. Thread totals include threads with running
background work even when no agent turn is running; completed background work
also remains in the totals for the configured recent-work window. any_active
reflects work running now, not that retention window. See Header activity strip
for the window’s setting and default.
GET /api/activity/details requires metric (users, threads, agents or
missions). Optional offset defaults to 0 and accepts 0–100000; limit
defaults to 50 and accepts 1–50. The response includes the overall total,
the viewer’s view (admin or member), and paged rows. Admins receive items;
members receive yours, shared and hidden_count. The response reports a total
for each list and next_offset when another page is available. Each row has an
id, title, optional owner, agent, seconds, children and running.
Rows also have nullable agent_id; on a thread row, it identifies the agent
whose chat opens for that thread. A thread row carrying agent_id is one the
viewer may open. sources badges the thread’s channel or the channels a person
is active through: slack for Slack and mcp for external agents and clients,
including agent mail. A person appears once with their active channels in this
list. A person row’s running_count is the number of running threads visible to
the caller that belong to that person.
Thread rows may include meeting, an object with platform (zoom, google_meet,
microsoft_teams, or "" when the platform was not recorded) and status (joining or
in_call) while their agent is in a live meeting; it is null when no meeting is active.
For missions, unlisted_count reports missions counted in the total but beyond
the bounded list query. taken_at is the Unix time of the snapshot the page
lists, the same value the summary reports for that snapshot, so a client can show
the totals and the list from one snapshot. A page repeats access checks for active items; request
cost therefore grows with the number of active items in that metric.
When the strip is disabled, all three endpoints return an enabled: false
response without computing the activity snapshot or server statistics.
Managed upgrades endpoints
The routes are mounted only when the managed deployment enables the panel flag; see Advanced Settings — Launchpad feature flags. For route access requirements, including the human-only write rule, see Genesis Agent Security Controls — Permissions.PUT /api/managed-upgrades/controls accepts expected_revision (integer or
null for the first save), policy_mode (automatic-in-window,
approval-required, approve-then-next-window, or by-version-class),
paused (boolean), and window with iso_weekday (1–7), start_local
(HH:MM), an IANA timezone, duration_seconds, and
maximum_graceful_drain_seconds. It may also include
pull_source_repository (an untagged OCI repository or null) and
customer_scan (null or an object with result_deadline_seconds, from 1 to
30 days).
The GET /api/managed-upgrades response includes agent_reported (false until
the agent has pushed state since app startup), settings_rolled_back,
agent_state (null or the latest controls_floor_generation, upgrade_state,
and running_release), and controls (null or the saved document with its
revision, generation, updated_by, and updated_at). A save returns those
stored-control fields. Approval returns them under controls plus the
approval_id the agent records when it consumes the approval.
The approval body contains expected_revision and choice (upgrade-now or
next-window). The scan-verdict body contains expected_revision,
linux_amd64_digest (sha256: plus 64 lowercase hexadecimal characters),
verdict (pass or fail), and optional reason (up to 200 characters; a
failure needs a non-empty reason). The reason cannot contain control, format,
or surrogate characters. This route returns the saved-control fields.
The management agent uses two additional routes, mounted only when the feature
flag is on and GENESIS_UPGRADE_CHECK_TOKEN is set. Both require that bearer
token; hosted mode refuses /api/internal/ routes.
The agent state body has
schema_version: "internal-managed-upgrade-state-v1",
controls_floor_generation, upgrade_state, and running_release. The agent
pushes its latest state once per cycle; it is held in memory since app startup.
Hosted documentation session
POST /api/docs/session creates the short-lived Mintlify callback URL used when
docs.use_internal_docs is false. The route accepts only a relative path in
the hosted /docs tree and requires a genuinely authenticated human; delegated,
machine, system, Snowflake, and auth-disabled callers are refused. For the
configuration, secret-management, and hosted-docs rollout requirements, see
Advanced Settings — Documentation settings.
POST /api/docs/session request
Example:
POST /api/docs/session response
url is for immediate browser navigation and contains a ten-second
Mintlify login JWT. The resulting hosted documentation session can remain valid
for up to one hour. The endpoint returns 400 for an invalid redirect, 403
for an ineligible caller, and 503 when hosted mode or signing-key/session
creation is unavailable.
Demo mode status
GET /api/config/demo-mode returns demo-mode status and the limits the web
client needs to render budget and concurrency UI. The route is public (no RBAC
permission required).
GET /api/config/demo-mode response fields
Hosted Genesis AI
Hosted Try Me instances configured to use their owner’s Genesis AI credit expose these endpoints for the dashboard’s Genesis AI status, activation, and credit meter. Configuration keys and defaults are in Advanced Settings.
The status response also includes
data.genesis_ai_only. It is true on
hosted instances using their owner’s Genesis AI plan, even before the key is
available or configured. In this mode, other AI providers cannot be configured,
selected, tested, or called.
On these pot-backed instances, startup removes AI provider configurations and
their stored credentials that were baked into the golden image, including
LiteLLM proxy, OpenAI, and Bedrock providers. This cleanup is enabled by
demo.genesis_ai_from_pot, which defaults to false.
The LiteLLM proxy cleanup also detects baked-in credentials and legacy
EXT_SERVICE_CONFIG rows when the provider is not present in the provider list.
It removes those credentials, including system-owned secrets, and deletes the
legacy rows; a secret referenced by another provider is kept. The owner’s
Genesis-issued key is not removed. The same cleanup runs before Genesis AI
activation is checked.
The activation endpoint requires the owner’s Authorization: Bearer <access-token>.
It returns the same success envelope with data.available,
data.configured, and data.active booleans as the status endpoint. A completed
activation is idempotent: if the Genesis AI key is already configured and its
first issue completed, no provisioner request is made. Otherwise, activation
makes one HTTPS request to the provisioner, which mints the owner’s key in five
or six LiteLLM calls, then writes the instance’s LLM configuration. The
provisioner rate-limits key issuance to 10 requests per minute. Before checking
whether a key needs fetching, activation also removes any remaining baked-in
providers and reloads the runtime if it removed any.
The endpoint returns 404 when this is not a pot-backed hosted instance, 401
when the bearer token is missing, 403 when the caller is not the owner or has
not completed the Try Me profile or email verification, and 503 when the
provisioner cannot be reached or refuses the instance request, or when a
baked-in provider cannot be removed; in that case Genesis AI is not configured.
Grants are issued only to the instance’s recorded owner.
The credit endpoint reads the same pot shared with the owner’s Genesis Desktop
computers. It accepts the optional boolean query parameter fresh, which
defaults to false: successful readings are reused for up to three minutes,
while fresh=true reuses a reading only while it is younger than 15 seconds.
When Genesis AI is not active or the provisioner cannot provide a reading,
data.available is false. The response’s data uses the same credit fields
as GET /api/desktop/credit.
In demo mode, GET /api/demo/user-info-status also reports has_submitted: true
for the instance owner when Try Me already collected and pushed the owner’s
profile with the owner record, so the in-instance profile prompt is not shown
again.
GET /api/internal/demo-budget/aggregate (provisioner poll)
Cold-provisioned Try Me instances expose this internal route so the provisioner
can read deployment-wide spend vs cap and drive auto-destroy when the budget is
exhausted, and read the instance’s latest LLM call and user sign-in to decide
when an idle free-tier instance may sleep. It is separate from per-agent RBAC
budgets under /api/budgets/....
Authentication: Send
X-Genesis-Internal-Token with an eligible demo
provisioner token (see demo access gate settings)
or a valid internal service token. Demo provisioner tokens work only in demo
mode and only for /api/internal/* route dependencies; they are not user
credentials for other API paths. These routes do not use the Bearer token
required by other /api/internal/... flow routes.
Response fields:
Each poll also performs two activity reads in addition to the budget read. The
LLM-call timestamp comes from the metrics service’s
LLM_CALLS store and may
lag a call by up to one metrics export interval. The user timestamp comes from
the users table. An activity-read failure returns null for that field without
failing the budget response.
PUT /api/internal/demo-budget/cap
Change the effective demo budget cap for the running instance. The change is
applied immediately without a process restart; aggregate spend is not read by
this operation, and the next budget enforcement refresh uses the new cap.
Authentication: Uses the same X-Genesis-Internal-Token authentication as
GET /api/internal/demo-budget/aggregate: the header must match
demo.instance_auth_token, the eligible legacy demo.internal_auth_token, or a
valid internal service token. An
Authorization: Bearer token or session cookie is not accepted for this route.
Request body:
Response fields:
Example — set a USD 250 cap:
Provisioner owner and state routes
Hosted Try Me provisioners use these internal endpoints to register an instance owner and export its state. They use the internal-token authentication described above and do not accept a Bearer token or session cookie in its place.PUT /api/internal/demo-access/owner
The provisioner calls this at claim to record the owner. Repeating the same
owner is idempotent. A different existing owner produces 409 unless the
request sets force for an administrator reassignment. email must be a
non-empty verified owner email; sub is the owner’s Auth0 subject and may be
empty for an email-based administrator reassignment.
Example:
owner_sub, owner_email, owner_display_name (strings),
and changed (boolean). Returns 401 for a missing or invalid internal token,
409 if another owner is recorded and force is false, and 200 on success.
POST /api/internal/demo-state/export-state
Streams the same raw, full-fidelity application/x-tar archive documented for
POST /api/admin/export-state. It includes
Cache-Control: no-store, private and Pragma: no-cache headers. No request
body or query parameters are required.
POST /api/internal/demo-state/export-content
Streams a human-readable export in the selected format. The artifact is not
cached (Cache-Control: no-store, private and Pragma: no-cache).
POST /api/internal/demo-state/export-microapps
Streams a microapp workspace archive as application/gzip with
Cache-Control: no-store, private and Pragma: no-cache headers.
Presenter Controls endpoints
These routes backed the Presenter Controls panel, which is no longer in the web UI, and remain available whenfeatures.presenter_controls_enabled is true. They prepare, reset, and clean up Sales Engineering vignettes scoped to one browser-local presenter_session_id and the authenticated caller. All routes require the capability plus Genesis Staff (is_staff) or a valid X-Genesis-Internal-Token. The process-local internal token works on any enabled instance; the shared demo token remains limited to demo mode.
Shared request field:
Reusable demo versions (/api/demo/versions)
These routes back the Demo version controls in each Presenter Controls
scenario card. They list shared ready revisions and the caller’s private drafts,
prepare a tailored revision once, create isolated presentation runs, and retain
run history. They use the same presenter-operator authorization as the other
Presenter Controls routes.
POST /api/demo/versions body fields:
POST /api/demo/versions/runs body fields:
The catalog response exposes each version’s
status (draft, validating,
ready, or failed), visibility (creator or environment), preview and
compiled configuration, optional onboarding bundle metadata, and runs with
recommended_gold, latest, and complete history. Presentation runs use
prepared, running, completed, failed, or incomplete statuses.
When this catalog is listed, Genesis reconciles nonterminal client-file
onboarding runs against their durable Mission status before returning the
catalog, so a refreshed Presenter Controls view can reflect progress from a
run that continued after the original request.
Proactive pipeline recovery (/api/demo/rca)
GET /api/demo/rca/status returns data.investigation_thread for the current
Slack investigation when the delivered notification includes both a target bot
ID and a Slack root message timestamp. The field is null when either value is
missing; otherwise it includes the bot ID, the Slack root timestamp as the
Genesis thread ID, and a URL-encoded relative href to the investigation chat.
POST /api/demo/rca/reset accepts these optional body fields in addition to
presenter_session_id and source_type:
POST /api/demo/rca/fresh-session accepts this body:
The endpoint releases only the authenticated presenter’s terminal dbt Cloud
ownership. The run must no longer be active, its provider status must be a
terminal error, Slack failure delivery must be complete, and any recovery run
must be terminal. It returns
success: true with data containing
superseded_scope_ids, incomplete_run_ids, and retryable_fixture_count.
For ticket_dashboard_rca, a ticketed dashboard fixture is changed to
retryable and its active Jira issue pointer is cleared so the new session can
retry preparation; presentation runs affected by the supersession are marked
incomplete.
Interactive AUM dashboard (/api/demo/aum)
Cost optimization (/api/demo/optimization)
Presenter Control Missions (/api/demo/presenter-missions)
Tracks exact caller-owned Missions for disposable blueprint vignettes.
Ticket-driven dashboard anomaly (/api/demo/ticket-rca)
Orchestrates the Jira ticket-driven RCA presenter vignette. Genesis creates a
real Jira issue tied to a caller-owned demo_dashboard_root_cause Mission,
attaches a dashboard screenshot, starts the selected ETL failure fixture, and
records Work-item linkage when Jira automation picks up the ticket.
The issue is left unassigned after preparation; assign it to one of the
configured assignment_targets to trigger Genesis pickup.
When the dashboard RCA work is completed, Genesis posts a Jira comment beginning
with “Fixed.” It includes the recorded root cause when available, a link to
the RCA report, and a Prover result link to the report’s #prover-evidence
section. The report includes the agent’s recorded context-graph walk only when
the requester may read the associated investigation thread; otherwise it uses
the precomputed context without showing that walk.
Shared request field (query on
GET, body on POST):
POST /api/demo/ticket-rca/prepare body fields:
POST /api/demo/ticket-rca/reset body fields:
The two demo-version fields must be supplied together. The reset operation
validates that the revision, run, presenter session, and scenario still match;
the prepare operation then uses that isolated fixture when it creates the Jira
issue.
Presenter RCA pickups are serialized per presenter scope while an earlier
ticket still owns the active fixture in
ticketed state. A later assigned ticket
is retried on a subsequent polling pass after that fixture leaves ticketed;
completed example issues do not block a new RCA pickup.
GET /api/demo/ticket-rca/status response data fields:
When present,
active_issue.work also includes the persisted Jira
provider_status. During status reconciliation, Genesis maps that provider
status with the current Jira lifecycle configuration; mapped done,
needs_info, or working states replace a stale work state and are recorded
as a provider_status_observed event.
An issue is reported as completed only when its current Jira status maps to
done and the durable Work item contains the exact agent writeback receipt for
the dashboard_rca_debrief comment. The receipt includes issue_key,
work_item_id, thread_id, receipt_id, comment_sha256, and terminal event
metadata; a missing or mismatched receipt leaves the fixture in its
nonterminal state even when Jira is already done.
When a retained legacy fixture has no dbt_cloud_access_url, reconciliation can still
complete it after the linked Jira Work reaches done or released. It uses the
fixture’s jira_issue_key and then marks the fixture completed while releasing that
exact issue pointer.
Prepare failures return success: false with error.code such as
JIRA_SETUP_REQUIRED, JIRA_ISSUE_TYPE_UNAVAILABLE,
CODING_AGENT_UNSUPPORTED, or DBT_PROVIDER_BUSY when an earlier presenter
run still owns the shared dbt Cloud job. Version-bound resets can also return
DEMO_VERSION_BINDING_INVALID or DEMO_VERSION_PROFILE_UNAVAILABLE.
Auth and user runtime config endpoints
These routes back lightweight auth bootstrap and the persisted background-job settings used by Pulse and Digital Twin.GET /api/config/auth response fields
GET /api/config/user-config response fields
GET /api/config/user-config returns success and config.
config fields for /api/config/user-config
POST /api/config/user-config
Send a JSON body shaped as { "config": { ... } } using the same field names
listed above. The response returns success and message.
Branding endpoints
These routes back Config → Branding. See Branding for the customer-facing workflow.logo_type is square, wide, header_light, or header_dark. The
header_light and header_dark types are optional overrides for the main
Genesis header and are not copied into generated app workspaces.
GET /api/config/branding and PUT /api/config/branding fields
GET /api/config/branding returns success and data. PUT /api/config/branding
accepts any subset of the writable fields below; omitted fields are left unchanged.
GET /api/config/branding/support-email requires access_config_panel and
returns support_email as the stored address or null when blank. The public
GET /api/config/branding response does not disclose the address. See
Branding for when the configured contact is used.
Logo URL fields are read-only on PUT. Each non-null URL includes a ?v={version}
query parameter that changes when the underlying file is replaced, so clients can
cache the image until the version changes.
POST /api/config/branding/logo/{logo_type} returns success and logo_url with
the uploaded file’s URL (including the version query parameter).
The one-shot startup storage-cleanup audit is separate from these persisted
job flags. It is controlled only by environment variables:
GENESIS_STORAGE_CLEANUP_STARTUP_AUDITdefaults tofalse. Set it totrueor another truthy value such as1,yes, oronto schedule the startup dry-run audit.GENESIS_STORAGE_CLEANUP_STARTUP_AUDIT_DELAY_Sdefaults to30and controls the startup-audit delay in seconds.
storage_cleanup_reports/, including a timestamped
startup-dry-run-<timestamp>.json file and latest.json. The audit does
not delete files.LLM provider create duplicate guard
POST routes that create an LLM provider configuration run a pre-write duplicate
check before persisting submitted credentials, endpoint metadata, or process
environment state. Affected routes include:
POST /api/config/llm-providers/openaiPOST /api/config/llm-providers/cortexPOST /api/config/llm-providers/databricksPOST /api/config/llm-providers/litellm-proxyPOST /api/config/llm-providers/other(for example Bedrock, Anthropic, Google Gemini)
LlmOperationResponse
with success: false and does not write the submitted API key or other
credentials to the secret store, mutate process-global LiteLLM environment
variables, delete backing connections, or run model discovery. The response
message is:
Configuration for {display_name} already exists. Use configure endpoint to update and enable it.
where {display_name} is the provider’s human-readable title (for example
OpenAI, Databricks, LiteLLM Proxy). Use the matching provider PUT
route — for example PUT /api/config/llm-providers/openai — to update an
existing configuration instead of calling POST again.
If the duplicate check itself fails (for example the existence probe raises),
Genesis fails open and proceeds with the create so the route does not introduce
a new
500 where it previously returned 200.
LLM provider save validation and rollback
Provider create and update routes that persist credentials run under a rollback guard. Genesis snapshots the provider’s stored configuration (managed secrets andAPP_CONFIG paths); provider credentials are not copied into the
process environment during a save. When a save has an applicable probe target,
Genesis runs the save-time connection test when test_connection is true; it also tests a submitted
secret value that differs from a credential already configured for that
provider, even when test_connection is false. A committed credential
replacement removes its superseded startup-exported environment copy; deployment-
supplied environment values are left alone. A rejected save restores stored
configuration and leaves the environment unchanged.
The replacement check applies when a provider already has a stored credential;
initial setup with no stored credential, re-sending an unchanged value, and
submitting a secret reference do not trigger an automatic test. An Azure OpenAI
connection-only save without a deployment has no probe target and remains
untested.
When validation fails, Genesis restores the snapshot and answers with
LlmOperationResponse where success is false and message carries the
validation error directly (for example Connection test failed: ...) — not a
generic Failed to save configuration: ... wrapper. The prior working
credential remains in the secret store and runtime caches are invalidated so
the restored value is served on the next read.
Secret restore writes are attributed to the person who made the save rather
than to the secret owner; see Connections.
Bedrock is admitted differently: when test_connection is true, Genesis
tests the submitted candidate before writing it. A rejected Bedrock candidate
leaves the existing configuration untouched and does not require a rollback;
the response still reports success: false with the connection-test message.
After a successful provider save, model-assignment save, or provider credential
mutation through the secret-fields API, Genesis publishes the change to the
running process-local LLM runtime. The next operation re-resolves provider
credentials and model assignments; a server restart is not required. Failed
guarded saves and rollbacks do not publish a runtime change.
Successful provider saves that persist an embedding model preference may also
include optional embedding_adoption on LlmOperationResponse — the
first-save-wins adoption outcome when no global embedding identity exists yet.
See First-save embedding adoption.
OpenAI configuration saves may also include warning_message when replacing
the key stopped voice or images; it directs the administrator to allow the new
key in the OpenAI connection’s Use for list in AI Providers (Beta).
If rollback itself fails,
message appends
Previous credentials could not be restored automatically; please re-enter them.
For LiteLLM Proxy, a final step runs after validation succeeds under the
same save lock: it syncs the shared OAuth backing connection
(litellm_proxy.shared when auth_mechanism is oauth) or deletes that
backing connection for other auth modes, then sets
providers.litellm_proxy.admission to auto and invalidates LLM runtime
caches. These side effects are not covered by the AppConfig snapshot and are
not rolled back — they run through finalize_without_rollback on the provider
write guard.
Affected routes include POST and PUT on
/api/config/llm-providers/openai, /cortex, /databricks, /azure,
/litellm-proxy, and /other (Bedrock, Anthropic, Gemini, and other
LiteLLM-backed providers). After validation succeeds, LiteLLM Other Providers
admit the provider; they do not publish keys to
OPENAI_API_KEY, ANTHROPIC_API_KEY, or related environment variables.
For AWS Bedrock behind a custom endpoint (endpoint_mode: "custom"), the
first POST /api/config/llm-providers/other create deliberately skips the
save-time connection test even when test_connection is true because there is
no reachable probe target on that path; use
POST /api/config/bedrock/test-connection or retry with PUT once the
configuration exists (updates always honor test_connection).
Azure OpenAI connection test API version
POST /api/config/azure/test-connection accepts an optional api_version.
When the field is omitted or null, Genesis uses the saved
providers.azureopenai.connection.api_version; if none is saved, it uses
2025-04-01-preview. Set api_version explicitly to test a different Azure
API version without changing the saved provider configuration. Provider saves
also default providers.azureopenai.connection.api_version to
2025-04-01-preview when no version is supplied. See Azure OpenAI provider
setup.
When the OpenAI or Azure OpenAI test request omits its key or endpoint,
POST /api/config/openai/test-connection and
POST /api/config/azure/test-connection use the provider values resolved from
APP_CONFIG, including startup default_env_var values. They do not read a live
process-environment fallback. Databricks tests likewise use the saved provider
configuration when PAT or endpoint fields are omitted; see its request fields below.
Cortex provider configuration endpoints
These routes back the Snowflake Cortex card on Config -> AI Providers.
In Snowflake-native runtimes where Cortex is already available,
POST and PUT /api/config/llm-providers/cortex can omit credential fields. In other deployments, provide either PAT credentials (account_url and api_key) or key-pair credentials (snowflake_account, snowflake_user, and private_key). Set auth_method to "pat" or "keypair" to make the mode explicit; when omitted, Genesis infers key-pair mode when private_key and snowflake_account are present without api_key.
On Snowflake Native App / SPCS hosts, Genesis registers Cortex whenever it is
available but does not overwrite an existing llm.active_provider. Saving or
testing Cortex adds or updates the cortex provider row; activation happens only
when no chat provider is active yet unless the request sets force_activation: true
or the operator explicitly switches the active provider.
POST and PUT with test_connection: true validate the submitted api_key and
account_url when present. On Cortex-active installs where activation exports the
working PAT into CORTEX_API_KEY, Genesis does not re-validate that exported
credential instead of the PAT being saved — a rejected submission fails and the
rollback guard restores the prior working key.
Shared Cortex request fields
GET /api/config/llm-providers/cortex response fields
Databricks provider configuration endpoints
These routes back the Databricks card on Config -> AI Providers.POST /api/config/llm-providers/databricks defaults auth_mode to pat and endpoint_style to serving_endpoints. In PAT mode, llm_endpoint and api_key are required on create. In OAuth mode, oauth_connection_name is required, llm_endpoint is optional, and Genesis derives https://<connection-host>/serving-endpoints from the selected connection when the field is omitted. Runtime and OAuth-backed test flows resolve the acting user’s OAuth grant from that saved connection instead of persisting a user access token on the provider. service_principal mode requires service_principal_connection_name; that connection’s OAuth client credentials mint the token for every call, with or without a user. endpoint_style: "ai_gateway" targets Unity AI Gateway at <workspace>/ai-gateway/mlflow/v1; its models are addressed by full <catalog>.<schema>.<service> name and are not listed by the model-discovery route. Headless calls cannot use a per-user grant: Databricks embeddings, embedding adoption, and embedding-model save/activation require either PAT credentials plus a workspace URL, or OAuth mode with a resolvable service_principal M2M connection configured in genesis-config.yaml at providers.databricks.connection.oauth.m2m_connection_name (not exposed on these REST routes). U2M-only OAuth remains valid for user-present chat and test flows, but it does not make Databricks ready for embeddings. app_identity is deployment-selected for Databricks Apps, not a credential supplied by these routes: with providers.databricks.connection.auth_mode=app_identity, runtime and connection-test calls use the App service principal token, and provider settings saves are refused so a PAT or OAuth credential cannot replace it. The App runtime must supply DATABRICKS_HOST, DATABRICKS_CLIENT_ID, and DATABRICKS_CLIENT_SECRET; calls fail without them and do not fall back to PAT or user OAuth credentials. Genesis routes calls through LiteLLM with per-call api_key and api_base, not ambient DATABRICKS_* variables. See Databricks App identity setup.
Databricks configuration request fields
GET /api/config/llm-providers/databricks response fields
Databricks connection test request fields
If
POST /api/config/databricks/test-connection receives neither PAT fields
nor OAuth fields, Genesis tests the saved Databricks configuration. When the
saved config uses OAuth, Genesis resolves the current user’s grant for the
saved oauth_connection_name. For ai_gateway, the test calls a saved chat
model assignment; if none is saved, it returns success: false with
details.reason: "model_required". Save the configuration, assign a full
<catalog>.<schema>.<service> model in Change Models, then test again.
Bedrock provider configuration endpoints
These routes back the AWS Bedrock card on Config -> AI Providers.
For
POST and PUT /api/config/llm-providers/other, an omitted auth_mode, endpoint_mode or bedrock_chat_route_mode keeps the effective value — the stored one, or the schema default (api_key, default, invoke) when nothing is stored.
When auth_mode is api_key, aws_bearer_token is required. When endpoint_mode is default, aws_region is required. When endpoint_mode is custom, custom_endpoint_url is required. Each requirement is evaluated against the effective configuration the write would produce — the submitted fields over the stored values, deployment environment inputs and schema defaults — so a value already in effect satisfies it without being resent. Only the submitted fields are written; an inherited value is used for the check and the connection test but is not copied into the stored configuration.
Custom endpoints support api_key authentication only; auth_mode: "iam_role"
with endpoint_mode: "custom" is rejected before the configuration is saved.
When you save a Bedrock custom-endpoint configuration, Genesis also syncs the
runtime options into App Config under providers.litellm_bedrock.settings.*.
GET /api/config/bedrock/iam-status accepts region and refresh query parameters. region defaults to us-east-1, and refresh defaults to false.
GET /api/config/bedrock/iam-status response fields
Bedrock configuration request fields
GET /api/config/llm-providers/other/bedrock returns the saved auth_mode, endpoint_mode, custom_endpoint_url, custom_auth_header, strip_regional_prefix, fake_stream, extra_headers_json, verify_ssl, and masked credentials, and always includes the effective bedrock_chat_route_mode value. The saved provider config also keeps bedrock_chat_route_mode, so later Bedrock test requests can omit it and reuse the current setting.
The synced App Config keys are providers.litellm_bedrock.settings.strip_regional_prefix, providers.litellm_bedrock.settings.fake_stream, providers.litellm_bedrock.settings.extra_headers, and providers.litellm_bedrock.settings.verify_ssl.
Bedrock connection test request fields
When a Bedrock test request omits a field or sends it as
null, Genesis resolves the effective parameters from the saved Bedrock configuration first, then falls back to documented defaults such as aws_region: "us-east-1", verify_ssl: true, and bedrock_chat_route_mode: "invoke".
For test requests, send either an AWS bearer token or a complete access-key/secret-key pair, not both. A partial key pair or conflicting credentials is rejected. If auth_mode is omitted, explicit credentials in the request select api_key mode; requests using iam_role must not include explicit credentials. Access-key authentication requires the default Bedrock endpoint.
For custom endpoints, POST /api/config/bedrock/test-connection sends a lightweight probe that matches bedrock_chat_route_mode: invoke targets /model/{modelId}/invoke with an Anthropic-style body, while converse targets /model/{modelId}/converse with the Bedrock Converse body. When a Bedrock model is already configured, Genesis probes that model; otherwise it uses a dummy model ID.
When auth_mode is iam_role and endpoint_mode is custom, the test route returns success: false and instructs callers to use API-key auth for custom proxies. When custom_auth_header is a non-bearer header such as x-api-key, Genesis adds a structurally valid SigV4 Authorization header plus the selected custom header so API Gateway-based Bedrock proxies can validate the request. A custom proxy that returns 403 for the lightweight test model is reported as success: true with details.warning and details.status_code so callers can surface the warning while still treating the endpoint as reachable.
Bedrock connection test response fields
Gemini connection test request fields
POST /api/config/gemini/test-connection tests Google Gemini through LiteLLM.
The request can use a submitted API key or the saved Gemini credential.
The AI Providers test flow supplies the selected model when available,
preferring the
fast_model assignment, then default_chat, then the first
model in the test list. This prevents a valid credential from failing because a
different unsupported fallback model was probed.
Genesis AI connection test
The test does not save or change configuration. It makes one or two HTTPS requests
to Genesis AI: a model listing and, when applicable, a one-token message probe.
Each request can take up to 10 seconds.
The response uses
success and message, with optional details fields:
Genesis Desktop embedding test restriction
POST /api/config/llm-providers/embedding-config/test accepts only Genesis AI
on Genesis Desktop. A request for another provider returns 403; if the provider
is omitted and inferred from the model, the inferred provider is checked as well.
GET /api/config/llm-providers/llm/health
Requires access_config_panel. The response’s data.health includes
overall_status and a components object. components.model_availability is
the stored assigned-model verdict report; reading it makes no provider call.
Its status is degraded for an unavailable active chat tier or embedding
model, including an outage still open after an inconclusive check; it is
healthy only when all counted assignments are available and otherwise
unknown. Other configured providers’ assignments are listed without affecting
this status. Each assignment includes provider, tier, model, verdict
(available, unavailable, unknown, or not_checked), reason, checked_at,
and unavailable_since.
AI Providers page overview endpoints
The overview routes back the Current AI Providers page (/config/ai-providers/) and the Beta view. They are read-only and available to any authenticated user. Responses expose masked connection subtitles in extraInfo — never secret plaintext. The capability write routes below are admin-only.
These routes write configuration and audit rows. They are the only writers for
the AI Providers route-owned capability settings; advanced-settings writes to
those paths are refused. The OpenAI consent response has
success, changed
(items with capability, provider, and trigger), and kept (items with
capability and provider).
The switch, choice, and note routes return
{ "success": true }. Auto-setup and OpenAI
consent return success, changed (capability, provider or null, and trigger),
and kept (capability and provider).
Both test routes return HTTP 200, including a failed test (passed: false).
The tests exercise paid provider operations; see AI Providers
for how they behave in the page.
GET /api/config/ai-providers/overview response fields
Top-level response:
summary object:
When present,
voice contains choice (auto, genesis_ai, openai,
off, or byo_connection), enabled, source (genesis_ai, byo_openai,
or null), reason, keyHint, why, note, talkEnabled, consented, and
inUse. A non-null note has kind (auto_connect, reselected, or
migration), provider, and previous; inUse is a provider, byo_connection,
off, or null. why is one of
admin_choice, auto_connect, migration, reselected_after_disconnect,
genesis_ai_default, or none_available.
imageGeneration contains choice (auto, genesis_ai, openai,
litellm_proxy, bedrock, or off), resolvedProvider, keyHint, why, note,
model, modelPlaceholder, explicit, consented, and inUse. Its note
has the same shape as the voice note. Its why is one of admin_choice, auto_connect, migration,
reselected_after_disconnect, follows_chat, chat_has_no_image_route, or
none_available. vision contains tiersWithoutVision (values frontier,
main, or fast) and fallback (openai, genesis_ai,
image_analysis_connection, or null).
Each providers[] item:
GET /api/config/ai-providers/embedding-health response fields
This endpoint carries the verdict already maintained by Digital Twin rather than
inferring health from recorded provider configuration. The request can take up to
5 seconds while Genesis obtains the verdict from Twin. A slow or unavailable Twin
does not become a false healthy or failed result. If Twin reports an embedding
provider or model different from the saved selection, the endpoint also returns
status: "unavailable" rather than attributing the old identity’s verdict to the
new selection; the response reason says the change has not reached Twin yet and
that restarting Genesis applies the saved selection.
Decision-model endpoints
These endpoints back Config → AI Providers → Beta → Decisions. Reads requireaccess_config_panel or view_model_config; writes are administrators only.
The model-list request accepts only
provider=litellm_proxy; each call can
make a proxy GET /models and GET /model/info, unless the catalog is cached
for an hour. The response has models (names), preferred (name or null),
discovery_status (ok, empty, error, or unmarked), and
discovery_error (string or null). An unmarked list contains the proxy’s
chat models because the proxy did not identify which models can make decisions.
The settings response contains
provider (none when no model is active),
model, providers, and junctures. Each provider gives its id, reused
connection or null, connected, listsModels, optional fixedModel, and
suggestedModel. Each juncture contains its key and mode. For the settings
and decision-point defaults, see AI Providers.
Mark provider configured endpoint
Secret-only providers (openai, anthropic, gemini) have no non-secret configuration PUT step. Saving their API key through the secret fields API already runs the common save finalize: it sets providers.<namespace>.admission to auto and, when no chat provider is selected and exactly one eligible provider remains, selects it. The Current page wizard still calls this endpoint once after the Secrets step succeeds; it re-admits the provider when its parameters are sufficient and adopts it for embeddings when no embedding pair is saved.
Request body:
Response (
LlmOperationResponse):
On Genesis Desktop, this endpoint accepts only the Genesis AI provider; requests for
other providers return
403.
Ensure provider endpoints endpoint
Secret-only providers (openai, anthropic, gemini) persist credentials through the generic secret-fields API rather than a full provider-save PUT, so they skip the CUSTOM_ENDPOINTS registration those PUT routes perform as a side effect. The Current page wizard calls this endpoint once after the Secrets step succeeds and before the SPCS Approve External Access step, so there are egress hosts to approve.
Secret schema field endpoints
These routes back Config → Secrets and Advanced Settings secret-field editors. Plaintext values are stored in the managed secret store; references (secret_*, env_*, aws_*, and related forms) are stored in APP_CONFIG.
When white-labeling is on, human-readable description text in these responses
uses the product name; field paths and identifiers remain unchanged.
Successful writes to
providers.openai.connection.api_key also return
stopped_jobs (an array of voice and/or images, default []) and
consent_cleared (boolean, default false). Replacing the key with a different
key clears its voice and image consent even when neither job was running; stopped_jobs
names only the jobs the save stopped. The same key saved again leaves consent
intact. A new key must be allowed in the OpenAI connection’s Use for list
on AI Providers.
POST /api/config/secret-fields/{field_path}/set-value provider credential guard
When field_path maps to a provider credential (for example
providers.openai.connection.api_key) and the field already resolves to a
configured credential, Genesis runs the same connection test used by the
matching provider save before accepting the overwrite. First-time writes skip
the guard because there is no prior credential to restore.
On validation failure, the previous credential remains stored. On success, the
response follows
SetSecretValueResponse with success: true.
Full provider-save routes also call the same registration helper, but treat failures as best-effort (they do not fail the whole config save). Callers whose sole purpose is endpoint registration should check the response success field instead of assuming registration succeeded.
Path parameter:
Response (
LlmOperationResponse):
Provider admission endpoint
PUT /api/config/llm-providers/{provider}/admission changes the operator’s
admission decision without deleting the provider connection or its embedding
identity. Use deny to refuse provider use, or auto to permit use when its
parameters are sufficient. The operation requires access_config_panel.
The response uses
LlmOperationResponse with success and message fields.
LLM provider activation endpoint
POST /api/config/llm-providers/{llm_type}/activate switches the active chat
provider without rewriting that provider’s saved model assignments. The Current
AI Providers page uses this route for Set Active on the Chat tab
instead of PUT /api/config/models/main/assignments with use_defaults: true,
which would reset tier overrides back to Genesis defaults.
Request body (
LLMActivateRequest):
Response (
LlmOperationResponse):
When activation succeeds, Genesis runs a provider runtime refresh that applies
the active provider’s saved Change Models tier assignments and
clears stale LiteLLM process globals (such as the LiteLLM SDK
api_base
override) when
switching between LiteLLM-engine providers (azureopenai, databricks,
litellm_*, including litellm_proxy). It does not delete
LITELLM_PROXY_* bootstrap env vars. For composite providers (litellm_*,
including litellm_proxy), activation uses the saved provider configuration
and does not persist llm_endpoint from the activation request. LiteLLM
Proxy runtime calls resolve proxy_api_base from
providers.litellm_proxy.connection.base_url in AppConfig on each request, so
switching to or from litellm_proxy does not require a server restart. Runtime
chat resolves main, fast, and frontier models from llm.active_provider
assignments on each call.
LLM providers overview endpoint
GET /api/config/llm-providers/info backs the Legacy AI Providers overview grid on Config -> AI Providers (/config/llm-providers/). It returns enhanced provider rows plus a summary of configured, effective, and active main and embedding providers.
Each provider object in data includes:
If the runtime LLM state is unavailable, this endpoint still returns
success: true
with the stored provider rows enhanced for the response. Those rows retain
configured: true, but report available: false, effective: false, and
is_fallback: false because runtime availability and effectiveness could not be
confirmed. Stored rows without llm_type are omitted, matching the healthy
response path.
When usable LiteLLM Proxy settings are loaded from genesis-config.yaml or legacy LITELLM_PROXY_* environment variables (and proxy_api_base plus the selected auth_mechanism credentials are complete), Genesis adds or updates a litellm_proxy row in data and may omit the generic litellm row so Helm-managed proxy deployments surface LiteLLM Proxy instead of Other Providers. For those deployments, summary.active_main_provider can report litellm_proxy while summary.configured_provider and summary.effective_provider remain litellm. When LiteLLM Proxy runtime configuration is incomplete or temporarily unavailable, the litellm_proxy row reports configured: false, available: false, and empty key_preview / llm_endpoint, and summary fields that would route chat through the proxy (active_main_provider, effective_provider, main_model_assignments, fallback_provider, and embedding selections on the proxy) are cleared so the overview does not show a stale active proxy. The exception is a concrete non-fallback litellm_<vendor> active provider (for example, litellm_bedrock or litellm_anthropic): its default remains in the summary even though effective_provider is normalized to litellm. If runtime config resolution fails, the response may include message: "LiteLLM Proxy runtime configuration is temporarily unavailable".
The top-level summary object also includes:
On Snowflake Native App / SPCS hosts,
summary.configured_provider reflects
llm.active_provider; CORTEX_MODE is ignored. Genesis defaults chat to
Cortex only when configured_provider is unset and Cortex is available.
CORTEX_OVERRIDE is retired and ignored. Provider selection is
APP_CONFIG state written through the config API, Config -> AI Providers,
or a mounted genesis-config.yaml; schema-bound environment defaults such as
ACTIVE_LLM_PROVIDER only seed unset fields. GENESIS__LLM__ACTIVE_PROVIDER wins
over the stored choice while it is set, but it is a temporary troubleshooting pin that
leaves no record in settings, not a deployment’s configuration. See
Retired environment variables.
Startup
migration aa011_cortex_active_override_heal restores a pre-fix install whose
active provider was incorrectly forced to cortex when legacy
EXT_SERVICE_CONFIG.model_config.main_provider still records the operator’s
original choice. After startup migrations, Genesis invalidates the AppConfig
snapshot, LLM runtime cache, and this overview cache so the response reflects
the post-migration active provider on the same boot.LiteLLM Proxy provider configuration endpoints
These routes back the LiteLLM Proxy card on Config -> AI Providers.
When
test_connection is true or model is omitted, Genesis calls the proxy /models endpoint to validate the connection and discover models. Genesis requests {proxy_api_base}/models directly; when the proxy responds with HTTP 301, 302, 303, 307, or 308, Genesis follows up to two same-origin redirects whose target path ends in /models or /models/. Cross-origin redirects and redirects to non-/models paths are refused so authentication headers are not forwarded to another host. Genesis accepts the standard OpenAI-compatible response shape {"data": [{"id": "..."}]}, a bare array of model objects such as [{"id": "..."}], or the temporary legacy response shape {"data": {"Items": [{"model_id": "..."}]}}.
For model discovery, Genesis uses model_type when the proxy returns it. model_type: "embedding" places the model in the embeddings list, model_type: "chat" places it in the chat list, and providers that omit model_type fall back to the historical model-name heuristic. Discovery responses may include transport prefixes such as proxy/ or litellm_proxy/; Genesis strips those prefixes before persisting catalog entries, Model Universe technical names, and saved assignments, then re-applies litellm_proxy/ only when applying runtime environment variables for LiteLLM calls. LiteLLM Proxy sentinel permission ids such as all-team-models, all-proxy-models, and no-default-models are excluded from picker and universe technical-name lists; allow-all sentinels can still expand discovery against the /v2/model/info catalog when the proxy does not return explicit model ids.
Requests can name model (default chat), premier_model, fast_model, and
embedding_model directly. A named chat tier is saved as an override, and an
explicit embedding model is saved as the provider’s embedding preference; named
models are accepted even when they are absent from the proxy’s model listing. If
the proxy returns HTTP 400 for /models and the request names at least one model,
Genesis can save using those names and returns a warning_message that discovery
was unavailable. See the request-field table for the tier-specific fields.
fallback_model is separate from the chat tiers: it is used once for a failed
turn, not as an assigned model. On PUT, omit it or send null to preserve the
saved value, or send "" to turn fallback off. Genesis accepts a named fallback
even when it is absent from the proxy’s model listing.
On a successful POST, or on a PUT with initialize_models: true or a non-empty model, Genesis runs enriched discovery (/models permissions intersected with /v2/model/info metadata when available), upserts the result into Model Universe with source_type: "discovered", and infers default tier assignments from alias plus underlying model names. An ordinary PUT that changes configuration or credentials is assignment-neutral. When persisting inferred assignments, Genesis preserves any tier the operator already pinned with assignment_sources[task_type] == "override" (set via PUT /api/config/models/main/assignments or the Change Models UI). Override tiers keep their persisted model ids across proxy credential rotation, partial first save, or other re-save that re-runs catalog inference; freshly inferred tiers are saved with assignment_sources: "default". Materialization failures are logged but do not block the config save. When the /models fetch itself fails (network error, HTTP error, or invalid response), Genesis skips Model Universe materialization on that attempt and preserves any previously materialized discovered rows rather than reconciling against an empty failed fetch. When discovery is complete, Genesis reconciles stale discovered rows that are no longer advertised; custom rows are never overwritten.
When no chat provider is explicitly active in APP_CONFIG (active_provider_raw is null — the Snowflake Cortex zero-config default does not count), Genesis auto-activates LiteLLM Proxy on create, or on an assignment-intent update, only when discovery yields usable tier assignments or the request includes a non-empty model. A failed or empty discovery with no model saves credentials but leaves the provider inactive and omits the GenesisApp reload. On Snowflake Native App / SPCS, the first save often runs with test_connection: false while External Access is pending; when discovery fails with no assignments and no model, the response includes an SPCS-specific warning_message directing the operator to Approve External Access and use Continue setup for the provider. A later PUT with initialize_models: true after EAI approval can activate the proxy when models become reachable. Regardless of auto-activation, a successful save always publishes providers.litellm_proxy.admission: auto in the finalize step described under LLM provider save validation and rollback, so POST /api/config/llm-providers/{llm_type}/activate and the New connection wizard Done step can switch the provider active without a separate POST /api/config/llm-providers/mark-configured call.
When auth_mechanism is oauth and the effective oauth_credential_policy is per_user_oauth, Genesis skips admin-side service-account /models discovery on save, and the connection test reports status: "skipped"; runtime calls use each user’s browser OAuth grant. Genesis resolves the effective policy by merging the request payload, genesis-config.yaml (providers.litellm_proxy.settings.oauth_credential_policy, providers.litellm_proxy.settings.allow_user_oauth_fallback_for_non_interactive), saved metadata, and LITELLM_PROXY_OAUTH_CREDENTIAL_POLICY / LITELLM_PROXY_ALLOW_USER_OAUTH_FALLBACK_FOR_NON_INTERACTIVE (explicit env vars take precedence over file-backed values). When auth_mechanism is oauth but the OAuth client configuration is incomplete, or when auth_mechanism is static_headers but static_headers_json is missing, invalid JSON, not a JSON object, or an empty object, Genesis falls back to API-key discovery headers when proxy_api_key or LITELLM_PROXY_API_KEY is configured; otherwise model discovery is skipped for that save or test request. In service_account mode, Genesis resolves oauth_custom_header_descriptors from the merged provider metadata first and, when that list normalizes to empty, from oauth_custom_header_descriptors on the shared backing LiteLLM Proxy connection (litellm_proxy.shared). It applies the effective descriptor list to the OAuth token request (applies_to token_exchange), forwards downstream headers during client-credentials token acquisition, and sends downstream headers on proxy /models discovery, background model-catalog loading, and runtime proxy calls.
Helm-managed deployments can bootstrap the same provider settings from
genesis-config.yaml (providers.litellm_proxy, providers.litellm_proxy.settings.oauth_credential_policy, and related fields). Genesis merges file-backed values with saved metadata and legacy LITELLM_PROXY_* environment variables at runtime, including LITELLM_PROXY_TRANSPORT, LITELLM_PROXY_OAUTH_CREDENTIAL_POLICY, LITELLM_PROXY_ALLOW_USER_OAUTH_FALLBACK_FOR_NON_INTERACTIVE, and LITELLM_PROXY_OAUTH_CUSTOM_HEADER_DESCRIPTORS_JSON.LiteLLM Proxy configuration request fields
On
PUT, omitting auth_mechanism, transport, oauth_token_endpoint_auth_method, oauth_credential_policy, or allow_user_oauth_fallback_for_non_interactive preserves its stored value. Send a value explicitly to update it; schema defaults apply when no value is stored.
For OAuth saves, Genesis checks secret references in backing-connection header values during prevalidation. Required headers used by service-account policies must have a value and resolve; unresolved required references reject the save. An optional unresolved reference is omitted from the shared backing connection, while its App Config reference remains available for later runtime resolution. The backing-connection writer checks references again during registration, so a secret that disappears after prevalidation can still cause a save failure after provider settings are committed; restore the secret and retry.
LiteLLM Proxy configuration response fields
GET /api/config/llm-providers/other/litellm-proxy also returns
oauth_service_account_header_issue as a string or null. When a saved shared
service-account configuration cannot send an OAuth header, the field explains the
descriptor or missing required value that needs attention; it does not expose header
values. The AI Providers status panel displays this issue.
Before returning, GET /api/config/llm-providers/other/litellm-proxy merges safe runtime LiteLLM Proxy settings from genesis-config.yaml and legacy LITELLM_PROXY_* environment variables into the saved metadata payload (non-secret display fields such as proxy_api_base, anthropic_base_url, auth_mechanism, transport, OAuth URLs and client ID, oauth_credential_policy, allow_user_oauth_fallback_for_non_interactive, oauth_custom_header_descriptors, and model; masked markers for configured secrets; oauth_service_account_header_value_keys derived from runtime providers.litellm_proxy.connection.oauth.service_account_header_values when present, otherwise saved oauth_service_account_header_values_json). When the merged runtime config is complete for the selected auth_mechanism, Genesis may set configured: true even when UI metadata alone would not. When runtime config resolution fails, Genesis sets configured: false and configuration_status: "unavailable" instead of returning stale saved fields.
The response includes configured, configuration_status ("unavailable" when runtime config cannot be resolved; omitted when config loads normally), provider, proxy_api_base (admins only), anthropic_base_url, model, premier_model, fast_model, embedding_model, fallback_model, auth_mechanism, transport, masked secret markers (proxy_api_key_masked, static_headers_json_masked, oauth_client_secret_masked, oauth_service_account_header_values_json_masked), the non-secret OAuth fields above, oauth_custom_header_descriptors, oauth_service_account_header_value_keys (sorted field_key entries without exposing secret values), oauth_service_account_header_issue, and allow_user_oauth_fallback_for_non_interactive. Explicit model fields are populated from saved admin model assignments when present, so the Reconfigure form can preserve those tier names. A tier whose assignment source is default is omitted rather than returned as a saved choice; this includes catalog-chosen Fast and Premier tiers, so saving unrelated settings does not pin them as overrides. Deployment defaults are not returned as saved assignments. Non-admin callers receive a sanitized subset of these fields (including transport, oauth_custom_header_descriptors, and the masked markers, but not proxy_api_base or raw secret values) so per-user OAuth flows can show required custom headers without granting full provider configuration access.
The Reconfigure form in Config -> AI Providers keeps the last saved descriptor list when oauth_custom_header_descriptors is omitted from the status payload, falls back to the backing LiteLLM Proxy connection copy when the field is present but normalizes to an empty array, and uses oauth_service_account_header_value_keys to show that a service-account header value is already configured even when the backing connection copy does not expose shared defaults.
LiteLLM Proxy configuration operation response fields
POST /api/config/llm-providers/litellm-proxy and PUT /api/config/llm-providers/litellm-proxy return LlmOperationResponse:
For
PUT, initialize_models: true explicitly requests initial model-assignment
setup. Routine configuration or credential updates leave existing assignments
unchanged unless a non-empty model is supplied. The save validates the complete
candidate, including any secret_updates, before committing it; a failed
candidate save leaves the previously stored proxy credential in place.
LiteLLM Proxy connection test request fields
For an Anthropic-family probe, Genesis usesanthropic_base_url when configured,
otherwise the proxy base URL, removes one trailing /v1, then posts to
/v1/messages.
When request fields are omitted,
POST /api/config/litellm-proxy/test-connection fills gaps from saved provider metadata merged with the same runtime LiteLLM Proxy config used for GET display. In service_account OAuth mode, Genesis sends descriptor values with applies_to token_exchange on the OAuth token request, forwards applies_to downstream headers during client-credentials token acquisition, and sends downstream headers on the proxy /models probe. When the effective transport is anthropic, Genesis also probes the configured model (from saved assignments when available, otherwise the first model returned by /models) via /messages. When the effective transport is auto, Genesis resolves the probe from the configured model or the models returned by the proxy, and probes /messages when an Anthropic-family model is among the candidates.
When Genesis performs model discovery and /models returns HTTP 400, it treats
the listing as unsupported and, when a model is configured, tests it with one
chat completion instead. The completion is capped at 16 output tokens on the
OpenAI route or one token on the Anthropic route, and may incur model-provider
usage. Without a configured model, the test returns success: false with
details.reason: "model_required"; set a default model before testing again.
LiteLLM Proxy connection test response
POST /api/config/litellm-proxy/test-connection returns the standard success / message payload plus status, which every provider connection test carries: passed, failed, or skipped. skipped means nothing was tested; it always comes with success: false. When a test reports no status of its own, status is passed for success: true and failed otherwise.
When auth_mechanism is oauth and the effective oauth_credential_policy is per_user_oauth, there is no shared credential to test: every call uses the signed-in person’s own grant. When the proxy is saved that way and the request keeps that policy, the test checks the saved configuration with the calling administrator’s own OAuth grant and downstream header values (one GET /models and one chat call, as below), whatever else the request submits; its message starts with “Tested with your own OAuth grant.” Resolving the grant may refresh it at the identity provider, which rewrites the stored grant. When the caller has no usable grant (none, revoked, or expired without a refresh), it returns status: "skipped" with details.reason: "user_grant_missing"; connect OAuth, then test again. A per-user policy that is not saved yet sends nothing and returns status: "skipped" with details.reason: "requires_user_grant". Under service_account and per_user_oauth_with_service_fallback, the test uses the service account.
Under oauth and static_headers on the OpenAI route, a listing that succeeds is followed by one /chat/completions call on the configured model, or, when none is configured, on the fast model Genesis infers from the listing. A gateway can list its models and still refuse chat (for example, for a missing or wrong header), so this call is what proves the credentials work. It is capped at 16 output tokens and may incur model-provider usage. A refusal fails the test with the gateway’s status code and error text, and details.status_code. When no model is configured and the listing has no chat model, the test passes with details.warning saying generation was not probed. api_key and none are tested by the listing alone. When transport is anthropic and the probe succeeds, the success message notes that the Anthropic /messages probe succeeded.
A gateway’s refusal of the listing or of the /messages probe also carries its status code and error text in message, with details.status_code.
Submitted secret references are resolved before testing the proxy API key, static
headers JSON, OAuth client ID, and OAuth client secret. The OAuth client secret is
not read when the effective policy is per_user_oauth. If a submitted reference
cannot be resolved, the test fails with details.reason: "credentials".
Failed tests may include details.reason to identify the failure category:
Embedding configuration endpoints
These routes back the Embeddings tab on Config -> AI Providers and are independent from the main chat-provider assignments. Persisted active values are stored inAPP_CONFIG at embedding.active_provider and
embedding.active_model. Per-provider embedding preferences (saved during
setup before activation) are stored at
providers.<provider>.models.embedding_model.
GET /api/config/models/embeddings/config is read-only and accepts either
access_config_panel or view_model_config. The PUT route and the other
embedding model routes require access_config_panel.
After a committed provider-configuration change, Genesis resends the current
embedding identity when Twin’s lineage tool is registered; unchanged identities
can be refreshed without a document re-index. See Digital Twin reload
behavior.
POST /api/config/llm-providers/embedding-config/test accepts the embedding
configuration request body and returns success, message, optional
warning, dimensions, and status, which is skipped (with success: false) when
nothing could be tested: a per-user OAuth LiteLLM Proxy has no service account for the
background work embeddings are. The live embedding request has a 15-second timeout.
The effective embedding identity is resolved in this order:
- A complete
embedding.active_providerplusembedding.active_modelpair fromAPP_CONFIGis authoritative.EMBEDDING_PROVIDERandEMBEDDING_MODELaredefault_env_varseeds for those fields — applied only while no value is stored, and outranked by any stored pair.LITELLM_EMBEDDING_MODELis no longer read as an input. - When no complete active pair exists, an eligible Cortex mode override may provide the runtime identity.
- Otherwise, the identity is unset or incomplete. Genesis does not infer an OpenAI fallback.
409 with error_type: "embedding_not_configured" when no identity resolves, or error_type: "provider_not_configured" when the selected provider lacks required configuration or credentials.
GET /api/config/models/embeddings/models/{provider} returns data.provider,
data.models, and data.with_display_names. When building the list, Genesis
reads only persisted embedding configuration for the requested provider — it
does not inject the globally inferred OpenAI default when another provider is
active, so the active embedding model does not leak into unrelated provider
pickers. When with_display_names=true,
each model is an object with technical_name and display_name (provider
prefixes stripped from technical_name). When with_display_names=false,
data.models is a string array of normalized technical identifiers.
For live-discovery proxy providers (litellm_proxy), Genesis also returns
data.discovery_status ("ok" | "empty" | "error") and
data.discovery_error (string or null) using the same semantics as
GET /api/config/models/main/models/{provider}. When Model Universe already
contains materialized litellm_proxy rows, Genesis serves the picker from
those entries instead of calling the proxy on every request; live /models
discovery is used only before the first materialization or when the universe
list is empty. Recommended-default catalogs are still bypassed for these
pickers. discovery_status: "empty" reflects what was advertised or
materialized before assignment injection.
Stranded embedding corpora response
GET /api/config/models/embeddings/stranded-corpora returns success and a data array. The array contains one row per reconciled recorded identity plus one row per unreadable collection directory.
proposable means Chroma metadata carries a complete identity with no contradictory sidecar record. conflict means two complete records disagree. indeterminate means no complete provider/model pair was recorded; Genesis never invents the missing model. unreadable means no trustworthy identity could be extracted.
Test an embedding model without saving
POST /api/config/llm-providers/embedding-config/test requires access_config_panel.
Send provider and model, or provider with use_defaults: true; a model-only
request resolves its provider through the existing embedding resolver. The route
uses already saved provider credentials. It does not test an unsaved API key,
save a model preference, activate a provider, or start reindexing.
success, message, and dimensions. Non-Cortex providers
generate a small embedding through the existing provider transport on each test;
the live request may consume provider quota and incur charges. The Cortex
branch checks Snowflake availability and obtains catalog dimensions; it does not
execute a sample embedding, so its successful response alone is not a full
embedding inference check. Provider failures remain visible in message.
Embedding configuration request and response fields
PUT /api/config/models/embeddings/config requires either model or
use_defaults: true. If provider is omitted while model is present,
Genesis attempts to infer the provider from the model identifier.
For an authenticated request from a non-system user, embedding tests and any
model calls made while saving, applying, or resetting the configuration run in
that requester’s context. A per-user-OAuth LiteLLM Proxy can use the requester’s
grant. With that OAuth policy, requests without a signed-in person, such as
service-token requests, need shared service-account credentials for background
work; see
LiteLLM Proxy OAuth setup.
When activate: false, the response includes details.reindex_required: false. details.activated is normally false, but is true when first-save adoption successfully names the first global embedding identity. With apply_if_active: true, details.applied reports whether Genesis applied the selection to the active identity; if allow_reindex: false would change that identity, the request returns details.confirmation_required: true and details.current_model without saving. Retry with allow_reindex: true after confirmation. When activating a provider later (for example via Set Active for Embeddings), Genesis resolves the embedding model in this order: saved providers.<provider>.models.embedding_model, then the packaged yaml default, then recommended/available models from Model Universe.
First-save embedding adoption
Provider configuration saves that persist an embedding preference, andPUT /api/config/models/embeddings/config with activate: false, may return the optional top-level embedding_adoption field. This is the outcome of a one-time attempt to adopt the saved provider/model when no global embedding identity exists. It is separate from the standing embedding identity state returned by provider-overview APIs.
GET /api/config/models/embeddings/config returns the effective runtime
provider and model after coherence correction — for example, a Cortex-only
catalog model paired with a non-Cortex provider in a Cortex-capable deployment
resolves to provider: cortex. At server startup, Genesis also runs a one-time
embedding connection smoke test (5-second timeout for LiteLLM-routed providers)
and logs failures without blocking boot.PUT /api/config/models/embeddings/config response details
This route returns the generic OperationResponse shape with top-level success, message, optional details, and optional embedding_adoption when a save triggers a first-identity adoption attempt.
PUT /api/config/models/embeddings/config writes the embedding identity to APP_CONFIG, and GET reads it back from there; EMBEDDING_PROVIDER / EMBEDDING_MODEL act only as seeds for unset fields. Manage embeddings from Config -> AI Providers -> Embeddings, from this endpoint, or through genesis-config.yaml — the same three surfaces that configure a chat provider. Saved values take precedence over env seeds; GENESIS__* overrides pin effective values while set.Main-provider model list endpoint
GET /api/config/models/main/models/{provider} backs the Change Models
modal on Config -> AI Providers. It returns the model lists used by the
per-tier pickers (Premiere, Main, Fast).
data always includes provider, type (echo of model_type), models,
main_models, fast_models, frontier_models, and with_display_names.
For provider="cortex", every request runs fresh model discovery: Genesis reads
the live Cortex catalog and sends a small completion request for each advertised
candidate to verify access with the configured runtime identity. The check is not
cached and can incur Snowflake charges. The response also carries
discovery_status, discovery_error, and discovered_models; failures do not
fall back to saved assignments as available models.
For providers without live discovery, Genesis builds these lists from
Model Universe, recommended defaults, and the provider’s saved assignments (the
active assignment is injected when missing so the picker can show the current
value).
For live-discovery proxy providers (litellm_proxy), Genesis prefers
materialized Model Universe rows (source_type: "discovered") when present.
Opening Change Models or an embedding model picker also calls
POST /api/config/model-universe/refresh?provider=litellm_proxy so models
added to the proxy after the connection was saved appear without re-saving that
connection; tier assignments are not re-inferred. The refresh is throttled per
process by llm.proxy_universe_refresh_interval_seconds (default 300). When
the universe is empty, Genesis idempotently runs
ensure_litellm_proxy_universe_materialized() on this read path (discovery plus
upsert when no litellm_proxy rows exist yet) before building the picker
lists. If materialization cannot reach the proxy, Genesis falls back to live
/models discovery. Recommended-default catalogs are still bypassed. The same
discovered set is used for every tier (main_models,
fast_models, and frontier_models). The saved assignment may still be
injected into those tier lists for picker continuity even when the proxy did not
advertise that model. When no tier assignments are persisted yet, Genesis read-only
infers premiere/main/fast technical defaults from the materialized universe for
picker preselection; this inference does not persist or activate the provider.
When with_display_names=true, each litellm_proxy model object may include
underlying_model (string or null) — the backend model id from proxy catalog
metadata when known.
Live-discovery fields on data:
Model Universe list item fields
GET /api/config/model-universe/models returns data[] items with the standard
model metadata plus proxy-specific fields when present:
Discovered LiteLLM Proxy rows are reconciled on later saves when discovery is
complete;
custom rows are never overwritten by materialization.
POST /api/config/model-universe/test-model
Test a model using the provider’s saved credentials. The llm mode runs a
minimal completion; embedding sends one embedding request with a 15-second
timeout and returns the vector dimensions in details on success. Each call
spends one request against the provider and requires access_config_panel. For
a saved per-user OAuth LiteLLM Proxy, the test uses the caller’s own grant;
resolving it may read or refresh the stored token, then list proxy models before
testing the selected model.
The response contains
success (boolean), status (passed, failed, or
skipped), message (string), and optional details (object). skipped means
nothing was tested and always has success: false; for example, the caller may
not have a usable grant for a saved per-user OAuth LiteLLM Proxy. For a successful
embedding test, details.dimensions is the embedding vector size.
POST /api/config/model-universe/refresh
Re-discover a live-discovery proxy provider’s models and update Model Universe.
The Change Models modal, Embeddings model step, and new-connection
models step call this automatically for litellm_proxy. Static-catalog
providers return HTTP 400. When /models discovery fails, Genesis returns
success: false with message Could not refresh the model list; the saved list is unchanged and leaves existing materialized rows untouched.
Response fields:
Tier assignments are not re-inferred — only the universe snapshot is refreshed.
Provider seed defaults for main assignments
GET /api/config/models/main/defaults/{provider} returns the technical and
display default model map Genesis uses when Change Models resets a provider
to shipped defaults or when PUT /api/config/models/main/assignments is called
with use_defaults: true.
A PUT /api/config/models/main/assignments that sets default_chat also assigns
it to supervisor, harvester, and knowledge_server, except a role whose
assignment_sources entry is default (every role, under use_defaults: true
without sources), which keeps its catalog seed. For databricks and cortex
those seeds equal default_chat. The shipped cortex defaults depend on
providers.cortex.settings.api: on the Messages API (the default) default_chat,
premier_model, supervisor and harvester are claude-opus-5-5 and
fast_model is claude-haiku-5-5; on chat_completions they are
claude-opus-5 and claude-haiku-4-5, and an assignment naming a Claude 5.5
model is refused with a 400 naming the tier. The shipped OpenAI main chat default is
gpt-6.1-sol; its catalog seeds fast_model, harvester, and
knowledge_server on gpt-6-luna. The shipped Azure OpenAI defaults are the
gpt-6.1-sol deployment name for default_chat, premier_model and
supervisor, and gpt-6-luna for fast_model, harvester and
knowledge_server. Startup reconciliation applies the same seeds to roles still
managed by defaults, so save and restart agree. For Azure OpenAI the seeds are
recommended base deployment names: reconciliation keeps a stored Azure deployment
and fills an empty role from the stored main deployment before the seed, while
an explicit use_defaults save writes the seeds as deployment names.
For litellm_openai, the shipped default_chat is openai/gpt-6.1-sol and
fast_model is openai/gpt-6-luna; both are included in this endpoint’s
provider default map. For litellm_anthropic, default_chat and
premier_model are anthropic/claude-opus-5-5 and fast_model is
anthropic/claude-haiku-5-5; for litellm_bedrock they are
global.anthropic.claude-opus-5-5 and global.anthropic.claude-haiku-5-5.
Main-provider assignment fields
The main-provider assignment endpoints expose model tier assignments, source metadata, and a provider-level inherited chat tier:GET /api/config/models/main/assignmentsGET /api/config/models/main/assignments/{provider}PUT /api/config/models/main/assignments
GET /api/config/models/main/assignments is read-only and accepts either
access_config_panel or view_model_config. The provider-specific read and
the PUT route require access_config_panel.
When a
PUT requests a changed Genesis default that the provider refuses, the
successful response reports the model actually saved in details.assignments
and its source in details.assignment_sources. details.deferred_defaults
lists refused targets that will be retried, while details.unverified_defaults
lists targets whose check was inconclusive; either list may be empty. The
response may include details.warning with a user-facing explanation.
Each GET assignment response reads the active provider, assignments, source
metadata, inherited chat tier, and capabilities from one current APP_CONFIG
snapshot. These fields therefore describe the same configuration state instead
of mixing values from separate reads or a stale response cache.
When PUT /api/config/models/main/assignments targets a provider that does not
yet have saved credentials, Genesis can still persist the submitted assignments
and default_model_tier without changing the current main_provider.
Configure that provider’s credentials and activate it later to make the saved
assignments live.
A successful assignment save is available to the running process immediately;
it does not require a server restart. Saving assignments without activation
still leaves the current main_provider unchanged.
When provider is litellm_proxy, Genesis calls
ensure_litellm_proxy_universe_materialized() before saving assignments so
underlying-model metadata is available for the Change Models picker even
when the universe was never populated by a prior provider save.
On PUT /api/config/models/main/assignments, Genesis validates each
non-empty assignment value (after display-name conversion) against LiteLLM’s
provider-prefix routing rules before persisting. Bare model names with no /
(for example gpt-5 or an Azure deployment name) are accepted — the active
provider strategy prefixes them at request time. Slash-prefixed values are
accepted only when the first segment is a recognized LiteLLM provider prefix
(for example azure/gpt-5 or bedrock/global.anthropic.claude-opus-5-5). Values whose
first segment is not a recognized provider — such as an endpoint hostname
genesis-azure-1/gpt-5 — are rejected with HTTP 400 and a message naming the
offending task type and model value, for example:
Model assignment 'default_chat'='genesis-azure-1/gpt-5' is not routable: 'genesis-azure-1' is not a recognized LiteLLM provider. Use a bare model name or prefix it with a valid provider (e.g. 'azure/<deployment>', 'bedrock/<model>'). Empty or null assignment values are skipped. This check
is not applied when provider is litellm_proxy, because proxy model aliases
are admin-defined free-form strings that may contain / yet still resolve via
the proxy’s own alias table.
Context graph scanner model tier
Twin’s context-graph scanner uses a chat model for bulk description generation. Genesis stores the tier inllm.twin_scanner_model_tier (default fast) and
resolves it against the active provider’s tier assignments (fast →
fast_model, main → default_chat, frontier → premier_model, falling
back to the provider’s main chat model when the chosen tier has no assignment).
PUT request body:
GET and PUT responses include success, tier, and models — a map of
each tier name to the effective model id for the active provider (values may be
null when the provider or its assignments cannot be resolved).
SCIM provisioning endpoints
These endpoints implement Phase 1 inbound SCIM provisioning. They are mounted outside the authenticated/api surface at /scim/v2/... and authenticate
with Authorization: Bearer <scim_token> using the SCIM bearer token instead
of a Genesis PAT.
For Databricks App behavior across these routes and the admin endpoints, see
SCIM admin configuration endpoints.
A machine-readable SCIM OpenAPI artifact is maintained in
docs/features/scim-openapi.yaml in the Genesis repository. Genesis intentionally
advertises ETag support as false for this release; clients should not rely on
If-Match concurrency semantics.
SCIM metadata endpoints
SCIM user and group resource endpoints
Shared SCIM list query fields
SCIM user create and replace request fields
SCIM patch request fields
SCIM group create and replace request fields
User resource responses return
id, externalId, userName, displayName,
active, emails, roles, name, and meta. Group resource responses
return id, displayName, members, and meta. List routes return the
standard SCIM ListResponse envelope with schemas, totalResults,
startIndex, itemsPerPage, and Resources.
Genesis enhancement report artifact endpoints
These routes are mounted under/api/genesis-enhancements/... and back the
Support and Enhancements report workflow.
Report list endpoint
GET /api/genesis-enhancements/reports
This endpoint returns the standard response envelope with
success plus
reports, where each item uses the same base report shape returned by
GET /api/genesis-enhancements/reports/{report_id}.
Reports created through this API record the requesting user’s ID, email, and
display name as the creator. These values come from the request’s user context,
not creator fields supplied in the request body. When submitting a report with
no recorded creator, Genesis records the submitting user’s identity.
See report access rules.
Report delivery status for a conversation
GET /api/genesis-enhancements/report-deliveries
Returns delivery records for reports filed from one conversation, without report
bodies. The caller sees only reports they may reach. Cost: one read of the report
store.
The response has
success and deliveries:
Sync support tickets
POST /api/genesis-enhancements/sync-tickets
Synchronizes only open support tickets the caller may reach. It sends queued or
failed-to-send tickets even when autosend is off, because this is an explicit
sync request, and refreshes statuses for tickets already sent. Tickets it sends
tell the receiver send_reason: manager_released, because someone who manages reports released them (see
Why each report was sent). It leaves drafts
and enhancement requests unchanged. Requires access_config_panel or
manage_genesis_enhancements. Cost: one report-store read, one receiver call per
ticket sent, and one receiver call for the status refresh when needed.
The response includes success and these counts:
Discard a report
POST /api/genesis-enhancements/reports/{report_id}/discard
This route accepts either access_config_panel or
manage_genesis_enhancements; the latter can discard only a report filed by the caller.
Requests for another person’s report return the same 404 as an unknown report. For the storage cost, see
discard_enhancement_report.
A successful response has
success: true and a report object whose status is
discarded. Its discard object records the following fields:
Add report feedback
POST /api/genesis-enhancements/reports/{report_id}/feedback
The caller must be able to reach the report. message is required;
send_to_receiver is optional and defaults to true. The request schema also
accepts author_type and author_id for compatibility, but the route ignores
those values and records the signed-in caller as the author. The response uses
the standard report envelope and includes receiver_result when available.
It also returns comment_posted, comment_unconfirmed, comment_id, and
comment_error to distinguish a note posted on the downstream issue from one
that remains only in Genesis. When comment_unconfirmed is true, the post
was not confirmed and may already be on the issue; clients should not retry it.
Artifact-backed report creation fields
POST /api/genesis-enhancements/reports accepts these artifact-related body
fields in addition to the standard report fields:
When a report has attached artifacts,
GET /api/genesis-enhancements/reports/{report_id}
returns an attachments array. Each attachment entry includes these fields:
Report detail bundle preview fields
GET /api/genesis-enhancements/reports/{report_id} also accepts these fields
for the report-detail drawer:
When bundle preview generation succeeds,
report.bundle can include:
Version-aware ticket fields
Report responses can also include these version-tracking fields underreport.ticket:
Team replies in report data
When the receiver’s status sync returns team replies, report responses include them underreport.ticket.customer_replies, oldest first. Each entry has
comment_id, message, author, and created_at. A receiver that does not
send this field leaves previously stored replies unchanged.
Bundle preview enrichment is best-effort. If preview generation fails, Genesis
still returns the base report payload instead of failing the entire request.
Artifact download endpoint
GET /api/genesis-enhancements/reports/{report_id}/artifacts/{artifact_id}
Full report bundle endpoint
GET /api/genesis-enhancements/reports/{report_id}/download-bundle
This ZIP contains
report.md, report.json, scrub_manifest.json, and all attached artifact files for the report. When enhancement bundle scrubbing is enabled, Genesis redacts supported text artifacts before packaging and records the outcome in scrub_manifest.json; binary attachments pass through unchanged. If the report includes a nested thread_export.zip, that inner ZIP carries its own scrub_manifest.json; support-bundle workflows rewrite role: "tool" output content in thread.json and message_log.csv to schema-only descriptors by default and record the applied mode plus redaction counts there. The same single ZIP is also the only attachment Genesis sends during online report submission.
If Genesis cannot build a safe bundle or the receiver cannot accept multipart uploads, POST /api/genesis-enhancements/reports/{report_id}/submit returns success: false instead of falling back to a bundleless submission.
Support email draft endpoint
GET /api/genesis-enhancements/reports/{report_id}/email.eml
This endpoint returns
message/rfc822 content with X-Unsent: 1 so Outlook
and Thunderbird open the file as a draft the user is composing. Apple Mail and
browser-based webmail flows should use the mailto: fallback together with the
plain ZIP download instead.
Enhancement settings endpoints
PUT /api/genesis-enhancements/settings is a partial update. Omit a field to keep its current stored value.
Updating settings, assigning the EAI integration, updating dormant-review
settings, and running dormant review once require access_config_panel because
they affect the deployment as a whole. manage_genesis_enhancements continues
to provide access to enhancement requests and other page operations; it does
not grant these deployment-wide controls.
When autosend_enabled is false, report submission paths normally force offline delivery regardless of mode_preference; a report explicitly confirmed by the person can still be sent at their request. On non-SQLite Snowflake deployments, enabling autosend upserts the receiver host parsed from receiver_base_url into CUSTOM_ENDPOINTS under egress group GENESIS_ENHANCEMENTS with type CUSTOM; disabling autosend removes that endpoint; changing receiver_base_url while autosend stays enabled replaces the previous host. Endpoint reconciliation failures are logged but do not fail the settings update. Each successful PUT also invalidates the cached EAI assignment check for report_eai_reference.
For queued-report delivery through the agent tool, see
the Genesis enhancement tool workflow.
Connectivity and receiver settings fields
Bundle-delivery settings fields
Support diagnosis endpoints
The access check limits each lookup to a failure in a thread the signed-in person may open; the screen-facing response contains only person-facing fields.GET /api/support/diagnoses/{signature}
Returns
success, signature, status, and, when available, cause_class,
owner, headline, summary_for_person, next_step, and report_id.
It may also include severity (critical, high, medium, or low) and
report status fields when a report exists. status is pending, ready,
manual, or unavailable. next_step.action
is retry, reconnect, open_setting, contact_admin, or none; label is
the action text. Cost: a diagnosis-store read and thread-access metadata reads,
plus one report-store read when a report is recorded for the failure.
POST /api/support/diagnoses/{signature}/request
Requests a diagnosis when the current status is manual; it returns immediately
with status: pending. If a diagnosis is already ready, pending, or unavailable,
it returns that current status. The path parameter uses the same shape as the GET
route; no request body is required. A new request can be refused with 429 by the
per-person or per-server hourly limit, the server-wide daily limit, or by the one-hour
wait after the same failure’s last diagnosis ended without an answer. The same
requested-diagnosis limits apply to the Support Agent’s get_failure_diagnosis tool.
Cost: the GET route’s reads, one admission write, and, when a diagnosis starts, a
background Support Agent turn using the configured LLM provider.
POST /api/support/diagnoses/{signature}/report
Files a report for a diagnosed Genesis problem the signed-in person may see.
The explicit request is consent to send this report even when automatic report
sending is off. It includes the diagnosis, deployment and Genesis version, but
not the conversation; support logs follow the existing bug-report log setting.
See export_thread
for the support.include_server_log_in_bug_reports setting and its default.
An existing open report is returned instead of filing another. A queued report
can be retried at the priority selected in this request.
The response uses the GET response fields and reports
report_state,
report_reference, report_priority, and reported_now. Genesis attempts to
send the report on this call; if it cannot be sent, the report is saved locally
with report_state: queued. Cost: the GET route’s
reads, report-store reads and writes, one read of the server log tail, and one
call to the report receiver, which can take minutes on a worker thread.
POST /api/support/issue-reports
Send a person’s edited report from a Report this issue support pop-up. This route does
not request a Support Agent diagnosis. The person’s submission explicitly consents to send
this report even when automatic report sending is off. A failure signature is linked only
when the person may see that failure; the conversation is attached only when they may open
it. An existing report for the same problem and conversation or connection is reused.
The response state is
already (an existing ticket), sent, or saved (kept locally rather
than sent). It also returns report_id,
report_reference, ticket_url, report_priority, and awaiting_administrator; success
is false when a send failed. Concurrent sends of the same problem, or a full send queue, return
409. More than six reports from one person in ten minutes returns 429. Cost: report-store
reads and writes, a permitted conversation export, one read of the server log tail, and one
call to the report receiver, which can take minutes on a worker thread.
Advanced settings read and update endpoints
GET /api/config/install-identity
Returns the client and instance names this install reports to the vendor,
their sources, the qualified name, and the stable install ID. It has no request
body. Each request resolves the identity again: it reads licence metadata and
the config snapshot, queries Snowflake context on Snowflake deployments, and
reads or creates the install ID on first use. The Advanced Settings identity
reminder fetches it on demand, then refreshes after a server.* save or when the
browser reconnects to the server.
Configuration paths use lowercase dot-notation (for example
server.debug).
All advanced-settings routes normalize path arguments to lowercase before
schema lookup, validation, and secret-field guards — mixed-case paths such as
Server.Debug resolve to the same field as server.debug.
GET /api/config/advanced/schema, GET /api/config/advanced, and
GET /api/config/advanced/{section_name} return field metadata plus current
values. Each field includes is_default: true when no value has been
explicitly stored in APP_CONFIG for that path (startup NULL scaffold rows
do not count as an explicit operator choice). When is_default is true,
the resolved value comes from the config priority chain (default_env_var or
schema default).
With white-labeling on, human-readable field description text uses the product
name. Field paths and section identifiers remain unchanged.
When server.laptop_mode is false, the advanced-settings read routes omit
Desktop-only fields, and omit the desktop section when it has no visible
fields. Update and reset requests for those paths are refused. See
Advanced Settings for the Desktop settings and
their defaults.
Current-value responses from GET /api/config/advanced and
GET /api/config/advanced/{section_name} include forced_reason on each field,
normally null. On Genesis Desktop, desktop.local_cli_enabled has
forced_reason: "desktop" and its effective value is true regardless of the
stored value. When a licence sets server.billing_environment, that field has
forced_reason: "licence" and cannot be changed through Advanced Settings.
Attempts to update or reset a setting held fixed by Desktop or a licence are
refused without changing the stored value.
The section objects returned by GET /api/config/advanced and
GET /api/config/advanced/{section_name} also include warnings, an array of
operator warnings about effective configuration; it is empty when there are no
warnings. The CLI Terminal warning condition and remediation are documented in
Advanced Settings.
The collection read used by the Advanced Settings page batches its storage and
secret-status reads into two database queries; see Advanced Settings
for the resulting Snowflake-hosted page-load behavior.
Non-admin callers with access_config_panel still receive most advanced settings
on the read routes, but Genesis omits admin-only paths from
GET /api/config/advanced/schema, GET /api/config/advanced, and
GET /api/config/advanced/{section_name} responses. PUT /api/config/advanced/value,
PUT /api/config/advanced/values, and POST /api/config/advanced/reset return
HTTP 403 when a non-admin includes any admin-only path.
Admin-only paths:
A path is also admin-only when it names a section holding an admin-only setting
(
features with a mapping value) or a key inside one, judged with empty segments
dropped (.features writes what features does). The root and Genesis’s internal
_-prefixed sections, such as _profile, are admin-only as well.
The Desktop command-mode admin-only paths, desktop.local_cli_enabled and
desktop.local_cli_srt_command, have an additional laptop-mode restriction.
When the process is outside laptop mode (server.laptop_mode is false), they
are omitted from the three GET responses above even for admins, and requests
to update or reset them are refused without changing configuration. Non-admin
callers remain subject to the admin-only restrictions above. See
Advanced Settings for command-mode setting
details.
sandbox_runner.* paths control container execution, networking, and which bots run
arbitrary code in a sandbox — all are admin-only. See
Advanced Settings — Sandbox thread runner
for field semantics.
Sandbox thread-runner tokens are not general API credentials. On the MCP transport,
send the live token with Authorization: Bearer gsk_...; the optional
x-genesis-thread-id header, when supplied, must identify the same thread. Genesis
accepts the request only when the token belongs to that thread, resolves a non-system
owner, and the route and HTTP method are in the sandbox capability contract. The request
then runs as the owning user, so normal RBAC and tenancy checks still apply; invalid or
expired tokens return 401, and routes outside the contract return 403. The same
contract applies to the REST calls MCP makes on the agent’s behalf. See Sandbox thread
token controls.
Secret fields (
is_secret: true) and paths locked by GENESIS__* overrides
are refused on both write routes (same guards as reset).
PUT /api/config/advanced/value request fields
PUT /api/config/advanced/values request fields
PUT /api/config/advanced/value and PUT /api/config/advanced/values response fields
Advanced settings reset endpoint
POST /api/config/advanced/reset deletes stored configuration values so each
path returns to “never explicitly set” and resolves through the normal config
priority chain — a field’s default_env_var when that environment variable is
set, the schema default otherwise. Genesis does not write the schema default
back into the database. For an env-backed leaf that Genesis previously bridged,
the reset also restores the deployment’s original value from before that bridge
overwrote the environment variable once no other path is still bridging it; if
it was unset, Genesis unsets it again. This makes the next resolution use the
deployment default rather than the value that was just reset.
The whole request is refused (nothing deleted) when any path is not a schema
field, is a secret field, or is locked by a GENESIS__* runtime override (the
same guards as PUT /api/config/advanced/value). Secret fields must be reset
through /api/config/secret-fields/... instead.
POST /api/config/advanced/reset request fields
POST /api/config/advanced/reset response fields
Manual thread-archive run endpoint
POST /api/config/advanced/archive/threads/run runs thread archival
immediately using the currently saved archive settings. This route does not
accept a request body.
The endpoint returns 400 when threads are stored in Postgres; see thread
archive settings for
the storage-engine limitation.
Each archived object is a ZIP bundle built from the thread’s stored source
files and uploads, with message_log.csv included when available. If a prior
run already uploaded the bundle, Genesis verifies that remote object and
finishes local cleanup instead of rebuilding it.
Thread-archive run response fields
Thread-archive run summary fields
Bot directory cleanup endpoint
POST /api/bot-directories/cleanup cleans up bot-thread directories under
{STORAGE_PATH}/threads that do not match the bot registry. Genesis
quarantines invalid directories to the reversible graveyard at
{STORAGE_PATH}/graveyard, renames wrong-case directories to the canonical
bot_id, and merges disjoint thread sets into the canonical bot. It never
hard-deletes thread data. This route does not accept a request body.
POST /api/bot-directories/cleanup
Returns BotDirectoryCleanupResponse with success: true and a data object
describing the run.
Each
actions[] item:
AWS connection bucket listing endpoint
GET /api/connections/aws/{name}/buckets lists the S3 bucket names visible to the resolved AWS connection. Genesis uses this helper route to suggest values for archive.threads.bucket in Advanced Settings.
GET /api/connections/aws/{name}/buckets
AWS connection bucket listing response fields
Foundry folder scope endpoint
Read one folder of a saved Palantir Foundry connection. The route is used to drill into projects and folders before choosing a migration scope. It reads the folder’s direct child folders and counts Workshop modules and datasets anywhere beneath it;truncated marks counts that are lower bounds, and note explains why
the result is partial. Cost is one Foundry HTTP request per page of each folder walked,
bounded to about seven seconds; at most two walks run at once per connection, and the
same person’s result is cached for one minute.
Foundry estate report endpoints
These endpoints expose the stored crawl report used by the Foundry connection menu and the Context Graph node panel. They read the saved inventory and do not call Foundry. The caller must be able to see the named connection; an unavailable or invisible connection returns404.
The
POST body selects one format:
The
GET response’s data fields are:
The
POST response’s data fields are:
Connection registry and PAT-capability behavior
These routes live under/api/connections/... and back the Connections UI.
Genesis treats auth types pat, api_token, and api_key as PAT-class saved
credentials. When auth_type is omitted, PAT-style fields such as
access_token are still treated as PAT-class for policy enforcement.
For a Google Workspace connection, setting, changing, or removing
locator.workspace_domain requires manage_all_connections; create or update
requests from other callers return HTTP 403, even when they can manage that
connection. See Google Workspace setup
for how the domain controls Drive sharing.
Connection form help endpoint
The Connections page and dashboard chat form use this endpoint to answer questions about the selected provider and sign-in method. It requires an authenticated caller. Answers are cached for six hours by form and conversation; a cache miss calls the fast model, with the regular chat model as fallback if the fast model fails. The endpoint is limited to 20 requests per user per minute and 6 per user per 10 seconds; excess requests receive HTTP429.
The response is
{"success": true, "data": {"answer": "..."}};
answer is an empty string when Genesis cannot provide an answer.
Connection AI provider endpoints
These laptop-mode routes list AI available through saved connections and let a person choose whether Genesis uses it.GET /api/connections/ai-providers
returns one entry per connection that brings AI the caller can switch to,
including Snowflake Cortex. Entries include provider, label,
source_connection_id (<type>.<name>), chat_models, embedding_model,
configured, active, reason, and sign_in_required. A Cortex entry that
requires Snowflake OAuth reports sign_in_required: true; choosing it opens the
browser sign-in before configuration is applied.
Activating replaces the current chat provider. Choosing
chat_and_embeddings also switches embeddings and can re-index existing
content; chat_only leaves the embedding provider unchanged. not_now declines
the offer. The response’s data includes success, message, and optional
warning_message.
On Genesis Desktop, the per-connection offer includes only the provider recorded
by Desktop; attempts to select another provider are refused with HTTP 403.
The connection itself remains usable for its other supported features.
Snowflake also exposes restricted_callers_rights in the connection registry
when Genesis runs in SPCS. That auth type stores no credential: its only field
is an optional, non-secret role, the Snowflake role each caller’s-rights
session runs as. It is not PAT-class. Saving it sets
privatelink_same_account_rcr: true on the locator. POST /api/connections/test
and POST /api/connections/{connection_type}/{name}/test return an advisory
when RCR is validated outside SPCS because the SPCS caller token is required.
Snowflake also exposes workload_identity for AWS workload identity sign-in.
The registry offers workload_identity_provider (default AWS) and the optional
workload_identity_role_arn; no password, token, or key is stored. Only callers
with manage_all_connections can create or change this runtime-identity mode.
See Snowflake Workload Identity
for the service-user setup, optional assumed-role flow, and supported use.
BigQuery exposes application_default in its auth_types map for
Application Default Credentials (Runtime Identity). The registry removes
this auth type for callers without manage_all_connections, and the create,
update, and test routes reject it for those callers. An update is also rejected
when it transitions an existing connection into or out of this mode. See
Connections — BigQuery for the
stored fields and runtime credential behavior.
For databricks_lakebase, the registry exposes app_identity only in a
Databricks App and only to callers with manage_all_connections. Create,
update, and test operations reject non-admin callers, including updates that
transition a connection into or out of this shared runtime identity. See
Connections — Databricks Lakebase connections
for the target endpoint and credential rules.
For Azure DevOps, the pat entry in auth_types includes
principal_fields: ["pat"]. This declares the PAT field that users may bind
through the personal credential endpoints
when a shared Azure DevOps connection enables personal_credentials.
An auth type may include an availability object with status and message.
The Connections UI keeps that auth type visible but disabled and displays the
message. The API is authoritative: POST /api/connections returns 400 when a
request names an unavailable auth type, while POST /api/connections/test
returns success: false with the same message. Any non-empty availability
marker means the mode is not selectable; an auth type without the marker remains
available.
The palantir_foundry registry entry uses this marker for auth_type: "oauth2"
with status: "coming_soon" and message Coming soon — contact Genesis to
enable. In a Databricks App, the same marker disables BigQuery
application_default, AWS and MWAA irsa, MWAA snowflake_workload_identity,
Snowflake workload_identity, and Snowflake restricted_callers_rights, with a
mode-specific message. The Databricks App also refuses AWS or MWAA assume_role
when access_key_id is missing, since that would use the App host’s credentials.
These refusals apply to create, update, test, and saved-connection use; UPDATE
also checks the effective stored auth type when the locator omits auth_type.
See
Connection mode chooser
for the alternatives offered for these modes. Palantir Foundry’s selectable
personal_token mode stores a non-secret base_url and a secret token. See
Palantir Foundry connections
for the UI fields and Palantir Foundry
for the connector tools.
Agent discovery follows the same policy: connections_action LIST_TYPES
omits unavailable auth types, and HELP does not propose them. This includes
the Databricks App restrictions above and registry modes marked unavailable
such as coming_soon.
Create and update requests enforce External Secrets reference authorization.
For a named test of an editable saved connection, a stored secret reference may
be reused when non-secret settings are unchanged. If those settings change, the
caller must own or be allowed to manage the secret to test it with the new settings.
When Genesis runs as a Databricks App,
/api/connections/registry omits the
Databricks pat auth type for every caller and offers
databricks_app_user (Signed-in Databricks user) for App-forwarded user-token
SQL. Outside a Databricks App, the registry omits databricks_app_user because
that runtime cannot provide the forwarded token. Databricks PAT connections
are refused on create, locator updates, saved-connection tests, and auth-mode-only
updates that would make a stored PAT usable inside the App; previously saved
legacy Databricks rows that contain raw tokens cannot be used. See
Connect to Databricks — Choose an authentication
mode
for supported alternatives and the signed-in-user SQL boundary.
| POST | /api/connections/export-bundle | Export selected saved connections (with secrets) as an encrypted .genesis-bundle file. | Requires manage_all_connections. |
| POST | /api/connections/import-bundle/preview | Decrypt a bundle and return a dry-run preview without applying changes. | Requires manage_all_connections. |
| POST | /api/connections/import-bundle/apply | Import connections from an encrypted bundle. | Requires manage_all_connections. |
Connection test response fields
POST /api/connections/test and
POST /api/connections/{connection_type}/{name}/test return a
ConnectionTestResponse with the test result in data:
An unsaved-credentials test does not update
last_seen_working_at. The UI can
offer the remedy as an explicit retry for unsaved form values; callers must
apply it only with the user’s choice. A saved-connection test returns the
remedy for the caller to display, but does not change the saved connection.
The status code is diagnostic metadata from the probe, not the HTTP status of
the Genesis API response. For example, a failed credential check can return
data.success: false with data.status_code: 401, while a transport failure
has no upstream response and returns data.status_code: null.
POST /api/connections and PUT /api/connections/{connection_type}/{name}
accept additional_hosts as a list of up to four provider-allowed bare host
authorities. The field is returned on connection list and detail rows.
They also accept environment; it is returned on connection list and detail
rows. Omit it on PUT to keep the current label, or send an empty string to
clear it.
In Snowflake Native App / SPCS, a saved connection’s locator can include
uses_privatelink: true to mark its own endpoint hosts as reached through the
customer’s PrivateLink integration. A host marked this way is excluded from
public External Access rules for every connection that names it; hostnames
containing .privatelink. are treated as private without the flag. When all
required endpoints are private, no External Access approval is needed. The
flag cannot be enabled outside Snowflake Native App / SPCS.
For type: "mcp", the locator can also include these fields:
POST /api/connections/mcp/snippet/parse
Read a pasted Claude Code .mcp.json server entry without saving it or
contacting the named server. The request can contain a complete mcpServers
object, one named entry, or a bare server object. The parser accepts at most one
server and limits text to 64,000 characters.
The response is
McpSnippetParseResponse:
Refusals are returned as ordinary
200 responses so the Connections UI can
explain them. Examples include invalid JSON, multiple servers, unsupported
stdio transport, environment-variable references, and unusable headers.
The registry includes the outbound MCP Server connector (type: mcp in
connection requests, category tools). Its supported auth_types are
none, bearer_token, oauth_client_credentials, and user_oauth.
user_oauth accepts optional inline OAuth endpoints because Genesis can fill
them from MCP metadata discovery and dynamic client registration. Creating or
updating an MCP connection discovers and registers its remote tools; deleting
it removes those tools. Interactive OAuth initiation is limited to the
connection creator or an administrator because the resulting grant is shared
by the connection’s agents.
When the PAT gate blocks one of these routes, Genesis returns 403 with:
Your role does not allow PAT-based tool connections. Use OAuth instead, or ask an admin to enable PAT capability for your role.
Outpost API
These endpoints administer customer-run Outposts and back the connection form. Every route requires authentication. Administration routes requireaccess_config_panel; the route-lookup and choices endpoints require
authentication only.
In the
/api/outposts response, each Outpost not yet issued its own key has a
tunnel_key_warning (string or null): it cannot sign in until the key is issued,
and the warning says how. It is null once the Outpost has its key.
The response’s data.unavailable_reason is a string when the Snowflake Native App has no
Outpost tunnel endpoint and null where Outposts can be used.
The status response includes reachable, diagnosis (state, cause,
message, and fix), routes, and tunnel_key_warning when applicable. Each
route reports its host, port, using connections, and any refusal. A route
withheld because multiple Outposts claim the same host name has cause
host_conflict; Genesis leaves that host unrouted. unproven means Genesis
received a control answer without a valid proof from that Outpost’s key and did
not use the answer.
When the Outpost’s /health reports a release version, status includes it as
version; earlier releases and status responses without a health result return
null.
The route-lookup responses return
data.outpost as the selected Outpost name or null.
To route an individual connection, include its Outpost name in the connection
locator’s optional outpost field. Rows returned by GET /api/connections
also include outpost_route when a live route applies: outpost,
routed_by (chosen or pattern), and the matching pattern when routing
came from a host pattern. Other connection response routes return this field as
null.
Connection visibility rules
Genesis applies these rules before returning connection list or detail payloads (routes that reference “standard connection-visibility rules”):
If Genesis cannot load access grants for a shared connection, it treats the connection as not visible (fail closed). Credential resolution for
personal connections follows the underlying secret’s normal owner, administrator, and RBAC access checks; other unauthorized callers receive a permission error instead of resolved secrets. For Genesis Desktop’s personal-connection behavior, see Personal vs shared connections.
GET /api/connections
GET /api/connections returns FilteredConnectionListResponse. The data[]
array contains only rows matching the active search, category, owner,
scope, and auth filters. Filtering and sorting are applied after visibility
rules, so callers never receive rows they are not allowed to see.
The response also includes total_visible, the number of visible rows before
active filters, matched_count, the number of rows in data[], and facets.
facets.owners[] and facets.auth_types[] contain value, label, and
count for the full visible set before active filters. Use these facets to
populate stable filter choices and counts without making a separate request.
Connection list and detail responses do not return locator credentials. Fields
whose names identify secrets are represented by redacted placeholders;
credential values embedded in URLs, connection strings, DSNs, or other locator
text are masked while the remaining text is preserved. A secret reference is
returned by name only when it resolves to a stored secret this connection may
use; otherwise the reference-shaped value is redacted. This applies even when
the caller can view other sensitive connection metadata; it does not change the
stored locator used to connect. The same redaction applies to per-user OAuth
field values included in a connection response. A read-back redaction marker
submitted unchanged to an update leaves the stored credential unchanged.
For Databricks service_principal connections, locator.oauth_scope is
non-secret and remains visible in these responses. See Databricks authentication
modes
for its accepted format.
Resolving owner, creator, and updater display names for an authorized response
uses one targeted batched user lookup and may query the identity store.
Legacy database connections marked hidden=true in CUST_DB_CONNECTIONS are omitted from data[] unless include_hidden=true and the caller has manage_all_connections. The virtual System Snowflake connection uses the separate AppConfig flag connections.hide_system_snowflake; when that flag is true the row is omitted unless include_hidden=true for an admin caller.
Connection rows in list responses can also include scoped-default metadata:
GET /api/connections/system-snowflake/hidden
Returns SystemSnowflakeHiddenResponse with data.hidden (boolean) reporting the current hide state for the virtual System Snowflake SPCS-token connection.
POST /api/connections/system-snowflake/hidden
Request body (SystemSnowflakeHiddenRequest):
Returns
SystemSnowflakeHiddenResponse with data.hidden set to the persisted state after the write. Genesis stores the flag at connections.hide_system_snowflake in AppConfig (not in CUST_DB_CONNECTIONS).
PUT /api/connections/{connection_type}/{name}
Genesis accepts partial update bodies. These scope-related fields apply on update:
An update that includes
locator performs a live connectivity check before the
request is committed. A failed check returns a validation error and leaves the
saved connection unchanged; an update that changes only metadata does not need a
live connection attempt. The agent-facing update action documents how conflict
resolution selects the credential used for its check.
POST /api/connections/{connection_type}/{name}/rename
Rename a saved connection without changing its type. Authorization follows the
owner and sharing rules in Connections.
The route does not rename legacy connections or the protected system Snowflake
connection. A successful rename carries the saved credentials, sharing, defaults,
and connection-linked settings to the new name. For user-facing effects and
follow-up work, see Rename a saved connection.
Request body (ConnectionRenameRequest):
Returns
ConnectionRenameResponse: success (true), data (the connection
under its new name), and notes (an array of follow-up messages). See Rename a
saved connection for the
follow-up work those messages identify.
Connection activity endpoint
GET /api/connections/{connection_type}/{name}/activity
Lists recorded statements run on the selected connection and attributes each
statement to the user and credential mode that ran it. This endpoint requires
manage_all_connections.
The response is
ConnectionActivityResponse: success plus data, an array
of ConnectionActivityItem objects:
The connection match checks both the bare name and the qualified
<connection_type>.<name> form, case-insensitively. Connections of different
types that share a name can therefore appear together; inspect each item’s
connection_id. The call performs a filtered activity-table scan and an
anchor lookup, so its scan cost grows with recorded activity.
Google Workspace agent mailbox
These routes manage the opt-in mailbox setting for a shared Google Workspace connection. They requiremanage_all_connections; other connection types return
404. See Google Workspace setup
for assignment, OAuth, and Gmail/Calendar behavior.
GET /api/connections/{connection_type}/{name}/agent-mailbox
Read the current setting. The response’s data includes enabled, mailbox,
signed_in_user_id, signed_in_label, agent_id (the agent picked for the
mailbox, or null when the connection’s roles decide), services (the tool families
it was turned on for: gmail, calendar and drive; a setting turned on before
Drive lists gmail and calendar only, and PUT records all three), wake (what may
wake the agent with no person asking: {"mail", "invites", "meeting_start", "comments"} booleans, all
false until an admin sets them, null when off), status (connected,
reconnect_needed, or null when off), and the identity and timestamp of the last
setting change. author_binding is ready when the connected mailbox sign-in has recorded
consent to both the Drive Activity and directory read-only scopes; it is
reconsent_needed when comments wake the agent but those scopes are not recorded, or the
grant has no recorded scopes. It is null when comments do not wake the agent or the
mailbox sign-in is not connected. See
Google Workspace setup.
PUT /api/connections/{connection_type}/{name}/agent-mailbox
Turn on the agent mailbox, or pin it to a different connection grant. The route
resolves the selected User OAuth grant and reads the Gmail profile to verify and
store its mailbox address; the connection must be shared, User OAuth, and have its
Gmail option enabled.
Returns the updated agent-mailbox view.
400 means the connection is ineligible,
the grant cannot be resolved, Gmail could not confirm its address, or agent_id
is not a registered agent; 403 means
the caller lacks manage_all_connections; 404 means the connection is missing
or its type is not google_workspace.
DELETE /api/connections/{connection_type}/{name}/agent-mailbox
Turn the setting off and return the updated view. Gmail and Calendar then resolve
credentials per caller again. Requires manage_all_connections; returns 404 if
the connection does not exist.
PUT /api/connections/{connection_type}/{name}/agent-mailbox/agent
Pick or change the one agent the mailbox serves. Body: {"agent_id": "<agent id>"},
a registered agent’s exact id. That agent alone may then use the mailbox, whatever
roles other agents hold. Audited as connection.agent_mailbox_agent_set, naming the
new and previous agent. 400 when the mailbox is off or the id is not an agent;
403 without manage_all_connections.
DELETE /api/connections/{connection_type}/{name}/agent-mailbox/agent
Remove the picked agent: the connection’s roles decide again. Audited the same way.
Waking is turned off with it (audited as below). 400 when the mailbox is off; 403
without manage_all_connections.
PUT /api/connections/{connection_type}/{name}/agent-mailbox/wake
Choose what wakes the mailbox’s agent with no person asking. Body:
{"mail": bool, "invites": bool, "meeting_start": bool, "comments": bool}; an omitted kind
is false, and a value that is not a JSON boolean, or an unknown key, is refused with 422.
comments wakes the agent when a Docs, Sheets or Slides comment tags the mailbox or replies
in a comment thread it is in.
A woken turn runs as the picked agent, so turning any kind on needs an agent picked,
and mail needs the mailbox turned on for Gmail, invites and meeting_start for
Calendar, and comments for both Gmail and Drive. Turning the mailbox off, removing its
agent or switching it to another agent turns waking off, and pinning another address resets
it. Audited as connection.agent_mailbox_wake_set, naming the new and previous kinds and the
agent. Nothing wakes an agent unless the server’s agent_mailbox.intake.enabled switch is
on too; then mail and comments are read by the mailbox poller every
agent_mailbox.intake.poll_seconds, within the per-mailbox wake caps
(agent_mailbox.intake.wake_burst, wake_hourly, wake_daily). 400 when the mailbox is
off, no agent is picked, or a kind’s service is not turned on; 403 without
manage_all_connections; 422 for a body that is not booleans.
Personal credential endpoints
Personal credentials are per-user principal bindings for shared connections. They are controlled by the connection’spersonal_credentials policy:
disabled (default), optional, or required. The authentication mode must
declare the principal fields that users may provide. These endpoints never
return secret values; responses contain scrubbed binding metadata such as
user_id, status, principal_label, updated_at, and
is_current_user.
GET /api/connections/{connection_type}/{name}/credentials
Returns ConnectionPersonalCredentialsResponse with data as the visible
binding rows. A regular user receives their own binding; a caller with
manage_all_connections can review bindings for the shared connection.
PUT /api/connections/{connection_type}/{name}/credentials/me
Request body:
The route binds or replaces the authenticated user’s principal and returns
ConnectionPersonalCredentialResponse with scrubbed binding metadata.
DELETE /api/connections/{connection_type}/{name}/credentials/me
Revokes the authenticated user’s binding and returns GenericResponse.
DELETE /api/connections/{connection_type}/{name}/credentials/{user_id}
Revokes the specified user’s binding and returns GenericResponse. The user may
target only their own binding unless they have manage_all_connections.
Scoped default response fields
The scoped-default routes returnConnectionDefaultsResponse with data:
GET /api/connections/{connection_type}/defaults
This route returns
ConnectionDefaultsResponse.
PUT /api/connections/{connection_type}/{name}/defaults/user
This route returns the updated
ConnectionDefaultsResponse.
It returns 400 when the target is a Databricks connection without a SQL
warehouse; add its warehouse HTTP Path before setting it as a default.
DELETE /api/connections/{connection_type}/defaults/user
This route returns the updated
ConnectionDefaultsResponse.
PUT /api/connections/{connection_type}/{name}/defaults/roles/{role_name}
Requires
manage_all_connections. The target connection must be shared, non-legacy, and already accessible to role_name.
Returns 400 when the target is a Databricks connection without a SQL
warehouse; add its warehouse HTTP Path before setting it as a default.
DELETE /api/connections/{connection_type}/defaults/roles/{role_name}
Requires
manage_all_connections.
POST /api/admin/demo-data/purge
This route accepts no query or body fields.
POST /api/admin/demo-data/purge hides every bundled demo legacy database
connection and asks Twin to evict that connection’s demo graph and search
entries. The bundled set is the union of Twin-managed demo databases and
locally seeded SQLite demos, including baseball_sqlite, formula_1_sqlite,
hcls_demo_1_sources, credit_card_sqlite, asset_mgmt_sqlite, and
lab_source_data.
Genesis returns
403 when the caller lacks manage_all_connections.
Connection bundle export / import
These routes support cross-instance migration of saved connections with their secrets. Bundles use AES-256-GCM encryption; the passphrase must be at least 16 characters. Bundles expire 24 hours after export. Uploads larger than 10 MiB return413. The Connections guide
covers the import workflow and auth-mode inference for bundle entries that omit
auth_mode.
POST /api/connections/export-bundle
Returns
200 with Content-Type: application/octet-stream and
Content-Disposition: attachment; filename="connections.genesis-bundle".
Returns 400 when the passphrase is too short, a requested connection is not
found, one or more selected connections fail to export (message lists failed
type.name ids), or there are no connections to export. Returns 403 when the caller
lacks manage_all_connections.
POST /api/connections/import-bundle/preview
Multipart form upload.
Returns
ConnectionBundlePreviewResponse with:
Returns
400 on decryption failure, expired bundle, or invalid format. Returns
413 when the uploaded file exceeds 10 MiB. Returns 403 when the caller
lacks manage_all_connections.
POST /api/connections/import-bundle/apply
Multipart form upload.
Returns
ConnectionBundleApplyResponse with:
Returns
400 on decryption failure, expired bundle, invalid
conflict_resolutions JSON (including keys or values outside "skip" /
"overwrite"), or per-connection apply errors surfaced as
ValueError. Returns 413 when the uploaded file exceeds 10 MiB. Returns
403 when the caller lacks manage_all_connections.
Health endpoints
GET /api/health
Readiness-oriented health check. Returns 200 only after startup has reached
100% progress; returns 503 with startup progress while the server is still
initializing. For pure liveness without readiness gating, use
GET /api/health/live.
When the server is ready but impaired (for example agent warmup did not finish,
or embedded Tailscale egress is down), Genesis still returns HTTP 200 so
load balancers and SPCS keep routing traffic. In that case status is
"degraded" and degraded_reason names the impairment for operators. A metrics
service that fails to start is reported here too; billing close, the usage upload,
and Context Graph scan counting remain stopped until it starts. If it starts without
a local store for billing counts, billing close and the usage upload remain stopped.
GET /api/health/ready
Kubernetes-style readiness probe. Returns 200 with ready: true when the
static assets check and error-rate check pass; otherwise returns 503 with the
same values in the response detail. The error-rate check passes when the
current rate is below 50 errors per minute. Genesis measures that rate over at
least one full minute after startup, so during the first 60 seconds it uses a
60-second denominator instead of treating the short uptime as a full-minute
rate.
GET /api/health/startup
Startup progress endpoint used by the web UI. Always returns 200 with the
current initialization state. When startup reaches 100%, the response includes
degraded and degraded_reason (same semantics as GET /api/health) so
clients can surface a ready-but-impaired state.
GET /api/version
Returns the live runtime version, the Genesis release carried by the build, and
changelog and post-upgrade-advisor payloads used by the web client’s upgrade
notice modal and header About Genesis menu. Release notes, changelog details,
and the advisor key on the Genesis release version. On Genesis Desktop, version
is the desktop app version, while genesis_version identifies the Genesis
release. Genesis sets Cache-Control: no-cache on this route so the UI can poll
while Eve generates a personalized upgrade summary.
POST /api/upgrade-summary/regenerate
Clears the cached summary for the current runtime version and queues a fresh Eve
post-upgrade-advisor run. Requires access_config_panel.
POST /api/upgrade-summary/refresh-inventory
Force-rebuilds the cached install inventory snapshot used by the advisor (bots,
Apps, flows, blueprints, connections). Requires access_config_panel.
Runtime health and observability endpoints
These routes are mounted under/api/health/... and back low-overhead runtime
diagnostics used by Pulse and other operator tooling.
Genesis also writes ROUTE-HITS INFO log records with cumulative request counts
by HTTP method and matched route template. The scheduled logger runs every 10
minutes and reports counts since process startup when requests have been counted
since its previous run. Counting requires http.enable_request_logging (default
true); the records are visible only when LOG_LEVEL admits INFO, and
LOG_LEVEL defaults to WARNING. No record in the logs therefore does not mean
that a route received no traffic.
GET /api/health/detailed
This route returns the broader detailed runtime snapshot used by operator
tooling. Its nested thread_service block is intentionally non-blocking:
Genesis reads in-memory metrics and worker process liveness without issuing a
live worker RPC.
The top-level snapshot also includes degraded and degraded_reason with the
same semantics as GET /api/health. When no worse condition is already
reported, a ready-but-degraded startup sets top-level status to "degraded".
The errors.error_rate_per_minute value is calculated over at least one full
minute after startup. During the first 60 seconds, Genesis uses a 60-second
denominator so a short burst of startup errors does not appear as an inflated
full-minute rate. The detailed health status uses this rate for its degraded
and unhealthy thresholds, and the readiness probe uses it for its 50-errors-
per-minute check.
In auth-enabled deployments, callers need access_config_panel. Anonymous
callers receive 401; callers without config-panel access receive 403 with
detail Config panel access required. In no-auth dev mode the route is open.
child_processes field in /api/health/detailed
The detailed health response includes an in-memory snapshot of child-process
supervision. supervised is true only when the supervision job is configured
to run in a Databricks App: jobs.child_process_supervisor.enabled is enabled
and jobs.child_process_supervisor.interval_seconds is positive. The
children object is keyed by child name and reports state for children seen by
a supervision pass.
The snapshot is process-local and performs no child-process RPC. Configure the
job and restart budget in Advanced Settings — Child process supervisor.
Genesis no longer returns a filtered
thread_service block for callers
without config-panel access. Hard denial supersedes the legacy
sensitive-field filtering path.thread_service fields inside /api/health/detailed
Selected nested thread_service metrics
rpc_metrics.totals fields
rpc_metrics.rolling fields
rpc_metrics.actions fields
Each key is an RPC action name (for example run_compression). Values are per-action counter buckets.
Pulse uses these per-action slow counters to attribute long
run_compression work separately from read, write, and search RPC latency when deriving the Server tile severity.
boot_metrics.state fields
search_metrics.totals fields
loaded_threads fields
GET /api/health/threads
This route does not accept query parameters.
Thread diagnostics response fields
top_families[] item fields
threads[] item fields
GET /api/health/thread-service/ready
Tokenless operational readiness probe for the thread-service worker. Genesis
reads the same non-blocking in-process snapshot used by the thread_service
block in GET /api/health/detailed and returns only enabled and active —
no live worker RPC.
Use this from CI, ingress startup checks, or other automation that must wait
for the external worker to come up without config-panel credentials. For full
thread-service diagnostics, use GET /api/health/detailed (requires
access_config_panel when auth is enabled). For a live health() round-trip,
use GET /api/health/thread-service.
In auth-enabled deployments, this route is tokenless (same treatment as
GET /api/health, GET /api/health/live, and GET /api/health/ready).
GET /api/health/thread-service
This route performs a live health() round-trip against the thread-service
worker. Use it for deploy verification or on-demand stuck-worker debugging when
you want a real IPC probe rather than the cheaper snapshot included in
/api/health/detailed or GET /api/health/thread-service/ready.
The timeout is fixed at 10.0 seconds and is returned as timeout_s.
In auth-enabled deployments, callers need config-panel access for this route.
Without it, Genesis returns
403 Forbidden instead of a filtered response.GET /api/health/server-panel-telemetry
This route returns the Pulse Server runtime snapshot. It is cache-backed by
default and omits the heavier health block used by broader telemetry flows.
When server telemetry is disabled, the response returns
enabled=false,
schema_version=1, and reason="disabled_by_env".
In auth-enabled deployments, callers need
access_config_panel for this route.
Anonymous callers receive 401; callers without config-panel access receive
403 with detail Config panel access required. In no-auth dev mode the route
is open.Server-panel telemetry top-level fields
runtime.threads fields
runtime.async_dispatch fields
The Pulse Server snapshot reports the event-loop-native prompt dispatcher under
runtime.async_dispatch. It is the prompt dispatch path used when a bot has a
registered WebSocket adapter; requests without one use the synchronous fallback
described in Chat endpoints.
GET /api/health/slots
Return abridged agent slot usage for authenticated callers. This route
intentionally omits user identity fields. For the full payload used by the
Pulse CWA Monitor / Slots view, call GET /api/admin/slots instead.
In auth-enabled deployments, anonymous callers receive 401. Tokenless
load-balancer probes should use GET /api/health or GET /api/health/ready
instead. Returns 503 when AgentSlotService is not initialized.
Slots response top-level fields (/api/health/slots)
acquired_slots[] fields (/api/health/slots)
This route does not return
user_id, user_display_name, or thread_purpose.
waiting_threads[] fields (/api/health/slots)
This route does not return
user_id, user_display_name, or thread_name.
GET /api/admin/slots
Return full agent slot usage, including user identity fields, for operator
tooling such as the Pulse CWA Monitor / Slots page. The operational shape
matches GET /api/health/slots, but acquired and waiting entries also include
identity metadata.
In auth-enabled deployments, callers need access_config_panel. Without it,
Genesis returns 403 Forbidden with detail Config panel access required. In
no-auth dev mode the route is open. Returns 503 when AgentSlotService is
not initialized.
Slots response top-level fields (/api/admin/slots)
acquired_slots[] fields (/api/admin/slots)
Includes every field from the abridged /api/health/slots response plus:
waiting_threads[] fields (/api/admin/slots)
Includes every field from the abridged /api/health/slots response plus:
Memory trace logging
Genesis emits periodic memory-trace log lines when the server starts withGENESIS_MEM_TRACE set to a truthy value (1, true, yes, or on). The
monitor is off by default and imposes zero runtime cost when disabled.
A dedicated daemon thread (MemoryMonitor) runs on the main Genesis process
only (not the thread-service worker). It emits trace lines every 60
seconds at WARNING so they surface in SPCS log mirrors and in worker
processes whose GENESIS logger level is WARNING.
Process-level trace lines (every 60s):
MEM OS:— main-process RSS, Python block count, thread count, open-file count, and (on Linux) cgroup memory trajectory.MEM_LEAK_SCAN/MEM_LEAK_SUSPECT— type-count leak heuristics every 10 minutes.
GENESIS_MEM_TRACE is on):
Microapp processes may run under a dedicated Linux user
(microapp_<suffix> via sudo -u on SPCS). Their RSS is not included in the
main MEM OS line. Instead, Genesis polls each running app’s PID, sums the RSS
of that process and its descendants, and emits one line per app plus a summary:
RSS is read via
psutil when permitted; on cross-user AccessDenied (typical
for sudo -u apps on SPCS), Genesis falls back to the world-readable
/proc/{pid}/statm resident-page count. Exited or unreadable processes are
skipped without treating EPERM from os.kill(pid, 0) as dead.
These lines appear in the Pulse log buffer and are downloadable via
GET /api/logs and GET /api/logs/download. Filter with the log WebSocket
search field (for example MEM_APP).
Scheduler and background job endpoints
These routes are mounted under/api/scheduler/.... The background-job routes
below back Pulse -> Jobs rather than the prompt-job builder on the Scheduler
page.
GET /api/scheduler/jobs returns success and jobs. POST job-action
responses return success and message.
Prompt-job responses include this display field:
On a white-labelled installation, the built-in monthly audit’s returned prompt
uses the configured product name, but the saved job prompt is not rewritten by
this display substitution. See Branding.
Prompt-job expiration fields
The prompt-job routes under/api/scheduler/prompt-jobs expose the schedule’s
expiration and indefinite-run intent. GET responses include these fields in
each job, and POST create or PUT update requests pass the expiration values
inside the trigger object:
For recurring cron and interval schedules, use either a future
end_date or
perpetual: true with a non-empty perpetual_reason; do not send both. The
same validation applies when updating an existing job, including an update
that changes only the prompt or name. Invalid expiration input returns HTTP
400 with the validation message in the error response. Pause, resume, run-now,
and delete operations do not require new expiration fields.
Successful prompt-job changes are also recorded in the Admin Audit Log. See
Admin audit log for retrieval and Process Scheduler
Tools
for attribution and the job fields recorded.
GET /api/scheduler/prompt-jobs/history and
DELETE /api/scheduler/prompt-jobs/history can return HTTP 503 while the
scheduler restores run history after a restart. Retry after the restore
completes.
Prompt-job requests also accept busy-thread settings. Create requests may omit
them to use grace_seconds=60 and interrupt=true; updates that omit either
field keep that setting unchanged. Every job response includes both fields.
grace_seconds is an integer from 0 to 600; when interrupt=true, it is
how long a due run waits for the current turn before stopping it (0 stops it
immediately). With interrupt=false, the job waits until the thread is idle
regardless of the grace value. See Runs into a busy
thread
for the behavior while a run waits.
Prompt-job routes use manage_scheduler for all jobs or
manage_own_scheduler for the caller’s jobs. People who may open a job’s thread
can also see its job, history, and run output. The additional actions available
to those thread viewers follow Own-item management permissions.
Lists, history pages, summary totals, and run details are scoped before
pagination; looking up a job or run outside the caller’s access returns 404.
Job responses include created_by, which is null for jobs created before
creator tracking. Clearing all jobs’ history requires manage_scheduler.
Background job item fields
Notable FastAPI interval jobs surfaced by
GET /api/scheduler/jobs include
twin_scan_cost_sync (Twin Scan Cost Sync), which periodically syncs Twin
scan LLM spend into SCAN_USAGE_FACTS for the Cost & Usage cube. Control it
through App Config (not /api/config/user-config):
agent_review_classifier (Agent Review Classifier) runs the scheduled
turn-classifier pass when both agent_review.enabled and
jobs.agent_review_classifier.enabled are true. Control these
settings through App Config (not /api/config/user-config):
After classification, each scheduled tick also runs a settlement-only,
database-only pass for threads with unsettled task facts that are now dormant.
This closes a trailing task that was graded while its thread was still active;
active threads remain unsettled until they meet the configured dormancy window.
The pass makes no LLM call, and its attempts are separately bounded by
jobs.agent_review_classifier.max_threads_per_run.
Internal scheduler subprocess endpoints
These routes are mounted under/api/internal/scheduler/... and are intended
for the scheduler MCP subprocess to run dataset, dashboard, and Flow work inside
the main FastAPI process. They are not part of the interactive client API.
Requests require an
Authorization header with the internal bearer token:
Bearer <internal-token> (the same token used by other
/api/internal/... routes that accept the ephemeral internal MCP token).GET /api/internal/scheduler/missed-job-grace-seconds
Response model InternalMissedJobGraceResponse:
POST /api/internal/scheduler/flows/{flow_id}/run
Response model
InternalFlowRunResponse:
Mission Value endpoints
These routes return an instance-wide report over persisted mission, TODO, and BlueprintRun history. A report uses a UTC half-open cohort (from_ts included,
to_ts excluded), may cover at most 365 days, and refuses cohorts with more
than 10,000 candidate projects. Aggregate metrics cover the complete selected
cohort; limit and offset paginate only the mission drilldown. The operation
performs multiple persistence reads per request.
GET /api/mission-value query fields
GET /api/mission-value response fields
metrics fields
Mission detail fields
Eachmissions[] row includes project_id, project_name, work_type,
work_type_source, successful, quality, quality_reasons, started_at,
output_at, cycle_seconds, lead_seconds, human_wait_seconds,
manual_baseline_seconds, and saved_work_seconds. quality is exact,
estimated, or incomplete; incomplete observations are counted in quality
but are not included in observed_count or aggregate metrics.
PUT /api/mission-value/baselines request fields
The request replaces the whole value; it does not merge individual items.
The response contains
success and the canonical baselines object. If
GENESIS__MISSION_VALUE__MANUAL_BASELINES is set, the replacement is refused
with 409; malformed payloads return 400. Invalid cohort parameters and an
oversized candidate cohort also return 400. Both routes return 403 when the
caller lacks the required permission.
Metrics dashboard usage package endpoint
This route builds a versioned, counts-only usage package from the local instance’s metrics and retained usage facts. It uses a UTC half-open interval and accepts ranges up to 400 days. Raw-fact reconstruction is available only within the last 90 days; the response carries source and coverage details for each month. The route requiresaccess_pulse_panel when authentication is
enabled.
GET /api/metrics-dashboard/usage-package query fields
The response contains
success: true and a package with schema identifier
genesis.usage_package, schema version 2, generation time, requested range,
hashed instance identifier, deployment metadata, counter cutover, monthly
sections, and coverage notes. Its integrity object names the canonical SHA-256
algorithm and content hash. A hash detects content changes but does not
authenticate the producer.
Each month includes the usage sections, including thread_turns,
governed_writes_executed, context_graph_objects_scanned, and
prover_objects_compared. Scan rows are grouped by scan_mode and
source_type; Prover rows by outcome. Thread turns, executed governed writes,
and Prover objects compared are recorded from the beginning of counter set 2;
months before that cutover report them as unavailable. The package also includes
agent_steps (grouped by step_origin: agent, flow_llm, app_llm, or
sandbox_llm) and context_graph_objects_changed; agent steps and changed-object
counts begin with counter set 3. It also includes voice_seconds, grouped by
source; counter set 4 adds this counter, so earlier months report it as
unavailable. Changed objects
are those added, updated, or removed by a scan; objects only re-confirmed are
not counted as changed. Metrics not yet recorded for an earlier month are
reported as unavailable. tool_calls rows include tool_tier (standard,
premium, or free) and tool_tier_source: provisioner when the install
has Genesis’s tier list, otherwise local for the install’s fallback.
In the monthly billing block, tool_calls and governed_writes_executed
dimensions can also include tool_caller, the source of the call (or, for a
governed write, the caller that proposed it). Values are agent,
scheduled_agent, app_llm, sandbox_llm, flow_llm, external, person,
flow_code, scheduled_flow_code, agent_code, app_code, scheduler, or
other for an unrecognized caller.
Each month also carries a billing block for the whole calendar month,
independent of the requested range. Its status is closed, open,
before_first_close, or unavailable. A closed month reports the locked
lines, closed_at, and close_sha256; late usage appears as adjustments
in the following close. Each line has a field, dimensions object, and
count; adjustment lines also have usage_period. An open month’s lines are
provisional until its monthly close.
Metrics dashboard Activity endpoint
This read returns activity for the local Genesis instance, not every instance writing to a shared metrics store. It requiresaccess_pulse_panel when
authentication is enabled. Each enabled-tracking request runs seven aggregate
queries against the local cost cube; with usage tracking off, it runs none and
returns zero KPIs with empty lists.
GET /api/metrics-dashboard/activity query fields
The response includes
tracking_enabled, retained_from (the oldest retained
raw facts, or null when unknown), kpis, timeseries, tools,
data_sources, and apps. KPI fields are active_runtime_ms, tool_calls,
query_executions, rows_returned, app_opens, and unique_app_users.
Timeseries points include period and values.active_runtime_ms; the optional
cwa_active, cwa_occupied, cwa_waiting, and cwa_max values appear only
for buckets with chat-turn samples. Tool rows report tool_name, nullable
tool_family, tool_calls, active_threads, and active_users. Data-source
rows report a nullable data_source_name, calls, query executions, and result
rows. App rows report app_id, nullable app_display_name, opens, and unique
viewers. retained_from is the timestamp before which a selected range may be
short because raw activity is no longer retained.
Agent review endpoints
These routes implement agent grading measurement: steering-turn classification, estimate-first backfill, scorecard queries, the weakness ledger, annual grading exports, and per-message expectation-met feedback. Classification and grading are advisory-only — nothing in these APIs consults a score to allow or deny an agent action. Classifier and backfill candidate scans include hidden threads. The usual eligibility filters still apply, so threads without human turns or with an autonomous origin are not sent for classification. Analysis routes are inert whenagent_review.enabled is false (default):
Genesis returns 404 for those routes as if the feature were absent. Explicit
message feedback remains available while analysis is disabled, so deployments
can collect user verdicts before enabling analysis. Agent-review reads and
backfill estimate/start require access_pulse_panel when authentication is
enabled.
Scorecard and backfill routes
Routes are mounted under/api/agent-review/....
GET /api/agent-review/export/annual
Returns a Markdown (format=md, the default) or PDF (format=pdf) file
download. Pass bot_id to generate one agent’s sheet; omit it for the fleet
sheet. The annual summary totals are calculated from the union of the covered
days in the stored cycle reports and daily rollups, so a day is counted once
even when cycle windows overlap after a cycle-policy change. The per-cycle
table still lists each stored report, so its rows can repeat covered days; when
that happens, the sheet includes an overlap warning explaining the difference.
Level-history and decision tables resolve human actor ids to the user’s display
name, then email, and finally the raw id when lookup is unavailable. The
system and scheduler actors are rendered verbatim. A failed user lookup
does not fail the export.
Malformed year or unsupported format values return the pinned contract
error shape described below rather than a file download.
Agent-grading contract errors
Domain violations from cycle drafting, nomination decisions, and annual export use HTTP400 or 409 responses with this additive shape:
code remains stable. For example, stale_nomination
means a nomination no longer targets the next level after an intervening level
change; its message directs the caller to reject it or draft a new cycle.
When an agent is demoted or reset, every still-provisional nomination for that
agent is terminally marked rejected by system, with a reject event recorded
for provenance. This system void does not block a new nomination for the same
agent, target level, and cycle: Genesis files the next deterministic attempt id
by appending #2, #3, and so on to the base nomination id. The voided rows
remain in the append-only history. A nomination rejected by a human remains
terminal for that cycle and cannot be re-nominated. Rejecting a stale nomination
is also allowed and does not move the agent’s level fold.
Weakness-ledger advancement is deduplicated by covered calendar day. A newly
drafted cycle advances the ledger only for days not covered by an earlier
stored cycle for that agent, so overlapping cycle windows do not recount the
same corrections or bank clean days twice.
POST /api/agent-review/backfill/estimate
Returns
success, run_id, threads (candidate thread count), and
est_cost_usd (estimated USD cost from prompt sizing and model pricing, no
LLM calls).
GET /api/agent-review/runs
Returns
success and runs (array of run objects).
GET /api/agent-review/scorecard/data
Returns
success, bot_id, granularity, series, breakdown, and
grading_policies_present. Rate fields in series and breakdown are
fractions between 0 and 1 (the web client multiplies by 100 for display).
Each series bucket includes bucket_ts (Unix seconds of the period start).
First-shot rates come only from grading_policy='full' rollup rows;
corrections_only rows never blend into a first-shot figure.
GET /api/agent-review/weaknesses
Returns
weaknesses, ordered by stored status (escalated, open,
resolved) and then last_seen descending within each status. Each weakness
keeps its stored status; display_status is derived from the adoption join.
The coaching_adoption_id field is the adoption behind that display status. It
is null when no coaching applies.
Weakness item fields
Scorecard filter-options response fields
Scorecard series bucket fields
Scorecard breakdown row fields
Each row aggregates the whole requested range for one(workflow_type, grading_policy) pair. Rows are never blended across grading policies.
Agent review run fields
POST /api/agent-review/backfill/{run_id}/start returns 409 when the run
is not claimable (already running or not in estimated status).
Expectation-met message feedback endpoints
These routes are mounted under/api/threads/{thread_id}/.... They persist
per-user thumbs-up/thumbs-down style verdicts on assistant messages for
scorecard hydration and operator review.
Authorization is thread-participant based: Genesis derives bot_id
server-side from the thread (never from the request) and applies the same
thread-access check used by thread read routes. In authentication-disabled
deployments, the resolved system_default_user is allowed consistently with
those reads. Foreign threads return 403.
These routes remain available when agent_review.enabled is false; the flag
controls review analysis, not explicit user feedback.
For
PUT, message_id must identify an assistant answer present in the target
thread. Unknown ids and ids for user messages, tool requests, tool results, or
system messages return 404; tool requests are not feedback targets even when
they render as assistant prose. Genesis trims surrounding whitespace from the
requested id before storing the verdict under the canonical id. DELETE applies
the same trimming, so a caller can retract its existing verdict even if the
message has since been removed from the thread.
PUT /api/threads/{thread_id}/messages/{message_id}/feedback
Returns
success and data (a message feedback item).
Message feedback item fields
DELETE /api/threads/{thread_id}/messages/{message_id}/feedback returns
success and deleted (true when a row was removed).
GET /api/threads/{thread_id}/feedback returns success and items (array of
message feedback items for the authenticated caller only).
User settings endpoints
These routes are mounted under/api/auth/settings and read or update the
caller’s persisted users.settings JSON object. The web client uses them for
per-user preferences such as the default landing page shown when opening Genesis
or clicking the logo.
When authentication is enabled, Genesis resolves settings for the authenticated
user. When authentication is disabled, Genesis serves the persisted
system_default_user row (resolved lazily on first read) so local and no-auth
deployments can still store preferences.
User settings request and response fields
PUT /api/auth/settings
settings may name only these preference keys: default_landing_page,
composer_agent, github_login, git_commit_hide_email, avatar_initials,
blueprint_browser_preferences, and the display preferences timezone,
date_format, time_format, number_format and theme_mode. A request naming any other top-level key is
refused with 422 and nothing is saved, not even its preference keys; the
response names the refused keys. The rest of the settings object holds records
Genesis keeps about the person, such as the groups their identity provider names
(which decide their roles) and their SCIM record, which no client can write.
meeting_accounts is refused with its own message: ask an agent to forget a
meeting account instead.
The object may include personal display preferences such as timezone,
date_format, time_format, number_format, theme_mode, and
avatar_initials. Genesis validates those fields; their accepted values and
defaults are listed in the user_preferences_action reference.
GET /api/auth/settings returns success and data (the settings object).
PUT /api/auth/settings returns success and message.
Git commit crediting also reads these optional per-user keys from settings;
their effect on agent commits is described in
Connections — Crediting the person who asked.
For example, set a GitHub username and opt out of email in commits:
Default landing page setting
The web client stores each user’s preferred landing page underdefault_landing_page. When the key is missing, unknown, or the settings
request fails, the UI falls back to Launchpad (launchpad).
Allowed default_landing_page values:
Blueprint browser preferences setting
The web client stores each user’s Blueprint Library view mode and sort underblueprint_browser_preferences as an object merged through PUT /api/auth/settings.
When the stored object is missing, corrupt, or contains unknown values, the web
client falls back to tile view and Recently modified sort (
updated,
desc). Regex search mode is intentionally not persisted.
User settings example
Read the current settings:Personal access token endpoints
These routes are mounted under/api/auth/pats....
Personal access tokens (PATs) authenticate protected HTTP requests with
Authorization: Bearer gp_.... Genesis treats the PAT as the token owner’s
identity on those HTTP routes. WebSocket endpoints continue to use the
auth-provider-specific bearer or query-token flows documented in their
sections below.Genesis also accepts additional JWT issuers configured in
auth.additional_issuers (a map keyed by a human-readable label; matching
is on each entry’s issuer URL). Each entry requires issuer and jwks_url,
with optional audience (defaults to auth.audience) and identity_source
(sub, the default, or email). When identity_source is email, Genesis
resolves the caller from the token’s verified email — used by OAuth-proxy
identity tokens in dev import workflows. Unknown issuers are rejected; the
token signature is always verified against the selected JWKS.POST /api/auth/pats
With authentication enabled, the caller must be the person’s own sign-in, not a
delegated or machine credential. Genesis returns
403 when the caller is an agent,
system identity, app-only token, or another delegated credential. A PAT is always
owned by the signed-in person; Prover approvals made with that PAT are attributed to
the owner and labelled via personal access token.
PAT response fields
POST /api/auth/pats returns success, message, pat, and token.
GET /api/auth/pats and GET /api/auth/pats/admin return success plus
pats.
Shared PAT record fields
For an MCP-only token,
expires_at is null. Other expired PATs receive an
expired-token refusal with token_expired: true; see Personal Access Tokens
for the recovery guidance.
PAT example
Create a PAT from an already authenticated HTTP client:token value on later protected HTTP requests:
Common PAT status codes
Authenticated data and datasets endpoints
The routes below now explicitly reject unauthenticated callers whenauth.enabled is true.
Thread query-activity endpoint
GET /api/data/bots/{bot_id}/threads/{thread_id}/query-activity
The response is
QueryActivityResponse: success plus data, an array of
QueryActivityItem objects:
Genesis merges durable execution-activity rows with authorized legacy
query-result and dataset-cache fallbacks. Partial source failures are logged
and omitted independently so available rows still return.
Thread query-result endpoint
GET /api/data/threads/{thread_id}/query-results
Connection metadata browsing endpoints
These routes back the Data Explorer connection tree and other callers that need live database metadata (databases, schemas, tables, columns, and sample rows). They are mounted under/api/data/connections/....
Launchpad onboarding intake
These authenticated routes supply the Launchpad’s onboarding cards and land raw files before a plan is proposed. They have no separate permission gate: database reads use connections visible to the signed-in person, Git reads use repositories they may view, and warehouse writes are made as that person./tables takes side (source or target), connection_id, and optional
database and schema. It reads the live catalog as the person: the database
list, schema list, and up to four selected schemas. If no database is supplied,
the connection has no default, and visible databases are available, the
response’s data.connection.database is null, data.tables is empty, and
data.other_databases lists the visible choices; request /tables again with
the selected database to list its tables. /plan takes
source_connection_id, source_tables (array of catalog.schema.table), and
optional documents_folder, without_documents, and source_name; a load plan
also requires target_table. For outcome: "pipeline", send target_schema
(database.schema) and schema_shape instead of a table; schema_example
names the source schema for shape like. The route queries the catalog for the
schemas named by the picks. A pipeline plan also supplies these code destination
fields:
The pipeline’s own directory is created beneath that folder using its source
name. The returned summary’s
code.path is that pipeline directory, while the
approval picks retain the chosen folder.
The draft endpoints take bot_id, thread_id, and card_id; /draft/plan
also takes the opaque landing_receipt returned by /draft/land. Each request
re-reads the thread and accepts only the still-current card for its original
requester. A replaced card returns 409 (stale_card) before landing or
planning; a receipt that does not match the requester, thread, and card returns
409 (onboarding_landing_receipt_invalid).
/draft/land returns the ordinary landing data plus landing_receipt;
/draft/plan returns the normal pipeline plan response.
without_documents is a boolean defaulting to false; set it to true when no
documents will be supplied, which makes the plan ready without a documents
folder. If a folder is supplied, Genesis uses it. The response data mirrors
the chat tools: tables includes the found tables and presented is the card;
plan includes the plan, summary, and presented card. For a pipeline plan,
presented is a bounded summary with kind, outcome, gist,
source_table_count, steps, and ready; the separate approval object keeps
its full kickoff messages and validated start picks. Use approval as the
canonical approval data rather than rebuilding it from the summary. Pipeline
summaries also include code with the chosen repository, connection_id, and
pipeline path; the validated approval.start carries the repository,
connection, and selected folder. One-time load
plans retain their inline card shape.
POST /tables/search takes connection_id, database, and query (default
""), with optional schema, offset (default 0), limit (default 50),
refresh (default false), and schema_counts (default true). It matches
case-insensitively within schema.table, or the full catalog.schema.table
when the query contains at least two dots; an empty query pages all tables.
schema restricts results to one schema. The response includes tables, total
matches, paging fields, per-schema counts when requested, and complete plus
schemas_read/schemas_total to show how much of the catalog was searched. The
person’s schema listing is cached for five minutes; the first search, or one
with refresh=true, reads schemas as that person, up to 400 schemas and a
20-second listing budget. A schema already being read is allowed to finish.
POST /tables/resolve takes connection_id, database, and names, an array
of table names in table, schema.table, or catalog.schema.table form. Its
response separates uniquely resolved names (found), names present in several
schemas (ambiguous), names that could not be confirmed because the listing was
incomplete (unverified), and unknown names; complete reports whether all
visible schemas were searched. Both routes use the person’s own catalog listing
and return 404 with code: onboarding_place_not_listed when the requested
catalog is not in that listing (or is not the registered catalog when no
catalog list is available).
For a bucket-folder pipeline plan, send outcome: "pipeline" and provide
source_kind: "bucket", bucket_uri, and bucket_connection_id alongside the
source snapshot tables and target schema. target_platform defaults to the
snapshot connection’s platform. schema_shape selects existing (the schema’s
tables), document (tables defined by supplied documents), like (tables
copied from schema_example), or propose (tables proposed from the source);
the pipeline maps feeds into tables rather than accepting a target table.
schema_example is required for like; for shape document, provide the
documents defining the schema. The pipeline plan card’s presented response
includes target_schema, target_tables, schema_shape, schema_example,
and dev_database (the target schema’s database). Pipeline plans must also send
pipeline_technology (dbt or snowpark on Snowflake, or declarative-pipeline,
python-job, or dbt-job on Databricks)
and target_environment: "development" (the person’s declaration that the target
database is a development one); a production database is not an allowed pipeline
target. Only bucket sources are accepted; the plan starts
data_onboarding_pipeline when approved. Requests
without outcome: "pipeline" retain the load-plan response and require
target_table.
The bucket picker uses two additional routes:
POST /direction accepts this JSON body:
The server lists the selected folder through the reader and
checks the warehouse connection as the signed-in person; it writes nothing. A
successful response returns
data.direction in the canonical
onboarding_direction schema (version 1) and data.line, the sentence the chat
opens with. The dashboard sends that line as the first message and keeps the
direction beside it as message metadata; the server drops it if the line is
edited or replaced. An unauthenticated request receives 401; Presenter
Controls off or inaccessible connections receive 403, missing connections
receive 404, malformed request bodies receive 422, and picks that cannot be
used to form a direction receive 400 with an actionable error.
GET /buckets returns buckets with each bucket’s uri, name,
connection_id, platform (aws or gcp), and region, plus unlisted
connection ids and reasons. Each visible AWS or Google Cloud connection is
checked in turn; listing costs a connection/client setup and a ListBuckets
request per 1,000 buckets for each connection. Duplicate buckets use the first
connection by id that lists them.
GET /repositories returns repositories with each repository’s
repository (owner/name), connection_id, default_branch, and private
flag, plus unlisted connection ids and reasons. The signed-in person’s visible
GitHub connections are checked in id order. A repository reached through more
than one connection is assigned to the first; a connection that cannot list all
repositories is reported in unlisted while any repositories it did list
remain available. Listing costs one connection-store read, then for each
connection one access check, one sign-in, one GitHub request per 100
repositories, and one organization-list request per organization.
POST /bucket-folder takes uri and optional connection_id. Without an id,
Genesis tries the signed-in person’s connections for that bucket’s cloud in id
order and reports which one read it; each connection tried costs a client setup
and one listing request of at most 1,000 entries. The response has the selected connection,
folder URI, immediate folders, supported CSV/JSON/Parquet files, an
other_files count, and truncated when the listing exceeds 1,000 entries.
It lists metadata only; it does not read the objects. A folder no available
connection can list returns 400; a connection the person cannot read returns
403.
For /tables, a named database or schema omitted from a non-empty listing for
the signed-in person returns 404 with code: onboarding_place_not_listed;
this covers places that do not exist and places the person cannot see. If the
database listing is empty, Genesis still reads the named database, while a named
schema is rejected with 400.
Both raw-data routes take connection_id, database, and a source object.
For Launchpad uploads, set source.kind to upload, with the Launchpad
session_id and an ordered file_ids array. For a Git folder, set source.kind
to git, with repo_id and an optional folder (empty for the repository
root). Upload file IDs must belong to the named Launchpad session. Supported
files are CSV, JSON, and Parquet.
For a pipeline snapshot from a bucket folder, set source.kind to bucket and
include its connection_id and uri; set pipeline: true to apply the
pipeline-compatible folder checks before reading the files. database is the
target schema’s database. pipeline defaults to false. production_database
is optional and, when supplied, names a database the files must never be landed
in and also marks the landing as a pipeline’s. Neither field causes data to be
written to production.
Preview reads each file whole to hash it, up to 200 MB total, and writes
nothing. Landing parses the files and creates one all-text table per file,
including _source_file, _source_sha256, and _loaded_at; it takes one
schema creation and one bulk load per file and can take minutes for large
files. More than 12 files, one file over 50 MB, or more than 200 MB total is
refused. A landed table is returned as catalog.schema.table and can then be
selected as a raw source by /plan. Unusable per-person proof connections or
picks the plan cannot use return 400. If both raw-data slots are occupied, preview
or landing returns 503 without reading files. Unauthenticated requests return
401, inaccessible resources 403, malformed bodies and invalid picks 422,
and warehouse landing failures 500.
Migration pipeline inspection and scope
These routes support the Launchpad pipeline branch of the database-migration journey. Pipeline inspection reads only the explicitly selected repository files at one immutable revision; it does not execute the pipeline or change the repository checkout. The returned source descriptor contains file paths, SHA-256 digests, byte sizes, and asource_checksum, but not source contents or
credentials.
POST /api/data/migration/pipeline/inspect
The inspection is bounded to 32 files, 256,000 bytes per file, and 1,000,000
bytes in total. The response has
schema_version: 1, the resolved 40-character
revision, the selected files, and source_checksum.
Migration producer discovery and plan proposal
These routes support the migration intake in Launchpad and chat. Producer discovery reads Context Graph lineage and source metadata; plan proposal also binds the choices to an immutable, checksummed scope record. Neither route runs pipeline code. Vertica source connections are supported for plan proposals. Genesis reads primary-key and candidate-column nullability metadata from Vertica’sv_catalog;
only enabled primary keys are used as row keys.
POST /api/data/connections/{connection_id}/migration-producers
The response’s
data includes source, lineage_available, pipelines,
unproduced_tables, unproduced_count, notes, source_scanned,
candidates, and code_search. source_scanned is false when the graph has
none of the source’s tables, true when it has at least one, and null when
the status could not be determined. If no pipeline was found and some tables
are unwritten, Genesis makes a second Context Graph read to find code whose
writes match those tables by name under another spelling; these results are
candidates, separate from the pipelines, and each candidate’s summary says
how it matched. code_search is searched after a successful search, failed
if that search could not complete, or skipped when no search was needed or
available. When the Context Graph capability is unavailable,
lineage_available is false; this is not a connection error. With
include_warehouses=true, the response also includes warehouse_loads for
other databases fed by the source; this may make up to 11 additional Context
Graph reads.
POST /api/data/migration/plan-proposal
When supplied,
code_location identifies code from Genesis Git and is planned
instead of selected_pipeline_ids; do not supply both. Its object contains
repo_id (string, required), entrypoint (string or null, default null),
paths (string[], default []), and revision (40-character lowercase
commit SHA or null, default null). The plan pins the selected code to a
commit.
The response’s data contains target_runtime, available runtime options,
objects, target, row_keys, row_key_basis, prover_checks, pipelines,
defaults_applied, notes, blueprint_refusal, and the bound scope.
For a Databricks job or declarative-pipeline warehouse rebuild with a landing copy, scope.landing_namespace records its
target connection’s landing catalog and schema; scope.comparison_target records
the optional source-side comparison database or catalog.
blueprint_refusal explains why the migration blueprint will not start the
proposal after approval, or is null when it can start. The service reads current
lineage, source inventory, primary keys, and candidate key-column nullability
before saving that scope; code matched to source tables by name takes two
Context Graph calls. Chosen dbt projects can add one test-metadata read each.
For a Databricks target connection, when the proposal copies the source first,
the planner lists catalogs on the destination warehouse. A catalog named by the
plan but not listed is marked for creation in defaults_applied as
target_catalog:create or landing_catalog:create; when the listing is empty
or unavailable, it does not infer that a catalog is missing.
A source connection using per-person user OAuth, or a supplied target
connection using it, is refused with HTTP 400 before lineage is read or a scope
is saved. scope.target_design, when present, records the proposed destination
steps, not what has been built: each steps entry has replaces (pipeline id),
form (dbt_models, dbt_load_models, streaming_tables,
materialized_views, pipeline_datasets, databricks_job, genesis_flow, or
undecided), and optional outside inputs. An outside input has kind
(files or sources), optional count (positive integer or null), and
optional landing (stage, volume, or null). Older approved scopes may not
contain this field. For the chat
approval flow, see Migration intake tools.
GET /api/data/connections/{connection_id}/databases
GET /api/data/connections/{connection_id}/databases/{database}/schemas
GET /api/data/connections/{connection_id}/databases/{database}/schemas/{schema}/tables
GET /api/data/connections/{connection_id}/databases/{database}/schemas/{schema}/tables/{table}/columns
GET /api/data/connections/{connection_id}/databases/{database}/schemas/{schema}/tables/{table}/sample
List responses (
databases, schemas, tables) include from_cache (boolean)
to indicate whether the payload came from the in-process metadata cache.
When these routes read a databricks_app_user connection in a Databricks App,
a workspace-verified signed-in user’s metadata reads run as that user and bypass
the process cache, so one user’s Unity Catalog visibility is never reused for
another user. Other connection types and requests without a verified Databricks
user are not switched to that user’s token.
An empty databases, schemas, or tables array is a successful empty listing,
not a connection failure. In particular, a Databricks catalog or database may
return no enumerable rows even though the connection answered; callers should
preserve the empty explorer state and use a known catalog or database name when
they already have one.
tables entries are objects with name (string) and type ("table" or
"view"). columns entries include name, data_type, nullable,
default, and description when the connector reports them. sample returns
a data object with columns, rows, total_rows, limit, and offset.
If a connector reports reconnect_required because its sign-in is missing or
expired, these routes return HTTP 409 with error_code: "sign_in_expired"
and a provider naming the platform that needs sign-in. Callers should prompt
the user to sign in again rather than treating this as a server failure.
SQL Server metadata browsing and query execution are also supported from a
Databricks App through the bundled pymssql driver. Its integer DB-API type
codes are normalized for column_metadata; pymssql’s BINARY code is reported
as a string because the driver also uses it for types it does not identify,
including date and time types. See SQL Server connections
for TLS and connection-option behavior.
SQL Server CLR types. For SQL Server table samples,
geography,
geometry, and hierarchyid columns are returned as text so that one
unsupported CLR column does not prevent the rest of the sample from loading.
The column names remain unchanged. If column metadata cannot be read, the
endpoint falls back to the standard SELECT * sample query.BigQuery mapping. On BigQuery connections, Genesis maps the generic
database/schema/table path segments to GoogleSQL objects:
GET .../databases returns the connection’s bound project id (via
SELECT @@project_id). GET .../schemas lists datasets from
{project}.INFORMATION_SCHEMA.SCHEMATA. GET .../tables lists base tables
and views from {project}.{dataset}.INFORMATION_SCHEMA.TABLES in one pass
(table_type distinguishes views). GET .../columns reads
{project}.{dataset}.INFORMATION_SCHEMA.COLUMNS.BigQuery metadata queries route through the shared DatabaseConnector
executor (the same path used by query_database and the harvester) so
service-account JSON is parsed into credentials_info and user-OAuth
connections use a pre-authorized BigQuery client. Project and dataset
identifiers are backtick-quoted in generated SQL so dashed project ids parse
correctly. Table-preview requests may therefore use a hyphenated BigQuery
project id (for example, genesis-471800) as the database value.Ad-hoc query execution endpoints
Use these routes to execute SQL immediately, store page 1 of the result, and receive a newquery_id for later pagination or refresh.
connection_id values on /api/data/... routes accept either the fully
qualified type.name form (for example databricks.my_conn) or the bare
name stored in legacy CUST_DB_CONNECTIONS (for example my_conn). When a
type.name value does not match directly but the segment after the first dot
matches a legacy row, Genesis resolves the request to that legacy
connection_id before executing metadata or query operations.Legacy compatibility aliases
POST /api/query-results and POST /api/query
forward to the same behavior as POST /api/data/query-results.
GenesisApps are rate-limited per app, and callers without an app token are
limited per person when sign-in is enabled. With sign-in disabled, callers
without an app token are not limited. A request over the configured per-app or
per-person rate returns
429 Too Many Requests with a Retry-After header.
Limits are enabled by default with http.query_rate_limit.enabled (true),
http.query_rate_limit.requests_per_second (5.0), and
http.query_rate_limit.burst (120). They are counted per server process.
Eligible identical read-only queries may reuse a recent result; see
Datasets and the
Configuration Reference.
POST /api/data/query-results
POST /api/data/query-results returns the standard stored query-result payload
in data plus these row-limit fields:
Genesis validates query-result SQL before it caches the first page. Submit a
single SQL statement. Requests that contain multiple SQL statements or
obviously concatenated or corrupted SQL return
400 Bad Request.
When the query reads a table, view, schema, or catalog that does not exist,
Genesis returns 404 with top-level code: "relation_not_found" and
permanent: true. The same statement will keep failing until the missing object
is created; app clients use these fields to stop retrying the query.
Newly stored query results are also indexed for
find_past_queries(...)
recall. This applies in both SQLAlchemy metadata deployments and legacy
SQLite-backed metadata deployments; older legacy rows can be backfilled
lazily the next time find_past_queries(...) runs.In SQLAlchemy metadata mode, stored query-result reads, writes, and refreshes
use the metadata repository, including when the metadata backend is PostgreSQL.Stored query-result endpoints
These routes are mounted under/api/data/query-results/....
When Genesis uses the datasets-backed query-results backend, stored query
results backed by a query-result dataset enforce dataset authorization in
addition to connection access rules.
GET requests require dataset read
access and POST .../refresh also requires dataset read access. App tokens
need the read action, and the delegated user must also be allowed to read the
backing dataset; when the token names dataset IDs, the query-result ID must be
in that allow-list. An empty dataset allow-list does not restrict query-result
IDs, which are minted at runtime, but the delegated user’s dataset access still
applies. App tokens cannot refresh these datasets and receive 403 Forbidden.AG Grid datasource routes such as
/api/data-explorer/datasource,
/api/data/query-results/{query_id}/datasource, and
/api/datasets/{dataset_id}/datasource can return both sql and base_sql
in the response body. sql is the wrapped SQL Genesis executed for paging,
grouping, or pivoting. base_sql is the original SQL before SSRM wrapping
when available. For Microsoft SQL Server connections, Genesis also preserves
bracketed identifiers such as [database].[schema].[table] while rewriting
paging to SQL Server syntax in sql; base_sql continues to reflect the
original submitted query text when available.
For Snowflake connections, Genesis parses base_sql with the Snowflake dialect
before SSRM wrapping, so VARIANT path expressions such as column:path::TYPE
in the original query are accepted rather than causing a parse error during
server-side paging, grouping, or pivoting.GET /api/data/query-results/{query_id}
When the stored query result is backed by the datasets query-results backend,
the
data object also includes:
For stored results, the response includes the stored first-page
rows and its
rows_per_page. When needs_re_execution is true, page 1 still contains the
rows that were stored; clients can re-run the query to retrieve rows beyond
that page. A result that cannot be replayed is returned with
replayable: false, its stored total_rows, and no rows on later pages. If a
connector detected dropped rows but could not observe their exact total,
total_rows records a lower bound rather than presenting the stored page as
complete.
This endpoint returns 403 Forbidden when the caller lacks dataset read
access to a datasets-backed query-result dataset, and 404 when the stored
query result is not found or has expired.
POST /api/data/query-results/{query_id}/refresh
This endpoint does not document any request body fields.
Transition-contract endpoints
These routes back Data → Migration verification (/data/verify/). Browse,
compile, and execute require view_connections. Ratify is the only
authority-changing surface: it requires ratify_transition_contract,
auth.enabled=true, a genuinely authenticated human caller (not a system or
delegated identity), and a configured transition_contract.ratifier_private_key.
POST /api/transition_contract/rules/{rule_hash}/ratify
Successful responses include
event_id (registry event of the appended binding)
and binding with rule_hash, qualification_event_id, transition_id,
ratifier, ratified_at (ISO-8601), public_key_id, and signature
(Ed25519 over the binding payload). The ratifier identity comes from the
authenticated session, never from the request body.
POST /api/transition_contract/objectives/{objective_hash}/designate-keys
Assert which columns identify rows of one or more source objects. This is a human assertion of row identity — not a measurement from either estate — and it creates a successor objective rather than editing the one named in the path. Refresh the objectives list and compile from the returned objective_hash.
view_connections is necessary but not sufficient: the service also requires per-connection access to both estates named by the objective (ownership, manage_all_connections, or a shared grant on each connection). Both source and target are checked.
Successful responses include
objective_hash (successor carrying the designations), parent_objective_hash (the objective refined), and key_designations (the full designation set on the successor, including inherited ones).
Compiled obligation frames expose row identity as key_column (legacy single-column field, null for composite keys), key_columns (composite-capable list), and key_source (declared from the source estate, or designated from this endpoint). Read identity through key_columns when present, falling back to key_column.
POST /api/transition_contract/compile
Returns
contract_hash, registry_snapshot_cut, and a one-line summary.
POST /api/transition_contract/execute
Returns
run_id, status (running, succeeded, failed, or error), and
run (full run record when the run finished within wait_seconds).
Measurement endpoints
These routes cover the Baselines, Relationships, and Compare views under Data → Migration verification. Every route below — including reads — requiresmanage_all_connections. Frozen records can carry
per-column minimum and maximum values from customer estates; this is a
data-disclosure gate, not a write gate. Agent
measurement_tools apply the same permission inside the core.
If a measurement tool returns refusal.kind: "fault", the service treats it as an
internal measurement-service failure and returns HTTP 500. The response is a generic
server-error payload; the exception detail remains in the server log.
GET /api/transition_contract/measure/baselines
List responses include records, run_index_limit, and run_index_truncated (global — older measurement runs were not indexed).
Each records[] row includes frozen_contract_hash, provenance, and optional summary fields such as database, schemas, dialect, and run_id. Provenance is never a safety grade.
POST /api/transition_contract/measure/correspondences
Successful responses include
correspondence_hash, declared_by (the
authenticated session identity recorded on the declaration), and declared
(sentences restated for the declarer to check). The request has no
declared_by field; a caller cannot attribute the declaration to another
person.
POST /api/transition_contract/measure/compare
Successful responses include
counts, counts_by_object, counts_by_class, binding_failures, undischarged, and unresolved (integer counts, not lists), indeterminate_regions (strings), object_pairing, exemplars, exemplars_capped_at, coverage, reading_guide, and value_agreement_is_not_discharge.
Salesforce merge endpoints
These routes govern irreversible Salesforce Lead, Contact, and Account merges. They are compatibility aliases for the provider-neutral CRM merge endpoints withconnection_type=salesforce and
route new proposals through Action Review.
Prefer the /api/crm/salesforce/merge/... paths for new integrations.
Every route below — including reads — requires approve_agent_action.
That permission is deliberately not named for merges: it grants the right to
sign off on an action an agent cannot authorize for itself, and a CRM merge is
the first of those rather than the only one. Preview responses carry
record-level values from the customer’s Salesforce org, and stored approvals
retain that preview verbatim. List and approve operations are additionally
scoped to connections the caller can access.
The approval routes are the authority-changing surfaces beyond the permission
gate: they require auth.enabled=true and a genuinely authenticated human
caller (not a system or delegated identity). Agents can preview, submit a
proposal, and execute a merge through salesforce_connector, but they cannot
approve an Action Review proposal on behalf of a human.
Merge actions refuse when the target connection’s locator does not set
merge_enabled to a truthy value, when merge_survivorship_policy is missing or
invalid, or when Genesis cannot verify the Salesforce org id at authentication.
POST /api/salesforce/merge/preview
Successful responses include
projection (canonical merge preview) and digest
(sha256 of the projection, re-checked at approval creation and execution).
POST /api/salesforce/merge/approvals
Uses the same body fields as preview, plus:
Successful responses include
approval_id, the effective Action Review status,
digest, expires_at, and review_required. When review_required is true, a
human decision is required before execution.
POST /api/salesforce/merge/approvals/{approval_id}/approve
No request body. The approver identity comes from the authenticated session only.
Successful responses include
approval_id, status, and approved_by.
POST /api/salesforce/merge/approvals/{approval_id}/execute
Successful responses include
approval_id, status (executed), and result
with survivor_id, merged_ids, updated_related_ids, and success.
GET /api/salesforce/merge/approvals/{approval_id}
Returns data with the approval row, including preview (stored canonical
projection), execution_result when present, and status fields such as
pending, approved, claimed, executed, failed, expired, or rejected.
CRM merge endpoints
Provider-neutral routes for irreversible CRM merges. Setconnection_type to
salesforce or hubspot. Every route below — including reads — requires
approve_agent_action. That permission is deliberately not named for merges:
it grants the right to sign off on an action an agent cannot authorize for
itself, and a CRM merge is the first of those rather than the only one. Preview
responses carry record-level values from the customer’s CRM org, and stored
approvals retain that preview verbatim. List and approve operations are
additionally scoped to connections the caller can access.
The approval routes are the authority-changing surfaces beyond the permission
gate: they require auth.enabled=true and a genuinely authenticated human
caller (not a system or delegated identity). Agents can preview, submit a
proposal, and execute a merge through salesforce_connector or
hubspot_connector, but they cannot approve an Action Review proposal on behalf
of a human.
Supported
connection_type values: salesforce, hubspot.
Merge actions refuse when the target connection’s locator does not set
merge_enabled to a truthy value, when merge_survivorship_policy is missing or
invalid, or when Genesis cannot verify the provider tenant identity at
authentication (Salesforce org id or HubSpot portal id).
POST /api/crm/{connection_type}/merge/preview
Successful responses include
projection (canonical merge preview) and digest
(sha256 of the projection, re-checked at approval creation and execution).
POST /api/crm/{connection_type}/merge/approvals
Uses the same body fields as preview, plus:
Successful responses include
approval_id, the effective Action Review status,
digest, expires_at, and review_required. When review_required is true, a
human decision is required before execution.
GET /api/crm/{connection_type}/merge/approvals
No request body. Returns data as a list of pending approval rows for the
specified provider. Before selecting rows, Genesis performs a best-effort,
provider-scoped recovery of stale claims left by an interrupted process. The
recovery runs on demand when the approval ledger is read, at most once per
cooldown window; idle instances do not run a recurring recovery job. Claims
older than salesforce.merge_claim_stale_after_seconds or
hubspot.merge_claim_stale_after_seconds (both default to 900 seconds) are
marked failed with an unknown remote outcome rather than retried.
GET /api/crm/merge/approvals
No request body. Returns
data as a list of visible approval rows across all
registered CRM providers and server_time (server clock used to evaluate
expiry). Rows for connections the caller cannot access are omitted. Genesis
attempts the same on-demand stale-claim recovery for every registered provider
before selecting rows; a recovery failure for one provider does not prevent
another provider’s attempt or the list response.
POST /api/crm/merge/approvals/batch-approve
Each item in
approvals:
Successful responses include
outcomes — one entry per submitted approval in
submission order. Each outcome is either a success (approval_id, status,
approved_by) or a failure (approval_id, error_code, message).
error_code is one of bad_request, forbidden, not_found, conflict,
service_unavailable, or internal.
POST /api/crm/{connection_type}/merge/approvals/{approval_id}/approve
No request body. The approver identity comes from the authenticated session only.
Successful responses include
approval_id, status, and approved_by.
POST /api/crm/{connection_type}/merge/approvals/{approval_id}/execute
Successful responses include
approval_id, status (executed), and result
with survivor_id, resulting_record_id, merged_ids, updated_related_ids,
warnings, and success.
If the provider refuses the one merge request, the response records
status: not_applied and preserves the provider’s error detail. If the request
was sent but the outcome cannot be proved, the approval remains
reconciliation_required; do not retry it, and inspect execution_result or
the approval detail for the provider’s error when present.
GET /api/crm/{connection_type}/merge/approvals/{approval_id}
Returns data with the approval row, including preview (stored canonical
projection), execution_result when present, and status fields such as
pending, approved, claimed, executed, failed, expired, or rejected.
Estate (source-contract) endpoints
These routes back the Estate workspace (named estates with scan timelines, source-estate characterization, contracts, jitter qualification, system-diff remediation, governance (Δ authoring, waivers, ranked findings, attestations), migration validation, the Genesis Knowledge System corpus, the estate ruling library (tier-3 ambiguity overlay), the improvement docket (candidate improvements filed against a finding, accepted or rejected by a person), issue dossiers, and Π rule-review workflows). Submit-and-return routes stop accepting new flows once Genesis begins shutdown. If a run row was allocated before that refusal, Genesis closes it before returning the scheduling error; pollGET /api/estate/runs/{run_id} to see the terminal state rather
than treating the request as an in-progress run.
Estate review and approval reads are scoped to the caller’s estate visibility as well
as view_connections. A comparison-scoped read treats an unknown or unreadable
comparison as not found. Lists omit findings and approval records tied to comparisons
the caller cannot see, and calculate any totals, waiver counts, or rule-usage counts
after that visibility filter. This applies to the comparison review, attestation,
waiver, export, correspondence-rule, finding-disposition, delta, ruling, and package
reads below; approval work on a hidden comparison is not disclosed by a row or count.
Browse, define and scan named estates, characterize,
mine, compile, verify, jitter, system-diff run/read, on-demand fault-drill,
fault-drill reads, and behavioral reads, knowledge corpus read/collect, Δ
preview/propose, attestation read,
witness drill-down, collaboration notes, comparison Human Review workflow
persistence, reconciliation episodes (import/read, server-owned open/round/close lifecycle,
live derivational open/round streaming from graded obligations,
machine-channel issue replies and prover adjudication, human-court finding rulings,
durable-finding cross-episode history, and the cross-run finding lifecycle ledger),
programmatic Contract verification (POST /api/estate/verifications),
and immune-arsenal ranking require
view_connections. Agents may
author and propose Δ artifacts through those routes; only ratification changes
authority. Comparison Human Review is an annotation layer over a comparison:
per-finding diagnosis, disposition, owner, workflow, and discussion remain
available to view_connections reviewers. Review doors use one signer rule:
with authentication enabled, a genuinely authenticated human signs and a
caller-supplied name is refused; with authentication disabled, an allowed caller
may submit and is recorded as the name in X-Genesis-Signed-As, disclosed as
<name> (self-reported, auth disabled), or as local operator (auth disabled)
when the header is absent. Finding and family
disposition, remediation-request filing/dispatch, and collaboration notes are
annotation acts over the findings ledger (nothing closes a finding — only
re-verification does). They require ratify_source_contract (collaboration
notes require only view_connections). With auth.enabled=true, a genuinely
authenticated human is required; when auth is disabled, writes are permitted
and attributed to local operator (auth disabled) so diagnosis and remediation
surfaces stay usable on local stacks. Authority-changing surfaces — candidate
adjudication and contract sealing require ratify_source_contract and a
genuinely authenticated human, except that with auth disabled
estate_char.allow_unverified_sealing=true admits their person-facing routes
under the unverified signer rule: without X-Genesis-Signed-As the record says
local operator (auth disabled); with it, the supplied name is marked
(self-reported, auth disabled). Agent tool calls, delegated credentials, and
app-only tokens remain refused. The setting has no effect with auth enabled; see
the Configuration Reference. Ruling-library
settle / ratify / unsettle / answer (the tier-3 ambiguity overlay) still require
auth.enabled=true and a genuinely authenticated human caller (not a system or
delegated identity). Π/Δ ratification,
correspondence-rule review and revoke, and Π rule-review confirm/revoke use the
signer rule above. Ruling-library
and improvement-docket reads (GET /api/estate/rulings,
GET /api/estate/rulings/{ruling_id}, GET /api/estate/ruling-questions, and
GET /api/estate/improvement-docket) require only
view_connections — agents and customers may browse the library and the docket
as living documentation. Spec-conformance
reading consult (POST /api/estate/spec-conformance/consult-reading),
agentic spec-author seat
(POST /api/estate/spec-conformance/author-seat), and
grade (POST /api/estate/spec-conformance/grade,
POST /api/estate/spec-conformance/grade-compiled,
POST /api/estate/migration-envelope/grade), estate preflight
(POST /api/estate/estates/{estate_id}/preflight), and estate archive
(POST /api/estate/estates/{estate_id}/archive) also require ratify_source_contract —
authoring or sealing the spec an envelope is graded against, commissioning an
agent mission for readiness or behavioral verification, or injecting into clone
estates is the same authority class — but are system-triggerable assessments
with no genuine-human gate (a permitted service or agent caller may invoke them).
The Estate nav
is shown by default; it is hidden only when show_estate is explicitly false on
GET /api/config/frontend (set AppConfig features.show_estate to false, or
GENESIS__FEATURES__SHOW_ESTATE=false to force-lock).
Prover result visibility
view_connections is also the per-result visibility boundary for Prover data. A
principal may see an estate only when they may see every connection in that
estate; a comparison is visible only when they may see every connection behind both
of its estates. This applies to agent tool calls as well as REST requests: an agent
acts with the authenticated user’s connection reach and does not widen it. Direct
connection scans without an estate are authorized from the connection recorded on
the scan’s run. A result whose producing connection cannot be resolved is hidden
rather than treated as public.
A local run started from a Mission conversation is visible to anyone who can open that Mission, even when the run’s task conversation is otherwise hidden. Imported runs do not gain this access from a conversation reference. This grants access to the run result, not to its underlying connections or credentials.
A spec_conformance grade claimed by this server for a comparison is visible wherever that
comparison is visible, even when the grade summary does not name the comparison. Imported
runs cannot establish this binding from their own provenance.
Compiled specs follow the bindings on their seal lineage. Every recorded source
connection and target-placement connection must be visible to the caller, and a
recorded estate must also be visible; a reseal inherits bindings from its nearest
ancestor that records them. A spec with neither a bound connection nor estate is
visible only to its registered_by or registered_for identity, or to a principal
with manage_all_connections. If the estate cannot be resolved through the lineage or
is no longer held, the spec is hidden. Hidden specs answer as unknown: spec reads, proof
submissions that name one, grading, verification, and consult requests that name one
return 404; a self-certification list instead returns an empty list. A compiled-spec
read includes only visible ancestors in lineage.
Findings filed by a migration-validation run are scoped to every connection recorded
for its source and target execution profiles, including a profile’s warehouse connection.
The caller must be able to see all of them. If any validation run for that finding address
has no recorded connection list, only a principal who may administer every connection can see
the address; a current profile configuration cannot reconstruct an older run’s access.
List responses report filtering instead of silently presenting a partial board. The
hidden field is a count of withheld rows: it is a total for estate, snapshot,
ranked-finding, and unpaged result lists; it is per page for system-diff, findings,
ledger, and comparison-event pages. For system-diff, findings, and comparison-event pages,
has_more and next_cursor describe paging on the unfiltered keyset, so continue paging
and sum per-page hidden values when a total is needed. The findings-ledger page instead
applies visibility before cutting the page; its has_more and next_cursor walk only
admitted rows, and hidden counts withheld rows in that page’s span. The findings-ledger
summary applies the same visibility predicate
inside its aggregation, so its open_total, by_state, by_layer, by_pair, and
pair_unresolved values already describe only visible findings. Detail reads return
404 when the requested snapshot, estate, or comparison is hidden; a comparison
requires both endpoint estates to be visible. The same visibility rule gates Prover
approvals, run-level verdicts, and exception grants: comparison-scoped actions require
the caller to be able to open that comparison. Consult ruling actions require the
caller to be able to read the finding. A hidden subject returns the corresponding
read’s 404, rather than disclosing whether an approval target exists.
Write and submit routes apply the same check before writing or starting work. Estate
archive and visibility changes, code-asset operations, drills, and artifact reproduction
require the named estates to be visible; candidate adjudication requires visibility to
the snapshot the candidate came from. Grades check their named snapshots, comparison,
and estate; stimulus runs check their named snapshots and comparison. Boundary
characterization and contract delta operations check the referenced boundary or
contract. Run cancellation checks the run’s comparison, estate, and connection before it
writes. For a characterization cancellation, summary.error distinguishes a scan that
was still measuring from one that had already saved its snapshot; see run cancellation
behavior. Hidden or unresolved
subjects answer as unknown (404), before the action proceeds. Spec-conformance prose
compilation is the exception: a snapshot the caller
cannot see is omitted from grounding, and the compiler proceeds without that snapshot’s
inventory.
This boundary also applies to routes and agent tools that resolve or act on comparison
records: hidden comparisons and findings are treated like unknown ones. Family rollups
for a comparison fold only findings the caller can see, so hidden members do not affect
the returned counts or samples. For records that cannot be placed under a visible
comparison or boundary, a principal with manage_all_connections may see the otherwise
unplaced record; other principals continue to receive the hidden or unknown result.
The same subject check now covers grading-run adjudication, stored adjudication reads,
finding consultation, reconciliation episodes, and estate ruling tools. A run
is visible through its comparison when it names one. Otherwise a recorded estate must be
visible and a recorded connection must also be visible; with no estate, a recorded
connection is checked on its own. A proceeding is visible through its comparison, or
through every recorded conformance connection; an unplaced proceeding requires
manage_all_connections. An episode without a comparison requires a visible estate and,
when the estate’s recorded snapshots identify it, a visible connection; with no estate,
its recorded connection is checked alone.
Estate ruling records are available when a visible comparison touches the
estate, or to a principal who can manage every connection. The same caller-specific rules
also apply to improvement-docket entries, transition detail,
family and behavioral dossiers, proofless-grade review, reading-consult and seat status
polls, and live run subscriptions. Lists and embedded rows are filtered to visible subjects;
the endpoint descriptions below call out where filtering changes paging or returned
counts. Hidden identifiers use the same unknown-style response as missing records, except
where an endpoint documents an empty or otherwise safe result.
Run feeds and polls use a caller-specific scope for every subject a run names: all
recorded estates, its recorded connection, and every comparison in its summary must be
visible. Run connection stamps and operator fallback are described in
run ownership and connection stamps.
Spec-author seat runs also record the source connection, source and target estates when
supplied, and a separately named target connection. A local Mission can admit a
non-imported seat run as described above; otherwise its status, run-feed entries, and
decision cards require access to every recorded estate and connection. A seat row without
a recorded source connection is treated as unbound even when it has a Mission: a
non-imported row is visible only to its recorded
operator, user principal, or commissioned_for identity when present, or to a principal
with manage_all_connections; an imported row is visible only to the latter. Clarifications
follow every run they are bound to: a run named by the clarification’s subject, or a run
whose resolution cites it when the clarification was recorded on or after that run began.
A clarification bound to a hidden run is hidden; citing it while resolving or withdrawing a
question returns the same unknown-style response.
A run naming none of those subjects is judged by its boundary: every snapshot stored
under that boundary must be visible, or, when it has no snapshots, its registered
connection must be visible; if neither snapshots nor a registered connection identify
it, only a principal with manage_all_connections may see it. A run bound to nothing is
visible to its recorded operator or user principal, or to a principal with
manage_all_connections.
GET /api/estate/runs and
the active-run feed omit inaccessible runs before pagination and counts; polling one
returns 404, indistinguishable from an unknown run. Comparison- and estate-scoped side
reads also apply caller visibility before resolving or aggregating results: hidden
subjects use each endpoint’s existing no-result response (404, null, an empty list,
available: false, or unresolved_comparison on stimulus preflight), and family-member
counts include only visible findings.
Opt-in proof fields on run listings
GET /api/estate/runs accepts proof_fields (boolean, default false). When
true, each listed run includes origin, anchor, standing, verdict_word,
and counts; with the default, none of these fields is added and their reads are
skipped. origin.kind is mission or thread; the object also has
mission_id, mission_name, thread_id,
thread_title, and bot_id; mission details are withheld when the caller cannot
open the Mission, and thread_title is always null on this list. anchor
contains nullable message_id and tool_call_id values for the conversation
location. standing contains state, since, and by_run_id, or null when it
cannot be measured. On acceptance_lapsed, it can also contain
lapses_not_checked, the number of lapsed acceptances the page did not check;
unchecked lapses alone leave standing null, not current. verdict_word is a proof-page label or null; counts
contains matched, accepted, unexplained, and not_checked, or null when
there is no comparison or its counts could not be read. Cost grows with distinct
comparisons, pairs and threads: identity, findings and review reads are batched by
500 comparisons, pair succession by 200 pairs, measuring-run card reads by 500
runs when a verdict needs table counts, and project reads by 100 threads, with
visibility checks for matched Missions. It also reads disposition packages once
for the page, estate timelines when an approval stands, and assumption-withdrawal
evidence for decided comparisons. Reads are not issued once per run row. See
The proof page and Replay
for how the list displays these fields.
Prover listing response timings
The completed listing reads below return aServer-Timing response header. Timing is
enabled automatically; there is no configuration key or request parameter. The header
contains one member for each stage that ran, formatted as name;dur=<milliseconds> and
optionally ;desc="<unit>=<count>", followed by total;dur=<milliseconds> for the
read service’s recorded window. The window covers the service’s reads, resolutions, and
projections, but not response encoding, middleware, network transfer, or client-side
timing. An error response does not include a stage table.
The stage vocabulary is route-specific:
The count description is omitted when a stage does not report a count; an omitted count
does not mean zero.
Clarification review and reopened verdicts
In clarification responses,conversation_with identifies the signed-in person by email or
display name rather than a bare user id; it is unnamed when no name can be resolved,
unauthenticated when authentication is disabled, and absent when no person was present.
For an authenticated turn using the internal-service-token door, it is internal_service,
whose label identifies the instance’s internal service account rather than a named person.
Clarifications are append-only agent records that a sealed specification may cite. Review
is a separate, after-reliance action: a person may ratify a recorded clarification before or
after a seal cites it, but nothing waits for that review. Ratification changes its current
status to ratified, sets provenance_kind to person, and names the reviewer. A person
can overturn a clarification, changing its current status to overturned; the agent that
recorded an agent-certified clarification can also withdraw it on the owner’s word, changing
its status to withdrawn. Neither action deletes or mutates the record. Overturned and
withdrawn clarifications are refused by later spec authoring, so new seals cannot rely on
them. An agent can also retire one of its duplicate rulings as superseded in favour of a
kept clarification. The copy remains in the history, exposes superseded_by, and cannot be
cited as a live ruling; this does not reopen seals or runs because the kept ruling still
stands. Agents use the superseded_by option on the
withdraw_clarification tool;
the review routes below remain person-only.
For the meaning of the decision fields on clarification entries, see the
list_clarifications tool reference.
A clarification whose subject identifies a question or decision card from a Prover run
is visible and reviewable only to callers who can open that run, in addition to the estate
visibility check. Such records are omitted from lists and treated as unknown by individual
review routes; bulk ratification skips a hidden decision as not_relied_on.
When an agent records or withdraws a clarification through POST /api/tool_call, include
agent_id to run under that agent persona. The stored recorder identity then names the
agent that acted, rather than attributing the record only to the authenticated caller; see
the tool_call request fields.
For the record_clarification tool’s open_question_id argument for product-woken,
question-bound answers, result fields, and repeated-ruling behavior, see its
tool reference.
The review identity is resolved by the server, never accepted from the request body. A
ratification applies only to the clarification version shown: its content_sha256 covers
the rule, the person’s words and worked examples. POST .../ratify accepts an optional
content_sha256 (64 lowercase hexadecimal characters); when supplied, a changed version
returns 409 without writing. The bulk route accepts the shown version for each
clarification and reports changed, already-ratified, unrelied-on and retired items as
skipped. With authentication enabled, the review routes require ratify_source_contract and a genuinely
authenticated human; agent-delegated tokens and service accounts receive 403. With
authentication disabled, the review actor is recorded as local operator (auth disabled).
Agent-made clarification records separately expose conversation_with: the signed-in person
whose conversation the turn was recorded in, or unauthenticated when authentication was
disabled. The single-review request body is { "note": "..." }, stored with that
ratification or review; bulk and document ratifications also accept a note. Unknown ids return
404, and a second review of an already reviewed clarification returns 409.
Clarification entries may also include
read_back, worked_examples, and content_sha256.
Ratifications of older versions appear in earlier_version_ratification; a changed
clarification reads agent-certified again until its current version is ratified. Compiled
spec views can include document asset_labels with supplied_by_label, ratification,
and document_status (ratified, agent_supplied_unratified, person_supplied, or
provenance_not_recorded), plus document_warnings for unratified canonical documents
supplied by an agent. A warning does not block sealing or proving.
Every seal and run reads the current clarification state when requested. An overturn or
withdrawal retires the clarification: a compiled-spec view exposes a reopened seal through
who_decided.reopened, with the earliest cause at the
top level and all causes in causes. A run that is a verdict over that seal exposes the same
notice in reopened and projects outcome to not_verified, regardless of the stored
outcome. This applies to GET /api/estate/runs, GET /api/estate/runs/{run_id}, and the
run wake/read surfaces; the spec_author_seat run that produced the seal is excluded.
For a reopened run, outcome_reason is null because clarification review, not a grading
rule, changed the outcome; the raw data row also carries outcome_reason: null when the
detail read projects that reopened outcome.
Run listings and complete run reads include the common progress block, next_step
sentence, and next call descriptor. next is {verb, args, why}; its verb is
null when no call by the current caller moves the work along. See
Prover run progress for
their shared semantics and polling guidance.
Every terminal run also carries outcome beside status in the envelope and listing
row. outcome is one of PASS, FAIL, INDETERMINATE, not_verified, no_findings,
or sealed; it is null while the run is non-terminal. status answers whether the
process finished, while outcome answers what it decided. See The status is never the
verdict for the
meaning of each value and the fail-closed cases. For a grade, a not_verified verdict
with a non-empty blocking list is published as FAIL, because the grade measured the
migration and found a definite blocking result; an empty blocking list remains
not_verified. For an app proof, a not_verified summary with failed obligations is
published as FAIL; without failed obligations, its outcome remains not_verified.
Terminal run report line
The run envelope always includesreport_this, a string or null. For terminal proof
(prove) and grade (spec_conformance) runs, it is the sentence to report from the
stored run summary: successful results state the verdict and obligation tally, name up to
ten failing obligation ids (counting any remainder), and include available unmet scope,
historized objects whose history was not tested, spec-owned checks that tested part of a
history with no declared source, comparison counts, full run and grade ids, and the
comparison and spec by their first 12 hash characters. The full hashes remain in
summary.diff_hash and summary.spec_hash. The grade records those checks in
obligation_verdicts.history_tested_by_checks. When a target-side grade check reads a relation under a mapped target name, its obligation_verdicts summary includes target_relations_mapped, an object from each written relation name to the relation read. A successful proof with no spec says that no
obligation was checked. When a proof’s comparison ran under an assumption withdrawn for its
estate pair,
the sentence names each withdrawal (who withdrew it, when and why) and how many readings it
moved, read from summary.comparison_counts.withdrawn_assumptions. A terminal proof or
grade that did not succeed says it verified nothing and
includes its stop_reason when available. The field is null while a run is live and for
run types that grade nothing. See reporting a completed run
for how agents use this sentence, including the row counts attached to named failed checks.
When a comparison matched no tables by name but the grade’s decided reconciliation
obligations compared rows, report_this identifies those values as checked (or proven for a
verified grade) by the spec’s obligations and gives the row and obligation counts instead of
saying that no values were compared. The next-step guidance identifies the tables those
obligations compared as spec pairs, so they are not offered for acceptance as one-sided
tables.
For read-time headline behavior when verified grades have open owner questions, see how a
run reports open owner questions.
See Prover run semantics.
For repair-run settings as presented on run reads, see Prover run provenance.
Each complete run’s envelope also includes grade_engine_version and
reused_from_grade_version. grade_engine_version is the grading-code version recorded
by the grade it carries, read from the grade summary (including summary.summary when a
proof carries the grade there), or from row provenance when the grade has not written its
summary yet. reused_from_grade_version names the version of a grade carried over rather
than run for this answer: the grade submission reused, the proof reused, or a new proof
reused its grade child. Both keys are always present; grade_engine_version is null when
the run carries no grade or no version was recorded, and reused_from_grade_version is
null when no grade was reused or its version was not recorded. For a reused verdict,
grade_engine_version identifies the grader behind that verdict, not the serving build.
Grade runs may also expose envelope.provenance.run_as_user_id; see Prover run provenance
for what it records and its visibility implications.
Run envelopes also expose the same published and withheld headline fields on their
summary object.
Migration-validation run summaries include output_relations, mapping each output to
the source and target relations recorded by its traces. A side is omitted when its trace
records no relation for that output. Prover comparisons use this evidence to scope a
rewritten-view license to the pair tested by the run; see fresh licensing
evidence.
The stored summary also records connection_refs: the sorted distinct connection IDs
for both execution profiles, including any warehouse connection, used when scoping
findings from the validation run.
For GET /api/estate/runs, shape=full and shape=card summaries add published and withheld headline fields for each comparison count present: unlicensed_published / withheld_unlicensed and indeterminate_published / withheld_indeterminate. The withheld fields are null when nothing was withheld. Summaries with no corresponding comparison count gain no fields, and shape=slim omits them. The server derives these fields for both older and newer stored summaries.
When a shape=card row has a grade with failed checks, its conformance block carries
failed_check_count (the full count) and failed_check_ids (up to the first three available
obligation ids). The card omits the verdict document that contains the full failed-check list.
Grade cards also carry conformance.blocking_kinds, a count of each blocker kind, and
conformance.scope_question_count, the number of scope blockers whose locus appears in
scope_surplus. When obligation_verdicts.coverage is a mapping, they carry
conformance.checks_undecided as the sum of integer errored and unmeasured counts, and
conformance.checks_failed when failed is an integer; booleans are not counted as integers.
These fields let listing surfaces distinguish a grade held off Verified by a scope question
from one held by failed or undecided checks. If verdict.blocking is absent or is not a list,
the blocker-summary fields are omitted; an empty list produces {} and 0. Coverage fields
are omitted when coverage is unavailable.
Run rows in shape=full and shape=card include outcome_reason; in shape=slim it is
null except run_not_succeeded, which is read off the row’s status. For its values and interpretation, see the read_comparison grade-row
guidance. When a raw run row is
present, its data projection from GET /api/estate/runs/{run_id} or
GET /api/estate/spec-conformance/run-for-diff/{diff_hash} also carries outcome_reason
beside its stored outcome; it explains that row’s outcome, including why a grade is
INDETERMINATE, and is null when the row has no stored outcome.
app_proof is also a run type on these endpoints; filter the listing with
GET /api/estate/runs?run_type=app_proof. Its envelope status tracks run lifecycle,
while summary.status carries the app verdict; see the app-proof tool reference
for the summary fields and verdict meanings.
For a hand-built Databricks App target, summary.hand_built contains discovered_map
(entries, map_sha256, not_checked, outcomes, routes_listed, reads, and
budget_reached), data_source and data_source_reason, plus the pair’s barred
entries and attempts. See the app-proof tool reference for the discovery workflow and
the meaning of the data-source cap.
GET /api/estate/app-proofs/{run_id}/packages
Returns the app proof’s findings grouped into packages by measured cause, with each
finding’s recorded parts, current acceptance state, and Action Review request when one
exists. The data object includes run_id, packages, coverage, and
unrecorded_count. Packages carry package_id, cause, verdict, title,
justification, state, item counts, seen_later_by, items, the linked request,
viewer_can_sign, viewer_can_apply, and viewer_may_decide (whether this caller
could sign a request for the package, whether or not one exists). A linked request
includes decided_at, an ISO-8601 timestamp when a ruling settled it, or null
until then. Each item includes its finding and obligation
ids, parts, open_parts, accepted_parts, state, last_run_id, and acceptances.
For an acceptance reading, an empty open_parts means no part remains open; if the
reading has no open_parts field (identity only), every listed parts entry remains open.
An acceptance made through a package identifies through: "app_finding_package" and its
package_id. Package state is open, closed, or seen_by_a_later_proof; item state
is open, accepted, seen_by_a_later_proof, no_longer_observed, or
not_on_the_ledger. coverage.not_checked lists obligations the proof could not check;
they are not offered for approval. Item and unchecked-obligation names are shown in words
when the proof or its sealed spec recorded a readable name; otherwise the name is
Unnamed check. The obligation_id remains available as the machine reference. A package
seen by a later proof points to the proof whose package should be reviewed instead. The
read requires view_connections and
visibility to the run; 404 is returned for an unknown, hidden, or non-app-proof run.
Each package also has decision, or null when no decided request applies. Its object
contains proposal_id, status, url, decided_by, decided_at, package_id,
run_id, and carried_over. A decided package request supplies its own decision. If its
request is not waiting for a decision and no item is open, the package can instead carry
the decided request for the one package through which all its accepted and later-seen
items have standing acceptances. Closed items need not have a package acceptance. If
those acceptances name different packages, no carried decision is returned. package_id
identifies the decided package, run_id is the run named in the request’s intent, and
carried_over is true when that is not this endpoint’s run.
The read scales with the number of findings in this run and looks up the Action Review
link for each package it returns. For a package carrying a decision from another
package, it also reads that package’s Action Review link and decided request.
POST /api/estate/app-proofs/{run_id}/packages/{package_id}/request
Finds or opens the Action Review request for one app finding package. Asking creates no
acceptance; a person must decide the request in Action Review. The response data has
package_id, proposal_id, status, url, and opened. A package whose request
already stands is returned without opening a second request. Requires view_connections
and visibility to the run. Returns 404 for an unknown or hidden run or package, 409
when the package is already accepted, has moved, or was declined, and 503 when the
Action Review ledger is unavailable.
Work scales with the named run’s finding set. If no existing request can be reused,
Genesis also evaluates policy, re-derives the package, and writes one atomic request.
On GET /api/estate/runs/{run_id}, pass include_by_input=true (default false) to
include each app-proof obligation result’s by_input entries: the verdict at a sampled
input, its index into summary.sampling.inputs, the parameters, and short previews of
the Foundry and app values when the check compares values. by_input_omitted counts
entries omitted if even bare verdicts exceed the record budget. summary.by_input_extent
is always returned and describes the record’s size and any preview or parameter cuts.
The record is stored separately and is read only when requested. That costs one additional
primary-key read and decoding up to 256 KB; the response can carry up to 256 KB more per
half, so shape=both includes it on both halves. Other run types are unchanged.
For GET /api/estate/runs/{run_id}/flow, a declared input column that no item reads is
expected_unread (red) unless the grade reads plain Verified (verified with no owner
question open); then the column is declared_unread (gray). The response counts these
separately in counts.source_declared_unread.
The full flow response also returns other_tables: {source, target}: string arrays naming
tables outside the proof’s scope. The Prover flow view initially sets these tables apart
and lets the reader show the full schema inventory. This field is omitted from the summary
shape, which returns counts without the table lists.
For GET /api/estate/runs, answered_diff_hash filters runs to those whose
summary.diff_hash matches that whole comparison hash. It cannot be combined
with run_id or run_id_prefix (400); a partial or malformed hash returns
422. Matches are ordered newest first, filtered by the caller’s visibility,
and returned on one page up to limit (maximum 500); has_more reports
whether additional visible runs match. run_type can narrow the results. This
comparison-scoped page replaces the ordinary newest-run page described below.
The GET /api/estate/comparisons/{diff_hash}/proof response includes the nullable
list_cut string when the
grade’s differences list was truncated, and null when the list is whole. It states how
many differences were counted and how many are named when that total is available, so the
problem counts on the page are understood as counts from the listed subset.
Comparison-card payloads also carry the stability_check boolean: it is true for a
finished, ungraded, unplanned comparison of one estate against itself, and false otherwise.
See comparison cards in chat
for how the card presents that result.
When supplied, presented.prover_status is the server’s status (proven,
not_yet_proven, proving, or not_compared) and presented.status_line is
its sentence. presented.breakdown may be null; otherwise it carries checked,
checked_by_profile (paired objects with no row key whose profile matched; this object
count is not added to the readings count in checked), platform, accepted (count, schemas, by with person_id and display_name,
and at), and open (agent_fixable and to_waive). presented.next_step
contains the agent’s next action and words (propose_map when the comparison reads
not_compared); its reader_words is the server-written
sentence for the agent’s next step, when supplied. presented.next_steps gives each
open item’s action and reader-facing sentence. The proof page response also
exposes nullable status, status_line, and breakdown at its top level, plus
next_step and next_steps; these
are the result to report, while the older verdict.state is retained for compatibility.
The proof page also returns nullable live_tally, populated only when a row pairing
moved its counts. It contains counts (the current tally), recorded (the baseline), recorded_as
("when proved" or "before the row check"), settled_by_rows, line (the full
headline wording), and beside (the wording for a card whose counts row already shows
the live tally). This reading does not rewrite recorded.
The proof page also returns nullable readings_moved_by_rows. When present, it
names the readings moved by row pairing in to_matched, to_platform, measured,
and measured_differing; each list is capped at 200 coordinates. more counts
moved readings omitted because they were unnamed or beyond a cap. Older proof
pages can omit this field.
The nullable accepted_readings lists {object_name, column, comparison} coordinates
whose standing review grant counts toward the grade’s Proven gate. column is null
for a whole-table reading; the list is empty when no reading’s acceptance counts.
It reflects the proof page’s grade and population, not acceptances from another grade
or expired grants. Older proof pages can omit this field.
Completed comparison cards may also include presented.face_counts, the counts
row as {unit, match, differ, not_fully_compared, one_side}, where unit is
tables or columns; one_side counts tables present on only one side. Older
servers and cards without a column summary may omit it. The [chat guide]
(/docs/User-Guide/Chat-And-Threads#review-agent-generated-comparisons-in-chat)
describes when the card counts tables versus columns.
An unverified completed card can also include presented.open_problem, the proof page’s
sentence naming new columns still open under the grade. See [the proof page guide]
(/docs/Genesis-Prover/Overview#the-proof-page-and-replay) for how to act on that problem.
When the column summary credits source tables as inputs, it includes
column_summary.inputs_read_from and column_summary.inputs_read_from_basis; the card
shows those names as an Inputs fact. The basis is read by the spec, not expected on the target.
Complete comparison
counts may also include covered_by_decisions: schema-map readings answered by
decisions when at least one source table is missing and every missing source table
in the comparison has a decision. It has count,
cause: "schema_map_undeclared", tables (object_name, by, at), by,
and at; those readings are removed from not_checked, never added to matched.
For a graded chat card, presented.spec_grade.checks_not_run gives the number
of checks that could not be run after the grade’s reclassification. The card
uses it for its headline and counts row; older grade payloads fall back to the
grade’s accounting.indeterminate, and an ungraded comparison uses its own
verdict.indeterminate. Readings with no step to settle them remain in this
count. A pending grade may include presented.spec_grade.run_id, identifying the
run whose checks are still executing. When presented.counts.before_decisions is
present, it contains the counts before later decisions; the card shows an At proof
time line when those counts differ from today’s.
GET /api/estate/runs/{run_id}/comparison-card and
GET /api/estate/comparisons/{diff_hash}/proof accept optional as_of (up to 4,096
characters): an ISO-8601 time, replay-event epoch seconds, or a Mission replay cursor. A
time without an offset is UTC. Blank or invalid values, and cursors with no recorded
moment, return 400; the response echoes the resolved instant as UTC as_of. At that
moment, only decisions recorded by then count. Both surfaces include recorded (the
grade-time status and counts, with source: "stored" or "reconstructed") and
regrade_differs (null when today’s rules and decisions agree, otherwise the differing
readings, summary, and first known decision time since the grade). On the proof page,
recorded also includes the grade-time status_line and breakdown. A missing grade
time means recorded has null fields and no regrade comparison is made. With as_of or a
changed reading, the server reads decision moments in order, up to 24, to identify when
the reading first changed.
The comparison-card endpoint responds with Cache-Control: private, no-cache, varies on
authorization and cookie, and returns a strong ETag; a matching If-None-Match returns
304 with no body when the stored card is current. If its stamp is stale, the response
includes presented.updating: true and a body even when If-None-Match matches; imported
thread cards include presented.imported: true. The card UI behavior is described under
comparison cards in chat.
presented.still_url, presented.still_url_dark, presented.still_state,
presented.replay_clip_url, and presented.replay_clip_duration_s remain null: the server
no longer renders a card still or records a replay clip. The browser draws the card’s
resting picture and replay from the comparison’s data and stored proof bundle. The still
and clip endpoints below remain available for immutable assets generated previously; new
card settlements do not produce them.
For how to interpret these fields, see
read_comparison.
When presented has a non-null title, it is the plain-language sentence recorded for the
proof run, or for the comparison’s minting run when the proof run has none; it appears as the
comparison card’s main line. null or an absent value denotes a run created before titles
were recorded. The technical source-to-target label remains separate. read_comparison also
returns the title at the top level, including when present=false.
The /api/estate/comparisons/{diff_hash}/proof/columns response uses the same summary
shape. A platform_rule column dot may include rules with the reviewed rule titles;
see read_comparison.
It can include totals.tables_identical and totals.tables_differing, per-table
renamed_candidates and view-definition/whole-row-check details, and
row_pairing.duplicate_keys when the selected key repeats. See the tool reference above
for how to interpret candidate renames and duplicate-key findings.
Responses may include column_summary.column_reads, table-level reads, and the card’s
bounded presented.column_summary.column_reads; see the
read_comparison reference
for these fields and [Prover card guidance]
(/docs/Genesis-Prover/Agents-And-The-API#comparison-cards-in-chat) for reader-specific pairing.
After a snapshot-bound exhaustive row pairing, per-column equal_by_meaning identifies value
readings settled by every paired row. tables[].unlicensed_reading_comparisons maps each
column to the comparison ids of its unlicensed readings. The corresponding totals,
totals.readings_equal_by_meaning and totals.readings_type_licensed_by_rows, map each table
and column to comparison-id arrays rather than counts, so a person-accepted reading can be
identified individually. The first total lists value readings settled by the row check; the
second lists readings on columns whose type change the paired rows license, including their
other unlicensed readings. A bigint to int type change is licensed only when all paired
values are unchanged and the source extrema fit the int range.
Columns whose arrays were reordered do not count as equal by meaning because element order is data.
GET /api/estate/runs/{run_id}/flow returns likely_renames in both full and
summary shapes. Each entry pairs a measured missing source column with an
unaccounted target column; suggestions appear only when the target column is
actually unaccounted for and never change its state or counts. See the
Prover guide for how Flow presents these suggestions.
For
GET /api/estate/runs/{run_id}/flow, target_columns_read reports columns read through
executed target SQL. It is empty for statementless checks and source-side invariants; a
target-side invariant may still have vouches_for_target: true. The counts object also
includes target_rule_checked: passing checks that hold a target column to a constant rule
count here, separately from target_passing, because their values were not compared with a
source column. These columns have item state rule and are green in the flow view; columns
with spaces in their names still resolve to the check that reads them.
GET /api/estate/comparisons/{diff_hash}/proof also returns title_tables when its title
counts more than three loaded tables, and problems, one row for each problem caught by
the proof’s story. A problem has what, nullable table, status, how, found_at,
cleared_at, and cleared_in. status is open, cleared, approved, explained,
not_checked_again, or decided; a clearing is not evidence that the data was fixed.
Each problem also has differences, an array of {comparison, object_name, column}
coordinates from the comparison engine that the problem represents. A single problem may
refer to more than one difference, such as a missing unique rule and its enforcing index;
plan-check failures and unconfirmed plan checks have an empty array. An open problem caused
by new target columns also has columns, with {table, column} entries, and may have
acceptances, grouped with by, at, until, columns, counted, not_counted, and
package_ids. See [the proof page guide]
(/docs/Genesis-Prover/Overview#the-proof-page-and-replay) for their meaning.
The problem list reads at most 2,001 rows from the comparison pair’s findings ledger; if
more than 2,000 rows exist, it makes no ledger-based approval or rule explanation claim.
The proof page may also return reopened, a display-only list of open items an acceptance
once covered. Each entry includes finding_id, kind (withdrawn_where_given or
not_carried_to_newest), accepted_by, withdrawn_on and withdrawn_on_name when
withdrawn, decide_on and decide_on_name, accept_here when this comparison is current,
and a reader-facing line. These entries explain an open item; they are not decisions,
approvals, or Proven credit. The field is omitted when no such items are found; older
proof pages can omit it.
The comparison proof response’s requested_by is null unless an agent the person owns asked
for the run; when present, it identifies that agent and says the request was not the person’s
own words. In plan_origin, approved_by describes an agent’s approval as an agent acting
for the named person rather than presenting it as the person’s approval.
The response also includes ran_in (thread_id and bot_id) when the recorded
conversation that ran the proof is readable by the caller; otherwise it is null.
See the proof page description
for how the page uses it.
started_by is populated when the run’s operator label identifies an agent acting as
itself; ran_by then identifies the agent rather than attributing the run to the person
whose identity the woken turn borrowed. See the proof-page guide
for wake labels and other cases.
In person_decisions, an entry with counted: false and state: "recorded_not_counted"
is a ruling retained without a sign-off the server can verify. It has standing: false,
applied_count: 0, and an accept object containing the exact finding_keys and
findings the person can confirm at their own review door; it does not count as an
acceptance or identify an approver. accept is null when the page cannot offer an accept
because it is showing a past moment or cannot read the review; words explains where the
ruling can be accepted. Otherwise, when the page shows a graded review, accept.shown_review
contains its diff_hash, run_id, and population_hash, binding the accept to that review.
In the accepted-person breakdown, provenance: "legacy_pre_marks" and
label: "approved (legacy)" appear only when all of that person’s standing acceptances are
grandfathered pre-mark approvals. A proof-page decision composed entirely of rulings carried
onto the shown review from an earlier grade over unchanged evidence can instead have
provenance: "carried_from_an_earlier_grade" and
label: "carried from an earlier grade".
checked_against.lines contains labelled {label, text} plan lines; sentences
remains as their sentence-form compatibility representation. A plan check can include
table when its membership check restates the compared table’s whole rows. A finished
check event in happened can include result, such as 1 difference or
No differences; it is absent for other events and unfinished checks.
Each /api/estate/proof-summaries row also has runs, the Mission’s finished checks for
that comparison, oldest start first. A run has at, completed_at, comparison, matched,
found, told, new, and not_found_again; new and not_found_again are populated only
when the run can be compared with the preceding check, and differences not found again are
not necessarily fixed. checks_run is the round’s distinct recorded data-check count, or one
for a planless or structural round; it is null when its historical count is missing.
checks_run_total sums completed rounds through that emitted completion, including planless
rounds omitted from runs. Use the greatest completed_at at or before a replay cursor; the
counters are exact only at emitted completion times, and the earlier snapshot holds between
them. Evidence is applied in start order, so a late-finishing older round does not erase newer
findings. The four per-run problem counters are problems_caught, problems_open,
problems_cleared, and problems_not_checked_again; they represent differences, recorded
failed checks keyed by check and plan, and an otherwise unnamed unconfirmed plan, with no
current rulings applied retroactively. problems_open counts those still open; problems_cleared
counts problems absent after an explicit table or same-plan recheck, less any reopened problems;
problems_not_checked_again counts absent problems without evidence of a recheck. Missing
completion times or truncated history make cumulative counters null; a missing count among
rounds completed by the snapshot makes checks_run_total null, while ambiguous completion
times or a missing counted start make problem counters null. The summary reads the
comparison’s findings ledger to omit rule-explained differences from problems_caught and
fixed, aligning those counts with the proof page’s problem tiles; the full problems list
still includes them as explained. Individual runs still report the differences each check
found. The ledger read is bounded to 2,001 rows, like the proof page’s problem list.
coverage gives the current proof page’s source-bearing object count, the number compared,
and the strict matches; it is not historical object coverage and is null when the proof page
is unavailable. wall_clock_seconds is elapsed time from the earliest finished round’s start
to the latest completion, including a single
round’s duration. It is null when there are no finished rounds, the history is truncated, or
any start or completion time is missing; it is elapsed span, not active effort or billed cost.
For POST /api/estate/spec-conformance/author-seat, repository and chat-upload asset forms, including the ref requirement, are documented in the author_spec tool reference.
Terminal writes are conditional: once a run row has a terminal status, a later
completion does not replace its status, finished_at, or terminal summary. This
preserves a stale-run reconcile, refusal, failure, or cancellation when work finishes
after the row was closed. The late arrival is retained in the row’s summary instead:
summary.late_completions is an oldest-first list capped at 20 entries, and
summary.late_completion_count counts every late arrival without that cap. Each list
entry contains status_attempted, an ISO-8601 UTC at timestamp, a basis describing
the terminal state that won, and the attempted summary_attempted document (or null).
An at-least-once retry with the same terminal status and summary is treated as already
recorded and is not added again. Heartbeat updates after a row is terminal are ignored.
The run envelope also declares these values as late_completions and
late_completion_count, always present even when they are an empty list and 0, so
clients can distinguish “no late completion” from an older server that does not expose
the fields. The run’s own summary remains authoritative: these envelope fields report
what a refused terminal writer attempted, not a replacement verdict.
All run-envelope timestamps (started_at, finished_at, heartbeat_at, provenance
stamped_at, and late-completion at) are ISO-8601 strings with an explicit timezone
offset when the stored value is a valid ISO timestamp. A malformed stored timestamp is
served verbatim and logged at WARNING rather than being assigned an invented offset.
When stale-run reconciliation reaps a still-running row, it preserves the driver’s
existing summary and adds the liveness account under summary.reaper. That block
includes reaped_at and a basis naming the measured liveness evidence and the
estate_char.reconcile.stale_after_seconds threshold that was applied; the existing
top-level error and error_type remain available for readers that already use them.
If the stored summary is not a JSON object, the raw value is retained in
summary.reaper.unparsed_summary rather than discarded. The reaper only closes a row
that is still running when it writes, so a completion that wins the race is not
rewritten as abandoned.
For a multi-member estate scan, each member’s run summary includes
estate_scan: member_ordinal is this run’s one-based position, members_total is the
number of members, and members lists each member’s ordinal, connection, database, and
objects_pinned count (null when it covers every object in its schemas). The run’s
objects_total counts only its own member; each other member has a separate run and
snapshot, listed by list_snapshots(estate_id=...).
Readiness checklist conversation provenance
POST /api/estate/readiness and GET /api/estate/readiness/{readiness_id} include
these fields in data:
These fields describe provenance, not answer content; an identical submission from a later
conversation keeps the first record’s
recorded_in_thread.
A readiness save carries forward answers it does not name, and carries current spec hashes
or documents when the corresponding request list has no entries. HTTP requests have no
conversation identity, so the current pair record is the source of carried values. The
tool-only replace option is not part of the HTTP request schema.
Transition surface
A transition groups comparison tracks into one migration effort and exposes its history through a portfolio and a detail view.transition_ref accepts either
the opaque transition_id or the stable lowercase-hyphenated slug.
GET /api/estate/transitions
The portfolio returns one data item per transition, ordered newest first. Use
the optional status query to filter by active or closed; the endpoint does
not apply a default limit.
GET /api/estate/transitions/{transition_ref}
The detail response contains data with the transition’s edges, all generations
in oldest-first order, pins for the current generation, and derived counts.
Edges are included only when every named estate is visible (an edge naming no
estate is shown only to a principal with manage_all_connections). Pinned comparisons
and runs are included only when the caller may see them. edge_count and station_count
are calculated from the visible edges; station_count counts distinct estates touched by
those edges. sealed_spec_count counts distinct sealed specifications cited by the current
generation.
Each edges item includes track_id, position, source_role, target_role,
the source and target estate identifiers and dialects, the track status, and
the mediation set: platform_pack, schema_spec_hash, or both. When both are
present, they describe one hop that changes platform and schema; they are not
two separate edges.
Each generations item includes:
The
current_generation_pins items contain pin_kind, subject, pin_ref,
and an optional label. Valid pin_kind values are spec_seal,
effective_view, diff_of_record, run_of_record, register_commit,
closing_record, and archived_board.
POST /api/estate/transitions
The creating identity is taken from the authenticated request context, not from
the body. The response returns the newly created transition detail.
POST /api/estate/transitions/{transition_ref}/generations/{generation_number}/close
This endpoint closes the named generation and returns its data record. Closing
is append-only: the request records closed_at and the authenticated caller as
closed_by, and a second close of the same generation returns 409.
Each
pins item has the following fields:
Pins on a closed generation cannot be added or changed later. A missing
transition or generation returns
404; malformed citations return 400; a
conflicting or already-closed record returns 409. A diff_of_record or
run_of_record pin that is unknown or not visible to the caller returns 404 using
the same response as an unknown object (Unknown comparison: … or Unknown run: …),
before the generation is written. When a pin names a comparison or run, close loads its
visibility scope before writing; each pinned run adds one run read.
POST /api/estate/transitions/seed/etfjpx
Seeds the recorded ETFJPX on Databricks lineage. The first call creates one
transition with three comparison edges and three generations (V17, V18, and
Transition v1); V17 and V18 are archived committed-board records, while
Transition v1 is the current native generation. A repeat call is safe and
returns the existing detail with created: false; a first successful call
returns created: true.
POST /api/estate/characterize
The optional
Idempotency-Key request header names the submission
when a caller needs to distinguish an intentional repeat from an accidental duplicate.
While an identical characterization is queued or running, Genesis returns the
existing run_id with reused: true and reused_basis instead of starting a second
scan. A distinct header value forks the submission identity and permits a second
concurrent scan on purpose. A repeat after the first scan finishes always starts a new
scan because characterization measures the estate at an instant; failed or cancelled
runs likewise do not satisfy a repeat. A new scan returns reused: false and
reused_basis: null.
The caller’s resolved identity governs interrupted characterization resume; see Prover
identity and resume isolation for the boundary. The
completed run summary reports resumed_from_interrupt, objects_resumed,
objects_measured, objects_reread_changed, objects_newly_measured, and objects_kept;
objects_resumed counts staged measurements reused, objects_measured counts measurements
run in this attempt, and objects_newly_measured counts results staged by this run.
objects_reread_changed is the subset of staged measurements read again because their
table changed or could not be confirmed unchanged; objects_kept counts reused and newly
staged results when the lineage is retained, otherwise 0. Where the engine cannot
provide a version that covers every change, the resume window alone bounds reuse.
For Databricks carry-forward behavior and terminal summary details, see the
Genesis Prover overview.
For dialect: "palantir_foundry", database is the Foundry space RID or
display name, and schemas contains folder paths relative to that space (or
folder RIDs). Dataset objects are addressed by their Foundry dataset RID rather
than display name; the catalog provider resolves those RIDs and the measurement
queries run through Foundry’s Spark SQL surface. Omit schemas for the full-source
scope. See Palantir Foundry integration
for connection setup and Genesis Prover for the
measurement model.
Each as_of_window_rules item is a strict pass-through of the estatechar AsOfWindowRule shape — only object_name, anchor_column, lower_bound, and upper_bound are accepted. Bounds must be fixed ISO date or timestamp literals (not wall-clock functions such as current_date); when both bounds are present, lower_bound must not be after upper_bound. A malformed rule (missing bounds, non-ISO literal, reversed bounds, or unknown key) returns 422 before the background scan starts.
Each provenance_assertions item is a proposal, not a client-supplied
attribution or license. The server ignores attribution fields, stamps the
authenticated caller, and verifies the source column against the live catalog
during the scan. A proposal cannot override an existing declared foreign-key
origin; a malformed wire shape returns 422, while a proposal rejected by the
shared provenance rules returns 400 before a run is created. Each assertion
adds one catalog query during the scan, and a catalog contradiction fails the
scan rather than silently applying the relationship.
For object-level scope, each name must be schema-qualified and spelled as the
catalog spells it, except that matching ignores letter case. Blank names,
unqualified names, and names with empty or edge-whitespace components return
422 before the background scan starts. If a non-empty objects list includes
an object that is not present in the catalog or is not visible to the scanning
role, the run fails instead of silently characterizing a smaller scope. Set
allow_absent_scope when an additive greenfield spec intentionally names
relations that the build will create: names absent from a visible catalog are
then reported in the completed run’s summary.scoped_absent, alongside
summary.catalog_rows_seen, rather than failing the run. For a builder-created
target schema, when the characterization also took a whole-database listing,
the completed summary includes summary.listing_rows_seen and its corresponding
summary.listing_provenance so the row count remains attributable to that
listing. These fields are omitted when no listing was taken. The premise still
requires the object pin and a visible catalog; an empty estate remains an error.
For a target scan, allow_absent_scope: true without absent_scope_basis returns
422 rather than creating a snapshot. Use absent_scope_basis: "relocation" when
the target is the not-yet-moved round-0 side of a declared relocation, or
"frozen_build_did_not_produce" with its complete build_evidence when the build
failed before producing the declared relations. The declared basis is content-addressed
with the observation boundary and is carried into proof summaries so an element over a
relation measured absent can be identified as unbuilt rather than as a failed read. See
Prover run results
for how proofs present that distinction.
Submit-and-return: the response returns immediately with run_id, top-level status: "running", and data containing { "success": true, "run_id": "...", "status": "running" }. The scan and chained contract compile run as a background task; snapshot and contract fields land later via the runs/snapshots feed. On source scans, the static fault-drill coverage meter runs on the same background run only when estate_char.fault_drill.run_on_scan_default is true (schema default false); otherwise the terminal summary carries fault_drill_skipped and operators use POST /api/estate/estates/{estate_id}/fault-drill to drill deliberately. Follow progress live over /api/ws/estate/live?run_id=<run_id> or poll GET /api/estate/runs/{run_id}.
GET /api/estate/discover-schemas
Successful responses include
schemas (sorted list of selectable non-system schema names; engine-system schemas such as information_schema, pg_catalog, ClickHouse system, or SQLite temp are excluded per dialect, matching full-source characterization scope) and error (null on success, or a human-readable message when discovery could not run). For SQLite, the returned schema names are the databases attached to the connection; the per-connection temp database is excluded because its objects are non-durable.
Discovery opens the saved connection as the authenticated human caller, not as a bot identity. A personal connection therefore works when that caller owns it and can read it; the route does not substitute a bot identity for the authenticated owner.
Discovery is best-effort: a bad connection, unsupported dialect, or query failure returns schemas: [] with error set (not HTTP 500) so the scan form can fall back to free-text schema entry instead of blocking a characterize request.
GET /api/estate/estates
Successful responses include
data as a list of named estates, each with a scan rollup (scan_count, latest_scan) for the landing. scanned_snapshot_ids lists every snapshot bound by that estate’s scans, sorted; it is [] when none of its scans bound a snapshot. Every row also carries archived (boolean, default false) — the landing SOURCES grid visibility hide, distinct from lifecycle archive (active: false, status: 'archived'). Each row carries origin_label: null for an estate registered by an operator, or a sentence identifying a startup-backfill estate whose id begins estate_bf_. Set or clear the visibility hide with PATCH /api/estate/estates/{estate_id}/archived.
POST /api/estate/estates
Two request shapes are accepted (both role-agnostic):
- Crafted / multi-member — pass
members(one or more(connection, database, schema-scope)rows, possibly across several connections) and optionallycode_assets(git ETL repos). - Flat single-member shim — pass
connection_ref,dialect, anddatabaseat the top level (plus optionalschemas/excluded_objects) and omitmembers. Normalized into a one-element member list.
* Provide a non-empty
members list or all three flat shim fields (connection_ref, dialect, database).
Registration is idempotent by scope. If an active estate visible to the caller already
covers exactly the requested member scope — the same connection, database, schema list,
and excluded objects for every member — the endpoint returns that estate unchanged with
data.reused: true; it does not validate, save, or start a preflight for this request.
The existing estate’s name, role, kind, source_only, and code assets win. The response
sets data.registered_by_caller to indicate whether the current operator registered that
estate; when it is false, use the estate as-is and do not edit its definition. The
data.reused_basis explains the reuse, including when the matching estate belongs to
another operator. A different schema list or database is a different scope. If the
matching estate is not visible to the caller, the endpoint returns 409 without naming
it or creating a second estate. A newly created estate returns data.reused: false and
data.registered_by_caller: true.
At backend startup, Genesis runs an idempotent backfill for legacy duplicate scopes. It
considers live, non-platform estates created strictly before September 24, 2026 at
06:26:26 UTC with the same stored connection, dialect, database, schema pin, and excluded
objects. The oldest registration (created_at, then estate id) remains live; younger
matches are archived, not deleted. Include archived rows with
GET /api/estate/estates?include_archived=true.
For a new estate, define-time validation runs before save: every member connection is
checked. All reachable → status: "validated"; any unreachable → status: "partial"
with each error recorded. Nothing is scanned yet — call
POST /api/estate/estates/{estate_id}/scan separately. Overlap on any underlying database
is allowed when the scope differs.
When another estate already fronts the same physical (dialect, database) boundary,
the save still succeeds but data includes siblings_over_same_database (an empty
list when none exist) and siblings_basis. The disclosure is not a refusal: use the
returned estate_id to address the intended estate explicitly, or archive an accidental
duplicate.
The registration response also includes data.same_source_estates and
data.same_source_basis. On SQLite, these identify every other live, operator-registered estate using the
same connection’s file, regardless of its registered database name; on other dialects,
the source is the connection and database. These estates remain separate and their proof
histories are not merged or refused. When another estate reads the source, each entry in
same_source_estates contains estate_id, name, connection_ref, database, and a
proof_history object with proved and latest_proof_run_id. The registering estate’s
data.proof_history has the same shape. The latest run is the newest prove or standalone
system_diff proof; latest_proof_run_id is null when none exists. If no other live
estate reads the source, same_source_estates is empty and data.proof_history is null.
same_source_basis summarizes which estates have proof history. On SQLite, finding these
estates costs one narrowed estates query; when any others are found, the response also
reads proof history for each one and for the registering estate (two indexed run reads per
estate).
Registration also always returns proved_sibling_estate_id, proved_sibling_choice, and
proved_sibling_basis. When this estate has no proof history and exactly one visible
sibling has proofs, the choice is use_proved_sibling and its id is returned; when several
visible siblings have proofs, the choice is ask_which_proved_sibling, no id is selected,
and the basis names them. In other cases the choice is no_proved_sibling and the id is
null. These fields steer the agent but do not change which estate registration returns.
Each proved sibling also requires one estate read and visibility check before it can be
named as a choice.
When estate_char.preflight.enabled and estate_char.preflight.auto_on_save are both true (schema defaults), Genesis also fires a non-blocking post-save preflight run in the background after create — the save response returns immediately while readiness lights accrue in the live feed and GET /api/estate/estates/{estate_id}/preflight/latest.
Successful responses include estate_id and data with the persisted estate (payload.connections holds the full member list; denormalized card columns reflect the primary member — members[0]). The operator identity is taken from the authenticated session, never from the request body. Registration responses include data.registered_by_caller (boolean; present on every response), data.unpinned_code_assets (string[]) naming attached assets that have not been cloned or had a Databricks revision captured, and data.source_only_suggestion (object or null). The suggestion is present for a role: "source" request with no code assets and source_only still false, unless the matching estate was registered by someone else. It gives the update_estate(..., source_only=true) call for raw data; attaching no code is not inferred to mean raw data.
When a same-scope estate is reused, data can also include stale_included_objects and
stale_excluded_objects (string[]), plus stale_scope_basis and
stale_scope_unchecked (string), for saved scope names that could not be confirmed. See
the toolkit guidance
for how to interpret and correct these disclosures.
PATCH /api/estate/estates/{estate_id}
Two mutation modes coexist (only passed fields change):
- Scope-only edit (legacy): pass
schemas/excluded_objectsto re-pin the first connection’s scope in place. - Full
members[]+code_assets[]replacement (ISS8): passmembersto add / remove / edit sources wholesale — every member is re-validated,payload.connectionsandpayload.validationare rebuilt atomically, and denormalized card columns followmembers[0]. Whenmembersis passed, scope-only fields are ignored. Passcode_assetsto replace attached ETL repos ([]clears them). Estate edit payloads typically omit server-generatedclonemetadata; Genesis preserves a storedclonewhen the incoming asset omitscloneand source identity is unchanged (first non-blank ofbot_git_repo,url, orconnection_ref, plus trimmedrefandsubdir— whitespace-only edits on those fields do not count as a change). Changing the source drops the stored clone; an incoming asset that explicitly includescloneis written as-is. Omitmembersto leave existing connections untouched.
When
estate_char.preflight.enabled and estate_char.preflight.auto_on_save are both true (schema defaults), Genesis also fires a non-blocking post-save preflight run in the background after a member or code-asset replacement — the patch response returns immediately while readiness lights accrue in the live feed and GET /api/estate/estates/{estate_id}/preflight/latest.
The patch response also always includes data.unpinned_code_assets and
data.source_only_suggestion with the same meanings as the registration response.
Because an edit has no registration role, source_only_suggestion is null on edits;
use update_estate(source_only=true) explicitly when the estate is raw. The response can
also include data.stale_included_objects and data.stale_excluded_objects (string[]),
plus data.stale_scope_basis and data.stale_scope_unchecked (string); see the
toolkit guidance.
POST /api/estate/estates/{estate_id}/scope-removals/restore
Put one excluded object back in the estate’s scope. This is a person’s undo of an agent
removal; the updated estate marks each standing removal record for that object as restored
by the authenticated user. The response uses the estate mutation shape, with the saved
estate in data.
POST /api/estate/estates/{estate_id}/scope-removals/confirm
A person confirms that an agent’s removal of an object, made after the object failed a check,
was right. Each standing removal record for that object that raises an owner question gains
confirmed_at, confirmed_by (the person’s label) and confirmation (basis person, the
person, and the channel: sign_in, pat, or auth_disabled). Later grades still list the
removal, as confirmed by that person, and raise no owner question for it. The response uses
the estate mutation shape, with the saved estate in data.
POST /api/estate/estates/{estate_id}/archive
POST /api/estate/estates/{estate_id}/archive
Archive is the estate lifecycle’s delete: the row is never hard-removed (scan timelines, snapshots, and comparisons still reference it). Genesis sets
active=0 and status='archived', which drops the estate from GET /api/estate/estates (unless include_archived=true), target-candidate pickers, and GET /api/estate/system-diffs (unless include_archived=true) — archiving an estate retires its comparisons from the live grid. Re-archiving an already-archived estate is idempotent — HTTP 200 with already_archived=true and no second state change. This is not the landing SOURCES visibility hide — use PATCH .../archived for a reversible card hide that leaves active/status untouched.
Successful responses include estate_id, archived (always true on success), already_archived, and data with the persisted estate row.
PATCH /api/estate/estates/{estate_id}/archived
Set or clear the landing SOURCES grid visibility hide on a named estate. Two distinct “archive” concepts exist:
- Lifecycle archive (
POST .../archive): soft DELETE — setsactive=0andstatus='archived', requiresratify_source_contract, and retires everything downstream (landing cards, target candidates, comparison participants). - Landing visibility hide (this route): cosmetic and reversible —
archived=truehides the source card from the landing’s default SOURCES view;archived=falserestores it. Never changesactiveorstatus; the estate stays a live target candidate and comparison participant.
Successful responses include
estate_id, success, and data with the persisted estate row (including top-level archived).
POST /api/estate/estates/{estate_id}/validate
Re-runs the define-time reachability pre-flight for every member connection in
payload.connections, stores the fresh validation report on the estate, and updates status to validated when all members are reachable or partial when any is not.
Each member connection is checked as the authenticated human caller. A personal connection is valid when that caller owns and can read it; the validation request does not fall back to a bot identity.
Successful responses include data with ok (all members reachable), connections (per-member reachability results), and validated_at.
POST /api/estate/estates/{estate_id}/preflight
Submit-and-return: runs three business-readable readiness checks — agent ACCESS
(deterministic reachability for every member connection), ETL understanding
(agentic, read-only — the agent locates and reads registered
code_assets and
returns a run plan; no writes; estates with no code assets fail immediately with
no agent turn), and CLONABILITY. Postgres members get a real
provision-then-teardown probe; SQLite members get a real copy into scratch
storage, an integrity check, a write/read probe, and teardown. Snowflake,
Databricks, and ClickHouse members are checked for reachability and marked
run-time-verified. A source-only estate omits ETL entirely and reports it under
data.not_applicable, so an estate with no code assets can be ready. The
response returns immediately with run_id, top-level status: "running", and
data. The ETL check commissions a bounded agent turn on a visible,
thread-linked thread; if that turn reaches
estate_char.preflight.etl_timeout_seconds (default 600 seconds), the ETL
light reports a timeout and names that setting instead of judging a partial
reply as malformed. Follow GET /api/estate/runs/{run_id},
GET /api/estate/estates/{estate_id}/preflight/latest, or
/api/ws/estate/live?run_id=.
GET /api/estate/estates/{estate_id}/preflight/latest
Read-only: returns the latest preflight readiness view without minting a run. Successful responses include
data with ready (all checks green), ordered per-check lights (pending / running / passed / failed, each with a business diagnosis and optional agent thread link), not_applicable (for example, the ETL check and its source-only basis), run_id, and run_status. When the estate has never been preflighted, data is null (not HTTP 404).
For which scan supplies the readiness baseline, see Prover estates and
characterization.
POST /api/estate/estates/{estate_id}/code-assets/clone
Clones git assets and persists their resolved
clone slots; for Databricks asset shapes,
revision capture, identity resolution, and failure behavior, see Estate registration and
code assets.
Successful responses include data with cloned / captured / skipped / failed counts, updated code_assets, and the updated estate.
POST /api/estate/estates/{estate_id}/code-assets/lineage
Derives dbt transform lineage from the estate’s cloned code assets (manifest-free parser) and reconciles parsed models against the estate’s latest scanned snapshot. Best-effort per asset; fills each asset’s
lineage slot.
Successful responses include data with derived / models / matched counts, updated code_assets, and the updated estate.
POST /api/estate/estates/{estate_id}/artifact-reproduction
This route implements the reproduce_artifact tool.
It executes the declared artifact and writes to the named utility estate; the artifact
must already be present in the source estate’s derived lineage.
The response is wrapped in
data; see the
reproduce_artifact tool contract
for verdict semantics and optional evidence fields.
GET /api/estate/target-candidates
Each row includes
estate_id, name, dialect, database, kind, scanned, last_scan_at, object_count, scan_count, compared_before, and last_verdict (when applicable). When a finished scan exists, object_count is resolved from the latest snapshot’s identity fields; the endpoint does not load the full characterization document just to render this count. A last_verdict for the latest forward comparison exposes measured unlicensed, published published_unlicensed, and withheld_unlicensed / withheld_indeterminate counts; the withheld fields are null when the minting run withheld nothing or its withholding is unavailable.
POST /api/estate/estates/{estate_id}/scan
Submit-and-return: the response returns immediately with
run_id, scan_id, estate_id, top-level status: "running", and data. It may also include stale_included_objects, stale_excluded_objects, stale_scope_basis, or stale_scope_unchecked when stored scope names could not be confirmed; see the toolkit guidance. Every scan is a new run and timeline event — never a replay of a finished recording. On source scans, the static fault-drill coverage meter chains on the same run only when estate_char.fault_drill.run_on_scan_default is true (schema default false); otherwise use POST /api/estate/estates/{estate_id}/fault-drill to run it on demand. Follow progress live over /api/ws/estate/live?run_id=<run_id> or poll GET /api/estate/runs/{run_id}.
POST /api/estate/estates/{estate_id}/fault-drill
Submit-and-return: runs only the static fault-drill coverage meter against the estate’s most recent snapshot + compiled contract — never a re-scan and never the adversarial hardening chain. The drill scores the contract’s catch rate against a synthetic copy of the stored characterization, so it works for any dialect (unlike
POST .../harden, whose live cloner is postgres-only today). The response returns immediately with run_id, estate_id, top-level status: "running", and data. Follow the drill phase live over /api/ws/estate/live?run_id=<run_id> or poll GET /api/estate/runs/{run_id}. When the estate has no finished scan or no compiled contract yet, the run still finishes cleanly with fault_drill_skipped in the summary (not an error). Drills per run are capped by estate_char.fault_drill.max_drills (schema default 250; set 0 for no cap).
POST /api/estate/estates/{estate_id}/harden
Submit-and-return: runs only the source-hardening chain (fault drill + adversarial self-drill + harden/recompile + learnings) against the estate’s most recent snapshot + contract — never a re-scan. The response returns immediately with
run_id, estate_id, top-level status: "running", and data. Follow the drill phase live over /api/ws/estate/live?run_id=<run_id>.
GET /api/estate/bot-git-repos
No request body or query parameters.
Successful responses include data: a list of local Genesis git repos attachable as estate code assets, each with repo_id, path, branch, and remote_url. Only git-mode repos the operator may view (via the platform’s RBAC-aware git list_repos action) are returned.
POST /api/estate/migration-envelope/grade
Submit-and-return: seals an empty, platform-clause-only spec (“move
source_engine → target_engine, change nothing”) and grades the pair’s persisted comparison against it. The response returns immediately with run_id, status, sealed_spec (spec_hash, sealed_at, spec_name, source_engine, target_engine, n_items), and data. Follow live over /api/ws/estate/live?run_id=<run_id> or poll GET /api/estate/runs/{run_id}.
Idempotent when diff_hash is set: legacy callers that omit transport identity reuse only a viable envelope run for the named comparison whose recorded grader version matches the current build. Runs with no recorded version or a different version are graded again. Identity-aware callers reuse only an existing viable run with the same snapshot pair, engines, authored envelope fields, estate scope, bot-plus-authenticated-human identity, and grader version; a different owner or binding claims a separate run. A reused response has data.reused: true, returns the existing run_id and current run status, and includes data.reused_from_grade_version. No new grading task is spawned for a reused run.
POST /api/estate/spec-conformance/grade
Author, seal, and grade a change-item spec against the source and target snapshots. The
endpoint returns immediately with a run_id and status: "running"; poll
GET /api/estate/runs/{run_id} or follow /api/ws/estate/live?run_id=<run_id> for the
finished run view.
The grade reads its snapshot bindings as the authenticated human caller, not as a bot
identity. A personal connection therefore works when that caller owns and can read it;
the request does not substitute a bot identity for the authenticated owner.
The Prover overview describes how
source-coordinate item loci map to target columns for checksum handling.
Each
item_verdicts entry contains item_id, locus, verdict (pass, fail, or
unverified), licensed, obligation_ids, and obligations. Each nested obligation
contains obligation_id, the same three-way verdict, licensed, title, optional kind,
and an optional election record. The structural attribution still determines where a
result appears; the value-obligation verdict determines its status. An obligation marked
fail with licensed: true does not become a finding, and unverified items are not
treated as successful re-verification.
Each check in a matched item’s verdict_obligations also reports measured,
unmeasured_cause, and unmeasured_reason. Measurement is separate from the
verdict: a check can fail without comparing any rows. When measured is false,
the cause is missing_target_column, missing_source_column, read_error,
permission_denied, empty_population, or not_run, and the reason explains
the case. Both unmeasured fields are null when measured is true.
Successful responses include run_id, status, sealed_spec, and data. Graded
comparison results identify the comparison engine in comparison_engine_version; it is
the recorded version for the comparison, or null when the comparison predates engine
recording. When an item
declares expected_type_family or expected_scale, grading compares the target column’s
type family (and numeric scale when declared) rather than its backend-specific type spelling.
Ticket-licensed mismatches fail the structural item and produce a repair directive;
author-inferred mismatches remain informational notes. Items without these fields retain
existence-only grading. The completed run view can include obligation_verdicts with
source, coverage, and normalized items, plus the type_family block when the family
tier graded one or more declarations; matched spec rows can also expose verdict,
verdict_licensed, verdict_obligation_ids, and verdict_obligations. The verdict also
reports items_matched_in_scope, the requested changes the oracle matched by place and
shape, and retains confirmed_changes as a deprecated count that also includes clauses
confirmed by checks. After obligation verdicts are applied, items_passing counts confirmed
rows with a pass verdict, including confirmed removals and items whose only failing check
is an accepted difference. It remains null until checks are applied and on a
structural-only grade. When the summary has an item list,
conformance.items_unconfirmed counts requested changes whose item verdict is fail or
unverified; a shape=card run row retains this count under conformance when it drops
the items list.
An added column that the confirmed diff marks present and that has no check of its own
can also pass when the sealed target model classifies it as load metadata and the
comparison recorded the matching column as licensed metadata. The verdict then carries
the item’s satisfied_by object (with label, declaration, and
comparison_reading), and the matched spec row exposes it as
verdict_satisfied_by. These passes count in coverage.items_pass; the headline names
the changes and states that they are satisfied by target-model classification, rather
than by a check. Other added columns and items with their own checks keep their normal
verdict behavior.
POST /api/estate/spec-conformance/grade-compiled
title (body, string or null, maximum length 200) is the grade’s business title — for
example Foundry aviation: raw → ontology rebuild (spec-mediated) — stamped on the run’s
provenance.title and shown as the comparison’s headline in the dashboard, above its
technical source → target label. Omitting it, or sending a blank one, is deprecated: the
request is still admitted, and the response carries Deprecation: true and a Warning
header saying the title will be required. The agent tools prove, compare and grade
already refuse an untitled call.
Grade a registered, seal-verified compiled artifact against a live estate and persist
the result. The endpoint runs the artifact’s obligations against the two registered
connections and its structural items against the mediated diff for the source and
target snapshots. Unlike POST /api/estate/verifications with
compiled_spec_hash, this endpoint persists one spec_conformance run and returns
the durable #N identifiers of findings it minted. Register an external artifact
first with POST /api/estate/spec-conformance/compiled; the artifact is never
re-compiled here.
This is a synchronous, warehouse-bound operation: one comparison runs per
obligation, with a query on each side for keyed obligations and one count for an
invariant, followed by grain probes as needed and structural grading. A real artifact
may take minutes, and the work is dispatched off the API event loop. Reading the sealing
seat’s open owner questions also incurs one resolutions read when that seat asked a
question. The route
requires ratify_source_contract and records the authenticated caller as the run’s
operator; it does not accept an operator identity in the request body. Before the
service can inspect or reuse a prior result, both submitted connections must be
registered and authorized for the exact bot-and-human transport identity. A revoked
caller receives the same disclosure-safe 400 as an unknown or unregistered
connection, without the prior run being named.
When diff_hash names a comparison from a retired diff engine, structural grading
recomputes it under the current engine on the same stored snapshots and checks the
snapshots’ measurement-library versions. The run provenance identifies both comparisons
under comparison_recomputed_under_engine; a snapshot that another measurement library
took, or a comparison the recompute cannot reproduce, is refused with 409. The
Prover overview
describes the recompute and refusal conditions.
A type_mapping that can carry fractional values into a scale-zero numeric type is
conditional: only a source column measured with zero fractional values is licensed.
For each such candidate column, grading reads the live source (not the comparison’s
source snapshot), with one full counting scan per source relation containing candidates.
A failed or unavailable measurement does not license the mapping. When measured, run
provenance includes whole_numbers_read with read_at, columns,
compared_source_snapshot_id, and basis so the live-source reading is distinguishable
from the comparison snapshot. A passing keyed row check can also let a type mapping license
the listed value summaries when it proves that column row by row; see the
Prover mapping guide
for the exact conditions and readings.
For how derived_checked affects structural findings, see the [Prover mapping guide]
(/docs/Genesis-Prover/Overview#declared-target-mappings-and-data-vault-shapes).
When
compiled_spec_hashes is supplied, the service grades the named specs as one set for
a table specified in parts. The set must contain at least two distinct hashes; a one-member
set is rejected, and the schema rejects an empty list or a request that supplies both forms.
The set has its own spec_hash, derived from its member hashes in any order, while
spec_hashes lists the sorted members in the response, submit handle, and reused result.
Each member is loaded and seal-verified; the set itself has no seal.
Set attribution is ownership-based: a column belongs to every member whose structural item
covers it or whose declared target_model mapping carries it. A column covered by more than
one member is listed in spec_set.overlaps. A column covered by no member is the only
column-level drift in a set grade; its reason says not covered by any spec in this set and
it remains for adjudication rather than receiving the single-spec implementer_error lean.
Object-level differences retain their ordinary grading behavior. Every member’s obligations
run, and each obligation is attributed only to its own member’s items. An obligation’s
member is the spec that sealed it, unless it names an owning_relation — the one table it is
about, which its SQL reads — that exactly one member owns (a scope entry expecting same, changed or new
of it, a structural item on it, or a declared mapping into it). Then it is that member’s. A
check spanning two tables, sealed by the spec that holds the other table only as context,
uses this to belong to the spec that owns it; with no owner or several, it stays with the spec
that sealed it.
If members claim different values for the same column’s change kind, new locus, expected type
family or scale, or change expectation, the result records a spec_ambiguity finding against
the conflicting specs and leaves neither claim graded. Conflicting scope expectations leave
the object out of the merged scope. These conflicts appear in spec_set.conflicts; SQL
obligations are not compared for conflicts. The run view also includes spec_set.item_owners,
declared_columns, and the member hashes used for each overlap or conflict. The warehouse
work is the sum of running each member’s obligations.
The request identity includes the sealed spec, both connections, both snapshots,
resolved engines, catalogs as resolved, invariant_side, diff_hash, estate_id,
estate_coordinate, round_n, and tiers. On Databricks or Snowflake, an omitted
catalog resolves from its side’s named snapshot database, so omitting it and naming
that same database are one request; naming a different catalog is a different request.
The snapshot pair and diff_hash are hashed as omitted unless tiers
includes structural, because only that tier reads them: the same derivational-only
grade submitted once bare and once carrying a comparison it never uses is one
request, not two. That is why supplying a diff_hash without the structural tier is
refused rather than dropped — a grade that ignored it would name no comparison, which
the adjudicator refuses permanently, and a re-submission adding the diff_hash alone
would hash to the same identity and return that same run as reused. The rule is decided
ONCE, at the service admission boundary, for every caller; this route’s 400 is a mapping
of that verdict, and a caller invoking the service directly receives the raised error with
no status code. The refusal text is the same at both. Adding the tier does mint a new run, because tiers is
unconditionally part of the identity. When supplied, estate_coordinate likewise distinguishes a repeat measured
against a changed estate from the earlier run. run_label and task_id are excluded,
but the exact bot-and-human transport identity is retained in the request key. An
identical authorized request from that same identity resolves to the same run; a
different credential scope gets a distinct request identity and cannot receive the
earlier caller’s run. A finished run is returned with
reused: true; a run still in progress is not returned as a verdict and instead
produces 409 with the run id to follow. Errored runs do not satisfy a repeat, so the
next identical request can grade the round again. The claim is atomic within one
backend process; stale abandoned runs are released by the periodic stale-run
reconcile.
For catalog-qualified deliverables, target_catalog is used on both sides of value
obligation attribution: a target reference such as target_catalog.schema.table can
match the structural locus for that object, and a column-grain reference can include the
column as the fourth segment. The completed run normalizes a matching locus to
schema.table or schema.table.column; a different catalog is not attributed to the
graded item.
Catalog binding is decided once during grade admission. For an engine that cannot bind a
session catalog, naming the database recorded by that side’s snapshot identifies the
connection and proceeds without a catalog; naming any other database, or naming one when
the snapshot records none, returns 400 with no obligations graded. Omit the field when
the connection’s own database should be used. This same rule applies to the catalog fields
on POST /api/estate/verifications when compiled_spec_hash is supplied.
The completed grade summary makes measurement coverage explicit. obligation_verdicts
contains items for obligations claimed by structural items and unattributed for every
obligation that claims none. Failed or unverified obligations in either holder are included
in the persisted finding population sent to the Adjudicator; reading items alone can omit
failures. Each obligation verdict also carries requirement_source, either the declared
{kind, citation} provenance or null when the seal has no readable declaration. This is
display context only and does not affect grading. It also contains unverified, a list of
every obligation that did not reach
PASS or FAIL, with its obligation_id, title, relation, and error. relation is
the declared locus for an invariant and null for comparison obligations, so an errored
invariant still names the relation it governs. An errored entry can also include
errored_sql: source_sql_sha256 and source_sql_chars, and/or target_sql_sha256
and target_sql_chars for the statements declared by the seal. These pointers identify
sealed SQL without including its text in the run record; use the run’s sealed-spec hash to
read the artifact. If source_read records a landed-copy substitution, errored_sql
still hashes the sealed statement, while source_read.statement describes the rewrite.
Each entry in data.obligations also carries
the same relation and its own error when the instrument failed. When no declared obligation reached a verdict,
the conformance block sets no_drift, drift_count, and verified to null and adds a
drift_basis explaining that no measurement was made. Partial grades measure the
decided obligations and use drift_basis to name the errored remainder.
Structural grade summaries also include data.summary.conformance.compared_nothing. When
it is true, the comparison matched nothing and no requested change matched in scope, so
passing checks of target columns do not make the grade verified. See the Prover guide
for the grade’s pairing conditions and review meaning.
When a keyless profile ran, data.summary.classification.keyless_profile lists each
object as {object_name, target_object, basis, cause, measures, outcome} and
classification.checked_by_profile counts entries whose outcome is checked.
For interpretation and profile coverage rules, see [keyless profiles]
(/docs/Genesis-Prover/Overview#keyless-profiles).
The coverage block also reports nothing_to_check for obligations whose checks measured
an empty population and items_nothing_to_check for structural items whose attached
obligations all had that outcome. These counts are separate from decided, errored, and
unmeasured obligations: an empty check is neither a pass nor a check that could not run.
For a declared target mapping, obligation_verdicts.history_tested_by_checks lists
historized objects whose versions a decided check of the spec’s own counted despite no
declared history source; each entry carries object, reason, and checks (obligation_id,
title, outcome). This is partial history coverage, not a full history test; see when a
grade did not measure
for the grading criteria.
For the obligation_verdicts.clauses_not_checked interpretation against the seal’s
clause_gate, including the case where a commissioned document has no clauses, see
how the Prover grade reports unchecked clauses.
When the sealing seat’s open-question record was read, the grade summary carries its still-open
owner questions in spec_open_questions and their count in spec_open_question_count. Each
entry has number, question, label, and seat_run_id; answered or closed questions are
omitted. If the seat’s questions were not read, these fields are absent; if they were read and
none remain open, the list is empty and the count is 0. These fields are informational and
do not change the grade verdict.
When accepted-but-unchecked differences were measured, data.summary.spec_accepted_unchecked_readings
names each one with spec_item_ids, object, column (null for a whole-table reading), and
reading. The field is present as an empty list when measured and none remain; when absent,
the grade did not record these readings.
data.summary.spec_accepted_unchecked_on_review is present only when positive and counts
accepted readings offered as members of that grade’s review population. A person’s review
acceptance can settle those members, but does not change the machine grade’s unchecked count.
data.summary.spec_ruled_credits, when present, lists readings credited by a person’s
standing ruling and a passing recompute check; each entry identifies spec_item_id,
object, column, rule_id, clarification_id, decided_by, optional decided_on and
persons_words, recomputed_from, and the credited readings. Both fields are omitted
when no applicable review offer or ruling credit exists.
A failed recompute may also carry recompute_causes on its obligation record and matching
verdict.failed_checks entry. The object contains version, causes (likely missing source
filters or wrong-row joins, with evidence counts), unexplained columns, and not_probed
reasons. These explanations are diagnostic only; they never change a verdict. See the
Prover guide
for when the probe runs and its limits.
The run envelope also exposes the same obligation totals as summary.obligation_counts:
obligation_count, passed, failed, errored, unmeasured, and nothing_to_check,
plus failing_obligation_ids (all failing ids, not capped at ten), obligations_at, and
detail_path (the run-detail path). The count is absent when the run recorded no
obligation coverage. summary.items remains the structural tier’s spec-item list and
can be empty on a derivational-only grade; use summary.obligation_counts to tell what
obligations were measured. The obligations_at paths point to records under
summary.obligation_verdicts.items[].obligations and
summary.obligation_verdicts.unattributed. Each obligation record carries value_locus:
for a value check it contains key_columns and compare_columns from the sealed check;
otherwise, or when either set is absent, it is null. This coordinate is used for durable
finding identity; see finding identity in the Prover guide.
For a multi-tier grade, wall_seconds includes
the earlier derivational work as well as the structural tier, so it reports the run’s
elapsed time rather than only the final tier’s duration.
When structural items failed, summary.obligation_counts.failed_items groups the
failing spec-item count by the checks that failed them. It has count and by_check;
each entry names an obligation_id and the number of items it failed. An item failed by
more than one check is counted under each, so per-check counts can sum to more than
count. The grouped counts also appear in the grade headline. When more than six checks
failed items, the headline names the five largest groups and points to
verdict.failed_items for the remaining groups. An absent failed_items means the
summary did not record this grouping.
The structural conformance block’s derived_checked, derived_unchecked, and
derived_unchecked_reasons are null when the comparison reported no derived target
whose whole-table digest it skipped; derived_basis explains that no split applied.
When there is a split, the lists and reason map are populated and derived_basis is
null. A run view rebuilt from a stored summary that recorded no classification also
returns null for these fields, but derived_basis says the split was not recorded.
For a committed fork, summary.readings_not_taken lists the rival obligation ids whose
FAILED readings were not taken by the build. The rival is marked licensed and counted
with the passes only when exactly one committed lean identifies the fork’s taken reading
and every fork member is decided; the election record names reading_taken, taken_by,
reading_not_taken, taken_verdict, and the committed_lean_held basis. When the leaned
reading itself fails (taken_verdict: "fail"), it stays the fork’s one failure at its own
row count, and the failing rivals are still reported as readings not taken rather than as
failures, since a rival differs from the taken reading by design on every build. An
uncommitted fork, an undecided member, conflicting committed leans, or a failed leaned
reading beside a passing rival (the build took the rival) leaves the readings graded
as-is. The verdict also returns verdict.readings_not_taken, one record per rival with
obligation_id, reading_not_taken, reading_taken, taken_by, taken_verdict,
ambiguity_group, and why_not_taken. That last field explains the seal’s committed lean
and includes its justification or prior when recorded. When the verdict still claims
verification, its headline names the readings not taken and says that the claim holds for
the reading the build took; the run outcome is PASS, and verdict.readings_not_taken is
its annotation.
For a by-reference grade, spec_hash is the submitted compiled_spec_hash and
projected_spec_hash is the separate, unregistered seal of the structural projection
created for that run. Direct-envelope and derivational-only grades report
projected_spec_hash: null; use spec_hash_basis and
projected_spec_hash_basis to interpret those values. Runs created before these fields
were introduced are not back-filled.
For the series state machine, open-demotion behavior, attribution rules, and
unmeasured cases, see How agents drive the Prover.
This endpoint persists the resulting obligation_pass_to_fail_ids,
obligation_regressions, obligation_regressions_basis, and
obligation_regressions_unmeasured fields in data.summary; a tier that cannot be
measured is omitted from certification rather than reported as a clean empty list. The
findings tier carries its own findings_regressions_basis because this product path
does not have per-round finding verdict vectors for the same comparison.
The same summary carries structural_observed_at, structural_observed_through,
obligations_read_at, obligations_read_through, and vintage_basis. The first
pair is the structural snapshot interval; the second is the sequential live-read
interval. Fields are null when their tier did not contribute a reading. The closed
vintage_basis values are single_tier, same_vintage, blended, and
vintage_unknown; see how a run reports observation vintage
for their interpretation and the zero-obligation behavior. A blended grade also
carries vintage_between_reads, {status, source, target}, whose status is
observed_changed when write history shows a newer data write, confirmed_unchanged
when every table’s history confirms no write, or not_confirmable when an estate has no
history Prover reads or its history could not be reread. For what not_confirmable does
and does not establish, and when the caveat says nothing was seen to change, see
how a run reports observation vintage.
The grade’s vintage_caveat
names changed tables or gives the reason confirmation was unavailable, and is null
when the grade is confirmed unchanged. vintage_between_reads is null for every other
basis. GET /api/estate/spec-conformance/run-for-diff/{diff_hash} returns the grade’s
vintage_caveat and vintage_between_reads beside data.
Successful responses include:
For how
scope_rename_suggestions.links_unaccounted affects the conformance
headline and review, see the Prover guide.
An unclaimed failed obligation check normally creates a durable finding at its declared
relation, even when no structural item claims it. If it has recorded table reads and every
read is qualified to a database other than the graded catalog, it remains a review blocker
but does not mint a finding; that is an authoring fault, not a target-build defect.
For a compiled grade, data.summary.spec_seal_state is full or partial. A partial
grade also carries data.summary.open_clause_count and data.summary.open_clauses; each
entry has clause, text, reason, remedy (actor, kind, statement, options,
measured_candidate), evidence (measurements with sql and result), and depends_on.
An entry about pinned build code carries build_code_assets, an array listing every file’s
name and content_sha256; when there is one file, build_code_asset is also present for
compatibility. A run-output clause carries
about_run_output: true. Review packages keep all pinned files in a multi-file accepted
record, and separate run-output packages by named job when the proof identifies one.
data.summary.build_code_clause_count counts code and run-output clauses in the clean-data
headline despite its historical name. For the grade behavior and review decisions, see the
Prover guide.
data.summary.verdict.open_clauses is the count. When the grade would otherwise be
verified or verified_with_indeterminate, a partial seal sets its status to
verified_with_indeterminate and verified to false. Other partial-seal grades use
Partially specified · N clauses open (singular clause at 1), not Verified wording.
When a grade leaves any clauses open, data.summary.open_clauses_since_previous reports
each as new, remaining, changed, or untracked against the previous comparison’s
finished grade, matched by clause id. It also lists clauses no longer open in resolved.
status is first when the pair has no previous comparison, compared when the previous
grade was read, or unread when it could not be read; on an unread round, clauses are
untracked, not new. This field is absent when the grade leaves no clauses open.
A grade submitted with check_ids has data.summary.spec_seal_state: "subset", plus
data.summary.graded_check_ids and data.summary.spec_check_count. Its headline identifies
the selection as Partial grade · N of M checks; passing checks remain amber at best, never
Verified. It does not replace the comparison’s or spec’s latest grade and cannot be
approved. The Prover guide describes how to use
the result.
When a stored grade has no spec_seal_state, the reader uses its
provenance.grade_engine_version when that value is dotted unsigned ASCII digits: a
version older than the partial-seal reader is read as full, regardless of grade time.
For a missing or unreadable version, a known grade time before
2026-10-14T05:00:00+00:00 is read as full; without a grade time, a missing version
is full and an unreadable version is unknown. Other missing-state grades are
unknown, not Verified.
For a set grade that includes the structural tier, data.summary.spec_set_reading is the
card-ready reading of the set. It contains headline, members, overlaps,
conflicts, not_covered_by_any_spec, and not_covered_count. members identifies
each spec_hash as Spec 1, Spec 2, and so on, and includes that member’s seal
when the run provenance has one. Each overlap gives its locus, the covering
spec_hashes, and a reading such as <locus> is covered by 2 specs. Each conflict
includes both claims in first and second, the locus and field, and a reading
that says neither claim is graded until the specs agree. Each uncovered difference gives
its locus, comparison, and a neutral reading that it is not covered by any spec in
the set; not_covered_count is the exact count when the stored summary provides it.
This block is absent for a single-spec grade and for a derivational-only set grade.
When run_system_diff produces no diff_hash for a compiled grade, the service reads the
object names in each snapshot to check whether the sealed target_model binds to both
inventories. If the sealed mapping does not bind to those inventories, the request returns
409 Conflict identifying the spec mapping as the cause and advising a corrected spec or a
wider source-estate scope followed by a scan. Fresh snapshots of the same estates would be
refused the same way. If an inventory cannot be read, the response reports the comparison
run’s original failure instead; this diagnosis reads one object inventory per snapshot.
For the non-persisting, submit-and-return alternative, see
POST /api/estate/verifications with compiled_spec_hash.
POST /api/estate/adjudication/runs/{run_id}/adjudicate
Send one readable Prover subject to the independent Adjudicator for attribution.
The path accepts a spec_conformance, spec_drill, or system_diff run, and a
prove run handle resolves to the grade when one exists or to its comparison
otherwise. A no-spec proof therefore reaches judgment through its comparison’s
own elements rather than through an empty grading envelope. The server assembles
the subject from persisted findings and comparison materials; callers do not
supply or rewrite the findings. The route requires ratify_source_contract and
records the authenticated caller as the invoker.
The response returns immediately for a fresh proceeding with
status: "running"; poll the returned adjudication_id using
get_adjudication_run for the verdicts. A repeat with the same (run_id, round_n) normally returns the existing proceeding with reused: true and its
recorded verdicts, without commissioning another bot turn. This deduplication
is per backend process, not an exactly-once guarantee. A fresh proceeding needs
an LLM provider — the seat is a bot turn — and without one the route answers
503 with details: "llm_provider_not_configured", naming the cause, the
remedy (Settings > AI Providers) and what still works; a repeat over a round
that already has a proceeding is a read and answers 200 regardless. A
provider that is configured but does not answer a readiness check (an expired
login, an unreachable endpoint, or a spent quota) is refused the same way with
details: "llm_provider_unreachable", plus cause (login_expired,
unreachable, rate_limited, empty_response or provider_error) and operator_detail, the
provider’s own error for an operator. Nothing is started.
If an earlier stalled Adjudicator turn could not be stopped, a new proceeding over the same
comparison is refused with 400 while that turn is still in the runtime. Each replacement
request and reconcile sweep asks the runtime to stop it again; a replacement can open once
a stop request is accepted or the turn leaves the runtime.
For a grading subject, adjudication reads the run’s persisted durable finding
population, including open rows from both the obligation and type_family
ledgers. For a comparison subject, it reads the comparison’s classified
elements, retaining unlicensed, indeterminate, and errored members and
counting match and licensed elements in its composition. When a subject has
no findings, no proceeding is opened and the response explains why in
no_findings_basis; a no_findings status alone is not evidence that the run
was clean. clean_run means the recorded Human Review blocker population was
complete and empty, review_blockers_only means blockers remain but none is a
durable finding for this seat, blockers_unmeasured means the blocker count
could not be read or the population was incomplete without finding a blocker,
and clean_comparison means the comparison census contains only matches and
licensed differences. For the blocker worklist and its measurements, use
GET /api/estate/comparisons/{diff_hash}/review/population.
A verdict may carry the
instrument_defect outcome; see False alarm (Prover)
for its user-facing label and behavior.
Successful responses include:
POST /api/estate/spec-conformance/author-seat
source_estate_basis has the shape { "connection_id": string, "reason": string }; both
fields are non-empty and required when the object is present.
For case-variant target names, see the author_spec contract.
On Snowflake, an unbindable catalog name is refused before the authoring run is created;
the author_spec contract
documents the accepted identifier forms.
source_catalog and target_catalog can place both estates on one connection as separate
catalogs. In that placement, source_catalog binds seat statements except the registration
check for an invariant declaring invariant_side: "target"; target_catalog binds that
check along with target-side reads and preparation. The seat’s ad-hoc _query_database
reads use the target catalog only when every schema named by the query exists there and at
least one is absent from the source catalog; otherwise they use the source catalog. See the
author_spec catalog-binding guidance
for the full behavior. A successful target-catalog check is recorded as
resolution_target_catalog, not as source observation evidence. When target_connection_id
names another connection, target_catalog belongs to that connection and is used only for
target-engine preparation.
Omitted catalogs use the applicable connection’s own catalog. A named catalog on an engine
that cannot bind session catalogs returns 400 and no run is created.
target_connection_id must name exactly one registered connection that the caller may use.
An unregistered or ambiguous reference returns 400, a connection the caller may not use
returns 403, and an unreadable connection store returns 503; none creates a run. The
connection is kept on the run row, and the seal reads it from there.
For the ticket preflight that applies before authoring starts, see the
author_spec contract.
The seat run is asynchronous by default: the response returns a handle with data containing
run_id, thread_id, status: "authoring", mode, interpretation_policy, and
authoring_tooling, plus the common run envelope.
The hidden thread is retained as the run’s audit transcript. The seat’s status is derived from
that thread and the compiled-spec store. The seat’s data.status uses one word per run:
authoring while the stored run is queued or running, sealed for stored succeeded,
and refused, failed, or cancelled for those stored terminal statuses. The common
envelope beside it keeps the stored spelling and exposes it as summary.raw_status when
that spelling differs from the normalized run vocabulary. sealed is returned only when
spec_hash names a registered compiled artifact. A sealed response includes
compiled_spec_url for
GET /api/estate/spec-conformance/compiled/{spec_hash}; a refused response indicates the
seat returned spec_hash=NONE; malformed or unregistered seals are failed.
The run envelope’s summary.ticket_preflight records whether the ticket was checked and,
when checked, its findings and scan-based proposals. The HTTP author-seat request does not
accept a target_estate_id, so its preflight is recorded as unchecked with the reason the
source or target estate is missing. For a scan check before the seat starts, use the
author_spec tool, which accepts
both estate ids.
When a conversation resubmission omits target_model and the pre-check carries a mapping
registered by an earlier round, the submit handle includes
data.target_model_carried_from, the run id of a round whose seat registered that mapping.
The author_spec contract documents
which rounds are eligible when a commission’s estate_id changes and when an omitted mapping
is refused before a run.
A conversation commission with an earlier sealed round cannot start another authoring run
under the same commission and spec_name without repair_of; the refusal names the full
spec_hash to repair. A deliberately fresh spec uses a new spec_name. The exception is a
commission whose sealed rounds carried no mapping: a call that supplies target_model can
author that spec again with the mapping. This check runs before creating a run or thread.
resubmission_of explicitly names an earlier run and replaces the conversation lookup; it
allows an HTTP caller, which has no authoring conversation, to carry a mapping. The named run
must be a spec-author seat run even when target_model or repair_of is supplied. If
target_model is omitted, a mapping is carried only when the named run’s seat registered it
(or it carried a mapping registered by an earlier seat); a named run with no mapping carries
none. The seat checks the carried mapping against this request’s source; the named run’s
spec_name, connection, and estate do not have to match. A supplied target_model is used
as sent, and with repair_of the repaired seal’s mapping is used; in either case the named
run is checked for seat type only. An unknown run and one the caller may not see both return
404 Unknown run; a non-seat run or an unregistered proposed mapping returns 400 naming
resubmission_of. These refusals create no run.
At finalization, the seat compares every relation-observation receipt’s connection with
the requested connection_id. A receipt from another connection is refused as
re_anchored unless source_estate_basis explicitly names that substitute and explains
why it is accepted as the source. An accepted substitution is recorded in the sealed
artifact and finalize result as re_anchored_from; ordinary seals expose the declared
source and the reason no substitution was recorded. See relation observation evidence
for the receipt and seal fields.
When assets is supplied, the response’s data.intake reports the caller’s inventory
before the seat derives any obligation. Every named asset must be labelled canonical or
hypothetical; the seat never supplies or corrects a label. A bundle containing a
hypothetical asset runs a findings pass and does not seal (data.intake.phase is
findings). Submit the resolved bundle again with all assets canonical to author and
seal it. Intake and sealed assets also carry server-stamped asserted_by and label; see
the author_spec tool contract
for the attribution semantics. Document-carrying intake and sealed assets also carry the
document pin: source, chars, content_sha256, and the storage metadata needed to
identify the bytes actually read. The document itself is not
in the summary or brief; the seat reads it with read_spec_asset. Omitting assets, or
sending an empty list, is the
no-separate-assets case and authors normally.
Before creating the run, the route refuses a ticket and its document assets when their
combined numbered items and table rows exceed the seat’s registration capacity: 100
clauses per accounting call times estate_char.spec_author.max_registration_calls
(default 200). This returns 422 and no run handle. If a pinned document later cannot
be read during finalization, the run ends refused with the recorded rule
asset_documents_unreadable; see the author_spec tool contract
for the refusal details.
When clarification_ids is supplied, each record must exist and belong to estate_id;
otherwise the request is refused with no authoring run. The seat records the ids and their
stored provenance in the sealed specification; see the clarification tool contract
for the recording rules.
On a repair, inherited ruling ids are listed separately in the run summary as
clarifications_carried_from_lineage; the caller’s clarification_ids remain the explicit
submit-time list. The summary also records earlier_owner_rule_offers and exact repeated
offers withheld from the owner in owner_rule_offers_already_made. The seat’s repair brief
behavior and when earlier questions or checks may be raised again are described in the
author_spec contract.
target_type_dispositions is validated at submit: a disposition for an undeclared,
duplicate, non-TIME, or time-zone-bearing column returns 422 before a run starts. For a
Databricks or unidentified target, the asynchronous seal refuses with
target_time_encoding_unratified if a declared TIME column lacks a matching disposition
ratified by a signed-in person for the same estate and exact storage choice. The current
accepted disposition is STRING encoded as HH:mm:ss; choosing native TIME as the
disposition’s physical type is not accepted yet, and a time-zone offset cannot be represented
by this encoding. Each disposition that reaches ratification validation causes two
clarification-store reads at seal. See the author_spec contract
for the statement format and caller workflow.
With wait_seconds, the route returns 200 if the seat terminalizes during the wait. If the
wait expires first, it returns 202 with the same handle, status: "authoring", and
wait.expired: true; the seat is not cancelled and the caller should poll on. The generic
GET /api/estate/runs/{run_id} route is the common poll surface, while the seat-specific
status route exposes the seat’s counts, findings, and open questions.
If the seat’s thread and completion make no progress for the configured
estate_char.spec_author.no_progress_seconds bound, the driver ends the run with terminal
status: "error" and summary.error_type: "run_stalled". The response’s next action says to
start the run again after checking work already committed. The driver reads activity from the
runtime that dispatched the turn, not only from the completion stream; an unreadable runtime
view does not declare a stall. Before writing the terminal row, it asks that runtime’s
hard-stop to stop the turn and retries a refused request according to the configured stop
policy. The summary says whether the stop was taken or the requests ran out; anything written
afterward is recorded as a late completion beside the terminal row. If all stop requests are
refused, the process keeps asking on reconcile sweeps and replacement submissions; a new run
for the same operator and connection is refused with 409 until a stop is accepted or the turn
leaves the runtime. A poll that cannot read the thread counters or the owning runtime does not
declare a stall.
A turn that ends with an ordinary reply but no required RESULT line is handled separately
from a stall. The driver confirms that its final reply is the last thread row and that no turn,
background run, wake, or mail remains pending, on two consecutive polls. It then continues once
in the same thread, preserving work already registered. If that turn also ends without a
RESULT, the run closes as status: "failed" with summary.error_type: "incomplete_result";
summary.error includes the last reply and dispatch ids, and next says to start the run again
after checking registered work. A reply without RESULT is never treated as a seal or refusal.
Before creating the run, the route checks that the configured model provider answers. If no
provider is configured, it returns 503 with details: "llm_provider_not_configured". If a
configured provider does not answer, it returns 503 with
details: "llm_provider_unreachable", cause (login_expired, unreachable,
rate_limited, empty_response, or provider_error), and operator_detail; no run or thread is created.
The readiness probe is shared across model-backed seats according to
llm.provider_preflight_ttl_seconds.
GET /api/estate/spec-conformance/compiled/{spec_hash}/substrate
Read only the SUBSTRATE section of a seal-verified compiled spec. This is the customer’s
stated requirement for how the change must be built; it states no obligation and is not
graded. The response’s data contains spec_hash, declared, and clauses. declared: false means the ticket stated no substrate, so clauses is empty for that reason.
POST /api/estate/spec-conformance/compiled/{spec_hash}/self-certification
Record the building agent’s self-certification against the sealed substrate. This is a
statement, never a proof: nothing measures it and no Prover verdict reads it. The response
is labelled kind: "self_certification" and is_proof: false.
When the spec declares no substrate, the statement is recorded as the builder’s substrate
declaration instead: the clauses are the builder’s own (what it built on and where it
departed), and the response is labelled
kind: "substrate_declaration" and
anchored: false — it is not certified against anything the spec stated, and the spec does
not gain a substrate. A statement against a declared substrate is labelled
kind: "self_certification" and anchored: true. The request is refused with 400 when a
clause is not present in a declared sealed section, when a declaration names no clause,
or when a clause is submitted twice. An identical statement is
idempotent: the response returns the same certification_id and created: false on a
retry. A new statement is appended rather than replacing an earlier one.
GET /api/estate/spec-conformance/compiled/{spec_hash}/self-certification
Return every self-certification for the hash, newest first. The response is labelled as a
self-certification and never as a verdict. An empty certifications list means nobody
has certified against the spec; it is not a finding or a non-compliance result. Each row
carries kind and anchored as above, so a builder’s declaration on a spec with no
substrate never reads as a certification against it.
GET /api/estate/spec-conformance/author-seat/{run_id}
The response’s
data contains run_id, thread_id, status, mode, and the authored counts
(structural, obligations, settlements, and finalize_rounds) when available. On a
terminal run, finalize_rounds remains the seat’s own count from its RESULT line, while
finalize_round_history carries the finalize attempts recorded on the run row, including
each attempt’s status, findings, and refusal rules. result_line_disagreed names
finalize_rounds when the seat’s count differs from the number of recorded attempts, even
when no artifact was sealed; the count remains the seat’s self-report, so the marker does
not decide which side is wrong. The terminal summary also retains
authoring_effort, with the run’s authoring cost and counts by kind. It also includes
findings and open_questions; each open-question entry carries its number, text,
status (open, answered, or proceeded), owner_answered, deferred_to (the named people
an open question was left for, or null), and the current resolution label and metadata.
summary.open_questions contains questions put to the owner;
migration-default questions that were held back are retained separately as
summary.migration_default_questions, an array of {question, property} objects. The field is
omitted when empty. See [resolve_open_question]
(/docs/Genbot-Toolkit/Additional-Tool-Groups#resolve_open_question) for how that field
distinguishes an open or agent-closed question from an agent-recorded answer.
A compact run-card projection also carries summary.open_question_choices. Its list keeps
every question and option, shortening text when the serialized choices exceed 4,000 bytes;
entries then have shortened: true. If the list still exceeds the budget after shortening,
each entry has see_full_card: true; read GET /api/estate/runs/{run_id} for the complete text.
A full or partial sealed result includes spec_hash and compiled_spec_url. When a sealed
seat has a question still awaiting the agent, the common run envelope’s next names
resolve_open_question with the next question number instead of handing off directly to
prove. The next handoff for deferred_to questions is described in the Prover’s
open-question guidance.
Statuses are authoring, sealed, sealed_partial, refused,
failed, or error.
When a failed run names an unregistered spec hash, its summary.error may identify that its
mission was started without a signed-in person; see the spec-author seat guidance.
When stale-run reconciliation interrupts an unsealed seat run whose thread still has its
registered draft, summary.resumable includes resubmission_of and a basis explaining
that the draft can be continued. Submit another author-seat request with that run id as
resubmission_of and the same connection_id to continue the stored draft; otherwise a
new run starts without that draft. The run remains error because the interrupted run
itself cannot finish.
For status: "error" with summary.error_type: "run_stalled", use the next action to start a
new run; the original turn may still write a late completion because it was not interrupted.
Failed model calls are reported in the terminal summary as provider_fault or turn_error; see
the Prover provider-fault guidance
for which failures retry and which end immediately.
The common envelope’s summary.seat_settings_defaulted lists authoring settings left unset;
summary.seat_settings_inherited records inherited settings and catalogs. See the
author_spec contract for
submit-time tooling inheritance and the load_prior_spec reference
for catalog inheritance. The terminal summary also retains Registrar activity under
registrar_phases and registrar_withdrawn_obligations, including ruled withdrawals, so
polling the run preserves checkpoints and withdrawals recorded during authoring. Its
registrar_phases.checkpoints list is newest first in the run summary, marked by
registrar_phases.checkpoint_order: "newest_first"; the seal’s checkpoint record remains
oldest first. This ordering also applies when a run ends without a seal. If an oversized
response is shortened by dropping trailing list elements, this order keeps the final review
rather than only the earliest draft checkpoints.
The terminal summary also includes sealed_obligations, a mapping from each sealed
obligation_id to its kind. It is placed first in the summary so a byte-offset fallback
retains it unless the mapping itself does not fit. When the sealed artifact has a clause-accounting ledger,
clause_dispositions counts its entries by accounted_by value: obligation,
accepted_difference, not_applicable, and open. The three closed-disposition counts are
present, including zeroes; open is present when any clause is open. clause_dispositions
is omitted when the seal has no ledger. Each sealed run also reports spec_seal_state
(full or partial) and open_clause_count, measured from the artifact (0 for a full seal,
null when a partial seal’s coverage block cannot be read). For a partial seal,
open_clause_remedies lists each open clause’s clause, reason, remedy actor, and remedy
statement as remedy; it is null if the block cannot be read. result_line_disagreed names
open_clauses when the seat omits the required partial-seal count or reports a count that
differs from the artifact. On a repair, the summary can also include
clarifications_carried_from_lineage, earlier_owner_rule_offers, and
owner_rule_offers_already_made; the first distinguishes inherited rulings from ids supplied
by the caller. On a repair, unapplied_removals is included when the seat reports a requested
removal whose obligation the sealed artifact still carries; it maps each such obligation_id
to the remedy for recording the owner’s ruling. A run-finished notice leads with a warning
that this seal is not the requested repair. See Prover repair guidance
for how to record the ruling and commission the repair. The run’s
provenance.seat_settings_defaulted also records which settings the deployment default decided.
Every read of the run — the envelope, the
data half, each run-list row and the seat status view — shows a provenance setting the round
inherited as the inherited value, and neither seat_settings_defaulted list names a setting
once it has been inherited.
When summary.spec_assets includes an asset with provenance: "hypothetical", the
run is a findings pass and cannot seal. The common run envelope’s next names the
hypothetical assets and says to review summary.findings and handle
summary.open_questions; before commissioning a run to seal, label each such asset
canonical with its basis, or omit it. Resubmitting while an asset remains
hypothetical starts another findings pass.
Agents resolve questions through the
prover_tools resolve_open_question tool; the owner
can also settle them from the decision-card endpoints below. The resolution is append-only
and the latest one for a question is its current state. The same open_questions view is
included when reading the compiled spec that the seat sealed.
GET /api/estate/spec-conformance/author-seat/{run_id}/decisions
Read the decision card for a completed spec-author seat run. It includes the run’s open
questions followed by the assumed decisions represented by leaned forks in the sealed
artifact, numbered after the questions. Each item includes its kind, question, options,
recommended answer, basis where applicable, status, and resolution details. Questions
without valid reported choices have no recommendation. The fingerprint identifies the open
items and their defaults; send it with the owner’s decision request.
The response wraps the card in
data: seat_run_id, spec_hash, estate_id, items,
open_count, fingerprint, and repair_wanted (the spec hash and clarification ids needed
to repair when the owner chose an answer other than the recommendation and it changes the
plan, otherwise null). Seal status is not
included on the card; the run-finished notice carries it. Each item has
item_id, number, kind (question, assumed, or settled), question, options, recommended,
basis, status (open, decided, withdrawn, or settled_by_agent), decided_answer,
decided_by (the recorded principal, usually an email), decided_by_name and
decided_by_user_id (the person’s display name and user id, or null when unresolvable),
clarification_id, withdrawal, deferred_to, and label. A question may
remain open after the owner decides other card items when it was left for named people and
they did not answer it. The read costs one run read and one resolution read, in addition to
the run visibility check.
Each item adds answer_changes and blocks_sign_off. See Prover decision-card
guidance for
their meaning.
POST /api/estate/spec-conformance/author-seat/{run_id}/decisions
Record the signed-in owner’s decisions for currently open card items. The authenticated human
is the actor; the request cannot supply the identity. By default, items omitted from answers
take their recommended answer. Set only_answered to leave omitted items open and take no
defaults; the thread’s question card uses this when the person answers only some of its
questions. An item left for named people has no default applied when omitted and remains open
either way. The card does not expire, and nothing is recorded before this request. Choosing an
answer other than the recommendation sets repair_wanted when that answer changes the plan,
for an assumed decision or an open question with a recommendation. The click records the
clarification but does not start a repair run.
The
data response contains the refreshed card and decided, one entry per answered item:
item_id, number, kind, question, answer, changed, and clarification_id. Each
answer is recorded as a clarification ratified by the owner, with its item resolution in the
same transaction. The notice to the run’s conversation is best-effort after the write. This
operation writes per open item, so use one request for the complete click; its cost is two
clarification writes and one resolution write per item, plus a conversation message when one
can be delivered.
POST /api/estate/spec-conformance/author-seat/{run_id}/decisions/reopen
Put an item an agent withdrew back on the owner’s card. The human caller is recorded as the
actor; identity is not accepted from the request body.
The response contains the refreshed decision card in
data. This writes one append-only
resolution. It costs one run read, two resolution reads and one insert, in addition to the
run visibility check.
POST /api/estate/spec-conformance/compiled
* Supply exactly one artifact form:
artifact, artifact_text, or file_ref. Supplying none or more than one returns 422.
Use this endpoint when an agent or other authoring process sealed the artifact outside the Genesis server. Prefer file_ref when the sealed file is uploaded; otherwise send its exact text as artifact_text. Use the parsed artifact only for content assembled as an object. Do not send a seal: the server derives the seal from the artifact, verifies the claimed spec_hash, validates the artifact shape, and then stores it so GET /api/estate/spec-conformance/compiled/{spec_hash} can serve the seal-verified view. The authenticated caller is recorded as registered_by in provenance, together with the registration timestamp; when an agent acts on behalf of a person, that person is recorded as registered_for.
An artifact carrying app_surface is accepted only if recompiling it from its
sealed source snapshot produces the submitted spec_hash. It must also contain
obligations, use at least the default 10 samples, and set coverage to at least
0.8; a hollow block or a hand-edited app spec is refused. Use
seal_app_spec
to produce the app spec instead of editing the sealed artifact.
App specs are also checked against their current source before registration; see the
Foundry migration guide
for the Workshop and bundle checks. Older stored app specs that need re-registration
are identified by app_spec_check.needs_reregistration on reads and refused for proof.
An externally sealed spec with a readable migration shape on only some structural items is still registered, but its advisory findings includes a partial-shape finding naming undeclared items. Grading those items abstains; use the declare-shape endpoint below to fill them.
Registration also checks visibility of any connection named in provenance. A connection the caller may not use returns 404 with a message that says it is unavailable and that it may be inaccessible or unregistered; the response does not confirm which. A declared parent the caller may not see is refused as one the store does not hold. If the submitted content is already stored but hidden from the caller, the result reports already_registered with findings and content measurements from the submitted artifact, without disclosing the stored parent, coverage, or lineage.
Successful responses include data with registered: true, the spec_hash, already_registered, advisory findings, and content_sha256 plus content_sha256_basis. When the artifact’s model lists unassessed tables, findings also include unassessed_but_assessed if its scope, structural items, or obligations assess one, or unassessed_without_scope if the spec declares no scope. These findings report contradictions in externally sealed artifacts but do not block registration. For byte forms, content_sha256 is the digest of the bytes supplied and the basis says whether they are the sealed bytes or a different serialization that canonicalizes to the sealed content. For the parsed-object form, it is null with a basis stating that no caller-supplied bytes were measured. Re-posting an already stored hash writes nothing and returns already_registered: true; findings do not block registration. That no-op is on the CONTENT only: because nothing is written, the coverage in such a response is measured against the stored row’s OWN parent and carries a coverage_basis saying so, rather than against the parent_spec_hash the repeat supplied — which the store would not have honoured. coverage and coverage_drop_basis are the gate’s own record and are stored in a schema-owned field of the row, never inside provenance: a caller-supplied value under either name is stripped at the write, on every path. The separation is what makes the legacy answer sound — provenance is a free-form namespace the caller fills, and filled it under the previous contract too, so a key sitting in it says nothing about whether the gate ran. A repeat that declares a different parent_spec_hash than the stored row is refused 400 rather than answered, since re-posting identical content cannot move stored lineage. COVERAGE is the one thing that does block, and only when parent_spec_hash names a spec this deployment holds: the response then carries a coverage block measuring this artifact against that parent (obligations and structural_items each as before/after, dropped_obligation_ids, added_obligation_ids, dropped_structural_ids, per-kind counts, and shrank), and a reseal that asserts LESS is refused 400 unless coverage_drop_basis states why. An absent coverage block means nothing was measured — read coverage_basis for which case — and never that a parent was declared and nothing was dropped. Every response carries a coverage_basis, including a first registration that declared no parent, which reports no_parent_declared and no coverage: an original is a state the answer names, not one a caller infers from a missing key. The other bases are not_measured_at_registration (a parented row admitted before the gate existed), parent_unavailable (measured once, its parent has since left the store), read_not_taken (this request wrote nothing, so the answer describes the row that persisted) and measured_against_unmeasured_parent (measured against a parent whose own lineage never was). Rows admitted before this gate existed have one stated policy that every read path obeys: re-posting such a row is idempotent success carrying coverage_basis: not_measured_at_registration and no coverage, because a measurement taken now is not the registration-time state the gate attests, and it is not refused even when the parent it names has since left the store — reading a record back is the documented way to see it. A NEW reseal whose parent is one of those rows IS measured against the content the store holds, is still refused 400 if it asserts less, and reports coverage_basis: measured_against_unmeasured_parent, since the diff is true about that one link and claims nothing about the chain above it. A row the gate DID measure whose parent has since left the store reads back with coverage_basis: parent_unavailable, which is a different fact from never having been measured. Declaring a parent_spec_hash this deployment does not hold is refused 400, because the coverage it claims cannot be measured — register the parent first, or drop the field. A mismatch names the claimed hash, the supplied-byte hash when available, and the canonical content hash, with the byte form to use instead of retyping the artifact.
On Snowflake, registration claims both the content hash and the
(parent_spec_hash, round_n)
repair-round slot in the write. Concurrent different artifacts cannot both register under the
same parent and round; the losing request is refused as a round conflict. Re-posting the same
stored content under its existing lineage remains idempotent and returns already_registered: true.
GET /api/estate/spec-conformance/compiled/{spec_hash}
Successful responses include
data with the seal-verified artifact view: artifact (obligations and metadata), seal, provenance (including retained instruction_text and, when ticket prose was submitted, instruction_text_submitted_by, run_author when recorded, canonical spec_files ([{name, markdown}]), spec_files_sha256 integrity hash, target_manifest when present, seat_settings_defaulted when recorded, and the stored clarification and asset provenance), who_decided (the clarification reliance sentence, each clarification with who recorded it, each asset with who asserted its label, and the ticket-prose byline), open_questions (the numbered questions the sealing seat reported, each with its current status, resolution metadata, and display label), and repair lineage (round_n, parent_spec_hash, and related fields). A seal made before clarification provenance was recorded reports clarification provenance unknown. Compiled artifacts include artifact.notes.doctrine_version set to 2026-08-29.grain, identifying the compile doctrine used. Numeric implied-domain misses with a resolvable relation are added as deterministic mandatory invariants for non_negative (min: 0), percentage (min: 0, max: 100), and ratio (min: 0, max: 1); label_set domains remain author-resolved because their allowed values must come from the prose or schema. Axis coverage is checked after cross-family assembly: a cited settlement whose settled_group exactly matches the detected axis id settles that axis even when its resolving sentence does not meet token-overlap coverage, and artifact.notes.ambiguity_axes carries each axis disposition. When the soft fork budget is exceeded, excess ambiguity groups are demoted to plain obligations and retain their underlying checks rather than dropping alternate readings.
For app specs, app_spec_check reports whether recompiling from the sealed snapshot
produces the stored hash. It is absent for non-app specs; otherwise
needs_reregistration is false for a match or true with a reason when the
stored spec needs to be sealed and registered again before proof.
dangling_id_references is also included in data as an array of advisory warning
strings about likely prose references to ids the spec does not hold; it is empty
when no such reference is detected. See the [finalize_spec tool reference]
(/docs/Genbot-Toolkit/Additional-Tool-Groups#finalize_spec) for what the warning
means and how to act on it.
The
provenance.run_author block, when present, records the caller door (mcp_tool_call,
mcp_request, or agent_turn), the outside agent’s declared name when supplied, and the
Genesis agent involved. The declared name is self-reported; it is not the agent’s verified
identity. Older records may omit the block. The open_questions entries use the same shape as the author-seat response above, including
owner_answered. offered_not_adopted lists checks the sealing seat offered the owner as
stated rules that this sealed artifact does not carry. Each entry has obligation_id,
statement, seat_run_id, and the server-owned label explaining that the check is not
graded. A check appears once by obligation id; registered obligations in artifact are the
adopted checks. This list is visible context only and is not part of grading. The read
includes it with the seal by default; the service’s artifact-only path can omit both this
list and open_questions.
POST /api/estate/spec-conformance/compiled/{spec_hash}/qualify
Submit-and-return: loads the parent seal-verified artifact, qualifies bare relation names
against the named connection using the same normalization as the spec-author finalize path,
and registers a new sealed child chained with
parent_spec_hash and an incremented
round_n. This operation is synchronous because qualification is deterministic; it does not
invoke an author, create a run, or create a thread. The successful response returns data
with the new spec_hash, parent_spec_hash, qualified (one from/to receipt per
changed relation field), author_invoked: false, and the normal registration result.
Only relation fields may change. The operation refuses with 400 when nothing needed
qualifying, the pass would change any other field or remove an item, the qualified artifact
fails the seal gate, the parent is tampered or unsealed, or the connection cannot resolve
the names. An unknown parent returns 404; an invalid connection_id returns 422.
Use this endpoint for deterministic name qualification instead of a model-backed repair
round.
POST /api/estate/spec-conformance/compiled/{spec_hash}/declare-shape
Declare the migration shape for a sealed specification whose structural items do not yet
say whether their loci should change or remain identical. This is a synchronous derivation:
it does not invoke an author, create a run, or query a warehouse. It returns a new child
spec_hash chained to the supplied parent; grade that child instead of the parent.
The declaration is written onto structural items that do not already declare a readable
shape; declared items are kept unchanged. The response’s
data includes the new
spec_hash, parent_spec_hash, declared receipt (including filled_items and
kept_items), author_invoked: false, and the normal registration result. An override on
an already-declared item is accepted only when it repeats that item’s shape. A
must_match declaration is refused for a drop item, an override is refused when its
spec_id is not present, and a specification with no structural tier cannot be re-sealed.
POST /api/estate/spec-conformance/consult-reading
* Supply exactly one prose source:
compiled_spec_hash or prose. Supplying neither or both returns 422. With compiled_spec_hash, a spec declaring no canonical documents contributes its retained instruction unchanged. Otherwise the consult receives that instruction followed by every declared canonical document, whole and in declaration order. Each document must match the seal’s recorded length and SHA-256 and be found in the commissioning seat run; the service does not substitute a re-upload or truncate a document. If the source cannot be bound and verified, the consult is refused. A mapping reseal may follow its persisted parent seals, subject to the viewer’s visibility and matching source record. When compiled_spec_hash is supplied but the artifact did not retain instruction_text, pass raw prose instead (400).
Submit-and-return: the response returns immediately with data containing { "run_id": "...", "status": "running" }. The blind author sees only the resolved prose, the ambiguity-group label, and the candidate reading — never the implementer’s artifact, tests, or verifier content. For a compiled hash with canonical documents, the resolved prose includes the original commissioned documents as well as the sealed instruction; document framing and attribution distinguish source text from instructions to the author. If the complete assembled source exceeds 32768 characters or a document is missing, changed, or cannot be tied to a visible commissioning seal, the request is refused rather than starting a partial consult (422). A store read failure returns 503. Poll GET /api/estate/spec-conformance/consult-reading/{run_id} for terminal status. On completion, verdict is licensed (the reading is defensible from the prose and may join the ambiguity group as an election) or rejected (not defensible; malformed model responses are coerced to rejected). The consult identity is the authenticated caller, never a body-supplied bot.
GET /api/estate/spec-conformance/consult-reading/{run_id}
Successful responses include
data with the persisted run row:
GET /api/estate/spec-conformance/run-for-diff/{diff_hash}
Deterministic, uncapped lookup of the
spec_conformance or spec_drill run whose envelope this comparison should open. The newest specification’s authored grades (target_items > 0) rank ahead of the platform-only migration envelope (target_items == 0); within a tier, the newest grade by parsed started_at wins whether or not it verified (spec_conformance before spec_drill when start times tie). A newer unverified grade therefore replaces an earlier verified grade for display. When the selected grade is not verified but an earlier grade with the same spec_hash verified, its run row includes earlier_verified_grade with that earlier run’s run_id and started_at; the most recent such verified grade is named. The field is absent when the selected grade verified or no earlier verified grade of the same spec exists. A still-running grade is the fallback when no finished viable run exists. Successful responses include data with the selected run row when a viable grading run exists, or data: null when the comparison is ungraded — the common case, not an error. The response always names the selected shape in grade_shape. shape=review omits the per-check evidence the run page’s blocker list does not read; use shape=full when detailed evidence is needed. shape=summary also skips validating, serializing and transferring the detailed report, which can be 3.5 MB. Read-only: never mints a run or fires a grade. Use this when the recency-shaped GET /api/estate/runs feed may have dropped an older envelope run for a specific comparison.
With
include_proceedings=true the response also carries proceedings (addressing columns only — no materials and no verdicts; read one in full through the adjudication routes), proceedings_basis, proceedings_truncated, and proceedings_grading_run_id. proceedings_basis separates three facts an empty list alone cannot: measured (this comparison’s grade WAS listed and held these), no_grade (nothing was listed because no grading run resolves for the comparison at all), and not_requested. They prescribe different next moves. Both halves come off ONE resolution — the keyed reads of this comparison’s grade runs this route already pays, including rows whose promoted columns are not yet projected — so asking here costs one prefix listing over the proceedings table rather than a second run lookup.
GET /api/estate/comparisons/{diff_hash}/spec-grades
Returns
data as an uncapped, newest-first list of /api/estate/runs card rows for every spec_conformance and spec_drill run, in any status, that either names this diff_hash in its provenance, artifacts, or top-level summary, or has no estate_id and no target_estate_id and compared snapshots read through this comparison’s source and target connections. The latter includes grades started directly against the two snapshots, even if they graded another comparison of that same connection pair. Estate-bound grades of other comparisons are not included. This read-only list supports the comparison’s spec-grade list; it does not start grading. spec_drill rows are retained historical records; the on-demand spec-drill flow is no longer available.
The caller must have view_connections. A hidden or unknown comparison returns an empty data list. Each returned run is also filtered by the caller’s run visibility, so inaccessible grades are omitted. A server-internal visibility scope has no connection index and therefore matches only grades that name this comparison.
Cost. The endpoint evaluates the caller’s run rule over the whole instance, then makes one uncapped card read for each of the two grading run types and harvests stimulus-differential comparison hashes. Projection adds one compiled-spec store read per 500 distinct cited hashes (none when there are no hashes), one read of reviews for clarifications those seals relied on, and the per-row card projection.
GET /api/estate/knowledge-dossiers
Every facet is optional; results are deduped failure patterns, most-recently-seen first. List rows include
title and meaning (plain-language labels), engine-pair fields, verdict, status, seen_count, and seen_refs — not the Markdown bodies.
GET /api/estate/knowledge-dossiers/{dossier_id}
Successful responses include
data with both rendered Markdown views: estate_view_md (full estate-specific write-up) and redacted_view_md (redacted, safe-to-share pattern document). resolution_md — how the pattern was resolved / licensed / accepted — is present only later in the lifecycle.
GET /api/estate/rulings
Successful responses include
data as a list of ruling fold rows (direction, licensor, flags, scope coordinates) for findings the caller may see. The provenance chain is omitted — read it through GET /api/estate/rulings/{ruling_id}.
GET /api/estate/rulings/{ruling_id}
Successful responses include
data with the fold row plus its full events provenance chain.
Each event also includes note_agent_basis: {basis, agent, person} (basis is
agent_person_present or agent_delegated) when its note was written by an agent’s
approval of a Consult ruling on a person’s word, and null otherwise. This annotates
the seed and ratification events that approval wrote; their stored notes remain unchanged.
For Consult-seeded rulings, resolving the annotation reads the linked Action Review request
and its decision when agent attribution is present; other ruling histories add no such reads.
POST /api/estate/rulings/settle
Jurisdiction components below
estate_id are optional (most-specific-wins); a sub-estate component without an estate_id is refused at the store seam. The licensor identity is taken from the authenticated session, never from the request body (there is deliberately no decided_by field).
Successful responses include data with the ruling fold row plus its provenance chain.
POST /api/estate/rulings/{ruling_id}/ratify
The ratifier identity is taken from the authenticated session, never from the request body.
Successful responses include
data with the ruling fold row plus its provenance chain.
POST /api/estate/rulings/{ruling_id}/unsettle
Withdrawal is supersession, not delete — the slot reverts to escalate and the withdrawn direction stays reconstructable from the event log. The decider identity is taken from the authenticated session, never from the request body.
Successful responses include
data with the ruling fold row plus its provenance chain.
GET /api/estate/ruling-questions
Successful responses include
data as a list of ruling-question rows (build-time clarifications filed mid-build). Only questions the caller may see are returned: questions about estates no visible comparison touches, and installation-wide questions, are omitted except to a principal with manage_all_connections.
POST /api/estate/ruling-questions/{question_id}/answer
Answering settles the underlying
(class_id, jurisdiction) slot and closes the question. The decider identity is taken from the authenticated session, never from the request body.
Successful responses include data with question (the closed question row) and ruling (the settled ruling).
GET /api/estate/improvement-docket
The improvement docket contains candidate_improvement deviations held for human
review, across all estates; entries have no materiality ranking or estate_id
filter. The list includes only entries raised by
comparisons the caller may see, with visibility applied before pagination.
Successful responses include
data as a list of entries with
docket_entry_id, finding_key, element_ref, status, source (adjudicator
or builder), mode (pocket or blocking), the build and declared
behaviour, clause_ref, value and risk assessments, proposed or recorded
waiver_owner and waiver_expires_at (null when no terms were recorded), review fields, and
action_review: the entry’s finding’s current Action Review request
(proposal_id, status, live, decided_by_label, decision_reason, url),
or null when the finding was never asked for. reviewer_agent_basis is an object
{basis, agent, person, goal?} when this entry was accepted through an Action Review
request that an agent approved on the person’s word; basis is agent_person_present
or agent_delegated, and goal is present for a delegated decision. It is null
otherwise. A declined request stays listed
with its reason until the finding is asked for again. Entries
are ordered with open work first, then newest first within each status. The
Prover page shows these entries in the Improvement docket section of its
Rulings tab.
POST /api/estate/improvement-docket/{docket_entry_id}/accept
The reviewer identity is taken from the authenticated session, never from the
request body. Accepting is the licensing act and requires a future expiry; for an
otherwise acceptable entry, a missing, unreadable, or passed expiry returns
400
without writing the acceptance.
The entry is recorded as accepted,
and the finding-wide waived licence is written only when every element of the
finding has been accepted. Until that point, an accepted element’s
register_entry_id remains null; when the last element settles, all element
rows receive the finding’s disposition:<finding_key> register entry id.
Successful responses include data with the updated docket entry.
POST /api/estate/improvement-docket/{docket_entry_id}/request-approval
Asks Action Review to accept every open element of the entry’s finding in one
request of type
prover.decide_improvement_docket_entry.v1. The agent that filed
the entry stays its proposer; the authenticated human caller is the requester
and may approve the request. The agent’s filing now attempts to open this
request automatically; use this endpoint for a person’s ask when automatic
opening failed or an earlier request ended. The request seals its waiver owner
and future expiry for approval; if the filing supplied no usable expiry, provide
one here. A new request expires after seven days. Its sealed request names each
open element, the finding’s current disposition, and the licence approving
installs (waived, citable as
disposition:<finding_key>). When another element of the finding was already
rejected, the request says instead that no licence will be installed, because a
finding is licensed only when every element is accepted. Approving accepts every element in one transaction
and settles the licence once every element of the finding is accepted. Declining
closes the request with its reason and rejects nothing: the elements stay open
and unlicensed, and the finding can be asked for again. The request is withdrawn
if an element is edited or decided elsewhere, or the finding’s disposition moves,
before it is approved.
Successful responses include finding_key, proposal_id, status, url, and
replayed (true when a request still asking for the finding answered instead
of a new one being made).
POST /api/estate/improvement-docket/{docket_entry_id}/reject
The reviewer identity is taken from the authenticated session, never from the
request body. Rejecting closes the entry as rejected and writes neither a
licence nor a finding disposition.
Successful responses include
data with the updated docket entry.
POST /api/estate/snapshots/{snapshot_id}/recharacterize
Submit-and-return: the response returns immediately with
run_id, top-level status: "running", and data containing { "success": true, "run_id": "...", "status": "running" }. The snapshot is authorized before its boundary is read or a run is created. Follow progress live over /api/ws/estate/live?run_id=<run_id> or poll GET /api/estate/runs/{run_id}.
Re-characterization applies the same caller-scoped resume rule; see Prover identity
and resume isolation.
POST /api/estate/candidates/{candidate_id}/adjudicate
Successful responses include
candidate_id and disposition. For an inferred key,
relationship, grain, or table classification, they also include fact_id, fact_status,
revision, and writeback when a decision leaves an approved-fact record. With
estate_char.source_modeling.writeback_enabled set to true (default false), the
response returns after storing the record and writeback is
{"status":"pending","revision":n}; publication to the Context Graph and Team Wiki
follows asynchronously.
estate_char.source_modeling.writeback_qn_scope defaults to "" (no table matches an
empty scope), and the Team Wiki destination additionally requires wiki.write_enabled
(default false). See Source-modeling write-back settings.
With write-back off, the decision still stores its record and the write-back result is
reported inline. The queue’s approved_fact.writeback reports pending while this
process publishes, failed when the current revision remains unfinished, or done when
the current revision is complete. The adjudicator
identity is never taken from the request body; when the auth-off exception applies, the audit
record uses the unverified signer label described above. Revoking a rejection returns
fact_id, fact_status, and writeback as null; it records the revocation in Admin Audit
before changing the candidate and does not restore any previously revoked approved fact. An agent
cannot decide a candidate.
POST /api/estate/source-modeling/writeback/withdraw
Withdraw all source-modeling publication under one annotation namespace. The decision and
approved-fact records remain in the Estate store; the endpoint removes or rebuilds matching
Context Graph annotations and retires Team Wiki learnings. Only facts on snapshots visible to
the caller are included. This action requires ratify_source_contract and a person’s own
sign-in; agents are refused.
Successful responses include
namespace, facts, nodes, graph outcomes by node, and
wiki outcomes by fact. A failed or disabled wiki withdrawal may remain incomplete for a
later retry.
POST /api/estate/contracts/{contract_id}/seal
Successful responses include
contract_id and sealed_by. With sign-in on,
sealed_by is the authenticated human; when the auth-off exception applies, it
is local operator (auth disabled) or
<name> (self-reported, auth disabled) from X-Genesis-Signed-As. The sealer
identity is never taken from the request body.
GET /api/estate/overview
This endpoint does not document any request body or query fields.
Successful responses include data with a cross-estate rollup computed in one
call (so the GUI does not fan out per-scope or per-contract requests):
POST /api/estate/jitter/clone
Returns
run_id (poll via GET /api/estate/runs/{run_id}) and a data summary.
POST /api/estate/proofs
Submit the Prover’s single comparison trigger for a characterized source and
target pair. The comparison always runs. If spec_hash is supplied, the same
proof then grades that sealed specification against the comparison it just
created; callers do not need to submit a comparison first or pass its id to a
second request. The proof envelope owns the child runs and records their ids in
summary.comparison_run_id and summary.grade_run_id.
title (body, string or null, maximum length 200) is the proof’s plain-language title,
stamped on the proof and child runs’ provenance.title and shown as the comparison card’s
main line above its technical source-to-target label. For example: Check the Databricks rebuild of the reporting warehouse against the original SQL Server warehouse. Omission or
a blank value remains admitted during the deprecation period and returns Deprecation: true
and a Warning header. Agent-tool calls use a short title and reject titles that name table,
schema, or connection identifiers; compatible older tool callers without a title get one
from the previous title for the same pair and spec kind, the Mission plan step, or the two
platforms. Titles are display labels, not part of request identity; when an existing proof
answers the submission, its original title remains on the stored comparison. A new proof
without spec_hash follows the no-spec title rule described for system diffs.
The estate reads run as the authenticated human who submitted the proof, not as
the bot acting for that human. This matters for personal connections: the
connection must be readable by that submitting identity. The proof still records
the bot as the acting principal where the run contract needs it, so access identity
and actor identity remain distinct.
When a submitted row_identity key is readable on both sides but repeats or contains
NULLs, the comparison records an unlicensed row_identity finding on that table and
continues the rest of the comparison. The finding reports how many key values repeat,
the largest number of rows held by one repeated value, and each side’s row count; a side
whose key is unique reports its row and distinct counts. The declared key is not used to
pair rows. A key that is missing, unreadable, or unresolvable still withholds its pair;
live probe details are recorded in the run’s summary.row_identity_evidence.
When spec_hash is supplied, the authenticated REST caller must hold
ratify_source_contract to attach that spec. The endpoint has no acting_for request
field, so the caller is the identity checked. If the permission check refuses the
attachment, no proof is admitted; the endpoint does not silently submit a comparison-only
run instead.
A spec-less proof submitted from a Mission conversation is checked against the Mission’s
planned comparison. If the Mission owes that pair, the proof must bind to its person-approved
plan or be explicitly chosen as an as-reported run through the prove tool; REST callers
cannot bypass admission by omitting the spec. A transient failure reading a Mission plan
returns 503 rather than treating the pair as unplanned. If an unread Mission owned by the
REST caller may owe the pair, the request is refused with guidance to attach a spec or repair
the Mission. For absent or unread plan inputs, the detailed ownership test is documented in
the Prover workflow guide;
the REST response does not disclose another person’s Mission.
For a graded proof on completely enumerated snapshots, Genesis checks whether the
sealed scope can be paired before submitting the run. When a carried same or
changed entry names no object in either snapshot, or a source object is under a
schema absent from the target and neither schema_map nor object_map addresses
it, the request is refused with no proof submitted. Correct an unresolved scope
name and reseal the spec, or declare the mapping and submit again. A target_model
or a ratified addressing rule for the pair can supply the addressing instead; the
scope verdict guide
describes how the same missing-map cause appears in a completed grade.
When a graded proof has an attached sealed spec and no caller-supplied schema_map,
object_map, or declared_relations, the spec can also address renamed tables. If it has no
target_model, and its keyed checks pair renamed tables one-to-one that are present in both
snapshots, Genesis derives an object_map from those pairs when no derived schema relocation
lands any source object. An explicit object_map is never replaced and disables this
fallback. The proof records
this derivation under summary.schema_map_derived_from_spec, with an empty schema_map, the
derived object_map, the check ids, and the number of unpaired source objects. The derivation
is not made when the sealed spec declares a target_model or the checks do not settle a
one-to-one pairing.
The proof envelope also preserves the pair it certifies as
source_snapshot_id and target_snapshot_id, and carries the comparison verdict counts
at summary.comparison_counts. On the undeclared-target-shape path, the unlicensed and
indeterminate values count published readings. withheld_unlicensed and
withheld_indeterminate report the corresponding readings measured but withheld from
published findings; errored reads remain measured in errored_reads. Read these fields
from the proof itself when presenting the result; they remain available after the child
comparison run is complete.
For a proof submitted by Foundry migration verification with a translated pipeline’s
lineage record, summary.comparison_counts.indeterminate_causes can include
non_reproducible_by_construction. This cause identifies readings of columns recorded
as freshly randomized on every run; the lineage record is supplied internally from the
translated script, not as a POST /api/estate/proofs request field. See the
Prover comparison guide
for the comparison behavior.
summary.comparison_counts carries the four assumption disclosure fields described in
the Prover comparison guide,
including the post-assumption residual counts. It also carries withdrawn_assumptions: the
assumptions withdrawn for the estate pair when the comparison ran, each with id,
statement, withdrawn_by, withdrawn_by_kind, withdrawn_at, reason,
named_in_would_be_licensed_by, findings_returned and readings_made_indeterminate. It
is [] when nothing was withdrawn and null for a comparison recorded before the list
existed. A withdrawn target-platform fold returns its missing and surplus findings tagged
with that platform license, so its findings_returned is counted; other non-rule
withdrawals that license no named finding retain null.
The block also carries unwitnessed_by_identity with findings, objects, and
sentence. It counts unlicensed findings for which no witness row can be localized
because their objects have no declared row identity. sentence is the user-ready
consequence and remedy; it is null when no findings are affected. The whole block is
null for comparisons recorded before this disclosure existed.
When the target is shaped like a Data Vault but the sealed spec omitted target_model,
the proof summary also carries summary.undeclared_target_shape. It identifies the
detected shape, the model to declare, and the number of readings withheld from published
findings. The same key carries guidance for a non-vault pair whose objects are unpaired
on both sides: it names those objects, shows shared columns as an observation, and gives
an empty mapping skeleton. Read this guidance before reporting comparison counts; it is
absent when there is no undeclared correspondence to explain.
The proof summary may also carry summary.unaccounted_sources; its field semantics are
defined in the Prover mapping guide.
It may carry summary.unassessed_sources when the sealed mapping lists source tables the
owner left unassessed. The object contains objects (the source-table names), count,
missing (unlicensed table-level object_missing readings on those tables), basis (the
owner’s ruling), and statement (a reader-facing explanation). These readings remain
recorded but are not counted as findings about the build. See the [Prover mapping guide]
(/docs/Genesis-Prover/Overview#declared-target-mappings-and-data-vault-shapes) for when a
table may be left unassessed.
A graded proof with spec_hash and no relocation premise also records
summary.proof_addressing; see re-proving a spec
for its fields and inheritance rules, including row_identity_reach. When the proof’s
addressing names a readable prior proof and both grades have a verdict tally,
summary.verdict_beside_prior_proof contains prior_proof_run_id, identical, and basis;
it identifies that prior run and says whether the verdicts match.
A graded proof whose sealed spec has applicable same-object rename_column items records
summary.column_map_derived_from_spec as {column_map, not_built, spec_hash, basis}. Its
column_map is the sealed map used for comparison; not_built lists declared renames
whose old source column or new target column is absent from the pair, so they were not
paired and are graded by their spec item instead. Under declared_relations, the map is
forwarded as sealed and not_built is empty. The field is null when no applicable
spec-derived column map is used. See the Prover overview
for the grading behavior.
The sealed artifact may also contain the optional top-level target_model block. It is
read only after the artifact seal is verified, so it is not an additional request field
and cannot be supplied separately. In schema_version: "2", its derived entries name
computed targets, their source objects, required columns, derivation text, and optional
grain; a mapping may contain derived targets without any splits. See Declared target
mappings for
the optional unassessed field and how declared mappings change pairing; a spec without the
block retains ordinary one-to-one comparison.
When a sealed spec declares target_model, a comparison made without that model and
later named by a grade is recomputed under the model before grading. The finished grade’s
provenance carries comparison_recomputed_under_spec with the replaced comparison hash,
the target_model_hash, and the declaring spec hash. This adds a full comparison of
both estates; a pinned comparison carrying a caller-declared row identity cannot be
recomputed and returns 409, directing the caller to use POST /api/estate/proofs with
the spec and row identity together.
The recomputed comparison’s title comes from the grade run when recorded; otherwise, the
replaced comparison’s title is inherited only when it was recorded for the same spec.
See the Prover guide
for title inheritance and the no-title behavior.
This is an asynchronous, warehouse-bound operation: comparison-only proofs read
both characterized estates, and graded proofs also read both estates for the
obligations. The response returns one proof run_id; poll
GET /api/estate/runs/{run_id} or envelope.links.poll. A repeated request for
the same pair, addressing, column_map, spec, and round_n reuses a finished result only while
the pair’s licensing is unchanged. If a correspondence-rule binding changes or a bound
rule is re-qualified after the held proof started, Genesis recomputes the
proof instead of returning the held result. An identical request whose grade is still in flight is
superseded and names the run holding the answer. A grade that declines a seal or tier rolls up to
refused, which is a terminal system decision rather than a crash.
Proof reuse is also scoped to the exact acting bot and authenticated human that
submitted the request. A repeat from a different bot or user starts a separate proof
instead of disclosing the earlier proof result, even when every estate and proof field
matches.
The optional Idempotency-Key header is part of the proof identity.
The proof forwards round_n to its comparison, but deliberately does not forward that
header: a submission id scopes the proof, not the measurement. If the comparison is
already held for the pair, the proof summary reports comparison_reused: true and
comparison_reused_basis says that the id was scoped to the proof and the held
comparison answered it. Change round_n when the measurement itself must run again.
For the
spec_hash-specific omission behavior of row_identity and
case_insensitive_object_names, see re-proving a spec.
When declared_relations is supplied, the names are the relocation destination, not a
second object map. The first round whose target snapshot holds every declared relation
binds the proof to that target; later rounds compare against the same bound snapshot
instead of taking a new one. A round where a declared relation is still absent is a
normal failed proof naming the missing relations, not a hold. Because the binding is
defined by round order and a fixed target snapshot, this mode requires an explicit
round_n and both snapshot ids; boundary hashes alone are rejected for the relocation
premise. The source must also hold the declared relations, or a greenfield sealed spec
must declare them in its structural-item loci; the target must not have held them in the
pre-build baseline. See Relocation proofs bind once
for the evidence rules.
The prior-binding read uses an indexed key for this relocation premise rather than
scanning unrelated proof history. It examines at most 200 rounds for the premise;
that window is scoped to the premise, not to all runs on the instance, so a repair loop
should remain below 200 rounds for the baseline binding to remain in the lookup window.
When row_identity is supplied, its shape and live key probe are checked before the
proof run is created. The evidence is recorded separately in summary.row_identity_evidence
and reused by the comparison rather than probing the keys twice. A verified declaration
controls witness localization but does not change column comparison semantics: those
remain order-independent value-multiset digests.
A source key that repeats or contains NULLs is refused with 400 before a run is
created. A key unique on the source but repeated or NULL-bearing on the target remains
a comparison finding. The refusal may suggest a single-column key supported by the
stored scans, or explain why no candidate was found.
The response includes success, run_id, status, envelope, wait, reused,
and superseded_by. The common envelope is the canonical poll shape; its summary
also carries proof loop fields such as round_label, rounds_used, regressions,
findings, unmeasured, unmeasured_elements, and stop_reason. unmeasured is the
obligation population; unmeasured_elements is the separate comparison-element
population whose reads did not happen. Each unmeasured_elements entry includes
element_id, comparison, object_name, optional source and target columns or target
object, an optional coded cause, and the read basis. unmeasured_elements_basis
explains whether the list is a measured empty list or an unmeasured population.
stop_reason is a classifier token,
not prose; stop_reason_detail carries the human-readable explanation. Every proof
summary keeps these keys present while running, using null plus a basis when the value
is not measurable yet. The submit response also copies reused onto
envelope.reused; it is true when an existing proof answered the submission and
false when a new proof was started. A polled envelope has reused: null, because a
stored run cannot know which caller submitted the request. Terminal statuses are
succeeded, failed, refused, cancelled, and superseded.
When change_expectation is supplied without spec_hash,
summary.declared_change_expectation carries the declaration’s
change_expectation, declared_by, basis, and meaning. A must_match declaration
changes the clean no-spec next call to propose, because the unchanged target answers
the declared lift-and-shift premise; a must_differ declaration does not license an
empty difference set, so the clean no-spec next remains author_spec. If a supplied
declaration disagrees with the sealed spec’s item shapes, the request returns 422
instead of grading it. With spec_hash, meaning names the attached spec: its items say
which differences are intended, and the one-word declaration licenses nothing beyond
them. In run classifications, classification.model_licensed is the subset of
classification.platform_licensed accounted for by the declared target model rather than
by a ratified platform rule.
Relocation summaries expose premise_basis and the missing-relations basis; see
Relocation proofs bind once
for their values and refusal behavior.
With wait_seconds, the route returns 200 if the proof terminalizes during the
wait. If the wait expires first, it returns 202 with the same handle and
wait.expired: true; the proof is not cancelled. Validation failures, including a
missing side, an invalid round, or a spec without both connection ids, return
422. An unknown snapshot or boundary returns 404; an identical proof already
being created can return 409.
Before scheduling work, a graded proof validates the sealed artifact and its
connections. An unknown spec_hash returns 404 with not_found; a malformed
spec_hash returns 400 with validation; and an unregistered
source_connection_id or target_connection_id returns 200 with a terminal
refused proof run. The refusal summary has stop_reason: "connection_not_registered"
and puts the human-readable explanation in stop_reason_detail; it lists the sides and ids in
summary.unregistered_connections. No comparison or grade is created for that
refusal. After registering the missing connection, submit the same request again.
When tiers is supplied with spec_hash but does not include "structural", the
proof is refused before either estate is opened. A proof always creates a comparison
and grades by that comparison’s diff_hash; only the structural tier reads that hash.
The response is 200 with a terminal refused proof run whose summary has
stop_reason: "grade_reads_no_comparison", stop_reason_detail, and
requested_tiers; no comparison child or grade child is created. Add "structural"
to tiers to grade the comparison, or omit spec_hash to run the comparison alone.
Both this refusal and an unregistered-connection refusal carry request_key: null, so
they are terminal outcomes rather than idempotency answers for a later corrected
submission.
When the sealed spec declares a target_model, the proof and comparison summaries expose
target_model_hash; the comparison also exposes split_key_evidence. The model-aware
element and finding semantics are defined in Declared Data Vault target shapes.
The comparison may publish an indeterminate column_content_digest finding with
cause="object_unmeasured" when a requested column checksum could not be read; see the
Prover comparison guide
for the reporting conditions.
A proof failure is classified separately from a grade-child failure. A proof that cannot
be scheduled, or whose comparison or relocation orchestration raises, uses
stop_reason: "proof_faulted". When the grade child reaches a terminal non-success,
the proof carries the corresponding reason: grade_died for failed, grade_declined
for refused, grade_claimed for superseded, and cancelled for cancelled.
The detail is the grade’s recorded error when one exists; otherwise it explains the
terminal status. These tokens let callers group terminal proofs without inspecting the
child run.
If the server loop stops during proof admission, the service returns an unavailable
response rather than parking a proof that cannot run. A stop detected before hand-off
means that nothing was admitted and the request can be retried after the replacement
server is serving. A stop detected after hand-off is indeterminate: a store write may
already be in flight. Once the server is serving, resubmit the identical request with
the same client_request_id (or the same pair and round_n when no request id was
supplied). Admission checks that request key and returns the run if one was created,
rather than starting a second proof run.
POST /api/estate/system-diffs
title (body, string or null, maximum length 200) is the plain-language title stamped on
the run’s provenance.title and shown as the comparison card’s main line above its technical
source-to-target label. Omission or a blank value remains admitted during the deprecation
period and returns Deprecation: true and a Warning header. Agent-tool callers receive a
fallback title when an older compatible call omits one; titles naming table, schema, or
connection identifiers are refused by the agent tools.
For a newly created no-spec comparison, a closing parenthetical that names a spec, such as
(spec X), is omitted from the stamped title because the comparison was not graded against
that spec. If nothing remains, the comparison is untitled; when inherit_pair_title is
enabled, it can inherit the pair’s eligible title instead.
Live re-reads performed by a comparison use the authenticated submitter’s connection
access, not the agent identity that may have commissioned the run. The agent remains in
the run’s provenance; a personal connection must be readable by the submitting user.
The result may include an unlicensed
addressing_incoherence finding for columns
whose names look like convention-only renames. It is a suggestion, not a pairing;
the Prover comparison guide
describes when it appears and how column_map resolves it.
Each side must be identified by exactly one of *_snapshot_id or *_boundary_hash (a snapshot id wins when both are given). If a boundary hash is used but no characterization snapshot exists for that boundary, the request fails with 400.
Submit-and-return (like POST /api/estate/characterize): the response returns immediately with run_id, top-level status: "running", and data containing run_id, status, pair_fingerprint, component_pair, source_snapshot_id, and target_snapshot_id. The mediated diff (forward + backward, content comparison, findings reconciliation) runs as a background task. The returned pair_fingerprint is the scope-independent identity of the resolved snapshot pair used for live event routing; after the pair’s scope changes, it can differ from the observed <source_boundary_hash>-><target_boundary_hash> pair. If no snapshot-pair identity is available, it falls back to that boundary-hash pair. Follow progress live over /api/ws/estate/live?run_id=<run_id> or /api/ws/estate/live?pair=<pair_fingerprint>, or poll GET /api/estate/runs/{run_id}.
The optional Idempotency-Key request header is part of the
submission identity. An identical comparison submission is answered by the run that
already owns it: reused: true and reused_basis identify that run, whether it is
still queued/running or has finished. An in-flight response has no diff_hash yet,
so poll its run_id; a finished response includes the existing result. A failed or
cancelled comparison releases the identity for a later retry, while a new submission
returns reused: false. A distinct header value makes a distinct question, but it does
not bypass the one-comparison-per-pair resource guard: while another question on the
same pair is running, the request can still return 409.
When a no-spec submission reuses a comparison whose title was recorded under a spec,
the response’s provenance.title omits its closing parenthetical. This changes only
the returned copy; the stored comparison title remains unchanged in the listing and
on the proof that graded it under that spec.
The completed comparison records diff_engine_version and diff_engine_digest. A
pinned retired-engine comparison returns 409; reuse and recomputation semantics are
defined in the [Prover comparison guide]
(/docs/Genesis-Prover/Overview#2-comparison-the-system-diff).
After the comparison reaches a terminal state, its run summary includes auto_envelope.
This object reports materialized, status, run_id, and basis: materialized: true
means this comparison minted an envelope or an earlier run already owns one,
materialized: false means the envelope attempt failed, and null means the comparison
was not measured for envelope creation (for example, the feature was disabled or the
run was a stimulus differential). The per-diff hook is enabled by
estate_char.comparison.auto_envelope, whose default is true; when it creates an
envelope it runs a second spec_conformance grade, and it is idempotent for a given
diff_hash. A normal skipped or disabled result does not fail the comparison.
An identical comparison submission — the same resolved pair, addressing maps and case-folding policy, column_map, delta_hash, row_identity, quiescence attestation, round_label, and client request id when supplied — is answered by the run that already holds it instead of starting another run. The response sets reused: true both at the top level and on envelope.reused, returns the existing run_id, and reports that run’s status. A queued or running reuse has no diff_hash yet; poll the run before reading the comparison. A failed or cancelled comparison is not reused, so retrying after one of those statuses starts a new run. New submissions set reused: false; the response envelope is the row created for that run.
Comparison reuse is scoped to the exact acting bot and authenticated human as well as
the comparison inputs. A caller with a different identity receives a new comparison
rather than the existing run’s result.
A completed comparison is also not reused when a correspondence-rule binding for its
pair moved at or after the run’s started_at. Ratification, pair-scoped review, or
revocation records that change the binding clock therefore make a repeat submit a new
comparison instead of returning the older result (for example, an earlier
object_missing + object_surplus rename pair). The new run is what can report the
ratified rule as object_relocated.
A finished migration behavior proof for the same database-and-connection sides also ages a
completed comparison; a run against another database on either connection does not. See
Genesis Prover for how the run profiles identify those
sides. If such a proof finished at or after the comparison started, an identical repeat
recomputes instead of reusing the older comparison. Whether an individual rewritten view
is licensed depends on a proof of its specific view pair, as described in fresh licensing
evidence.
When schema_map or object_map is supplied, Genesis resolves it against both
snapshot inventories before creating the run. A completed run summary discloses
the binding with schema_map_keys_submitted, schema_map_keys_bound,
schema_map_keys_unbound, object_map_keys_submitted,
object_map_keys_bound, and object_map_keys_unbound. These fields show which
submitted keys matched the source inventory; an empty map binds nothing and is
reported with zero counts. Invalid or ambiguous map entries are rejected with
400 at submission rather than producing a run whose intended pairs all appear
missing or surplus. A source object declared by the target model as input-only is
answered by that model, including when the build loads it into no target object, so
it does not require a schema-map entry merely to avoid an unbound-schema refusal.
When row_identity is supplied, its live uniqueness probe runs on both sides
under the same snapshot addressing and any ratified delta used by the comparison.
A verified declaration becomes the pair’s row_identity_basis and selects the
key used to localize witness rows; it does not change the column comparison,
which remains an order-independent value-multiset digest. For agent, headless,
or stored re-run paths that perform the probe inside the diff, a key that is not
unique, contains NULLs, is absent, or cannot be resolved withholds that pair
behind an indeterminate row-identity element rather than silently falling
back to digest-only localization. A source key that repeats or contains NULLs is
rejected with 400 before creating a run; a key unique on the source but repeated
or NULL-bearing on the target remains a comparison finding. Probe counts are kept separately in
the run’s summary.row_identity_evidence and are attributed to that run.
For a pair whose binding rules declare exactly one digest quantum, the system diff
re-measures approximate columns on each side when measurement versions are compatible.
The re-measure is best effort: if no quantum is declared, versions are incompatible,
or a side cannot be read, the comparison uses the exact snapshot digests instead.
Inspect summary.quantized_remeasure on the completed run to see whether the quantum
was minted, its significant_digits and rule_id, and the re-measured column count
for each side. The completed summary’s findings object also reports
closed_by_license separately from closed_by_reverification; a licensed difference
closes under licensed_by_rule because the rule allows it, not because a repair was
verified.
The whole-table content digest is folded over the licensed-comparable columns. When
a licensed column, or a column held by only one side, would make the whole-table
digest differ by construction, the diff performs a best-effort live re-fold over the
comparable columns for that object instead of treating the digest as actionable
drift. This re-fold is automatic, pair-scoped, and only runs for objects the initial
diff cannot decide from its snapshots; it uses one live table scan per requested
object and falls back to abstention if either side cannot be read, except when a sealed
spec’s value_transform columns are the only exclusions: see [checkable value changes]
(/docs/Genesis-Prover/Overview#checkable-value-changes) for that checksum behavior. Inspect
summary.comparable_digest_refold for folded, objects_asked, objects_folded,
source_objects_read, target_objects_read, failures, and errored_reads.
folded is true only when every asked object folded on both sides and no read
errored. failures is always present; each entry identifies the object, its
sqlstate when supplied by the driver, whether the failure is retryable, and a
basis. When a person accepted value drift for a column on the pair’s latest graded
comparison, a later forward comparison can exclude it from this re-fold; the acceptance
is read server-side and is not a request-body field. The disclosure then includes
excluded_accepted entries with the column, reason, and acceptance fields, plus
licensed_columns. For the acceptance conditions and settlement behavior, see the
Prover comparison guide.
A retryable transport failure receives one bounded retry; an engine refusal is reported
without retrying.
A locus the comparison could not decide — an indeterminate element — closes
nothing. Its open finding stays open and its lifecycle entry records
coverage_qualifier: "indeterminate", kept distinct from not_exercised (the run never
reached the locus) and from resolved_verified (the run swept it and found nothing).
Older lifecycle events written with "undecided" are read back as
"indeterminate"; the stored history is not rewritten.
An abstention is not a re-verification, so it never appears in
finding_counts.closed.
If a comparable re-read errors, the affected element uses verdict errored and
cause comparable_fold_errored; it is not counted as indeterminate, and the
comparison summary reports errored_reads separately with clean: false. This
means the comparison is unmeasured for that element rather than evidence of drift.
Two additional causes are intentionally indeterminate rather than unlicensed:
cross_representation_precision_unverified means boundary values agree to float
precision but an exact numeric side may contain unobserved digits, while
outside_characterized_scope means a target object lies outside the characterized
source boundary and the source scan never measured the surface being compared.
Completed mediated-diff payloads also include verdict_bases, a compact map of the
verdict meanings and named causes present in that diff; use it when relaying why a
comparison is indeterminate rather than treating all abstentions as the same.
Live events stream in order: phase("diff") → family_found → element_verdict → phase("fold") → summary → done.
GET /api/estate/system-diff-hashes
Resolve a shortened comparison link without loading the whole comparison list. Supply the
required query parameter prefix with 8 to 64 lowercase hexadecimal characters. The
response’s data is the matching comparison hashes, in hash order, that the caller may
view; archived comparisons are included. A hidden match is not returned, so a prefix with
only hidden comparisons behaves like one with no visible match.
The lookup ranges over comparison primary keys and does not read their element documents.
When at least one match exists, Genesis also loads the caller’s visibility scope. If more
than 20 stored comparisons match, the request returns 400 rather than a truncated list;
a prefix outside the required pattern returns 422. Requires view_connections.
GET /api/estate/system-diffs
Endpoint attribution starts from the estate bound to each snapshot. An archived
operator-registered estate is not replaced by an active estate merely because both use the
same database; its comparisons remain retired from the live grid. An archived
boundary-keyed BACKFILL estate can yield to an active registered estate over that same
database.
Successful responses include
data as mediated-diff summaries (verdict counts only, no
payload), newest first. next_cursor and has_more are always present; they are
null and false when the request is the unbounded whole-board read. When limit is
provided, has_more reports whether an older page exists and next_cursor resumes after
the last returned row. The bound limits the response page, not the database reads used to
curate pair identity and featured runs. Resolving spec series adds one indexed read per
lineage generation per 500 distinct graded specs, and no read when no grade names a spec.
The response also includes hidden, counting withheld comparison cards rather than
withheld runs: one per estate pair and spec series (per scan scope when both endpoints
belong to one estate), however many runs were withheld. A card does not count as hidden
if the caller can still see a run for it. This is separate from
has_more, which reports older rows available through pagination. The count can include
pairs the Prover grid itself omits under sandbox or utility estates.
Each row is enriched for the comparison list:
ruling_rollup contains integer counts for the featured comparison’s settled
residue and the pair’s open behavioral catches, plus the current Human Review
settlement state for the comparison:
For
person_accepted_differences, only a person’s ruling or a population-bound
one-time exception counts as person-settled. A finding claimed through attributed_to
or rule_ids is grade-licensed, not person-settled, only when the grade re-sorted
counts; a finding marked unaccounted remains outside that license.
The rollup is an enrichment, not a reason to omit the comparison. If its
supporting reads fail, the row is returned without ruling_rollup so clients can
show an unresolved ruling state rather than treating missing data as zero. The
readiness result is computed from the complete, element-bound Human Review
population; it is not a count inferred by subtracting ledger totals from an
element count. Only featured (is_latest_for_pair) comparison cards receive
this optional readiness evaluation and the approval-movement disclosures. If the
movement read fails, those fields are omitted rather than reported as a clean zero.
For a comparison with a recorded settling decision, the listing uses the same
population resolution as the Human Review read before reporting review_decision.
This keeps the card’s approval state and the review page’s approval state aligned:
an incomplete or unavailable comparison population cannot make an approval appear
to stand on the card when the review read has withdrawn it.
Individual diff detail (GET /api/estate/system-diffs/{diff_hash}) and dossier readers are unchanged — they still see full history regardless of archive state.
GET /api/estate/comparisons/{diff_hash}/export
Requires
view_connections. The response’s data is a portable bundle with an
envelope (bundle_type, bundle_version, contract, exported_at,
source_server, connection_refs, estate_ids, and adjudications_excluded) and a
tables map containing the comparison and the rows needed to render its card: its run
family, snapshots and measured objects, estates and scans, review events, exhibited
findings, the adjudication proceedings that ruled on those findings with their verdicts,
compiled specs, and cited correspondence rules. Connection values are references only.
Stored JSON is scanned and credential-shaped fields are replaced before export. The
bundle preserves the comparison’s diff_hash; it is not a re-run and does not need the
source or target database credentials. An unknown comparison returns 404. If the
comparison includes a run the caller cannot see, export returns 403 before reading the
card. Clarifications hidden by the caller’s run visibility are removed from exported
clarification rows, seal provenance, and run summaries.
Only a terminal adjudication travels. A proceeding still running on this server is
left out and named in envelope.adjudications_excluded with basis excluded_by_design,
because nothing on the receiving server would ever finish it and that server’s own
reconcile sweep would terminalize it as failed. bundle_version is 2; an importer that
reads a different version refuses the bundle on the envelope rather than applying the
sections it recognises.
This is an expensive read: about two dozen indexed store reads plus JSON decoding for
the returned payloads, which can be several megabytes for a real comparison.
POST /api/estate/comparisons/import/validate
Requires
ratify_source_contract. This side-effect-free endpoint reports what the
bundle would create or collide with, the estate ids it would adopt rather than twin,
the durable finding numbers it would remap, blockers, and which referenced connections
are registered on this deployment. A collision is disqualifying only when on_conflict is
refuse; a missing connection is reported but does not prevent the imported card from
being read. A blocker — a unique value a different row on this deployment already owns,
checked against every uniqueness constraint the tables declare rather than against the row
identity alone — is disqualifying under every mode, so valid is false whenever one is
present. blocking_count is the exact total; blockers is a bounded sample of it, because
one blocker is enough to refuse and every row of a large bundle can collide. Validation
performs indexed existence reads and writes nothing. If the bundle names a comparison
this server holds but the caller cannot see, validation returns 409 with
Cannot import over an existing comparison you can't see, regardless of on_conflict
and including dry runs. The visibility check covers the envelope and comparison hashes on
bundle rows, and adds one visibility-scope load before planning. A malformed or unreadable
bundle returns 400.
POST /api/estate/comparisons/import
Requires
ratify_source_contract. The import writes the bundle in one transaction;
it does not re-characterize either estate or re-decide the review. The original review
author and timestamp remain on the imported review events, while the importing caller
is recorded separately as imported_from. Estates already present for the same
database boundary are adopted, not duplicated, and the response includes the
source-to-target estate_id_map.
A finding’s durable number (durable_id, the #N a report cites) is a per-instance
sequence under a unique index, not a portable identity, so it is remapped on import — the
target’s own number where the target already holds the finding by finding_key, a freshly
minted one otherwise — and the response includes the source-to-target durable_id_map. The
finding lifecycle events that join on that number are remapped with it.
The response reports per-table created, skipped, and replaced counts,
imported_from, durable_id_map, and no_op (true when nothing was written, such as a
repeat import). An import collision under refuse returns 409; a hidden-comparison
collision also returns 409 under every mode, as described for the validation endpoint.
An invalid bundle, an invalid mode, or a uniqueness value a different row already owns
returns 400. The
operation can read and write tens of thousands of rows for a real comparison; it decides
every row before writing any, after one visibility-scope load, so a refusal writes nothing
at all, and any later failure
rolls back all writes. It owns its transaction and commits it while holding the process-wide
durable-number mint lock, so no other allocator can take the same numbers between the
allocation and the commit — and a concurrent findings reconcile waits for the length of the
import.
GET /api/estate/system-diffs/{diff_hash}
Successful
full responses include data with diff metadata and payload.elements
(each element carries comparison, verdict, and object/column context). A source table
the owner left out is served with verdict: "left_out" and keeps its stored verdict in
measured_verdict; see read_comparison.
When
present, payload.row_identity_basis discloses the identity basis for each
object pair; it is separate from the run’s live uniqueness evidence. List
summaries from GET /api/estate/system-diffs omit payload and expose verdict
counts plus comparison-list enrichment: direction, resolved
source_estate_id / target_estate_id, retired_by_archive,
pair_key / is_latest_for_pair / is_latest_for_pair_basis / pair_run_count,
spec_series / is_latest_for_series / is_current_series / spec_series_settled,
source_engine / source_database / target_engine / target_database, and
when the forward migration target is a curated highlight from the estatebench
oracle (postgres or postgresql source dialect), display_name,
highlight_rank, and is_highlight. A customer proof from another source does
not receive a curated label even if its target database name matches a curated
target.
full and scope detail responses also include source_estate_id,
target_estate_id, and retired_by_archive, resolved using the same endpoint-estate
rules as the comparison list but without reading the whole list. Producing these fields
costs one batched snapshot-identity read, one estate-list read including archived rows,
and two indexed scan-timeline reads. See the [comparison list contract]
(/docs/Genesis-API/API-Reference#get-api-estate-system-diffs) for field meanings.
Detail responses also include errored_reads, the number of persisted elements
whose verdict is errored, and clean, which is true only when no persisted
element is unlicensed, indeterminate, or errored. On a comparison with
undeclared_target_shape guidance, the published unlicensed and indeterminate counts
exclude withheld readings; read the comparison summary’s withheld_unlicensed and
withheld_indeterminate fields to report those populations beside the published counts.
These values are computed
over all elements before applying an optional ?verdict= filter, so a filtered
response still reports the comparison-wide counts. The response also carries
comparable_digest_refold from the associated run summary, or null when the
diff has no run, the run is gone, or no re-fold disclosure was recorded; see the
re-fold fields documented above.
The response also carries value_coverage for the direction identified by this
diff_hash, including when shape=scope; see the [Prover comparison guide]
(/docs/Genesis-Prover/Overview#2-comparison-the-system-diff) for its counting semantics
and the distinction between an unavailable disclosure and values that were all compared.
It also carries object_presence and not_measured for that same direction; their field
shapes and null semantics are documented in the [review population response]
(/docs/Genesis-API/API-Reference#get-api-estate-comparisons-diff-hash-review-population).
Only shape=full also returns which_proof_applies. It explains each rewritten view in
views[] (source_view, target_view, kind, reason, and
behavior_proof_run_id, with fuzzer_seal_id when the sentence names an advisory seal),
counts unchanged-text views in same_text_views with a shared
same_text_reason, and identifies next_view. Kinds are data_matched_behavior_not_tested,
data_matched_fuzz_failed_advisory, data_not_compared, behavior_proof_passed,
behavior_proof_passed_data_not_compared, data_differs, and
data_explained_by_rule. A comparison stored under an earlier engine can also read
needs_behavior_proof, behavior_proof_failed or behavior_proof_did_not_run, none of which
asks for anything. Fuzzing is off while it is being redesigned, and no kind asks for a fuzz run. This is explanatory evidence from the stored comparison, not a
verdict; it is null for a backward comparison. It is computed over the comparison’s
elements before an optional verdict filter, and is absent from scope responses.
When fuzzer.enabled is enabled, a matching live Prover Fuzzer seal may
add advisory wording to a data-matched view’s reason; it does not change kind, the
comparison verdict, or licensing. The seal is read live, can expire, and is never frozen
into a proof bundle. See rewritten views and behavior proofs for matching conditions
and how to read the card.
A view whose behavior_proof_run_id is set also carries test_case_coverage: run_id,
a one-line sentence, situation_count, covered_count, by_side (original and
rewritten, each situations and covered), covered[] and not_covered[] (each
side, view, situation, claim_tag, case_ids), not_credited[] (claim,
case_ids, why) with not_credited_count, not_matched[] (names, case_ids, why:
the run’s test cases with coverage claims that name neither view) with
not_matched_count, listed_up_to (the most entries each list holds), and caveat. It
says which logic situations of the two view texts that run’s approved test cases claimed,
as the agent stated when designing them; running the proof does not check it. A test case
belongs to the view its output_relation names, compared on schema and name. If the
relation matches no view in the comparison, Prover uses target_node’s dbt model name
only when that name matches exactly one view pair. Each list is capped at listed_up_to
entries, while the counts cover the full set; at most 25 views are worked out in one read,
and any additional view reports that its coverage is not known.
See the [Prover comparison guide]
(/docs/Genesis-Prover/Overview#rewritten-views-and-behavior-proofs) for how to act on it.
Detail responses also carry populations, the comparison’s two differently scoped counts of “differences” and the arithmetic over each — the same block the read_comparison tool publishes, from the same writer, so the tool answer and this one cannot be two readings of one row. populations.elements carries total, match, differing_or_indeterminate, decided, licensed, unlicensed, left_out, indeterminate, errored_reads, and basis; elements.total is the whole denominator (match + licensed + unlicensed + left_out + indeterminate + errored_reads) while differing_or_indeterminate is the narrower subtotal (licensed + unlicensed + indeterminate). left_out counts readings on source tables the owner left out; it is not a gap and is not included in unlicensed. populations.findings is the separately scoped ledger population and its total is null here because this route makes no findings read, and populations.why_they_differ says why the two must never be added. It is unconditional and costs nothing: every number is read off the row this route already built, and a count this shape did not make is null rather than a derived zero.
The same detail response carries writer_attribution counts and the per-relation
writer_readings used to derive them for target relations. The counts include the
relations denominator plus attributed, unattributable, and unmeasured; the
qualifier is null only when every relation was attributed to a re-runnable
mechanism. A reading attributed from a Genesis Flow run also includes flow_run with
flow_id, flow_name, flow_version, run_id, step_name, step_run_id,
step_started_at, and step_completed_at. shape=scope omits writer_attribution and
writer_readings because it does not read payload.
The detail response also carries the assumption disclosure from the run that minted the
comparison; see the Prover comparison guide
for field semantics.
When an assumption is withdrawn for the comparison’s estate pair, later comparison
responses disclose it in withdrawn_assumptions. The withdrawal set is part of the next
comparison’s request identity, so a comparison made before the withdrawal is not reused.
The request identity and the withdrawal records used for the comparison are taken from
one snapshot, so the run’s withdrawal bylines cannot change if the standing changes after
the request is keyed.
The stored verdict of an earlier comparison is unchanged; a sign-off whose pass relied on
the withdrawn assumption is reported as reopened when review state is read. A later sealed
specification records the withdrawals in its provenance as assumption_withdrawals, and
read_spec exposes those citations under who_decided.
GET /api/estate/system-diffs/{diff_hash}/assumptions
The response’s data contains diff_hash, pair_fingerprint, component_pair, and an
assumptions list. Each entry has id, statement, withdrawn, and withdrawal;
withdrawal is null when the assumption stands, otherwise it includes id, statement,
withdrawn_by, withdrawn_by_kind, withdrawn_at, and reason. The list contains the
pair’s rule-borne assumptions and the target platform’s identifier-case and engine-collation
licenses when this comparison relied on them. It can also include the built-in PostgreSQL
type assumptions, the verified unique-index limitation, and the behavior-proven
translated-view and source-built-output assumptions. Their ids include
identifier_case:<platform>,
collation_ordering:<component_pair>,
platform_type:<component_pair>:<type-rule>,
platform_cannot_enforce_unique:<platform>, translated_view_behavior_proven,
translated_view_data_matched, and
source_built_output.
The Prover guide documents the conditions behind the new comparison
assumptions.
POST /api/estate/system-diffs/{diff_hash}/assumptions/{assumption_id}/withdraw
Send an optional JSON body { "reason": "..." }. The response’s data contains
event_id, pair_fingerprint, component_pair, assumption_id, action: "withdraw",
the actor fields, reason, reopened, and created_at. reopened records the
comparisons whose pass relied on the assumption at withdrawal time; it does not persist a
sign-off status, which is recalculated when review state is read.
POST /api/estate/system-diffs/{diff_hash}/assumptions/{assumption_id}/restore
Send the same optional reason body. The response has the withdrawal response shape with
action: "restore". A restore affects later comparisons; a sign-off reopened by a prior
withdrawal stands again when the withdrawal is no longer in force and no other relied-on
assumption reopens it.
The full payload also includes licensed_breakdown, which gives the licensed
element count by comparison and the provenance counts that contributed to it, and
object_measurement_keys, the measured row-count/boundary fingerprints used to
support unambiguous rename hypotheses. These derived disclosures do not change the
diff hash. Case-folded column correspondence is recorded as licensed
column_relocated elements. For categorical columns whose value-count key spaces
cannot be lined up because float-rendering coverage is split or unknown, the
element is indeterminate with cause="categorical_recipe_mismatch"; its
relied_on.basis distinguishes recipe_split_unmeasured from recipe_unknown.
For a comparison created by a sealed model-aware proof, the detail response also
includes target_model_hash and split_key_evidence. Split elements carry
provenance: ["model:split"]; model:ghost identifies declared ghost rows excluded
from hub key readings, and model:metadata identifies columns derived by the vault
load rather than carried from the legacy object. The comparison does not silently
compare a legacy object to a satellite or link’s derived rows; those image contents
remain unmeasured and the response explains that basis.
The detail response also includes model_readings for model-aware comparisons. It maps
each legacy object to the comparison kinds this run actually decided and the target
objects read for them. An open finding on that object and kind remains not_exercised
when the map has no such reading or does not include the finding’s target; absence from
the current result is not treated as a re-verification.
Use shape=scope when paging the comparison’s findings and the element document is
not needed. The scope response identifies the comparison and carries its four stored
counts, but omits payload, errored_reads, and clean rather than reporting
unmeasured zeros. Every response names its shape in comparison_shape.
GET /api/estate/system-diffs/{diff_hash}/families/{family_signature}/members
Successful responses include
data with family_signature, total, offset, limit, and members (each an annotated finding with its evidence).
GET /api/estate/fault-drill-coverage
Successful responses include
data with available plus, when available is
true, headline stats (coverage, obligation_coverage, drills_total,
caught_total, survived_total, blind_spot_count, and related fields) and
the full report (by_class per-mutation-class coverage, blind_spots,
results). When no fault-drill run has produced a report for this snapshot yet,
data is {"available": false} — trigger POST /api/estate/estates/{estate_id}/fault-drill on demand (the static meter no
longer runs on every scan by default).
GET /api/estate/behavioral
Legacy pair-scoped trajectory-campaign detail. Successful responses include
data with available plus, when available is
true, component_pair, diff_hash (the comparison the campaign was run against, null when none),
reproducible, findings_count, candidate_engine, step_count, and
verdicts — per-step outcomes (PASS / FAIL / MISSING with row-count and digest
agreement) from feeding identical synthetic streams into both estates. When the
pair has no trajectory-campaign run, data is {"available": false}. A component pair names engine types (for example postgres->databricks), which every comparison between two such estates shares, so this route can return a campaign about a different estate’s objects — anything rendered on one comparison must use GET /api/estate/behavioral/steps-for-diff/{diff_hash} (per-step markers) or GET /api/estate/behavioral/chip-for-diff/{diff_hash} (verification chip).
GET /api/estate/behavioral/steps-for-diff/{diff_hash}
Diff-scoped per-step behavioral outcomes: the trajectory campaign run against this comparison (matched on its
summary.diff_hash, never on the component pair) and its per-step agree/diverge verdicts, which back the comparison’s behavioral markers. Same data shape as GET /api/estate/behavioral; only the resolution rule differs. When no campaign was run against this comparison, data is {"available": false} and the UI renders no markers. Read-only.
GET /api/estate/behavioral/chip-for-diff/{diff_hash}
Diff-scoped, verdict-backed behavioral chip for a comparison. Resolves the stimulus run that stimulated this diff and reflects its authoritative verdict — not any trajectory that merely shares the estate pair. Successful responses include
data with available plus, when available is true, verified (true only for a finished verdict with grading mode spec_graded or baseline_subtracted and unlicensed_count == 0; null/ungraded/running never verify), grading_mode, verdict (matched_count, licensed_count, unlicensed_count, indeterminate_count), status, run_id, diff_hash, rounds_succeeded, escalation_tier, and finding_severity. When the comparison was never stimulated, data is {"available": false} and the UI renders no chip. Read-only.
GET /api/estate/findings
The response always includes
data, next_cursor, and has_more. next_cursor is
null on the final page; otherwise pass it as cursor to continue. Both rows and
rulings use the same keyset, so view=rulings is bounded and resumable too. The
rulings projection includes created_at as its resume anchor and still omits evidence
and systemic-family annotation. The server reads one row beyond the requested page to
set has_more; it does not count the full ledger. Use repeated finding_key parameters
to fetch known findings without paging through the full filtered ledger; split larger sets
into requests of at most 100 keys.
Each row includes finding_key, component_pair, comparison, object_name,
optional column_name, status, disposition fields when set, evidence, and
additive systemic-family fields when present: family_signature,
family_direction, and family_pattern. family_signature_shape is persisted
when those coordinates came from the finding row’s stored family stamp, or computed
when they were derived from its evidence document for this response. Both views carry
superseded_by_pair, the pair now used by the finding’s identity class when the row’s
pair was superseded after a scope change; it is null when the row’s pair is still
current or cannot be placed in a class. This read-time label is stamped after visibility
filtering, so identity reads are made only for distinct pairs among the rows visible to
the caller. In view=rows, a ruling copied during a findings-key migration also includes
disposition_carried_from, the key of the finding it was copied from; the field is omitted
when no ruling was copied. For how value-check findings keep their identity across a
renamed check, see finding identity in the Prover guide.
For behavioral prediction findings, evidence preserves the measured column
separately from the row selector. missing_row and predicted_value evidence
includes row_key (the exact selector), key_column, key_value,
predicted_value, source_value, and target_value; for missing_row,
target_value is null and target_absent_reason is no row produced.
When a side’s read matched one row whose cell was SQL NULL, measured_null lists that side
(source or target); the receipt renders the cell as NULL, distinguishing a measured
NULL from a value that was not read. detail remains a human-readable
predicted-versus-actual receipt.
Use view=rulings when joining recorded rulings to comparison rows. It applies
the same component_pair and status filters while avoiding evidence decoding
and systemic-family computation. updated_at is the ruling revision token for
correlating this projection with a separate read that contains author or note
details; created_at is the page-resume anchor. status is the finding lifecycle, so a request with status=all
includes closed findings; disposition_note carries the grounds for the
recorded verdict. The comparison listing uses this projection server-side to
populate ruling_rollup before returning each row.
The list routes do not emit the evidence document unless include_evidence=true is
requested on view=rows; the server still reads it internally when computing systemic
family annotations. For a complete ledger, follow next_cursor rather than expecting
one unbounded response.
When include_consult=true, rows with a Prover Consult ruling also include
consult_ruling, or null when none exists. Its state is one of recorded,
pending_approval, provisional, ratified, or declined; actionable indicates
whether approve or decline is currently available. The ruling_digest_id identifies
the exact ruling a human read and must be sent to either decision endpoint. Use the
detail endpoint below to load the rationale, probes, guard, and constitution before
deciding.
GET /api/estate/findings/{finding_key}/consult-ruling
Returns the current Prover Consult state and the full ruling body for one finding.
The response includes finding_key, finding_id, ruling_digest_id, state,
actionable, verdict, apply_mode, finding_sha, ruled_at, any decision
metadata, and ruling with the seat’s rationale, probes, guard, and constitution
version. It also carries requested_by_kind (agent, service, or null when the ruling
was recorded before its origin was), requested_by_bot_id,
decides_through_action_review, and action_review — the linked Action Review request
(proposal_id, status, url, decided_by_label, decision_source, agent_basis)
or null. decision_source is agent:<basis> when an agent decided on a person’s word;
agent_basis then contains {basis, agent, person, goal?} (basis is
agent_person_present or agent_delegated; goal is present for a delegated decision),
and is null for a person’s own decision. This is the read to use
before approving or declining. It returns 404 when nobody has consulted about the
finding.
POST /api/estate/findings/{finding_key}/consult-ruling/request-approval
Asks for Action Review approval of the recorded ruling. A ruling an agent or a service
asked for — or one recorded before its origin was — is approved or declined only through
this request (prover.approve_consult_ruling.v1); the approve and decline endpoints below
answer it 409 with code: consult_requires_action_review. The caller becomes the
requester and may decide the request. Idempotent: a request already asking is returned
with replayed: true. Requires view_connections and a signed-in person when
authentication is enabled; any person may request and decide it, with no special
approval permission. A person’s own PAT is accepted and attributed to its owner.
The response carries
proposal_id, status, url (where a person decides it) and
replayed. 409 with code: consult_approval_declined when a person (or a policy)
declined its request, including after that decline is recorded on the finding — the ruling
is closed and the next step is a new Consult ruling — code: consult_ruling_decided when
the ruling was otherwise already decided, and a plain 409 when the digest is stale.
503 when the Action Review ledger is unavailable.
POST /api/estate/findings/{finding_key}/consult-ruling/approve
Approves the recorded ruling. Under human_approval, this seeds and ratifies its
direction in one action. Under auto, it ratifies the provisional direction. Any
signed-in person may approve or decline the ruling, including the person who requested
it, without a special approval permission. The route requires view_connections; the
person’s own PAT is attributed to its owner.
The successful
data object includes decision: "approved", the resulting
board: "ratified", the finding event event_id, and the ruling_id established.
POST /api/estate/findings/{finding_key}/consult-ruling/decline
Declines the recorded ruling. Under human_approval, nothing was seeded and the
finding remains unlicensed. Under auto, the provisional direction is withdrawn
only when it was established by this exact ruling. The request body and person-signing
requirements are the same as the approve endpoint; its successful data object uses
decision: "declined" and board: "declined".
GET /api/estate/findings/dispositions
The response includes
findings, total, offset, limit, and
by_disposition. Each finding carries its key, comparison and object
coordinates — comparison, object_name, column (null at object grain), the
spelling a graded drift_finding discrepancy declares, so the two surfaces join on
the discrepancy’s own key; column_name carries the same value under the ledger
row’s own spelling for one release — status, current disposition, disposition_note,
dispositioned_by, dispositioned_agent_basis (the basis, agent, and person
when an agent made the ruling on the approver’s word; otherwise null),
disposition_proposed_by when an agent-staged package was
used, dispositioned_under_model (the target_model_hash of the comparison reading
the ruling judged), prover_defect_report_id, prover_defect_filing,
prover_defect_filing_detail, waiver_owner, waiver_expires_at,
last_seen_diff, updated_at, and
superseded_by_pair. The latter is the pair now used by the finding’s identity
class when its recorded pair was superseded after a scope change; otherwise it is
null. It is a read-time label and does not move or close the finding. For an
older finding whose waiver terms were not recorded, waiver_owner and
waiver_expires_at are null; the API does not infer an expiry. For an
instrument_defect ruling, prover_defect_filing is delivered,
user_action_required, or failed; see False alarm (Prover)
for the filing-status meanings. A ruling is honored only when
the later comparison uses the same target model, including null for a comparison with
no model. by_disposition counts the visible filtered set before paging and uses
undiagnosed for findings whose disposition is null. Findings from comparisons the
caller cannot see are omitted before paging and counting; a hidden diff_hash is
returned as not found.
The endpoint does not return evidence or systemic-family annotations. Invalid
status or disposition values return 422 rather than an empty successful
page.
GET /api/estate/findings/ranked
Each row includes the flat finding fields plus blast-radius and plane
annotations in rank order (highest deviation first). Evidence is included only when
include_evidence=true.
GET /api/estate/findings/ledger
Returns a bounded page with
data, next_cursor, and has_more. Follow
next_cursor until has_more is false to walk the matching open set. The
ledger is ordered by most recently minted finding first using (first_minted_at, signature), while updated_at remains available on each row for surfaces that
need activity order. The watermark is the first row’s mint position on page 1;
findings minted after the walk starts are excluded from that walk. A finding open
for the whole walk is returned exactly once, but this is not an instantaneous
snapshot: membership is evaluated when each page reads its mint position. A
finding resolved before that page is read is omitted, and one that reopens after
the cursor has passed its position waits for the next walk.
Visibility is applied before the page limit, so each page is filled with rows the
principal may see when enough remain. has_more reports whether more visible rows
follow, and the opaque cursor resumes that admitted-row walk. hidden reports withheld
findings encountered after this page’s last returned row in the current read window; on
the final page it counts through the end of the walk. It is page-local, not a
ledger-wide total.
Each row is folded from the append-only lifecycle event log
(estate_char_finding_events) and carries:
Resolved findings (
no_longer_observed) are not returned here; load one by
durable number with GET /api/estate/findings/{finding_id}/history. This
ledger is distinct from GET /api/estate/findings (remediation-loop rows keyed
by finding_key) and from GET /api/estate/findings/{finding_key}/episodes
(reconciliation-episode sightings). A cursor minted by the findings listing is
not valid here because the two endpoints walk the same key in opposite directions.
Ledger cursors minted before the mint-position key change must also be discarded;
restart the walk without cursor after upgrading.
GET /api/estate/findings/ledger/summary
Returns counts for the open ledger without the finding rows. The response has a
data object with these keys:
The summary reads the materialized open-findings projection and does not fold the
event log. Its
by_state values can therefore lag a lifecycle transition that is
still inside the ledger fold window; use the ledger or a finding’s history when
you need folded state for an individual finding.
GET /api/estate/findings/{finding_id}/history
Successful responses include
data with the same folded lifecycle object shape
as one row of GET /api/estate/findings/ledger (including lineage for both
open and resolved findings). The history is a pure fold over the append-only
event log — opened rX, resolved rY, reopened rZ — so it cannot disagree with
the ledger’s current state. The response also derives rests_on_reopened_seal at
read time, as described in the ledger response fields.
That adds one scalar read for the run that last saw the finding and, when that run
names a spec, reads of its seal provenance and reviews.
data.person_exceptions lists review acceptances attached to the comparison where this
finding was last seen; it is empty when none are visible. excepted is true only when
the person’s exception is verified, standing, joined as this_item, and has no reopened
assumption. See the Prover finding-read contract
for record fields and lookup costs.
GET /api/estate/comparison-events
Each event is one comparison run (A vs B at time t). Rows include
diff_hash, run_id, component_pair, pair_fingerprint, delta_hash,
source and target endpoint snapshots, created_at, verdict counts
(licensed_count, unlicensed_count, indeterminate_count,
matched_count), plus published_unlicensed_count /
published_indeterminate_count and withheld_unlicensed /
withheld_indeterminate, measured_unlicensed_count, unlicensed_count_basis,
and left_out_count. For count semantics and left_out element handling, see
read_comparison.
Rows also include finding_counts (opened / recurred / closed), and
the systemic-family rollup in families. Each family includes its signature
and counts plus sample_members; each sample member carries finding_key,
object_name, column_name, disposition, and an evidence object narrowed
to source_value and target_value (or null when evidence is absent).
The listing omits member_keys and full evidence documents; fetch one event’s
findings for the complete rows. The settled_at_run object contains person_ruled and
instrument_void counts from the residue this comparison measured, as they
were settled when the run executed; it is null when that historical record is
unavailable, not a zero count. A recorded run that only closed findings can
legitimately return zero for both counts. Per-finding rows are not inlined; load
them for one event via GET /api/estate/comparison-events/{diff_hash}/findings
(newest events first). The response also includes truncated, which is true
when more events remain beyond the page, and total_row_count, which is the
exact event count only when the page is complete; it is null on a truncated
page.
GET /api/estate/comparison-events/{diff_hash}/findings
The diff_hash path accepts an unambiguous 8-or-more-character prefix as well as the
full digest; ambiguity and minimum-length refusals are described in the toolkit short
hash contract.
Successful responses include
data as an object:
{diff_hash, view, total, offset, limit, settlement_counts, settled_at_run, settled_at_run_basis, findings[]}. total is the count before slicing, so a caller
knows how far it has to page. settlement_counts contains one count for each basis —
person_ruled, instrument_void, closed_by_diff, and unsettled — across every
finding the comparison exhibited, not only the returned page or a filtered family.
settled_at_run repeats the parent comparison event’s historical split; null means
that the as-of-run record is unknown, and settled_at_run_basis explains why.
With view=rows, each entry of findings carries finding_key, comparison
metadata (comparison, object_name, column_name when present),
event_role (opened, recurred, or closed), decoded evidence, and
systemic-family annotations when present (family_signature,
family_direction, family_pattern). It also carries top-level column,
detail, source_value, and target_value fields, read directly from the
corresponding values in evidence rather than re-derived. Missing evidence values
are null; when there is no evidence object, column falls back to column_name.
Every row also carries rests_on_reopened_seal: the read-time reopen notice when the
run that last saw the finding is a verdict over a seal whose ruling was withdrawn or
overturned, otherwise null. The finding remains open; relay the notice rather than
presenting it as a live failure of that ruling. Deriving the notice costs one indexed
event query and one scalar run read per 500 rows, plus seal-provenance and review reads
when any run names a spec. See the ledger response fields
for the notice semantics.
Every row also carries settlement:
{settled, settlement_basis, settled_by, settled_by_basis, settled_at, settled_at_basis}. Read this block to determine whether the difference is accounted
for; status, state, and closed_by_diff describe whether it is still observed,
so a settled finding can still be open there. settlement_basis is one of
person_ruled, instrument_void, closed_by_diff, or unsettled.
settled_by identifies the person for the first two bases when the ledger has an
identity; otherwise it is null and settled_by_basis explains why. settled_at is
the instant the ledger stamped a person_ruled or instrument_void ruling, written in
the same transaction as the verdict. It is never updated_at, which records the row’s
last write of any kind. A legacy row ruled before disposition timestamps existed returns
settled_at: null with a basis explaining that age; closed_by_diff and unsettled
also return null with their own basis because neither is a person ruling.
With view=index, each entry carries only the join coordinates
(finding_key, comparison, object_name, column_name), event_role, the
family (family_signature, family_direction), and disposition_at_run.
Index entries carry the same settlement block as row entries.
disposition_at_run is the finding’s disposition when this comparison ran,
not its current ledger disposition. The response also includes
dispositions_at_run_available: true only when a lifecycle record exists and
covers every non-closed finding measured by the run. A false value means the
historical rulings cannot be fully reconstructed; treat each missing
disposition_at_run as unknown rather than as an unreviewed finding. Closure
rows are excluded from this coverage because they were not part of the run’s
residue. evidence is present only on a finding this comparison closed — a
closure is absent from the comparison’s own measured elements by construction,
so nothing else describes it. The index is never sliced (offset is 0,
limit is null): a client joins every measured element against it, and a
truncated join does not fail, it silently blanks the affordances that hang off
a finding key.
With view=rows, the page also carries person_acceptance, the reviewed outcome without
its item list, or null when no person’s acceptance stands. It includes the same
approver_names map described in the comparison review response.
Each row carries
person_accepted: true when the person accepted that finding; when
person_acceptance is null, all rows are false. Report it as accepted, not as checked,
even though this is separate from the machine lifecycle: the finding remains observed and can still have
state: "still_open". The index and keys views carry neither field.
The row view’s acceptance check costs one review-log field-patches query per page. If a
verified person’s exception stands, it also folds the review outcome and resolves one
population row. When that outcome stands, this includes an uncapped stimulus run-feed
scan, a scoped finding-ledger fold, the population’s complete member set, and the
comparison’s findings ledger.
With view=keys, each entry carries only finding_key, event_role,
object_name, column_name, and last_seen_diff. Use it to enumerate findings for
disposition without transferring or decoding their evidence and lifecycle trail;
page it with offset and limit like view=rows. settlement_basis applies to
every view before the page is cut, so a filtered page is a subset of the comparison,
not merely a filter over one page; settlement_counts remains the whole-comparison
denominator.
Returns an empty page (total: 0) when the diff hash was never recorded — a
comparison that exhibited nothing and one that was never run are the same
absence to a reviewer, so neither is an error.
GET /api/estate/findings/families
Each row summarizes one systemic family:
family_signature, member and object
counts, and sample members. signature_shape is persisted only when every member
was placed from its stored family coordinates; it is computed when any member had
to be derived from its evidence document. Each sample member includes finding_key,
object_name, column_name, and disposition, plus an evidence object
containing only source_value and target_value; when evidence is absent,
evidence is null. The listing omits member_keys and does not inline whole
evidence documents. Use the family member or witness drill-down endpoints when
you need the full finding evidence. Open families are returned first, largest
first. The response also includes deferred_family_signatures: null unless
with_deferrals=true, otherwise a list of the listed families the current person
has parked with a Leave for now note. A family remains parked when later notes
are added; the deferral is not replaced by the newest ordinary note. A deferral
note is a family note whose body starts with [deferred:indeterminate]. Pair-scoped
notes apply to that pair; an unscoped family note applies to the family across
pairs. Only findings on comparisons the caller may see are folded into these rows;
hidden findings do not contribute members, counts, or samples, and families with no
visible members are omitted. A deferral badge counts only notes the caller may read:
pair-scoped deferrals on visible pairs, plus pairless deferrals authored by the caller.
POST /api/estate/findings/{finding_key}/disposition
Successful responses include
finding_key, disposition, waiver_owner,
waiver_expires_at, and notice. The waiver fields contain the owner and expiry as recorded; both
are null for any other diagnosis. The finding
stays open — only re-verification on a later diff run (when the difference
is gone) closes it. The adjudicator identity is taken from the authenticated
session when auth is enabled, never from the request body; when auth is
disabled, writes are attributed to local operator (auth disabled). notice is null
unless an unverified PAT made the ruling; then it explains why the ruling counts as
nobody’s acceptance.
POST /api/estate/findings/families/{family_signature}/disposition
Successful responses include
family_signature, disposition, notice,
applied_count (number of open member findings updated), and skipped_count
(number of open members left alone because they already carried a diagnosis), as well
as waiver_owner and waiver_expires_at. For a waiver, these give the terms written
on each member counted in applied_count; both are null for any other diagnosis or
when no member was written.
Members stay open — only re-verification on a later diff run closes each
one individually. The adjudicator identity is taken from the authenticated
session when auth is enabled, never from the request body; when auth is
disabled, writes are attributed to local operator (auth disabled). notice is null
unless an unverified PAT made the ruling; then it explains why the rulings count as
nobody’s acceptance.
Across direct dispositions and disposition-package approvals,
promote_delta only
labels a finding as an intended change. It adds nothing to any declared change (Δ),
creates no standing rule, and the next comparison finds the same difference again,
already labelled.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages
A package containing
target_defect is refused before staging, whether the diagnosis
appears in items, a family selector, or a corrective package. A send-back keeps its
finding open until a fresh comparison verifies the fix; use the direct
disposition_system_diff_finding tool instead. Other diagnoses that settle a difference
without a fix remain in the human-approval package path.
Staging also refuses the whole package before writing when an included lasting-rule
promotion fails the approval preflight. The response’s refused_items identifies each
affected finding_key, its locus, approval reason, and plain_reason; no person is
asked to approve a package containing a promotion that cannot be licensed. The tool
reference describes the corrective choices returned to the proposer; see the
disposition package tool guidance.
The package is validated against the addressed comparison’s current ledger state
and accepts only findings most recently exhibited by that comparison. In
initial mode, every item must be undiagnosed. In corrective mode, every item
must already carry a diagnosis and the proposed diagnosis must differ from the
one recorded; use this mode to replace a mistaken verdict. A selector is expanded
inside the same transaction that stages the package, so its expansion response
block reports the family and selected count. corrective with select is refused
because a family selector names undiagnosed findings. Each item’s
plain_summary is the one-sentence, business-language explanation shown to the
person signing; note remains the technical rationale for the record. The
waived disposition is a time-limited exception: its owner and future expiry are
staged with the item and included in the approval projection. Terms on another
disposition are refused. A retry that changes only waiver terms is a different
request, not an idempotent replay. The
latest Adjudicator verdict also constrains defect proposals: if it is question
or spec_ambiguity, a proposed target_defect or spec_defect is refused with
400 unless that item cites a clarification_id recorded on an estate that
scanned either side of this comparison, after the seat asked, and ratified by a
signed-in person. An agent-certified clarification or one ratified with
authentication disabled does not carry the defect. A promote_delta or
waived item may instead cite the owner’s ruling: the clarification must be
recorded on an estate that scanned either side of this comparison and must not
be overturned; ratification is not required. Its provenance label is retained.
Unanswered escalations are refused; the error names the seat’s outcome and
provisional_position, explains why a cited clarification did not qualify when
applicable, lists up to 20 affected findings, and gives a count for any
remaining ones. A citation that fails these checks or appears on another item
is refused; nothing is staged. A cited clarification tied to a run the signed-in caller
cannot see is treated as unrecorded, so it cannot support an item or be copied into the
package.
Unknown fields at the request, selector, or item level are refused with 422;
the error names the unknown and accepted fields, and nothing is staged. The response
includes package_id, diff_hash, mode, item_count,
subject_fingerprint, approval_url, approval_generation, action_review, and
coverage; selector requests also include
expansion, while listed requests return it as null. coverage records the
comparison-wide exhibited, dispositioned, and undispositioned counts measured
when the package was staged, plus proposed_here; retries return that original
measurement. When a staged item proposes a different disposition from a still-open
package on the same estate pair, the response also includes open_package_conflicts,
with one entry per package (package_id, diff_hash, and item_count for the new
package’s disagreeing items). The conflict is disclosed but does not refuse staging;
whichever package is signed first sets the record. No finding is changed by this request.
See propose_finding_disposition_package and
propose_finding_disposition_correction for the agent hand-off guidance.
Staging is agent-reachable and requires view_connections. With authentication
enabled, the proposer identity is recorded for review; this request does not
require a human approver. The approval link opens the package in Human Review.
Packages staged through a Genesis agent tool use the acting agent as the proposer
of record and retain the authenticated caller as the person the agent worked for;
if the agent runtime has no bot id, the proposer is agent (unattributed). A
direct HTTP request omits that agent context and remains attributed to its
authenticated caller. When that caller is a service identity, staging also asks
for Action Review approval immediately. If the request cannot be minted, the
package remains staged and its read exposes can_request_approval so approval can
be requested from the package later. If a person declines the package’s linked Action Review
request, the package is closed as retracted and the comparison is free for the
agent to stage a new initial package. Policy denial of a linked direct selective
decision also closes that package generation; package reads identify it with
retracted_as: "policy_denied_in_action_review".
GET /api/estate/comparison-events/{diff_hash}/disposition-packages
Returns
data as summary rows, newest proposal first. Each row includes
package_id, diff_hash, title, status, mode, proposer attribution,
justification, proposed_at, item_count, decided_count, and
undecided_count, moved_count, approval_generation, and the package’s approval_url.
moved_count is the number of undecided items that changed after staging; it is 0
for packages that are not open. When it equals undecided_count, none of the open
package’s remaining items can be approved: reject the package or stage a fresh one.
decided_count counts all settled items, including legacy send-backs applied
without a person’s approval and items returned to their proposer because no one
could approve them; it is not necessarily the number of human rulings or
signatures. Such items do not appear in the package’s human signature record.
Rows also include retracted_at, retracted_by, and retracted_as; these are
null while the package stands. For a package closed by an Action Review decline,
retracted_as is declined_in_action_review; policy denial of a direct selective
decision is policy_denied_in_action_review. retracted_agent_basis is an object
with basis, agent, and person when an agent declined on that person’s word;
retracted_by remains the person. It is null for a person’s own decline and
other withdrawals.
Summary rows also include can_request_approval, true for an open agent- or
service-staged package with no current Action Review owner when no request has
been made or its prior request can be renewed. Use this state to offer the
package’s approval-request action.
Each row also includes approval_run, the latest approval run for the current
package generation, or null when there is none to show. It reports whether an
approval is accepted, applying, done, or failed, and its signed-item count. A
failed run remains in listing rows for one hour; the package read retains the
current generation’s latest run.
Evidence-bound Prover packages also expose evidence_error;
it is null for legacy packages and valid evidence, and contains the refusal
reason when persisted evidence cannot be authenticated. viewer_can_sign is
true when the caller has a signing identity and the package is open; it is
false with viewer_cannot_sign_reason set to no_signing_identity or not_open
otherwise. A person’s own PAT may sign, but viewer_cannot_sign_reason explains when
its account email is not verified at the person’s latest sign-in. Any person may sign,
including the package proposer, and no special approval permission is required.
viewer_can_apply matches viewer_can_sign.
These verdicts are never null.
Each row also includes viewer_signs_as: the identity this caller’s signature would
carry, resolved by the same rule as the approval write, or null when the caller has no
signing identity.
Listing a package does not include its items or
evidence — that would cost a ledger join per row — and each row names where they are
instead: items_at is the path of the package read endpoint for that package, composed
from the route this API registers for it. GET /api/estate/disposition-packages/mine
rows carry the same items_at.
GET /api/estate/disposition-packages/mine
Returns data as the caller’s most recent standing package sign-offs across
comparisons. Each row includes the package summary fields plus
my_decided_count, my_approved_count, my_rejected_count,
my_decided_keys, and my_last_decided_at; only that caller’s decisions are
counted. my_agent_approved_count and my_agent_rejected_count count the caller’s
decisions made by an agent on their word. my_agent_basis identifies the basis,
agent, and person (and may include goal) only when all such decisions share one
attribution; otherwise it is null. Decisions later withdrawn are not listed, although they remain in the
audit history. The response also includes truncated; when true, older
signatures may exist beyond the bounded scan of recent decisions and the client
must surface that the worklist is partial. A caller without a signing identity
receives an empty data array.
With authentication disabled and no X-Genesis-Signed-As claim, the listing
treats the system_default_user and local-operator principals as the same signer,
so Action Review package approvals recorded for the local operator are included.
GET /api/estate/signoffs/waiting
Returns
data as a map keyed by each requested stored comparison this caller may
see whose snapshots resolve to an estate pair. A comparison outside the caller’s
visible scope, not stored, or without a resolvable pair is absent rather than
returned with empty lists. Each value has packages, the comparison’s open
disposition packages, and rules, its rule-review rows; either list can be empty
when no queue items are waiting. Both lists carry the caller’s signability fields.
Package rows also carry moved_count, as described in the package listing.
Package rows do not include Action Review links; their action_review is null
and can_request_approval is false.
Use the comparison’s package listing
when Action Review links are needed. The rule rows include bundle-hold and
signability details, as in the single-comparison rule-review read.
This read does not run rule consent read-repair. It requires view_connections and is
read-only. More than 200 distinct hashes returns 400 rather than silently truncating
the results.
Rule rows are selected per comparison pair: a rule appears when no binding exists for
that exact pair and its earliest definition is not retired. A binding to another pair
does not clear this pair’s work item, and legacy definition status does not hide an
otherwise unbound rule.
GET /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}
The response includes
data with the package status (open, closed, or
retracted) and mode (initial or corrective),
the verified proposer identity, any unverified proposer_display_name claim,
justification, item_count, decided_count, undecided_count, and moved_count
(the same counts the listing row carries), and each item’s proposed disposition,
plain_summary, optional rule_id, promotes_rule, decision, reviewer identity and timestamp, stale state, and
live subject evidence. Each item also returns its staged waiver_owner and
waiver_expires_at when terms were recorded. returned_to_proposer is null unless
the item was handed back because no approvable lasting rule remained; then it contains
the approval’s reason, its plain_reason, and returned_at. This is settled package
state, not a human decision. Subject evidence includes comparison, object name and
resolved object_type when known, column name, status, last-seen comparison,
current disposition, source and target values, detail, and family coordinates.
For a failed-check item with no structural object, the subject’s object name comes
from the check’s declared table, or from its sole read table when no table is
declared. Its column name is populated only when the check compares exactly one
column. When the check has no unique table, no table is inferred; when it compares
multiple columns, no column is inferred.
An item whose defect verdict was carried over the seat’s question, or a
promote_delta or waived item with a cited owner’s ruling, also includes
clarification with clarification_id, subject, statement, label,
reviewed_by, reviewed_at, and answers_outcome. reviewed_by and
reviewed_at may be null for a ruling nobody reviewed; answers_outcome is
null on a ruling item because it answers no seat question. The field is
null when the item cites no clarification.
For corrective packages, each item also exposes current_disposition, the
diagnosis recorded when the package was staged, so the signing surface shows the
verdict being replaced as well as the proposed one.
Each item carries adjudicator_verdict, the Adjudicator ruling that backs it:
verdict_id, adjudication_id, outcome, confidence, the finding’s durable
finding_id (#N, or null), and link — staged when the ruling’s own proceeding
staged this package, ledger when it is the newest ruling the verdict log holds on the
finding. It is null when no proceeding ruled on the finding. It also carries
departs_from — the earlier ruling (verdict_id, outcome) this verdict overturned,
or null. Reading it costs one or two verdict-log queries per package read.
Each item carries open_package_conflicts: every package that was still open on the same
estate pair when this one was staged and whose item on the same finding proposed a
different disposition (package_id, diff_hash, proposed_disposition); empty when
none. Staging is not refused over it — whichever package is signed first sets the record.
A moved item is marked stale; fresh undecided items remain independently
reviewable. signature lists every signer separately, the items each signer
decided, and their approval/rejection counts; it is null before any decision. An
item decision includes agent_basis only when an agent made that ruling on a person’s
word; it identifies basis, agent, and person, and may include goal. When an
agent acted on a person’s word, the corresponding signer entry also carries
agent_basis. The person’s own rulings remain a separate signer entry even when they
have the same signer identity. A decision records self_approved: true when its signer
is also the package proposer.
viewer_signs_as identifies the identity that would be recorded if the caller
signs, or is null when the caller may read but may not sign. A person’s own PAT is
accepted and labelled via personal access token when its account email matches the
email verified at the person’s latest sign-in. An unverified PAT cannot sign; its reason
is returned in viewer_cannot_sign_reason. The response also
includes viewer_can_sign and viewer_can_apply, plus
viewer_cannot_sign_reason when the caller cannot sign. The reason is
no_signing_identity, not_open, or the explanation for an unverified PAT; it is null
when the caller can sign.
Any signed-in person, including the proposer, can sign without a special
approval permission, so viewer_can_apply matches viewer_can_sign.
viewer_withdrawable_keys is a string[] (default []) of item keys whose
signatures this caller may withdraw. It is empty unless the caller has a verified
principal, the package is not corrective, and the listed rulings were recorded under
that principal. A signature whose lasting
rule still licenses the pair or a reclaim conflict can still be refused when
withdrawal is submitted.
Evidence-bound Prover packages additionally return evidence_fingerprint,
evidence_summary (the captured comparison, scope, and member count),
evidence_scope, evidence_member_count, and remeasurement: "not_enqueued".
evidence_error is null when the persisted envelope authenticates and contains
the server’s refusal reason when it does not; an evidence error does not change
the separate viewer_signs_as eligibility result.
The response also includes approval_generation, the package generation an
Action Review item must name to own approval, and action_review, the current
Action Review item head when one owns this generation. A lapsed or applied item
may be returned as action_review_history; it is history, not the current owner.
It also includes can_request_approval, true for an open package staged by an
agent or service when no Action Review item currently owns approval and the
request has not yet been made or can be renewed. A service-staged HTTP package
normally attempts to create its request during staging; this field surfaces the
retry path when no request was created or its request later lapsed.
It also returns retracted_at, retracted_by, and retracted_as, which are
null while the package stands; retracted_as: "declined_in_action_review"
identifies a package closed by a person’s Action Review decline, and
"policy_denied_in_action_review" identifies one closed by policy denial.
When an agent declined on a person’s word, retracted_agent_basis is an object
with basis, agent, and person; retracted_by remains the person. It is
null for a person’s own decline and other withdrawals.
The response also includes approval_projection_digest, the digest that a
native selective decision must send with the package generation.
It also includes promotion_previews, the staged promotions’ shared
pair_fingerprint, previews, and unavailable entries (including each
unavailable item’s plain_reason). The preview contents and refusal fields are
the same as the promotion-preview endpoint.
Because the approval projection already computes these previews, the package
read returns them with the package rather than requiring a second request from
the approval page.
approval_run reports the current generation’s latest approval: run_id,
state (accepted, applying, done, or failed), started_by, timestamps,
the optional action_review_proposal_id, total and signed counts, the named
items and their signed flags, and signed_by. A failed run includes reason,
not_recorded entries with per-item retryability, and the overall retryable
flag. The run reflects recorded package decisions, not just the submitted
request; done means every named item carries its requested ruling.
GET /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/promotion-preview
Preview the correspondence rules that approving this package’s promotion items
would create. The response is a snapshot and writes nothing; the package may
change before approval, which remains authoritative. This read costs a package
fold, a findings-ledger read, and rule resolution and pair-binding reads for the
promotions previewed, so call it once per package rather than once per item.
data contains diff_hash, package_id, the shared pair_fingerprint,
previews, and unavailable. Each preview describes the drafted rule, including
its rule_id, component_pair, rule_kind, title, claim, applies_to, and
edge_fixtures. reusability_refusal is the agent-facing refusal or null;
plain_reusability_refusal explains the same refusal in business English or is
null when there is no such refusal. A revoked approval for this estate pair is
reported here before the reviewer approves.
Each unavailable entry includes finding_key, reason, and plain_reason;
the latter explains why the promotion cannot be approved and what the reviewer
can do. Items approval would refuse are reported here rather than shown as
licences. The preview also applies the approval’s field-survival check using the
pair’s configuration. Qualification that requires running against the configured
pair remains checked during approval.
GET /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/record
Read the package’s signing record and the Action Review request associated with its
current generation, without loading the package’s per-item review data. The approval
result line can use this endpoint instead of the full package read.
The response returns
data.package_id, data.diff_hash, data.title,
data.signature, data.action_review, and data.action_review_history.
signature contains each signer’s identity and the decisions covered by that
signature; it is null before any decision. action_review is the request that
currently owns the package approval, or null when there is no owner.
action_review_history is the request for the current package generation when it
no longer owns approval (for example, after applying or lapsing undecided); it is
not the current owner. The request objects use the same projection as the full
disposition package read.
This read does not return package items, evidence, staleness, the viewer’s verdict,
or approval projection. Each call performs a view_connections permission check,
one comparison-existence read, one read of this package’s review-log events, and
one Action Review link read; it does not do the full read’s findings-ledger join,
Adjudicator verdict read, or approval projection.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/approve
For packages otherwise eligible for direct selective decisions, this path is
available only after their all-staged Action Review request lapses. Agent- or
service-staged packages cannot be approved or partially decided here. A person
can decline one only by rejecting every open item in a single submission when
no live Action Review request covers it. Decide a live request through Action
Review. For a human-signed run that can approve an agent- or service-staged package,
use
/approval-runs below. After a request lapses, a whole-package decline needs no
renewal; approval still does. Each native selective submission is recorded in Action
Review as prover.decide_disposition_package.v1; its response includes the sealed
action_review_proposal_id. The digest and generation bind the request to the
package projection the reviewer saw and are checked again under the package
lock. Only named items are ruled on; omitted items remain undecided. approve writes
the proposed diagnosis, or the supplied amended disposition, under the
authenticated human’s identity. For each approved item, a disposition other
than target_defect can also resolve matching unexpected_change items in the
selected Human Review population. Duplicate-coordinate population groups
resolve only when the package covers every member; target_defect does not
license a population item. reject retires the proposal without writing a
disposition. The response includes applied_count, skipped_count,
rejected_count, applied_keys, rejected_keys, approved_by,
proposed_by, population_resolved_count, the number of Human Review blockers
resolved by this approval, ratified_rules (each with finding_key and
rule_id), corrections (each with finding_key, prior_disposition, and
the new disposition), and refused_items (each with finding_key and the server-stated
reason). notice is null unless an unverified PAT made an approval, in which case it
explains why the ruling counts as nobody’s acceptance. An unverified PAT is refused before
any write if the package contains a promote_pi item or the requested decisions would
promote a rule; the entire package is left unchanged. An eligible promote_pi item
qualifies and ratifies its correspondence
rule in the same signing action, using the reviewed comparison’s persisted pair
configuration. A rule proposed by an agent or service cannot be ratified as part of
a person’s package: request its own Action Review approval first, then approve the
package. If a promotion cannot be licensed, that item remains undecided and is
reported in refused_items; other selected items can still be applied.
A package decision is selective, and an item cannot be decided a second time. For
a corrective package, approval supersedes the staged prior diagnosis using a
compare-and-swap check; the response’s corrections list records each old-to-new
transition. If a selected promotion is refused, other selected items can still
be applied; refused items remain undecided and the response has complete: false.
complete is true only when the submission succeeds without refused items.
If every selected approval is refused, no ruling is recorded. When the remaining
undecided items also all fail the approval preflight, the response includes
returned_keys for the items handed back to the proposer; the package closes instead
of asking another person to review rules that cannot be approved.
For an initial package, approval writes findings with set-based statements rather
than one write per item. Each row carries its own diagnosis, note, waiver terms,
and compare-and-swap values, so distinct item values do not require separate writes.
Typical packages use three SQL statements; larger batches are split to stay within
bound-value limits. The endpoint responds after the Prover decision commits. For an
applied decision, family-dossier cache invalidation, sealing the linked Action Review
outcome, and any instrument_defect Prover-defect filing finish after the response.
Until the outcome is sealed, the linked Action Review request remains claimed.
For the linked Action Review request’s separate conversation hand-back, see the
status-tool contract.
Filing status is recorded on each finding and can be read from the
findings dispositions API;
see False alarm (Prover)
for the filing-status meanings.
Any signed-in person can approve this package, including its proposer, without a
special approval permission. The response and stored decision identify an approval
by the proposer with self_approved: true; a person’s own PAT signs as its owner when
its account email matches the email verified at the person’s latest sign-in. An unverified
PAT’s allowed approvals count as nobody’s acceptance and return that explanation in
notice; package approvals that promote a rule are refused before any write.
Approval checks the staged
subject state transactionally; a changed finding cannot be approved, although it
may still be rejected so a stale package can be retired.
For an evidence-bound Prover package whose evidence_error is non-null, approval
is refused with the same stale/refusal response; rejection remains available so
the unsafe package can be retired. The package does not enqueue a fresh
comparison or remeasurement.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/approval-runs
Accepts the same selective decision request as /approve, but answers once the
approval run is recorded rather than waiting for its decision to finish. The
path parameters and body are the same as /approve. The
response uses HTTP 202 and includes run plus already_signed_keys. The
package read and package-list rows expose the run while it is being recorded.
If every named item already carries exactly the requested ruling, run is
null, no new run is written, and already_signed_keys names those items.
run.state is accepted before recording begins, applying while the decision
is being applied, done once all named items carry the requested rulings, or
failed if the run stops with items not recorded. The response also includes notice:
it is null except when an unverified PAT starts an approval, in which case it explains
why that approval counts as nobody’s acceptance. An unverified PAT cannot start an approval
that promotes a rule; the entire package is refused before the run is accepted. The run includes its run_id,
signer and timestamps, total and signed counts, per-item signed flags,
signed_by, and the linked action_review_proposal_id when known. A failed run
also returns a plain reason, not_recorded entries with individual
retryable flags, and an overall retryable flag. Use those fields to show
progress and determine whether an item can safely be submitted again.
If an attempted decision has an uncertain outcome, the failed run’s reason says
the server could not confirm whether it was recorded and includes the request ID;
the underlying detail is in the server log, not the response. Reload the package
before trying again to check where its decisions stand.
Any signed-in person can start an approval run, including the package proposer;
no special approval permission is required. A self-approval is recorded as
self_approved: true. It refuses an approval already in progress for the same
package. For an agent- or service-staged package, each selected approval must match
the staged item: it cannot amend the disposition, note, or waiver terms.
When the package has no prior decisions, the run approves every open item as staged,
and the package’s own pending all-staged Action Review request covers the same
projection, it decides that request.
For any other selection, it creates a selective Action Review request recorded as
the package’s proposer and retires that package’s still-pending request, if any.
The run refuses an unrelated or bundle Action Review owner. Other decision checks
include the package generation and projection guards and waiver expiry validation.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/renew-approval
Mints a fresh Action Review item for the same open package only when the
previous request lapsed without a decision. The response includes
proposal_id,
its effective status, and renewed; a live item is reused with
renewed: false. The generation is a compare-and-swap guard: if the package
changed after the page read, the request returns 409 with package_changed
instead of asking a person to approve an unread package. A declined request,
an applied request, or a package that is no longer open cannot be renewed.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/unsign
This is a compensating action, not a delete: the decision remains in the review
history as signed and then retracted, while successfully retracted findings are
returned to the open undiagnosed set. The caller must be the same person identity
whose signature covers at least one named item. With authentication enabled, that
can be the person’s sign-in or their own PAT; an agent or machine token cannot withdraw
a signature. Items whose ledger row no longer carries
that signature are left unchanged and disclosed in
skipped; a request naming
only another person’s items is rejected. If the signature ratified a correspondence
rule that is still licensing the comparison’s estate pair, retraction is refused;
revoke that rule first in the Platform rules surface, then retry this endpoint.
Successful responses include package_id, retracted_count, retracted_keys,
skipped (each with finding_key and the server-stated reason),
retracted_by, and population_reopened_count, the number of Human Review
items whose package-based resolution was re-opened. A corrective package cannot
be unsigned: clearing it would erase the diagnosis it superseded rather than
restore the prior verdict and attribution. Submit another corrective package to
change that verdict. Retracting an approval
re-opens its package-bound population items in the same transaction; items
still covered by the package’s remaining approvals, or resolved by another
authorization, remain resolved. The signature projection in the package read
shrinks to exclude items that were retracted.
POST /api/estate/comparison-events/{diff_hash}/disposition-packages/{package_id}/retract
Withdraws the caller’s own package before any item has a decision. Any signed-in
person may also withdraw an unanswered package staged by an agent or service; this
does not permit withdrawing a package staged by another person. The person’s own PAT
is accepted as their identity. The
operation changes no finding disposition; it records the package as
retracted
and removes it from the reviewer’s waiting worklist. The response includes
package_id, diff_hash, status: "retracted", retracted_by,
retracted_as ("proposer" or "operator"), reason, and item_count. A
package closed because its linked Action Review request was declined or policy
denied is instead represented in package reads with
retracted_as: "declined_in_action_review" or
"policy_denied_in_action_review"; it releases its open-package claim so a new
initial package can be staged. The
caller’s identity is resolved server-side; there is no request body identity
field. When supplied, reason is trimmed and recorded; blank reasons are stored
as absent.
Mapping proposal review endpoints
GET /api/estate/comparisons/{diff_hash}/review/mapping-proposals lists proposed table
mappings for a comparison. POST on the same path asks for any mapping not yet requested,
then returns the listing. Both require view_connections; the POST operation is
idempotent for existing requests.
Each data.proposals[] row includes target_only, the target columns no source column is
carried into. The decision-bearing mapping request and removal views include
decision_source and agent_basis: decision_source is agent:<basis> when an agent
decided on a person’s word, and agent_basis contains {basis, agent, person, goal?}
(basis is agent_person_present or agent_delegated; goal is present for a delegated
decision; null for a person’s own decision). See the Prover mapping guide
for how catalog types affect their target-model declarations.
GET /api/estate/comparisons/{diff_hash}/review/bundles
Returns
data with diff_hash and bundles[], oldest first. Each bundle
includes bundle_id, the display-only proposed_by, proposer_principal (the
proposal principal; with authentication disabled, a local operator’s proposal uses
local-operator), proposed_at, rationale, brief when the bundle carries
one, run_id, population_hash,
carries, approval_route, approval_url, approval_url_basis, and
approval_path. approval_route is action_review for an agent-staged bundle
carrying correspondence rules and no disposition or evidence-gap packages; it is
direct otherwise. approval_path
is the same review page relative to the Genesis dashboard and remains present when
approval_url is null because the deployment publishes no public base URL. A
bundle carrying disposition packages or using the action_review route also
includes action_review, with the linked proposal’s proposal_id, status, and
url. If that link cannot be read, status is unavailable, reason is ledger_read_failed or
adapter_unavailable, and proposal_id and url are null. It also includes
viewer_signs_as, the signer label this caller’s approval would record,
viewer_can_sign, and viewer_cannot_sign_reason. The latter two reflect whether
the approval door would accept this caller on this bundle: viewer_can_sign is
false with reason package_requires_action_review for bundles carrying
disposition packages or agent_bundle_requires_action_review for rules-only
bundles using the action_review route; neither kind can be approved through
the bundle endpoint. Otherwise,
viewer_can_sign is null when no signer is available, false when approval
would be refused, and true when it would be accepted. When the signer is
unavailable, viewer_cannot_sign_reason is no_signing_identity; otherwise it is
not_open when the bundle is no longer awaiting approval. An unverified PAT is not
offered a signature; viewer_cannot_sign_reason gives the email-verification explanation.
The proposer may sign
their own bundle without a special permission. It is null when the caller may sign.
The reason reports the first refusal the approval door would encounter. population_moved is
true when a bundle carrying evidence-gap packages was assembled against a
different current population hash; current_population_hash is null for a
bundle that carries no evidence-gap packages. Bundles whose members were already
settled or whose recorded scope changed are not offered as standing work. When
evidence gaps are carried, carries.evidence_gap_packages also returns the
staged waiver_owner and waiver_expires_at. It also returns member_statement,
the exact recorded members grouped by package with each member’s finding_id, readable
name, and says text, plus members_digest. The digest is null if the bundle did not
record every package’s members; those members can still be displayed, but a native approval
cannot count them toward Proven. The approval route must send the displayed digest back.
POST /api/estate/comparisons/{diff_hash}/review/bundles
Unknown body fields are refused with
422; the error names the unknown and
accepted fields, and no bundle is staged. A part that exceeds its brief bound is
also refused; the server does not shorten it.
The response includes bundle_id, brief when the bundle carries one,
approval_route, the comparison’s current
run_id and
population_hash, the trimmed rationale, approval_url and its basis,
approval_path, and carries. For a bundle carrying disposition packages, it
also includes action_review with the composite proposal’s proposal_id,
status, url, card_sent result, and adopted_package_requests, the array
of package-request proposal IDs withdrawn in favor of the composite request.
This array is empty for bundles proposed through this human-facing HTTP route.
Use action_review.url for that human decision; the separate bundle approval
endpoint cannot approve package members.
An agent-staged bundle carrying correspondence rules and no package members also
uses route action_review and includes that linked request. Proposals staged by
a human through this HTTP endpoint use route direct. For direct-route bundles,
use approval_url (or approval_path
when the URL is null). approval_path is the same review page relative to
the Genesis dashboard and remains present when approval_url is null because the
deployment publishes no public base URL. The carries object reports each kind’s ids and count: correspondence
rules as count of of_proposed, disposition packages with submitted
item_count of of_undispositioned_findings, and evidence-gap packages with
member counts of of_open_members. It also includes excluded_rules; each
excluded rule has its rule_id, title, rule_kind, the eligibility refusal, and
the remedy. A human’s all_proposed_rules selection leaves out a rule whose
sign_off_route is action_review; its remedy is to request approval for that
rule separately. Data-derived and unclassified rules are also left out of bulk
selection. A person cannot name one in this route; an agent may name one in a
rules-only bundle through propose_approval_bundle, subject to its one-rule
limit. Repeating
the same membership and recorded scope for the same proposer replays the
standing bundle without writing another event.
Staging changes no rule, package, finding, or evidence-gap decision. A bundle is
bound to the scope read when it is proposed; approval refuses if a package’s
undecided items or an evidence-gap package’s members moved after staging.
When the bundle creates a composite Action Review request, it can claim each
correspondence rule it carries only if no other live request or open agent- or
service-staged package owns that rule on the estate pair. A package owns a rule it
proposed or that one of its items promotes under; a conflict returns
rule_owned_by_package with the owning package identifier.
Replacements and retractions clear pending bundle asks from Action Review.
POST /api/estate/comparisons/{diff_hash}/review/bundles/{bundle_id}/approve
The request has no body: approval cannot widen the membership fixed at proposal
time. A bundle carrying any disposition package is refused atomically with
rule: "package_requires_action_review"; an agent-staged rules-only bundle is
refused with rule: "agent_bundle_requires_action_review". Neither refusal
approves any member; both bundles settle through their composite Action Review
request. For other bundles, one transaction sends correspondence rules through rule
ratification and evidence-gap members through the exception-approval path. The
response includes bundle_id, the approval event id, approved_by, per-kind
results for rules, packages, and evidence_gaps, and counts_toward_proven with
not_counted_because. Evidence-gap approval counts only when the person-door mark is valid
and the displayed digest matches the complete member statement; otherwise the approval is
kept but does not prove the comparison.
Any signed-in person can approve this bundle, including its proposer, without a
special approval permission. The response includes self_approved to identify an
approval by the bundle’s proposer. Bundles carrying disposition packages are refused
through this endpoint as described above. With authentication enabled, a person’s
own sign-in or PAT whose account email matches the email verified at their latest sign-in
can sign and a typed name is refused; PAT signatures are attributed to their owner.
Unverified PATs are refused with 403. With
authentication disabled, the caller is recorded under X-Genesis-Signed-As with
(self-reported, auth disabled), or as local operator (auth disabled) when the
header is absent.
GET /api/estate/remediation-requests
Returns
data as an array of defect remediation requests, newest first. Only
requests whose named finding and/or estate pair the caller may see are returned;
unattributable or hidden requests are omitted and not counted. Each row
includes lifecycle fields such as status, created_by (filer), and
dispatched_by (the human who authorised dispatch, set when status is
dispatched; null while still open). Filing the same defect twice is
idempotent — the server content-addresses the request.
POST /api/estate/remediation-requests
Successful responses include
created (false when the request already
existed) and data with the persisted remediation request. The server generates
authoritative fix instructions — they are not trusted from the client. A supplied
diff_hash is recorded beside the request, not used in its identity; a comparison from a
different pair or a reverse check is refused.
Dispositioning the finding or family as target_defect remains a separate call
(POST /api/estate/findings/.../disposition). The filer identity is taken from
the authenticated session when auth is enabled, never from the request body;
when auth is disabled, writes are attributed to local operator (auth disabled).
POST /api/estate/remediation-requests/{request_id}/dispatch
Successful responses include
request_id and status (dispatched). The
dispatch transition is human-gated: the authenticated adjudicator is stamped on
the persisted request as dispatched_by (readable via
GET /api/estate/remediation-requests) when auth is enabled; when auth is
disabled, writes are attributed to local operator (auth disabled). That field
is written once at dispatch and is not cleared by later lifecycle transitions.
GET /api/estate/notes
Returns
data as an array of collaboration notes on one target, oldest first.
Notes on an estate pair are returned only when the caller may see a comparison on
that pair. Pairless notes are returned only when the caller authored them.
POST /api/estate/notes
Successful responses include
data with the persisted note. Notes are
append-only. The author identity is taken from the authenticated session when
auth is enabled, never from the request body; when auth is disabled, writes are
attributed to local operator (auth disabled).
GET /api/estate/comparisons/{diff_hash}/latest-conversation
Find the newest conversation about a comparison that belongs to the caller and is recorded
for a registered agent. The Prover workspace uses this when a person clicks an Ask button,
so the question continues in the conversation that contains the comparison’s context. Only
the caller’s own conversation is returned; a public or shared conversation, one the caller
can read through an admin permission, or one whose agent is not confirmed as registered,
is not eligible. The route requires VIEW_CONNECTIONS. If no eligible owned conversation
is found, conversation is null and the Ask flow starts a new conversation.
The lookup considers conversations recorded by runs about the comparison and by staged
decision packages. It reads at most ten run rows and ten review-event rows, then checks
registration for candidates with both a recorded agent and conversation address (using
the bot cache first) and checks ownership for registered-agent candidates newest first,
up to five ownership checks, stopping at a match.
If none of those conversations belongs to the caller, the request may also include
remembered_bot_id and remembered_thread_id together to identify the conversation the
Ask button itself started. Genesis returns it only when its agent is registered, the
thread still exists, and the caller owns it; one parameter without the other returns
400. Checking a remembered conversation adds an agent-registration check, an ownership
check, and a read of the thread’s stored properties.
Unknown and caller-invisible comparisons both return 404.
Returns
data with diff_hash and conversation:
GET /api/estate/comparisons/{diff_hash}/review
Returns
data with the folded comparison review state:
For the movement basis vocabulary and the distinction between a clean zero and an
unmeasurable result, see the
find_proofs response contract.
Each item in findings includes finding_id, diagnosis, disposition,
workflow, owner, exception_approved, exception_run_id,
exception_applies, exception_on_grade, exception_population_hash,
exception_package_id, updated_by, updated_at,
comments (array of {comment_id, text, author, created_at}), and audit
(array of {event_id, kind, author, created_at, detail}). For an approval event
recorded by an agent on a person’s word, detail.exception_agent_basis contains
{basis, agent, person, goal?} (basis is agent_person_present or agent_delegated;
goal is present for a delegated decision); it is absent for a person’s own approval.
detail.exception_person_door is a server-written boolean; see Prover roles and
approvals for when it is set.
exception_approved records that a grant remains on the log; exception_applies says
whether it counts on the grade shown. exception_on_grade is applies, another_grade,
unbound, no_grade_shown, expired, awaiting_person (an agent’s record waiting for the
person to confirm), or null when no exception stands. An agent’s record awaiting confirmation
does not settle the member or count toward Proven. An approval audit may also include the
server-stamped detail.exception_agent_person_id, the signed-in person’s id behind the
agent’s record; older records may omit it. A legacy pre-mark grant may also carry
provenance: "legacy_pre_marks" and label: "approved (legacy)".
GET /api/estate/comparisons/{diff_hash}/waivers
Returns
data.waivers and data.summary for the comparison. For one-time exceptions,
licenses_now is true only when the exception applies to the grade shown; otherwise it
is false, and exception_on_grade gives the reason (another_grade, unbound,
no_grade_shown, expired, or awaiting_person). Finding-waiver entries include counted
and recorded_by; licenses_now is false when the ruling’s grant does not count or does
not apply to the review shown, even when its recorded expiry has not passed. The route requires view_connections and returns 404
for an unknown comparison or one hidden from the caller. It costs one visibility-scope
load and four reads; when an approved exception is present, it also resolves the shown
grade (a run-feed walk and manifest-row read; a legacy grade may require a comparison-diff
read and decode).
GET /api/estate/comparisons/{diff_hash}/attestation
The response returns
data.diff_hash and data.attestation. The attestation is
null when no stored attestation binds this comparison; otherwise it is the
newest match, selected from attestations on contracts for the comparison’s
source snapshot whose transition names this exact diff_hash.
This summary costs two reads. It does not verify the signature or re-derive
the attestation bundle; use
POST /api/estate/attestations/{attestation_id}/verify
for that check.
POST /api/estate/comparisons/{diff_hash}/proof-report
Returns the report bytes as
application/pdf or text/markdown. The response
sets Content-Disposition and X-Attestation-Id; fetch
GET /api/estate/attestations/{attestation_id}
to retrieve the signed envelope to ship beside the report. The first download
mints the signed statement; later downloads reuse it while the underlying
comparison, grade, specification, approval and signing key are unchanged.
The signed report and statement also include coverage by plane and assurance
grade, plus whether estate enumeration completed; see the
proof-report coverage summary.
The report requires a standing Human Review approval, a verified grade for
this comparison against its sealed specification with every check passing,
no unexplained differences or readings that could not be measured after the
specification’s reclassification, no open unexplained behavioural findings, and configured
report signing. The report describes indeterminate results as readings that could not be
measured, separately from unexplained differences. When the stored comparison elements
match the count, it names up to five readings and what would settle them; otherwise it
reports the count without guessing. A stimulus run is not required: when behaviour was not tested,
the report discloses that limitation prominently on its first page and in its
limits. The signed statement binds the grade’s grade_engine_version in
predicate.transition.spec_binding.grade; the report’s verification instructions
name the same value, or unknown when neither the binding nor the grade provenance
records it. 409 returns payload.reasons when an eligibility condition is not
met, or immediately when another report for the same comparison is being
prepared; 404 means the comparison is unknown or hidden from the caller. Minting the
signed statement is an act of authority, so the caller also needs
ratify_source_contract, asked after visibility: without it the request is refused with
403 and nothing is minted, even when a statement already exists. PDF rendering can take up to
two minutes. Cost: review approval and readiness reads (including an uncapped
stimulus-run feed scan), signing-key resolution and, for a new statement, an
attestation mint; PDF format also runs one headless Chromium render.
GET /api/estate/attestation/public-key
Returns data with the public verification material; the private signing key
is never returned. Cost: one config read, one secret lookup and one permission
check. Callers with manage_secrets also receive key-source diagnostics, which
cost an environment scan, a config read and up to two secret-existence reads;
other callers do not receive an admin field.
POST /api/estate/attestation/signing-key/test
No request body is required. This signs a throwaway statement with the
configured key and verifies it with the public half. It writes nothing, creates
no attestation, and is safe to repeat. The response’s data.ok reports whether
the check passed, data.key_id contains the key id when available, and
data.message explains the result and, when relevant, where the key comes from.
Missing or invalid key material is returned in a 200 result rather than an HTTP
error. Cost: resolving the key, one signature and one verification in memory,
plus an environment scan, one config read and one secret-existence read for the
key-source diagnostics. Requires manage_secrets.
POST /api/estate/attestation/signing-key
No request body is required. The endpoint generates an Ed25519 key pair on
the server, stores the private key in the encrypted shared secret store, and
returns only data.key_id, data.public_key (base64 raw bytes), and
data.public_key_pem. The key id is derived from the public key unless an
operator configured estate_char.attestation.key_id. This operation never
replaces or rotates an existing key and refuses when the signing field is
configured by an operator or environment override. Cost: key generation,
secret-store creation and readback, and config and environment override checks.
GET /api/estate/comparisons/{diff_hash}/review/population
A comparison hidden from the caller returns 404, as an unknown comparison does.
Successful responses include
data with the selected conformance run’s population status and one member page:
When the target shape was never declared and a comparison was made, the response may also
include
unverified_spec_grade, whether no tables paired or only some did. It is the
finished spec grade shown only as guidance, with verified: false, status: "not_verified",
and tables with no declared counterpart first among its blockers. It is separate from
spec_grade, does not stand in for the comparison, and does not affect its status, counts,
or acceptance. It is null when no comparison was made or the target shape was declared.
For a paired comparison, a finished standing spec_grade can also include after_spec:
population_matches, spec_explained, unexplained, indeterminate, and, when
population_matches is true and the count is nonzero, outside_scope (the count in
accounting.outside_scope_total). When the
comparison could not determine an element that the grade’s spec licenses,
spec_licensed_undetermined gives that share when nonzero; it remains in indeterminate and
is not counted as explained. When the comparison’s minting run recorded
indeterminate_causes, this share is bounded by its boundary_not_numeric count; other
undetermined readings settled for another reason are not also counted as spec-licensed.
A spec explains raw differences only when the grade measured
this comparison’s own population; otherwise population_matches is false and none are
explained. When a verified standing grade matches the comparison and leaves none unexplained,
its explained differences are not blockers on the comparison card or Issues view.
When present, spec_grade.accounting.covered_by_checks is the number of derived tables that
were not compared cell by cell but are covered by passing plan checks. It is omitted when
zero. When the grade matches the comparison’s population, covered tables account for the
corresponding portion of the comparison’s indeterminate reading; any remaining undecided
readings stay in that count.
A grade summary may also include schema_map_excluded: readings that the spec’s explicit
excluded scope entries settled, plus outside_scope objects left unselected by a valid,
person-approved Mission plan bound to the comparison. The latter entries include
plan_scope_checksum. These are recorded as decided outside the plan’s carried scope, not as
matches; a spec omission without an approved plan does not settle the reading.
Review-population members may include same_problem_as on a requested-change item whose
structural verdict adds nothing beyond its single failed-check member on the same object. It
lets a view count that failure once while keeping both items separately addressable.
For a partial seal, spec_grade.open_clauses is the number of clauses left open and
spec_grade.spec_seal_state is partial; an unreadable seal kind is unknown. Such a
grade has verified: false and cannot stand in for a verified grade on a comparison with
no paired tables.
Each item in members includes finding_id, kind (unexpected_change, missing_requirement, or evidence_gap), comparison, object_name, column, spec_id, locus, description, detail, action, action_id, who_can_settle, source_value, target_value, cause, related_finding_id, rename_hypothesis_basis, samples, and resolution. The action fields give the server’s recommended next step, its stable identifier, and who can settle the item; they may be null when unavailable. samples is empty except on a failed spec check (comparison obligation_failed), which has no single source or target value. It lists the keys the check’s detail sentence quotes, each with the same evidence the sentence gives it. Each entry has key, column, source, target, no_row_on and sampled. source and target are the values the check read, where null is SQL NULL and "" is empty text; a key that differed in several columns has one entry per column. no_row_on is source or target when the check placed every failing key on that side, and the entry then carries no values. sampled is false for a quoted key the check sampled no value for and placed on no side. unexpected_change members also include finding_key and witnesses_available. finding_key is the findings-ledger key accepted by the finding-scoped witness endpoint; it is populated only when exactly one non-closed ledger finding was minted at the member’s coordinate. It is null for requirement or evidence gaps, an unminted locus, or an ambiguous coordinate shared by multiple entity-scoped findings. witnesses_available is true when that key can be used to fetch a witness document and otherwise false; a witness document may still disclose that localization was declined. resolution is open, ruling, exception, or withheld: ruling means a person’s recorded ledger ruling accounts for the member, exception means an approved one-time exception accounts for it, withheld means the engine measured a reading from an undeclared Data Vault pairing and nobody needs to disposition it, and open means neither a person nor the engine accounts for it. When both a person decision and withholding could apply, the person decision remains. Withholding applies only to unexpected_change and evidence_gap members at the coordinates in withheld_readings; an unmet missing_requirement remains unresolved. When exactly one object_missing member and one object_surplus member share the same final dotted object-name segment, both are annotated with cause="rename_hypothesis", each member’s related_finding_id points to the other finding, and rename_hypothesis_basis is measured_agreement when their measured row count and boundaries agree or shared_object_name when only the final dotted name segment matched. Measurement agreement is considered before name matching, and ambiguous candidates are not linked. Name matching follows the comparison’s case_insensitive_object_names setting.
For a partial seal, each open clause adds an evidence_gap member with
cause: "open_clause" and its own finding id. For ordinary clauses, object_name and
locus name clause <clause-id>; for a clause about pinned build code, they name that
asset instead. Every clause remains resolution: "open" until accounted for. Clauses about
the same pinned build-code asset share one evidence-gap package, so one acceptance of that
code as the record settles them together.
When a missing_requirement member abstains because its structural item has no declared
migration shape, its recommended action is declare_migration_shape: declare the missing
shape on the sealed spec and prove again. This is a spec repair; the build does not need to
change.
Requested-change members also include failed_by, the ids of the spec checks that
failed that item. It is empty when no check failed it and on every other member. This
field distinguishes an item known to have failed from one no check decided.
Requested-change members also include implementation_status: not_implemented,
implemented_differently, or indeterminate, matching how the grade read the item. It is
null on every other member. This lets review wording describe the grade’s reading rather
than infer an outcome from the kind of change requested.
Requested-change members also include checks_all_passed: true only when sealed checks
ran, at least one passed, and every check on that item passed; false on other members or
when those checks did not establish a pass. When true, the review offers the person the
choice to accept the requested change as landed.
exception_carried_from is a list of failed-check member ids on a requested-change member
settled as an exception by a verified person’s population-bound standing exceptions; it is
empty on every other member. This carry applies only when the structural verdict is
indeterminate, or when a transform_values or modify_etl_derivation change is
not_implemented because its values or content did not change. Every failed check attributed
to the requested change must be excepted on every relation it failed at; a structural
failure such as an absent target column is not carried by check exceptions.
A failed spec-check member also includes relations_read: the graded-side tables it
read, in record order, when no structural item claims the check (object_name is empty).
It is empty on other members and when the check has a structural object. Use this list
for the objects named by the check instead of parsing its display locus.
A new target column nobody accounts for appears as an evidence_gap with
cause: "target_column_unaccounted", its object.column in locus, and a description and
detail explaining the person decision. It remains open until reviewed; an approved
exception package records the columns as expected, while a column judged spurious must be
sent back as a defect. See scope verdicts
for how the grade identifies these columns.
When a spec accepts a value difference but no passing linked check compared its values, the
population can include an evidence_gap with cause: "spec_accepted_unchecked" and a
finding_id beginning evidence:spec_accepted_unchecked:. This member is included only when
some grade check passed and none of its attributed spec items has a non-passing check. A
person’s population-bound acceptance resolves the member only when it counts toward Proven;
it does not change the grade’s unchecked-evidence accounting. If no check passed, or an
attributed item has a non-passing check, the check remains the blocker and this member is not
added. The grade summary’s spec_accepted_unchecked_on_review, when present, counts these
members offered to the person; it is omitted when the review offers none.
An input scope member also carries scope_target_presence: present or absent
according to whether the target holds the object. It is null on every other
member; unlike scope_status: "indeterminate", it distinguishes an input that
is present from one that is absent.
A same scope member whose whole-table checksum differs also carries scope_reading:
{case, sentence, reason, unchecked_columns}, what was measured in plain words. sentence is
one short line: both sides’ row counts under the declared key, only when both counts were
read, then what was found. That is table checksum differs when it was measured. When the
checksum has evidence gaps on the same table, it is couldn't check and the columns the
checksum could not cover, or couldn't check the whole-table checksum when the checksum
abstained for the whole table on a cause no column shares. case is measured, or
not_checked for any evidence gap on the checksum, with or without a column, and for a
checksum whose re-fold errored (an errored element of the comparison’s diff, which is no
population member).
When the comparison’s case_insensitive_object_names flag is true, gaps and errored
checksum elements are associated with scope findings by case-insensitive object-name match;
otherwise, the names must match exactly.
unchecked_columns lists those columns; it is empty when nothing could not be checked, or when
the whole checksum could not. reason is the recorded cause in plain words, only when every
gap on the checksum has the same cause and that cause has plain words; null otherwise.
Beside the members, scope_reading_group gives the open scope findings that carry a reading
together: {case, reasons, finding_ids}, where case is measured, not_checked or mixed.
reasons holds the one plain-words cause every unchecked table names; it is empty when any of
them has none, or when they name different ones. Both are set only when the page holds the
whole population (offset 0 and every member returned), and are null otherwise. Neither
adds extra reads; the errored-checksum check scans the diff elements the read has already
decoded, O(elements).
For a failed-check member, detail makes sampled evidence unambiguous: SQL NULL is shown as
NULL, empty text as "" (empty text), and text that spells either marker is quoted and
marked (text). A quoted key says (no row on the source) or (no row on the target) when
its missing side was established; different keys can identify different missing sides.
If no value was sampled and no side was established, it says (no value sampled). Numeric-looking text with leading zeroes,
such as 0110, keeps its digits rather than being read as a number.
Each sample also includes source_derived (boolean, default false). It is true when
the check’s source-side projection computed that compared column, such as with
NULLIF(number, ''); source then represents what the spec asked the target to hold,
not a value read directly from the source.
resolution may also be false_alarm for a member settled by an instrument_defect
ruling; those members are counted in resolved_as_false_alarm_count rather than
resolved_by_ruling_count. See False alarm (Prover)
for the user-facing meaning.
Use this route (not a truncated findings sample) to page the full worklist and to obtain the run_id / population_hash pair callers should send with approval writes.
GET /api/estate/grades/{run_id}/review/population
The response has the same member-page fields as the comparison population route, but its
members are the grade’s failed checks and its review is addressed by
run_id, not a
comparison hash. comparison_made is false; proofless_grade identifies the spec and
seal that were graded, displays the disclosure that no comparison against a build was
made, and includes the next call that can create one. approval_refusal is always
present and explains that the review can take rulings but cannot carry an approval.
resolved_by_exception_count counts failed checks covered by approved one-time
exceptions. The route returns 404 when the run is not a grade that read no comparison
or when the caller may not see the run.
POST /api/estate/grades/{run_id}/review/finding
At least one review-state field must be present. The route applies the same patch
semantics as the comparison finding route and returns the refreshed proofless review
page, including
approval_refusal. Granting exception_approved: true requires a
genuinely authenticated human on an auth-enabled stack. A stale expected grade or
population returns 409; a non-proofless or hidden run returns the same 404 as the
proofless review-page read.
GET /api/estate/comparisons/{diff_hash}/review/evidence-gap-packages
The response includes
data with the currently offered evidence-gap exception
packages and their population binding:
Each item in
packages includes package_id, object_name, cause,
measured_columns, member_finding_ids, members, member_count,
open_count, approved_count, package_approved_count, and approved_by.
An eligible open-clause package also includes decision: the person’s question,
the choices and recommendation, the clauses it covers, and every package_id one
answer settles. Packages without a person-facing decision return decision: null.
approved_agent_basis contains {basis, agent, person, goal?} when that package’s
signature was made by an agent on approved_by’s word (basis is
agent_person_present or agent_delegated; goal is present for a delegated decision);
it is null for a person’s own signature or when approved_by is null.
record names what package acceptance records for pinned build code or run output
({name, content_sha256} for one code file, {name, artifacts: [{name, content_sha256}]} for
several files, or {name} for run output); it is null for other packages.
accepted_as_record is the record and lapses_at recorded by this package’s own
complete signature, or null when the package was not accepted as a record.
Evidence gaps withheld because the comparison paired a legacy object with an undeclared
Data Vault object are not offered as exception packages; read the population response’s
undeclared_target_shape and withheld_readings instead.
Each item in members includes finding_id, comparison, column, locus,
detail, description, and resolution. description is the requested change’s
spec wording and is an empty string for ordinary evidence gaps. measured_columns identifies where the abstaining
measurements sit; it is not a claim that those columns caused a sibling’s
abstention. approved_count includes members accounted for by any exception on
the population, while package_approved_count counts only members signed by
this package. approved_by is populated only when this package’s signature
covers every member.
An evidence-gap package is offered only when the comparison has a finished run
and a complete stored population. Members without a recorded machine cause are
not packaged and remain available for per-finding review. Package ids are tied
to the run, population hash, object, and cause, so a stale id from a superseded
population is not reusable.
GET /api/estate/comparisons/{diff_hash}/review/pending-asks
Returns the answerable questions this comparison’s proof is waiting on, matching
the asks the agent receives in read_comparison. Reading the endpoint makes no
review decision. It requires view_connections; a comparison the caller cannot
see returns 404.
The response has
success: true and data with diff_hash, asks, count,
and more. At most 20 asks are listed; count includes all asks and more
counts those not listed. Each ask includes ask_id, kind, question, options,
recommended, outcomes, and subject (object_name, column, and rule_id,
each null when it names no such subject). The ordinary kinds are accept_as_record,
owner_question, open_clause, target_only_tables, unmet_scope_entry, failed_check,
and evidence_gap. With with_sign_offs=true, sign_off asks are appended after
those asks: sign_off:rule:{rule_id} for a proposed rule and
sign_off:package:{package_id} for an open disposition package with something left
for approval. A rule is relevant when it licensed a difference in this comparison
or would explain one of its readings still open; proposed rules that bear on none
of its readings remain in the rules area and sign-off queue, but are not included
here. A sign-off ask has no answer options; sign it at its rule or package
sign-off page, not through the pending-asks answers endpoint. Its title names the
rule or package, and viewer_can_sign is true only when this caller may sign; false
or null means this caller cannot sign. Each outcome gives the selected option (or null
for a free-text answer), what happens next, and its existing action_id (or
null when the choice records nothing). Optional identifiers include
package_id, package_ids (when one answer covers several packages),
question_number, and seat_run_id. A target_only_tables ask groups target
tables absent from the plan’s scope; it carries finding_ids, run_id, and
population_hash so the person’s answer is bound to the review population. An
owner question about an agent’s scope removal may carry removal_id, estate_id,
and object_name to bind the answer to that removal. A goal_question may
include records_answer to direct Work to record the person’s answer before it
reaches the agent.
For evidence gaps, question names the unsettled columns when known and gives a
plain-language reason when the comparison has one; it does not lead with a count
of measurements. If the cause has no known explanation, the wording does not guess.
The route first loads one visibility scope and checks the comparison. With a
finished population, package planning costs one conformance-run resolution, one
complete population read, one review-event log read, two indexed row reads, and
one run read. Without a finished population, or with
owner_questions_only=true, Genesis resolves the conformance run instead of
planning packages and reading the population. Each named seat run adds one run
read and one resolutions read. with_sign_offs=true adds the sign-off queue reads
for this comparison (scope load, permission lookup, signer resolution, rule-binding
read, package-event read, and at most a findings read, proposal-queue query, and
bundle-event read); it does not read proposed table mappings.
POST /api/estate/comparisons/{diff_hash}/review/pending-asks/answers
Record a person’s answers to some pending asks from the Prover run page’s Mission
question card. Each answer uses the existing review path that settles it: owner
questions go through the owner’s decision card, eligible skips go through
evidence-gap package acceptance, target-only table acceptance records a
population-bound exception on each table, and a scope-removal answer confirms the
removal or restores the object. Other choices can leave the question open and are
reported without a write. Answers are revalidated against the comparison’s current
pending asks before any writes; the same ask cannot be answered twice in one
request. Supply the question text shown to the person to reject an answer when the
wording has changed since it was displayed.
The response returns
data.diff_hash and data.results, in request order.
Each result includes ask_id, answer, action_id, recorded, then,
refused, packages_recorded, and packages_refused. recorded is true only
when every write for that answer succeeded; an acceptance covering multiple
packages can be partially recorded, with accepted and refused package ids
listed separately. Target-only table answers record a person’s exception on each
listed finding, bound to the ask’s run_id and population_hash, for 90 days
unless waiver_expires_at supplies another future date. Removal answers use the
estate’s confirm or restore control; a restore is included in the next check after
the source is scanned again. Owner questions require ratify_source_contract; only
questions explicitly answered are recorded, and the rest stay open. The route
requires view_connections and a signed-in person or their own PAT whose account email
matches the email verified at the person’s latest sign-in. Agents, delegated tokens,
app-only tokens, and an unverified PAT are refused before reads.
Cost: one visibility-scope load and pending-ask read, one decision-card read and
write per answered seat run, package acceptance reads and writes per accepted
package, a review transaction and grade recheck for target-only findings, and an
estate read, visibility check, and conditional write for each scope-removal answer.
POST /api/estate/comparisons/{diff_hash}/review/evidence-gap-packages/{package_id}/approve
The request has no body. The server accepts every open member currently covered
by the package, binds each approval to the package’s
run_id and
population_hash, and records the authenticated human as approved_by.
Members already accounted for by any exception on that population are skipped;
the package does not create a ruling, disposition, or correspondence rule.
The response includes data with package_id, diff_hash,
approved_count (members changed by this call), unresolved_count (members
still blocking sign-off), and approved_by.
Granting the package requires the same person check as a per-finding exception approval.
On an auth-enabled stack, a signed-in person or their own PAT whose account email matches
the email verified at their latest sign-in may approve; system, machine, delegated
identities, and unverified PATs receive 403. With auth disabled, the approval is
permitted and attributed locally.
POST /api/estate/comparisons/{diff_hash}/review/evidence-gap-packages/{package_id}/withdraw
The request has no body. The server withdraws only the members approved by this
package, reopening them for review. Hand-approved members and members approved
by another package remain accounted for. Any permitted reviewer or service
identity may withdraw the package; this route does not require the original
signer or the genuinely authenticated-human approval gate.
The response includes
data with package_id, diff_hash, and
reopened_count (members reopened by this call). Re-read the review population
after withdrawal to refresh the worklist and sign-off counts.
GET /api/estate/comparisons/{diff_hash}/witnesses
Use the
comparison, object, and column values from one review-population
member. The response is the same bounded witness document served by
GET /api/estate/findings/{finding_key}/witnesses: per-side column definitions
and rows, counts, alignment caveats, and the full plan disclosure. Exact,
sampled, and declined localization semantics are preserved. This route is
useful when finding_key is unavailable; only findings on comparisons the caller
may see are considered, and it refuses to guess when multiple visible entity-scoped
findings share the coordinate. A hidden comparison is answered as not found.
For a comparison with a verified caller-declared row identity, witness
localization pairs rows under that declared key. Otherwise it uses the
comparison’s disclosed basis, if any, and preserves the existing declined or
sampled behavior when localization cannot be proved.
POST /api/estate/comparisons/{diff_hash}/review/finding
At least one of
diagnosis, disposition, workflow, owner, or
exception_approved must be present in the request body. Patch semantics: only
fields explicitly set in the body are applied, so two reviewers editing
different fields of one finding merge instead of clobbering each other. Writes
to the same field are last-write-wins; superseded values remain in the finding’s
audit trail. Changing diagnosis or disposition retracts
exception_approved and resets the run-level decision to awaiting_review.
When exception_approved is true and both run_id and population_hash are
present, the server records exception_run_id and exception_population_hash
on the finding so a later re-grade cannot silently reuse the exception. When a
disposition package approval resolves the exception, the response also records
the package id in exception_package_id; this field is server-written and is
null for a hand-approved exception.
Granting a one-time exception (exception_approved: true) additionally requires a person’s sign-in or their own PAT on an auth-enabled stack; a system, machine or delegated identity is refused with 403. An unverified PAT can record the ruling, but it does not count as anyone’s acceptance and the response’s data.notice explains why. The annotation fields — and clearing an exception — are not gated that way. A grant or withdrawal (exception_approved: false) does require the caller to be able to see the comparison: if it is hidden, the route returns the comparison read’s 404 and writes nothing. With auth disabled the approval is permitted and attributed locally. For how the native person’s review door affects Prover verification on an auth-disabled stack, see Roles and Approvals.
For a single-finding exception grant, a verified signer who omits owner becomes the
finding’s owner when it has none; an existing owner is preserved. If the request supplies
run_id and population_hash, both must still match the comparison’s current review
population or the grant is refused and the reviewer must refresh before deciding. For a
legacy grade without a stored population manifest, Genesis reads and decodes the comparison
diff to derive the current population hash before checking the binding; if that hash cannot
be established, the grant is refused with 409.
Successful responses include data with the whole folded comparison review
state (not just the edited finding), so a reviewer sees concurrent writes the
moment they save. For an exception approval made through an unverified PAT, data.notice
explains why it counts as nobody’s acceptance; otherwise it is null. The author is taken from the authenticated request context
(email, then display name, then user id), never from the body; when auth is
disabled or no identity is available, writes are attributed to
local operator (auth disabled).
POST /api/estate/comparisons/{diff_hash}/review/findings/bulk
The request applies one explicitly-set review patch and optional shared comment
to every named finding in a single transaction. It is all-or-nothing: blank or
duplicate ids, more than
200 ids, ids over the length limit, or a request that
sets neither a review field nor a comment is refused before any event is written.
Granting an exception carries the same person requirement as the single-finding route, so a caller refused there cannot approve by batching. An unverified PAT can record the group ruling without counting as anyone’s acceptance; the response’s notice explains why.
An exception grant, withdrawal (exception_approved: false), or shared comment also requires the caller to be able to see the comparison; otherwise the route returns the comparison read’s 404 and writes nothing.
For a group exception (exception_approved: true) without an explicit owner,
the authenticated reviewer is recorded as the owner of each named finding that
has no owner; existing owners are preserved.
The response includes the whole folded comparison review state plus
adjudicated_count, event_count (the number of findings changed and review
log rows appended), and notice. notice explains why an unverified PAT’s rulings count
as nobody’s acceptance; otherwise it is null. Event ordering is preserved across all named findings.
After a person’s exception grant or withdrawal, this route and the single-finding route
perform three bounded reads and one best-effort conversation delivery after the commit; a
bulk decision sends one notice for the group. Agent-recorded decisions do not send a second
notice. See Prover review decision notices.
POST /api/estate/comparisons/{diff_hash}/promote-trial
Promote a successful TRIAL proof’s comparison so it becomes the latest result for its
estate pair. This endpoint is for a person; an agent promotion uses the attested
promote_trial_run tool. The caller must be able to see the comparison. The promotion
records who acted and replays the trial’s deferred findings-ledger reconciles in the same
transaction that makes it the pair’s latest. This write costs a visibility-scope read, a
trial and proof read, plus one findings-ledger reconcile for each deferred call.
No request body is required. Requires
view_connections and a person identity. The
successful response returns data with proof_run_id, diff_hash, promoted_at, the
promotion record, and ledger_reconciles_replayed.
POST /api/estate/comparisons/{diff_hash}/review/comment
Comments are append-only — they are never edited or deleted. Successful
responses include
data with the whole folded comparison review state. Author
attribution follows the same rules as POST .../review/finding.
POST /api/estate/comparisons/{diff_hash}/review/decision
Successful responses include
data with the whole folded comparison review
state. When decision is awaiting_review, decided_by, decided_at,
decision_run_id, and decision_population_hash are cleared. For
approved / approved_with_exceptions, the server validates that the
selected population is complete, has unresolved_count == 0, and records
run_id / population_hash on the approval event. Author attribution follows
the same rules as POST .../review/finding.
Recording ANY run-level verdict requires a person’s sign-in or their own PAT: on a
stack with auth enabled a system, machine or delegated identity is refused with
403. An unverified PAT’s verdict does not count as anyone’s acceptance; its data.notice
explains why. This rule covers approved, approved_with_exceptions, and
awaiting_review alike: resetting a verdict is a statement about the run just as
an approval is, so it is not an authority-free escape from the gate. With auth
disabled the verdict is permitted and attributed locally.
POST /api/estate/comparisons/{diff_hash}/review/propose-rule
Drafts a reusable Π rule from the finding’s first-hand evidence and records the
proposal. The rule enters the Π review worklist at
pending_review (still
status='proposed' — never auto-ratified), attributed to the caller, and the
review-log event is written in the same transaction. Successful responses
include data with the whole folded comparison review state plus
proposed_rule_id (the new rule id). Author attribution follows the same
rules as POST .../review/finding.
POST /api/estate/comparisons/{diff_hash}/review/propose-cluster-rule
Proposes one reusable ruling for a same-cause cluster. Each member gets its own
single-column rule, drafted from its own first-hand evidence (never from the
client), so every licence keeps its one-element boundary. Rules that fold the same
way share a mechanism signature, so the Π worklist presents the cluster as one
question over every member’s site, which one consent signs. In the same
transaction, every member with no owner is recorded as owned by the caller.
Successful responses include
data with the whole folded comparison review
state plus proposed_rule_ids, one per member, in member order. The same transaction
records the ruling itself, which the state reports in cluster_rulings with the caller as
owner; proposing the same members again records nothing new and keeps the first owner.
All or nothing:
POST /api/estate/verifications
Run a system_diff Contract against its pre-registered source / target
connections server-side, or verify a sealed compiled derivational artifact
by compiled_spec_hash, and return the whole verification result. The
comparison executes under the authenticated caller’s identity (connection RBAC
applies), never a body-supplied bot — matching every other estate engine call.
Verification references existing connections and never creates one or reads its
credentials. Supply exactly one form:
spec— a single Contract as a JSON object (connections live inside the Contract),spec_yaml— the same Contract as YAML text, orcompiled_spec_hash— a sealed derivational artifact in the compiled-spec store, verified by ref and expanded into one comparison per obligation.
compiled_spec_hash form carries no connections (a blind-authored
artifact only ever saw a source catalog), so source_connection_id and
target_connection_id are required with it — they are injected into every
obligation at verify time and must already be registered on the instance. A
registered connection may be a legacy database connection or a saved
Connections-API database connection; for the latter, use its <type>.<name>
identifier. A saved Connections-API connection with a registered query transport,
such as palantir_foundry, is also valid. Other non-queryable Connections-API
entries are not valid verification bindings.
Optional source_db_type / target_db_type override engine selection; when
omitted, engines are resolved from the registered connection metadata (defaulting
to snowflake when unknown).
* Provide exactly one of
spec, spec_yaml, or compiled_spec_hash. Supplying none or more than one returns 422.
** Required when compiled_spec_hash is supplied.
For a by-ref request, an invariant obligation is graded wholly on one estate rather than
compared source-to-target. An obligation that declares its own invariant_side in the
compiled spec is graded on the side it declares; this request field is the FALLBACK for
every obligation that declares none, and defaults to source. Set it to target when the
target estate is the one being built and validated. The selected side’s connection and catalog
are used together, so target requires target_connection_id; an unsupported value or a
missing target connection returns an ERROR result for the affected invariant instead of
falling back to the source estate. This selector does not change keyed obligations, which
continue to compare the source and target estates.
When both sides use the same registered connection, invariant_side: "target" requires
target_catalog when the resolved engine can bind more than one catalog (for example,
Databricks or Snowflake). On an engine known to use one database per connection, the
connection itself identifies the database, so a target-side invariant may omit
target_catalog and is graded against that database. An unstated engine keeps the
catalog requirement because the system cannot prove that the connection is single-database.
For source_catalog and target_catalog, the same admission rule applies as for the
persisting compiled grade: on an engine that cannot bind a session catalog, a named value
must match the database recorded by that side’s snapshot or the request returns 400
before any obligation is graded. See the compiled grade catalog contract.
Inline Contract responses (spec / spec_yaml) include data with the full single-run engine result:
For keyed verification,
key_duplicates counts repeated fully populated key values.
Rows with a NULL in any key column are counted separately in key_nulls, never
as duplicates; a nonzero NULL-key count makes the keyed result INDETERMINATE.
When a fully named key repeats on one side but occurs at most once on the other,
duplicated_rows reports each confirmed side and row count, and the keyed check fails
because those repeated rows have no one-to-one counterpart. If both sides repeat a key,
or the probe and count cannot be reconciled, it remains set aside without a duplicated-row
claim. Timestamp key precision evidence describes the stored and hash-rendered precision
for keys whose side precisions differ or whose hash cannot render them whole. If a key
stored beyond the driver’s precision cannot be checked whole, the result is
INDETERMINATE with indeterminate_reason: "key_precision_unverified". When a row appears
to have moved to a different timestamp key, key_column_differences names the key column
only when the other key parts and available non-key row hashes match.
Compiled-spec obligation summaries may also include column_tolerances with the same
per-column evidence described above, and differing_column_kinds with the same shape
and meaning as in inline results. Timestamp-key obligations also include the
key_precision and key_column_differences evidence described above. An obligation
summary may also include route_fallbacks for its reads when a Foundry transport fell
back; its shape is the same as the batch result field above.
Compiled-spec responses (compiled_spec_hash) include data with a batch result:
A keyed obligation with confirmed one-sided duplicate rows also includes
duplicated_rows
and count_basis in its summary; count_basis provides the human-readable basis for the
count, rather than presenting a zero value-mismatch count without the duplicated-row evidence.
A readable tie-keyed obligation includes a tie_key object in its summary with the picked
column, order_key, tie_break, the original engine_verdict, untaken_candidates
(count), untaken_sample (bounded key sample when candidates were not taken), and basis
explaining how the result was read. The recorded obligation verdict reflects the tie-key
result; when an unspecified tie is the only difference, that verdict can be PASS while
tie_key.engine_verdict remains FAIL.
Each obligation summary also carries vouches_for_target. A source-side invariant and any
written_by check set it to false: the former did not grade the rebuilt estate, and the
latter identifies the writer rather than verifying table contents. Such checks do not
confirm target items. For the statementless field rules, see
register_obligation;
for how these checks affect unverified changes, see
Prover grading.
An errored compiled-spec obligation may also include errored_sql; see the
compiled-grade response for its fields.
For a Foundry source with a Databricks target and keyed obligations that read dataset RIDs, verification also
searches the Databricks target schemas named by the obligations’ target_sql: one
information_schema.tables read per schema and one SHOW TBLPROPERTIES per listed
table. A schema with more than 200 tables is skipped. Only one full stamped copy per
RID is eligible; a row-limited sample, a table marked as a pipeline rebuild, or an
ambiguous copy is not used. If selected, the obligation’s source SQL runs on the target
connection and engine. A source-side invariant may also use a landed copy when its
relation names a dataset RID and no obligation’s target-side read uses that copy; an
invariant graded on the target keeps its target read. The search is best-effort; when it
cannot establish an eligible copy, verification uses the usual
source-side route. See the Prover guide for
the full grade behavior and the Foundry migration tools guide
for how copies are stamped and how to adopt a pre-existing table.
For a keyed obligation that errors, the verifier checks whether its target_sql reads
columns the target relation lacks. When the compiled artifact declares a target_model,
only the columns that model declares for the relation are considered; when it declares
none, every column the statement reads is. When a first-row read confirms that the target
relation exists and lacks one of those columns, and the source population can be counted,
the obligation is returned as FAIL over that population rather than ERROR: every
source row is charged to the failure because the target statement could not run. No key
was localized, so mismatched_key_count is null; the population is
unchecked_source_rows. Its summary includes missing_target_columns (relation.column
names), and also
missing_declared_columns when the columns come from target_model. If the relation
cannot be read, returns no row, or the source population cannot be measured, the original
ERROR remains.
Invariant obligations are graded as single-side column-domain checks rather than keyed
source-vs-target comparisons. A valid invariant runs against invariant_relation on the
connection selected by invariant_side (source by default) and reports both the population it examined in rows_compared and the
violations in invariant_violation_count: a violation count of 0 produces PASS, and a
count greater than 0 produces FAIL. Malformed invariants, failed queries, or invariants
with no gradable constraint produce ERROR; their violation count and rows_compared are
null. Invariant checks support not_null, numeric min / max, non-empty
allowed_values, finite, and the text-integrity matches_none declaration. finite is recorded but emits no predicate in
this grade, so it does not by itself produce a violation. Numeric bounds and
allowed_values do not count a NULL as a violation under SQL three-valued logic; add
not_null when a NULL must fail. An unbindable catalog also produces ERROR; its violation count and effective catalog fields
are null.
If a target-side invariant query errors because the target lacks a constrained
column, the verifier reads the target relation’s first row to measure its columns
and counts constraints on columns it holds separately. The obligation remains
FAIL; missing_target_columns names the absent relation.column,
differing_columns charges the missing column with the examined row count, and
present_columns reports the remaining columns, verdict, rows_compared, and
violation_count. A passing present_columns reading does not clear the missing-
column failure. If no constrained column remains to count, the result is ERROR
with the missing columns named; if the relation cannot be read or the regrade
fails, the original error remains.
The compiled-spec pass also runs a read-only degeneracy probe against the source for each
obligation whose expected side is executable. The probe is capped at 20,000 rows per
obligation and never changes the verdict: measured records what it read and which of
the three known degeneracies it found, errored records a refused or failed probe, and
unmeasured records an obligation the probe did not execute or a source it could not
open. Use read_started_at and read_finished_at as the live-read window; obligations
run sequentially, so the timestamps are not a claim that every read happened at one
instant.
POST /api/estate/episodes/import
A bundle carrying a licence (an agreed_licensed issue, or a licensor named on an
issue, member or event) also needs ratify_source_contract; without it the import is
refused 403 and nothing is persisted. The party names in the bundle are the caller’s
word, not the caller.
Import one bench loop-gate artifact bundle (report.json plus optional
journal.json, loop_result.json, and compiled obligations) as a stored
reconciliation episode. report is the only required artifact — a report-only
bundle imports as an open episode with zero rounds. journal and loop_result
carry reconcile rounds when the loop was driven; obligations upgrades finding
identity from the fallback family key to the full semantic anchor. Party
identities default to the journal’s; a journal-less bundle must name
implementer_id and prover_id explicitly.
Successful responses include
data with the stored episode view (episode row,
numbered issues, and append-only events journal). A bundle names no comparison,
so re-importing the same (scope_key, no comparison, source_run_id) returns the
existing episode without mutation. A new import supersedes only an open episode in
the same scope that also names no comparison; an episode tied to a comparison is
left open. A named estate or connection the caller cannot see returns the same
404 as an unknown subject, before the bundle is normalized.
POST /api/estate/episodes/open
Open a reconciliation episode from a finished spec_conformance grading run.
The server derives scope from the run (estate/connection plus the view’s spec_name),
derives implementer-actionable findings from the run view, and allocates issue
numbers (summary.numbering: "server"). Party identities fall back to
estate_char.episodes.implementer_id (default "implementer-agent") and
estate_char.episodes.prover_id (default "prover-agent") when omitted.
A clean run opens the same episode shape with no issues, so the successful
reconciliation is still recorded and can be closed through the ordinary close route.
Successful responses include
data with the stored episode view (episode row,
numbered issues, and append-only events journal). Replay is keyed by the
scope, the run’s diff_hash (including no comparison), and opening_run_id.
Opening a new episode terminally supersedes only an open episode with the same
scope and comparison; no comparison matches only no comparison. A run the caller
cannot see returns the same 404 as an unknown run.
The episode’s spec_hash is the run provenance’s compiled_spec_hash — the
compiled artifact hash used for grading — not the view’s own spec_hash. If the
run has no compiled_spec_hash, the episode still opens with spec_hash: null;
the episode’s summary_notes records the missing identity, and the episode
cannot be resumed against a spec.
When the run view carries a diff_hash, the server resolves component_pair
from the mediated diff and stores that pair on the episode. Drift findings link
honestly to existing diff-ledger rows rather than opening duplicates, and later
rounds reuse the episode’s stored pair. If the diff row is gone, linkage degrades
observably via episode summary_notes without blocking the open.
POST /api/estate/episodes/open-live
Open a live derivational/bench reconciliation episode before round 1 from
graded obligations the orchestrator supplies directly (each
verify_against_contract verdict the loop gate collected off the instance),
instead of deriving issues from a finished spec_conformance run view. Party
identities fall back to estate_char.episodes.implementer_id (default
"implementer-agent") and estate_char.episodes.prover_id (default
"prover-agent") when omitted. Every opened issue is plain open (never
pre-licensed). Eve replies, prover adjudication, and close reuse the existing
POST /api/estate/episodes/{episode_id}/issues/{issue_number}/respond,
POST .../adjudicate, and POST .../close routes.
Successful responses include
data with the stored episode view (episode row,
numbered issues, and append-only events journal).
Replay and supersede use the scope and diff_hash together: a repeat opening run
replays only on the same comparison, and a new episode supersedes only an open
episode on that same comparison. When opening_run_id names a stored run visible
to the caller, that run is stamped as round 0. An unknown or invisible run is not
stamped and does not prevent opening the episode. A named comparison, estate, or
connection the caller cannot see returns the same 404 as an unknown subject.
GradeFinding fields
Each item infindings for POST /api/estate/episodes/open-live and
POST /api/estate/episodes/{episode_id}/rounds/live:
Opened issues are never pre-licensed —
state / licensor are deliberately
absent from this wire shape.
POST /api/estate/episodes/{episode_id}/rounds
Append one full re-grade round to an open episode. The server derives still-failing
findings from the grade run’s view under the episode’s scope (so durable finding
keys line up round over round) and computes the differential. Drift findings are
re-keyed against the episode’s stored component_pair before the differential is
computed.
For a persisted grade, closure by absence is limited to the categories covered by
the run’s tiers_graded field (read from the view or its provenance): the
structural tier covers structural and drift, while the derivational tier
covers derivational. An open issue in a category that this round did not grade
is carried forward instead of being marked resolved. A missing or empty
tiers_graded value provides no category coverage, so absent issues are carried.
Successful responses include
data with the updated episode view (episode row,
numbered issues, and append-only events journal).
POST /api/estate/episodes/{episode_id}/rounds/live
Append one live re-grade round from the orchestrator’s current still-failing
obligations (the round’s grade-vector / findings delta) rather than a finished
conformance grade run. The server re-derives issues under the episode’s scope
(so durable finding keys line up round over round) and computes the
resolved/carried/new differential. The round’s identity is its findings; a
Gap-A verification run is persisted and inspectable on its own, so no grade-run
reference is folded here.
Successful responses include
data with the updated episode view (episode row,
numbered issues, and append-only events journal).
POST /api/estate/episodes/{episode_id}/close
Record the orchestrator’s terminal decision for one episode. superseded is
deliberately absent — only a newer open episode sets that status.
Successful responses include
data with the closed episode view (episode row,
numbered issues, and append-only events journal).
POST /api/estate/episodes/{episode_id}/issues/{issue_number}/respond
The implementer’s machine-channel reply for one numbered issue. actor_id is
verified at the store seam against the episode’s registered implementer identity
— the route performs no identity magic of its own.
Successful responses include
data with the updated episode view (episode row,
numbered issues, and append-only events journal).
POST /api/estate/episodes/{episode_id}/issues/{issue_number}/adjudicate
The prover’s machine-channel verdict for one numbered issue. Only the episode’s
registered prover may adjudicate; on agree the licensor recorded is that prover.
An agree licenses the finding, so the authenticated caller also needs
ratify_source_contract; without it the request is refused 403 and nothing is
recorded. actor_id names the episode party, not the caller: naming the registered
prover grants nothing. dispute and withdraw need only view_connections.
Successful responses include
data with the updated episode view (episode row,
numbered issues, and append-only events journal).
POST /api/estate/findings/{finding_key}/ruling
The human court’s ruling on a contested finding (ledger disposition). The
deciding human is taken from the request context, never the body; auth-off
callers are attributed as local operator (auth disabled).
Successful responses include
data with the durable ledger row after the ruling.
license and reconfirm_license grant a licence, which stops the finding gating the
attestation exactly as a waiver does, so they require ratify_source_contract as a waiver
does; a caller without it is refused 403 and nothing is recorded. uphold and
withdraw require only view_connections.
reconfirm_license is the one value that records no disposition. A license granted under
evidence-signature version 1 whose preimage counted zero cannot be migrated onto version 2
without binding it to a fact nobody measured, so it stays pinned at version 1 carrying
license_evidence_resign_blocked_basis; this act answers that question. It re-signs the
license onto the evidence as it now stands under the current version, clears the basis and
license_evidence_changed, stamps license_evidence_resigned_at, and records the
answering identity in license_evidence_reconfirmed_by. Send expected_evidence_sig to
say WHICH evidence the answer is about: a grade landing between the reading and the call
otherwise moves what the licence silently covers, and the record would claim a human
accepted a reading that arrived after they looked. It leaves the GRANT alone —
licensed_by, licensed_at, licensed_episode_id and license_note are unchanged,
because re-confirming is not re-licensing and a second license ruling would credit the
original decision to whoever answered the migration question.
GET /api/estate/episodes
Returns
data as an array of visible episode rows, newest first. Episodes on a
comparison the caller cannot open are omitted. Without a comparison, visibility is
checked against the named estate and any known recorded connection, or against the
recorded connection alone when no estate is named. A page can therefore contain fewer
than limit rows.
Listing returns episode metadata only — call
GET /api/estate/episodes/{episode_id} for issues and the journal.
GET /api/estate/episodes/{episode_id}
Successful responses include
data with the episode row, numbered issues
(each carrying the numeric durable_finding_id when its signature is known,
plus prior_ledger_status and prior_resolved snapshots from import). Issues
also include disposition, ledger_status, and counts_open: the owning
finding ledger’s human disposition, its standing status, and the store’s
fail-closed verdict for whether the issue still counts against the episode.
counts_open is true only for an issue whose state is open and whose ledger
does not carry a licensing ruling or the licensed status. durable_finding_id
is the durable finding ledger’s #N, shared by diff-linked and obligation
findings; use it with
GET /api/estate/findings/{finding_id}/history when you need the finding’s
cross-episode lifecycle. The string finding_id inside an issue is the finding
signature used for obligation identity, not this numeric ledger number.
The episode row also includes opened_by, and each journal event includes
recorded_by, the signed-in caller who made the request, separately from the
party named by actor. These are null for older records or writes with no
request behind them.
GET /api/estate/findings/{finding_key}/episodes
Successful responses include
data with:
The history read performs its usual ledger and episode reads, plus one latest-sighting
read only when the finding is both a standing license and pinned. An unknown finding that
has episode sightings but no obligation-ledger row returns
license_reconfirmation.offered: false because there is no license binding to re-confirm. See the ruling endpoint above for
the expected_evidence_sig precondition and the effect of reconfirm_license.
The caller must be able to see the comparison that minted a comparison-minted finding;
otherwise the endpoint returns 404. For other findings, only sightings in episodes
the caller may see are included. An obligation-only finding with no visible sightings
returns 404. When any sighting is hidden, the endpoint withholds the listed ledger
fields folded over the complete sighting history rather than deriving misleading partial
totals. A reconfirmation is not offered when its evidence comes from the hidden newest
sighting. Episode replay and superseding are comparison-scoped, but the obligation
ledger remains keyed by finding_key: episodes on different comparisons that sight
the same finding update the same durable ledger row. A ledger row carrying a disposition
also incurs one scan of the review log’s package decisions to populate
disposition_decision. A row with a last-seen comparison also carries
ledger.person_exceptions; this adds one review-log fold per comparison and, when a
person’s exception is present, population resolution and its member set, plus one keyed
evidence read for a failed check when needed.
GET /api/estate/findings/{finding_key}/witnesses
Successful responses include
data with a bounded read-only witness document:
per-side column definitions and rows (with the problem column highlighted when
applicable), counts, alignment caveats, and the full plan disclosure (queries
run, limits, skipped or timed-out queries). Each side’s witness metadata also
reports declared_key_basis: declared when the caller supplied the key used
for localization, or engine_declared when the key came from the engine.
The caller must be able to see the comparison that minted the finding; an unknown
finding or one on a hidden comparison returns 404.
Live queries use each side’s own registered connection when it can be identified,
not merely the connection associated with the shared (dialect, database) label.
This keeps a SQLite-to-SQLite witness on each side’s own file even though both
databases are labeled main. If the label matches multiple connections and the
side’s connection cannot be identified, the service does not guess from the label;
the stored boundary connection is used and any connection error appears in the query
disclosure.
When a stored declared key uses an expression this build cannot read, localization
declines with decline_reason="unreadable_declared_key" rather than pairing rows
under a different key.
For a finding whose current
occurrence is from the stimulus layer, the response is still successful but
data.available is false: no at-rest probe is run because the injected
synthetic batch has already been torn down, and the reason discloses that the
at-rest result would answer a different question. When a sealed prediction
receipt is present, that reason includes the receipt; otherwise it states that
no behavioral evidence was recorded. For addressing_incoherence findings
whose evidence has no target_object, the witness plan abstains on the target
side rather than treating the target as absent. A missing target object in an
incompletely enumerated characterization snapshot remains unknown, and a
cached witness document that includes a target side is not reused for this
abstaining recipe. For row_count, content_digest,
column_content_digest, categorical_value_counts, and column_null_count
findings, data.localization uses the same staged count and paged key/hash path
when the safety checks pass. result_kind: "rows" returns exact
source_only_rows, target_only_rows, and changed_rows when there are at most
100 differing keys; each changed row includes the source and target row plus a
cells array with the differing column, source_value, and target_value.
Column-content localization hashes only the named column, and null-count
localization reports only null-state transitions; its finding wording says
NULL values, not empty text values. categorical_value_counts
instead returns result_kind: "value_count_changes" with empty row arrays and a
distinct value_count_changes array. Each entry contains canonical_value,
source_count, target_count, and delta (target minus source); more than 100
values on either side or more than 100 changed values declines with
value_difference_fence and an empty value array. Exact key localization is
available for tables up to 10,000 rows per side when the paged and independent
live reads remain consistent. When more than 100 keys differ, the key comparison
remains exact but row details are sampled deterministically; the payload reports
completeness: "exact_keys_sampled_rows" instead of "exact". Declined results
disclose a decline_reason such as table_exceeds_row_fence,
budget_exhausted, concurrent_modification, or query_error, rather than
returning partial row arrays. The localization fence is 100 rows per key/hash
page, 10,000 total rows per side, and 100 pages per side; the connector execution
ceiling is 110 rows to allow the row and grouped-value sentinel checks.
column_distinct_count includes data.value_differences, which compares the
distinct values on each side and reports up to 20 source_only.values and
target_only.values. The payload includes compared_as, comparison_note,
found, complete, and decline_reason; each direction’s total is available
only when the comparison is complete. The status is "listed" when differences
are listed, "no_differences" when a complete comparison finds none, and
"declined" when the values cannot be listed. Values are listed only when the
column resolves on both sides, the engines and column types support a shared
comparison, and neither side has more than 40,000 distinct values. When a value
list declines, the pane falls back to the most-frequent-value samples, paired by
frequency rank. These findings still include an explicit declined
data.localization payload.
column_min_value and column_max_value retain their evidence panes and pair by
statistic_rank; column_type_params also retains its evidence pane. For
column_max_length, each side shows its own longest-value rows, paired by length
rank rather than row identity; only rendered length is compared. The generated
length column name appears in notes (normally
witness_rendered_length, with a suffix if that name is already used). Binary
row samples show size and hex up to 32 bytes, or size and a SHA-256 fingerprint
for larger values; binary values in distinct-value lists use fingerprints.
Column names in emitted SQL are resolved
independently per estate side against that side’s latest characterization
snapshot (measured column names, with declared keys as fallback), so
cross-dialect comparisons use each engine’s catalog spelling — for example
order_id on postgres and ORDER_ID on snowflake. When a logical column
name cannot be matched unambiguously on a side, the planner omits the
affected queries and records the reason in alignment_caveat and notes
rather than running SQL that would fail. Samples are served from a persisted
cache by default; the response may include cached and cached_at when
served from cache. Read-only by construction — the planner emits SELECT /
information_schema statements with hard row limits. The timeout_seconds
budget is shared across all localization stages. A query that outlives the
remaining budget is disclosed with timed_out: true (rather than
skipped: true); an incomplete localization is therefore declined and is not reused
from the response cache. Exact means complete and untruncated for the disclosed
independent live reads; the two databases are not observed in one shared
transaction.
GET /api/estate/findings/families/{family_signature}/witnesses
Successful responses include
data with family_signature, comparison,
member_count, sampled_count, and members (witness documents for an
open-first sample of at most three member findings). Each member’s samples are
served from a persisted cache by default. Only visible family members contribute to
member_count or the sample; a family with no visible members is answered as unknown.
GET /api/estate/dossier
Successful responses include
data with kind, title, summary (one-paragraph factual summary reusable by the drawer), markdown (the complete ticket-grade dossier), filename (deterministic download-safe name), cached (true when served from the persisted dossier cache; null for behavioral dossiers, which are not cached), and cached_at (ISO-8601 timestamp of when the cached assembly was first persisted; only set on a cache hit).
For kind=family, the dossier carries comparison identity, the fact kind in plain language, the visible member list with per-member was→now evidence, the affected-object rollup, adjudication state + notes, the suspected fault class, and a reproduction recipe. Family dossiers are served cache-first when warm; the cache is invalidated automatically when adjudication state changes (finding or family disposition, or a note on the family). A caller-specific family read is assembled live from ledger rows whose first_seen_diff comparison is visible to that caller, rather than read from the shared cache.
For kind=behavioral, the dossier carries the injected synthetic stimulus, each side’s outcome, the diverged object, the arsenal attack class/tier when recorded, a replay pointer, and a reproduction recipe. A run the caller may not see is answered as an unknown run (404).
When kind=family identifies a known diff but the selected family has no members
under status, the endpoint returns 404 with the message This hand-off packet has no members. and a structured error payload containing code set to
"dossier_family_empty" plus identifiers for diff_hash, family_signature,
and status. Clients can use this response to show an unavailable hand-off
packet without rendering raw dossier internals. Unknown dossier subjects still
use the generic 404 response.
GET /api/estate/arsenal/ranking
Successful responses include
data with the operator_ui-redacted selection:
attack chips (class, aim, potency, rationale), coverage summary, and
held_out_withheld_count. Veiled recipes are stripped and held-out families
are withheld (only their count is disclosed). The full recipe set never crosses
this boundary — that is the evidence-ledger view.
POST /api/estate/contracts/{contract_id}/attestation
Returns
run_id and a data summary. By default, export refuses while the
transition has structural residue, unlicensed open behavioral findings, or
unverified behavioral coverage. Setting allow_open_residue=true is an
explicit human choice to mint a QUALIFIED attestation embedding every
disclosure — a clean attestation is never minted over an open gate. The
operator identity is taken from the authenticated session, never from the
request body.
Requires ratify_source_contract, like sealing and grading: a caller who may only
see estates (view_connections) is refused. The contract’s visibility is asked first,
so an unknown or hidden contract answers 404 whatever the caller holds.
GET /api/estate/contracts/{contract_id}/attestations
Returns
data as an array of visible attestation rows for the contract, newest
first (lifecycle fields included). Its contract’s snapshot must be visible; if an
attestation binds a comparison, the caller must be able to open that comparison
as well. A statement binding no comparison is judged by its snapshot alone, and
a hidden snapshot returns an empty list.
GET /api/estate/attestations/{attestation_id}
Returns
data with the stored attestation document. The caller must be able to
see both the comparison it binds and the snapshot its contract was compiled
from; an attestation binding no comparison is judged by its snapshot alone.
GET /api/estate/attestations/{attestation_id}/report
Successful responses include
data with the attestation-viewer document: grade
× plane coverage matrix, qualification, waivers, and ledger-head linkage.
POST /api/estate/attestations/{attestation_id}/verify
Successful responses include
data with the signature verdict and bundle
re-derivation checks.
GET /api/estate/correspondence-rules
Each row includes
rule_id, component_pair, status, provenance,
qualification (edge-fixture results when present), and payload. When
diff_hash is supplied, the response projects pair-scoped approval state for
that comparison; an approval for another estate pair is not treated as active.
Rows also include ratified_agent_basis and reviewed_agent_basis. The former names
the agent and person when an agent ratified on the person’s word, and remains on the
binding after revocation; the latter names the agent only when the review was recorded
in that same Action Review ratification. Both are null when those conditions do not
apply. basis is agent_person_present or agent_delegated. For older bindings without stored attribution, a matching sealed package or
bundle decision can supply ratified_agent_basis; unrelated review requests are not
trusted. When an Action Review link is relevant, resolving these fields may read proposal
heads and the sealed decision events needed for attribution.
When a qualification has per-fixture results but lacks either stored failure
count, the response derives false_acceptances from licensed rejects and
false_rejections from unlicensed accepts. A qualification without results is
not assigned these counts.
Rows also include proposer_kind (agent, person, service, or null) and
proposer_bot_id (the acting bot id when known for an agent proposal; otherwise
null), plus proposer_display_name (the proposing agent’s runtime bot-registry
name when available; otherwise null). These fields come from trusted caller
context, not a request-body value. The first registration records the proposer kind
and bot id; later registrations do not replace them. A missing proposer_display_name
can be filled by a later registration from the same agent when its runtime name becomes
available; a recorded name is never replaced, and the name is not inferred from the bot
id. agent identifies a proposal attributed to an agent, person a genuine human HTTP
caller, and service a known service identity or a direct tool-endpoint call. null
means the caller could not be established or the rule predates these fields.
For an unbound proposal held by a live bundle Action Review request, the row
also includes owning_bundle_id, owning_bundle_diff_hash, and
owning_bundle_request_id; these are null when no bundle holds the rule. If
the bundle is known but its request cannot be read, the bundle identifiers are
returned and owning_bundle_request_id is null. owning_bundle_request_status
is the request’s effective ledger status when readable, and null when no request
can be named or read.
Proposed rows also include sign_off_route: action_review for any rule an agent
or service proposed, including data-derived or unclassified rules; otherwise
direct. Ratified and retired rows return null. Use the route-specific sign-off
rather than inferring it from proposer_kind.
data contains only rules already in the registry. The separate built_in array
contains rules the selected pair’s compares bind without proposal or ratification;
they are not registry rows and are independent of registry status and
comparison-specific rule scoping. When neither a pair nor a comparison is named,
built_in spans every pair; otherwise it describes the resolved pair. Use
GET .../pack-availability to check shipped-pack counts and POST .../propose
to seed an unproposed pack.
Use GET .../pack-consent to inspect the shipped pack directly, including each
rule’s vendor consent_tier, its effective_consent_tier after the dialect-pair
evidence gate, whether this estate pair has adopted it, and whether a one-click
toggle is available. The response keeps measurement templates separate from rules;
templates are reference forms, are not adoptable, and carry no consent tier.
GET /api/estate/correspondence-rules/pack-availability
Successful responses include
component_pair, shipped_count (rules the shipped
pack defines — 0 when none ships), proposed_count (pack rules already seeded
into the registry), and unproposed_count (shipped but not yet proposed — a
nonzero value drives the product propose affordance), plus built_in_count (rules
the pair’s compares bind without proposal; these are separate from and never
included in shipped_count, so built-in rules can exist even when all three pack
counts are 0).
GET /api/estate/correspondence-rules/pack-consent
Returns the shipped pack for
component_pair, with one rules entry per shipped
rule. Each rule includes its exported ref, content-addressed rule_id,
consent_tier, effective_consent_tier, consent_tier_reason, optional
degrade_reason, direction, reverse_would_lose, optional adoption_note,
fixture_count, configuration_predicates, adopted, and adoptable. The
effective_consent_tier can be lower than the shipped tier when the dialect pair
does not have the evidence required for zero-click licensing. On mssql->databricks,
R1, R2, R3, R9, R11, R12, R13, R16, R17, R18, R19 and R20 are standard: they read auto with
adoptable: false, and apply with no adoption. R18 and R19 bind only where the target reports
that session time zone. R15 also reads auto with adoptable: false, but it does not bind by
default: R20 binds in its place, under an accurate title. R15 binds only where a person ratified
it for the estate pair. The response’s
templates array contains reference measurement forms with adoptable: false;
they do not license or ratify anything.
POST /api/estate/correspondence-rules/adopt
Adopts only rules whose effective tier is
checkbox. The server re-qualifies
each selected rule against the source and target snapshots behind diff_hash, then
binds it for that estate pair. Each requested reference gets an independent result,
so one failed qualification does not prevent other selected rules from being
adopted. Unknown references, auto rules, and ceremony rules are returned as
per-rule failures rather than silently skipped, so adopting a standard
mssql->databricks rule reports that it licenses already. The operation requires
ratify_source_contract and a genuinely authenticated human; adopted_by comes
from the authenticated user context, not the request body.
Successful responses include component_pair, diff_hash, adopted_count, and a
rules array. Each outcome includes ref, rule_id and title when known,
adopted, and, when applicable, adopted_by or error. A rule held by a live
bundle Action Review request is not adopted; its outcome includes
code: "rule_held_by_bundle" and owning_bundle_id so the caller can direct the
reviewer to that bundle.
POST /api/estate/correspondence-rules/accept-defaults
The batch sibling of
POST /api/estate/correspondence-rules/{rule_id}/ratify. Any
signed-in person can accept the listed defaults with view_connections; no special
approval permission is required. Each named rule
is re-qualified against the snapshots behind diff_hash before it binds, and each
gets an independent verdict — an unknown id, an already-decided rule and a failed
re-qualification each refuse that rule by name and leave the others to bind. The
signer comes from the authenticated user context, never the request body, and the
estate pair from the stored comparison, never the caller.
The batch action accepts only rules whose subject is structural. A rule that
licenses a statistic derived from the values — such as a minimum, maximum, or
distinct count — is refused by name here because wrong data can explain that
difference as readily as the two engines do. It still requires individual human
review. For an agent- or service-proposed rule, use the one-rule Action Review
request below. Its evidence is shown in the Prover review guide;
approval re-qualifies it against this comparison before ratifying it.
An agent- or service-proposed rule with sign_off_route: "action_review" is
also refused in its per-rule outcome with code: "rule_requires_action_review";
ask for that rule’s approval through
POST /api/estate/correspondence-rules/{rule_id}/request-approval instead.
Every rule that bound is recorded in a SINGLE platform_defaults_accepted event on
the comparison’s review log, returned as consent_event_id. One signature may
cover several mechanisms: a mechanism is the unit of the question a consent
surface asks (one checkbox each), while one press is one act and one act is one
event. The event payload carries the mechanism breakdown, so a later reader can
still see which distinct behaviours the signature covered. When nothing bound, no
event is written and consent_event_id is null: a consent record over an empty
decision would be a false record of consent.
The bindings and that event are written in ONE transaction, so a binding can never
outlive a failed event write and become a licence attributable to no signature.
Licensing is decided at diff time, so a newly bound rule changes no number until the
comparison runs again. The call therefore enqueues that re-evaluation itself,
resubmitting the same comparison through the ordinary system-diff flow and carrying
forward everything the stored comparison recorded about how it was mediated: its two
snapshots, its delta, its addressing map (ν), its case-folding, and its recorded title
with the spec kind that title was given under. The one input it
does not carry is the operator’s quiescence attestation, and that is deliberate: an
attestation is one person’s first-hand assertion about the one comparison they
launched, so it is never replayed onto a run they did not start — accepting platform
defaults approves licensing rules, it is not a re-attestation that nothing was
writing. An unattested re-run therefore ABSTAINS where the attested original decided,
and knows LESS than the comparison it replaces.
The recompute object reports enqueued, the run_id to watch, and — when no run
was started — the reason. When the comparison being re-run was decided on an
attestation, quiescence_attestation_dropped names the attesters (declared_by),
their note, and decided_on_attestation — how many elements the original decided
on their word, which is the number this re-run cannot decide. decided_on_attestation
is null when the stored record carries no readable count: the attestation is still
disclosed, its size is simply unknown, which is not the same as zero.
quiescence_attestation_dropped itself is null when no attestation is on record
for that comparison — usually because none was made, but also when the originating
run row is gone or its summary predates the disclosure. Read it as “nothing to
disclose”, never as a positive claim that the original was unattested. Any refusal
to start (nothing bound, a diff of the same
pair already running, a snapshot that has since gone, stored mediation metadata that
is not readable) is disclosed here rather than raised, because the signature has
already landed and a failed response would report a consent that succeeded as an
error.
Automatic re-evaluation is best-effort, not a delivery guarantee. The consent
commits before the submit is attempted and the two are not joined, so a request
cancelled in between — or an enqueue that fails unexpectedly — leaves the rules
ratified with no run. That gap is reconciled on the read: GET /api/estate/rule-reviews?diff_hash=… re-enqueues a batch consent that no later
comparison of the same pair answers, once, attributed to the original signer. A
consent nobody reads back is never reconciled; POST /api/estate/system-diffs remains the explicit re-run for a comparison whose
numbers still look stale.
Successful responses include diff_hash, component_pair, pair_fingerprint,
accepted_by, accepted_count, consent_event_id, a rules array of per-rule
outcomes (rule_id, title, accepted, error, and, when held, code and
owning_bundle_id), a mechanisms array coalescing
the accepted rules into the questions they actually asked (signature, rule_kind,
label, rule_ids, sites), and recompute.
When a live bundle Action Review request holds a requested rule, that rule’s
outcome is refused with
code: "rule_held_by_bundle" and its owning_bundle_id;
other rule outcomes remain independent. If the request state cannot be read,
the outcome uses code: "rule_hold_unreadable" and still identifies the bundle.
POST /api/estate/correspondence-rules/propose
Propose-class (
view_connections), not ratification: seeds the pair’s shipped Π
pack, edge-qualifies each rule, and places them on the review worklist. Rules
are eligible and license nothing until a named human ratifies each one on
POST /api/estate/correspondence-rules/{rule_id}/ratify. Pass both snapshot
ids when available so qualification can record the configured pair’s environment
fingerprints and rules can reach configuration_qualified (the tier ratification
requires). Delegates to the same seam as the propose_correspondence_rules
agent tool. The proposer identity is taken from the authenticated session (email,
display name, or user id — audit only), never from the request body.
Successful responses include component_pair and rules — an array of proposed
rules, each with rule_id, title, qualified, provenance, and
configuration_recorded when present — plus ratification_url, actionable, and
blocked_by. When diff_hash names a comparison, ratification_url opens its run page
with the rules open, where a human qualifies and ratifies them under Show rules and
rulings. Without a comparison, it opens All runs, actionable is false, and
blocked_by explains why the link cannot act as a next step.
POST /api/estate/correspondence-rules/{rule_id}/withdraw
Withdraws the proposal from this comparison only. It does not reject or
revoke the correspondence-rule definition, remove the proposal from another
comparison, or license anything. The server checks the ground rather than
trusting a caller-supplied classification:
foreign_origin when the recorded
origin estate pair differs, outside_boundary when a legacy proposal has no
recorded origin and its named object is absent from the comparison’s measured
inventory, or own_proposal when the authenticated caller created the proposal.
Every successful withdrawal is written to the comparison review journal and is
idempotent while the withdrawal remains in force. A later proposal derived by
the same comparison cancels that comparison’s withdrawal and makes the row
visible again.
Successful responses include rule_id, diff_hash, withdrawn_by, reason,
grounds, and event_id. withdrawn_by is derived from the caller context;
the request body cannot choose it.
POST /api/estate/correspondence-rules/{rule_id}/qualify
The step between propose and ratify: evaluates the rule’s edge fixtures and
records the configured-pair field-survival evidence a passing evaluation earns.
Fingerprints come from the comparison named by
diff_hash; the store refuses an
unknown comparison or one whose component pair differs from the rule’s, without
substituting another comparison. When diff_hash is omitted, the rule’s pair’s
most recent forward diff is used. The qualification event records the comparison
hash, its source and target snapshot ids, and the resolved estate-pair fingerprint.
Older events without snapshot ids remain provenance-unknown. With fingerprints recorded the rule reaches
configuration_qualified (the tier ratification requires); without them only
synthetic_observed, and ratification stays refused.
Successful responses include rule_id, qualified (whether the rule’s edge
fixtures passed), provenance (provenance tier the qualification earned, when
present), configuration_recorded (whether the configured pair’s fingerprints
were recorded), and provenance_recorded (whether the source comparison and
snapshots were recorded). The ratifier identity is taken from the authenticated
session, never from the request body.
POST /api/estate/correspondence-rules/{rule_id}/ratify
Successful responses include
rule_id, pair_fingerprint (the concrete estate
pair approved), and ratified_by (the resolved signer label). Ratification applies
only to that estate pair; approving the same rule for a different pair requires
a separate action. With authentication disabled, send the caller’s name in
X-Genesis-Signed-As; it is recorded with (self-reported, auth disabled), or
as local operator (auth disabled) when the header is absent. With authentication
enabled, any signed-in person signs and a typed name is refused; the rule’s proposer
may sign their own proposal. A person’s own PAT is accepted and attributed to its owner.
Ratification refuses rules that lack a passing edge-fixture qualification.
Rules whose sign_off_route is action_review cannot be ratified through this
direct endpoint; request and decide their approval through Action Review instead.
POST /api/estate/correspondence-rules/{rule_id}/request-approval
Ask for Action Review approval of one agent- or service-proposed correspondence
rule. The rule’s original proposer remains the proposer of record; the authenticated
caller requests its approval. This stages a one-rule approval bundle and a linked
Action Review item. For a data-derived or unclassified rule, the request carries the
evidence shown in the Prover review guide
and approval re-qualifies the rule against the comparison before ratifying it. If a
live bundle request already holds the rule, the endpoint returns that request with
replayed: true
rather than staging another. An open agent- or service-staged disposition package
owns a rule it proposed or that one of its items promotes under, and is approved
through that package. A rule pinned or derived by a person’s open package can use
its own request; approve the package after the rule.
The response includes bundle_id, diff_hash, proposal_id, the request status
and url, card_sent, and replayed. Approve the linked request in Action Review;
this endpoint does not ratify the rule itself.
POST /api/estate/correspondence-rules/{rule_id}/reject
Successful responses include
rule_id, review_status (revoked), and
reviewed_by (the resolved signer label). Rejection retires the proposal so it stops
licensing anything and leaves the pending-review worklist. The comparison is checked
with the same visibility rule as its read; a hidden comparison returns 404. The rule
must also be scoped to that comparison’s estate pair or it is answered as an unknown
rule. When diff_hash is omitted, Genesis selects a visible comparison of the rule’s
pair; if the caller can see none, the rule is answered as unknown (404). The rejecter
identity is taken from the authenticated session, never from the request body. A
ratified rule is revoked
(POST /api/estate/correspondence-rules/{rule_id}/revoke), never rejected — the
store refuses rejection of a ratified rule (400).
POST /api/estate/correspondence-rules/{rule_id}/revoke
Successful responses include
rule_id, pair_fingerprint, status (retired),
revoked_by (the resolved signer label), and superseded_by when set. Revocation
retires the approval only for that estate pair; other pair approvals and matching
code-reviewed corridor defaults remain independent. Diffs already registered
that cite the rule keep their frozen verdicts. The revoker identity is the
resolved signer label; with authentication enabled it comes from the authenticated
principal, and with authentication disabled it follows X-Genesis-Signed-As or
the local-operator fallback.
This is the registry-level revoke (with required reason and optional superseded_by). For the ratification-review worklist revoke without a reason field, use POST /api/estate/rule-reviews/{rule_id}/revoke instead.
GET /api/estate/rule-reviews
Returns
data as an array of Π correspondence rules for the operator
ratification-review worklist. Each row includes the rule fields from the
registry plus an effective review_status, viewer_signs_as, and
viewer_can_sign. viewer_signs_as is the identity this caller’s review write
would record when the caller has a signing identity, or null otherwise; any
signed-in person can sign without a special permission, including the rule’s proposer.
viewer_can_sign is whether the caller may sign that row, or null beside a null
signer. A caller may read the worklist without being eligible to sign when they have
no signing identity. With authentication disabled, viewer_signs_as uses the
X-Genesis-Signed-As name and its
(self-reported, auth disabled) disclosure, or local operator (auth disabled)
when the header is absent.
Rows also include server-derived mechanism_signature, mechanism_label,
mechanism_provenance, scope, and mechanism_relation. The signature groups
rules that ask the same consent question; the label states that question in
reader-facing words; and mechanism_provenance distinguishes Platform default
from a ruling (including its signer when recorded). scope identifies whether
the rule applies to a pair or a single site. mechanism_relation is null
when no relationship is present, or states that the rule extends the platform
default when the other rules in this response establish a strict widening.
usage is null on this route —
merge counts from GET /api/estate/rule-usage client-side so the worklist
renders immediately. With diff_hash, rows and review status are limited to
approvals for that comparison’s estate pair. Unbound proposals are additionally
scoped to the comparison: a recorded foreign origin or an object outside the
comparison’s measured boundary is omitted, while a proposal that belongs to the
comparison remains visible with outside_boundary: false and, when approval
would refuse it, a non-null blocked_reason. Pair-generic rules and rules already
bound to the comparison are not removed by this proposal filter. An unbound proposal of a
standard mssql->databricks rule is omitted unless a package owns it, because that rule
applies with no sign-off. Each row also
includes default_refusal, which is null when the rule may be offered in the
pre-ticked platform-default set and otherwise contains the reason it must be
handled through the single-rule ceremony instead. This is separate from
blocked_reason: a rule can be approvable on its own while still being ineligible
for batch consent. An unbound proposal held by a live bundle Action Review request
also includes owning_bundle_id, owning_bundle_diff_hash, and
owning_bundle_request_id; these are null when no bundle holds it. If its
request cannot be read, the bundle identifiers remain available and the request
id is null.
These worklist rows include the same ratified_agent_basis and reviewed_agent_basis
fields described in the correspondence-rule listing.
With
diff_hash, this read also reconciles. A batch consent
(platform_defaults_accepted) on that comparison which no later comparison of the
same pair answers is re-enqueued once, attributed to the original signer — the
repair for a consent whose automatic re-evaluation was lost between the approval
transaction and the submit. It is best-effort and cannot fail the read: an
unreadable reconciliation is logged and the worklist is returned regardless. Callers
that poll this endpoint should expect it to start at most one background
system_diff run per consent event, never one per request.
GET /api/estate/rule-reviews/by-comparison
Returns
data as a map keyed by each requested diff_hash that names a stored
comparison whose source and target snapshots resolve to an estate pair the caller may
see. Each
value is an array of rule-review rows scoped to that comparison’s pair. Unlike
the focused GET /api/estate/rule-reviews?diff_hash=…, this batched route does
not include the bundle-hold fields. A requested
hash that is unknown, cannot resolve its pair, or is not visible to the caller is absent from data; an
existing comparison with no rules is represented by an empty array.
This endpoint is intended for a review landing page that needs pending-platform-
default cues for several comparison cards. Unlike the single-comparison
diff_hash read, it does not run consent read-repair or enqueue background
system_diff work. It requires view_connections and is read-only.
GET /api/estate/rule-usage
Successful responses include
data as a map keyed by full rule_id:
Unscoped counts are memoized per comparison: a new comparison folds only its
own payload, while repeated reads reuse already folded comparisons. Supplying
diff_hash returns counts for that comparison only. Without diff_hash, counts
include only comparisons the caller may see; an unknown or unreadable diff_hash
returns 404 rather than disclosing the comparison.
GET /api/estate/rule-reviews/{rule_id}
Successful responses include
data with the rule’s full review dossier:
payload (what the rule matches/licenses), edge fixtures (accept and reject),
provenance tier, qualification, field_events, effective review_status,
viewer_signs_as (the identity this caller’s review write would record, or null
when they may read but not sign), viewer_can_sign, and populated usage
(licensed_count, comparison_count). When diff_hash is supplied, the response
also includes the normalized full diff_hash that identified the exact comparison
scope. sign_off_route is action_review or direct while the rule is proposed,
and null once it is ratified or retired. Under a comparison, the dossier also
includes owning_bundle_id, owning_bundle_diff_hash, owning_bundle_request_id,
and owning_bundle_request_status for a bundle holding the rule; they are null
when no bundle holds it. If the bundle is known but its request cannot be read, the
bundle identifiers remain available while the request id and status are null.
For a still-proposed rule withdrawn from the comparison identified by diff_hash,
withdrawn_here contains withdrawn_by, withdrawn_agent_basis, reason, grounds,
and withdrawn_at (ISO 8601 when available). withdrawn_agent_basis contains
{basis, agent, person, goal?} when an agent withdrew the rule on the person’s word
(basis is agent_person_present or agent_delegated; goal is present for a delegated
decision); otherwise it is null. The withdrawal keeps the rule
off that comparison’s worklist until it is proposed again.
On an authentication-disabled stack,
viewer_signs_as is the self-reported signer label from X-Genesis-Signed-As,
or local operator (auth disabled) when the header is absent.
POST /api/estate/rule-reviews/{rule_id}/confirm
Successful responses include
rule_id, pair_fingerprint,
review_status (confirmed), and reviewed_by (the resolved signer label).
Confirmation is additive for that estate pair — the approval stays ratified and
keeps licensing future diffs for that pair. The reviewer identity is the resolved
signer label: the authenticated principal when auth is enabled, or the disclosed
self-reported/local label when auth is disabled.
POST /api/estate/rule-reviews/{rule_id}/revoke
Successful responses include
rule_id, pair_fingerprint,
review_status (revoked), and reviewed_by (the resolved signer label).
Revocation retires the human approval only for that estate pair; matching
code-reviewed corridor defaults retain independent authority. Existing diff
records remain immutable evidence. The reviewer identity is the resolved signer
label: the authenticated principal when auth is enabled, or the disclosed
self-reported/local label when auth is disabled.
GET /api/estate/waivers
Returns
data with classified waivers (owner, expiry, scope) and summary
counts across deltas the caller may see. The ledger also includes waivers granted in
comparison review: one-time exceptions and waived finding dispositions, with
any recorded owner, approver, expiry, and comparison/finding scope. Older waivers
without recorded terms remain as recorded; no expiry is inferred. A waiver whose
recorded expiry has passed no longer licenses the exception.
POST /api/estate/deltas/preview
Dry-compiles the draft Δ against the contract. Successful responses include
data with footprint vector, validation issues, touched obligations, coverage
impact, and consumer impact. Nothing is persisted.
POST /api/estate/deltas
Successful responses include
delta_hash (content-addressed id) and data with
the proposal summary (status, operation_count, already_existed). The
operator identity is taken from the authenticated session, never from the
request body. Ratification remains a separate human-gated route.
GET /api/estate/deltas
Successful responses include
data, a list of
intended-change artifacts with their typed operations and ratification fields. Each
ratified delta includes ratified_agent_basis as {basis, agent, person} when an
agent ratified it on a person’s word (basis is agent_person_present or
agent_delegated); the field is null for a person’s own ratification and for deltas
recorded before agent attribution was stored. Each result also includes ratifiable,
which is false for an empty delta without a proposer’s reason. With diff_hash, each
result also has used_by_comparison, true only for the delta the comparison was run under.
POST /api/estate/deltas/{delta_hash}/ratify
Successful responses include
delta_hash and ratified_by (authenticated
human). The ratifier identity is taken from the authenticated session, never
from the request body. A delta with operations can be ratified; an empty delta needs a
proposer-written title that states its reason. The automatically registered empty delta
and an untitled empty delta with no proposer are refused with 400.
GET /api/estate/knowledge
Filters are ANDed exact matches (unset = wildcard). Successful responses include
data with the operator_ui redaction: atoms (each with atom_id, scope,
phenomenon class labels, provenance, disclosure, and yield_stats — never
evidence refs), returned_count, held_out_withheld_count, and
disclosure_note. Held-out atoms never appear in atoms; only their withheld
count is disclosed.
GET /api/estate/knowledge/coverage
This endpoint does not document any request body or query fields.
Successful responses include data with the corpus-wide inventory:
persisted (the live corpus), harvestable (what a sweep would mint from
current store state), gap (harvestable but not yet persisted), source_counts
per collector, and fully_swept. Each tally is bucketed by phenomenon kind,
provenance tier, disclosure, component pair, and source instrument.
GET /api/estate/knowledge/comparison
Successful responses include
data with contributed (redacted atoms this
pair’s own artifacts minted) and informing (all scope-matched atoms shaping
this pair’s instruments — the jitter prior and arsenal ranking), plus counts for
each bucket. Both views are operator_ui-redacted; held-out atoms surface only
as a withheld count.
POST /api/estate/knowledge/collect
This endpoint does not document any request body or query fields.
Runs one idempotent knowledge sweep — a deterministic re-derivation of the
corpus’s abstracted knowledge. Re-running on unchanged store state inserts
nothing. Successful responses include data with atom_count, per-source
counts, and inserted / skipped / superseded totals. The operator identity is
taken from the authenticated session, never from the request body. This installation-wide
sweep and its corpus-wide counts require manage_all_connections; other callers receive
403 before it runs.
Dataset inventory endpoint
GET /api/datasets
This endpoint does not document any request body or query fields.
It returns success plus a datasets array of DatasetInfo objects.
This endpoint does not refresh datasets or trigger retention cleanup; cleanup
runs separately through the configured background cleanup job. On
white-labelled installations, built-in dataset descriptions use the configured
product name. A shipped title is product-named only while its stored name still
matches the shipped title; dataset IDs and user-renamed titles are unchanged. See
Branding.
Dataset detail endpoint
GET /api/datasets/{dataset_id}
In addition to
success and dataset, the response can include these
top-level fields:
Built-in genesis_cost_usage_cube_v1
The protected Cost & Usage cube (genesis_cost_usage_cube_v1) materializes
three system-metrics sources: cost_usage_cube → cost_usage_cube_v1,
users_dim → users_dim_v1, and scan_usage → scan_usage_v1. The
scan_usage_v1 table holds Twin scan LLM spend at hourly grain with token
counts and USD cost columns (cost_input_usd, cost_output_usd,
cost_cache_read_usd, cost_cache_write_usd, cost_total_usd). Cost columns
are NULL when a row cannot be priced (for example an empty model).
Chat-fact token totals count cache reads and writes once. total_tokens is the
cache-inclusive prompt plus completion; recognized pre-contract facts whose
stored prompt excluded cache are normalized when read, not rewritten in storage.
Scan-cost views on the preset:
top_threads_by_cost_v1 sums cost_usd for llm_call and
metered_service_request rows; the total remains NULL when no call has a known
price. Its unpriced_call_count and unknown_price_call_count describe those
same rows and are complete only when pricing_counts_complete is 1. The view
counts tokens from those call rows and chat turns from chat_turn_activity. It
also returns conversation_tokens and background_tokens: rows with a blank
usage_category or sandbox_runner count as conversation, and other categories
count as background. These split fields are null when the source snapshot does
not contain them.
Twin scan facts are written to SCAN_USAGE_FACTS by the twin_scan_cost_sync
background job before dataset refresh materializes scan_usage_v1. The
genesis_cost_usage_dashboard app exposes a Scan Cost tab over these views.
Internal cost accounting endpoints
These read-only endpoints back the serving instance’s internal Costs screen and My spend page. They never accept an instance identifier. The regular summary, activity, execution, facts, and calls reads are scoped to the serving instance. The/me summary and activity reads instead use the signed-in
person’s identity and do not require ACCESS_PULSE_PANEL; other than the gap
ledger and /me routes, these endpoints require ACCESS_PULSE_PANEL. The gap
ledger has no instance column, so its rows are not scoped to the serving
instance and may include other instances’ facts on a shared store; it requires
ACCESS_CONFIG_PANEL. They are available on every install. These internal
routes are excluded from the published OpenAPI schema.
The producer path value is
chat or context_graph. Unattributed spend can
exist under both producers, so producer-qualified paths keep those activities
and their drilldowns separate. The older producer-less facts and executions
paths resolve only when the activity belongs to one producer; otherwise they
return 409 with code: ambiguous_activity_producer.
The /me endpoints accept the same window and activity-filter fields as their
instance counterparts, but restrict results to the caller’s user id and login
subject. Their activity rows omit owner names and links; an owner_id filter
for another person returns 403. The /me facts route returns only the caller’s
records for a shared activity; an other_scope token is refused with 422. The
activity people endpoint takes the
window and trace filters used by the activity list and returns producer,
activity_type, activity_id, and people. When present, people contains
largest-first entries, entry_count, and truncated; each entry includes
the ordinary breakdown measures and an optional display label. This read is
intended for an opened activity and adds readiness/watermark reads, one grouped
rollup read, and a user lookup to name its people.
The gap-ledger route accepts only administrators with ACCESS_CONFIG_PANEL.
Its reason is one of post_disable, late_after_seal,
revised_after_seal, expired_summarized, or legacy_unproven_residual.
The windowed summary’s gap_ledger.legacy_unproven_residual discloses what
pre-068 legacy rows of released open days counted beyond the raw facts that
still prove them; this residual is never included in any total. Its
fact_count counts residual rows (one per legacy row key, or one per day when
the shortfall names no key), and row_count counts unproven facts. Fact rows
for this reason use producer ~unknown, because those legacy rows named no
producer. Because the ledger has no instance column, treat its results as
shared-store evidence, not as facts for the serving instance alone.
Each gap-ledger response contains the echoed reason, a facts page, and the
standard page cursors. A fact identifies the producer, fact_id, identity,
reason, and UTC event day. measures contains row_count, request_count,
prompt_tokens, completion_tokens, cache_read_tokens,
cache_write_tokens, and known_priced_total_usd when the ledger recorded
them; otherwise it is null. epoch_start_utc is null when the fact has no
disable epoch. The page is deduplicated to the latest version of each fact
identity. The limit and cursor fields described below page through these
records.
The source sweep endpoint takes source_id as a path parameter (1–2048
characters) and has no query parameters. It reads Twin on demand for the selected
source; it does not retrieve scan history or queued object names. The response
contains source_id, available, effective_budget, last_outcome, and
budget_has_room_now. effective_budget has nullable max_active_seconds,
max_objects, max_queries, and max_containers limits; null limits are
unbounded. last_outcome is null when no cycle outcome has been recorded, or
contains status (in_progress, complete, incomplete, or halted),
stop_reason (drained, time_slice, token_cap, budget_exhausted,
superseded, throttled, or cancelled), recorded_at_utc, and
budget_exhausted_units, and usage. usage is null when Twin recorded no
usage or the recorded usage cannot be read; otherwise it contains the sweep’s
total active_seconds, objects, queries, and containers across its cycles
as of that recorded outcome. These are counts and seconds, not cost amounts.
budget_has_room_now is null when that check does not apply. When Twin cannot
provide a valid response, including for an unregistered source, available is
false and the budget and outcome fields are null.
The windowed endpoints accept these shared query fields:
Custom windows must include both endpoints and fit within the supported 400-day
range. A window that is incomplete, too wide, outside the supported range, or
ends in the future returns
422 rather than being silently truncated. The
response reports the requested window and the effective_window actually
summed after snapping to the rollup grain. Windowed responses also include
instance_id, instance_name_generated, unsupported_substrate,
evidence_level, and producer freshness. instance_name_generated is a
boolean that is true when instance_id is a generated fallback for an install
with no configured name; it defaults to false. Every cost response envelope
also includes rollups_ready. It is
false before the rollup job’s first run has created its read models, or on an
unsupported storage substrate; in either case, the response contains no
figures, returns empty lists where applicable, and does not treat the result as
zero spend or an error. Each producer freshness entry includes advisory as a
string or null (default null). dimension_rekey_incomplete means some
older days’ breakdowns could not be rebuilt; last_error names those days.
This advisory does not change the producer state, and totals are unaffected.
over_cap_day_lagging accompanies a stale state whose cursor is current when a
day over the complete-day cap has been written since its rebuild began and the
rebuild has stayed open for more than two job intervals; that day’s spend then
trails its writes, and last_error names the day. A quiet backlog does not set
this advisory, nor does it appear while another day holds the source.
Every cost response envelope also includes recording_since, the store’s
recording cutover timestamp, or null before the store exists or on an
unsupported storage substrate. Windows starting before this timestamp are
clamped to it. The summary’s excluded_legacy reports spend recorded since the
cutover with no known instance beside the total, never in the total; it is
null when there are no figures. Producer freshness state can be
healthy, stale, error, disabled, unknown, unsupported, or preparing.
When totals is present, known_priced_total_usd includes only catalog-priced
facts. estimated_price is separate and contains usd, row_count, and
request_count for facts priced at an estimated rate (including a default rate
or a price whose source was not recorded); those dollars are not included in
the known-priced total. unpriced separately counts facts with no price.
totals.usage_split splits the totals into conversation, background and
not_recorded, each with known_priced_total_usd, estimated_usd,
total_tokens and request_count; the three sum to the totals. Conversation
is the agents’ own turns (calls with no usage category, or sandbox_runner).
Background is everything else, including Context Graph spend. not_recorded
is spend summarized before its usage category was recorded and is never
counted as either side.
The summary response’s series is null when rollups are not ready or the
substrate is unsupported. Otherwise it contains grain (hour or day), a
bucket_count, and dense buckets covering the effective window. Each bucket
has from_utc and to_utc bounds clipped to that window, complete,
known_priced_total_usd, estimated_usd, total_tokens, reserved_tokens,
unpriced counts (row_count, request_count, and total_tokens),
fact_count, and usage_split (conversation, background, not_recorded,
each with known_priced_total_usd and total_tokens). A bucket is complete only when both sources have daily rows and
every such row is sealed for that bucket’s UTC day; otherwise its figures are
the amounts rolled up so far. known_priced_total_usd is catalog-priced spend;
estimated_usd is estimated-price spend reported apart from that total.
Reserved tokens are never priced, and unpriced usage is excluded from
known-priced spend. On a stable snapshot, bucket sums match totals.
rollup_write_position_utc reports the older rollup write
position, or null when either position is unknown; it indicates progress, not
event-time completeness.
Trace endpoints (activities, activity facts, activity executions, and
execution calls) also accept these scope and dimension query fields:
An
other_scope token is tied to its instance, window, and tier. A stale token
returns 409 with code: stale_other_scope. Trace filters are non-empty and
limited to 255 characters; enum filters accept only the values listed above.
Each activities row also carries usage_split, the row’s spend split into
conversation, background and not_recorded as in totals.usage_split.
The summary endpoint accepts include_breakdowns (boolean, default
false) and breakdowns_only (boolean, default false). When
include_breakdowns is true, the response includes breakdowns; otherwise it
is null. The object has operation, origin, call_type, source,
model, provider, bot_id (agent), owner_id (person), usage_category,
blueprint_name, channel_type, client, and desktop dimensions. Each
dimension contains entries, entry_count, and truncated;
each entry reports its key and key_state (value, group,
not_recorded, none, or other), known_priced_total_usd, estimated_usd,
total_tokens, prompt_tokens, completion_tokens, cache_read_tokens,
cache_write_tokens, reserved_tokens, request_count, fact_count, and
unpriced (row_count, request_count, total_tokens), and estimated_price
(row_count, request_count): the calls priced at an estimated rate, counted
even when the estimate is $0. Each entry also has usage_split, when available,
with conversation, background, and not_recorded measures shaped like
totals.usage_split. A model entry also reports provider: the one
provider every call of that model ran on, or null when it ran on several or any
call’s provider was not recorded. An owner_id entry also reports label
(the person’s display name, else email, else null); a person’s user id and
login subject are one entry. A blueprint_name entry reports run_count, the
distinct blueprint runs behind it. none marks spend with no person, no usage
category (Context Graph) or no blueprint run; for owner_id and
usage_category, not_recorded is spend summarized before they were recorded,
and person_usage_rebuild_pending is true while part of it lies on a day the
background rebuild will still name. A channel_type entry is the newest
channel recorded for each call’s activity. A client entry is server for this
Genesis’s own work or desktop for a linked Genesis Desktop. A desktop entry
uses the computer’s install id as its key; when available, label combines the
computer name with the person’s display name, email, or user id. Its none entry
represents the server’s own work. An
other entry can
carry an other_scope token for filtering its complement. Each dimension is
capped at 50 entries, with excess values folded into its final other entry;
rekey_complete reports whether older operation, origin, call_type and
source keys were rebuilt; a not-recorded model, provider, agent, person,
usage category or channel does not affect it.
When breakdowns_only is true, it implies include_breakdowns and returns the
breakdowns without reading totals, excluded_legacy,
unsummarized_post_disable, gap_ledger, or series; those fields are null
and the response echoes breakdowns_only: true. This is not a summary with no
recorded spend. This mode uses three SELECTs; requesting
include_breakdowns on the regular summary adds one full-key rollup-tier read.
Activity, facts, executions, calls, and gap-ledger endpoints add cursor
pagination:
Each paginated response includes
page.limit, page.next_cursor,
page.truncated_for_size, and page.cursor_unavailable. Response bodies are
limited to 250,000 bytes; when that budget ends a page before its requested
limit, truncated_for_size is true and next_cursor continues after the
last returned row. If the last returned row’s key cannot be encoded within the
cursor limit, cursor_unavailable is true and the list ends without a usable cursor. A
malformed cursor or one issued for a different list returns 422. An
individual row that exceeds the 20,000-byte row ceiling is shortened to fit;
its truncated_fields names any shortened fields.
The activity row’s producer is part of its identity. Use the producer-qualified
facts and executions paths when a producer-less activity path is ambiguous.
Those facts routes accept view (compact or full, default compact) and
unexecuted (boolean, default false; when true, restricts buckets and raw
facts to facts not marked as execution-bearing), in addition to the window,
pagination, scope, tier, and trace-filter fields. They return rollup buckets,
retention/completeness counts, and one bounded page of retained raw facts.
Executions routes also accept include_reconciliation (boolean, default
false). When requested, the response includes reconciliation totals; when
omitted, those lines are null. This option adds one pass over the activity’s
rollup-tier window. A producer-less execution request that matches multiple
producers returns 409 with code: ambiguous_activity_producer.
Activity rows include recurring (boolean or null). It is true for a
cron or interval scheduler job, false for a one-shot (date) job and every
non-job activity, and null when the job’s trigger snapshot is missing or
unknown.
The calls endpoint uses the opaque execution_key returned by the execution
list and accepts limit and cursor plus:
It also accepts an optional window (
preset, from_utc, and to_utc) and the
trace scope, tier, and dimension filters above. Unlike the other windowed
routes, calls omit the window by default; a filtered calls request needs its
parent window when it uses dimension filters, other_scope, or an explicit
tier. Pass the execution key unchanged: older keys may use the
colon-delimited form, while producer-qualified keys use the v2: form. A
producer-less key that matches more than one producer returns 409 with
code: ambiguous_execution_key.
Compact call rows include cache_read_tokens and cache_write_tokens alongside
the prompt and completion token counts. Context Graph bucket rows also include
reserved_tokens, the embedding tokens reserved against the cap and never
priced. Cache and reserved token counts can be null when they were not
recorded; the Costs screen displays those values as a dash rather than zero.
An unknown execution or activity returns 404. A malformed execution key or
an otherwise unsupported report request returns 422. Calls report
calls_completeness as
complete, partial, or expired; an expired execution returns 200 with no
raw calls and marks the evidence as expired. The control-state response carries
evidence_level: null; its Context Graph cap includes can_edit,
can_edit_reason, and the path to the existing Digital Twin cap editor, and
this API provides no write route. can_edit_reason is null when editable;
otherwise it is context_graph_unavailable when Twin did not respond, or
requires_permission:access_config_panel when the caller lacks that
permission.
A dataset refresh keeps the instance column as it has always been, the agent
id, so saved views, filters and joins on it are unchanged. The install a fact
was recorded on is the install_instance column: the fact’s own instance, or
legacy-unknown for a row written before the contract. A source’s instance
parameter still selects an agent; its install_instance parameter selects an
install.
Canonical cost-fact rows retain the following activity, lineage, and rollup
fields for consumers of the materialized dataset:
The cube includes provider usage from auxiliary and background LLM calls,
successful non-token metered-service requests, and ordinary chat, tool, and
thread activity. Use usage_kind to tell metered-service requests from LLM
calls. Non-token requests are materialized as llm_call rows, counted as calls and
chat turns as they always were; the usage_kind column is
metered_service_request on them (llm_call on an LLM call). Their
cost_total_usd remains NULL because Genesis does not estimate the provider’s
charge. When a producer supplies a synthetic thread label, Genesis keeps that
label in thread_id for traceability but does not treat it as a conversation
thread in canonical rollups.
For activity caused by a scheduled prompt, Genesis carries a snapshot of the
scheduler job and run into the cost fact. The snapshot is accepted only from
trusted internal-service WebSocket callers, not from browser-supplied message
metadata. A snapshot without scheduler_job_id is discarded; a snapshot with
a job id but no run id is retained and represents job-level cost without a
specific execution. These fields appear in the materialized dataset after a
dataset refresh.
A thread with a persisted summary reports that summary’s values. A thread
without one gets a summary synthesized from the window’s chat facts, with no
child rollup. With an
install_instance filter, persisted summaries are not
read, because they record no install: every summary is synthesized from that
install’s facts.
Dataset update endpoint
PATCH /api/datasets/{dataset_id}
Dataset refresh endpoint
This route is mounted under/api/datasets/....
POST /api/datasets/{dataset_id}/refresh
Successful refreshes can prune inactive snapshots; see Datasets.
When
only_source_ids contains a source that is not present in the dataset
definition, the 400 detail payload includes these fields:
Dataset delete endpoint
DELETE /api/datasets/{dataset_id}
On success, this endpoint returns
success: true and the deleted dataset_id.
When deletion is blocked or requires confirmation, the error detail payload can include these fields:
Dataset datasource endpoint
Use this AG Grid server-side row model (SSRM) route when the client needs server-side grouping, sorting, pivoting, or tree expansion against a dataset table or view.POST /api/datasets/{dataset_id}/datasource
The response returns
QueryResultSSRMResponse fields such as rows,
lastRow, optional pivotResultFields, optional secondaryColumns, and, when
available, the executed sql plus original base_sql.
Dataset row endpoints
These routes return one page of materialized dataset rows for a table or saved view.columns is returned only on the first page (page = 0) to avoid
repeating schema metadata on later pages.
Shared dataset row request fields
Camel-case request aliases
pageSize and includeTotal are also accepted
on these row endpoints.Dataset row response fields
Genesis App registry writes
POST /api/apps, POST /api/apps/{app_id}/rename,
PATCH /api/apps/{app_id}/metadata, and DELETE /api/apps/{app_id} apply
registry changes only after the registry is saved. If the save is unavailable,
these endpoints return HTTP 503 and do not apply the requested registry
change; retry after a short wait. A create using an ID whose previous app is
still being removed returns HTTP 409; retry after cleanup finishes.
POST /api/apps accepts an omitted request body; Genesis uses the create
request-field defaults documented in Genesis Apps.
POST /api/apps/{app_id}/rename accepts display_name. Unknown request fields
return HTTP 422 without changing the name; for example, title is not a
rename field. Use PATCH /api/apps/{app_id}/metadata to set the metadata
title (or its display_name alias).
DELETE /api/apps/{app_id} preserves the workspace by default. Add the
delete_workspace=true query parameter to request workspace removal and purge
the app’s saved versions, Production assignment and promotion history, and
file-level change history before removing the registry entry. Apps in a
repository source keep their workspace, saved versions, and history even when
removal is requested.
If durable storage is
unavailable or the apps repository is still being restored, the delete returns
HTTP 503 and the app remains registered; retry after the store is available.
Databricks Apps also rebuild missing saved-version files from durable Git when
an operation needs them; see Genesis on Databricks.
See Genesis Apps deletion behavior
for grant removal, repository-source file retention, and replacement behavior.
The response includes deleted_workspace; when workspace removal was requested
but files remain, workspace_kept is repository_source or not_removed.
See Databricks durable-store behavior.
Genesis App Git history and revert
On macOS without an installed Git executable, the app history route uses
snapshots instead of attempting to run the
/usr/bin/git developer-tools stub.
In a Databricks App, agent Git refuses operations on repositories with
unsupported local or worktree configuration, submodules, or an incomplete
safety check. The revert route returns HTTP 409 with the refusal detail.
See the Git policy.
Genesis App status health fields
The versioned-app responses fromGET /api/apps and
GET /api/apps/{app_id}/status include data-layer health fields. This keeps a
running app whose own Genesis API credential was recently refused from
appearing healthy merely because its process still answers requests.
For the refusal symptoms, log correlation, and recovery steps, see
Diagnosing a data-layer auth failure.
Genesis App list stop reason
EachGET /api/apps list record includes the app’s last stop reason:
Genesis App proxy behavior
POST /api/apps/{app_id}/frame-ticket
The dashboard uses this endpoint to prepare a browser frame after the caller has app
view access. It returns ticket (a short-lived, app-scoped string or null) and
frame_origin (the configured HTTPS app origin, or an empty string when no separate origin
is needed). The dashboard supplies the ticket to the app frame; apps should not call this
endpoint themselves. See [GenesisApp frame isolation]
(/docs/Security-Controls/Genesis-Agent-Security-Controls#genesisapp-frame-isolation) for
the security behavior and deployment requirements.
Opening a non-running app through its default proxy URL starts the default app
target again when its status is crashed or it was stopped by a Genesis server
restart (stop_reason: server_restart). For versioned apps this applies to
Production, not a selected saved version. An app stopped by its owner or its
inactivity timeout is not restarted by opening it. The browser request waits for
the start attempt; after a failure, Genesis suppresses another automatic attempt
for 30 seconds and does not return the HTML activation page for that failed
restart. The app can still be started explicitly with POST /api/apps/{app_id}/start.
When a browser request is proxied through /api/apps/{app_id}/proxy/... or
/api/apps/{app_id}/remote/proxy/... and the target app has dataset bindings,
Genesis can mint a short-lived viewer-scoped app token and forward it upstream
to the app as X-Genesis-App-Token. Browsers do not need to set this header
themselves.
In Genesis Desktop laptop mode, each Python app run receives a private,
per-run guard key. Genesis adds the key when forwarding requests through the
app proxy; the runtime removes it before the request reaches app code. A direct
request to a covered HTTP server on the app’s loopback port without the key
receives 403 with X-Genesis-App-Guard: refused (an unauthorized WebSocket
connection is closed with code 1008). The guard covers Python servers based on
BaseHTTPRequestHandler, including the standard-library server, wsgiref,
Werkzeug (used by Flask and Dash), and uvicorn (used by Starlette and FastAPI).
Other server implementations are not covered. If the runtime cannot install
the guard, it does not start the app rather than serving it without the guard.
This behavior is specific to Genesis Desktop; other deployments are unchanged.
The Workshop AppKit Express server also installs a per-run guard in Genesis Desktop.
A direct request to one of its guarded routes without the run key receives 403 and
X-Genesis-App-Guard: refused. If app middleware is found ahead of Express’s own
initialization layers, the runtime refuses to start the server rather than running app
code before the guard.
When auth.enabled is true and auth.provider is hosted, the proxy removes
the inbound session credential headers (Authorization, Cookie,
X-CSRF-Token, and X-XSRF-Token) and hosted identity headers before forwarding
the request to the app. Hosted identity headers include names beginning with
Sf-Context-Current-User, X-Auth-Request-, X-Forwarded-, or
X-Genesis-Hosted-. Genesis then sets X-Forwarded-Host, X-Forwarded-Proto,
and X-Forwarded-Prefix from the proxied request, so a consumed hosted
assertion or caller-supplied forwarding identity is not exposed to the app.
When auth.enabled is true and auth.provider is proxy, the proxy also
removes the inbound session credential and hosted identity headers. It removes
the configured proxy-auth user, email, groups, display-name, and access-token
headers, including names without a recognized prefix. X-Forwarded-Access-Token
is never forwarded to app code. Genesis sets X-Forwarded-Host,
X-Forwarded-Proto, and X-Forwarded-Prefix itself rather than passing through
caller-supplied values.
If the proxy cannot resolve GenesisApp authorization configuration because the
configuration has not been initialized yet, the proxied request returns 503
with the detail GenesisApp authorization configuration is temporarily unavailable. Retry the request after authorization configuration initialization
completes.
Successful app-proxy responses identified as PDFs are returned as downloads:
Genesis sets Content-Type: application/pdf, adds X-Content-Type-Options: nosniff, and uses an attachment Content-Disposition with a sanitized filename.
A response is treated as a PDF when its media type is application/pdf, or when
the requested path ends in .pdf and the response has no media type or uses
application/octet-stream. Other responses and non-2xx responses retain their
upstream headers.
When app code is handling one of these proxied requests and uses Python
requests or stdlib urllib.request to call GENESIS_API_BASE_URL or
GENESIS_API_BASE, Genesis also auto-forwards the current app token by
adding X-Genesis-App-Token to outgoing /api/... requests to that same
Genesis API origin. Existing outgoing headers are preserved; the runtime
patch overrides any stale token the app attached.Long-lived microapp processes (Dash, Flask, and similar) that keep running
after start get this forwarding automatically at interpreter startup via
sitecustomize.py in the microapp runtime-support shim. Versioned apps get
the same shim for every declared runtime type, so their process token is
proactively renewed while the app remains running. On proxied requests
it injects the inbound viewer-scoped X-Genesis-App-Token header Genesis
minted for the current browser session. On background-thread calls with no
Flask request context it uses the rotating process token, or falls back to
the startup GENESIS_APP_TOKEN env var. Token precedence is: inbound viewer
token → rotating process token → GENESIS_APP_TOKEN.Locally hosted apps load the shim from the Genesis server workspace overlay.
Remote deployments use the same shim in the genesis-app-runner container
image (container/Dockerfile.app-runner adds runtime_support/ to
PYTHONPATH).Genesis mints the process token with a default 6-hour TTL (21600
seconds). When GENESIS_APP_ID and GENESIS_APP_TOKEN are set, the runtime
proactively rotates the process token via
POST /api/apps/{app_id}/app-token/rotate about 10 minutes before
expiry so dataset and /api/query calls do not start returning 401 after
the original TTL.Runtime environment flags (string; default true unless noted):For both flags, Genesis treats
1, true, yes, on, and enabled as
true and 0, false, no, off, and disabled as false.Custom app code that manages its own token lifecycle can call
POST /api/apps/{app_id}/app-token/rotate directly (see below). Otherwise
rely on the runtime patch or send GENESIS_APP_TOKEN explicitly on each call.The same runtime patch records outbound Genesis API calls in the app’s
captured stdout/stderr with the [GENESIS_APP_API] prefix. HTTP failures are
logged at WARNING without the query string, so an operator can correlate a
refused token call with the app’s STATUS health signal without exposing
proxied viewer tokens.running records after a Genesis server restart: status
checks for running require the recorded internal port on 127.0.0.1 to be
reachable (0.25 s timeout) in addition to PID liveness; starting checks PID
only. When a proxied request finds the local port dead, Genesis invalidates the
short-lived proxy status cache, reconciles status, and — for HTML GET
requests — returns the same activation page used for stopped apps so the
runtime restarts without a manual start call. Non-HTML proxy requests in
that case return 503 with detail GenesisApp runtime is restarting after a server restart. Reload the app to continue. When the upstream accepts the
connection but exceeds the proxy timeout, Genesis returns 504 with detail
GenesisApp timed out while responding. Please retry. and does not reconcile
the runtime to crashed.
The remote proxy only forwards to an existing remote deployment and keeps the
Genesis proxy path stable even when the backend also publishes a direct URL.
For a top-level browser GET to a production proxy URL without a valid user
credential, deployments using the interactive auth0 or oidc provider redirect
the browser to /apps/ with the app ID and original proxy path. The Apps page
resolves a fresh _auth token after sign-in and returns the browser to that
same-origin app proxy path. This redirect is limited to page navigations
(Sec-Fetch-Dest: document, or Accept: text/html when fetch metadata is absent);
it does not apply to iframe, fetch, or non-GET requests. The proxy accepts the
returned _auth token into an app-scoped, HTTP-only cookie and redirects again
without the token in the URL. The cookie lasts one hour. A proxy request that
already carries _auth is not redirected to sign-in again if that token is
refused. This sign-in flow does not grant app access: normal app view checks
still apply, and other auth providers do not use this redirect.
If an HTML navigation reaches a shared app link without view access, Genesis
returns a friendly access-denied page with the same 401 or 403 status.
Non-HTML requests still receive the standard HTTP error response.
App view access can come from ownership, explicit app grants, or shared-role
visibility when the caller and app owner both hold a role that includes
view_shared_role_resources. That widening applies only to App view;
refresh, edit, and manage still require the normal owner or explicit
policy path.
Genesis App write-back actions endpoint
An app can submit one action declared in itsworkshop_app_spec.json on behalf
of its signed-in viewer. Genesis checks the app’s configured connection against
the connection IDs allowed by the app token, then runs the write under Action
Review. The request must carry the viewer’s app-scoped X-Genesis-App-Token;
the token’s delegated user is both the write identity and the user recorded in
the action log.
POST /api/apps/{app_id}/actions/{action_id}
The
200 response includes success, status, message, errors, edit_id,
key, identity_mode, logged, log_message, and action_review. status
is applied, pending_review, refused, failed, or invalid; a pending
review means the write has not yet been applied. errors maps invalid
parameters to their messages. The optional log fields report whether the
separate action-log write succeeded after the action was applied.
For a ported AppKit action in a protected Foundry app, runtime refusals use the same
status: "refused" and message fields; see the [Foundry migration guide]
(/docs/Integrations/Palantir-Foundry/Palantir-Foundry#migrating-and-proving-a-workshop-app)
for its viewer access and save behavior.
Genesis App server token capability manifest
A GenesisApp’s server authenticates to the Genesis REST API withX-Genesis-App-Token. That token is deliberately not a general Genesis API
credential — it reaches a fixed set of platform endpoints. Fetch this manifest at
authoring or start-up time instead of guessing routes; anything absent from the
returned capabilities list is refused when called with an app token, no matter
how the request is written.
On Snowflake SPCS, requests arriving as the configured remote-app service user are
not signed in as that Genesis user. Genesis removes incoming
Sf-Context-Current-User* headers and accepts these requests only with a valid
X-Genesis-App-Token on an app-token-enabled path, whether platform auth is enabled
or disabled. A missing token or a path that does not accept app tokens returns
403; an invalid or expired token on a supported path returns 401. Tokenless
GET and HEAD health probes remain public. If Genesis cannot read the configured
service-user name, it refuses the request with 503.
For the wider API, call it from the app’s front-end with the signed-in user’s
session (fetch with credentials: 'include'), which is also what keeps a
human in the loop on irreversible actions.
The contract is identical for every app. The path parameter app_id is accepted
for URL symmetry but is not resolved — that keeps this endpoint from doubling
as a way to test whether an app exists.
When a valid app token is presented on a path outside this contract (and no user
credential is also present), Genesis returns 403 with a message that points
callers to this manifest instead of falling through to a generic 401.
GET /api/apps/{app_id}/capabilities
Current
capabilities entries (as of version "1"):
Genesis App token rotation endpoint
Long-lived app workers call this route to mint a fresh processGENESIS_APP_TOKEN
without restarting the process. It has no person’s identity, dataset scope, or
data/action/LLM authority; use a viewer-scoped token for those calls. Legacy
owner-bearing process tokens renew as process-only credentials. The microapp
runtime also calls it automatically shortly before the current process token expires (see
Genesis App proxy behavior).
POST /api/apps/{app_id}/app-token/rotate
Send the current process token in the X-Genesis-App-Token header. Genesis accepts
tokens that expired within the last 48 hours (172800 seconds) so workers
can recover after a brief outage without a full app restart. A short-lived
viewer-scoped token cannot rotate; Genesis returns 403.
Request body is optional empty JSON (
{}).
Genesis App LLM endpoints
App code should send
X-Genesis-App-Token on both routes. Like other app
routes, the token’s app_id must match the path app_id.
POST /api/apps/{app_id}/llm/call
If
thread_id is omitted, Genesis creates a new thread. New threads seed
their initial model_tier and provider from the app authoring thread when
available, otherwise they fall back to main and no stored provider override.
Existing threads keep their current model settings unless model_tier or
provider is supplied in the request.
It returns these top-level fields:
POST /api/apps/{app_id}/llm/direct
When
model_tier and provider are omitted, Genesis inherits the app
authoring thread defaults when available; otherwise it falls back to main
plus the deployment’s configured main provider.
It returns these top-level fields:
Genesis App validation endpoint
POST /api/microapps/{app_id}/validate is a legacy alias for the same
behavior.
POST /api/apps/{app_id}/validate
Response fields include
success, app_id, optional runtime_type, checks,
errors[], warnings[], hints[], and error.
POST /api/apps/{app_id}/start and POST /api/apps/{app_id}/restart also
accept validate_slide_range (string or null, default null) and
validate_stage_sweep (boolean or null, default null) when
validate_before_restart=true, forwarding the same targeted deck checks
through the automatic pre-start validation pass.
On successful START and RESTART responses, hints contains outcome guidance for a
person operating the app. caller_hints is separate API-caller guidance about the
validate_before_restart and auto_capture_after_restart request parameters and the
capture result; either field is null when it has no entries.
For
presentation_deck apps, validation warnings can include
slide.tts_alias_without_canonical_n when a slide uses narration,
speaker_notes, notes, voiceover, or script without canonical n. That
warning does not block validation by itself, but TTS generation skips that
slide until narration is moved into n. When narration intent is explicit
(for example the deck declares audio.format or metadata
audio_required=true), missing fallback narration audio is promoted from a
warning to a blocking validation error.For
presentation_deck apps, string-valued slide.t entries still warn when
they contain HTML or entity-like markup, because plain title strings render as
escaped text. To opt into safe title markup, use an object with exactly one key:
{"html":"<span>Styled</span>"} for markup or {"text":"Plain title"} for
escaped text. Invalid title objects surface slide.title_object_invalid.
Python slides and stages must set py or python to a workspace file under
presentation_slides/*.py that defines callable render(ctx). Missing files,
path escapes, or renderer validation failures surface as
slide.python_source_missing, slide.python_import_failed,
stage.python_source_missing, or stage.python_import_failed. Outside a
Databricks App, validation imports the renderer and checks its callable signature.
In a Databricks App, Genesis parses and compiles the source without executing it;
the renderer must be an undecorated top-level function accepting a context argument, and
import errors appear only when the slide renders. These renderer files load as
standalone workspace scripts, so use absolute imports such as
from presentation_slides.utils import helper instead of relative imports.presentation_deck workspaces also ship scaffolded presentation.js and
presentation_styles.css runtime assets referenced by app.py. Genesis copies
them into the live workspace on start when missing, and treats edits to those
files as restart-relevant alongside app.py and requirements.txt.Genesis App screenshot capture
POST /api/apps/{app_id}/inspect-runtime
The request also accepts runtime inspection options, including
timeout_seconds
(default 5, range 1–30), proxy_path_override, url_suffix, text or selector
wait conditions, and click selectors. The response is a runtime snapshot with the
page’s visible state and diagnostics.
POST /api/apps/{app_id}/capture
The response’s
durability_warning string is present when a screenshot selected for durable
recording could not be stored or attached; a capture not eligible for recording has no warning.
Presentation-deck captures include a visual_critique object (faults and summary)
when include_visual_description=true; it reports fault severity, kind, location, and
suggested fix, or “No faults found.” When a capture waited at least one second behind
another capture of the same app, queue_wait_seconds reports that wait separately from
the capture timeout.
The request also accepts capture options including bot_id, include_visual_description,
runtime_snapshot_mode, slide, stage, slide_range, stage_sweep, and render-wait
selectors/signals. url_suffix is an optional query/hash suffix appended to the app proxy
URL and can be up to 4,096 characters; it must not include a scheme or host. The response
includes screenshot paths and render diagnostics when available. Captures that time out
before finishing or are replaced by a retry are not kept.
See Durable chat uploads on Databricks.
Genesis App dev-session remediation responses
POST /api/apps/{app_id}/dev-session uses the same structured remediation
payload described in Blueprint repository sync and dev-session remediation
when workspace setup is blocked by an actionable saved-connection problem.
OAUTH_RENEWAL_REQUIRED responses use HTTP 409 and return the remediation
fields under the FastAPI error detail body.
Genesis App remote deployment endpoints
POST /api/apps/{app_id}/deploy
POST /api/apps/{app_id}/remote/restart accepts the same spcs_mode,
token_ttl_seconds, and acknowledge_identity_delegation fields. It reuses
the app’s persisted remote backend and target.
Genesis App list, detail, and status payloads can now include remote_deployment
plus a targets object with local and remote summaries. Each target summary
can include proxy_url, target_kind, target_identifier, target_label,
backend and URL metadata, and version details when available.
When clients need to bypass the caller-scoped apps list cache after an app was
created or updated through chat, MCP, or another out-of-band flow, call
GET /api/apps?refresh=1. Truthy refresh values such as 1, true, yes,
or on invalidate the cached list before Genesis rebuilds the response.
On registry load, Genesis renormalizes persisted microapp keys to the canonical
app_id form (lowercase letters, numbers, and hyphens; 1–64 characters;
must start and end with a letter or digit). Workspace directories discovered
on disk are registered under the same canonical id. Duplicate registry rows
that collapse to one canonical id after renormalization are skipped so a single
bad key cannot hide other apps from GET /api/apps or apps_action(LIST).
On Databricks Apps with durable storage enabled, the GenesisApp registry is
uploaded to Lakebase before each save and restored before the server serves
requests, so the app list survives host replacement. See Durable SQLite stores on Databricks.
In SQLAlchemy metadata mode, App and legacy dashboard categories are stored in
the metadata database and share database-assigned category IDs. Those IDs remain
stable across server restarts while the metadata database is retained.
Context Graph endpoints
These routes are mounted under/api/context-graph/... and back Digital Twin
scan administration in the web client. Unless noted otherwise, they require
access_config_panel. The search route uses the lineage tool’s access check instead and filters
out hits from connections the caller cannot see.
Lineage-backed Context Graph operations can return HTTP 503 Service Unavailable; see Digital Twin and Context Graph
for the disabled-server condition and recovery steps.
POST /api/context-graph/read
Read graph data used to draw a Context Graph page without recording a billed
lineage action. The request must contain one display-read action and its
arguments. This route accepts reads only; an action that changes the graph is
refused with 400 and must use /api/tool_call. Cost: one Twin read over the
internal loopback. The response is scoped to the caller’s visible connections;
see Lineage Tools.
Response fields include
success, content (the Twin result), and error
when present. A permission refusal returns 403; an unavailable lineage
service returns 503.
The response reflects graph data published by source scans; for Snowflake
access-history lineage, see Snowflake lineage scan cycles.
POST /api/context-graph/search
Search the Context Graph semantic index with graph fallback. It uses the same access check as
the lineage tool and removes results from registered connections the caller cannot see.
A caller refused by the lineage access check receives
403. The response includes
success, data (the visible search results), and warnings.
Source listing and scans
These endpoints list registered graph sources, enqueue a scan for one source, and retrieve a scan’s status. They requireaccess_config_panel. Listing
sources reads their registry records. Including scanner configuration also
reads and JSON-decodes each source’s config, which can contain a custom
scanner’s prompt, so leave include_config off unless needed.
GET /api/context-graph/sources
Response fields:
Returns
500 if the source listing fails and 503 when the lineage service
is unavailable.
POST /api/context-graph/sources/{source_id}/scan
Queues a scan and returns immediately with its queue status; it does not wait
for the scan to start or finish. Scanning reads the source through its scanner,
publishes its nodes and edges, and re-embeds indexed data. This can take minutes
to hours and incurs embedding spend per indexed node. Poll
GET /api/context-graph/scans/{scan_id} for the scan record and outcome.
The request body is optional. When supplied, it accepts:
Response fields:
Returns
400 when source_id is empty, 404 when the source is not
registered, 500 for other queue errors, and 503 when the lineage service
is unavailable.
GET /api/context-graph/scans/{scan_id}
Reads the scan from the live queue, falling back to scan history after it
leaves the queue.
Response fields:
Returns
400 when scan_id is empty, 404 when no matching scan exists in
the queue or history, 500 for other lookup errors, and 503 when the lineage
service is unavailable.
Twin log endpoints
GET /api/context-graph/logs/twin reads the tail of twin.log from the
Genesis host. The file lives on durable storage alongside the context graph
({STORAGE_PATH}/twin/twin.log), so it survives pod restarts; the
TWIN_LOG_FILE environment variable overrides the location. Thread-export
support bundles and the Digital Twin log viewer use the same resolver, so the
path cannot drift between writer and readers. File rotation is bounded via
TWIN_LOG_MAX_BYTES (default 52428800, 50 MiB per file) and
TWIN_LOG_BACKUP_COUNT (default 10). Genesis keeps the active file plus up
to TWIN_LOG_BACKUP_COUNT rolled backups, capping total disk at approximately
(TWIN_LOG_BACKUP_COUNT + 1) × TWIN_LOG_MAX_BYTES (~550 MiB with defaults)
while retaining well over a week of sustained high-rate scanning. GET /api/context-graph/logs/twin/download returns the full file as a
text/plain attachment named twin.log.
GET /api/context-graph/logs/twin
Response fields:
Returns
404 when twin.log does not exist.
GET /api/context-graph/logs/twin/download
This route does not accept query parameters. Returns 200 with
Content-Disposition: attachment; filename="twin.log" on success. Returns
404 when twin.log does not exist.
Scan permission check endpoint
POST /api/context-graph/check-permissions resolves a saved connection on the
Genesis side and asks Twin to audit whether the credentials can perform a
lineage scan. Genesis passes the resolved locator to Twin so the check does
not require Twin to call back into Genesis.
POST /api/context-graph/check-permissions
Response fields:
When connection resolution fails, Genesis returns
success: false with a
single checks entry named Resolve connection and status: fail.
Internal Digital Twin integration endpoints
These internal routes are mounted under/api/internal/... and are intended
for the Digital Twin MCP subprocess rather than interactive client use.
All internal Digital Twin integration requests require an
Authorization
header with the internal bearer token: Bearer <internal-token>.POST /api/internal/resolve-llm-credentials
It returns these top-level fields:
Internal Digital Twin integration example request
Internal upgrade-check endpoints
These routes are for the Control Plane’s post-upgrade checks, not interactive client use. Genesis mounts them only whenGENESIS_UPGRADE_CHECK_TOKEN is set
to a non-empty value when the app starts; otherwise the routes do not exist.
Every request requires Authorization: Bearer <GENESIS_UPGRADE_CHECK_TOKEN>.
Hosted mode does not expose /api/internal/, so these routes are unreachable
there.
Both
POST routes accept exactly this JSON body; extra fields are rejected:
Repeated starts with the same probe ID return the existing record. Probe records
are held in separate in-memory stores of up to 32 Eve and 32 blueprint probes;
finished records are retained for 30 minutes. Reads and cleanup return
404
when the probe is missing or its record has expired. A full store of records it
must retain returns 503.
The counts response contains:
This request reads the bot cache, reads the two connection stores, makes one
Twin stats call bounded at five seconds, and probes LLM readiness; it does not
make an LLM completion call.
Probe responses contain:
The Eve probe sends one fixed prompt to Eve and is bounded at 90 seconds. The
blueprint probe starts the hidden built-in blueprint
and is bounded at 300 seconds. Both run under the internal system identity and
delete their temporary thread when finished; the blueprint probe also deletes
its Mission. The delete route confirms cleanup if artifacts remain and keeps the
probe record.
Python runtime artifact download-link endpoint
Managed Python executions use these internal callbacks through the Genesis SDK. Callers need a valid runtime token inAuthorization: Bearer <runtime-token>;
the token must include the artifacts:write scope. These are runtime callbacks,
not general-purpose endpoints for browser or external clients. For normal Python
usage, see Genesis SDK in local execution.
Both requests use a JSON body with
path; the write route also accepts
content (string or null, default null), content_b64 (string or null,
default null), kind (string, default text), and download_link
(boolean, default false). content_b64 or kind: "bytes" writes decoded
bytes; otherwise content is written as UTF-8 text.
Internal sandbox LLM proxy endpoints
These routes are mounted under/api/internal/sandbox-llm/... and are intended
for sandbox Claude Code thread-runner containers, not interactive client
use. A per-thread sandbox container calls them with ANTHROPIC_BASE_URL pointed
at http://<genesis-host>/api/internal/sandbox-llm (the Anthropic SDK appends
/v1/messages or /v1/messages/count_tokens). Genesis validates a thread-scoped
session token on each call, injects the real org LLM credentials server-side, and
forwards the upstream response — the container never holds the org Anthropic key
or other provider credentials.
These routes sit under the
/api/internal/ prefix, which is public to
AuthRequiredMiddleware (not an Auth0-protected path). Authentication is
in-band: the sandbox presents its thread-scoped token as the x-api-key
header value. This is not the internal bearer token used by Twin or
genesis-scanner routes.
Authentication: Except for the connectivity probe,
x-api-key must be a live
thread-scoped sandbox session token (minted by Genesis when the container starts).
Token records are stored in Genesis metadata, so a backend restart does not
invalidate an otherwise-live token; the stored expiry still applies. An invalid
token returns 401 with an Anthropic-shaped authentication_error body and the
message invalid sandbox session token. A token whose stored expiry has passed
returns the same status and error type with the message sandbox session token expired. If the token store is unavailable, the proxy returns 503 with an
error response; the proxy service uses an Anthropic-shaped api_error body. The
GET or HEAD connectivity probe returns a bare 200 without a token and does
not proxy an LLM request.
Request body: JSON in Anthropic Messages API shape. When
sandbox_runner.llm_model is set (Advanced Settings, genesis-config.yaml, or
GENESIS_SANDBOX_RUNNER_LLM_MODEL after the startup config→env bridge), Genesis
routes through litellm and overrides the request’s model with the configured
litellm model (and, when applicable, the thread’s GUI-selected model tier). The proxy
honors the request’s stream flag — Claude Code streams by default; when the flag
is omitted, the proxy returns the non-stream plain JSON response specified by the
Anthropic API default. Mid-conversation role: "system" entries
inside messages are hoisted into the top-level system parameter so Bedrock and
other litellm providers accept the request.
litellm mode: When sandbox_runner.llm_model is set (for example
bedrock/us.anthropic.claude-sonnet-4-6), Genesis serves calls via
litellm.anthropic_messages and litellm.token_counter. Streaming responses are
SSE already in Anthropic wire format and are forwarded unchanged. Databricks models
are also supported: when the configured provider has no Anthropic Messages
configuration, Genesis bridges the request to chat completions and re-emits the
result in Anthropic format, including tool_use blocks. For Databricks models,
Genesis translates stop_sequences to Databricks’ stop parameter before
forwarding the request. Token usage is metered per
call against (bot_id, thread_id) with usage_category:
sandbox_runner. The recorded prompt total includes fresh input plus cache-read
and cache-write tokens, while those cache counts remain separate for pricing so
cached tokens are not counted twice. A turn served entirely from the cache is
still recorded when it has prompt usage. For Databricks models, Genesis restores
the first text fragment
when a streamed reply starts a new text block after a tool call, so that fragment
is not lost from the Claude Code response. If the upstream model rejects extended
thinking either in the request parameters or replayed message history, Genesis
retries the turn once without the thinking parameter and thinking content blocks.
Other provider failures preserve a recognized provider status and the corresponding
Anthropic error type, allowing Claude Code to distinguish rate limits and request or
credential problems. Failures without a recognized status or rate-limit marker
remain 502 with api_error.
When the configured model routes through LiteLLM Proxy and a gateway identity
claim is configured, Genesis removes client-supplied request identity metadata
and uses the identity resolved for the sandbox thread. If that identity is
missing, the request is refused with 424 and permission_error; if its stored
value cannot be read, the request returns 503 and api_error.
Direct Anthropic fallback: When sandbox_runner.llm_model is unset,
Genesis forwards to https://api.anthropic.com/v1/... using the org Anthropic
key resolved from AppConfig (litellm_anthropic provider). Returns 502 when
neither litellm mode nor a configured Anthropic key is available.
Live GUI streaming: During litellm streaming, Genesis tees the forwarded
model SSE into the GUI while the container receives the upstream bytes
unchanged. Each visible proxy request (one agent step) uses two identifiers;
auxiliary requests that do not advertise tools, such as thread-titling calls,
are not painted into the chat reply:
-
message_id— per-step bubble id of the formsbx_{thread_id}_{12-hex}. This identifies the proxy request’s live streaming events. -
assistant_message_id— turn-level id from the thread’s active completion (when registered). The streamed text deltas, tool boxes, and persisted message rows all carry this id so the chat UI groups them into one assistant reply and reconciles the live copies with the end-of-turn refetch. Omitted when no active completion is registered (best-effort). -
Assistant text: Genesis emits
message_response_deltaWebSocket events (made_by:sandbox_runner) with the per-stepmessage_idand, when available,assistant_message_id.full_textcontains the complete assistant text accumulated across the turn so far, rather than only the current step; clients should use it as the displayed value for the turn. Each delta also checkpoints this growingfull_texton the thread’s active completion so a GUI stop mid-turn preserves the partial reply that was already shown. -
Tool boxes: When the model SSE includes a completed
tool_useblock, Genesis emitsthread_tool_startwith the masked Genesis-native tool name and arguments. When the tool result arrives on a later proxy request, Genesis emitsthread_tool_stoponce for that tool within the turn, even when earlier results are replayed in subsequent requests. Both events setassistant_message_idto the turn-level id (falling back to the per-stepmessage_idwhen no completion is registered) so the chat UI renders running/done tool cards live against the same assistant reply (same contract as in-process threads — see Supported progress event types).
Internal Genesis scanner endpoints
These internal routes are mounted under/api/internal/genesis-scanner/... and
are intended for Twin migration and scanner automation workflows rather than
interactive client use.
All internal Genesis scanner requests require an
Authorization header with
the internal bearer token: Bearer <internal-token>.GET /api/internal/genesis-scanner/inventory
This route does not accept query parameters.
It returns these top-level fields:
Each item in
datasets, apps, and schedules includes:
For scheduler jobs, this includes system dataset-refresh jobs and the Genesis
daily scan job (
twin_daily_scan).
During early startup,
schedules can be empty and errors.schedules can be
present if the scheduler is still starting. Genesis retries the scheduler
lookup before returning that partial inventory response.sqlite_connections includes:
POST /api/internal/genesis-scanner/scan-sqlite
It returns these top-level fields:
scan-sqlite returns HTTP 400 when ref cannot be resolved to a SQLite
file, and HTTP 403 when the resolved file is one of Genesis’s blocked
internal databases: genesis.db, rbac.db, datasets.db,
genesis_cache.db, scheduler_jobs.db, lineage.db, flows.db,
blueprint_runs.db, or debriefs.db.GET /api/internal/genesis-scanner/harvest-export
This endpoint returns these top-level fields:
GET /api/internal/genesis-scanner/harvest-embeddings
This endpoint returns these top-level fields:
Each entry in
embeddings includes:
SQLite scanner checks reserved database filenames and durable-store paths. The durable
metrics.db is blocked by its resolved path rather than by filename; an unrelated user
database named metrics.db is not blocked by name alone.
Internal Genesis scanner example requests
Bot settings endpoints
These routes manage per-agent settings and requiremanage_agents. The settings
write route applies the same context soft-limit safety cover used by the Agent
Center LLM tab.
Settings writes and clears for a version-owned agent return HTTP 409 with
error_type protected_core_agent; the version_owned field in the bot list
and details responses identifies these agents.
The bot-level context soft-limit keys are:
When a
PUT includes llm.default_soft_limit_tokens, its response data adds
requested_soft_limit_tokens, applied_soft_limit_tokens, clamped,
clamp_reason, acknowledged_exceeds_hard_limit, hard_limit_resolved,
hard_limit_tokens, hard_limit_source, and hard_limit_model_name. An
unacknowledged value above the resolved hard limit is persisted as requested but
reported as clamped, with the applied value set to that hard limit. Resend the
value with llm.default_soft_limit_acknowledge_exceeds_hard: true to override
that comparison. If the hard limit cannot be resolved, Genesis does not clamp;
hard_limit_resolved is false so clients can distinguish an unchecked value
from one that passed comparison.
GET /api/bots/{bot_id}/settings exposes the same status under
data.soft_limit_status, allowing clients to keep showing a clamp or acknowledged
override after a reload. The status is null when the bot has no soft-limit
override.
Chat suggested reply endpoint
The dashboard uses this endpoint to suggest a short next reply in an empty thread composer after the agent has replied. It requires an authenticated caller and reads no thread; the request includes the messages used to write the suggestion. Results are cached for six hours by message digest. A cache miss calls the fast model, with the regular chat model as fallback if the fast model fails. The endpoint is limited to 30 requests per user per minute and 8 per user per 10 seconds; excess requests receive HTTP429.
Example request:
{"success": true, "data": {"reply": "..."}};
reply is an empty string when no suggestion is available.
Chat thread list endpoint
Thread metadata is scoped to agents registered in the database. Cross-agent thread scans (search, retention archival, ownership resolution) enumerate active bots fromBOT_SERVICING rather than inferring agents from storage
directories on disk. At server startup, Genesis preloads a thread-metadata cache
for each registered bot so first requests do not pay a cold-load penalty.
Orphan storage directories without a matching bot row are not indexed.
The per-agent thread routes are mounted under /api/bots/{bot_id}/threads.
With white-labeling on, thread list and search results, message and title reads,
WebSocket thread reads, events carrying thread titles, and titles copied into
forks, debriefs, exports, storage listings, cost rows, and Blueprint chains use
the configured product name in place of fixed MCP fallback text. Action names
remain in the title, thread metadata is not rewritten, and
thread_title
filtering matches either the stored or displayed title. See
Branding.GET /api/threads/users-with-public
The thread-search user picker uses this endpoint. Callers without
VIEW_ALL_THREADS receive owners with at least one public thread across all agents;
the list is not filtered by whether the caller can use each thread’s agent, and
owners of only private threads are omitted. Callers with VIEW_ALL_THREADS receive
owners of any thread, regardless of visibility. The response contains success
and a users array with user_id, nullable email, and nullable display_name.
POST /api/bots/{bot_id}/threads
The response includes
thread_id and an initial title. Without title, thread
creation opens through the runtime !thread_info turn and clients that open the
thread immediately may also receive an assistant welcome message derived from the
bot’s bot_intro. With title, no agent turn or LLM call is made during creation;
the runtime loads the stored thread when its first agent turn runs.
GET /api/bots/{bot_id}/threads
When
auth.enabled is true, the send path also repairs legacy threads whose
stored owner_id is system_default_user: the first authenticated non-system
caller who resumes the thread becomes the stored owner. After that repair,
my_threads_only, GET /api/bots/{bot_id}/threads/{thread_id}/share-info, and
owner-scoped thread mutations reflect the repaired owner. When
auth.enabled is false, Genesis continues to use system_default_user as
the canonical owner.
First-party thread sidebars typically call this route with
include_hidden=false.
To mirror Genesis’s default sidebar behavior, they can also pass
include_handoff_threads=false, which excludes threads whose resolved
show_in_thread_list value is false.mcp_origin_only=true, Genesis sorts the matching threads by the same
stored display timestamp used for each returned row before applying offset and
limit. Threads without a stored display timestamp are listed last. This lets
the hosted MCP connector page through MCP-opened threads consistently across
agents.
Thread listing filters and sorts shallow metadata snapshots captured under one
cache-lock hold, then normalizes only the rows on the returned page. Title filtering
and list-item construction for a row use that same snapshot, so a concurrent metadata
update is not mixed into that row during the request.
Returned data[] items include show_in_thread_list (boolean), which tells
clients whether Genesis intends that thread to appear in the default sidebar
list. Legacy handoff/delegation threads without an explicit stored flag resolve
to false for backward compatibility.
Returned data[] items can also include mcp_client (string or null), the
known integration that identified itself when creating an MCP thread through
thread_create or ask_agent (for example, agent_mail). It is null when
the thread has no non-empty top-level client identifier.
Thread-list items may include participants, an object with people and
total. Each person has user_id and the recorded name. people contains at
most five unique people: the owner first, then the requesting user if they are
in the thread, followed by other posters in first-post order. total counts all
known people; threads with no recorded posters return participants: null and
show only their owner in the sidebar. The thread records at most 100 posters
from each source (Slack and web or Talk chat), so later posters are not listed
or counted.
Thread-list items also carry the meeting field described in Activity details; it is
null when no meeting is active or after the meeting ends.
MCP ask_agent chat items also include mcp_work_thread_id (string or
null). For an MCP chat, this is the caller’s work-thread ID, which clients
can use to group the chat under its originating work thread in a sidebar. It is
unset for other threads and is not parent_thread_id; it does not change the
runtime’s parent-thread behavior.
Each data[] item’s timestamp field drives sidebar sorting and the “last
active” label in first-party clients. Genesis resolves it using this priority
chain:
imported_display_timestampfrom thread metadata — archived imports (for example, conversations uploaded by the chats-sync daemon) pin the conversation’s true historical date here; it wins over newerlast_activityvalues stamped during import.thread_list_activityfrom thread metadata — updated by a person’s message or visible agent work, but not by an automated message alone.last_activityfrom thread metadata.timestampfrom thread metadata.- Timestamp embedded in
thread_id(for example,chat_1234567890_...). - Persisted thread-service props (
last_activity,timestamp, orcreated_at). - Plist file modification time.
- Current server time as last resort.
Z
suffix. Thread search results expose the same resolved value in
last_activity.
thread_new WebSocket events use the same metadata keys
(imported_display_timestamp, thread_list_activity, last_activity, timestamp) so a client
that inserts a new sidebar row from the socket shows the same date the
thread list would return without a reload.
GET /api/bots/{bot_id}/threads/{thread_id}/handoff-info
The response’s data.mcp_linked_threads contains the related threads shown in the
MCP-linked threads bar. Each entry
has thread_id, thread_title, and bot_id; the API returns only threads the caller can
see. For an MCP-origin thread, data.mcp_stored_work_thread_id reports the link in its
own storage, read past the cache. data.mcp_stored_link_read is read when that lookup
succeeded or unreadable when the stored link is unknown; an unset link after a successful
read means none is recorded. Both fields are unset for other thread types.
Chat thread import endpoints
These routes are mounted under/api/bots/{bot_id}/threads/... and restore a
thread from an exported package. Prefer import-zip for full ZIP exports that
include thread.json, message_log.csv, and file attachments; use import
only for legacy JSON-only payloads.
Genesis derives import identity from the cryptographically verified Bearer
token on the request (PAT, primary Auth0/OIDC token, or a JWT from an entry in
auth.additional_issuers). Values inside the uploaded export — including
per-message primary_user in message_log.csv — are never trusted for
ownership or access control.A token from an identity_source: email issuer (the OAuth-proxy identity
broker) resolves only to an existing user of the deployment’s configured
login provider (auth.provider), matched by the token’s verified email —
never to users minted by other channels such as Slack. If no such user
exists, the request is refused with 403 rather than creating an account:
log into the deployment’s web UI once, then retry.During message_log.csv import, Genesis writes each row’s primary_user in
MESSAGE_LOG as the verified importer’s identity
({"user_id": "<importer>"}, or null when the request has no authenticated
user) and preserves the source CSV value only as display-only provenance in
message_metadata.imported_thread_author. That field records who the exported
thread said wrote the message; it is not a Genesis user identity and must not
be used for authorization.Any sender_provenance value supplied inside an imported thread is removed;
imports cannot claim that a message was sent by a verified customer. Imported
rows therefore report unrecorded; messages subsequently sent through a server
send path receive a new stamp based on that send path.When the imported
thread.json (inside a ZIP or passed as thread_data)
includes metadata.source_timestamp, Genesis treats it as the
conversation’s true historical date. During materialization Genesis persists
it as imported_display_timestamp, which takes priority over
last_activity when resolving the sidebar timestamp on
GET /api/bots/{bot_id}/threads. Automatic archive importers such as the
chats-sync daemon set metadata.source_timestamp so imported threads appear
at their original date instead of import time. Manual imports that omit
metadata.source_timestamp use the import-time clock and sort to the top of
the sidebar like a newly created thread.threads.import_open_timeout_s controls that wait (default
45.0 seconds). If opening fails or times out, a newly created thread is not
deleted and the error includes its thread_id so its owner can remove it if
unwanted; the import does not write the transcript. An existing thread that fails
to open is left unchanged.
POST /api/bots/{bot_id}/threads/import-zip
Send the raw ZIP bytes as the request body with
Content-Type: application/zip (or application/octet-stream).
When the ZIP contains
query_results/results.json, Genesis restores each bundled
query result under its original query_id so query-result:// embeds in the
imported thread still resolve. Rows whose query_id already exists on the
target server are skipped, so re-import stays idempotent. Invalid or oversized
payloads are skipped with warnings rather than aborting the whole import.
Before reading ZIP member contents, Genesis rejects archives that exceed the
configured decompressed-size limits for an individual member or for the archive
total. See Thread archive import limits
for the settings and defaults.
POST /api/bots/{bot_id}/threads/import
handle_conflict=update continues an existing exported thread in place by
appending only messages that are not already stored. Genesis deduplicates using
stable message ids: message_id on each thread.json message (also mirrored
as metadata.input_uuid) and input_uuid or message_id inside each
message_log.csv row’s message_metadata JSON.input_uuid is also how a streamed reply joins its stored rows. Every chat
turn has one: the sender’s id when it supplied one, otherwise an id of the
form msg_<32 hex> minted when the turn starts. It is the message_id of
every message_response_delta WebSocket frame streamed for the turn, the
message_id of the turn’s User Prompt row in the thread messages API, and
metadata.input_uuid on the turn’s assistant rows. The integer
MESSAGE_LOG.message_id column is a storage key only and never appears in
a streamed frame.Update mode requires thread ownership (same as replace). Genesis returns
400 when:- The remote thread has diverged — it contains messages absent from the
import (likely continued inside Genesis). Use
replaceto overwrite orrenameto import as a new thread. - The existing thread has messages but none expose stable ids (incremental
update is not possible). Use
replaceorrename.
messages_imported: 0 (a valid no-op). Warnings may note how
many new messages were appended.Messages appended by an update import are available in the prompt for the
next chat turn on that thread.Every import path sets the thread title from user_title, falling back to
ai_title and then Imported Thread when those fields are empty. This also
updates the title when handle_conflict=update continues an existing thread.
If the title update fails after the messages are stored, the import still
succeeds and reports the failure in warnings.ThreadImportResponse with success, thread_id,
original_thread_id, renamed, messages_imported, title, and warnings.
Chat thread access endpoints
These routes are mounted under/api/bots/{bot_id}/threads/{thread_id}/....
All routes below require access to the target agent. When
auth.enabled is
true, export, fork, and GET /api/bots/{bot_id}/threads/{thread_id}/access
follow the standard thread-access check rather than an owner-only check. At
that check, public threads are visible regardless of whether the caller can
use the owning agent; the route-level agent-access requirement still applies.
Invited threads, callers with
view_all_threads, callers
who share a role with the owner where that shared role includes
view_shared_role_resources, and legacy/system threads whose owner_id is
null or system_default_user remain readable. Shared-role visibility
widens only this standard access path. In auth-enabled deployments, thread
collaboration actions such as rename, access-list changes, stop, and reset
are available to callers who may open the thread. Visibility and Project
assignment use that access check for ordinary threads, but legacy/system
threads without a real owner remain restricted to administrators. Only an
owner or manage_all_threads administrator may hide or delete a thread; only
an administrator may remove its owner from the access list. Access-list
changes are audited with the acting user.GET /messages, POST /messages, POST /messages/sync,
POST /messages/websocket, GET /messages/{message_id}/response,
GET /messages/{message_id}/response/delta, and
GET /messages/{message_id}/provider-request-export. In auth-enabled
deployments, callers must be allowed to access the target thread before
sending or polling messages. The same access check also applies to
POST /api/bots/{bot_id}/threads/{thread_id}/profile-pre-llm, which profiles
live prompt assembly without sending a model request.
The unified WebSocket applies the same thread-access rule to chat sends,
message replacement, redirects, and message subscriptions. A client may start a
new thread with its own first message, but an existing thread the person cannot
access is refused rather than streamed or modified. When authentication is
enabled, an agent turn with no mapped person cannot use another person’s thread.
Internal failure-diagnosis threads are not ordinary chat destinations: thread
ownership or sharing does not expose them, and HTTP or WebSocket message sends
to them are refused.
Live events for a thread with no person owner (such as an agent-woken thread)
are narrower than ordinary system-thread reads when authentication is enabled:
only administrators and users with a manage grant for the agent receive its
live broadcasts. A person’s thread still follows the usual thread-access rules.
In demo mode, when aggregate spend has reached
demo.token_budget_usd,
POST /messages, POST /messages/sync, and POST /messages/websocket
return HTTP 402 Payment Required with error_type = "payment_required"
before accepting the turn. The response includes a details object with
spent_usd, cap_usd, and cta_url (from demo.sales_url). Outside demo
mode, when the cap is unset (null), or when demo.allow_unlimited_budget
is true, these routes do not apply this preflight.For the default
GET /api/bots/{bot_id}/threads/{thread_id}/messages path
(source=message_cache, which is also used when source is omitted),
Genesis can coalesce concurrent reads that use the same bot_id,
thread_id, limit, before_timestamp, and include_tool_calls values.
This applies to active threads as well, so identical concurrent polls can
share one in-flight read instead of triggering duplicate backend work.
Genesis also refreshes volatile thread metadata on the returned payload
before sending it back, so fields such as title, checklist,
assistant_mode, model_tier, model_provider, execution_lane, and
is_active stay current even when the underlying message list came from a
cached snapshot. Metadata-only updates do not invalidate that cached message
list; Genesis rebuilds it only when message content changes or history
compression rewrites the thread. Each message also includes the
sender_provenance field described below.source=thread_json&view=document_flow.
The response contains the phase pointer, artifaqts, blueprint tool calls and their
results, and the first tool call naming a repository, rather than the full thread.
Genesis still loads the whole thread and repairs its artifaqts lineage before narrowing
the response.
Thread message and JSON reads are filtered for the authenticated reader: a stored
run-finished notice is omitted when it names a Prover run that reader cannot see. Thread
exports apply the same filter to the exported messages and corresponding message_log.csv
rows, while server-internal exports may retain the full thread.
On the default
source=message_cache path, Genesis strips internal
auth/session metadata keys such as _sf_caller_token, _user_context, and
_sf_user_info before returning messages[*].metadata. For messages imported
from a thread export, metadata.imported_thread_author may be present as
display-only provenance copied from the source export’s primary_user column;
it is not a Genesis identity and is not used for access control.For a
User Prompt message, sender_provenance identifies which credential
sent the message. It is one of customer, agent, delegated, unverified,
udf_proxy_unauthenticated, or unrecorded; customer is the only value that
means a verified human customer. agent identifies a server-internal agent
channel, delegated identifies a credential acting on a person’s behalf (such
as a PAT, app token, sandbox token, machine token, or prompt sent for another
user), unverified means no verified person was established, and
udf_proxy_unauthenticated identifies a message received through the UDF
proxy door, which carries no credential and cannot establish the identity of a
person named by the caller. unrecorded means the server has no recognized
stamp (for example, a legacy row). For assistant and other non-user message
types, the field is null.A User Prompt sent with a GenesisApp viewer token also carries the
server-generated sent_by_app metadata field with the app ID.REST message sends never classify as customer: even a verified person’s
token used through the programmatic REST door is recorded as unverified,
unless the request declares the agent channel. The MCP connector sends
X-Genesis-Sender-Channel: agent; on /messages and /messages/sync, that
header stamps the prompt or queued steer as agent rather than as the person
whose token the connector uses. On /api/desktop/shell/run, it stamps a
queued steer as agent; idle shell runs keep their existing send path. This
declaration can only lower trust; other header values cannot select a
provenance stamp. WebSocket sends are classified from the authenticated
context, or from a server-internal sender classification. Queued steers keep
the sender classification of the original send. When a steer is mailed after
the turn ends, its delivery metadata includes mailed_steer_senders entries
with the sender stamp, steer_id, and sender_user_id; the message text stays
in the delivery body. owner_words includes mailed steer text only when every
steer in that batch is classified as the thread owner’s own words.
On HTTP /messages and /messages/sync, an MCP gateway may also send
mcp_caller_name (string, default null, maximum 200 characters) in the body
to identify the calling agent on the prompt row. Genesis records it only when
the request declares the agent channel and did not come from a browser; the
server writes the MCP marks, and other requests’ values are ignored.
The same request body accepts low_latency (boolean, default false) to
request low-latency mode for this turn while a person waits for replies through
the calling agent. Genesis reads it only on requests where it writes the MCP
marks; otherwise it is ignored. It does not set a persistent conversation mode.
Clients cannot set this field through message_metadata. When a stamped
prompt waits for an agent slot, Genesis preserves its sender stamp when
resubmitting it instead of classifying the resubmission as a new send. If no
stamp was supplied, the send path classifies it afresh.For newly created client-side thread IDs that are still materializing on the
backend,
GET /api/bots/{bot_id}/threads/{thread_id}/messages can return
model_tier: "" instead of defaulting that field to main. Treat the empty
string as “no explicit thread tier has been persisted yet.” Once Genesis
finishes creating the backend thread record, the response resolves the
effective tier normally.When thread or message payloads include file or artifact links, Genesis
returns root-relative URLs on the current Genesis origin. Standalone and
local deployments normally prefix these links with
/api, while SPCS omits
that prefix. Use returned paths as-is. Git-backed attachments resolve through
/api/git/... or /git/..., file-manager attachments through
/api/files/... or /files/..., and artifact downloads through
/api/artifacts/... or /artifacts/.... Git-backed url and
download_url fields may also include an optional v={mtime_ns}-{size}
query parameter so clients fetch the current file bytes after a same-path
overwrite; combine it with download=true when both are present.403 refusal for an unknown thread ID and a thread
the caller may not open. This keeps the response from revealing whether the
thread exists; operation-specific ownership or permission checks still apply.
Working context endpoints
Working context contains explicit, non-secret selections for a thread’s working location and connections. It grants no additional access; every update is validated against the caller’s current connection grants and repository access.GET /api/bots/{bot_id}/working-context-options
The response is a WorkingContextOptions object:
The connection catalog is scoped to the authenticated caller and agent. The
catalog query is cached by the web client for 60 seconds while it is current.
GET /api/bots/{bot_id}/threads/{thread_id}/working-context
Returns the saved working-context object or null when the thread has no saved
selection. The object has these fields:
PUT /api/bots/{bot_id}/threads/{thread_id}/working-context
Send the complete working-context object. The server validates that selected
connections are still available, that the caller can view the repository, and
that the folder exists inside that repository. Repository and folder values
cannot target Git internals or traverse outside the repository. A successful
response returns the validated and persisted object.
Shared thread path parameters
POST /api/bots/{bot_id}/threads/{thread_id}/export
PUT /api/bots/{bot_id}/threads/{thread_id}/title
It returns these top-level fields:
POST /api/bots/{bot_id}/threads/{thread_id}/fork
It returns these top-level fields:
GET /api/bots/{bot_id}/threads/{thread_id}/fork-info
Returns fork lineage breadcrumbs when the thread was created via
POST .../fork. Otherwise returns success: true with data: null.
data object fields when present:
DELETE /api/bots/{bot_id}/threads/{thread_id}
This endpoint also supports SQLAlchemy-backed metadata storage, including the
Databricks App deployment.
Deleting a conversation also deletes its hidden side-quest threads. Running
quests are stopped without a report, and Genesis waits up to 10 seconds total
for their turns to end before deleting their threads. The
purge_message_log
setting applies to those child threads as well.
POST /api/bots/{bot_id}/threads/{thread_id}/force-reset
This endpoint does not document any request body fields.
Besides clearing in-memory thread markers, Genesis also attempts to cancel
queued async prompt work and stop any shared streams for the thread. When
state is cleared, Genesis also emits the standard terminal realtime events for
the thread so subscribers can recover from a stuck loading or streaming state.
It returns these top-level fields:
POST /api/bots/{bot_id}/threads/{thread_id}/profile-pre-llm
Profile live pre-LLM prompt preparation on the loaded thread without calling
the model. Genesis clones the thread state, optionally runs one warm-up pass,
then measures only prompt-build stages.
It returns these top-level fields:
trial item fields
timings_ms and per-metric summary fields
summary repeats the same shape for update_llm_messages_ms,
append_system_context_ms, build_runtime_request_snapshot_ms, and
total_prep_ms.
cache_flags fields
GET /api/bots/{bot_id}/threads/{thread_id}/messages/{message_id}/response
Read the response for this specific submitted message. Its status describes that
message, not whether a later turn on the thread is active: finished remains
finished after subsequent turns begin. If Genesis has no tracked response for the
id and the thread contains no matching reply, the request returns 404 rather than
continuing to poll a missing message. A cached reply is served only through the
thread recorded for that reply; asking through another thread does not expose it
and returns 404 when that thread has no matching stored reply. If thread storage
cannot be read while Genesis
settles an untracked id, it returns in_progress so the caller can poll again.
GET /api/bots/{bot_id}/threads/{thread_id}/messages/{message_id}/provider-request-export
Generate a sanitized provider request export for the selected turn. Genesis
reconstructs the payload from stored thread history instead of replaying a
captured upstream HTTP request, so data.simulated is always true. The export uses only
thread rows the caller may read; a run notice or Prover tool row hidden from this caller is
not included. Requesting the id of a stored but hidden message returns 404 rather than
exporting it.
Genesis resolves the provider, model, and endpoint from stored message
metadata, thread properties, current model assignments, and provider defaults.
Returned
endpoint_url values are sanitized and never include embedded
credentials. When Genesis cannot infer a concrete chat-completions endpoint,
the generated curl falls back to
https://<AI_PROVIDER_BASE_URL>/chat/completions.
When Anthropic-style prompt caching applies, Genesis preserves
cache_control markers on the exported messages[*].content[] blocks so
replaying the JSON keeps the same cache intent. In checkpoint mode with the
default rolling anchor, the deep breakpoint sits on stable history behind the
volatile newest user turn (which carries per-turn date/time context).
It returns these top-level fields:
GET /api/bots/{bot_id}/threads/{thread_id}/activity
This endpoint does not document any query parameters beyond the shared bot_id
and thread_id path fields.
It returns these top-level fields:
background_work items
Items describe armed background work the agent will be notified about, or a
running side quest. Dismissing dismissible work only removes it from the list; it
does not stop the work or withdraw the agent’s completion notification. Side
quests cannot be dismissed.
active_completion fields
active_tool_call fields
active_compression fields
GET /api/bots/{bot_id}/threads/{thread_id}/goal
Returns the goal attached to the thread, including its current status and verdict.
The response is a top-level ThreadGoalResponse with success and goal fields; this
endpoint has no additional query parameters.
When present,
revival contains:
GET /api/bots/{bot_id}/threads/{thread_id}/mode
Returns the thread’s assistant mode and plan-mode record. The caller must have
access to the agent and the target thread.
When present,
plan_exit_proposal contains summary (string), plan_ref
(string or null), status (pending, declined, approved, or superseded),
and proposed_at (epoch seconds or null). The record can retain the latest
proposal after plan mode ends.
PUT /api/bots/{bot_id}/threads/{thread_id}/mode
Set the thread assistant mode. A caller with access to the target thread can
switch between plan mode and normal agent mode. When the request changes the
mode, Genesis records it as a person’s mode transition.
The response returns
success, the current mode, server time and timezone,
and error when present. Invalid mode values return HTTP 422.
POST /api/bots/{bot_id}/threads/{thread_id}/background-work/dismiss
Hide background work from the thread’s waiting card for everyone who views the
thread. The work continues running, and the agent is still notified when it
finishes. The caller must have access to the agent and be able to see the
thread; a caller who cannot see it receives an empty background_work list and
does not change the list.
The response returns
success and data, containing thread_id and the
remaining background_work items in the same shape as the activity endpoint.
Side quests cannot be hidden and remain in the returned list. An empty or
omitted run_ids hides every dismissible item.
GET /api/bots/{bot_id}/threads/{thread_id}/wakes
Lists pending wakes created for this thread, for example through schedule_wake.
Wakes whose fire time has passed are omitted. The endpoint has no query
parameters beyond the shared bot_id and thread_id path fields. A caller who
cannot see the thread receives success=true with an empty data array.
GET /api/bots/{bot_id}/threads/{thread_id}/model-tier
This endpoint does not document any query parameters beyond the shared bot_id
and thread_id path fields.
It returns these top-level fields:
PUT /api/bots/{bot_id}/threads/{thread_id}/model-tier
When a thread sets
provider to openai while Azure OpenAI is the process-wide
default, Genesis routes that turn through the public OpenAI API using saved
OpenAI credentials instead of the Azure endpoint.
The response reuses the same fields as GET /api/bots/{bot_id}/threads/{thread_id}/model-tier, and adds requested_soft_limit_tokens, applied_soft_limit_tokens, clamped, clamp_reason, and acknowledged_exceeds_hard_limit. These let clients distinguish a requested value from the value persisted after safety clamping and tell the operator why a clamp occurred. A successful acknowledged override is reported explicitly rather than closing silently in the UI.
When model_tier changes, Genesis also advances the thread’s context-state cache epoch so the next turn rebuilds cached context metadata under the new tier without requiring a thread reset.
GET /api/bots/{bot_id}/threads/{thread_id}/share-info
This endpoint does not document any query parameters beyond the shared bot_id
and thread_id path fields.
It returns these top-level fields:
Resolving share info may read the thread’s meeting properties when cached metadata
identifies a live meeting, and may read the caller’s linked Slack identity for a DM
whose recorded participants do not include them.
Meeting strip control endpoints
Both routes require access to the target agent and the person who invited that agent to the live meeting. They return403 when the caller is not the inviter
and 409 when the thread has no live meeting.
POST /api/bots/{bot_id}/threads/{thread_id}/meeting/leave returns
data.left and data.message. It takes the agent out of the call. The
operation reads thread properties and may call Recall, write thread state, and
write to the meeting mailbox. A failed leave operation returns 503.
POST /api/bots/{bot_id}/threads/{thread_id}/meeting/voice accepts this body:
It returns
data.voice_muted. When the state changes, Genesis updates thread
state, pushes the change to the meeting stage page, and calls Recall.
Shared access-list body fields
The access-list routes also return
data.warning (string or null). It is set
when the thread used a sensitive connection and explains that invited users or
roles also need access to that connection; it names invitees whose connection
access could not be confirmed. Attempts to make a sensitive thread public are
refused.
Debrief endpoints
These routes store and retrieve saved debriefs for chat threads, missions, and Blueprint Journey aggregates. Each debrief record tracks the latest version incurrent, while earlier versions remain available by version number.
Debrief routes require an authenticated caller. Thread debrief access follows
the same thread-visibility rules as chat. Mission debrief access follows the
linked mission thread when one exists; if a mission has no bot/thread anchor,
Genesis falls back to owner-only access. Journey debriefs are owner-scoped
(the chain was filtered for the generating user’s visibility), require agent
access when
bot_id is set, and also verify thread ownership on
source_thread_id when present.Shared debrief record fields
Shared current-version fields
current and GET /api/debriefs/{debrief_id}/versions/{version_number} return
the same version-detail shape.
POST /api/debriefs
POST /api/debriefs returns a DebriefRecord. Thread sources produce the
original thread-style payload shape. Mission sources produce the mission-shaped
payload described below. Journey sources produce a JourneyDebriefPayload
aggregate and may auto-generate missing child mission debriefs for recorded
stages before harvesting evidence. With regenerate=true, Genesis regenerates
the recorded child mission debriefs from each mission’s current state before
assembling the Journey snapshot; unavailable mission data or a child debrief
causes the regeneration request to fail.
When regenerate is false, Genesis returns the existing current version when
the evidence fingerprint is unchanged and synthesis already succeeded (or the
journey is still in progress).
For a mission debrief, an unchanged record is also checked for provider state on
each recorded pull request in a Genesis repository that has not been reported
merged. A changed state creates a new version; an unavailable or inconclusive
provider read does not claim a state change. Each pull request check costs one
or two provider API requests and runs outside the event loop.
Equivalent overlapping Journey-generation requests share one in-flight result
when their normalized root project, owner, and regenerate value match. Genesis
allows up to 8 active generations per root project across distinct keys; a
request above that limit returns 429 with Too many Journey generations are already active for this project.
Debrief route parameters
GET /api/threads/{thread_id}/debriefs and GET /api/missions/{mission_id}/debriefs
both return debriefs: DebriefRecord[]. GET /api/debriefs/{debrief_id}/versions
returns versions, current_version, and total_versions.
Debrief payload kinds
Mission payload sections
Mission debrief payloads are top-to-bottom narrative summaries. These top-level fields can appear onpayload when payload.kind="mission".
Journey payload sections
Journey debrief payloads are evidence-first aggregates of a Blueprint chain. These top-level fields appear onpayload when payload.kind="journey".
File manager upload endpoint
The file upload route is mounted at/api/files in standalone and local
deployments and at /files in SPCS. A normal upload may use the existing
thread, bot, or chat form fields. Launchpad pre-start uploads additionally use
the blueprint_start_session_id field, which requires an authenticated user,
stores the file in a server-owned temporary session directory, and preserves
the exact uploaded bytes for checksum verification at Mission start. On a
Databricks App with durable uploads, the upload is copied to the bound Unity
Catalog volume before it is recorded; uploads larger than
files.max_upload_bytes (default 104857600 bytes / 100 MiB) return 413, and
a volume write failure returns 503. A disk-guard refusal returns 507
(insufficient_storage) when the upload would exceed the configured free-space
reserve or Genesis disk budget. The size cap does not apply to other deployments.
See Durable chat uploads on Databricks
for setup and restore behavior.
For signed-in uploads, Genesis records the authenticated caller as the uploader
instead of trusting the uploaded_by form value. Until an upload is associated
with a conversation, only its recorded uploader can reach it. Document-index
adds also check that the caller can open the selected source; see
Add a document.
File upload form fields
Each upload writes a
file.uploaded audit row. The actor is the signed-in
person; when no user context is available, the actor is the system user. The
optional uploaded_by form value is recorded separately and does not determine
the audit actor.
File manager file access endpoints
These routes are mounted at/api/files/... in standalone and local
deployments and at /files/... in SPCS.
POST /api/files/{file_id:path}/attach
The route returns
FileOperationResponse. For entity_type="thread", the
caller must have access to open the target thread; a denied or unjudgeable
thread returns 403. An upload still in a new-chat folder can be attached to a
thread only by its recorded uploader; another person cannot share that unclaimed
upload with a thread.
When the caller attaches their own _orphaned/ upload to a Mission they may
open, Genesis makes the upload readable to people who may open that Mission;
see Mission upload access.
On a Databricks App with durable uploads, the download route restores a missing
upload from the bound Unity Catalog volume after checking access. The first
download after a restart waits for that copy; it returns 404 if the content
is no longer available and 503 if the volume cannot be read. See Durable
chat uploads on Databricks.
Path-valued file IDs are resolved only inside the configured file roots; paths
outside those roots are not treated as files.
File manager deletion endpoints
These routes are mounted at/api/files/... in standalone and local
deployments and at /files/... in SPCS.
File deletion query parameters
Both delete routes return
409 when SimpleFileStorage protects an upload
referenced by a sent message and confirm is not true. They return 404 if
the file is not found and 500 for an internal error.
File manager markdown conversion endpoints
These routes convert Markdown to downloadable documents. They are mounted at/api/files/... in standalone and local deployments and at /files/... in
SPCS. The chat UI’s per-message Save as menu posts completed assistant
replies to the PDF, DOCX, and HTML routes; Markdown downloads are built
client-side without calling these endpoints.
All three routes accept multipart/form-data bodies.
Shared markdown conversion form fields
When PDF or DOCX conversion reads a repository file, the caller also needs
view access to the exact repository named by repo_id; see Git permissions.
Sandbox file endpoints
These routes serve files generated in sandbox sessions or stored under the configureddownloaded_files root and bot_git/repos. In container-based
deployments, Genesis prepares the mounted bot_git workspace on startup and
ensures repos/, worktrees/, and .genesis_runtime/ exist before files are
served.
Shared sandbox path parameter
Sandbox backend restrictions
The sandbox manager is mounted under/api/sandbox-manager. In Databricks
Apps, GET /api/sandbox-manager/backends omits the local backend, and an
explicit local start through POST /api/sandbox-manager/sessions/start is
refused with HTTP 400. The profile validation route
POST /api/sandbox-manager/profiles/validate-start reports the same backend
restriction in its validation errors. Use a remote sandbox backend instead.
Register an external sandbox instance
Before terminals can attach to a Railway service or an EKS pod connected by name, an administrator must register that instance to one owner. Registration requires an administrator’s own human sign-in; a PAT, app token, or agent token cannot make the attestation. UsePOST /api/sandbox-manager/instances/registrations:
An existing binding can move to another owner only with
rebuilt_clean, its
current expected_generation, and no terminal still running on the instance.
Railway registrations also queue legacy terminal sessions found in runtime records;
the next attach must confirm their removal before opening a terminal.
Successful responses return data with backend, instance_key, owner,
origin, state, generation, and queued_cleanups. The route requires an
administrator (require_admin). It returns 403 when the caller is not an
administrator or did not make the human attestation, 409 when a binding move is
refused, 422 for invalid instance or owner data, and 503 when the ownership
store is unavailable.
Sandbox session ownership
Every sandbox session belongs to the user who started it (metadata.user_id,
falling back to metadata.started_actor). Only that user, or a caller holding
manage_all_sandboxes, can reach it, on every backend: an agent’s sandbox_action
attach and exec, and the status, health, terminal-history, provenance, stop, delete,
rename and TTL routes. The terminal WebSocket applies the same rule on every
authentication provider. It identifies the caller the way that provider’s other
WebSockets do: the hosted identity, the verified auth0 / oidc token, the SPCS
ingress user for snowflake, the trusted proxy headers for proxy, and the signed-in
person for desktop. It refuses the connection before accept when no caller can be
identified, including auth.provider none with authentication enabled.
manage_sandboxes reaches only the caller’s own sessions. Another user’s session
is reported exactly as a missing one, so a refusal does not reveal that it exists: the
status, health, stop, delete, rename and TTL routes answer HTTP 404, and
terminal-history and provenance answer 200 with an empty history, exactly as
they do for a session id that has none. GET /api/sandbox-manager/sandboxes/{sandbox_id}/provenance
answers another user’s sandbox exactly as it answers an unknown sandbox id. A session
that recorded no owner is reachable only with manage_all_sandboxes.
GET /api/sandbox-manager/sessions, its stats, and the sandboxes on the Deployments
page list only the caller’s own sessions unless the caller holds
manage_all_sandboxes. Live session events behave the same way: the unified WebSocket
sandboxes events reach a session’s owner and manage_all_sandboxes holders only, and
an event naming no session reaches only manage_all_sandboxes holders. The same user
can reach one session from the dashboard console and from their own agent threads.
sandbox_action cleanup run by a caller without manage_all_sandboxes removes
only that caller’s own expired sandboxes and session records; ownerless orphan pods are
left for an administrator. The same applies to start with cleanup_existing or
cleanup_on_start. cleanup_namespace deletes every pod in a namespace and is refused
without manage_all_sandboxes. The sandbox TTL monitor still sweeps every user’s
sessions. Redeploying a session keeps its original owner (user_id and
started_actor), even when an administrator redeploys it, and records who redeployed
it as redeployed_by.
CLI terminal admin endpoints
These endpoints support the Pulse → CLI Workspaces admin view for Kubernetes-managed direct CLI terminal workspaces. Listing requiresVIEW_SANDBOXES; restarting or canceling a workspace requires
MANAGE_SANDBOXES. The endpoints return an empty successful listing when the
CLI terminal feature is disabled or when the configured runtime does not expose
Kubernetes workspace pods.
CLI workspace listing response
TheGET response includes live_count, the configured max_workspaces
ceiling, whether live metrics were available for the request, and a
workspaces array. Each workspace item contains:
Unified realtime WebSocket
Genesis exposes its multiplexed realtime socket at/api/ws/unified_v2.
This endpoint carries chat operations plus server-pushed entity events. To
receive thread-scoped server events such as thread_new,
thread_artifaqt_delta, or agent_action_request, clients send a subscribe
control frame on the unified socket.
While Genesis is starting, the handshake is refused with HTTP 503 and
Retry-After: 5; clients should retry after the indicated delay. If the ASGI
server does not support denial responses, Genesis closes the socket with code
1013 instead, which can appear to clients as HTTP 403 because the socket
was not accepted.
When auth.enabled is true and auth.provider is auth0 or oidc, the
client must send a bearer token in the Authorization header, in
Sec-WebSocket-Protocol as genesis.bearer, genesis.token.<token> (browsers), or, when
auth.allow_query_token is true, in the token query parameter. Connections
missing a required token are rejected before the socket is accepted with close
code 1008. Genesis verifies the token before using its claims for session
ownership: the signature is checked against the issuer’s JWKS, and the expiry,
audience, and issuer are validated. Forged or expired tokens therefore fail the
ownership check; a verified caller with MANAGE_ALL_SANDBOXES can still bypass the
session-owner comparison. A session that recorded no owner is reachable only with
MANAGE_ALL_SANDBOXES.
The live sandbox handle, injected runtime credentials, and output masking stay
with that owner; a different owner cannot claim the same session id.
For direct chat responses produced after Genesis routes a message to a bot
handler, the response
data echoes correlation metadata. bot_id echoes the
request’s bot target, thread_id echoes the request’s thread target when
present, and request_id is echoed exactly as sent when it is a non-empty
string. If the client omits request_id or sends "", Genesis generates a
request ID and returns it in the response so multiplexed clients can
correlate replies.Genesis also copies the original non-empty client request_id onto the
terminal message_processing_complete progress event for that turn. If the
client omits request_id or sends "", Genesis omits request_id from that
server-pushed completion event instead of inventing a new one there.Some message types that answer an earlier server prompt still require a
non-empty client-supplied request_id; those message-specific requirements
are called out below.Other server-pushed event frames keep their existing payloads, and malformed
messages rejected before routing still use the generic error envelope.send_message sent with mid_turn_delivery: "steer", it replies with
type: "steer_refused", success: false, and error_code: "STEER_REFUSED". The response
data includes bot_id, thread_id, and the refused user_message; the message was not
delivered as a steer. First-party chat clients keep it queued for delivery after the active
turn ends.
Idempotent send_message retries
WebSocket clients may include client_message_id in the data for a
send_message frame. Use the same non-empty ID (up to 128 characters) when
retrying that message. Genesis scopes IDs to the bot and thread. If the first
copy fails while being accepted, a repeat can proceed. When that copy is still
pending, Genesis waits up to 10 seconds for its outcome; if it remains pending
or was accepted, Genesis suppresses the repeat and sends a
message_send_duplicate frame with thread_id and client_message_id in
data. Accepted IDs are kept in a per-process, bounded in-memory cache for up
to one hour, so this is retry protection rather than durable exactly-once
delivery.
Unified WebSocket authentication parameters
Unified WebSocket connection parameters
subscribe control frame
Send a client message with type: "subscribe" and these data fields:
Example subscription for thread events from one bot stream:
subscribe_messages control frame
Send a client message with type: "subscribe_messages" and these data
fields:
After Genesis accepts a
send_message request for a thread, it also attaches
that WebSocket connection to the thread’s live message stream. Clients do not
need to wait for a separate subscribe_messages round-trip before the server
can deliver the accepted reply and its related progress events.
The sending socket also receives a message_sent acknowledgement with
data.sender_ack: true when the turn is accepted; clients can use it to
distinguish their own accepted turn before consuming streamed reply frames.For client-generated chat IDs such as
chat_* and litellm_thread_*,
Genesis treats an early subscribe_messages request as part of thread
materialization rather than an immediate missing-thread error. This lets
clients attach the live stream and backfill history while the backend thread
record is still being created.During that same thread-materialization window, the initial message payload
delivered on the unified socket can also report
model_tier: "" rather than
defaulting to main. Treat the empty string as an unset thread override
until Genesis has persisted the backend thread metadata.Repeated
subscribe_messages requests for the same bot_id / thread_id
pair on one WebSocket connection are idempotent. Genesis returns the
existing subscription_id instead of creating a second live subscription,
and when the server can reuse the original formatted payload it also reuses
data.initial_data.Duplicate subscription_started replies still echo the subscribed
thread_id at data.thread_id, so clients should treat that top-level
field as canonical for the acknowledgement and use
data.initial_data.thread_id only when the nested field is present.file_search applies the same Git and
repository visibility checks as POST /api/bot-git/v1/search. It searches only
repositories the signed-in person may view and excludes uploads folders the
person cannot access. A named repository the person cannot view is denied;
without named repositories, Genesis searches all repositories they may view.
Without authentication, it uses system_default_user;
with authentication enabled, a connection with no resolved person is refused.
Approve a plan card
GET /api/bots/{bot_id}/threads/{thread_id}/cards returns the thread’s cards only
to a caller who can open that thread; agent-use access alone does not reveal cards
from a private thread. The response includes
can_approve and cards: plan cards with card_id, kind, plan_number,
gist, state (open, replaced, or approved), and the actions an open
card offers. Only a caller allowed to approve through this API receives those
actions; other readers receive empty actions and can_approve: false. It also
includes presented_cards, up to the latest 20 presented cards, with their
card_id, card_type, title, summary, facts, status, and read-only
questions and option labels. mission_questions also lists the thread’s open
and recently answered questions from goal queues and in-chat question cards,
oldest first. Each entry includes question_id, source, question,
response_type, options (with label, description, and recommended),
recommended, reason, allows_other, status, answer, asked_at,
answered_at, read_only, and can_approve. A caller who cannot approve sees
these questions as read-only; an unreadable goal adds
mission_questions_unreadable (a message string) while the rest of the cards response remains
available. This read performs access checks, one thread-data read, and one
thread-property read for the goal, plus the thread-metadata existence check; callers
without thread access receive 403.
POST /api/bots/{bot_id}/threads/{thread_id}/cards/{card_id}/actions with
{"action": "approve"}, or "approve_with_load" on an onboarding plan, approves
that card as the signed-in person (a session or their personal access token) and
sends the turn its Approve and start button sends. The caller must be able to
open the thread; agent-use access alone does not permit action on a private thread.
403 refuses a caller without thread access or an agent credential, 404 a card
the thread never presented, and 409 a card that
was replaced, already approved, or that does not offer the action. The answer
names card_id, action, channel (api) and approved_by. The hosted MCP
gateway’s card_respond action does the same for a client signed in as a person.
The web chat also accepts explicit approval phrases from the person’s own message;
see Approving a plan without its button.
Onboarding approval metadata for send_message
The chat onboarding plan card sends its approval through
data.message_metadata.onboarding_start on the unified WebSocket
send_message frame. This is conditional metadata for the plan card’s
Approve and start button. It is not how a typed approval is sent: the server
binds that separately from the person’s message, as described in Approving a
plan without its button.
Genesis retains this metadata only when the
message is the kickoff generated
from these picks and the picks pass onboarding validation. Malformed metadata
or a kickoff that does not match it is dropped; the message still proceeds as
ordinary text. The plan card is the supported way to produce the matching
metadata and kickoff. For the user flow and chat tools, see Onboard raw
tables and
Onboarding intake tools.
Guided-start transcript metadata for send_message
The guided-start chat sends its card history in
data.message_metadata.launchpad_guide_transcript on the unified WebSocket
send_message frame. Genesis stores this metadata with the opening message so
the chat can rebuild the question-and-answer transcript when the thread is
loaded again.
The serialized transcript must not exceed 32 KiB in UTF-8. Genesis drops a
malformed or oversized transcript in full rather than trimming it; the message
itself still proceeds.
ask_user_for_secret event
When a thread-scoped tool call such as get_web_content(action="ask_user_for_secret") needs a stored credential, Genesis emits an event frame where:
data.entity_type = "threads"data.entity_id = "<bot_id>"data.event_type = "ask_user_for_secret"
data.data) uses these fields:
secret_input_response client message
Send a client message with type: "secret_input_response" and these data
fields:
When Genesis accepts the message, it replies with
type: "secret_input_response"
and returns the correlated data.request_id, a boolean data.resolved flag,
and the standard direct-response correlation fields described above. A
resolved: true response means the server found a matching pending request and
accepted the reply.
Genesis does not auto-generate a replacement request_id for this message
type. Blank or omitted values are rejected because the response must match an
outstanding ask_user_for_secret request.
secret_input_answered event
When a pending credential request is answered, dismissed, or stopped with its
turn, Genesis broadcasts this event to the person who was asked so their other
windows can close the same card. A new messages subscription also receives any still-pending
ask_user_for_secret prompts for that person and thread, with the remaining
timeout_seconds.
The event has data.entity_type = "threads",
data.event_type = "secret_input_answered", and these fields in data.data:
secret_input_timeout event
If an ask_user_for_secret request remains unanswered for 600 seconds,
Genesis emits data.event_type = "secret_input_timeout" on the same thread
stream.
The nested event payload (data.data) uses these fields:
Demo budget exhaustion on the unified socket
When demo mode is enabled,demo.allow_unlimited_budget is false, and
aggregate spend has reached demo.token_budget_usd, Genesis rejects
send_message, replace_last_user_message, and edit_message_and_resume on
the unified WebSocket before routing the turn.
The check runs only after the agent-access guard succeeds so unauthorized
callers do not see aggregate spent_usd / cap_usd figures.
Genesis replies with type: "subscription_error", error_code: "demo_budget_exceeded", and message text
Demo budget exceeded. Please contact sales to discuss a full deployment.
The nested details object includes:
For
replace_last_user_message, the budget gate runs before any rewind so a
blocked replacement does not remove the persisted last user turn.
For edit_message_and_resume, the budget gate also runs before any rewind so a
blocked edit does not archive thread history.
edit_message_and_resume client message
Send a client message with type: "edit_message_and_resume" to edit any prior
user message and re-run the conversation from that point. Unlike
replace_last_user_message (in-flight last turn only), this archives every turn
from the target node onward — messages are marked discarded, not physically
removed — then resends the edited text through the normal pipeline.
message_metadata.prover_context is a versioned, immutable subject for a Prover
chat. It must contain version: 1, a comparison with diff_hash,
source_snapshot_id, target_snapshot_id, delta_hash, and component_pair,
and, when the subject is used to stage a package, run_id and
pair_fingerprint so the captured evidence can be authenticated. It has a
scope with kind (comparison, issue_group, or finding), key, and
label, plus a members array. Each member requires review_id,
comparison_kind, and a relationship of new, remaining, changed,
regressed, or resolved; package staging additionally requires each captured
member’s finding_key, positive ledger_id, object_name, and relationship
to match the authoritative ledger and review population. Optional column and
requirement details may also be included. The array accepts at most 512
members and the complete sanitized object is limited to 256 KiB.
Genesis keeps the sanitized Prover subject from the thread’s first user message
when later turns provide different metadata, so follow-up requests continue to
refer to the original finding group. The subject is supplied to the model as
untrusted UI metadata: its fields are identifiers and observations, not
instructions.
If Genesis cannot sanitize a supplied prover_context, it rejects that value rather
than using it to identify a comparison. Resend valid Prover context to preserve the
intended subject; the chat does not substitute a comparison based on rejected metadata.
When auth is enabled, the caller must own the thread (same bar as forking).
Genesis refuses the edit while a tool is still executing (error_code = "tool_calls_active").
On success Genesis replies with type: "message_edited_and_resumed" and a
data object that includes:
Failures use
type: "edit_message_error" with error_code values such as
edit_target_not_found, edit_target_not_user_message, tool_calls_active,
edit_rewind_failed, thread_access_denied, or
edit_target_is_thread_history. The latter means the target is an earlier Slack
thread post stored as context, not a message the signed-in person sent; it cannot
be edited or resent.
On the first blocked message per thread, Genesis also emits an inline
agent_action_request with action_type = "demo_interest" and
action_data.trigger = "budget_exhausted" so the thread surfaces the
Schedule a Demo card (one-shot per thread, shared dedup with the in-flight
budget guard). Notifier failures after the budget error is sent do not change
the handled block response.
agent_action_request event
When a thread-scoped workflow needs client-side input such as OAuth
authorization, a personal-credential binding, or a Try Me demo-interest CTA, Genesis emits an event frame
where:
data.entity_type = "threads"data.entity_id = "<bot_id>"data.event_type = "agent_action_request"
data.data) uses these fields:
demo_interest action requests currently use these action_data fields:
credential_prompt action requests use these action_data fields:
For a Slack-origin conversation, Genesis also best-effort mirrors supported action cards
to the originating Slack thread. See Working with Slack-linked threads.
connection_form action requests use these action_data fields:
Genesis sends
agent_action_request to connected clients on the thread
subscriber stream rather than a separately user-targeted stream. This keeps
demo and no-auth browser sessions receiving the request even when
user-targeted delivery would not match.agent_action_response client message
Send a client message with type: "agent_action_response" and these data
fields:
When
action_type = "demo_interest", resolved responses may include these
result_data fields:
When
action_type = "demo_interest" and status = "resolved", Genesis uses
result_data to update Try Me lead-capture metadata server-side.
For action_type = "connection_form", a resolved response includes
connection_name, auth_type, test_passed (boolean or null), test_message,
and signed_in. Credentials are submitted by the dashboard connection form,
not included in result_data. A cancelled response means the person closed the
form without creating the connection.
For action_type = "oauth_connect", clients should still send
agent_action_response when they can so the thread UI can acknowledge the
result promptly. Genesis also applies a callback-side safety net: once the
OAuth callback persists the grant for the same user and saved connection, the
server resolves any matching pending OAuth wait even if the popup cannot send
the response back to its opener.
For action_type = "credential_prompt", the client submits the principal
through PUT /api/connections/{connection_type}/{name}/credentials/me rather
than sending secret values in the action response. After that bind succeeds,
Genesis resolves the matching pending credential wait for the user and
connection. Clients can still send agent_action_response to report the card’s
resolved, cancelled, or failed state to the thread.
agent_action_response_ack response
When Genesis accepts an agent_action_response, it returns
type: "agent_action_response_ack" with these data fields:
Successful acknowledgements also include the standard direct-response
correlation fields described above.
When
action_type = "demo_interest", this acknowledgement reflects transport-level acceptance of the client response frame. Try Me lead-capture follow-up runs separately and does not suppress the ack if later server-side processing fails.
If request_id is missing or blank, Genesis returns
type: "agent_action_response_error" with success = false,
error = "request_id is required", and data.error_code = "missing_request_id".
thread_new event
When Genesis creates a thread and notifies subscribers on the threads entity
stream, it emits an event frame where:
data.entity_type = "threads"data.entity_id = "<bot_id>"data.event_type = "thread_new"
data.data) uses these fields:
thread_artifaqt_delta event
When the most recent completed tool call changes thread artifacts, or when
Genesis needs clients to refresh phase-scoped thread state after that tool
completes, it emits an event frame where:
data.entity_type = "threads"data.entity_id = "<bot_id>"data.event_type = "thread_artifaqt_delta"
data.data) uses these fields:
artifaqts_delta is phase-scoped. Each entry in artifaqts_delta.phases uses
phase_id (string) plus inputs and outputs arrays. For Blueprint and
Document Flow threads, Genesis attributes non-blueprint tool outputs to the
currently active blueprint phase so clients can group updates by the active
phase instead of relying on the fallback "0" phase bucket.
For Document Flow replay, the same nested payload can include an optional
document_flow_snapshot object. It contains the current artifaqts, optional
phase_number and blueprint_name, and messages, a compact list of the
Blueprint tool calls and results needed to rebuild the flow.
Additional thread progress events
Genesis can also emit thread progressevent frames for clients that are
subscribed to the threads entity stream or already attached to a thread’s
live message stream. Thread-scoped delivery keeps Slack-linked and other
mirrored thread views receiving progress events even when the broader unified
entity subscription is filtered separately.
These events use the same outer envelope shape as thread_artifaqt_delta:
type = "event"success = truedata.entity_type = "threads"data.entity_id = "<bot_id>"
data.data) always includes these fields:
Supported progress event types
Top-level message_complete frame
Streaming clients should also handle a top-level message_complete frame as the
terminal signal for a sandbox turn. Unlike the progress events above, this frame
is not wrapped in {"type":"event"}. Its data.content is the definitive
assistant text for the turn, including when the live text stream produced no
proxy frame before the turn ended.
message_id and model fields are included only when available. request_id
is included when the original prompt supplied a valid request ID, and echoes it
so clients can distinguish this completion from an earlier turn on the same
thread. Clients should use content as the final displayed response and stop
waiting for the turn when type is message_complete.
A successful
POST /api/bots/{bot_id}/threads/{thread_id}/force-reset
request that actually clears stuck state also emits both
thread_stream_stop and message_processing_complete on the same thread
stream. Realtime clients can use those events to unwind stuck loading or
streaming indicators without reopening the thread.Optional progress-event payload fields
When
query_result is present, it can include:
When
event_type = "context_budget_refresh", the nested compression object
can additionally include fields such as usage_before_pct, usage_after_pct,
reduction_pct, strategy, reduction_scope, reason, phase,
progress_message, progress_pct, progress_phase, work_done,
work_total, summary_done, summary_total, and parallelism. Treat that
payload as a refresh hint and refetch
GET /api/bots/{bot_id}/threads/{thread_id}/activity or the relevant
context-budget endpoints (/budget for the panel card,
/budget-history when a modal is open) for authoritative state.
Log REST endpoints
Genesis exposes operator-focused log routes under/api/logs/.... These
endpoints require the access_config_panel permission.
GET /api/logs reads from the in-memory Pulse log buffer and returns a
formatted historical snapshot. GET /api/logs/download instead streams the
configured log file from disk, so it can include log content older than the
buffer-backed REST and WebSocket history views.
GET /api/logs/download
Genesis streams the current log file directly from disk. When
include_rotated=true, it also includes retained size-rotated copies such as
app.log.1 and previous runs’ app.log.<timestamp> files, oldest first,
separated by file-boundary markers in the response body. By default it includes
up to five older copies; rotated_files selects another count, up to 1000.
Because full log files can be multi-MB, Genesis allows only one active
/api/logs/download stream at a time. Concurrent download requests wait for
the current stream to finish instead of running in parallel.
GET /api/logs/errors/download
Genesis streams the dedicated error log from disk. This file captures
ERROR/CRITICAL records and any log line that carried an exception
traceback. Genesis rotates the file daily at midnight; rotated backups use the
suffix .<YYYY-MM-DD> (for example errors.log.2026-06-11).
When zip=false (default), Genesis streams only the current error log file as
plain text. When zip=true, Genesis packs the current file plus all retained
daily-rotated backups (oldest first) into a ZIP archive named error_logs.zip.
Error-log downloads share the same single-stream concurrency limit as
/api/logs/download.
Estate live-progress WebSocket
Genesis exposes the Prover theater live-progress channel at/api/ws/estate/live. The socket streams fine-grained, forward-only progress
events for estatechar runs (scan, contract compile, system diff, behavioral
validation, fold) so clients can follow a run live instead of polling a coarse
run summary. Every event is also persisted on the run row, so
GET /api/estate/runs/{run_id} and GET /api/estate/active-runs remain a
complete fallback when the channel is disabled or the socket drops.
The channel is gated by estate_char.live.enabled (default true). When
disabled, the server refuses the connection before accept with close code
1013 and clients should fall back to polling.
When auth.enabled is true and auth.provider is auth0 or oidc, the
client must send a bearer token in the Authorization header, in
Sec-WebSocket-Protocol as genesis.bearer, genesis.token.<token> (browsers), or, when
auth.allow_query_token is true, in the token query parameter. Connections
missing a required token are rejected before the socket is accepted with close
code 1008.
Every connection must also resolve to a verified caller with the
access_config_panel permission. Genesis checks this before accepting the
socket and closes callers it cannot authenticate or authorize with code 1008.
The same permission is required for log operations sent through the unified
WebSocket.
For each run, the live feed checks the caller’s current run visibility before
sending events. It trusts a decision for at most five seconds from when the check
began, then checks again; when access is revoked, new events stop within that
window. An event already handed to the WebSocket transport cannot be recalled.
If a check cannot be made, that event is withheld and a later event can be checked
again.
Estate live WebSocket connection parameters
At least one ofrun_id or pair is required. Connecting with neither, or when
the caller’s identity cannot be resolved, is rejected with close code 1008.
Estate live WebSocket close codes (before accept)
Estate live WebSocket server event types
Every server → client message is a flat JSON object withtype, run_id
(absent only on ping), ts (ISO-8601 UTC), and payload fields merged flat
onto the envelope (not nested under data).
Events for a single
run_id are delivered in emission order. Under
backpressure the server drops the oldest queued events (bounded by
estate_char.live.buffer_size, default 256); on a detected gap, re-fetch
the run via GET /api/estate/runs/{run_id} to resync.
Store-first liveness (headless and API runs)
A run launched outside the backend process (agent, script, or API path —launch_mode: "headless-script" on the run row) publishes its emit() events
into its own process’s in-memory hub, which the GUI-serving backend never sees.
The WebSocket consumer needs no protocol change: the server reconstructs the same
forward-only event stream from the persisted run store so the socket looks
identical to an in-backend run.
- Store-tailing pump — for each followed
run_idorpairmatch, whenestate_char.live.store_tail_enabledistrue(default), the server pollsstore.get_runeveryestate_char.live.store_tail_poll_seconds(default5) — not the socket keep-aliveheartbeat_seconds(default20) — and synthesizesphase,scan_progress,object_revealed,summary, anddoneby diffing consecutive summaries. Object names come from the boundedrecent_objectsbuffer in the summary (estate_char.live.recent_objects_buffer, default25); the exact running count always ridesscan_progress. A headless run is tailed from the store immediately. A backend-launched run keeps the pump dormant while in-process hub events are flowing and hands over only afterestate_char.live.store_tail_grace_seconds(default8) of hub silence, so live hub events are never double-delivered. Budget truncation is carried in the summary fields above; the store-tail pump does not synthesize per-objectscan_truncatedevents. - Mid-diff verdicts — when
estate_char.live.outbox_enabledistrue(default), a headlesssystem_diffrun buffersfamily_foundandelement_verdictevents into theestate_char_run_eventsoutbox; one shared backend tail task per followed run (not per connection) polls by watermark everyestate_char.live.outbox_tail_poll_seconds(default2) and republishes new rows into the live hub. Delivery is at-least-once — keep reducers forward-only and idempotent. Backend-launched diffs do not use the outbox (theiremit()already reaches the hub in-process). - Stale-run protection — the shared
estate_char.reconcile.stale_after_secondswindow defaults to2400seconds. A heartbeat keeps a running row alive, but a heartbeat or completion that arrives after reconciliation has closed the row cannot reopen it; inspect the run summary for any recorded late completion.
?run_id= and ?pair=
for the same run follows it once (one snapshot and one pump).
Estate live WebSocket client messages
The client may grow its subscription on the same socket (for example when a new run starts while the theater is already open):snapshot is not re-sent for these
subscriptions; future deltas for the added run or pair simply start flowing.
Any other inbound message is ignored.
Typical integration: call POST /api/estate/characterize (optionally after
GET /api/estate/discover-schemas to populate the schema picker), open
/api/ws/estate/live?run_id=<run_id> with the returned run_id, and drive
the theater from object_revealed and phase events. To run a mediated diff,
call POST /api/estate/system-diffs and follow the returned run_id or
pair_fingerprint on the same socket. To follow a migration pair across
characterize → diff → validate runs, connect with ?pair=<pair_fingerprint>
and/or send subscribe / subscribe_pair as each new run id appears in the
runs feed.
Log streaming WebSocket
Genesis exposes real-time log monitoring at/api/ws/logs.
When auth.enabled is true and auth.provider is auth0 or oidc, the
client must send a bearer token in the Authorization header, in
Sec-WebSocket-Protocol as genesis.bearer, genesis.token.<token> (browsers), or, when
auth.allow_query_token is true, in the token query parameter. Connections
missing a required token are rejected before the socket is accepted with close
code 1008.
Log WebSocket authentication parameters
HTTP request tracing header
Genesis includes anX-Request-Id header on HTTP responses. When the same
request produces log entries, that value can also appear as request_id in
the live-log context payload, making it easier to trace a failing API call
back to the matching Pulse log lines. HTTP request log context also identifies
the caller kind as app, system, or user. For routes whose template includes
{app_id}, it includes the canonical app ID as app_id; the path remains a
route template and no user ID is added.
Pulse clients typically send
subscribe_logs and then get_historical on
the same socket. Genesis queues matching live entries that arrive during that
bootstrap window and emits each entry once after the historical batch
returns, skipping duplicates that were already included in the snapshot.Log WebSocket message types
Genesis also continues to support
get_logs, unsubscribe_logs,
get_log_levels, and get_log_statistics on the same socket.
Log filter fields
Genesis accepts bothtimeRange and time_range in log-socket filter
payloads. Context filters are exact-match. module_path is prefix-match.
For historical snapshots, get_historical accepts an optional top-level
limit field. When omitted it defaults to 2000, and Genesis caps it at
2000. The legacy get_logs message continues to accept filters.limit with
the same cap.
Formatted log entry fields
Known live-log context keys
These keys are present incontext only when Genesis can resolve them for the
current unit of work.
Sandbox terminal WebSocket
Genesis exposes interactive sandbox terminal access at/api/ws/sandbox-terminal/{session_id}.
When auth.enabled is true and auth.provider is auth0 or oidc, the
client must send a bearer token in the Authorization header, in
Sec-WebSocket-Protocol as genesis.bearer, genesis.token.<token> (browsers), or, when
auth.allow_query_token is true, in the token query parameter. Connections
missing a required token are rejected before the socket is accepted with close
code 1008.
Each terminal binds to one ownership-ledger tenure. Genesis forwards its input
only while that tenure’s lease holds, and keeps terminal history with that
terminal rather than sharing it across terminals.
On Windows servers, the local Docker terminal and Railway terminal are
unavailable because they require a POSIX pseudo-terminal; Kubernetes-backed
terminal sessions are not affected.
For azure_aci sessions, each WebSocket connection opens a new Azure exec session. Genesis
uses the dimensions in the panel’s opening resize frame; if no resize frame arrives within
two seconds, it opens at 24 rows by 120 columns. Azure Container Instances fixes the terminal
size for that exec session, so later resize frames do not change it. When available, persisted
terminal history, including commands previously run by the agent, is sent as binary frames
before the JSON session_ready frame with the container_id. New shell output follows as
binary frames. If opening a terminal fails because the host does not support pseudo-terminals,
Genesis sends a JSON session_error frame with reason: "pty_unsupported", final: true,
and relaunch: false before closing the socket. Its message starts with
Interactive terminals are not available here: and includes the host error. If attaching to
the container fails with an OSError (for example, Docker exec cannot start on the host or the
container is unreachable), the frame has reason: "container_unreachable", final: true, and
relaunch: true, with the message This sandbox's container is not reachable from here. A
final error stops the chat terminal panel from automatically reconnecting to that target. If
Azure Container Instances reports that an Azure container group is stopped or no longer
exists, Genesis sends reason: "stopped" or "not_found", with final: true and
relaunch: true, and retires the ended session; a stopped group is deleted best-effort.
For Railway, an unavailable or uncleanable service sends a final session_error
with reason: "railway_attach_refused" and relaunch: false; fix the service or
cleanup condition before trying again.
Sandbox terminal connection parameters
Direct CLI terminal WebSocket
Genesis exposes a direct terminal for the caller’s own Claude Code workspace at/api/ws/cli-terminal.
The connection is accepted only when cli_terminal.enabled is true. With
authentication enabled, the caller must also resolve to a user with the
use_cli_terminal permission; the bearer token is read from Authorization, or from
the token query parameter when auth.allow_query_token is true. The token may be
either a JWT or a Genesis Personal Access Token (PAT) beginning with gp_. JWTs are
verified against the issuer’s JWKS and checked for expiry, audience, and issuer. PATs
are validated against the credential store and resolved to their owner’s user_id.
Both token types go through the same use_cli_terminal permission check. Invalid,
forged, expired, revoked, unknown, or owner-unverifiable credentials are rejected
before the socket is accepted with close code 1008. With authentication disabled,
the feature toggle is the only gate, as the deployment has no caller identity to check.
Inside a Databricks App, the configured workspace runtime must be kubernetes;
the unset runtime defaults to docker, which the App cannot run. If a client
reaches the socket with Docker selected, Genesis accepts the socket, sends an
error JSON frame explaining that cli_terminal.runtime=kubernetes is needed,
then closes it with code 1008.
CLI terminal connection parameters
After the socket is accepted, text or binary frames are sent to the PTY as terminal
input and terminal output is returned as raw bytes. A text frame containing
{"type":"resize","cols":N,"rows":N} changes the PTY size. A resize control
frame with invalid values is dropped rather than sent to the PTY; all other text frames
are treated as terminal input. The workspace uses named tmux sessions, so the Claude Code
process can continue when the client disconnects and be reached again by reconnecting
with the same session name.
Clients that connect with caps=status receive JSON status control frames while the
workspace is attaching. The first frame is {"type":"status","message":"Starting your workspace…","capabilities":["status","redraw"]}; while a cold workspace pod is still
starting, Genesis sends a liveness frame every 3 seconds with a message such as
Waiting for the workspace pod to be ready… (Ns). These frames are sent before the PTY
byte stream begins, and older clients that omit caps=status receive none, so they do not
print protocol JSON into the terminal.
After the client has received the advertised capabilities, it can request an input-free
tmux repaint by sending the control frame {"type":"redraw"}. This refreshes the attached
pane without sending a keystroke to the running process. The server also accepts this
control frame from clients that already know the protocol. A recognized control frame
that cannot be acted on is dropped rather than written to the PTY; text that is not
recognized as a control frame is treated as terminal input.
Terminal session ended control frame
When the terminal reader stops, Genesis sends each attached client anerror control
frame and then closes the WebSocket with close code 1011 and reason terminal session ended. The frame has the following shape:
message explains whether the terminal was closed on the server, the terminal reader
stopped, or the workspace running the terminal was restarted or removed. Clients should
display the message and let the user reconnect to start a new session. A client that does
not handle the control frame still receives the WebSocket close.
Git repository and file endpoints
These endpoints power the Git Browser and Git-backed file delivery APIs. Structured repository operations are mounted under/api/bot-git/v1/.... File
and archive delivery routes are mounted under /api/git/... and are also
available at /git/... for compatibility links generated elsewhere in Genesis.
Export-related
download_url fields, plus chat and thread attachment
url/download_url fields for Git-backed files, target these same
Git file-serving routes and are returned as root-relative paths on the
current origin. In standalone and local deployments they resolve under
/api/git/...; in SPCS they resolve under /git/.... Mutable
repository files may also carry an optional v query parameter derived
from the file’s modification time and size so refreshed payloads bypass
stale browser caches after same-path overwrites.The compatibility
/git/... routes are also used by the React Git Browser
in SPCS. The same router is mounted at /git/... and /api/git/...; only
unprefixed /git/... paths participate in SPA routing. For top-level browser
navigations to /git/{repo_id} and non-download
/git/{repo_id}/{file_path:path} URLs, Genesis serves the Git Browser SPA
shell (index.html) instead of raw file bytes or JSON — including when the
path happens to match a repository file. The SPA fetches file content through
/api/git/... after it renders, so deep links such as “Open in Git” load the
Git Browser instead of a raw 404 or an inline file response.When authentication is enabled, an anonymous browser opening one of these
URLs with GET and no Authorization header also receives the SPA shell.
The shell contains no repository content; subsequent repository requests
still use the normal authentication and Git permission checks. Requests
with a rejected Authorization credential are not treated as anonymous
page opens.Genesis detects these navigations with the Sec-Fetch-Dest: document header
when present. Subresource requests (for example img, iframe, or fetch)
that send broad Accept headers are not routed to the SPA shell. Clients
that omit Fetch Metadata fall back to the Accept: text/html check.API callers always receive file or JSON responses from /api/git/..., even
when they send Accept: text/html. Download requests (?download=true or
the /download route) also skip SPA routing on either mount prefix.When authentication is disabled, Git RBAC checks do not block requests on
these routes.
403 Permission denied when the caller lacks that permission.
With Git RBAC enabled, direct repository routes also enforce access on the
exact repository they serve: read routes require repository view, and write
routes require edit or manage where applicable. repo_id must match an
existing repository directory exactly; a symlink alias or different casing
does not select the repository it points to, and an unknown ID is not treated
as a repository.
For the shared GenesisApps repository, repository access alone does not expose
every app’s files. Authenticated readers also need any one of view, refresh,
edit, or manage on the app that owns a path. Git Browser listings and search
omit paths the reader cannot access, and direct reads treat them as not found.
Operations that carry a whole folder or the repository bundle require access to
every app they include. See GenesisApps access control.
In the uploads repository, the Foundry estate crawl’s inventory is
connection-scoped. A repository-root archive omits crawl folders the viewer
cannot read. A folder archive that includes one, or a move or copy whose source
is inside or contains one, is refused as not found; this also applies to
cross-repository copies so the crawl files cannot be carried into a location
the viewer can access.
Git permissions
Shared Git parameters
Read-only Git endpoints
GET /api/git/my-space
The response contains
home (or null when not requested), others (or null
when not requested), others_exist when the caller’s home is included, and
others_truncated when other users’ homes are included. Each repository reports
its org/name, default branch when present, and owned branches. Branch records
include their originating conversation and last-used time; the caller’s branches
also include unpushed-commit and changed-file counts when Git can read them.
Other people’s branches are read-only and do not include branch status.
Cost: provenance queries and local Git reads, up to three per branch (six where
agent Git checks repository configuration first). The reads run on a worker thread
and do not access a remote Git host. Other people’s homes are only read when
include_others=true, and the result is capped.
GET /api/git/{repo_id}/archive and
GET /api/git/{repo_id}/{folder_path:path}/archive exclude housekeeping
paths by default: .archives/, Python caches (__pycache__, *.pyc,
*.pyo, *.pyd), OS artifacts (.DS_Store, Thumbs.db), node_modules/,
virtual environments (.venv/, venv/), .env and .env.*, .git/, and
microapp runtime scratch directories (.microapp_home/, .microapp_state/,
.microapp_venv/).GET /api/git/{repo_id}/{file_path:path}
Serves one repository file inline or as an attachment. The convenience
/download route is equivalent to ?download=true.
POST /api/git/media-ticket
Issue a short-lived signed URL for a video or audio file so a browser media
element can request it without attaching a bearer header. The caller must be
signed in, hold view_git, and be allowed to read the named file; Genesis checks
repository access, path confinement, and uploads conversation visibility before
issuing the ticket. The ticket is valid for about 15 minutes and authorizes only
a GET of that file as the requesting person. The file route checks access again.
The response contains
url, relative to the API root, and expires_at, a Unix
timestamp after which the link is refused. The URL can be used to stream the file;
adding download=true downloads it instead.
GET /api/bot-git/v1/repos/{repo_id}/bundle
Returns a Git bundle as application/octet-stream. Omit since to create a
full-history bundle, or pass since=<commit-sha> to stream only commits after
that SHA.
If the requested since SHA already matches the repository HEAD, Genesis
returns 304 Not Modified with no response body. Both 200 and 304
responses include X-Bundle-Head so clients can track the current repository
head commit across incremental syncs.
Genesis rejects shallow repositories before building a bundle because partial
history cannot produce a complete cloneable bundle. Re-clone the repository
without --depth, or run git fetch --unshallow on the existing clone, before
retrying the request.
GET /api/bot-git/v1/{path:path}
When the resolved path is a directory, this route returns a JSON directory
listing. When the resolved path is a file, it streams the file content
instead.
Directory listings include dot-prefixed files and folders (for example
.env, .gitignore, and .cursor). Genesis omits Git metadata from
listings. Direct
requests into .git paths through this Git Browser route return 403 with
Access denied: .git directory is off-limits. Git-backed file-serving routes
do not serve Git metadata, and mutating repository routes reject paths into it,
including paths reached through symlinks. ZIP archive downloads always exclude
Git metadata (see the archive endpoints note above).GET /api/git/edit-offers/{request_id}
Returns the edit-choice offer for the signed-in user it was raised for. The card
uses this route to read the choices and current state; a pushed notification
contains no choices and is not authoritative. The response includes request_id,
state (offered, answered, applying, applied, failed, or expired),
and action_data with the repository, default branch, available branches, and
the suggested new branch name. Once answered, choice describes the answer;
result identifies the branch and base when applied, and error describes a
failure. An open offer may include choice_error or branch_name_refusal when
an answer needs correction. The route costs one in-memory read. It returns 404
when the question is closed or belongs to another user.
GET /api/git/edit-offers
Lists the branch-choice offers still waiting for the signed-in caller in one conversation.
The required query parameter is thread_id (non-empty). The response is
{"offers": [...]}; each offer carries request_id, action_type, thread_id, bot_id,
the raised action_data reference, and optional raised_at. The offer data is limited to
the user it was raised for; other users receive an empty list. Cost: one in-memory scan of
the offer store.
Mutating Git endpoints
POST /api/bot-git/v1/repos
Creates a repository under the Git Browser root. The request body accepts these
fields:
The response includes the effective
repo_type read from the repository after
creation. A 400 response is returned when repo_type is not storage or
git, or when a git repository is requested for a repository ID reserved as
storage-only. Existing repository IDs return 409. When scope is shared and
neither owner field is supplied, the caller is recorded as the repository owner.
POST /api/bot-git/v1/repos/{repo_id}/access
Updates repository access metadata and, when requested, its role grants. The
Authorization follows the shared repository-access rules.
A write is reported as successful only when the record read back confirms it; a
failed or partial write returns an error rather than a success response.
The request’s grants field is an optional array of grant objects. Omit the
field or send null to leave the existing role grants unchanged; send an empty
array to remove all role grants. A grant object accepts role_name or
principal and an actions string array; available access levels include
view, edit, and manage.
For example, this changes the scope without replacing existing role grants:
POST /api/bot-git/v1/repos/{repo_id}/upload-batch
Uploads multiple files as a multipart form. The endpoint requires manage_git
and repository edit access. Managed repositories accept writes only when the
resolved view is the caller’s WIP view; use source=wip or the corresponding
managed-view parameters when selecting that view.
The response contains
results, in file order. Each result includes the requested
path, a status of uploaded, conflict, skipped, or failed, and optional
saved_path and error fields. When successful files are uploaded to a managed
WIP view, commit_hash contains the single local commit created for the batch;
commit_error is populated when the files were saved but that commit failed.
If any file has a collision with the default error choice, the batch returns
conflict results without publishing the batch; retry with an explicit collision
choice for each conflict.
Git example requests
Bot management endpoints
These routes are mounted under/api/bots/....
Genesis refuses agent lifecycle changes that would leave no active agent
holding
manage_agents. Affected routes return HTTP 409 with
error_type last_agents_manager and an error message naming the
surviving manager(s) and advising you to grant manage_agents to another
active agent first. Attempting to delete built-in Adam or Eve returns
HTTP 409 with error_type protected_core_agent instead of
soft-deleting them.GET /api/bots/{bot_id}/hive/threads returns the standard success and data
wrapper. data.enabled is false and data.threads is empty when the agent has
no fast model. Otherwise each thread entry includes thread_id, title,
where, link, last_active, summary, and summarized_at; a Slack link is
included when available. The results are limited to conversations the caller
could already open. Cost: one config read and, when enabled, a thread listing
plus props reads for up to 40 recent conversations. The route is read-only.
POST /api/bots/{bot_id}/hive/thread-summaries
Read stored summaries for selected threads visible to the caller. The route is
read-only and makes no model call. It checks agent access, lists the caller’s
accessible threads, then reads stored props for listed threads that may have a
summary (up to 60 distinct thread IDs). Cost: one permission check and roles
lookup, an in-memory thread listing, and at most 60 props reads.
The response uses the standard
success and data wrapper. data.summaries
maps each returned thread ID to its stored summary:
Private-thread summaries are returned only when the caller may open that
thread. A caller without access to
bot_id receives HTTP 403.
Requests that change a version-owned agent definition, including instruction
reset, return HTTP 409 with error_type protected_core_agent.
GET /api/bots
By default, Genesis returns only active agents the caller can access. When
include_disabled=false (the default), Genesis filters out DISABLED agents
before applying per-agent access checks.
The response returns
success plus a data array. Fields relevant to list and
deactivation-aware UIs include:
GET /api/bots/instruction-blocks/manifest and GET /api/bots/{bot_id}/instruction-blocks/manifest
Both routes return success plus the same grouped manifest of toggleable instruction
blocks that the agent create and edit UI can render without hardcoding block names.
The unscoped route accepts manage_agents or create_agents. The bot-scoped route
accepts global manage_agents or management rights on the path’s bot_id, so a
role with rights on a specific agent can load its edit dialog without global
agent-management access.
The bot-scoped route requires this path field:
Each block entry contains:
GET /api/bots/deactivated-retention
This admin-only endpoint returns one retention summary per deactivated source
agent, ordered newest first by updated_at.
Shared bot path parameter
GET /api/bots/{bot_id}
Returns success plus a data object. Fields relevant to description and instruction editing include:
Pending Slack install URLs and state are included only for a viewer with
manage_users while that install may still enable email recognition. Other
viewers receive those values as null; the Slack status route follows the same rule.
If a bot record has no stored instruction_render_mode, Genesis normalizes the
response to structured.
GET /api/bots/{bot_id}/clone-starter
This endpoint does not document any request body or query parameters beyond the shared bot_id path field.
It returns success plus a data object with:
For Eve and Adam,
data.clone_starter_instructions is the built-in default persona plus the built-in dynamic instruction block bodies, joined with blank lines in their normal order. For other bots, Genesis returns the stored bot_instructions value after removing any internal [CUSTOM] storage marker.
GET /api/bots/{bot_id}/summary
This endpoint does not document any request body or query fields.
It returns success plus a data object with these top-level fields:
data.hero.role_statement is populated from bot_intro only. When no
description is stored, the field can be null.
POST /api/bots
The caller needs manage_agents or create_agents. A caller with only
create_agents receives management rights on the agent created by this request,
but cannot edit unrelated agents unless separately granted access.
Description- and instruction-related request fields include:
On success Genesis returns
success, message, and the created bot_id.
The requested agent ID must be unused even by deactivated agents. If an active
agent already has it, the response is 409 and asks for a different name. If a
deactivated agent has it, the response is 409 and directs you to reactivate it
from Deactivated agents on the Agents page or choose a different name.
PUT /api/bots/{bot_id}
When
status changes, Genesis applies a lifecycle transition rather than updating only the database row:
DISABLED— Genesis persists the disabled status, evicts the agent’s live runtime sessions, and rejects new work routed to that agent.ACTIVE— Genesis persists the active status, rebuilds a usable runtime session before returning success, and returns the agent to normal routing. If runtime startup fails (for example missing LLM configuration), Genesis rolls the status back toDISABLEDand returns an error; the agent remains deactivated until reactivation succeeds.
bot_instruction_blocks_disabled entries must match the
manifest name values returned by GET /api/bots/instruction-blocks/manifest or
GET /api/bots/{bot_id}/instruction-blocks/manifest. Genesis only keeps optional
block names that apply to the target bot: shared optional blocks for custom agents,
plus the matching Eve- or Adam-specific optional blocks for those built-in agents.
DELETE /api/bots/{bot_id}
This endpoint uses the shared bot_id path field plus these body fields:
This is a soft-delete. Genesis sets the agent status to
DISABLED and then
applies the requested thread-retention behavior.
- With
thread_policy="keep_with_agent", Genesis leaves thread files and metadata on the deactivated agent, removes those threads from the thread-search index, and records a deactivated-retention summary. - With
thread_policy="move_to_agent", Genesis requires an active destination agent other than the sourcebot_id, moves thread files and metadata to that agent, reindexes them there, and records the resulting retention summary.
success and message.
POST /api/bots/{bot_id}/reset-instructions
This endpoint does not accept a request body. On success Genesis returns success and message.
For Eve and Adam specifically:
- In structured mode, reset restores the default persona text and keeps the current
bot_instruction_blocks_disabledselections. - On the legacy editing path, reset restores the default persona text, switches
instruction_render_modeback tostructured, and clears the disabled-block list.
GET /api/bots/{bot_id}/_debug/rendered-instructions
This diagnostic route requires manage_agents and returns 403 unless ENABLE_BOT_INSTRUCTIONS_DEBUG=true is set before startup.
Each
block_breakdown row contains:
Context Control endpoints
These routes are mounted under/api/context-control/.... They back Agent
Center capability controls and the Thread Details model/context drawer, and
they require agent access to the target bot_id.
GET /api/context-control/capabilities/{bot_id}/catalog reflects AgentSkills imports and deletions immediately after a successful POST /api/agent-skills/import or DELETE /api/agent-skills/{skill_name} call. Clients do not need to wait for the capability-registry reconcile interval before refreshing the catalog.DELETE /api/context-control/threads/{bot_id}/{thread_id}/active does not accept a request body. On success Genesis returns success: true plus data.cleared to indicate whether any thread-scoped context state was removed.
Shared context patch body fields
These fields are accepted by the preview/apply/defaults patch routes:Policy-disallowed tool groups or skills now return
400 with structured
details instead of being silently stripped from the patch. Bot-default
updates also return 400 when active_tool_groups would auto-load more than
12 tool groups by default. Operators can raise or lower that auto-load cap
with CONTEXT_DEFAULTS_MAX_TOOL_GROUPS. There is no default cap on the total
number of tool functions those groups contain — the provider function cap is
the only ceiling, and it is enforced at thread preflight (409).GET /api/context-control/bots/{bot_id}/defaults response includes
data.fixed_tool_groups: a sorted array of tool groups when Genesis fixes the
agent’s tools, or null otherwise. For an agent with fixed tools, a
PUT /api/context-control/bots/{bot_id}/defaults request that changes
active_tool_groups, tool_access_mode, or tool_access_list returns 400;
details.rejected_fields names the fields that cannot be changed.
Thread preview/apply requests that name a policy-authorized channel-bound tool group
whose runtime adapter cannot dispatch also return
400. Their structured details
include unavailable_tool_groups, mapping the group name to the runtime reason; this
is distinct from policy_rejected_tool_groups. For the corresponding persistent
bot-default behavior, see Data Agent Creation Tools.Tool-group policy checks (including
tool_access_mode="all") validate against
the loadable universe: the capability catalog union the live runtime
tool-group registry. MCP-backed groups that register after the startup catalog
reconcile (for example lineage_tools) remain activatable and assignable to
defaults without spurious not_in_policy rejections while the catalog
snapshot is still catching up. After validation, tool_access_list and
active_tool_groups are persisted exactly — including explicit empty
allowlists or denylists — even when the searchable capability index is
temporarily empty or stale. Partial bot-default patches that omit policy
fields leave existing tool_access_mode, tool_access_list, and
active_tool_groups unchanged.Agents calling the
set_bot_context_defaults or set_bot_capability_policy
tools in Data Agent Creation Tools
receive the same structured rejection payload in the tool response details
field (for example rejected_skills and access-mode context), not only the
collapsed error string returned by the HTTP middleware for dashboard clients.
When a thread preflight exceeds the provider function cap, the
409 response’s
details includes provider_limit, active_function_count, over_by, and a
remediation object. remediation.message gives the recovery guidance;
suggested_groups_to_disable lists optional groups with tool_group,
function_count, and just_requested; required_by_active_skills lists groups
required by active skills with tool_group, function_count, skills, and
just_requested_skills. When previous state is available, just_requested
marks a newly active group and just_requested_skills names newly active skills
that require the group. Required groups are not offered for removal. If the
always-on and skill-required functions alone exceed the limit, the suggestions
are empty and the message explains why removing optional groups cannot help.
When the only suggested optional group is the one just requested and no skill
was just requested, the message says to leave that group out instead of removing
other groups. If active skills require groups, it also advises deactivating a
skill that is not needed to release its required groups.
Context budget read endpoints
These routes do not accept request bodies. On success each returnssuccess: true plus a data object.
/budget and /budget-details resolve data.context_limit_tokens through the same pipeline so both endpoints always report the same limit for a thread. Genesis resolves the limit in order: the live trimmer when the thread is in-process (its soft limit already folds in per-request, per-thread and per-bot overrides and the install-wide cap guardrails.context_protection.soft_limit_cap_tokens, whose legacy environment variable is GENESIS_THREAD_TRIMMER_SOFT_LIMIT_TOKENS), the thread’s persisted soft_limit_tokens property when set, the resolved model’s hard context limit, or — only when all three steps fail — a conservative 200000 default. data.context_limit_source records which step produced the limit:
GET /api/context-control/threads/{bot_id}/{thread_id}/budget
Returns the always-polled context-budget payload for the Thread Details panel. To keep large or heavily compressed threads responsive, Genesis omits heavy modal-only arrays from this response:
data.compression_historycarries summary fields (count,total_event_count,visible_event_count,latest_event,average_reduction_pct) but not the per-event list.countmatchesvisible_event_count(rows returned).total_event_countis the monotonic lifetime compression count for the thread (from persistedcompression_history_event_countwhen set).data.thread_cost_summarycarries thread cost totals but notpricing_details.estimated_cost_usdis known-priced cost: calls without a known price add nothing, so whenunpriced_call_countis greater than zero, render the cost as partial beside that count. The optionalbackground_tokensfield is an integer ornull;nullmeans unknown, never zero. Its usage-category split follows the built-in Cost & Usage cube’stop_threads_by_cost_v1view.pricing_details_available(boolean, defaultfalse) signals whetherGET .../budget-historywill return per-model pricing rows, andunavailable(boolean, defaultfalse) istruewhen a dependency required to determine the totals failed; in that case the numeric fields are schema-default zeros and clients must render them as unknown rather than as a zero cost.
data fields include bot_id, thread_id, source, context_limit_tokens, context_limit_source, current_usage_pct, current_total_tokens, usage buckets such as system_prompt and conversation, compression_history, projected_next_call, last_actual_call, and thread_cost_summary totals (input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cache_write_1h_tokens (the one-hour part of cache_write_tokens), cache_total_tokens, cache_rate_pct, background_tokens, estimated_cost_usd, unpriced_call_count). The payload also includes reactive_effective_ceiling_tokens, the ceiling targeted by reactive compression after applying the resolved hard limit and configured or default soft limit, plus reactive_effective_ceiling_source identifying how that ceiling was resolved.
The same payload reports thread active-runtime accounting. active_runtime_seconds combines
agent turns with async runs started by the thread, counts overlapping time once, and excludes
waits. agent_runtime_ms is time in agent turns; async_runtime_ms is the total tracked
async-run time; async_only_runtime_ms is async time outside agent turns; wait_excluded_ms
is excluded waiting time; and async_run_count is the number of tracked runs.
async_breakdown (default []) contains kind, label, run_count and runtime_ms per
run type. async_spans_after_last_turn (default []) contains {start_ms, end_ms, still_running} intervals in epoch milliseconds after the last stored agent turn, used to
avoid counting a live turn’s overlap twice. active_runtime_includes (default "")
describes what the runtime total includes. Every *_ms value and async_run_count
defaults to 0 and is a nonnegative integer.
Within thread_cost_summary, cache_rate_pct is a number or null; it is
null when no input usage was measured, not a measured zero-percent rate.
GET /api/context-control/threads/{bot_id}/{thread_id}/budget-history
Returns modal-only history payloads. Clients should call this lazily when opening the Pricing Used for Estimated Cost or compression-history modals, not on every panel refresh.
GET /api/context-control/threads/{bot_id}/{thread_id}/budget-details
Returns request-breakdown buckets for the request-details modal (for example system_prompt, tool_specifications_effective, tool_calls_and_results, and related entry counts). This route is separate from /budget-history and is not trimmed for modal lazy loading. It omits message content from rows the signed-in reader may not read, including hidden run notices, across conversation, summaries, system rows, and tool calls/results; their tokens remain in the corresponding totals. data.context_limit_tokens and data.context_limit_source use the same resolution pipeline as /budget (see the table above). It also returns data.reactive_effective_ceiling_tokens and data.reactive_effective_ceiling_source, which expose the ceiling actually targeted by reactive compression after the hard and configured or default soft limits are resolved.
Document index management endpoints
These routes are mounted under/api/indexes/... and require the manage_document_indexes permission.
Shared document-index path parameters
DELETE /api/indexes/{index_name}
This endpoint does not document any request body fields.
It returns these top-level fields:
GET /api/indexes/{index_name}/delete-impact
This endpoint does not document any request body or query fields.
It returns success plus a data object with these fields:
GET /api/indexes/operations/{operation_id}
This endpoint does not document any request body or query fields.
It returns these top-level fields:
Additional admin endpoints
These routes live outside the Blueprint and Git groups but are part of common RBAC, agent-import, and app-import flows.Support shell
The Snowflake Native App support shell is locked until a signed-in Genesis administrator obtains a challenge and presents Genesis support’s signature. The challenge and unlock routes returnCache-Control: no-store. Only a human
Genesis admin may request a challenge, unlock, or lock the shell; agents and
machine tokens are refused. See Native App support shell access
for the operator steps and Snowflake application-role grant.
User avatars
POST /api/avatars/upload uploads the signed-in user’s PNG, JPG, JPEG, GIF, or
WebP image (maximum 2 MB). DELETE /api/avatars removes that user’s avatar;
GET /api/avatars/{user_id} serves an image or returns 404 when none exists,
and GET /api/avatars/{user_id}/info reports whether one is present. On
Databricks Apps with durable storage enabled, uploaded avatars survive host
replacement. See Deploying Genesis on Databricks — Durable SQLite stores.
If durable storage cannot record avatar deletion during DELETE /api/rbac/users/{user_id},
Genesis returns 503 and does not delete the user; retry the request.
Configuration profile names used with /api/config/profiles/{name} must be
plain file names: they cannot start with ., or contain /, \, or ...
Restart warning endpoints
POST /api/admin/restart-notice accepts target_at (ISO 8601 with a timezone),
expected_downtime_minutes (integer from 0 to 240, default 5), and optional
reason and contact strings of at most 200 characters. contact defaults to
the person who set the notice. A past or out-of-range target, or invalid downtime,
is refused; setting a notice never schedules or performs a restart. The admin
response contains data with the notice’s notice_id, target_at,
expected_downtime_minutes, state, created_by, created_at, reason, and
contact. GET returns the pending notice or data: null; DELETE returns the
cancelled notice or data: null when none was pending.
GET /api/restart-notice requires a signed-in caller and returns banner details:
target_at, expected_downtime_minutes, state (pending or overdue),
set_by, contact, and reason. It returns data: null when no warning is
pending. This route supplies the signed-in GUI banner; the public health response
does not disclose the notice’s text or who set it.
GET /api/rbac/users response fields
The response contains success and a users array. A caller with view_users
but not manage_users receives directory entries containing only the first four
fields below. A caller with manage_users receives the additional administration
fields, including SCIM and group-role provenance.
GET /api/rbac/roles response fields
Each role in the response includes seeded_permissions (string[]), the
permissions granted to that role by the deployment’s RBAC seed file and
reapplied at startup. The array is empty when no seed-file permission applies.
POST /api/admin/export-state
Streams application/x-tar with Cache-Control: no-store, private. The archive
is full-fidelity (no secret scrubbing) and contains metadata.json, a
consistent SQLite backup as genesis.db, and directory trees bot_storage/ and
bot_git/. Repository .git directories are stored under _dotgit_ arcnames
(the golden-image build renames them back). Apply a downloaded archive locally
with uv run import-state while the Genesis server is stopped.
When packing bot_storage/ and bot_git/, Genesis omits regenerable microapp
build artifacts: any member whose path includes a .microapp_venv,
.microapp_home, or __pycache__ directory component is dropped, pruning the
whole subtree. Authored source next to those directories is still included;
virtualenvs are rebuilt on provision or first app start. For a workspace export
that can optionally include packed virtualenvs, use
POST /api/admin/export-microapps with include_venv=true.
The export also omits the top-level bot_storage/upgrade-summaries/ directory.
It contains the exporting installation’s post-upgrade-advisor baseline and
summaries, which should not be carried into a golden image and treated as the
new installation’s own upgrade state.
It likewise omits the top-level bot_storage/demo/ directory, whose
user_signups.csv holds the exporting installation’s own demo sign-ups (names,
emails, Auth0 subjects, companies). Each installation creates its own
header-only sign-ups file on first use.
When durable GenesisApp state is available, the export restores each registered
app’s kept state into its local workspace before building the archive. An app
whose workspace is not on disk, whose runtime is active, or whose state cannot
be restored is not restored by this step; a restore failure is logged and does
not prevent the export. Restoring state can add catalog checks and one volume
download per state file to the export time.
This endpoint remains the full-fidelity tar export for the golden-image
pipeline. For incremental snapshots in the Helm chart’s PVC layout, use the
uv run export-state CLI described in Incremental object-store snapshots.POST /api/admin/state-snapshots
Queues a full-fidelity, incremental snapshot of this instance to an s3:// or
gs:// destination and returns HTTP 202 with success: true and a job
record. The
request validates the destination and master key before it queues the job. For
SQLite metadata, it also checks the available space needed for the database
copy. Snowflake-mode instances have no local database for that check; Genesis
converts their Snowflake metadata to genesis.db while the exporter runs. If
that conversion fails, the job fails after the server has stopped and the
instance starts again. After the response is sent, Genesis stops the server,
runs the exporter while the state is quiescent, and starts the server again.
The server may therefore be unavailable briefly while the snapshot runs; poll
the job instead of retrying the request. See State Snapshots and
Migration for the Snowflake
migration workflow and conversion report. If a container restart aborts an
export, a later request to the same destination can resume from the incomplete
snapshot; see State Snapshots and Migration
for what is reused and how abandoned attempts are cleaned up.
The caller must hold all six permissions: access_config_panel, view_agents,
view_users, view_connections, manage_secrets, and
manage_all_connections. The confirm value must equal this instance’s name.
Example request:
GET /api/healthcheck and
GET /api/health/live remain available. GET /api/admin/state-snapshots/current
returns unauthenticated progress for the running job, including the overall
progress percentage, file counts, bytes, speed, estimated time, current tree,
and trees left once the export has listed them; other requests receive
503 with Retry-After: 30. Once the server restarts, use the authenticated
job endpoints below for the destination, transfer statistics, snapshot ID,
object count, byte count and any error.
Completed snapshots can be restored into an empty Helm PVC with the chart’s
restore.from setting; see Restoring an object-store snapshot
for the deployment configuration and verification behavior.
GET /api/admin/state-snapshots
Returns success: true with a jobs array, newest first. Each job has a
status of pending, running, succeeded, failed, or aborted, plus its
request and completion timestamps, current phase, transfer statistics, and
result fields when available. A job can include warning when Genesis cannot
confirm that no stored secrets remain under a bound previous master key. The
snapshot still completes, but restoring it requires that key to be bound too;
wait until re-sealing leaves no secrets under the previous key and take a new
snapshot to avoid that requirement. Genesis retains the newest 50 finished job
records.
Each job may also include last_progress_at (an ISO 8601 timestamp) and
memory, the container’s cgroup memory values recorded with that progress
report. memory can contain current, max, peak, and anon byte counts;
oom and oom_kill event counters; and unlimited: 1 when the container has
no memory limit. Values that could not be read are omitted, and either field
can be null.
progress is the overall copy progress once every tree has been listed. It
contains percent, files_done, files_total, bytes_total, bytes_sent,
speed (bytes per second), eta_seconds (null before progress is measurable),
the current tree, and trees_left. When the exporter receives an external
stop signal, the job records stopped_at and stop_signal; the next server
reports the job as aborted with the stop time and the last progress point.
If Genesis restarts while a job is unfinished, the next server marks it
aborted and sets error to an explanation based on the last progress record.
When progress exists, the explanation includes its time and phase, and may
include the memory values and transfer count. These values describe the last
progress report, not necessarily the moment the container stopped; nonzero
memory event counters alone do not prove that memory ended the job. Check the
pod’s last state and events (for example, with kubectl describe pod) to
identify what ended the container. For an aborted job with a recorded progress
time, finished_at is that time; otherwise it is when Genesis detected the
unfinished job.
GET /api/admin/state-snapshots/{job_id}
Returns success: true with one job record using the same fields as the list
response. A missing job ID returns 404.
GET /api/admin/state-snapshots/restore-verification
Returns success: true and a verification object. The call has no parameters
and requires all four permissions listed above. It returns 400 when the
instance stores metadata in Snowflake rather than genesis.db. For the
restore-verdict meanings and recovery steps, see Verify the restore.
POST /api/admin/environment-snapshot/export
Returns a timestamped application/zip download named
genesis-environment-snapshot-<UTC timestamp>.zip. The archive is assembled in
memory and is not written to deployment storage. Genesis also returns
X-Genesis-Snapshot-Export-Id, a unique identifier for the export, and marks the
response Cache-Control: no-store, private with Pragma: no-cache.
The caller must hold all four permissions: access_config_panel, view_agents,
view_users, and view_connections. The endpoint does not broaden access to
any of the domains it inventories.
The ZIP contains this fixed file set:
The export contains no credentials, secret values or raw secret references; no
conversation, mission, SQL, tool, log, attachment or database content; and no
email addresses, usernames or session identifiers. It can include operator-chosen
skill, agent, connection, role and blueprint names, hostnames, account
identifiers, and other non-secret configuration values, so treat it as
customer-confidential diagnostic material rather than an anonymized export or a
backup. A section that is unavailable is represented with
available: false and
a reason; a collection failure aborts the export instead of producing a partial
archive.
GET /api/rbac/roles surfaces the same top-level workspace permissions used
by the authenticated UI. Role payloads can therefore include permissions
such as view_apps, view_context_graph, view_deployments,
view_flows, view_scheduler, and view_sandboxes, which drive primary
workspace visibility when authentication is enabled. Role payloads can also
include opt-in permissions such as view_shared_role_resources, which lets
members of the same team-style role see each other’s missions and apps
without manual invitations; view_all_blueprints and
manage_all_blueprints, which grant blueprint-wide access without
per-blueprint grants; and the category-scoped PAT permissions
(access_pat_connections_databases, access_pat_connections_git,
access_pat_connections_cloud, access_pat_connections_pipelines,
access_pat_connections_tools), which control PAT-class saved connection
modes such as pat, api_token, and api_key for connectors in each
category.
Built-in roles do not include view_shared_role_resources by default.GET /api/rbac/permissions returns success plus a permissions array.
Each permissions[] item includes name (string), description
(string | null), and extended_description (string | null). The short
description is what the Config → Users & Roles permissions panel
renders under each permission name; extended_description, when present, is
shown as a hover or keyboard-focus tooltip via a ? icon next to the
short line. Permissions without a server-side description are displayed in
the UI as readable text derived from the permission name. No RBAC permission
is required beyond authentication.GET /api/rbac/microapps returns success plus a microapps array. Each
microapps[] item includes app_id (string), title (string),
published (boolean), created_by (string | null), and tags
(string[]). Genesis normalizes tags to non-empty strings so API clients
can offer tag-based bulk selection without additional cleanup.Current user permissions
When Access Preview is active for an admin caller,
roles and permissions
reflect the request-scoped preview role set (from the UI or
X-Genesis-Access-Preview-Roles), and is_admin is false because the
built-in admin role cannot be included in preview. user_id always returns
the caller’s persisted identity.
For the built-in user role’s source-contract grant, see the
RBAC in Genesis → User.
Agent-memory endpoints
These routes back the per-agent memory documents surfaced in chat. When person memory is enabled,GET responses also include read_only: true for a document
that is now backed by person memory; the legacy memory editor cannot change that document.
Use user_memory_action in chat to ask the agent to remember, change, or forget something.
RBAC read endpoints
Most admin read routes here requiremanage_users. GET /api/rbac/users and
GET /api/rbac/users/{user_id}/roles also accept view_users; the user listing
returns directory fields only when the caller lacks manage_users. Agent-keyed
path identifiers must be the exact, case-sensitive bot_id (see Agent identifier
validation below).
The one-time startup backfill for Adam access on legacy built-in user roles is described in the RBAC Practical Guide.
Agent sharing endpoints
These endpoints let a person with management rights on one agent share it with people or roles without replacing a role’s complete agent list. The read endpoint is available to anyone who can use the agent. Candidate and change endpoints require management rights on that agent; a room policy that excludes the agent also blocks those operations.
For
POST, send {"kind":"user","id":"<user_id>"} or
{"kind":"role","id":"<role_name>"}. sharing_list is managers or
users; principal_kind is user or role. An added person must be a stored
user and an added role must exist. admin cannot be added because it already
manages and uses every agent; the built-in user role cannot be a Manager
because every account holds it. Adding a role as a User follows the same guards
as changing that role’s chat access. An already-present grant is unchanged.
GET /api/agents/{agent_id}/sharing returns success and data with
agent_id, managers, users, created_by, everyone, and can_manage.
Manager and User entries each contain kind, id, and label; created_by
contains creator user entries, which also count as Managers. Admins and holders
of global manage_agents are not listed as individual Managers. everyone
indicates that the built-in user role can use the agent. The candidates
response’s data contains users (user_id, display_name, email) and
roles (role names).
The two /api/rbac/.../agents summary routes require manage_users. Their
data contains manages and uses arrays of {agent_id, via_role} entries,
plus all_agents. via_role is the role through which a user receives a grant,
or null for a direct grant; all_agents is true for an admin or a holder of
manage_agents.
GET /api/rbac/group-role-mapping returns success and data with the
effective entries, explicit mapping object, explicit_source (file,
environment, or app_config), and read_only. Each entry has group,
role, source (default or explicit), and default_role (or null).
Administrators save editable mappings through
PUT /api/config/advanced/value with path: "auth.group_role_mapping";
deployment-provided environment or file mappings are read-only in the app.
GET /api/rbac/group-role-mapping/workspace-groups returns success and
data.available plus data.groups; it reads with the signed-in admin’s
Databricks workspace token, and available is false when no workspace group
list can be supplied.
The room-policy response contains role_name, restricted, allowed_agents,
allowed_rooms (id and nullable name), unknown_rooms, and
unknown_agents. Unknown room IDs and agent names are retained in the policy;
they are reported separately so they can become valid later.
Default roles response fields
GET /api/rbac/settings/default-roles accepts this optional query parameter:
The response includes
success and these fields:
In
GET /api/rbac/bots, roles are roles assigned to the agent itself;
chat_roles are roles granted chat access. open_to_everyone is true when
the built-in user role can reach the agent, including the fallback that lets
the user role reach every agent except Eve when its agent list is empty.
The built-in admin role can always chat regardless of chat_roles. A direct
person grant or management rights are additional access paths not listed in
chat_roles; see RBAC Practical Guide → Agents.
Role agent access write endpoint
PUT /api/rbac/roles/{role_name}/agents
Returns
RoleAgentAccessResponse with success, role_name, and agent_ids.
App-grant behavior is covered in the
RBAC Practical Guide → Agents.
Inherited app-view cleanup endpoint
This admin-only endpoint previews or removes legacy agent-built appview
grants. For the startup cleanup, selection criteria, and grants it may remove,
see the RBAC Practical Guide → Agents.
POST /api/rbac/apps/inherited-view-cleanup
Returns
success, dry_run, the applied created_before timestamp, and
grants[]. Each grant contains app_id, nullable app_name, role_name, and
created_by_agent. An unavailable RBAC, app registry, or managed-source
registry returns 503 without removing grants.
Pending role grants
Pending grants let an administrator assign roles to an email before the person’s first sign-in. When the person first signs in with that verified email, Genesis assigns exactly the granted roles instead of the default roles for new users. On an auth-proxy deployment, a first MCP bearer-token sign-in can also create the person’s account from an open grant; see the RBAC guide. All three routes requiremanage_users.
POST /api/rbac/pending-grants
The response contains
grant with grant_id, lowercased email, roles,
created_by, created_at, expires_at, and expired. An expired grant gives
no roles. An empty, non-ASCII, or non-single-mailbox email, a missing or unknown
role, or an expiry in the past returns 400; an email already belonging to an
account returns 409.
GET returns grants with the same fields. DELETE returns the standard
success response; an id that is no longer unconsumed returns 404.
Role room-policy write endpoints
PUT accepts allowed_agents (agent references such as agent:<name>) and
allowed_rooms (room IDs), each defaulting to an empty list. Unknown room IDs
and agent names are kept and returned as unknown_rooms and unknown_agents;
a future room or agent can make them valid. Built-in roles cannot carry a room
policy. Both writes require an existing role and return the role-policy response
described in the RBAC read endpoints.
Agent-management RBAC write endpoints
These endpoints manage per-agent editing grants and creator ownership. A person with management rights on an agent can also chat with it; these endpoints do not change the role-based Chat grants.
Role-scoped writes require an existing role; a missing role returns
404. When
replacing a role’s agent Chat or Manage grants, each newly added ID must exactly match
a stored agent or the request returns 400. IDs already present in that same grant
list are not revalidated, so an existing grant to an agent whose stored row is gone can
remain unchanged.
Agent chat access write endpoint
This endpoint replaces the role grants that control who may start chats with one agent. Admins always have access; excludeadmin from roles. A role list
that omits user restricts access to the listed roles and admins. If the
built-in user role has no agents configured, it already reaches every agent
except Eve, so configure its agent list on the Roles tab before restricting an
individual agent.
PUT /api/rbac/agents/{agent_id}/chat-roles
Returns
AgentChatAccessResponse with success, agent_id, roles (the
roles holding a chat grant), and open_to_everyone (whether the built-in
user role can reach the agent). The operation updates the agent lists of
roles that gain or lose access.
Agent connection profile write endpoint
POST /api/rbac/agents/{bot_id}/connection-profile
Returns
AgentConnectionProfileResponse with bot_id, role_name, granted, revoked, defaults_set, removed_roles, protected_roles_still_granting, and role_created.
Revoking a profile role from an agent uses the existing DELETE /api/rbac/bots/{bot_id}/roles/{role_name} route (or the agent-editor UI, which calls it when you uncheck a profile and click Apply). Assigning a profile role uses POST /api/rbac/bots/{bot_id}/roles. Both write routes validate bot_id the same way as the read routes below.
Agent identifier validation
Agent-keyed RBAC routes require the exact, case-sensitivebot_id as returned by GET /api/bots. Display names (bot_name) are not identifiers — passing a display name or a case variant of a known bot_id returns 404. UI-created agents store a uniqueness suffix on bot_id (for example, display name Cary → Cary-k7m2x9); use that full id in RBAC URLs and API calls, not the display name alone.
When the agent is not found, Genesis can include a Did you mean: ...? suggestion in the error detail when it finds close bot_id matches (for example, a wrong-case input).
Routes that validate the agent path parameter:
Shared RBAC read path parameters
Global RBAC tool-policy endpoints
These admin routes requiremanage_users and back the system-wide tool-family
controls shown in Workspace Policies → Tool Permissions.
Workspace policy read and write routes also support SQLAlchemy metadata
databases, alongside the legacy database connector.
The code execution tools endpoints were previously called high-risk tools.
GET /api/rbac/high-risk-tools and PUT /api/rbac/high-risk-tools/disabled
still work as deprecated aliases of the code-execution-tools paths, with the
same request and response.
Shared global tool-policy response fields
TheGET list endpoints return these top-level fields:
Each tool entry in
tools includes:
Shared global tool-policy write field
PUT /api/rbac/code-execution-tools/disabled accepts this request body field:
Admin audit log
Mutating RBAC routes (user/role lifecycle, role assignment matrices, bot-role mappings, workspace policy toggles under/api/rbac/settings/...,
and /api/rbac/code-execution-tools/...) and
advanced-config write routes (PUT /api/config/advanced/value,
PUT /api/config/advanced/values, and reset endpoints) append best-effort rows
to the ADMIN_AUDIT_LOG metadata table. Successful PAT creation and revocation,
service-credential saves, and SCIM token rotations and revocations also append
best-effort rows. These additional events record who acted and relevant
non-secret metadata; they never include bearer token values, token hashes, or
credential values. Slack integration changes also append events for
slack.tokens_saved, slack.bot_deployed, slack.bot_undeployed,
slack.app_level_key_set, and slack.allowed_users_updated, and an agent’s Slack
tools append slack.bot_deployed, slack.bot_undeployed, slack.bot_state_reset and
slack.allowed_users_updated, naming the person the agent acted for. Teams credential
changes append teams.credentials_updated when saved values change. These
integration events identify the person who made the change when available;
Slack token values and the Teams password are not recorded. Teams credential
events include masked old and new values, while Slack allowed-user events
include the old and new allow lists. SCIM token actions are also recorded in
SCIM_AUDIT_LOG.
Changes to the Slack home-workspace list and an agent’s per-workspace email
recognition append slack_identity.home_workspaces_changed and
slack_identity.email_trust_changed. If a setting write fails after its change
event was recorded, Genesis appends the corresponding
slack_identity.home_workspaces_change_failed or
slack_identity.email_trust_change_failed event. A new agent’s email recognition
enabled by its Slack OAuth install uses audit source slack_oauth_install.
Decisions made with an Action Review card in Slack also record
action_review.decided_in_slack with source: "slack",
target_type: "action_review_proposal", and the proposal ID as target_id.
The details include whether it was approved or rejected and the Slack user,
workspace, channel, and click timestamp.
Flow schedule events can be retrieved with GET /api/admin/audit-log; event fields and attribution are summarized in Process Scheduler Tools.
Manually revoking admin with DELETE /api/rbac/users/{user_id}/roles/{role} or
deleting a user with DELETE /api/rbac/users/{user_id} returns HTTP 400 if it
would remove the last person able to sign in holding admin.
Revoking a role from an agent (DELETE /api/rbac/bots/{bot_id}/roles/{role_name}),
revoking a role from a user or agent principal
(DELETE /api/rbac/users/{user_id}/roles/{role_name}), removing
manage_agents from a custom role (PUT /api/rbac/roles/{role_name}), or
deleting a role (DELETE /api/rbac/roles/{role_name}) can also return HTTP
409 with error_type last_agents_manager when the change would leave no
other active agent holding manage_agents. Grant the permission to another
active agent first, then repeat the change.
Each row includes action, actor_user_id, actor_email (when the caller is
a human admin), target_type, target_id, JSON details, source (typically
api for REST), and timestamp. Advanced-config events record the config path
and value type only — never the submitted value.
An administrator-requested fresh run of infer_relationships records
relationship_inference_fresh_run with the signed-in caller’s actor_user_id
and actor_email, target_type: "relationship_findings", and the new findings
ID as target_id. Its source is infer_relationships; details contains the
snapshot, profile, and pass-1 findings IDs plus fk_set_check_width and
fk_check_concurrency. The audit write is required: if it fails, the fresh run
does not start.
Gateway setting changes made from Config → Agent Gateways are also visible
through these read-only audit-log endpoints; see the
Admin Audit Log guide
for the recorded action and change details. If a gateway settings update cannot
save one or more values, the request reports an error and those settings keep
their previous values; other settings that saved in the same update are still
applied.
Creating, changing, or removing a dataset refresh schedule through the dataset
API or an agent’s dataset_tools also records a schedule.created,
schedule.updated, or schedule.deleted event. These rows use
target_type: "schedule" and the dataset refresh job ID as target_id;
created and updated events include the old and new trigger in
details.changes, while deleted events include the removed job in
details.deleted_job when available. A row is written only after the scheduler
accepts the change, and no row is written for an unchanged trigger or a job
that was already absent. Agent events include bot and thread attribution when
available. Filter GET /api/admin/audit-log by target_type=schedule and
action_prefix=schedule to find these events.
Successful GenesisApp changes through the Apps API and apps_action are also
recorded best-effort. The action names are microapp.created,
microapp.deleted, microapp.started, microapp.stopped,
microapp.restarted, microapp.deployed, microapp.undeployed,
microapp.renamed, microapp.metadata_updated,
microapp.ownership_transferred, microapp.access_granted, and
microapp.access_revoked. These rows use target_type: "microapp" and the
app ID as target_id. Agent-tool rows include bot and thread attribution when
available. details can include operation context such as runtime type,
deployment backend and target, access roles and privileges, or ownership
changes; the details object is masked before it is stored. A start is recorded
only when the call starts the runtime. For apps_action, a stop is recorded
only when the target runtime was running or starting. A restart through
POST /api/apps/{app_id}/restart or POST /api/apps/{app_id}/remote/restart
records details.kind (local or remote) and, for a remote restart, the
deployment backend. A local restart through apps_action also records
details.run_source, using the selected run source or the runtime target kind
when no run source is set. Metadata changes to emoji, published, or
ttl_seconds through apps_action list the changed field’s old and new values
under details.changes; as with renames, no row is recorded when nothing
changed. If a CREATE with replace_existing unregisters the old app and then
fails during creation or managed-artifact registration, the old app’s
microapp.deleted event is recorded with details.via: "replace_existing"
and partial-failure details.
Granting or revoking role access to a dashboard
(POST /api/dashboards/{dashboard_id}/access/grant and /access/revoke) records
dashboard.access_granted or dashboard.access_revoked with
target_type: "dashboard". If granting dashboard access also adds the
view_apps permission to a role, Genesis records a separate role.updated
event for that role with the permission change in details.changes. Replacing
a repository’s role grants
(POST /api/bot-git/v1/repos/{repo_id}/access) records
repository.access_updated, and changing its scope, owner or undeletable flag
through the same route records repository.access_scope_updated with the old
and new values in details.changes; both use target_type: "repository". These
rows name the person who made the change and list, in details.added and
details.removed, the [role, privilege] pairs actually added or removed (up
to 100 each, with added_count and removed_count). A request that changes
nothing records no row.
Bot audit: details.
Admins can read these rows through the dashboard (Config → Admin Audit Log)
or the read-only endpoints below. Both require access_config_panel. For action
names, source taxonomy, column definitions, and example SQL, see
RBAC Practical Guide → Admin audit log.
GET /api/admin/audit-log
Returns
success: true with data containing:
Each
items[] entry includes:
GET /api/admin/audit-log/{audit_id}
Returns
success: true with data.item using the same fields as one items[]
entry from the list endpoint.
Admin storage
All routes below requireaccess_config_panel. They back Settings →
Configuration → Storage. Response bodies use the standard success and data
envelope. Measuring and cleanup requests are audited.
kind is one of temporary_files, old_logs, unused_environments,
unused_app_environments, context_graph_clones, orphaned_worktrees, set_aside_agent_folders, or
deleted_app_files. See Storage Management
for the defaults, schedule, and cleanup safety rules.
The retention endpoints above require
access_config_panel. A retention run
deletes items only when the newest complete snapshot holds them; a successful
preview’s token is required to run exactly the reviewed list. A restore is
available only while its snapshot remains at the configured location.
GET /api/admin/storage/items accepts kind (thread, upload,
repository, mission, app, dataset, document_index, skill,
blueprint, or backup), and optional owner (user id or email) and scope (personal,
shared, role, or system). Threads and uploads require view_all_threads
in addition to access_config_panel. The server lists the full content type and
looks up owner labels before returning the newest 1,000 matches.
POST /api/admin/storage/items/sizes takes an items array of 1–500 objects
with kind, item_id, and optional bot_id (for example,
{"items":[{"kind":"thread","item_id":"...","bot_id":""}]}). The response returns measured_at and
items in request order, each with kind, item_id, bot_id, state, and
size_bytes (set only for state: "measured"). Other states are no_files,
not_separate, too_large, not_reached, unreadable, and not_found.
The listing and disk reads run off the event loop, within one
storage.usage_scan.budget_seconds slice (30 seconds by default). A request
returns 403 for threads or uploads without view_all_threads, and 409 when
another item-size measurement is running.
For cleanup-preview items, size_source: "files" means the review sized the
item from its files (for a restorable item, from the snapshot copy it checked
against those files); "measurement" means the latest disk measurement supplied
the size, and null means no size is available.
POST /api/admin/storage/cleanup/preview takes user_ids, roles,
created_from, created_to, and kinds. At least one user or role and one
kind are required; both dates are inclusive UTC calendar days. Its response
contains a token, snapshot details, recoverable, unheld, and kept
groups, and integer undated (default 0), the count of selected people-owned
items whose creation date is unknown and therefore cannot be selected by any date range. Each group
lists at most 500 items, while counts cover the full selection. The preview
lists every selected type, checks selected threads and missions against the
newest snapshot, and hashes covered files; it deletes nothing.
POST /api/admin/storage/cleanup/jobs takes that same selection, the
preview’s token, confirmation: "delete", and optional delete_unheld
(false by default). delete_unheld: true is the separate confirmation to
permanently remove items no snapshot holds. The background job records each
item’s result. A wrong confirmation returns 422; changed review, no items to
delete, or an active cleanup returns 409. GET .../jobs/{job_id} returns
the item-level results; POST .../resume retries only items still open on
that job (404 when the job is unknown). These cleanup routes also require
view_all_threads when the selection includes threads.
Storage keeps
Signed-in users can keep their own threads or missions from retention; an administrator withaccess_config_panel can keep or release any item. These
requests are audited.
The usage response’s
data has measurement, measuring, progress,
out_of_date, next_start_at, automatic, and disk. measurement is the
last complete report (never a partial walk): it contains started_at,
finished_at, unreadable_folders, total_bytes, total_files, by_type,
by_person, by_role, metadata_db_bytes, and disk_used_bytes (used space
when that measurement finished, or null when unknown). progress is null
when no unfinished walk is kept; otherwise it includes started_at,
updated_at, files_read, folders_read, estimated_percent (at most 99,
or null without a previous measurement to estimate from), and
finished_reading. Progress counts are not totals. out_of_date is null
while the report is current; otherwise it gives reason (old or
disk_changed) and used_change_bytes (current used space minus measured used
space, or null when unknown). next_start_at is the earliest time a due
automatic measurement may start, or null; automatic reflects
storage.usage_scan.enabled. Disk data contains total_bytes, free_bytes,
used_percent, both warning thresholds, and low. The cleanup overview’s
data contains kinds, running, and jobs; a kind includes its setting,
human-readable description, preview count and size, and last_run. With
white-labeling on, the description uses the configured product name.
Durable storage restore proof
These admin-only endpoints report what declared state came back after a restart and confirm deletes that the catch-all storage sweep refused. The report is a read-only status check; it does not set the server’s lasting degraded status. When durable storage is disabled (including deployments off the Databricks App), the report returnsenabled: false with verdict not_enabled and
the durability proof performs no I/O. The report also reads disk space on every
deployment with one statvfs call when available. A proof is run at most once
at a time, reused for 15 seconds, and may issue up to four Lakebase catalog
queries plus one lstat per kept catalog row. While a previous master key is
bound, it also streams every live durable-tree manifest, issuing a catalog
query per page of rows.
GET /api/admin/person-memory/import-report
Returns success: true with data holding what a pass of the import would do, and writes nothing: no receipt and no folder. It reads every source of both old stores on a worker thread. It holds counts, agent keys, opaque person keys and file-name fingerprints, and never note text, a user id or a file name.
Each counts object holds
found and exactly one place for each source: would_import, already_imported, changed_since_import, empty (a doc with nothing in it, which is normal; a pass writes its receipt and no page), superseded (a file whose row exists, or a second file for one pair), agent_unloaded, orphan_agent, forgotten (in the forgotten record or an old deletion marker), deleted_account (a file whose id has an account’s shape and has no account now; judged afresh on every pass), identity_unverified (an account lookup failed; tried again) and unreadable. over_cap counts those due to land past the native page cap. Notes reconcile as source_notes = importable_notes + duplicate_notes + the values of skipped_notes (per reason). ignored_categories counts categories the old store never showed.
POST /api/admin/person-memory/import
Runs one pass now, whatever rooms.person_memory_import says unless it is off, and returns the same fields with dry_run: false. It copies deletion markers into the forgotten record, then imports up to rooms.person_memory_import_per_tick pairs to the private tier only. The old stores are only read. Repeat it until remaining is 0; a second run with nothing new writes nothing and says nothing_to_do: true.
GET /api/admin/durability/report
Returns success: true with data containing:
The report compares the durable catalog and restore records with this instance’s
state roots. A
missing item is kept remotely, expected on this disk, but absent
locally; lazy entries, pending entries, and whiteouts are not missing.
For process-relative checks, this process begins at the start of its boot restore;
when that timestamp is unavailable, its process start time is used. This keeps a
previous process’s shutdown flush from being treated as state from this process
during an overlapping redeploy.
lost_known identifies state recorded as lost, while conflict means a local
copy displaced restored bytes. secret_refused reports a secret by name only.
A root with unconfirmed refused deletes is degraded; confirming it does not
mark those deletes as missing. The proof also checks live durable-tree catalog
rows against this process’s restore outcomes, and checks listed git-durable
repositories for a restored .git directory. A failed tree restore is reported
as lost_known; a tree whose restore has not yet been recorded is pending, or
lazy_absent when it is lazily restored. For a listed repository with a valid
path, an absent .git directory is pending while git restores are due and
missing otherwise; an invalid path is missing. Git declarations are marked
not_checked when git durability is off.
GET /api/admin/code-isolation
Returns success: true with data describing the isolation self-check and
failures recorded in this server process. The report is in memory and starts
over when the process restarts. For where administrators see this information,
see Workspace Policies. The isolation levels
are described in the code executor guide.
POST /api/admin/durability/confirm-deletes
Confirm only the refused delete set currently represented by the report’s
refusal value. If the refused set changes, reload the report and confirm its
current value. The next full sweep walk records the confirmed deletes.
Returns
success: true with data.root and data.confirmed_deletes. The
confirmation is audited with the acting admin’s identity.
POST /api/bots/import/validate
The caller needs manage_agents or create_agents. Validation does not create
an agent; the permission controls whether the caller may use the import flow.
POST /api/apps/import/validate
Response fields (in addition to
success, valid, app_id, id_collision, suggested_id, errors):
POST /api/apps/import
Import response can include
unresolved_dependencies for slots still unsatisfied after import.
POST /api/apps/{app_id}/fork
Requires
CREATE_APP. Caller must have manage on the source app. Returns 409 with ARTIFACT_IS_GIT_BACKED when the source is not git-backed, APP_NOT_FOUND when missing, or TARGET_NAME_EXISTS / NAME_COLLIDES_WITH_GIT_BACKED when new_name collides.
POST /api/apps/{app_id}/export-to-managed/preview
Requires manage_git and app-level manage. Returns a preview of the standalone app bundle that export-to-managed/commit would copy (excludes local state paths such as __pycache__, venv dirs, and dotfiles). Response includes success, files (each with path, size_bytes, is_text), and warnings. On failure, error is set.
POST /api/apps/{app_id}/export-to-managed/commit
Requires
manage_git and app-level manage. Returns 400 when both source_id and repo_id are missing. On success, includes success, source_id, repo_id, and pull-request metadata (pr_url and/or nested pull_request with pr_url, pr_number).
POST /api/flows/{flow_id}/fork
Requires
manage on the source flow. Returns 404 (FLOW_NOT_FOUND), 409 (ARTIFACT_IS_GIT_BACKED when source is not git-backed, NAME_COLLIDES_WITH_GIT_BACKED, or TARGET_NAME_EXISTS), or 400 for other failures.
Git-backed flows and apps cannot use Genesis versioning endpoints (enable, promote, revert, discard, and related routes) until forked. PUT updates that only change is_enabled (pause/resume) remain allowed on git-backed flows.
For Flow pause/resume behavior, see Flows.
The Flows guide’s programmatic schedule section explains scheduler behavior when schedule requests overlap.
AgentSkills self-add request review
These request-review routes requiremanage_skills:
If a durable request record has malformed metadata, package content, or file paths,
these routes return
400 with an error detail. Genesis validates the full record
before restoring any package files.
AgentSkills authoring
These routes back creating and editing local skills in the Skills catalog. They requiremanage_skills or manage_own_skills, with ownership checks for
an existing skill.
The create and update request bodies contain
content (string, 1–500,000
characters). Update also requires expected_sha256, a 64-character lowercase
hex digest from the editor read. The response data contains skill_name,
content, and sha256. A conflicting name or stale editor token returns 409;
an inaccessible skill returns 403, an unknown skill returns 404, and
invalid skill content returns 422. On GET /api/agent-skills, editor
capability checks perform registry and path checks when
include_editor_capabilities=true; they do not read skill document contents.
Each skill summary also includes display_name: shipped skills use their
product-named label under white-labeling, while name remains the identifier
used to load the skill.
The read-only label lookup returns only shipped skills whose label differs
from their ID:
AgentSkills package file endpoints
These routes are mounted under/api/agent-skills/... and back the Skills
library package viewer for bundled files such as SKILL.md, examples, or
supplementary docs.
Shared AgentSkills package file parameters
GET /api/agent-skills/{skill_name}/files/{relative_path:path} returns
success: true plus data with the same pagination metadata used by the
Skills viewer, including continuation offsets when the file is truncated. The
/raw variant returns text/plain directly instead of a JSON envelope.
Delegation grant endpoints
A delegation grant is a person’s signed permission for one named agent to take listed acts on named objects until a stated time. These bearer-authenticated routes act on the caller’s own grants and needapprove_agent_action or view_connections. Nothing can be drafted or signed
while an administrator has turned off
action_review.delegation_grants_enabled,
which is documented in Advanced Settings.
Revoking an active grant remains available when the switch is off.
GET /api/delegation-grants accepts optional all_people (boolean, default false) and
state (proposed or active, default null). Only an administrator can set all_people
to list every person’s grants; if state is set, results are only the caller’s own grants,
even when all_people=true. Responses include
enabled; when the switch is off, the list is empty and enabled is false. The individual
grant route likewise returns enabled: false and no grant when disabled.
POST /api/delegation-grants requires acts (string array, at most 20), scope (object),
grantee_agent (string, 1–255 characters), and executor_bot_id (string, 1–255 characters).
expires_in_hours is optional and defaults to the configured duration. The server validates
that the grantee belongs to the caller and writes the human-readable scope label. Grant views
include summary (up to two short sentences describing the permitted work and duration),
act_verbs (a short verb summary), and each act includes words, its plain-language wording.
The caller’s own Mission grants also include mission_id and the readable mission_name;
the unfiltered all_people=true administrator listing does not read or return Mission names.
The caller’s listing reads each distinct Mission name, up to 20 project reads; grants beyond
that budget have no mission_name. An inherited Mission grant also includes
inherited_from_grant_id, the parent’s grant ID; it is null when the grant was signed for that
Mission. Confirm takes
a lowercase 64-character SHA-256 content_hash. Revoke accepts an optional reason of at most
255 characters.
Confirm takes a person’s own sign-in only. It refuses personal access tokens, agents, app
and sandbox tokens, machine tokens, the system identity, any Slack context and any request
declaring the agent channel, and it is refused when sign-in is off. A wrong hash, a draft past
its one-hour window, a grant past its end time and another person’s draft are refused too;
another person’s draft reads as not found. Known gap: a client holding the same
identity-provider token as the dashboard, which does not declare itself, reads as a browser
sign-in. The issued record notes whether browser headers were present, which helps find such a
signature afterwards but decides nothing.
Every step is written to the admin audit log with target type
delegation_grant: proposed, issued, declined, revoked, used and refused.
Person steps
A person step is one action an agent may take only on the person’s own word (sealing an app’s spec on a turn no person typed, or deploying an app to Databricks Apps as them), asked as a card in the person’s Work Queue. Allowing it allows exactly that action, once: the same agent, the same conversation, and what the server read it would act on when it asked. A card waits 12 hours, and an allowed one must be used within an hour. Same permissions as the grant routes.
Answering takes the person’s own sign-in only, as confirming a grant does: personal access
tokens, agents, app and sandbox tokens, machine tokens, the system identity, Slack and any request
declaring the agent channel are refused (
403). Another person’s step reads as not found (404);
a wrong hash, an expired step and one already answered are 409. Each step is written to the
admin audit log with target type person_step: asked, allowed, declined and used.
When a step carries a relay, it asks the person to post their own words to a room.
The response includes the exact words, room_id and optional room_name,
recipients, reply_to, sender, intact, outcome, and answerable_here.
Only the person’s own signed-in Genesis GUI can answer a relay step; this
browser-session proof is recognized by default. Calls made outside that GUI,
MCP requests, tokens, and tickets receive 403. Approval posts the words
immediately, while decline posts nothing. outcome is posted, not_posted,
or unconfirmed; the approval is spent even if posting fails or the write
cannot be confirmed. A posted relay’s outcome is reconciled on read if recording
it failed, without posting it again. An unanswered relay expires with its step
and the submitter is notified.
Queue count
The dashboard uses this read for the Work menu’s waiting indicator and status-bar count. It counts requests awaiting review that the caller may decide, visible missions waiting on a person, and the caller’s chat threads outside a mission whose agent waits for an answer. It counts missions, not their individual waiting tasks. The mission count does not read tasks or messages, so an already-answered question can remain counted until the mission status advances. Chat questions count while unanswered for up to 7 days, or 24 hours when marked optional; a mission question remains waiting until answered. One person’s result is reused for 25 seconds;truncated is true when a bounded read may have omitted
waiting items.
Each thread-question item has
bot_id, thread_id, thread_title, asked_at,
questions, question_set_id, question_source, question_kind (ask or
optional), and waiting_for. It can include unanswered questions already filed under
History: chat questions move there after 7 days, or after 24 hours when optional. Threads
quiet for more than 30 days are not listed. The endpoint reads at most 100 flagged
threads to return up to 50 rows still waiting plus History rows; truncated is true when
an unread thread may still be waiting.
Skipping a chat question calls the server-side dismiss route, so the Queue and Work
count stop listing the thread on every device. A later question in the thread can
flag it again. The bulk route accepts threads (1–200 {bot_id, thread_id} entries)
and dry_run (boolean, default true). Applying a bulk clear writes only for
threads still flagged with a pending, unkinded “What next?” menu; other entries are
returned under skipped with a reason. Each cleared row identifies the owner and
pending question text; each skipped row may include its state and pending questions.
Agent rooms endpoints
These bearer-authenticated routes let callers share a room through one Genesis server. A room ispublic (anyone may join) or private (a member must approve a join request
or invite the newcomer), and separately listed (shown in the room directory) or
unlisted (omitted from the directory; its name is usable by callers the access rules
allow). Rooms can be addressed by id or by a name the caller can find. Private rooms
are readable and writable only by their members. The caller’s participant name is
derived from the authenticated email local part, or the user ID when no email is
available; clients do not provide it. Configure the agent that owns room threads with
rooms.bot_id before creating the
first room. An invitee who has not joined receives the same not_a_member
response as any other nonmember from members-only actions.
In coding-agent sessions, the Genesis Rooms MCP helper also accepts local paths
in room_send.files. It uploads up to 10 regular files per message, each at
most 10 MiB, and sends their room-scoped references in attachments; the file
contents are not embedded in the message. Every room member can read an attached
file, so do not attach secrets or data that should not be shared. This helper is
separate from the HTTP upload flow documented below.
When
rooms.room_policy_enforcement is enabled, room visibility and use also
follow the caller’s role policies. A restricted caller receives the same refusal
for a room outside their allowlist and an unknown room ID; leaving a room or
invitation they hold is still allowed. See role room policies
and the RBAC room-policy endpoints.
Room request and response fields
Statement lookups and checks read the statement room’s properties and transcript, and consult
its visibility rules. A whole-record answer also looks up the author; checks are limited to
30 per caller per 10 minutes. A check with
text sets verified only when the supplied
words match the stamped statement exactly apart from surrounding whitespace; otherwise it
returns verified: false and reason: "text_mismatch". Without text, a person statement
verifies that the stamp exists, while a range verifies only when its stored record is whole.
Range responses have kind: "range", author: null, complete, and count; an incomplete
range has verified: false and reason: "incomplete_range".
DELETE /api/rooms/{room_id} closes the room and removes it from the room
listing. Closed rooms stop answering, but their underlying thread is retained
for operator access. This is an archive, not a deletion.
GET /api/rooms and room creation return you alongside the room data. A
message send returns message_id, recipients, and truncated, plus a
status of appended when the message is already in the transcript or
buffered while a turn is running. A read returns messages (each with sent_at,
when it was recorded, and for a coding agent’s message sender_owner and, after a
rename, sent_as), the room’s room_name, tail_node and has_older; store tail_node and pass it as
after on the next poll. While has_older is true, pass the first message’s
node_id as before to read the page before it. Each roster entry
contains name, attached, and optional last_seen presence data. A file
listing returns files, each with name, path, media_type, size, the
sender, sent_at (when the message was recorded), message_id and
node_id; limit defaults to 50 and accepts 1–200. Download a listed file
with GET /api/rooms/{room_id}/attachments?path=<path>. The list comes from the
room’s messages and does not check the files on disk, so a download can still
fail for a file that has since been removed.
GET /api/rooms/{room_id}/conversations returns conversations with one entry per
room conversation, grouped by agent, plus active_now, waiting, and
messages_last_day totals. Each entry includes its reference and agent, recent
message summary, active/waiting state, frequent counterparts, and open_asks;
through_node identifies the newest message covered so clients can apply only later
live messages. The response also returns the active and waiting time windows and
minute-level last-day counts used to update the page between reads.
A caller reads a room it watches through /messages, /who, /files and
/attachments as the participant that makes it watched: a private room one of the
caller’s own Genesis threads follows is read as that thread’s agent, while the agent is
on the roster. Attachments always download as application/octet-stream with
Content-Disposition: attachment, so an uploaded HTML or SVG file is never rendered.
The Rooms page follows its open room live over the unified WebSocket
(/api/ws/unified_v2): send {"type": "subscribe_room", "data": {"room_id": "<id>"}}
and unsubscribe_room to stop. The server checks access on the subscribe (an
oversight subscribe is audited once) and again before every event, and sends
room_subscribed, room_event (room_id and kind: messages or roster, never
message content; re-read through the endpoints above) or room_access_lost, after which
nothing more is sent for that room. One connection follows at most 20 rooms.
Room messages addressed to the room’s agent are drained into the room thread
by the background room sweep rather than the ordinary mailbox sweep. Direct
chat writes to a room thread are rejected; send through these room endpoints so
room attribution, ordering, truncation, and rate limits are preserved.
Each participant can send up to 30 messages to one room in any rolling
300-second window. The limit is per sender and room, regardless of recipient;
exceeding it refuses the send without recording it. Only messages successfully
enqueued consume the allowance. The in-memory window resets when the server
restarts.
Web UI fallback
If the built UI index is missing when Genesis serves/ or a frontend route,
the server returns an HTML 404 that identifies the static directory it checked
and gives the build command: cd genesis-dashboard-new && yarn install && yarn build:ui.
Run the command from the repository root, then restart the server; the /assets
folder is mounted when the server starts.
Genesis Desktop local MCP authentication
On a Genesis Desktop backend, MCP requests to/mcp must carry the install’s
X-Genesis-Desktop-Key; loopback access alone is not sufficient. A missing or incorrect key
returns HTTP 401. If the Desktop shell launched the backend but no MCP key could be loaded,
/mcp returns HTTP 503 rather than accepting an unkeyed request. A developer-run backend
that was not launched by the Desktop shell and has no loaded MCP key retains the keyless
behavior. This local Desktop rule is separate from the hosted MCP authentication contract
below.
The native shell also gives the backend a separate loopback socket for the organisation’s
Outpost capability gateway. It accepts one JSON-RPC request per POST /mcp and requires
X-Genesis-Desktop-Call, a per-call assertion bound to that request and checked for replay;
this is distinct from the local coding-client X-Genesis-Desktop-Key. The gateway has no
session or server-stream response. Invalid assertions return HTTP 401, and tool calls are
checked against the computer owner’s enabled scopes, access entries, and pause state before
any local tool runs.
Genesis AI account-link endpoints
These routes manage a server Genesis’s link to a Genesis AI account and its optional use for chat. For supported deployments and configuration, see AI Providers. The link credential is never returned by these routes.Meeting link and director-code endpoints
These routes let authenticated users use a meeting link to obtain their own one-time code, and let the inviter privately reveal or replace their code. Link tokens identify a meeting without naming its agent, thread, or user. Both link responses setCache-Control: no-store; codes are not written to logs.
The inviter’s chat card uses the
ref_id to reveal a code once; other
conversation viewers see only that a code was sent. If a code is shown or
expires, the inviter can request a replacement. For the meeting-code flow, see
Meeting Canvas.
Speech-provider choice endpoints
These routes read or change this server Genesis’s speech-provider choice. With no explicit choice, speech follows the chat provider. An administrator can direct speech to Genesis AI while chat uses another provider; Genesis AI must have its own speech key set up first. The setting is not used on Genesis Desktop or Try Genesis.Voice endpoints
These routes report and configure this Genesis’s voice source and serve GPT-Live voice sessions in chat and Genesis Desktop. Voice sessions require voice to be enabled and a source to resolve. See Voice in chat for the settings and source choices. Realtime refusals return503 for retryable reasons
(voice_busy, voice_upstream, or genesis_ai_unreachable) and 409 for settled
refusals; the response code carries the reason. Keys remain server-side and are never
returned.
Hosted MCP gateway endpoints
These routes expose the hosted remote MCP connectors plus the setup and readiness surfaces shown in Config → Agent Gateways. For white-label installations, the MCPinitialize handshake reports the
configured product name as the server name. See Branding
for product-name configuration.
On /mcp/v1/, when white-labeling is enabled, the initialize instructions
begin with a summary identifying the genesis tool and its access to the
installation’s data context, agents, threads, skills, and apps. The summary says
the action argument selects the operation (default search); the product-name
rule follows it.
Hosted MCP streamable-HTTP calls to
/mcp/, /mcp/v1/, and /mcp/v2/ accept
request bodies up to 16 MiB, including the JSON-RPC envelope and any base64-encoded
file content. This accommodates room attachment uploads up to 10 MiB.
GET /api/config/mcp/cortex-code-skill returns application/zip with a
Content-Disposition filename of genesis-cortex-code-skill.zip. When
authentication is enabled, any signed-in user may download it.
Requests for /.well-known or /.well-known/... paths that do not match a
registered route return 404; they do not fall through to the React SPA.
/api/config/mcp/readiness returns success: true plus data with
mcp_url, protected_resource_metadata_url,
authorization_server_metadata_url, auth_mode, auth, readiness, setup,
copy, and notes.
data.auth_mode identifies the hosted-MCP auth posture. It returns
snowflake_spcs for Snowflake Native App / SPCS ingress, disabled when auth
is off, header_proxy when auth.provider is proxy and no auth.issuer is
configured, and otherwise the configured auth provider name (or unknown).
data.auth also includes the optional client_id field. Genesis resolves that
value from auth.client_id, auth0.client_id, AUTH0_CLIENT_ID, or
AUTH_CLIENT_ID.
The data.external block also includes the normalized forwarding inputs Genesis
used for URL construction: forwarded_proto, forwarded_host,
forwarded_port, configured_public_base_url, and
using_configured_public_url. data.readiness now includes
critical_failures, warnings, and per-check severity fields in
checks[]. Each readiness check includes id, label, severity, status,
message, and remediation. Readiness status values are pass, warn,
fail, and not_applicable. When proxy headers are incomplete, Genesis can
fall back to one of
GENESIS_MCP_PUBLIC_URL, GENESIS_PUBLIC_URL,
GENESIS_PUBLIC_BASE_URL, GENESIS_EXTERNAL_URL,
SERVICE_BASE_URL, NGROK_BASE_URL, or FRONTEND_BASE_URL instead of
deriving a localhost URL.
In a Databricks App, Genesis ignores forwarded request headers and does not use
NGROK_BASE_URL or FRONTEND_BASE_URL to construct MCP OAuth URLs. The MCP
specific overrides remain first; Genesis then checks GENESIS_PUBLIC_BASE_URL,
SERVICE_BASE_URL, DATABRICKS_APP_URL, and (on AWS commercial workspaces) the
runtime-derived App URL. If none is available, OAuth metadata and URL-bearing
WWW-Authenticate challenges return 503; other MCP requests do not require a
public URL. See Deploying Genesis on Databricks — Public URL and OAuth callbacks.
data.setup is the deployment-specific client setup payload used by
Config → Agent Gateways. It includes deployment_kind, headline,
recommended_path, claude_code, claude_desktop, cursor, cortex_code,
test_prompts, and diagnostics_summary. Hosted deployment setup also includes
codex and genie_code. It can include network_exposure and enable_sign_in.
data.setup.deployment_kind returns snowflake_spcs, hosted_oauth,
header_proxy, auth_disabled, or unknown. Each available client section includes
title, summary, steps[], notes[] and, optionally, more[]. The hosted deployment
sections codex and genie_code use the same shape as claude_code, claude_desktop,
cursor and cortex_code. Each steps[] item is one numbered step
with title, instruction, an optional command (label and value, the one
copyable value for that step) and an optional one-line hint. Each more[]
item is a section the page shows collapsed below the steps, with id, title,
summary and commands[]; id admin_setup carries material only an admin
acts on, such as the OAuth redirect URI to register. For hosted OAuth, Claude
Code’s steps are Add, Sign in once (interactive claude, then /mcp)
and Try it (the claude -p smoke test, which cannot sign in by itself).
test_prompts includes
interactive and command_line. When deployment_kind is auth_disabled,
network_exposure is loopback for a loopback public base URL or network
otherwise. The Agent Gateways page labels these states Local only and
Sign-in off, respectively, and both provide no-credential setup commands.
For the auth_disabled setup, enable_sign_in contains the same setup-section
shape plus docs_path, which points to
/docs/deployments/Hosted-MCP-For-Claude-Code#turn-on-sign-in. It is omitted
when the authentication mode is unknown.
The codex and genie_code sections use codex mcp ... and genie mcp ..., respectively.
When hosted OAuth supports client self-registration, their Add step starts browser
sign-in in the client. Other authenticated deployments use a Genesis personal access token
from GENESIS_MCP_TOKEN; when authentication is disabled, the setup uses the bare URL with
no credential. Their collapsed more[] sections include an install command. SSH sign-in
instructions name the selected client so the remote helper signs in the client shown by
that tab.
data.setup.diagnostics_summary includes status, failure_count,
warning_count, hidden_check_count, primary_blocker, and blockers[].
Each blocker uses id, label, message, and remediation. For hosted
OAuth/OIDC deployments outside Snowflake SPCS, Genesis adds a
client_id_configured blocker when no OAuth client ID is available for browser-based
Claude setup instructions; headless PAT authentication remains available. That
blocker is not raised in header_proxy mode, which has no OAuth client by design.
When no client ID is configured, the setup payload omits the Client ID command and
the --client-id flag rather than emitting a placeholder value, and the Claude
Code and Cursor steps use a personal access token instead. When the redirect
bridge runs with dynamic client registration, no client needs a client ID: the
Claude Code command has no --client-id/--callback-port flags, the Cursor
entry is just {"url": ...}, and Claude Desktop shows no Client ID. The hosted
Claude Code Try it step carries a one-line hint on sending a PAT as
Authorization: Bearer <token> for scripts and CI.
For the default v2 connector, data.copy.coworker_invite,
data.copy.first_prompt, and data.setup.test_prompts.interactive guide
callers through call_tool(name="list_agents") and ask_agent(...) instead of
the legacy status / help onboarding flow. data.copy.coworker_invite is
worded for the deployment: browser sign-in on hosted OAuth, a personal access
token on API-key deployments, the user’s own Snowflake credentials on Snowflake
SPCS, and no credential when sign-in is off.
Every deployment’s setup payload carries a data.setup.cortex_code section for
Snowflake Cortex Code (cortex mcp add ... --type http). On Snowflake SPCS it
adds --snowflake-connection <snow_cli_profile>, so Cortex Code signs each
request with that Snow CLI connection’s Snowflake session. On hosted OAuth with
the redirect bridge and dynamic client registration it signs in through the
browser; on other authenticated deployments it sends a personal access token as
-H "Authorization: Bearer <gp_...>"; with sign-in off it uses the bare URL.
On Snowflake SPCS, the first (Add) step of data.setup.claude_code,
data.setup.claude_desktop and data.setup.cursor carries a variants array: one
entry per way the bridge signs in to Snowflake, in the order snow_cli_profile then
private_key. The step’s own command stays set to the snow_cli_profile variant’s
command, so a client that ignores variants still gets a working command. Each variant has id, label,
instruction and command, and the private-key variant adds a hint. The profile
variant passes --snow-connection <snow_cli_profile>; the private-key variant passes
--auth private-key --account <org-account> --user <snowflake-user> --role <snowflake-role> --private-key-file /path/to/rsa_key.p8. Claude Code’s variants are
claude mcp add commands; Claude Desktop’s and Cursor’s are mcpServers config
entries. The second (Check) step of those three tabs also carries variants, keyed
to the same credentials. Each variant has id, label, an empty instruction, and
command; unlike Add, Check variants do not include the private-key hint. Each
runs npx -y <bridge> test with that variant’s credential flags, and its own command
is the snow_cli_profile check. The dashboard shows one credential
switch per tab, on the first step with variants; later steps follow that choice. Every
variant pins the same published bridge version (@genesiscomputing/[email protected]).
No other deployment kind emits variants.
/api/config/mcp/config returns success: true plus data.default_agent_id
(string, default "") and data.default_agent_unavailable_policy
(require_selection, first_available, or "" when not set; default ""), which are
the in-app settings. It also returns data.effective_default_agent and
data.effective_default_agent_unavailable_policy, what the MCP server actually
uses: each has value, source (in_app, deployment_setting, default, or
per_caller when no single default is set and Genesis picks per caller — Eve, then
Adam, then the caller’s first accessible agent) and setting_name (the environment variable, such as
GENESIS_MCP_DEFAULT_AGENT_ID, when source is deployment_setting). An in-app
value overrides the deployment setting; clearing it falls back to the deployment
setting again. PUT /api/config/mcp/config accepts the two in-app fields and
returns the same payload. Genesis trims
default_agent_id, and an invalid unavailable-policy value normalizes to "" (not
set), so GENESIS_MCP_DEFAULT_AGENT_UNAVAILABLE_POLICY applies, and require_selection
when that is unset too.
When auth.provider is snowflake, /api/config/mcp/readiness reports
data.auth_mode as snowflake_spcs. In that mode, readiness checks that do
not apply to Snowflake SPCS ingress return not_applicable, including
issuer_configured and audience_configured, and on Snowflake public ingress
hosts the forwarded_headers and configured_public_url checks can also be
not_applicable.
When auth.provider is proxy and no auth.issuer is set, data.auth_mode
and data.setup.deployment_kind are header_proxy. An authenticating ingress
proxy signs users in and forwards the identity in a header, so Genesis holds no
OIDC issuer: issuer_configured and audience_configured return
not_applicable rather than failing, and the setup instructions use a Genesis
personal access token. Setting auth.issuer (with auth.audience,
auth.jwks_url and auth.client_id) opts the deployment back into browser
OAuth, and the OIDC readiness checks apply again.
For Microsoft Entra ID, Genesis recognises both issuer families and maps each to
the endpoints of its own token version: https://login.microsoftonline.com/{tenant}/v2.0
to the v2.0 endpoints, and https://sts.windows.net/{tenant}/ to the v1.0
endpoints. Every other issuer keeps the default
{issuer}/authorize and {issuer}/oauth/token shape.
When GENESIS_OAUTH_PROXY_ENABLED is truthy and auth.issuer is configured,
Genesis advertises itself in protected-resource metadata
(authorization_servers points at the Genesis public base URL) and as the
issuer in authorization-server metadata.
authorization_endpoint is {base}/authorize, token_endpoint is
{base}/oauth/token, jwks_uri and userinfo_endpoint still reference the
upstream issuer, and client_id_metadata_document_supported is true. When the
OAuth proxy is disabled, /authorize and /oauth/token return 404 and
well-known metadata delegates to the configured upstream issuer (OPRM-style).
When auth is enabled but no auth.issuer is configured, the deployment has no
OAuth authorization server to advertise. This is the expected posture for
Snowflake SPCS and header-proxy ingress: the ingress authenticates the request
before Genesis receives it, so the protected-resource document remains
available but omits authorization_servers and scopes_supported, while both
authorization-server discovery routes return 404. Clients should use the
Genesis personal access token described by the setup payload instead of
starting an OAuth authorization-code flow.
/api/config/mcp/smoke returns success: true plus data with mcp_url,
aggregate status, and individual checks[] entries for protected-resource
metadata, authorization-server metadata, the bearer-auth challenge, and the
optional authenticated gateway status probe.
When auth is disabled for local development, the auth_challenge check returns
not_run instead of fail.
When hosted identity delegation is unavailable, the
authenticated_gateway_status check returns not_run with the message
Gateway status was not run: hosted identity delegation is unavailable. rather
than fail. The smoke response still returns success: true; its aggregate
data.status is not_run unless another check has status fail.
When auth.provider is snowflake, the hosted /mcp/ transport can use
Sf-Context-Current-User-Token as the caller credential when no
Authorization bearer is present. Genesis preserves that Snowflake current-user
token in the hosted MCP request context for downstream gateway calls. Hosted
assertions are used for application admission and are not forwarded as the
caller bearer token to downstream gateway calls; the verified user context is
used instead.
Hosted-MCP artifacts[].download_url values point at
/api/mcp/artifacts/{artifact_id}?token=... instead of browser-cookie-bound
/git/... links. Genesis only signs image, JSON, PDF, CSV, and plain-text
uploads for this route, and each link is rejected after it expires or is used
once.
Export download responses
Several Genesis API routes stream export packages as binary downloads rather than JSON. On200 responses, Genesis sets an RFC 6266 / RFC 5987
Content-Disposition header with two filename parameters:
This dual-parameter format prevents export requests from failing when a display
name contains Unicode.
Routes that use this header today include:
Typical attachment filenames:
- Agent export:
agent_{name}_{YYYY-MM-DD}.zip - Blueprint export:
{blueprint_name}_export.zip - AgentSkills export:
{skill_name}_export.zip - Mission export:
mission_{name}_{YYYY-MM-DD}.zip - Thread export: derived from bot id, thread id, date, and format extension (for example
.zip,.pdf, or.md)
.git metadata, including nested metadata
directories and files reached through links; the archive contains working files,
not Git commit history. See System Manager export tools.
Thread Export
POST /api/bots/{bot_id}/threads/{thread_id}/export
Export a thread as Markdown, PDF, or ZIP. The endpoint returns a binary file download rather than a JSON response body.
ZIP exports also include
scrub_manifest.json. For this public export endpoint, Genesis preserves original thread content by default, records tool_output_redaction: "none", and the manifest reports status: disabled, so the ZIP remains suitable for import. Support-bundle workflows build the same thread_export.zip shape but rewrite role: "tool" output content in thread.json and message_log.csv to schema-only descriptors by default, preserving columns, row counts, and value types without including raw values. The thread-export manifest records tool_output_redaction, tool_outputs_redacted, tool_output_redaction_fallback_drop_count, and tool_outputs_redacted_in_message_log_csv; binary attachments remain unchanged.
The ZIP metadata.json records message_log_source for the rows used to create
message_log.csv: message_log means the rows came from the MESSAGE_LOG
table, while thread_store means Genesis synthesized them from the durable
thread store. The synthesized form can contain placeholders for columns that
the durable store does not provide.
ZIP exports may also include query_results/results.json with cached query-result payloads keyed by their original query_id. Genesis records whether this file was bundled in metadata.json under contains.query_results. Results are included up to the threads.export_max_query_results_bytes cap (default: 25000000; env: THREAD_EXPORT_MAX_QUERY_RESULTS_BYTES). Oversized individual results are skipped rather than dropping the whole bundle. Support-bundle exports never include raw query data.
An un-scrubbed ZIP may also contain card_packages.json and proof_bundles.json so
comparison cards and their proof bundles travel with the thread. Only packages for runs
the export reader may access are included; metadata.json records whether packages were
included as contains.card_packages. For a person-requested export, a locally built card
that carries a viewer-less input credit is rebuilt without that credit, so its status and
blockers do not rely on a sealed spec whose visibility was not checked for the exporter;
the rebuilt card’s proof bundle is not included. Scrubbed support bundles omit these files.
On import, the packages are restored as read-only snapshots and the card is labeled as
exported.

