Skip to the content
Vaubaan Gateway
Docs menu

Missions and agents

A mission is created by a person, in the interface or by an agent holding their platform management mission, and handed to an agent as a key plus a kit: the MCP client configuration, the instructions for the agent and a command to check it.

Create a mission

In the interface: Missions → New mission, on one screen.

  1. Name it after the task ("Ship the billing page").
  2. Include accounts and select the resources the task needs, not all of them. You can include an account you own or one you were given access to; one account per service.
  3. Tick macro-actions per account ("Read", "Propose", "Ship"…) and set each to a trust level, Careful, Trusting or Autonomous: each row says how many permissions run freely, ask first or are left out here. Advanced opens every permission with its limit per period, its rate per minute, and "runs freely" or "ask me first". For your own agents or a break-glass mission, "Everything I hold on this account" writes out every permission you may allow on that account that the selected resources can reach, the uncategorized writes included: each runs freely, at the service's rate ceiling, with a generous daily limit. Before you choose it, it says how many permissions that is, the one hardest to repair and which of those that cannot be repaired would run freely. The mission still stores that explicit list: if you are given more later, the mission does not grow.
  4. Choose the period and the expiry: once, or limits reloaded every day; an end date, or none (a forgotten mission without an end keeps its keys valid).
  5. Create mission: the form lists every permission with its limit before anything exists.

A mission can only hold what you may allow yourself: the permissions of the accounts you own, or what an access you were given allows.

Give the key to the agent

The key is shown once, followed by the kit:

  • The environment variable, export VAUBAAN_MISSION_TOKEN='...', to set where the agent runs.
  • The MCP client configuration, which reads the key from that variable, never the secret itself:
{
  "mcpServers": {
    "vaubaan": {
      "type": "http",
      "url": "https://your-domain/mcp",
      "headers": { "Authorization": "Bearer ${VAUBAAN_MISSION_TOKEN}" }
    }
  }
}
  • Instructions for the agent, in Markdown: whose key it is, the accounts and resources it may touch, each permission with its limits, what each refusal means and what to do, and what the vaubaan__* tools never do.
  • The git configuration, when the mission holds repositories: see git remote.
  • A check, a curl that lists the tools the key opens.

Configuring the main clients: MCP clients.

Teammates and keys

The creator can add teammates; each generates their own key, shown to them alone, and every call is recorded under the holder of the key that made it. The limits are one for the whole mission, never multiplied by its keys. A machine key (for a CI runner) is a key with a name instead of a person. Removing a teammate refuses their key at once; the others keep working.

When a call is refused

The gateway answers with a code, the fields of that code and a hint for the agent; it never holds a call waiting. Most refusals need nothing from you. Two carry a link for you, also listed under Waiting for you: approval-required (the permission asks first: approve, and the agent replays exactly the same call) and budget-exhausted (a limit is reached: give more or reset it). After risk-not-accepted, the agent may ask for the missing permission; after resource-not-in-mission, you may add the resource by editing the mission.

Every code, what the agent does and what you do: refusals. The kit's instructions give the agent the same list. Stopping a mission or removing an access stops every call at once.

The mission page

Missions → a mission, in the order you need it: its state and the header's actions (Edit mission, the setup kit, and behind "···" stop, duplicate, replace your key); what waits for your answer on it; what it holds, card by card, with how much of each limit the period has used; the people and keys, with what each key did; its activity; and its history. The creator and the teammates read it; each sees only the acts that are theirs (a teammate generates, replaces and revokes their own key; the creator adds people, makes machine keys, edits and stops the mission).

Resources found later

When you select the resources of an account, a card can also take the resources found later in the same environment ("+ future repositories"): a resource that appears on the account afterwards with that environment label — discovered, or relabelled into it — joins the mission, unless another card of the mission already holds it. Without it, the mission reaches the resources it lists and no other. A resource the mission creates itself through the gateway joins it either way. The owner labels resources on the account's page.

Edit a mission

The creator, and only the creator, opens Edit mission on the mission page: the creation form, filled in with the mission. Everything can change but the period: accounts, resources, macro-actions and trust levels, single permissions, limits, the end date. Review what is added and removed, then Save changes. Every person and key on the mission gets the change at once; keys, history and what the period used stay, and removing then adding a permission does not reset its use. A stopped mission is never edited: duplicate it instead.

History and restoring a version

Every change of a mission's configuration — its creation, an edit, a permission request you accepted, a resource it created or one that joined it on its own, an end moved by a request you answered — is a numbered version in the mission's History, newest first: who made it, when, why, and what changed from the version before. Versions are kept as long as the mission; the audit's retention does not remove them.

On a past version, Restore this version (the creator only) brings that configuration back at once, as a new version: nothing is rewritten, and restoring another version undoes it. It is checked as an edit, against what you may give today: a permission you no longer hold, an account you lost and a resource that no longer exists are left out, and the page says which. An end date already past keeps the current one. Keys, teammates and what the period used are not part of a version: a restore replaces no key and resets no limit.

An agent that receives risk-not-accepted may ask for the missing permission through vaubaan__request_permission, with the refusal's refusal_id and a reason. Nothing reaches you until the agent asks. Under Waiting for you, read what it says, add the permissions, or refuse. Granting changes the mission; the agent still retries its call.

The activity of a mission

The mission page's Activity leads to its own record: what waits for an answer, who called in the current period — per key holder and per agent label —, the timeline of its calls and changes, then what each permission used and the counters of the earlier periods. A key holder is whose key made the call; an agent label is what the agent said about itself. Neither is a limit: a mission has one set of limits, however many keys or agents. The whole record of the instance is Activity.

In this section

Last changed 2026-12-02. This page as Markdown: /docs/missions.md