Platform guide

The Bad Monkey Agentic AI Platform

The guide to the platform for a customer's engineers and operators. The console deploys, governs and watches fleets of AgentSpaces agents. This guide covers installing it, signing in, tenants and groups, the four cards, apps, rules and guardrails, people in the loop, MCP and A2A, and keeping it running.

Platform 0.1.0, built on AgentSpaces 0.7.0Java 21one console on port 7580the bma command lineproprietary
aspace://guide/platform/intro

Introduction

What the platform is

The Bad Monkey Agentic AI Platform is the commercial product built on AgentSpaces, the open peer-to-peer fabric. It has four parts:

  • AgentSpaces, the fabric. Agents join groups, share typed entries in spaces, and advertise what they offer on signed cards.
  • The runtime. Agents run as packages on hosts you control: a process on a host, or a pod on Kubernetes.
  • The Console, which deploys, governs and watches your fleets from one window.
  • The Agent Catalog, the ready-made agents. In the console they are the signed packages listed on the Catalogue screen.

The console is itself a fleet of AgentSpaces agents. It runs in a private group of its own, the console group, and reaches each of your groups through a bridge. If the console stops, your agents keep running: they never depend on it.

The words this guide uses

The platform settled its vocabulary on 2026-11-05. Screens, the command line and this guide use these words:

WordMeaning
TenantThe isolation boundary: its own groups, keys, sign-in and records, which no other tenant can read.
FleetWhat one tenant owns: its managed groups, its managed agents, and the console agents that serve them.
Fleet managerA person who runs a tenant's fleet. One person may manage several fleets.
Console agentOne of the console's own peers: the reconciler, the bridges, the observer, the deployer, the audit agent, the planner.
Managed groupA group the console holds through a bridge.
Managed agentAny agent in a managed group, whatever its kind.
Deployed agentA managed agent the console launched itself.
BridgeA console agent that is the console's one member of a managed group. It carries commands in and reports back.

The screens have two halves. Console is the private side: the console's own group, its bridges, and Administration. Managed fleet is your side: the groups the console holds and what runs in them.

What you need

  • Java 21 or later on the host. Check with java -version.
  • A bundle and its passphrase. A bundle is one zip file, site.zip, that holds the console, the bma command line, every agent package, and the settings to start from. Your Bad Monkey contact or your build team gives it to you.
  • Free ports. The console takes 7580 for its screens and API, 7590 on loopback, and 7700 for its own peer. Each app host and agent takes a port of its own.
  • A home folder. The home holds the console's database, its vault of secrets, its keys, its logs and the agents it runs. The default is ~/.bma.
Note. This page describes what is built today. Anything still proposed is marked as such where it comes up. The screenshots were captured on 2026-11-13, before the menu put the four cards first, so a screen's menu may differ from yours.
aspace://guide/platform/install

Install and sign in

Give the command line a name

The command line is one jar inside the bundle. These two lines take it out and give it the name bma, which the rest of this guide uses:

unzip -j site.zip 'cli/*.jar' -d ~/bma-cli
alias bma='java -jar ~/bma-cli/bma-console-cli-0.1.0.jar'

Every bma command reads three settings:

SettingWhat it isDefault
BMA_HOMEThe console's home on this host.~/.bma
BMA_CONSOLE_URLThe console the command talks to.http://127.0.0.1:7580
BMA_TOKENAn access token. Without it, bma uses the one bma login stored.none

Run bma help <command> to see a command's options at any time.

Install from a bundle

An install checks the bundle, unpacks it into the home, starts the console, adds every package to the Catalogue, and imports the bundle's settings. Do it once per host, into an empty home.

  1. Decide how the apps your agents publish will sign people in. To use the console's own accounts, run export BMA_IDENTITY_ISSUER_ENABLED=true first. To use your organisation's identity provider, skip this and bind it later (Sign-on for pages).
  2. Run the install, naming the home, the passphrase and the port.
  3. Read what it prints: the console's address, where the admin password is, and how many packages it added.
bma bundle install --file site.zip --home ~/.bma --passphrase '<the passphrase>' --port 7580

Then write the site's settings into <home>/bma.yaml, so every later start uses them. The console reads this file at each start, and bma never rewrites it:

# bma.yaml
bma:
  identity:
    issuer:
      enabled: true      # the apps sign people in with the console's accounts
  • A wrong passphrase opens nothing.
  • A file that does not match its hash stops the install before anything is placed.
  • To move an existing console to a new bundle, use bma upgrade instead (Upgrade, back up, recover).
Note. bma demo up is for a developer's laptop, never a site. It starts an open console with no sign-in and a test fleet of its own.

Start, stop and check

The console runs in the background.

  • Start it after a stop or a reboot with bma up --console-jar <home>/bundle/console/bma-console-all-in-one-0.1.0.jar. It waits until the console answers, then prints its address. Set BMA_CONSOLE_JAR to leave out the flag.
  • Check it with bma status: the console group, its spaces, the bridges and the groups they hold, and the deployment targets. The Console screen shows the same.
  • Read its log in <home>/console.log when it does not start.
  • Stop it with bma down. The agents it started keep running by default:
CommandWhat happens to the agents
bma down or bma down --agents keepThey keep running, and bma down lists each one with its process id. The next bma up takes them back.
bma down --agents stopThey stop once the console has stopped. Their deployments stay in force, so the next bma up starts them again.
bma down --agents drainEvery deployment drains first, the console's own included, then the console stops.

