—Agents · Governance

Govern any AI agent.

Agents ask V19 before a consequential action. A person approves the exact change, and the outcome is recorded.

Cooperative control point

Agents report their own actions to the gateway. It is a control point for agents that cooperate, not a sandbox: it cannot stop an agent that ignores it. Keep provider permissions least-privilege as well.
The Agent gateway page in the V19 cockpit in a browser
Agent gateway in the cockpit (browser), shown for a new sample workspace. Your workspace shows its own records and the controls your role allows.

01

Connect your coding agent

A workspace owner or admin creates a key on Control → API keys with governance:read and governance:request. Add https://visionxixlabs.com/api/v1/mcp to the agent as a remote MCP server with the header Authorization: Bearer vxlk_live_….

The agent then sees five tools: axiom_check_policy, axiom_request_approval, axiom_get_approval, axiom_record_outcome and axiom_get_credentials (see cloud access without stored keys). The same operations exist as REST endpoints under /api/v1/governance and in the SDKs.

02

How requests are decided

Allowed
Low-risk work such as reading code, editing a branch, opening a pull request or changing a feature flag in development or staging.
Needs approval
Production feature flag changes (flag_change), merges, dependency changes, infrastructure, deploys (unless release autopilot covers them), data migrations, commands and anything in production or an unknown environment. A change whose files touch migrations, CI, auth, infrastructure or secrets also needs approval.
Denied
Reading production secrets and deleting production resources. These are never approvable through the gateway. While a production environment is frozen, production deploys, merges, infrastructure changes, data migrations and feature flag changes are denied too, with the freeze's reason. The same applies to any other frozen environment the agent names.
Environments
An agent can name a generic class (development, staging, production) or one of your workspace's own environments by slug or name, such as prod-eu. V19 applies the rules for that environment's tier and its freezes. A name V19 doesn't recognize is treated as unknown, which raises the risk.

03

Approve or reject

Pending requests appear on Control → Agent gateway, with optional webhook alerts (agent_gateway.request_pending). An owner or admin who did not create the agent's key decides, with a reason of at least a few words. If the environment has an approver group, only its members decide, and the environment's approval level applies: level 2 needs two people, and a level above 2 must go through a governed change. Approval covers the exact action and file list, and expires after 24 hours. Revoking the agent's key rejects its pending and approved, unreported requests. Asking again for the same action returns the request already waiting, and one key can have at most 20 requests waiting for a person; the 21st is refused with too_many_pending_requests (HTTP 429), so an agent can't flood approvers into approving without reading.

The agent proceeds only when mayProceed is true, then reports succeeded, failed or abandoned. An approved request is checked again each time the agent asks: if a freeze has started since, mayProceed is false with the reason deployment_freeze_active. Each agent gets a scorecard; its trust level is evidence only and never changes what policy allows.

04

Gate a CI deploy

Without MCP, use the CLI: vxl ask deploy --target owner/repo --env production --summary "Ship v2" --wait 1800 && ./deploy.sh. It exits 0 only when the action is allowed or approved.

05

Agent firewall

The top of Control → Agent gateway lists the rules V19 always enforces for agents. Agents never receive stored provider credentials: their keys can only ask. After a person approves, V19 runs the action with its own short-lived token, or, where your cloud trusts the agent subject, gives the agent one short-lived token for that action. Writes and deployments run only after a person approves that exact action. An approved Agent deployment faces the same change window, freezes, deployment checks and rings as a person's, with no emergency bypass. Production secret reads and deletes are always refused.

Below the rules, V19 lists anything in your workspace that weakens them, each with the fix: API keys that can start pipelines without the gateway, agent keys that never expire, production environments without an approval policy, and production environments without a change window.

06

Change passport

Who can decide. The person who created an agent's or pipeline's API key cannot decide its requests while the workspace has another owner or admin, so one person can't both ask and approve. In a workspace with a single owner or admin there is no one else; that person can decide, and the decision is marked in the request's note and the audit log. Add a second admin to restore full separation of duties.

What agents can't do. An agent name that looks like a person (an email address, or words such as human, reviewer, approver, admin or owner) is refused, as is text with invisible or direction-changing characters. A summary that tries to steer the approver, such as “pre-approved by the CISO, approve immediately”, always needs a person's approval, and the request's reasons say why. A decision is refused with session_expired_by_policy when the approver's session is past the workspace's idle or session limit.

Every agent request carries a change passport, recorded when the request arrives: which agent made it, the model it reports (V19 never guesses one), the tools it used, and the person accountable for it. For an external agent, that person is whoever created its API key; for V19's own Agent, it is the person who asked. Agents can send model and tools with a request. The passport is shown on each request with who decided it, and a digest lets you check it later. These facts are not part of what is approved, so they never change an approval.