--grace-seconds (60 by default) is how long the console may take to stop cleanly before bma down ends it. Give a console with a large history a few minutes. An administrator can also stop it from the Console screen with Shut down.

Sign in

The console keeps its own accounts by default. The install made one, admin, with a one-time password.

  1. Open the console's address, such as http://127.0.0.1:7580/ui/.
  2. Sign in as admin with the password in <home>/admin-password.txt.
  3. The Overview opens. Needs attention lists what needs a person; the Console card says whether the console works and which model provider is bound.
The console's sign-in page with Name and Password boxes and a Sign in button
Sign in. The console's own sign-in page. Ten failed tries lock an account for ten minutes, and a session lasts twelve hours unless Access Tokens sets another lifetime.

To sign the command line in, run bma login --user admin. It asks for the password and stores a token in the home, so later commands need no password.

  • A lost password is not lost for good. On the console's host, bma admin reset writes a new one to <home>/admin-password.txt.
  • bma admin reset --user <name> writes another account's password to <home>/password-<name>.txt.
  • Every sign-in and failed attempt is a row in Observe › Audit.

The setting bma.identity.mode picks how people sign in: local (the default), keycloak for an organisation's identity provider, or dev, an open edge for tests and bma demo up only.

aspace://guide/platform/tenancy

Tenants, fleets and groups

People and permissions

Each person gets an account and one or more permissions. A permission says what the person may do on the console:

PermissionLets a person
viewread every screen
operateacknowledge, route, retire and drain
configurepublish configurations and prompts
deploydeploy packages
governapprove, set the governance, and manage accounts and roles
finopsset budgets and price tables
sources, data, rules, flows, modelsmanage sources, the data model, rule books and guardrails, flows, and model cards

To add a person, open Administration, then Accounts and sign-in, and click New account. Give a lower-case name, a password of eight characters or more, and the permissions, one per line.

  • People who only use the apps your agents publish need an account too. Give them view, which changes nothing.
  • Roles (Administration › Roles) bundle permissions for groups of people, and carry over to an identity provider when you add one.

Tenants and fleets

Every console starts with the default tenant. To add one, open Administration › Tenants and fleets and click Add a tenant. You become its first fleet manager. A person who manages several fleets picks one at sign-in, and switches with the fleet selector in the header.

bma tenant add --id acme --name "Acme fleet"
bma tenant managers add --id acme --principal ops --scopes aspace:console:view,aspace:console:operate
bma tenant use --id acme          # this session now works in Acme's fleet
bma tenant state --id acme --state SUSPENDED
  • bma fleet use is the same as bma tenant use.
  • A suspended tenant's managers are refused at once, even mid-session.
  • Each tenant has its own console group, so one tenant's records never travel to another's.

Groups

A managed group is any group the console holds through a bridge. There are two ways to get one:

  • The console founds it. A deploy into a new group name, or an example, founds the group for you. The founding text is always <group>-v1.
  • The console watches a group you already run. A Watch is a work order a bridge takes: it joins your group through its seeds, its group id, or a beacon document, and holds it.
bma group preview --locator method=seeds,seeds=tls://127.0.0.1:7711,founding=shop-v1
bma watch add --group shop --method seeds --founding shop-v1 --seeds tls://127.0.0.1:7711 --spaces orders

The preview joins for a moment, reads the members, cards and spaces, and leaves. On the screens, Groups › Watch a group runs the same wizard. One bridge holds one group, and the console starts more bridges while Watches wait, up to 16.

Open a group to see its agents first, then its peers, spaces and configurations. View on Canvas draws the group as a block diagram: its peers, agents, cards, spaces and the app it publishes.

A group's canvas with columns for peers, agents, cards, spaces and the published app
A group on its canvas. The chat-service example: each block links back to its page.
  • Existing agents are agents that were in a group before the console came. bma existing-agents lists them.
  • Share pack. bma invite --group <group> prints a group's Join link (valid for an hour by default), its beacon, and a line per client language, so a colleague's agent can join.

Provisioned and enrolled

The console and a fleet exchange objects in two directions:

  • The console provisions configurations, policies, budgets, grants and the like. Its bridge writes them, and every agent trusts them from that peer alone.
  • A fleet member offers objects back, such as its agent card, a connector's assets, or a model server's card. An agent trusts these only from a member that proves an enrolled party.

Enrollment covers both a deployment the console placed and an application it never deployed: an existing AgentSpaces application can present its own keys, and the console then trusts them. Each tenant has a deployment signer key in the vault; Administration › Keys shows it, the deployments it signed, and Rotate.

aspace://guide/platform/cards

The four cards

Agents, models, assets and apps

Everything in a fleet is found by its card. The console's menu puts the four cards first, in this order: Agents, Models, Assets, Apps, then Access Tokens.

A card is a signed, leased advertisement that tells the group what one thing offers. Four kinds of card describe the four kinds of thing a fleet holds: agents, data, models, and applications.

CardWhat it advertisesWho issues itHow discovery finds it
AgentCardAn agent: its description and goals, one action per bound method with the entry types it consumes and produces, and the space each input comes from.The binder, when you bind an agent.By the types it consumes or produces, by name, or by meaning. Remote actions and planners read its actions.
AssetCardA data asset: its name, source URI, shape of data, freshness, and how to query or invoke it. A content store advertises itself with one too.A connector peer, one card per asset it holds.By asset name, shape, or access mode, or by meaning.
ModelCardA model the group may route to: its tasks, limits, licence, provenance, residency, engine, and the peers that serve it.The peer that serves the model, or a registry that admits models to the group.By name, task, engine, or residency site, or by meaning.
AppCardAn application that joins the fleet: how it connects, its shape, the spaces it reads, the actions it may request, its views, and the A2UI components it draws.The application's publisher.By kind, origin, or the formats it handles, or by meaning. A console lists the fleet's apps from these cards.

All four travel the same way. The issuer signs the card and gives it a lifetime (its TTL). Gossip carries it on the group's ads stream into every member's local cache, and the issuer refreshes it while the thing it describes is live. A card whose issuer stops refreshing it ages out of every cache when its TTL runs out, so a card can outlive its issuer by up to one TTL.

Every peer finds cards in its own cache, by structure: a card type plus conditions on its fields. Semantic discovery also ranks cards by meaning against a text query. Treat what you find as a hint about a live fleet: work still reaches a worker through its space and entry type, whether or not the card has arrived.

ONE GROUP: FOUR KINDS OF CARD ON ONE ADS STREAMagent peerthe binder issues itAgentCarddescription, goalsactions: consumes, producesspaceBindingsagent key, certificatesigned, leased, refreshedconnectorone card per assetAssetCardasset, uri, descriptionshape, freshnessaccess: query, invoke-opscostHintssigned, leased, refreshedmodel serverserves the modelModelCardname, version, taskslimits, licence, provenanceresidency, engineserverssigned, leased, refreshedapplicationits publisher issues itAppCardname, kind, shape, ownerreads, actions, viewsui: its A2UI componentsorigin, formatssigned, leased, refreshedthe ads stream: gossip carries every card to every member of the groupeach member's ad cache: the newest issue per id, aged out at its TTLfind(type, predicate)by structure: a card type and its fieldssemantic queryby meaning: names, descriptions, and tasksa planner, a console, or a caller reads the cards; work itself still routes by space and entry type
The four cards. An agent peer, a connector, a model server, and an application each sign a card and lease it. Gossip carries every card on the group's ads stream into each member's cache, where any peer finds it by type and fields or by meaning. A card whose issuer stops refreshing it ages out.

The Catalogue and deployments

An agent ships as a package: a signed jar in the console's Catalogue. The company calls its ready-made agents the Agent Catalog; once a bundle is installed, they are the packages on this screen. A deployment runs a package in a group, on a deployment target, with a number of replicas. The console keeps each deployment at its replicas, and records every change in the audit.

  1. Open Catalogue and click Deploy on a package's row. The Deploy an agent wizard opens.
  2. Package: check what it reads and writes, and the settings it needs.
  3. Group: pick a group, or type a new name to found one.
  4. Target: where the process runs. On a single host, the console's own host, boot-host-1, is chosen for you.
  5. Settings: replicas, the deployment id, environment values, and secrets written as NAME=vault://kv/<key>, so the value stays in the vault.
  6. Click Review, then Deploy. The group's canvas shows the agent within a minute.
bma catalogue list                                   # copy a package's id from the ID column
bma deploy --package <package id> --group claims --replicas 1
bma deployments                                      # every deployment, its state, and RUNNING
bma deployment restart --id <deployment id>          # stop every replica and start it again
bma scale --id <deployment id> --replicas 2
bma retire --id <deployment id>

bma deployments prints one row per deployment. STATE reads LIVE when every wanted replica runs, DEGRADED when one does not, ROLLING while it starts, and RETIRED or DRAINED once stopped. RUNNING is replicas running of replicas wanted. A DEGRADED row also has a finding on Needs attention that says what is missing and what the console is doing about it.

  • The Catalogue lists only packages you deploy. The console's own agents are never in it.
  • A package signed by a key the console does not trust is listed, but cannot be deployed.
  • Add packages that came after the install with Ingest from a registry, or bma catalogue ingest --reference <registry>/<name>:<version>.

Prompted agents

A prompted agent is an agent you make from a form, with no code: a prompt, a model, a conversation, and optionally tools. Open Agents › Prompted agents and click New prompted agent.

  1. Pick the group, name the agent, and pick a prompt from the prompt library.
  2. Keep the group's routing for the model, or pick one.
  3. The last step's checks say what the group has and lacks. Each check that blocks names the screen that fixes it.
  4. Click Deploy. The agent's page fills in six facts as the console observes them, and the agent is Ready once its configuration is applied and its card is seen.
  5. In the Test panel, type a question and press Send. The reply names the agent version and the prompt version it ran on.

The example Your first prompted agent (bma example up first-agent) gives you a group with a model gateway and a starter prompt, and nothing else. A group of its own means only your agent answers your questions:

# watches.yaml
watches:
- group: first-agent
  # the console holds the chat and the agents' results, so the agent's page shows each test's reply and the versions it ran on
  locator: { method: found, membership: open, founding: first-agent-v1, spaces: "conversations,results" }
# prompts.yaml
prompts:
- id: first-agent/helper
  # ...
      text: "You are a helpful assistant for a small team. Answer the question below in at most three sentences, and say so when you do not know.\nQuestion: {question}"
      variables:
      - { name: question, type: string, required: true, example: "What does this group do?" }
      # ...
      guard: { maxTokens: 300, forbids: [] }
      groups: [first-agent]
  • Chat neighbors. Before you add an agent to a busy group, read the form's chat neighbors check. It names every agent that also listens on the conversations your agent would answer. It warns and does not block.
  • Reply chains. An agent answers at most three times in one reply chain, so two agents never talk forever.
  • Pages. A prompted agent answers in A2UI Express by default, so it can draw small pages in its replies (Apps and pages).