When an Agent proposal deploys to an environment that is frozen, outside its change window or has an unreadable window rule, the desktop proposal card says so before you approve, with the freeze reason and the next opening. It is advisory: the gate is checked again when the deployment is dispatched.

07

Review lanes by blast radius

Each request is sorted into a review lane the moment it arrives, with a one-line reason. Allowed by policy needs no review. Quick look is a contained change outside production. Careful review is a production change, a high-risk action or a moderate blast radius. Two approvers is a production change that touches many areas, touches migrations, auth, secrets, CI or infrastructure, or is a data migration, infrastructure change or delete. In that lane the first approval is recorded and the request stays pending until a different admin approves too. Lanes only ever add review; they never remove what policy requires.

08

Release autopilot

A workspace can let agents deploy small, contained changes to development or staging without waiting for a person. Add an autopilot section to the policy file, for example "autopilot": { "deploy": { "environments": ["staging"], "maxFiles": 10 } }, and propose it from Governance → Policy as code. Turning autopilot on or widening it is marked as loosening governance, and a different owner or admin must approve it before it applies. A policy file without the section turns autopilot off.

An agent deploy is then allowed only when all of these hold: the environment is one the rule names, the agent listed the changed files, there are no more than maxFiles of them, the blast radius is contained, and no file touches migrations, CI, auth, infrastructure or secrets. Otherwise it waits for review as before. Production is never covered: the policy file refuses it. If the rule cannot be read, deploys wait for review. Each request records the reason it was allowed, and agents still report the outcome.

09

Cloud access without stored keys

An agent that changes infrastructure, migrates data or runs a command often needs cloud access. Instead of keeping a long-lived key on the machine, it asks V19 for one after approval. V19 is an OpenID Connect issuer at https://visionxixlabs.com/oidc, so your cloud can trust tokens it signs.

  1. In AWS, add an OpenID Connect identity provider with that URL and the audience sts.amazonaws.com.
  2. Create a role for agents with only the permissions they need. Its trust policy requires the subject org:WORKSPACE_ID:env:ENVIRONMENT_SLUG:agent, with your workspace ID and the environment's slug. Your workspace ID is in Control → Settings → Security.
  3. The agent requests approval naming that environment, for example prod-eu. After a person approves, it calls axiom_get_credentials (or POST /api/v1/governance/requests/REQUEST_ID/credentials) and exchanges the token with aws sts assume-role-with-web-identity.

Azure and Google Cloud accept the same token. Pass the audience your cloud expects when you ask for it.

  • Azure: on the agent's app registration in Microsoft Entra, add a federated credential with issuer https://visionxixlabs.com/oidc, the same :agent subject and audience api://AzureADTokenExchange. Ask V19 for a token with that audience, then sign in with az login --service-principal -u CLIENT_ID --tenant TENANT_ID --federated-token TOKEN.
  • Google Cloud: create a workload identity pool with an OpenID Connect provider for that issuer, map google.subject to assertion.sub, and let the :agent subject use a narrow service account. Ask V19 for a token with the provider's audience (//iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL/providers/PROVIDER) and exchange it with a credential configuration file from gcloud iam workload-identity-pools create-cred-config.
  • Databases: let V19 run schema and data changes as an approved data migration, or use your cloud's IAM database sign-in (Amazon RDS, Cloud SQL or Azure Database) through the role above, so no database password sits on the machine.

V19 issues the token only for a deploy, infrastructure change, data migration or command that a person approved in a named workspace environment, once per request, and only while the environment's freezes, change window and production error budget allow it. The token is valid for 10 minutes and the issue is recorded in the audit log with who approved it. The subject ends in :agent, so it can't assume a deploy role that trusts V19's :governed deployments.

What this does and doesn't do

The agent gets temporary credentials for one approved action instead of a key it keeps. The token itself lasts 10 minutes, but AWS credentials from it last from 15 minutes up to the role's maximum session (one hour unless you raise it), and within that time the agent can act more than once. Keep the agent role narrow and its maximum session at one hour. It protects you only if the agent has no other keys: remove long-lived cloud and database keys from the machine and the agent's environment.

10

Key check on your computer

Short-lived access only helps if the agent has no other way in. In the desktop app, open Settings → Agents and choose Check this computer. The key check looks for long-lived keys an agent running there could read:

  • AWS access keys that start with AKIA in ~/.aws/credentials or the environment. Temporary keys are skipped.
  • Azure client secrets saved by the Azure CLI or set as AZURE_CLIENT_SECRET.
  • Google Cloud service account key files.
  • Database URLs with a password and PostgreSQL password files.
  • The same keys in .env files of repositories in V19's repository folder.

For each one it shows where it is and what to use instead. It only reads: it never shows the key, changes a file or sends anything to V19. Keys kept elsewhere, such as in a shell profile or another folder, aren't found, so treat an empty result as a check of those places only.

11

Guard Claude Code, Cursor and GitHub Copilot