Versions, rollback and evaluation

An agent's version is its configuration's version.

  • History. A prompted agent's configuration keeps its last 20 versions. Its page lists them with what each pinned.
  • Roll back writes an earlier body as the next version, through the governance in force.
  • Prompt pinning. The form offers every published version of the chosen prompt, or "follow the newest". The agent renders exactly the version it pins.
  • The model pin is soft. The gateway may answer with another model under its routing policy, and the agent's page then says "pin not honoured" and why.
  • Evaluate this version. An agent's evaluation set (cases, a pass mark, a model, the mock by default) runs in a scratch group eval-<group>-<agent>, which is torn down afterwards. Deploy's checks read the run of the very version they deploy.
  • Tune this card makes a new agent from a prompted agent, with the same prompt, model and tools and a conversation of its own. Its card says which agent it was tuned from. On the command line: bma spec tune <group>/<agent> --name <new agent>.

Models

Agents reach a model through their group's model gateway, never directly. Models says which models each group may use.

  1. Open Models › Providers and fill in Add a provider: OpenAI, Anthropic, or an endpoint that speaks OpenAI's API, with its base URL and API key.
  2. Click Check the key. The console asks the provider for its list of models, which spends no tokens, and offers them.
  3. Tick the models you want and click Add the provider. The key goes into the vault and is never shown again.
  4. On a provider's row, pick a group and click Bind to group. The console admits one model card per model into that group.
  • A model card is the record of one model: what it does, where it came from, its licence, where it may run, and the engine that serves it. A model on your own hardware is mirrored, submitted, admitted, then placed on an engine (Ollama or vLLM).
  • Retire on a card, or bma model retire <id>, withdraws it from the group. Agents that look up the group's models use the change on their next request.
  • Gateways, Servers and Routing tabs show each group's gateway and policy, every model server, and which model answers which kind of request.
  • For a test site that should spend nothing, set bma.models.mock: true in <home>/bma.yaml. The mock answers every chat by repeating the question.

Assets and tools

An asset is something a source publishes: a table, a saved query, a REST operation, or a tool of an MCP server. Everything below is under Assets, whose tabs are Tools, Queries, Data sources, MCP hosts, Data agents and Configurations.

  • Data sources. Add source takes a PostgreSQL database, an OpenAPI or plain REST service, an MCP server, an A2A agent, or files (a path, an S3-compatible store, or an HTTP location). The console derives the connector's configuration, shows a preview, and deploys the connector. Credentials go to the vault.
  • Choose tools. For an MCP source, tick the tools the fleet may use. Only ticked tools are published, each as an asset card.
  • Before the agent calls it. On a tool's page, set this to Chat and the agent asks the person in the conversation first. The connector checks the yes itself, so an agent cannot skip it. The console proposes Chat for a tool that may destroy data or reaches outside systems.
  • Queries. Save one read-only select over a PostgreSQL source as a card of its own. The connector runs it read-only with a row cap.
  • Give tools to an agent in the Tools step of New prompted agent. The connector refuses a call the agent was not granted.

The example An MCP server's tools, no code (bma example up mcp-desk) shows all of this in one group. Its source is one record:

# data-sources.yaml
data-sources:
- id: helpdesk
  # ...
  spec:
    id: helpdesk
    kind: mcp
    url: http://127.0.0.1:7794
    group: mcp-desk

A server that runs as a command (stdio:npx -y <package>) is off unless an administrator sets bma.sources.stdio.enabled=true.

Decks

A deck keeps everything a group holds as one thing with versions: its agents' configurations, deployments, its watch, data sources, prompts, flows, rule books and apps. Use it to roll a whole group back after a change, or to carry a group to another console.

  • Save a group as a deck (Decks screen) makes version 1. Saving again adds a version only when something changed.
  • The deck's page shows which version is in force, and each part's state: in force, differs or missing.
  • If it fails, per part: pause (the default), stop, or substitute. Fix the part and click Resume.
  • Roll back to this deploys an earlier version, and retires agents the earlier version did not have.
bma deck save --group <group> --name <deck>
bma deck rollback <group>/<deck> --version 1
bma deck export <group>/<deck> --dir <folder>
bma deck import --dir <folder>                       # on another console; the digest stays the same
aspace://guide/platform/apps

Apps and pages

How a page reaches people

An app is a page for the people who use your agents, at its own address. The console does not draw the page itself:

  • Each group with an app runs an app host, an agent that serves the group's pages at /apps/<app>/.
  • Beside it runs an app feed, which keeps each page up to date with the group's records over a stream.
  • Pages are A2UI: an open standard for agent-drawn interfaces. The A2UI guide covers the open side.

Apps › Published applications lists every app with its address, its group, its sign-on and its open sessions. Click an address to open the page in a new tab. The Look and feel tab sets an app's colours.

The greeter's chat page with a hello, a services answer and a help answer
An app page. The greeter example's chat: one agent in one group, and the simplest chatbot.

Designs

A page is drawn from a design: the components on the page, and the records each one shows. The greeter example's design puts a chat first and binds it to the group's conversations:

# designs.yaml
designs:
- id: greeter-page
  # ...
      app: app-greeter
      group: greeter
      name: The greeter
      signOn: none
      pages:
      - id: greeter-chat
        title: Ask the greeter
        catalogId: agentspaces-widgets
        components:
        - { id: root, component: Column, children: [chatCard] }
        - { id: chatCard, component: Card, child: chat }
        - { id: chat, component: ChatInput, key: main, agent: greeter, placeholder: "Say hello, or ask what services are available", suggestions: ["Hello", "What services are available?", "Help"] }
      # ...
      bindings:
      - { page: greeter-chat, path: /conversations, space: conversations, type: ChatMessage, max: 100 }
  • An agent can also publish a page of its own, and a prompted agent can draw one in its reply.
  • Apps › Publish an interface publishes a page from the console, and Unpublish takes it down.
  • A page served elsewhere can sit behind the host at the same address and the same sign-on.

Sign-on for pages

An app that asks for sign-on sends people to the tenant's identity provider.

  • With the console's own issuer turned on (Install from a bundle), people sign in with a console account.
  • To use your organisation's provider, open Administration › Tenants and fleets, click Bind an identity provider, and give its issuer, client and secret. The console checks the issuer before it saves.
  • Until a tenant has a provider, its apps that ask for sign-on answer 503, unavailable.

The page names the person who signed in and offers Sign out. A chat on the page answers as that person, under the group's guardrails and budget.

Apps in other places

  • In an MCP host. The app page's In an MCP host card shares an app. The console's MCP server then lists it (list_shared_apps) and opens it (open_app) as an MCP App, drawn by the platform's renderer inside the host.
  • Over A2A. With bma.gateway.serve-port set, a group's gateway agent serves an A2A agent card with one skill per assembled app, and answers with the app's A2UI messages.
  • A screen check. An app's page can turn on a judge agent that samples the app's screens (a fifth by default) and raises a finding on a failure. It spends tokens, so the console asks first.
  • With no console. bma example image <name> writes a standalone container image of an example: its agents and the state the console would carry, with no console in it.

When an app shows no content

A page that shows its frame and nothing in it means an agent behind it is not running, or the group cannot reach the console. Check in this order:

  1. Run bma deployments. Each of the app's rows should read LIVE with RUNNING full, such as 1/1.
  2. Run bma example up <name>. It starts only what is not running and prints running, adopted or launched per deployment. Running it again is safe.
  3. When the rows read LIVE and the page is still empty, run bma deployment restart --id <deployment id>.
  4. Run bma example status <name>. Its bridge line per group says held by bridge-1, or no bridge holds <group> since <time>. The console takes a group back on its own within about a minute.
aspace://guide/platform/govern

Rules, guardrails and flows

Governance and approvals

Approvals are off until you turn them on. The Governance screen's wizard (or bma governance wizard) says which families need an approval (rule books, models, flows, prompts, decks and so on), who approves, and the quorum. bma governance show prints what is in force.

Everything that waits for a person lands on Administration › Approvals. People in the loop says more.

Rule books

A rule book is plain sentences in six forms: a situation, a reaction, a goal, a constraint, a maintained watch, and a purpose. The console compiles them, and a gate on each peer refuses a write the book forbids and names the sentence. This is from the example Order desk rules (bma example up rules-basics):

# rulebooks.yaml
    sentences:
    - { unit: large, text: Call it large when there is an Order whose amount is over 500 }
    - { unit: approve-large, text: "When an Order arrives and it is large, then ask for approval" }
    - { unit: jury-unaddressed, text: "When a Shipment arrives and it is unaddressed, then ask the jury" }
    - { unit: paid-in-time, text: "Whenever an Order arrives, make sure a Payment happens within 2 minutes" }
    - { unit: paid-first, text: Always a Payment before a Shipment }
    - { unit: three-parts, text: At most 3 Shipments for one key }
  • A book that names types the fleet has not written yet waits, and says what it waits for.
  • Replay shows what a book would have done, without writing. A key can be turned off.
  • Roll back makes an earlier version a new draft. Retire (bma rulebook retire --id <id>) withdraws the book's entries from every group it reached.

Guardrails

A guardrail policy is one list of checks per group. Each check has a kind, where it reads, and what a hit does:

  • Kinds: prompt-injection, personal-data, terms, domains, schema, or a vendor's content-safety.
  • Where: the gateway's prompt or completion, or a door on a lane, which checks entries as they arrive.
  • On a hit: refuse, redact, quarantine (held for a person), or finding (recorded, and the line goes on).
  • onError: what a slow or down provider yields, refuse or pass.
# guardrails.yaml
    policy:
      onError: pass
      checks:
      - {provider: builtin, kind: prompt-injection, where: gateway, action: refuse, on: prompt}
      - {provider: builtin, kind: personal-data, where: gateway, action: redact, classes: 'ssn,card', on: prompt}
      - {provider: builtin, kind: domains, where: gateway, action: refuse, allow: example.org, on: completion}
      - {provider: builtin, kind: schema, where: door, action: quarantine, review: 'true', required: requestId, spaces: [intake]}
A published guardrail policy with its checks listed
A guardrail policy. The chat-service example's policy, published: prompt injection refused and personal data redacted. Guardrails live under Rules.

The example Front desk guardrails (bma example up guardrails-basics) walks an injected line refused, a card number redacted, and a door's quarantine released or dropped.

Flows

A flow is stages over a group's lanes. Each stage is run by an agent of the fleet, or by a step the steps host runs: a router, a mapper, an enricher, a splitter, a gather, a deadline, a model step, or a person's step. The flow's page reads as a plan, with each stage's settings in words and its progress.