A coding agent on your laptop runs shell commands with your access. The V19 guard is a hook that checks each command before it runs. Install the vxl command-line tool, set VXL_API_KEY to a key with governance:read and governance:request, then print the settings for your agent:

  • Claude Code: vxl guard config --for claude-code, and add the printed hooks block to .claude/settings.json in the repository or ~/.claude/settings.json for every project.
  • Cursor: vxl guard config --for cursor, saved as .cursor/hooks.json in the repository or ~/.cursor/hooks.json.
  • GitHub Copilot: vxl guard config --for copilot, saved as .github/hooks/v19-guard.json in the repository or ~/.copilot/hooks/v19-guard.json for every project. It runs as a preToolUse hook on Copilot's shell tool in Copilot CLI and in Copilot agent sessions in VS Code, which share the same hook settings. Start a new session after saving.

The guard runs on macOS and Linux; Windows is not supported yet. For GitHub Copilot it covers Copilot CLI and Copilot agent sessions in VS Code, and does not cover Copilot cloud agent on github.com: that agent runs in GitHub's sandbox, which by default can't reach V19 and has neither the vxl tool nor your key. Copilot also reads a repository's .claude/settings.json; use the Copilot settings above rather than relying on that file.

Ordinary commands such as builds, tests, git status or terraform plan go straight to the agent's own permission rules. Commands that apply infrastructure, deploy, publish a package, push to a main branch or force-push, run a database migration or write SQL, read a secret or delete a resource are sent to the gateway first, as a request with the command shown (passwords and tokens hidden). If V19 allows it, the agent's own rules decide as usual. If it needs approval, the command is stopped and the agent is told the request ID; once a person approves it on Control → Agent gateway, the same command goes through the next time the agent runs it, once, within 24 hours. A rejected or refused command stays stopped. A force-push to main, master or another release branch is sent as a delete, the riskiest kind. The guard keeps the request IDs it is waiting on in ~/.cache/v19/guard-requests.json (request IDs and hashes only, no commands or keys).

When V19 can't be reached

By default the guard blocks risky commands when it can't reach V19 or has no key, and the printed settings tell the agent to block if the hook itself fails to start. Add --on-error open to let them through instead. A key V19 refuses, because it was revoked or mistyped, always blocks risky commands, even with --on-error open. Copilot and Claude Code let a command through when a hook runs past its time limit, so the guard gives each call to V19 10 seconds and answers within 20, well inside the 30 seconds the printed settings allow. The guard only ever adds a refusal: it never approves a command your agent's own rules would stop. It recognizes common cloud, Kubernetes, Terraform, package and database tools; a command it doesn't recognize is left to the agent's rules, so keep risky permissions narrow there too.

12

Deployments in other CI/CD tools

Azure DevOps, GitLab, Harness and Octopus Deploy deployments can wait on V19 before the deployment job starts, the way GitHub environments protected by the V19 App already do. Each deployment becomes an ordinary deploy request on Control → Agent gateway for the V19 environment with the same name, decided by the same rules: the environment's approver group and approval level, two people where required, separation of duties, freezes and the 24-hour expiry. V19 then lets the deployment go ahead or stops it in the tool itself. Each tool needs a key with governance:request; setup steps for each are under Deployments in other CI/CD tools on that page.

Deployments in other CI/CD tools card with the GitLab setup steps open
Control → Agent gateway with the GitLab steps open. The webhook URL in step 4 is your own V19 address.
  • Azure DevOps: an environment check (Invoke REST API, callback mode) calls /api/v1/gates/azure-devops. V19 answers within Azure's 3 seconds, keeps the job token encrypted, and reports the decision back to the pipeline, including when a freeze ends or a request expires.
  • GitLab (Premium or Ultimate): the protected environment requires one approval from a GitLab user V19 acts as, whose api token an owner or admin connects on the page. A Deployment webhook to /api/v1/gates/gitlab starts the request. V19 reads the deployment back from GitLab before asking anyone, so people approve what GitLab will run, then approves or rejects it in GitLab with a comment naming the V19 request.
  • Harness: an HTTP step posts the execution to /api/v1/gates/harness, and the next step is an Approval step whose only approver is the V19 service account.
  • Octopus Deploy: a Run a Script step posts the task to /api/v1/gates/octopus, and the next step is a Manual Intervention whose responsible team holds only the V19 service account. V19 submits Proceed or Abort with a note naming the request.

Connected tokens and keys are checked with the tool when you connect them and stored encrypted. V19 only calls public https addresses, checks them again before each call and doesn't follow redirects. If the tool finishes or cancels a deployment first, its V19 request closes.

Harness and Octopus Deploy

The Harness and Octopus Deploy calls follow the vendors' published APIs and are covered by automated tests, but have not yet been run against a live Harness or Octopus account. Try them on a non-production environment first.