# flows.yaml
- id: parcel-label
  # ...
    name: Parcel labels
    group: flows-basics
    stages:
    - { id: label, kind: step, step: model, lane: fragile, into: labels, cue: PackedParcel, result: Label, settings: { key: orderId, promptRef: parcels/label } }
    # ...
  • Save version checks the typed edges: a stage whose cue nothing produces is a problem, and a draft with problems cannot be submitted.
  • Conformance counts the members running the active version.
  • Retire (bma flow retire --id <id>) withdraws the flow and its step configurations from the group.

The example Parcel desk flows (bma example up flows-basics) runs three flows that use every step kind.

The prompt library

Rules › Prompt library holds every prompt the fleet runs: a text with {placeholders} and declared variables, versioned, and bound to groups.

  • Each prompt has the lifecycle every family has: draft, review when the governance asks, approved, published, retired, history, diff and rollback.
  • A prompt's page shows which agents run which version, and Try it puts it through a group's gateway under the routing, budget and guardrails in force there.
  • The shipped prompts are seeded and marked bundled, so you edit a copy.
  • On the command line: bma prompt list, show, put, submit, approve, publish, retire, history, diff and rollback.
aspace://guide/platform/hitl

People in the loop

What waits for a person today

Several parts of the platform hold work for a person. All of them land on Administration › Approvals:

  • a data agent's confirmation, with the candidate records side by side;
  • a configuration, rule book, flow, model or deck version, when the governance asks for an approval;
  • a rule book's "ask for approval" reaction, and a flow's person's step;
  • a shopper's purchase before a mandate is signed (Commerce);
  • a door's quarantined entry, in the review queue.

Each person casts one ballot and the quorum decides. A reminder finding opens at half the deadline, and the deadline expires the request. An approver sees the requests whose electorate names a role they hold. The jury is the other way to decide: a configured set of jurors, people or model jurors, within a budget.

Administration Approvals with large claims waiting, each with Approve and Reject
Approvals. The claims desk example: large claims wait for a person, each with Approve and Reject.

A tool can also ask in the conversation itself: a tool set to Chat (Assets and tools) runs only after the person says yes there.

The HITL desk

Most people who approve never open the console, and a group may have no console at all. So the platform is adding approval desks: ordinary fleet agents that hold requests for people.

Built (first, headless slices, 2026-11-25):

  • The open plumbing in AgentSpaces: a desk advertises itself as an AssetCard of shape hitl:<kind>, and its decision binds to one call by a hash of the arguments.
  • The package bma-hitl-desk: desks with their deciders, quorum, not-by: requester unless self-approval is allowed, a deadline, and what a timeout does. Requests live in the group's hitl-desk space, so a restart finds them. A decision is valid for an hour.
  • A prompted agent's tool confirmation may name a desk, such as #finance-approvals. The call waits, the agent says in the thread that it asked, and the call runs only once the desk approves these exact arguments.

Proposed, in build (not yet in a bundle): the Approval Desk app, a confirm block in the chat widget, a pop-up alert for a signed-in approver, the source gate installed in the connectors, escalation, decisions in the audit, and an example in the bundle.

aspace://guide/platform/doors

MCP, access tokens and A2A

MCP doors

The console speaks MCP over Streamable HTTP on its own port, at two addresses:

AddressWho it is forWhat it offers
/mcpa tenant's people and their MCP hoststhe shared apps: list_shared_apps and open_app, plus app_surfaces and app_action for the app's frame
/mcp/consolethe console's operatorsoperator tools such as list_deployments, get_deployment, list_findings, list_assets, get_lineage, drain_worker, deploy_package, export_desired
  • The tools call the same API as the screens, so they leave the same audit trail. /mcp admits view and operate.
  • Signing a tenant's people in. With the console's issuer on, the console runs an MCP authorization server at /oidc/mcp: client registration, a local or brokered sign-in, consent, PKCE, access tokens of 10 minutes and refresh tokens of 8 hours.
  • Assets › MCP hosts is where a tenant administers the MCP hosts it allows.

Access Tokens

Access Tokens, the menu entry after Apps, holds every kind of token the console issues in the tenant: MCP access and refresh tokens, console sessions, app sessions, the sign-on doors' sessions, share-pack Join links, and rollout delegations.

  • It lists who holds each token, for what, when it was issued, last used, and expires. A token's value is never shown.
  • Revoke ends one token. Revoke everything a person holds ends their console sessions, MCP sign-ins and app sessions in the tenant at once.
  • Every issue, refresh, revocation and refusal is a row in Observe › Audit.
  • Lifetimes are set per tenant within each kind's bounds:
KindDefaultBounds
MCP access token10 minutes5 minutes to 1 hour
MCP refresh token8 hours1 hour to 30 days
Console session (console-wide, set in the default tenant)12 hours15 minutes to 7 days
App session30 days1 hour to 90 days
Sign-on door session8 hours15 minutes to 24 hours
Share-pack Join link1 hour10 minutes to 24 hours

A2A

The platform speaks A2A 1.0 and 0.3, chosen per request by the A2A-Version header.

  • An outside A2A agent in your fleet. bma external add --card-url <url> --jwks-url <url> --group <group> fetches and verifies the agent's card, shows its skills, and founds a guest group for it. bma external promote and bma external revoke follow. Groups › External agents lists them.
  • An A2A agent as a source. A data source of kind a2a makes an outside agent's skills into assets the fleet can call.
  • Your apps over A2A. A group's gateway agent serves an A2A card for its apps (Apps in other places).
aspace://guide/platform/commerce

Commerce

Agents that buy and sell

Commerce is built and opt-in per group: a group that trades deploys three peers from the Catalogue.

  • bma-commerce-merchant publishes a UCP business profile at /.well-known/ucp over the group's priced assets, signs every checkout, and settles a verified payment mandate.
  • bma-commerce-shopper buys a purchase request after its basis (a person on Approvals, or the jury) and within its budget.
  • bma-commerce-payment issues AP2 payment mandates from instruments held in a vault, under per-mandate and per-day limits.

Every mandate and order lives in the group's reserved commerce space. The Commerce screen has Mandates, Orders, Purchases and Merchants tabs, and FinOps prices each settled checkout. On the command line: bma commerce profile, carts, mandates, orders and buy.

aspace://guide/platform/ops

Operations

Health at a glance

  • Overview: Needs attention (serious and critical findings, and approvals asked for), the Console card, and the Managed fleet card with groups, agents, deployments and spend.
  • Console: whether the console works (its group, its database, the reconciler's last sweep, the identity mode), then each bridge and the group it holds.
  • The activity stream on the right shows findings, alerts, incidents, approvals and command results. Everything quieter sits under Engineering details.
  • On the command line: bma status, bma findings, bma deployments.

The console is quiet by default: nothing toasts on its own, and a group no bridge reports yet is a note first, and one warning after ten minutes.

The bulletin and alerts

The console folds findings into alerts and delivers each one to its routes: a webhook (HTTPS, signed with HMAC-SHA256), and always the space named bulletin.

  • The platform keeps alerts in bulletin, in the console group and in every managed group. It never claims a space named alerts: a space of that name is yours.
  • Screens, the command line and the notifier still say "alert". bma alerts list lists them and bma alerts ack --id <id> acknowledges one.
  • A page can acknowledge an alert too, and Observe › Audit shows who acknowledged it and from where.
  • Incidents fold related findings under Observe › Incidents, by the rules under Incident rules.
Observe Alerts listing the Kismet watch's alerts
Observe › Alerts. The alerts of the Kismet pattern watch, one of the advanced demos.

Observe and FinOps

  • Request timeline: everything one key touched, such as an orderId, across entries, claims, findings and commands. bma timeline --key <key>.
  • Audit: who did what, when, with what outcome. bma audit --limit 50.
  • FinOps: Spend, Budgets, Savings proof and Price tables. A budget says what happens when it is spent.
  • Logs: a deployment's logs button shows the last lines of each replica's output.

Keeping agents running

The console keeps every deployment true to what runs:

  • LIVE means running. Every half minute the console compares what each deployment wants with what runs. A row reads LIVE only while every wanted replica runs.
  • A restarted console takes its agents back. It adopts each running process it can prove is the replica, and starts again what has died.
  • A crash loop gets three fast relaunches. Then, if another live member already runs the same kind of agent, the console gives up on this replica and says which member covers it. If none does, it tries after 15 minutes, then every 30 minutes, and never gives up.
  • A sleeping laptop loses its hold on each group; when it wakes, the console takes the groups back and the pages fill again. For a demo, keep the laptop on power and awake.

The settings are bma.deployer.fast-restarts (3), bma.deployer.slow-restart-first (PT15M) and bma.deployer.slow-restart-every (PT30M).

Upgrade, back up, recover

Upgrade moves the console to a new version in place: it saves your settings, stops the console, installs the new one, starts it, brings the settings back, and checks the version. A step that fails after the stop starts the old console again. Take a backup first.

export BMA_HOME=~/.bma
bma upgrade --bundle site-new.zip --passphrase '<the passphrase>'

Back up in two parts:

  • The desired state. bma export --dir backups/2026-11-25 writes every group, deployment, configuration, prompt, rule book, flow, model card, budget, tenant, role and watch, one YAML file per kind, with a manifest of their hashes. It never holds a secret.
  • The home. The export leaves out the vault, the keys, the local accounts and the history. Run bma down (the agents keep running), copy the whole home, then bma up. Its db, vault, keys, console.secret and bma.yaml matter most.

Recover:

What happenedWhat to do
The console does not startRead <home>/console.log; its last lines name the cause.
The admin password is lostOn the console's host, run bma admin reset.
An upgrade failedNothing: the upgrade started the old console again. Its trail is in <home>/upgrades/<date>/upgrade.json.
The host rebootedRun bma up. The console starts again every agent that was running.
The whole fleet restartedNothing: within a few minutes the console writes back every group's rule books, flows, model cards, guardrails and configurations.
The home is lostRestore it from its copy and run bma up, or install a bundle into a new home and bring the desired state back.

To bring a desired-state export back, see what would change first, then apply it. An import goes through the same checks and approvals as a change on the screens:

bma import plan --dir backups/2026-11-25      # a dry run: what would change
bma import apply --dir backups/2026-11-25

The examples

The examples are working applications you deploy in one step. Each founds its group, deploys its agents, binds a model, publishes its app, and drops in sample data. Open Getting started, click Deploy on a card, then Open the page once its agents are live.

Getting started with a checklist, the three layers and the example cards
Getting started. The first-ten-minutes checklist, the three layers, and the examples under Learn one feature.
  • Learn one feature: Greeter, Your first prompted agent, An MCP server's tools, Order desk rules, Front desk guardrails, Parcel desk flows.
  • Applications: Expense desk, Summary desk, Chat service, Trading group, Geo watch, War room, Claims desk, Invoicing desk, Workbench.
  • Advanced demos (they ask you to sign in): Graph RAG desk, Kismet pattern watch, NAVDocs knowledge desk, Harbour watch, Ecuador maritime watch.

bma examples lists them, bma example up <name> deploys one, and bma example status <name> says where it stands. Deploying an example twice is safe. To remove one, retire it on Getting started.

aspace://guide/platform/cli

The command line

Every command family

The bma command line does everything the screens do. The full reference, with every option of every command, is generated from the command line's own definitions into the platform's docs/cli/index.html. The families:

FamilyCommands
Run the consoleup, down, status, bundle build, bundle install, upgrade, export, admin reset, k8s up, demo up
Sign-in, tenants and accesslogin, idp up, tenant ..., fleet use, roles, role put, principals, invite, vault put
Examplesexamples, example up, example status, example files, example image
Packages and deploymentscatalogue ..., deploy, deployments, deployment restart, scale, drain, retire, watch add, group ..., existing-agents, external ...
Decks and tuned cardsdeck ..., spec tune, spec list
Models, prompts and guardrailsmodel ..., routing ..., guardrail ..., prompt ...
Applicationsapp ..., profile put, commerce ...
Data and the catalogsource ..., data-source ..., catalog ..., import plan, import apply, datamodel ..., data-agent ..., asset ...
Rules, flows and approvalsrulebook ..., flow ..., plan ..., approval ..., config ..., governance ...
Observe and costtimeline, alerts list, alerts ack, findings, audit, finops ..., budget ..., pricetable ...

A command that changes something goes through the same API, checks, approvals and audit as the screen that does it.

aspace://guide/platform/appendix

Appendix: how it works and why

The console group and its agents

The console is a set of agents in its own group, fixed by convention: the name console-local, the founding text console-local-v1, and the console's own peer (127.0.0.1:7700) as the seed. Nobody types these. An installation can change them, but rarely needs to.

  • The console agents own the work: the reconciler, the bridges, the observer, the deployer, the audit agent and the planner.
  • The console also places five agents of its own into its group: the app host, the app feed, the operations center, the FinOps dashboard and the notifier.
  • Sides. A package says whether it belongs on the console's side or the fleet's. The console refuses a console package in a managed group, and a fleet package in the console group.

Why: the console is managed the same way as the fleets it manages, and nothing about its own group is something a person has to think about.

Bridges: what crosses, and what does not

A bridge is the console's one member of a managed group.

  • Commands in. It carries the console's commands into the group: configurations, policies, rule books, flows, model cards, grants, and so on, the platform's fixed write set.
  • Reports out. It answers with bounded reports, one record per group per kind (roster, lanes, findings, policy, usage, catalog, apps, commerce, and a digest), rewritten only when something changed.
  • Nothing is mirrored. No fleet's data is copied into the console, and nothing of the console into a fleet. A timeline or a log page is fetched on request.

Why: a mirror of every group's records cost tens of thousands of leased copies per group, renewed every thirty seconds. Bounded reports keep an idle console idle, and every crossing is a defined request with a defined answer.

The archive: one writer of observed state

The console splits commands from reads (CQRS). Commands go out through bridges. Bridges emit observation events as entries change, and one archiver agent is the only writer of observed state into the console's database, H2 or PostgreSQL. Every screen and console agent reads from that archive.

  • Retention. Entry events stay 30 days; items, holds and lanes 90; closing items such as usage hours and settled commerce 400; the console's own events, the audit and sign-ins 365. The archive prunes itself daily.
  • Restarts. After a restart, each group shows its last archived state, marked stale, until a bridge holds it again. A command the last run left unanswered raises a finding.
  • Outages. With the database down, observed screens and changes answer 503 until it returns. A share of the ingest queue is kept for the audit, so an operator's change is still recorded on a busy site.
  • Busy sites should plan PostgreSQL; set bma.persistence.kind: postgres with its URL, user and password.
  • Proposed: an archiver in its own process, bridges on other hosts, and the archive's export are later phases of the design, not built.

Why: one writer means one history. Screens no longer mix five sources, and the history survives a restart.

No message broker

The console runs no message broker or bus, and an installation needs none. AgentSpaces carries every command out to a fleet and every observation back. A site that wants events on AMQP or Kafka for its own processing adds a publishing agent, deployed like any other agent, outside the console's core.

Why: AgentSpaces is the core of the product. A later need is met by an agent, never a broker in the core.

Why a restart keeps apps up

  • Agents outlive the console. Each agent the console starts is a process of its own, with a small record in the home: its process id, when it started, and its folder.
  • Adoption is proven. At start, a process whose id, start time and folder match its record is taken back as it is. A process id another program took since is never touched.
  • Never twice. Before any launch the console looks for a live process already running that replica, and adopts it instead.
  • Fast first content. A person who signs in to a page is a session the app host writes in the group. The bridge shows it to the console within a tenth of a second, and the console grants access at once. The path aims at under two seconds from page load to first content.

Ports

PortWhat
7580the platform API (/platform/v1), the screens (/ui/), SCIM, the OpenAPI document, /mcp and /mcp/console
7590the fleet console of AgentSpaces itself, on loopback only, read through 7580
7700the console's own peer
7788the console group's beacon document
7801 to 7999the stable ports the deployer gives app hosts and feeds