---
url: /another-agentic-system/vision.md
---
# Vision: the system

What the system is meant to be, in the owner's words, and how far the code is from it. The summary below lists each requirement as built on the pinned real agent image, built on mocks, partly built, planned or not built; the proof, the history and the detail are under the blocks. Everything built was proven on mocks, and the owner has not tried this state.

::: in-depth Status notes: when this page was written and checked

> Status: **written 2026-10-01 from the owner's review of the build; brought up to date on 2026-10-03.** This page says what
> the system is meant to be, in the owner's words where possible, and how far the code is from it. The build order toward it is
> the [MVP](mvp.md); the decisions it needed are
> [ADR 0022](decisions/0022-platform-provisions-agents-system-discovers-them.md) to
> [ADR 0026](decisions/0026-agent-mentions-as-structured-references.md), all accepted.
>
> **Update, 2026-10-01 (later the same day):** the owner delegated the open points, and the five ADRs are
> accepted, each with a dated status note; open questions 34, 35, 36 and 39 are closed.
>
> **Update, 2026-10-03: every capability below is built, or listed as not built with its reason.** The sections "Built" and
> "Not built" under each capability, and the table that follows this note, were rewritten against the code of the branch
> that ends plan 11 (the orchestrator, the web, `dev/` and the pinned adam-rs image), not against the earlier text of this
> page. The part that is **not proven** is the same for every row: all of it is proven on mocks (WireMock agents, a scripted
> model, a mock search, a mock GitHub, a mock registry, a mock OIDC issuer), by the scenario scripts of
> [`dev/`](../dev/README.md) and by tests; nothing was run against a live model, GitHub.com, the platform or a real browser
> agent (there is none); the web is tested in Chromium against its own mock server, never against the compose stack; and the owner has not yet tried this state. See [Not proven](#not-proven) and
> [ADR 0037](decisions/0037-the-mvp-is-complete-against-its-build-order.md). Statements about this repository's code were
> checked on 2026-10-03 against main at `1a62efd` ([#135](https://github.com/vymalo/another-agentic-system/pull/135)) plus the pin [#136](https://github.com/vymalo/another-agentic-system/pull/136) and the skills pull request [#137](https://github.com/vymalo/another-agentic-system/pull/137).

:::

## Why this page exists

The owner tested the build of MVP steps 1 and 2: the orchestrator, the web chat, and adam-coder as
the only agent. Their verdict:

> "the adam part is not complete; the system part is not even 10% in the direction I thought it
> would be. The MVP is not ready."

What existed then (2026-10-01) was plumbing. The orchestrator spoke A2A to the agents listed in a static YAML
file (`AGENTS_FILE`), the web chat spoke AG-UI, a verification gate checked the work, and one
coding agent was wired in. It worked end to end, but it was a chat for testing one agent.

The system should be something else: **the person's whole environment, made known to agents.**
Which agents exist, which interface components the person's screen can show, which tools the person
has attached, which repositories they are working in. Agents should know all of it and use it.

> "The -system is not simply a chat for testing, it's a 'system'."

## The actors

```mermaid
flowchart LR
  P((Person)) --> W[Web UI<br/>defines the components]
  W -- AG-UI --> O[Orchestrator<br/>no AI, one event log]
  O -- A2A only --> A[Agents<br/>coder · researcher · browser · chat]
  Pl[Platform<br/>provisions A2A agents] -. registry: agent cards, releases, tags .-> O
  Pl -. hosts .-> A
  A -- MCP --> T[Tools<br/>GitHub · search · filesystem · …]
  W -. per-conversation MCP tools .-> O
  A -- push --> G[(git)]
```

* **The person** talks in the web UI, picks agents, mentions others, attaches tools, answers
  through components.
* **The web UI** owns the components (list, cards, choices, stepper, mermaid, web view, …) and
  describes them to the system. It knows nothing about any agent's internals.
* **The orchestrator** carries everything between the UI and agents and keeps the one event log
  ([ADR 0001](decisions/0001-rust-state-machine-on-postgres.md)). It has no model of its own.
  **It talks to agents only over A2A** ([ADR 0007](decisions/0007-protocol-only-dependencies.md)),
  and that stays true for everything on this page: every new capability is an optional A2A
  extension, detected from the agent card ([ADR 0008](decisions/0008-platform-integration-via-a2a-extension.md)
  pattern).
* **Agents** are A2A agents. Each does one kind of work well: coding, research, browsing, casual
  chat. adam-coder ([ADR 0014](decisions/0014-adam-coder-default-agent-over-a2a.md)) is the first.
* **The platform** (another-agentic-platform) provisions A2A agents and manages them: system prompt,
  configuration, revisions, promotion, tags. It is the registry the system reads. "The platform
  should not know about the UI normally, it just provisions A2A-capable Agents."
* **Tools** are MCP servers. Some belong to an agent; some the person attaches to a conversation.

## Requirement by requirement, 2026-10-03

"Built" means the code is on the branch and a scenario script or a test asserts it, on mocks. "Not built" is said with its
reason. The proofs are the scripts of [`dev/`](../dev/README.md#run-the-scenarios) (run by CI in
[`coder-e2e.yml`](../.github/workflows/coder-e2e.yml); a script is a check on the real orchestrator over HTTP and AG-UI, not a
browser), the Rust tests under [`orchestrator/crates/e2e/tests/`](../orchestrator/crates/e2e/tests/), and the web's Playwright
specs under [`web/e2e/`](../web/e2e/) (run against the web's own mock server).

In short (the icons are the [legend of the reference](api/README.md#status-icons)):

* ✅ built · run against the pinned real agent image: requirements 3, 5, 7 and 9.
* 🧪 experimental · built on mocks: requirements 1, 2a, 2b, 4, 6 and 8.
* ⚠️ partial · requirement 3b, a person's own MCP server is built and its icon is not; requirement 4b, a real researcher, browser and coder in the football run.
* 🚧 planned · requirement 6b, a repository's devcontainer as its work environment, which waits on adam's own slice.
* ❌ not supported · requirement 2c, not built.

::: in-depth The requirements, one row each: state, proof and ADR

| # | What the owner asked for | State | Proof | ADR |
|---|---|---|---|---|
| 1 | The platform is the agent registry: agents discovered live, no restart, releases from each card | 🧪 experimental · **Built**, against a mock of the contract; the registry half also against the platform's real registry in the platform's CI (the platform's operator now serves the registry, and its kind end-to-end `chain-e2e` (vymalo/another-agentic-platform#34, *verified 2026-10-17* in run 38994193619) has this system's orchestrator, pinned at `sha-8df44c6`, list an agent the platform made, by audience); releases from a card only on mocks (the platform's v0 has no release-channels extension) | `dev/registry-e2e.sh`, `crates/e2e/tests/registry.rs`, `web/e2e/registry.spec.ts` | [0022](decisions/0022-platform-provisions-agents-system-discovers-them.md) |
| 2a | The UI defines its components; they are sent once at the start, again when a newer UI joins, and an agent can refetch them | 🧪 experimental · **Built** | `dev/choices-e2e.sh` (a newer catalog recorded on the same thread), `crates/e2e/tests/ui_catalog.rs`, `thread_tools.rs`, `web/e2e/catalog.spec.ts` | [0023](decisions/0023-ui-component-catalog-as-an-a2a-extension.md) |
| 2b | Rich answers: Choices (the smarter `ask_user`: a title, a description, typed questions, pictures, a free box, and from version 7 a yes or no, a number, a scale, a day and a list to put in order, and from version 8 a question that shows a picture, a diagram, cards, a chart or code with it), Cards, Mermaid, Image, combined in one answer; and an agent's **plan** as one checklist that updates in place, with a dropped state and notes, pinned in the panel | 🧪 experimental · **Built** (catalog version 8; Choices from version 5; the five kinds of question, `show` and the plan are proven on the web's mock only, no adam-rs agent asks with them or sends a plan yet) | `dev/choices-e2e.sh`, `dev/cards-e2e.sh`, `dev/artifact-e2e.sh`; `web/e2e/choices.spec.ts`, `choices-deck.spec.ts`, `choices-v7.spec.ts`, `choices-v8.spec.ts`, `plan.spec.ts`, `cards.spec.ts`, `files.spec.ts` | 0023, [0032](decisions/0032-files-from-agents-live-in-an-artifact-store.md) |
| 2c | List, Stepper, Agent suggestion, Skill request, Web view, Notification opt-in; rich input other than a choice | ❌ not supported · **Not built** | none | 0023; questions [37](open-questions.md), [38](open-questions.md) |
| 3 | MCP tools attached to a conversation from the UI, used by the agent, one icon per tool on its step | ✅ built · **Built** for the servers a deployment lists; `dev/tools-e2e.sh` runs it on the `chat` adam-agent of the pinned coder image with a scripted model (`dev/tools-e2e.sh:4,10`; passed in CI run 45959707562, *verified 2026-11-27*) | `dev/tools-e2e.sh`, `crates/e2e/tests/tool_relay.rs`, `tools.rs`, `web/e2e/tools.spec.ts` | [0024](decisions/0024-mcp-tools-attached-per-conversation.md) |
| 3b | A person enters the URL of an MCP server of their own; the icon an upstream server offers | ⚠️ partial · **Built** for the URL ([ADR 0046](decisions/0046-people-add-their-own-mcp-servers-secrets-in-a-credential-broker.md), accepted 2026-10-11): a person who holds `tools.user.add` adds an MCP server of their own (no authentication, a bearer token, an API key, or OAuth 2), its credentials sealed, on the web's page "My tool servers" (`/tools`), attaches it to a conversation, and the chat's agent calls it through the relay; it ran against the pinned real agent image, with a scripted model (*verified 2026-11-27* against `orchestrator/crates/api/src/user_tools.rs`, `web/src/app/tools/page.tsx` and run 45959707562 of `coder-e2e.yml` on `main` at `df5ace5`, where `user-tools` and `user-tools-relay` passed). **Not built:** the icon an upstream server offers (a person's server is drawn with the glyph of a tool, ADR 0046 departure 147; question 38) | `dev/user-tools-e2e.sh`, `dev/user-tools-relay-e2e.sh`, `web/e2e/my-tools.spec.ts` | 0024, [0046](decisions/0046-people-add-their-own-mcp-servers-secrets-in-a-credential-broker.md); question 38 |
| 4 | Several agents in one message by mention; the composer autocompletes; the football example | 🧪 experimental · **Built**, with mock agents asked | `dev/mentions-e2e.sh`, `crates/e2e/tests/mentions.rs`, `ask_agent.rs`, `asks.rs`, `web/e2e/mentions.spec.ts`, `asks.spec.ts` | [0026](decisions/0026-agent-mentions-as-structured-references.md) |
| 4b | A real researcher, browser and coder in the football run; a planner agent | ⚠️ partial · **Partly built** (2026-10-09): a browser agent exists ([ADR 0057](decisions/0057-a-browser-agent-an-adam-folder-with-obscura-as-its-sidecar.md), adam-agent with obscura, asked by the chat on a mention of `@browser`, or, with `browser.chatSubagent` (off by default), by the chat itself as its remote sub-agent); its screenshots are files (adam-rs `0bfea49`, ADR 0057 amended 2026-10-09) that reach the person who talks to the browser or asks the chat that calls it, but not the person who mentions `@browser` (an asked agent's file is named, not kept); the football run still asks the three mocks by decision | `dev/browser-e2e.sh`, `dev/chat-browser-e2e.sh` (both passed in CI: Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27*) | 0026, 0057 |
| 5 | Nested steps, collapsed, a little more per click, spinners, bounded log | ✅ built · **Built** | `dev/coder-e2e.sh` (the tree an OpenCode delegation leaves), `crates/e2e/tests/steps.rs`, `web/e2e/steps.spec.ts`, `step-io.spec.ts` | [0025](decisions/0025-nested-steps-events-carry-their-source-path.md), [0030](decisions/0030-a-step-carries-its-input-and-output-bounded-and-redacted.md) |
| 6 | Workspaces: several repositories, asking before a new one, ephemeral with none, GitHub through MCP, credentials per installation | 🧪 experimental · **Built** in adam-coder; a job that pushes to two repositories is gated on the last only; the coder's checks are not published as GitHub check runs | `dev/workspace-e2e.sh`, `dev/coder-e2e.sh` (token and App) | [0014](decisions/0014-adam-coder-default-agent-over-a2a.md) status note; question 42 |
| 6b | A repository's devcontainer is its work environment | 🚧 planned · **The contract stands** ([ADR 0028](decisions/0028-devcontainer-json-is-the-workspace-environment-contract.md), amended 2026-11-19): the old *how* is removed, on Kubernetes the environment is a run pod of the repository's published image (adam ADR 0052, adam's own slice, not built yet and not this repository), and in this stack and on a desktop the tool does not appear | none here (its scenario was removed 2026-11-19); adam's slice, not built yet | [0028](decisions/0028-devcontainer-json-is-the-workspace-environment-contract.md); question 41 |
| 7 | Agents configured at run time, not compiled | ✅ built · **Built** | `dev/agent-folder-e2e.sh`, `dev/greeting-e2e.sh` | 0014 status notes |
| 8 | Examples for several uses: a coder, a chat, a researcher, a browser | 🧪 experimental · **Built** with a **mock browser**; the live researcher's real search is *unverified* | `dev/agents-e2e.sh`, `dev/mentions-e2e.sh` | 0014 |
| 9 | Streaming answers, thread titles | ✅ built · **Built** | `dev/coder-e2e.sh` (live frames), `dev/title-e2e.sh`, `web/e2e/stream.spec.ts` | [0027](decisions/0027-live-text-relayed-not-stored.md), [0005](decisions/0005-openai-compatible-model-endpoint.md) |

:::

Added by the owner after the first review (2026-10-02) and built; each has its own section below the capabilities:

::: in-depth The additions after the first review: state, proof and ADR

| What | State | Proof | ADR |
|---|---|---|---|
| Write while the agent works: Send steers the running task, Stop & send cancels it and starts the next | 🧪 experimental · **Built**; the adam-rs fix that makes a task read `working` from its claim is merged there but **not in the compose pin yet** | `dev/steer-e2e.sh`, `crates/e2e/tests/steer.rs`, `web/e2e/steer.spec.ts` | [0036](decisions/0036-sending-while-an-agent-works.md) |
| Fork a chat from any turn, edit a message into a branch | 🧪 experimental · **Built** | `dev/fork-e2e.sh`, `web/e2e/fork.spec.ts`, `branches.spec.ts` | [0029](decisions/0029-forking-a-thread-copies-its-log.md) |
| The person's own list of threads: Pinned, Chats and an Archived section in an order they keep, a fork nested under its parent, a three-dot menu on each row; deleting a thread erases it, and a thread that works is stopped first (asked 2026-10-03) | ⚠️ partial · **Built** in the orchestrator and, since 2026-10-13, in the web, **except** dragging a row (not built) and, in the web only, the fork that is a draft until its first message (the orchestrator has it); both ADRs are *proposed*, the owner has not seen them; proven on mocks | `dev/rail-e2e.sh`, `dev/delete-e2e.sh` (the compose scenarios had not run when written; both passed in CI since: Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27*), `web/e2e/rail.spec.ts`, `web/e2e/delete.spec.ts` | [0042](decisions/0042-the-thread-list-is-the-owners.md), [0043](decisions/0043-deleting-a-thread-erases-it.md) |
| Files from agents reach the person (SVG, PNG, JSON), stored outside the log | 🧪 experimental · **Built** | `dev/artifact-e2e.sh`, `crates/e2e/tests/files.rs`, `web/e2e/files.spec.ts` | 0032 |
| Roles, an OAuth2 resource server behind oauth2-proxy | 🧪 experimental · **Built** against a mock issuer | `dev/rbac-e2e.sh`, `web/e2e/roles.spec.ts` | [0033](decisions/0033-the-orchestrator-is-an-oauth2-resource-server.md) |
| One YAML configuration, a model for the title and for a description of its own | 🧪 experimental · **Built** | `dev/title-e2e.sh`, `dev/description-e2e.sh`, `web/e2e/description.spec.ts` | [0034](decisions/0034-one-yaml-configuration-secrets-by-reference.md), [0035](decisions/0035-utility-model-tasks.md) |
| A token gauge, LibreChat-like: the tokens of each model call from adam-rs to the log to the web, sub-agents counted apart (asked 2026-10-08) | 🧪 experimental · **Built** on both sides: the orchestrator and the web here, the agents since the pin adam-rs `09291a6`; proven on mocks; the coder's greeting on the pinned image is asserted by `dev/greeting-e2e.sh`, which only Coder E2E runs | `dev/usage-e2e.sh`, `dev/greeting-e2e.sh`, `crates/e2e/tests/wiremock_agent.rs`, `crates/agent-a2a/tests/usage.rs`, `crates/agui-projection/tests/usage.rs`, `web/e2e/usage.spec.ts`, `web/e2e-system/usage.spec.ts` | [0056](decisions/0056-token-usage-per-model-call.md) |
| The person adds MCP servers of their own from the web, with a token, a key or an OAuth sign-in, sees each one's status in words, connects an OAuth one after being shown the issuer, and attaches a ready one to a chat from the Tools menu (asked 2026-11-14: "LibreChat-grade"; the screen of ADR 0046) | 🧪 experimental · **Built** in the web on its mock server (the **My tool servers** page, from the account menu for a holder of `tools.user.add`, and the picker); the orchestrator's side was built earlier on mocks; no live orchestrator, authorization server or MCP server was used, the chart does not yet render the feature's values, and the owner has not seen it | `web/e2e/my-tools.spec.ts`, `web/src/features/tools/components/my-servers/*.dom.test.tsx`, `web/mock/server.contract.test.ts` | [0046](decisions/0046-people-add-their-own-mcp-servers-secrets-in-a-credential-broker.md) |
| The person reads what they used in a month on a page of their own: tokens per model, the sandbox time, a price on each line and a total that reads "at least" when a line has no price (asked 2026-11-14: "LibreChat-grade") | 🧪 experimental · **Built** in the web on its mock server (the **Usage** page, from the account menu); no live orchestrator was read and the owner has not seen it | `web/e2e/usage-page.spec.ts`, `web/src/features/me/components/usage-page.dom.test.tsx`, `web/mock/server.contract.test.ts` | [0065](decisions/0065-a-usage-ledger-per-person.md) |
| Quote a message into the reply, copy a message as Markdown (its source text, as `text/plain`) and export a thread as a Markdown file, each as a client recipe so a second client does the same (wave 1 slice 6 of ADR 0067, 2026-11-14) | 🧪 experimental · **Built** in the web, proven on the mock: `docs/api/thread-markdown-v1.md` (the mapping and its conformance vectors, each an export and the file it makes), `web/e2e/quote.spec.ts`, `web/e2e/export.spec.ts`; not on a share link (no export route there: an API gap the page names); clipboard outside Chromium and the desktop app's download *unverified* | [`docs/api/thread-markdown-v1.md`](api/thread-markdown-v1.md) | 0067 |
| What "LibreChat-grade" still needs: attachments, a prompt library (**its API is built, and the page "My prompts" (`/prompts`: list, create, edit, delete, copy a shared prompt) on the web's mock only**: [ADR 0070](decisions/0070-a-persons-prompt-library.md), [`prompts-v1.md`](api/prompts-v1.md); the form that fills a prompt, the `/` menu and the sharing control are not), memory, an artifacts panel with live previews, speech, import of conversations, tags, temporary chats, `/` commands and French (asked 2026-11-14) | ⚠️ partial · **Not built**, except **search** (below) and **a theme the person chooses** (System, light or dark, one display preference of the device, no API: `web/README.md` "Theme", ADR 0011 amended 2026-11-14; proven on the mock in Chromium only); **search is built (slice 7a, 2026-11-15, the API: [ADR 0068](decisions/0068-a-person-searches-their-own-threads.md), proposed): `POST /api/search/threads` finds a person's own threads by the words of their titles, descriptions and messages (whole words by their start, accents folded; `docs/api/thread-search-v1.md` with vectors), through an index the store writes in the commit of the event (migration `0025`, `orchestrator search backfill`), proven on mocks (Rust unit and API tests on the in-memory store, the web's mock server on the same vectors) and, for Postgres, by the conformance suite run on a local PostgreSQL 16.15 on 2026-11-15 and by CI; `dev/search-e2e.sh` passed against the stack in CI (Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27*); the web's box is built (slice 7b, 2026-11-15: under "New chat", its results in the list's place, the words marked from the contract's offsets, Ctrl or ⌘ with K; `web/DESIGN.md` "Search"; proven on the web's mock server in Chromium, on a desktop and a phone, with axe in both schemes, and not against a real orchestrator)**; the plan, its order and the rule that every one is implementable from `docs/api/` alone for a second client are [ADR 0067](decisions/0067-the-plan-to-librechat-grade-and-the-client-agnostic-rule.md), proposed | none | 0067 **The prompt library's API is built (slices P1, P4 and the server half of P2, 2026-11-15, no web: [ADR 0070](decisions/0070-a-persons-prompt-library.md), proposed): `/api/prompts` saves a person's prompts with variables that are questions of the UI catalog, lists summaries, renders the text on the server from the person's answers (nothing is sent) and shares a prompt with roles under `prompts.share`, held by no role (the audience reads and renders it and never learns the author; `admin` has no bypass); `docs/api/prompts-v1.md` with vectors that the Rust core and the web's mock server both pass, migration `0026`; proven on mocks (Rust unit and API tests on the in-memory store, the mock server on the same vectors) and, for Postgres, by the conformance suite run on a local PostgreSQL 16.15 on 2026-11-15 and by CI; `dev/prompts-e2e.sh` passed against the stack in CI (Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27*); the form that fills a prompt and the `/` menu (P2's web, P3) and MCP prompts (P5) are not built.** |

:::

## Capabilities

Each capability lists what was asked, what is built and how it is proven, and what is not built. "Slice" refers to the build
order in the [MVP](mvp.md#the-new-build-order).

### 1. The platform is the agent registry

> another-agentic-platform "intend\[s] to give a seam to manage (system prompt, configs, promote,
> tag, ...) multiple A2A dynamically, and -system should understand that."

**The rule:** the platform provisions A2A agents; the system discovers them and talks to them over
A2A. The platform never learns about the UI, the catalog or the chat. Management (editing a system
prompt, promoting a revision, tagging) happens in the platform; the system shows the result live.

Agents are discovered live from the platform's registry, with no restart, and a person may use a registry agent only where its audience allows. This is built and proven against a mock of the registry and, for the registry half, against the platform's real registry in the platform's own CI (the platform's operator now serves it, and its kind end-to-end `chain-e2e` has this system's orchestrator list an agent the platform made, by audience: *verified 2026-11-27* in run 45958054826 of another-agentic-platform on its `main`, 2026-11-27, whose `chain-e2e` job succeeded). A read of a deployed platform, releases from a real platform, a login beyond a bearer token and an explicit default-agent marker are not built.

::: in-depth Built (slice 9): the port, the reader, the proof and who may use a platform agent

**Built (slice 9, 2026-10-01).**

* The port `AgentRegistry` with a fixed implementation (the static `AGENTS_FILE`) and a composite, and the live reader of the
  platform's `agent-registry/v1` linkset (`orch-registry-platform`, `AGENT_REGISTRY_URL`); `GET /api/registry`; the picker's
  notice and its refresh on focus ([ADR 0022](decisions/0022-platform-provisions-agents-system-discovers-them.md) status note).
  The contract is `agent-registry/v1` in another-agentic-platform, an RFC 9727 `api-catalog`-shaped linkset with one agent-card
  URL per agent service. A2A standardises no registry API (*verified 2026-10-01*,
  <https://a2a-protocol.org/latest/topics/agent-discovery/>), so this is ours.
* Proof: `dev/registry-e2e.sh` (the registry's agent is listed after the static ones with the releases of its own card, an
  agent added to the mock shows up with no restart, a registry that is down leaves the static agents and the UI says so, and an agent's `audience` decides who sees it: `dev` does not see the restricted agent, the one with no audience or the malformed one, the holder of the role value sees the restricted one, `admin` sees all four, and a hidden agent is answered as one that does not exist),
  `crates/e2e/tests/registry.rs`, `web/e2e/registry.spec.ts`.
* The release picker of ADR 0008 stays: a card that lists the release-channels extension offers its channels and revisions.
* **Who may use a platform agent** ([ADR 0045](decisions/0045-admin-dashboard-in-the-web-and-agent-access-from-the-registry.md), decision 1; built in the orchestrator 2026-10-16, slice D8a, proven on mocks and in unit, property and in-process tests; the dev stack's proof is slice D8b: the mock registry's four agents (everybody, one role value, no audience, a malformed audience), the user `holder@example.com` and the extended `dev/registry-e2e.sh`, *verified 2026-10-16*: its 79 checks passed in CI's `coder-e2e` job against the real orchestrator, run 38979721632). A registry item may carry an `audience`; for an agent the registry lists, a person reads or invokes it only when a role of theirs grants it over the id **and** the audience holds `"*"` or a value of their roles claim, or a role of theirs holds `admin`. No audience, an empty one or a malformed one is for administrators only. What the audience shuts a person out of is not there for them (not listed, "no such agent", "unknown agent"); a thread of their own on it is read-only. The deployment's own agents are unchanged. The platform's contract has no `admin` exception and reads a roles claim with a non-text element as no roles at all; this build follows the ADR and the orchestrator's reader, and says so (the ADR's note).

:::

**Not built.**

* A read of a deployed platform, and releases from a real one. The platform is no longer design only (*verified 2026-11-27*, its
  `CLAUDE.md` line 9: "design, plus slices S1 to S9 of the v0 operator"; on 2026-10-03 it said "there is no code yet"), and its
  operator serves `agent-registry/v1`, read by this orchestrator in the platform's CI (`main` run 45958054826, 2026-11-27, *verified*). `release-channels/v1` is
  not implemented by the platform's v0, whose registry publishes no releases (*verified 2026-10-17*, [`mvp.md`](mvp.md), "Reading a
  real platform"; not re-checked since), so releases are read only from mocks (open question 10 stays open).
* Authentication to the registry beyond a bearer token (open question 11).
* The file's agents come first and the first is the default; an explicit marker is open question 23.

### 2. Rich output and rich input, through components the agent knows about

> The goal is "to make the agent also aware of the user's environment, e.g know that a component in
> the UI is available".

> "The answer of the chat should be rich. The user input should also be rich. So the UI should
> define components, e.g. by key and params, then let the A2A seam know about them."

The owner wanted OpenUI at first; "we can redo their semantic here ourselves". The components the
owner listed, and where each stands:

| Component | What it does | Direction | State, 2026-10-03 |
|---|---|---|---|
| List | show the person a list | out | ❌ not supported · not built |
| Choices | ask up to 8 questions at once with a title, a description and typed options (radio buttons, check boxes, a searchable list, a deck of pictures, a typed answer; from version 7 a yes or no, a number, a scale, a day, a rank; from version 8 a question may show components of its surface); the smarter `ask_user` | in | 🧪 experimental · **built** (catalog version 2, widened in versions 5, 7 and 8) |
| Stepper | walk the person through steps | out and in | ❌ not supported · not built |
| Cards | show a list of cards | out | 🧪 experimental · **built** (version 3) |
| Web view | display a web rendering in the UI (e.g. an iframe) | out | ❌ not supported · not built: needs the Content-Security-Policy decision of question 38 |
| Agent suggestion | propose another agent or a group of agents | in (the person accepts) | ❌ not supported · not built |
| Skill request | ask for more skills | in (the person approves) | ❌ not supported · not built |
| Mermaid | display a mermaid graph | out | 🧪 experimental · **built** (version 3) |
| Image | place a picture at the start, middle or end of a text, or in a list | out | 🧪 experimental · **built** (version 4), for a file of the thread only: never a URL |
| Notification opt-in | ask at first open to be notified later about this chat, and tell the agent | in | ❌ not supported · not built; decided 2026-11-19 by [ADR 0077](decisions/0077-push-notifications-for-a-persons-runs.md): the opt-in is the client's own control and a setting per thread, not a catalog component, and the agent is not told (pushes come from the log only); in R1 |

And: **combine all of these** in one answer.

**The owner's decision (2026-10-01):** "since the components are not dynamic, their params only are,
then it's safe to send the UI components once at the beginning, then have a seam to refetch them,
like a tool. So that a chat across multiple UI versions can get the newest UI items."

The web defines its components in a catalog that the orchestrator sends once, sends again when a newer UI joins, and an agent can refetch. Choices, Cards, Mermaid and Image are built; List, Stepper, Web view, Agent suggestion, Skill request and Notification opt-in are not.

::: in-depth Built (slices 3 and 4): the catalog, A2UI and the proof

**Built (slices 3 and 4, plus the Image of ADR 0032).**

* A2UI is the generative-UI format, end to end ([ADR 0013](decisions/0013-a2ui-generative-ui.md)). Agents send A2UI surfaces; the
  web validates and renders them ([`lib/a2ui/prepare.ts`](../web/src/features/chat/lib/a2ui/prepare.ts),
  [`components/surface/`](../web/src/features/chat/components/surface/)); a click goes back to the agent as the person's answer.
* **The catalog is ours:** the web defines its components as a JSON Schema catalog (`inlineCatalogs`), the orchestrator records
  each digest it sees as a `ui_catalog` event, sends the catalog to an agent whose card lists `ui-catalog/v1` with the first
  message and again when a newer digest joins, and the agent refetches it with the tool `get_ui_catalog` on a per-thread MCP
  endpoint (`thread-tools/v1`, a thread-scoped token). A surface that breaks a component's schema is refused visibly, and an older UI
  shows a "needs a newer version" placeholder for a component it lacks
  ([ADR 0023](decisions/0023-ui-component-catalog-as-an-a2a-extension.md), [`api/ui-catalog-v1.md`](api/ui-catalog-v1.md),
  [`api/thread-tools-v1.md`](api/thread-tools-v1.md)). A2UI has no way for an agent to refetch a catalog (*verified 2026-10-01*,
  <https://a2ui.org/specification/v0.9.1-a2ui/>), so that seam is ours.
* adam-rs turns the catalog into model tools and `ask_user` with options into Choices (adam-rs `c13ddf1`, pinned).
* Proof: `dev/choices-e2e.sh` (the coder asks three questions as one form from the web's catalog, one action answers them, a newer
  catalog is recorded on the same thread), `dev/cards-e2e.sh` (the researcher answers with one surface of a Text, three cards and a graph; an
  older screen leaves the thread's catalog alone; a screen without `Cards` gets words only), `dev/artifact-e2e.sh` (a surface places two files as `Image`s),
  `crates/e2e/tests/ui_catalog.rs`, `web/e2e/choices.spec.ts`, `cards.spec.ts`, `catalog.spec.ts`, `files.spec.ts`.

:::

**Not built.**

* The six components marked "not built" above, and rich input beyond Choices (a filled stepper, an accepted suggestion). Each is
  additive: it raises the catalog's version and is its own change to [`api/ui-catalog-v1.md`](api/ui-catalog-v1.md). They were not
  in the build order, which asked for one input and the output components needed to show a combined answer.
* What a live model chooses to show with these components is *unverified*: the scripts of the scenarios are ours.
* Open questions 37 (notifications) and 38 (web view, remote images in text, tool icons from a URL).

### 3. Tools (MCP) per conversation, from the UI

> "I can imagine how A2A does coding, another does web research, ... And if I wanna do casual chat,
> I might use each one of them, pass in MCP tools for e.g. web search, e.g. from the UI directly,
> and let the agent somehow use it."

A person attaches the servers a deployment lists to a conversation, and the orchestrator relays each call and keeps the credentials by reference. A person's own server (a URL of one's own, with its credentials sealed) is built too, as the paragraph below says. This section lists as not built an upstream server's icon and a per-role filter.

::: in-depth Built (slice 8): attaching, the relay, the refusals and the proof

**Built (slice 8, 2026-10-02).**

* A person attaches servers to a conversation in the composer's Tools menu, and detaches them. The deployment lists what may be
  attached (`toolServers` of the configuration, [`api/config.md`](api/config.md)); `GET /api/tool-servers` shows each with its
  name, description, icon and the agents it is for, never its URL or credential; `PUT /api/threads/{id}/tools` sets the whole set.
  The thread records `tools_attached` and `tools_detached`.
* The orchestrator is the MCP client and the relay ([ADR 0024](decisions/0024-mcp-tools-attached-per-conversation.md), question
  35\): it holds the credentials by reference, and an agent gets the thread's endpoint and a short-lived token, so no credential is
  in an A2A message, the log or an export. Each relayed call is one step with the server's icon, its input and its output.
* An agent whose card does not list `thread-tools/v1` is flagged in the composer before anything is sent, and the run is refused
  with 422 if it is sent anyway.
* The orchestrator is also an MCP server for other systems (`start_job`, `wait_for_job`;
  [ADR 0019](decisions/0019-mcp-server-over-streamable-http.md)), proven by `dev/mcp-e2e.sh`.
* Proof: `dev/tools-e2e.sh` (the chat's model calls the relayed `websearch__web_search`; one step with `icon: mcp-server:websearch`;
  the configured bearer and header reach the search and no secret is in the export, the frames or the model's requests; after a
  detach the chat answers "No web search attached"), `crates/e2e/tests/tool_relay.rs`, `tools.rs`, `web/e2e/tools.spec.ts`.

**Built since: a person's own server ([ADR 0046](decisions/0046-people-add-their-own-mcp-servers-secrets-in-a-credential-broker.md), accepted 2026-10-11).** A person who holds `tools.user.add` (a role's permission; the dev stack's role `tool-maker`) adds the URL of an MCP server of their own with `POST /api/user-tool-servers` (at most eight; kinds `none`, `bearer`, `api_key` and `oauth2`; a URL the egress guard refuses is refused), lists, renames, re-keys and deletes it, and the web draws the page "My tool servers" (`/tools`, 2026-11-14). The credentials are sealed in Postgres behind the ports `SecretStore` and `CredentialBroker`, and are in no answer, log, export or frame. A server of one's own is attached with the same `PUT /api/threads/{id}/tools` when it is ready and the thread's owner owns it, and each call is relayed with a credential leased for that one call, through a client that judges every connection; the step's icon is `mcp-server:<id>` and is drawn as the glyph of a tool. Proof: `dev/user-tools-e2e.sh` (the routes, the limit, the refusals, no secret anywhere) and `dev/user-tools-relay-e2e.sh` (the chat's scripted model calls `<id>__web_search`, the mock was sent exactly that token, the permission taken away detaches the server, the guard at the connection, a wrong key makes it `needs_reauth`), `web/e2e/my-tools.spec.ts`; both scenarios ran and passed in CI's `coder-e2e` job on `main` (run 45959707562, 2026-11-27, *verified*), against the pinned coder image's `adam-agent` for the `chat` agent. A deployment turns it on with the `userToolServers` section of its configuration; off, a person chooses among the listed servers as before.

:::

**Not built.**

* The icon an upstream server offers, and any icon at a URL: only `data:` icons from the configuration are shown, because a
  remote image can track the person (question 38).
* No per-role filter on who may attach which server (anyone with `thread.write` may, for the servers listed for the thread's agent).

### 4. Several agents in one message, by mention

> "Help me understand football in Europe from 2011 till 2019. @researcher first check for data from
> that period and @browser you look for pictures to illustrate this experiment. And then @coder will
> plot the whole thing."

A person mentions several agents in one message and the addressed agent coordinates them by calling `ask_agent`. It is built and proven with mock agents asked; a real browser, researcher and coder in the football run and a planner agent are not.

::: in-depth Built (slice 10): mentions, ask_agent, AG-UI and the proof

**Built (slice 10, 2026-10-02 and 2026-10-03).**

* The composer autocompletes mentions from the agents the person may invoke and sends a **structured reference** (agent id, label,
  UTF-16 offsets), never raw text; the orchestrator checks the references before anything is written (400 for a bad shape, 422
  for an unknown agent, a label that is not the text, or an agent the roles may not invoke, 503 for a registry that cannot answer)
  and records them in the `user_message` ([`api/mentions-v1.md`](api/mentions-v1.md)).
* **The addressed agent coordinates** ([ADR 0026](decisions/0026-agent-mentions-as-structured-references.md), option A, decided on
  the owner's delegation, question 34): it calls the thread tool `ask_agent` for each agent it chooses, the orchestrator sends the
  question to that agent as a child task in a context of its own, and the answer returns to the tool call. The asks are a ledger
  in the job (`ask_started`, `ask_finished`, migration `0014`) with limits (`asks.maxDepth` 2, `maxPerJob` 16, `maxRunning` 4,
  `timeoutSecs` 1800), and each ask ends exactly once: a crash neither asks twice nor leaves a task nobody follows.
* In AG-UI an asked agent is a `SUBAGENT_STARTED` nested under the run that asked, and the web draws it as one collapsed line,
  "Asked Coder", nested under the step that asked, with a spinner while it works and its answer when it ends.
* The owner's sentence runs as one scenario: `dev/mentions-e2e.sh` sends it mentioning `@researcher`, `@browser` and `@coder`;
  the chat's model (a script) asks the three in that order; the script asserts three `ask_started` by `main` in order, each
  `ask_finished` completed, each agent sent only its own request in its own context, the answer naming the three results, and the
  three `SUBAGENT_STARTED` in the stream; a mention of an agent nobody listed is 422 and writes nothing.
* Proof: `dev/mentions-e2e.sh`; `crates/e2e/tests/mentions.rs`, `asks.rs` and `ask_agent.rs` (the real dispatcher, adapter and
  endpoint on both stores, with a fake agent that makes the calls an adam agent makes); `web/e2e/mentions.spec.ts` (keyboard
  only, a refused send shown) and `web/e2e/asks.spec.ts` (nested, spinners, Stop ends them deepest first, axe in both schemes).

:::

::: in-depth Not built, or not proven

**Not built, or not proven.**

* **A real browser agent in the football run.** The browser agent of [ADR 0057](decisions/0057-a-browser-agent-an-adam-folder-with-obscura-as-its-sidecar.md)
  exists (a folder served by adam-agent, obscura beside it; `dev/browser-e2e.sh`, written and not yet run), but the football run still
  asks a WireMock agent that answers "Pictures: ...". Its screenshots are files since adam-rs `0bfea49` (ADR 0057 amended 2026-10-09),
  but a mention (`ask_agent`) names an asked agent's file and keeps none of its bytes, so a screenshot reaches the person only when the
  person talks to the browser or the chat calls it as its own sub-agent (`browser.chatSubagent`, `dev/chat-browser-e2e.sh`). The researcher and the coder in that run are mocks too (`mock-researcher`, `mock-coder`): the real researcher
  is a folder on a model, the real coder is gated and runs a repository, and the scenario needs answers a script can tell apart.
* **An asked agent's own work is not in the thread.** The log has the ask and its answer and, for a tool the asked agent calls
  through the orchestrator's endpoint, a step under `ask-<n>`; its own messages and steps are read for its answer and never copied,
  so that an asked agent cannot write the thread's transcript (ADR 0026 status note). The scenario cannot assert a child step,
  because a WireMock agent calls no tool; `crates/e2e/tests/ask_agent.rs` does.
* A real model's choice to call `ask_agent`, and that adam-rs's MCP client keeps a call of half an hour open (ADR 0026, *unverified*).
* A planner agent (option B) and parallel agents: the first plan's step 4, not built.

:::

### 5. Nested steps

> "Too many tool calls make the UI unreadable."

In one real thread, 7 messages produced 336 status events, 197 of them from OpenCode. "UI should
be cute, sober, but still rich."

An agent's tool calls and its sub-agents' work are drawn as a tree, collapsed below the first level, and a tool step opens onto its input and output. It is built; what a real OpenCode reports and the tree against the coder in containers are not proven.

::: in-depth Built (slice 5): the source path, the tree and the proof

**Built (slice 5, 2026-10-01; input and output 2026-10-02).**

* Events carry their **source path**: the `agent_step` event, the contract [`api/steps-v1.md`](api/steps-v1.md) (A2A extension
  `steps/v1`, read from the card), AG-UI `SUBAGENT_STARTED` nested by `parentSubagentRunId` and `vymalo.step` activities
  (*verified 2026-10-01*, vendored schema
  [`ag-ui-1.0.schema.json`](../orchestrator/crates/agui-proto/schema/ag-ui-1.0.schema.json)). The log keeps a bounded number of
  updates per step.
* adam-rs reports every tool call as a step and OpenCode's own tool calls as children of `delegate_to_opencode`.
* The web draws a tree in the side panel's Activity tab ([`lib/step-tree.ts`](../web/src/features/chat/lib/step-tree.ts),
  [`web/DESIGN.md`](../web/DESIGN.md)): depth 1 always shown, each deeper level collapsed, a first click shows the latest three
  children and every failed one, "Show more" a virtualised list, a spinner on every level that works; the chat keeps one line per turn.
  A tool step opens onto its input and output, cut and redacted ([ADR 0030](decisions/0030-a-step-carries-its-input-and-output-bounded-and-redacted.md)).
* Proof: `dev/coder-e2e.sh` (an OpenCode sub-agent step with a command step under it, ended, the log bounded to six events per
  step, each tool step's input and output), `dev/agents-e2e.sh`, `crates/e2e/tests/steps.rs`, `web/e2e/steps.spec.ts`,
  `step-io.spec.ts`.

:::

**Not proven.** What a real OpenCode reports for its bash call, and the tree drawn by a browser against the coder in containers.

### 6. Workspaces (what the system expects of agents)

These are requirements on agents, adam-rs first. The system records them so that the gate, the UI
and the agents agree.

* A workspace holds **several repositories**, chosen by the person, and can grow later. The model
  **asks the person's permission** before pulling a new repository.
* A workspace **with no repository is ephemeral**: deleted when its use ends ([adam-rs #52](https://github.com/vymalo/another-adam-rs/issues/52),
  the scratch workspace).
* GitHub access goes through MCP (a GitHub MCP server, a filesystem MCP server). The trusted parts
  stay in a small server of our own: preparing the sandbox, the named-repository rule, and real check
  runs bound to the pushed commit, which the gate relies on
  ([ADR 0002](decisions/0002-verification-over-consensus.md),
  [ADR 0018](decisions/0018-verification-gate-and-rework-loop.md)).
* Credentials **per installation**: a GitHub App in one deployment, a personal access token in
  another. Today adam-coder takes one static `GITHUB_TOKEN`.
* git stays the artifact ([ADR 0003](decisions/0003-git-as-durable-state-ephemeral-workers.md)):
  what outlives a workspace is what was pushed.
* Where a workspace lives across workers was open question 24 (closed 2026-10-01: `shared` placement and one coder process by default).

Built in MVP slice 7: adam-coder starts with no repository, adds one only after the person says yes and reads GitHub over MCP with the credential of one installation. Slice 7b's devcontainer path was removed on 2026-11-19; the work-environment contract of ADR 0028 stands, and its implementation is adam's own slice, not built yet.

::: in-depth Notes by date: the workspace, the work environment and its removal

> **Note, 2026-10-01: built (MVP slice 7).** adam-coder (adam-rs `1021836`) starts with no repository, in a scratch project it deletes when the task ends, and publishes it to a repository the person names;
> a workspace holds several repositories, and a repository the person did not name joins it, or is created for them, only after they say yes to a form (the model never grants). It reads GitHub, read-only, through the
> official GitHub MCP server, and holds the credential of one installation in its own environment, a GitHub App or a token, never in a message or the log. The trusted tools (the named-repository rule, the checks bound
> to the pushed commit) stay inside the coder, not in a server of their own (decided for the MVP, 2026-10-01, in [adam-rs ADR 0009](https://github.com/vymalo/another-adam-rs/blob/1021836a1887610c4639de15f2289b26245b9ce4/docs/decisions/0009-github-per-installation-read-through-mcp.md); the owner may revisit it). Still open: a job that pushes to several repositories has the gate judge only the last (question 42), and publishing the
> coder's checks as GitHub check runs. The orchestrator did not change ([ADR 0014](decisions/0014-adam-coder-default-agent-over-a2a.md#status-note-2026-10-01-workspaces-github-per-installation-and-repositories-created-on-request),
> [`dev/README.md`](../dev/README.md#workspaces-github-over-mcp-and-a-github-app-the-coder-without-a-repository)).

> **Note, 2026-10-01: the work environment.** The owner asked "Can't we use devcontainers to build work
> environments?" and decided ([ADR 0028](decisions/0028-devcontainer-json-is-the-workspace-environment-contract.md))
> that a repository's `.devcontainer/devcontainer.json` is its work environment. The coder builds it with the
> official devcontainer CLI against a rootless Podman service (never the host's Docker socket), and runs its
> commands and OpenCode inside it. A repository without one gets the `workspace` image, published as a
> devcontainer. With several repositories in one workspace, the first repository's devcontainer is used and the
> others are mounted into it. The person sees the build as a step, and a broken file as a failed step, not as a
> silent fallback. On Kubernetes the coder stays as it is until the platform has a sandbox provider (open
> question 41). This is MVP slice 7b, after slice 7.
>
> **Note, 2026-10-02: built (MVP slice 7b).** adam-coder (adam-rs `c0f12dd`) runs `run_command`, `run_checks` and OpenCode in the
> repository's devcontainer, or in a default image, on a rootless Podman service; a stopped service is a step that says so, and a
> devcontainer.json it cannot use is a failed step and a question to the person, never a silent fallback. The stack runs it with an
> override (`dev/compose.devcontainer.yaml`, a Podman service with no `privileged`, `cap_add` or `devices`, removed 2026-11-19) and one scenario
> (`dev/devcontainer-e2e.sh`, removed 2026-11-19) that CI ran on every Coder E2E run. The orchestrator and the web did
> not change: the environment is a nested step ([ADR 0028](decisions/0028-devcontainer-json-is-the-workspace-environment-contract.md#status-note-2026-10-02-built-the-stack-and-its-scenario)).
> The scenario had not run when this was written: CI is its proof. Still open: Kubernetes (question 41).
>
> **Note, 2026-11-19: the environment is a run pod, not a service beside the coder.** The owner removed the
> container-service path from adam-rs and from the stack around it as a hard cutover ([adam ADR
> 0052](https://github.com/vymalo/another-adam-rs/blob/main/docs/decisions/0052-no-podman-a-repositorys-own-environment-is-a-run-pod-of-its-image.md),
> accepted 2026-11-19, merged as vymalo/another-adam-rs#194; epic #359). The contract of [ADR
> 0028](decisions/0028-devcontainer-json-is-the-workspace-environment-contract.md) stands — a repository's
> `.devcontainer/devcontainer.json` is its work environment — and its *how* changes: on Kubernetes a repository's own
> environment is a run pod of an image the repository publishes, when the deployment allows that image (adam-rs's
> slice, not this repository); **on a desktop and in this dev stack the tool does not appear at all**, the commands
> run where the coder runs, and a step says the repository's configuration is not used. This repository's half of the
> old *how* is gone: `dev/compose.devcontainer.yaml`, the vendored service directory under `dev/coder/`, `dev/devcontainer-e2e.sh`, its step in the
> Coder E2E workflow, its compose checks, and `dev/README.md` "Devcontainers" (ADR 0028's dated note of 2026-11-19
> has the list). *Verified 2026-11-19*: those paths are gone, and the engine's name appears nowhere under `dev/` or
> `.github/`. *Not built yet*: adam's side, which ADR 0052 records as not built (its slices are the epic's adam
> tickets), so nothing here proves it.

:::

::: in-depth State and proof, 2026-10-03

**State, 2026-10-03.** The notes stand. Proof: `dev/workspace-e2e.sh` (scratch work, a repository created after a yes to a form and
none after a no, a second repository added only after a yes, the gate and the pull request on the repository the work reached),
`dev/coder-e2e.sh` with `GITHUB_AUTH=token` and `app`. **Not proven:** a GitHub App against github.com,
the real `github-mcp-server`, and a live model's use of the consent tools (the environment scenario and the service this line named
were removed on 2026-11-19: the note above). The
compose pin is adam-rs `e2bfda9` (A2UI v1.0 only, adam-rs ADR 0056, [ADR 0075](decisions/0075-a2ui-v1-0-cutover.md) and [epic #380](https://github.com/vymalo/another-agentic-system/issues/380): every adam agent lists `https://a2ui.org/a2a-extension/a2ui/v1.0` and `ui-catalog/v2`, writes `"version": "1.0"` and draws nothing without `a2uiRendererCapabilities["1.0"]`, and its run store is on tokio-postgres, schema version 6, adam-rs ADR 0053, ADR 0014's note of 2026-11-21; since `b64e3fe`, [#136](https://github.com/vymalo/another-agentic-system/pull/136), it includes `7e5dcc3`: a task reads `working` from the moment a worker
claims its run; `4edee18` adds a GitHub App that finds the installation of each owner, ADR 0014's note of 2026-10-04; `588e9b5` streams a model's reasoning, ADR 0014's note of 2026-10-05; `6478fbc` keeps the input of a step that started before its subscriber attached, ADR 0014's note of 2026-10-05, second; `d9d5ea4` makes the coder Adam, a general agent with read-only helpers, gives every tool step a title, lets a failure the base branch has too cost no check cycle and puts the build on the card, ADR 0014's note of 2026-10-07; `8e1133d` adds A2A's HTTP+JSON binding and Swagger UI at `/docs`, adam-rs ADR 0031, the same note; `09291a6` reports each model call's tokens, `usage/v1`, adam-rs ADR 0032, ADR 0014's note of 2026-10-09; `0bfea49` makes the files of an MCP server's results and of a remote sub-agent's answer files of the run, adam-rs ADR 0033, ADR 0014's second note of 2026-10-09; `5581d40` keeps a remote sub-agent's words beside its files, ADR 0014's third note of 2026-10-09; `8847c28` brings access tiers per message, adam-rs ADR 0036 and [ADR 0061](decisions/0061-the-person-picks-an-access-tier-for-each-message-the-agent-keeps-to-it.md), `ask_user` forms with a title and typed questions, and a coder that asks nobody for consent when another agent asked it, adam-rs #115 and [ADR 0026](decisions/0026-agent-mentions-as-structured-references.md), ADR 0014's note of 2026-10-17; `ddef35e` makes an asked coder hear the repositories the person named only in the words the orchestrator carries beside the grant (`person.said`, the context key `vymalo.person`), never in the ask's text, adam-rs #116, the agent side of ADR 0026's fourth note of 2026-10-17 ([#271](https://github.com/vymalo/another-agentic-system/pull/271)), ADR 0014's note of 2026-10-18; `7418467` removes OpenCode from the coder, runs a turn's tool calls at the same time, gives every agent a plan and skills, puts `child-sessions/v1` on the cards of the agents with a subagent (the coder, the chat) and moves the run store to schema version 5 part 1, ADR 0014's note of 2026-11-19; `e2bfda9` and `8501494` make every adam agent speak A2UI v1.0 only and move the run store to schema version 6 on tokio-postgres, ADR 0014's note of 2026-11-21 and sys#418; `7ac3281` runs the coder's commands where the coder runs, with no devcontainer, and is the commit the crates of `agent-local` name too, so sqlx leaves the orchestrator, ADR 0014's note "adam-rs 7ac3281").

:::

### 7. Agents configured at run time, not compiled

adam-rs's authoring layer is an `agent/` folder: `instructions.md`, `SKILL.md` skills, subagents,
`mcp.json`. adam-coder compiled it into the binary (`build.rs` and `include_agent!`); the parser
already had a run-time path (`adam-agent-fs`'s `Dir`, beside the embedded package), which adam-coder did not use.

> "We need to make the editing of .md and .json possible at runtime"

* System prompt, skills and MCP servers editable at run time; the embedded copy is the fallback.
* This is what the platform's `AgentConfig` (instructions, tool universes) would write for a hosted
  agent, so the two meet here.
* `adam-coder` moves from `crates/` to `bin/` in adam-rs.
* The coder should not push every chat toward code. It answered "hi" with "give me a repo". A name
  and a plain self-description are
  [adam-rs #55](https://github.com/vymalo/another-adam-rs/issues/55).
  **The gate honours it (2026-10-04).** The verification gate used to fail a coder chat that pushed nothing ("no pushed
  commit") and rework it twice, so a question or a demo ("plot an image in TypeScript and show it here") ended
  `Failed`. It now verifies only pushed work: an agent that finishes with no `branch` artifact gave an answer and the
  thread is `Done` ([ADR 0018](decisions/0018-verification-gate-and-rework-loop.md#status-note-2026-10-04-only-pushed-work-is-verified)).

adam-coder reads its `agent/` folder at startup, so an agent is a folder and a change needs a restart. It is built; how a live model follows the instructions is not proven.

::: in-depth Built (slices 1 and 2), and what is not proven

**Built (slices 1 and 2, 2026-10-01).** adam-coder reads its `agent/` folder from `ADAM_AGENT_DIR` at startup (the embedded copy is the fallback),
is named `Coder`, and answers "hi" with a greeting (adam-rs #56, #57, ADR 0004 there). One binary, `adam-agent`, serves any folder, so an agent
is a folder and a dozen lines of compose ([`dev/README.md`](../dev/README.md#add-a-fourth-agent-by-writing-a-folder)).
Proof: `dev/greeting-e2e.sh`, `dev/agent-folder-e2e.sh` (the coder restarted on an edited copy of its folder answers differently, no rebuild).
**Not proven:** how a live model follows the instructions (the mocks prove that the folder reaches the model). A change needs a restart: the
folder is read at startup, not watched.

:::

### 8. Examples for several use cases

compose and the live examples should run agents for several uses, not only a coder: a researcher,
a browser, a chat-only agent.

compose and the live examples run a coder, a chat and a researcher beside the mocks of the football example. It is built; the browser agent on a live page or model, a real search, the real model and a real GitHub are *unverified*.

::: in-depth Built (slice 2): the agents, the live model and the proof

**Built (slice 2).** [`dev/agents.yaml`](../dev/agents.yaml) lists the coder, a chat and a researcher (each a folder under
[`dev/agents/`](../dev/agents/), served by `adam-agent` on a scripted model), the WireMock agents `mock-researcher`, `mock-browser` and
`mock-coder` of the football example, and the mocks of the gate. `compose.live.yaml` points the coder, the chat and the researcher at a real
model, and the researcher at a real web search (`searxng-mcp` over SearXNG, Brave or Tavily:
[`dev/README.md`](../dev/README.md#web-search-for-real)). Proof: `dev/agents-e2e.sh` (three agents, each answers in its role; the
researcher's search is a step with its input and output).

:::

**Not built, or not proven.** The browser agent on a live page or model ([ADR 0057](decisions/0057-a-browser-agent-an-adam-folder-with-obscura-as-its-sidecar.md): its scenarios read a local page on scripted models, and have not run yet; the chat calls it as its remote sub-agent only with `browser.chatSubagent` in the chart, `dev/compose.chat-browser.yaml` in compose). The live stack has not been run: the real
search, the real model and a real GitHub are *unverified*, and `dev/searxng-mcp/server.mjs` is covered by its own unit tests only
(`node --test dev/searxng-mcp/server.test.mjs`); no scenario runs it.

### 9. After the first review: what the owner asked for on 2026-10-02

The owner's second round of feedback added requirements that the capabilities above do not cover. Each is an ADR and is built, except
where it says proposed; the table at the top lists the proof.

The second round added sending while an agent works, forking and editing, files, roles, who the person is to an agent, one YAML configuration with utility models, streaming and titles, token usage and an access tier for each message.

::: in-depth The nine additions, each with its ADR

* **Sending while an agent works** ([ADR 0036](decisions/0036-sending-while-an-agent-works.md)). "While an agent is working, it should also
  be possible for a human to send a message … e.g. 'you were wrong since line #1'." **Send** goes into the running task and is read at
  its next step (`steer/v1`, for an agent whose card lists it; any other agent gets the message after the turn), **Stop & send** cancels the task and
  starts the next job with the text. `dev/steer-e2e.sh` runs both on the chat agent (a model that takes 20 s); the web's two buttons are
  `web/e2e/steer.spec.ts`. Open question 33 (a follow-up sent as the task completes) is closed by it. The pin (adam-rs `e2bfda9`, which speaks A2UI v1.0 only, ADR 0075; since `b64e3fe`, [#136](https://github.com/vymalo/another-agentic-system/pull/136)) includes the adam-rs
  change that makes a task read `working` from its claim, so, as ADR 0036 says, a steer sent during an adam task's first model call is read by the
  running task. *Unverified* by a scenario: `dev/steer-e2e.sh` still sends after the agent's first words.
* **Forking and editing** ([ADR 0029](decisions/0029-forking-a-thread-copies-its-log.md)). A fork is a new thread that starts with the parent's
  events up to a cut; its agent is told the conversation as a transcript; an edit is a fork with the new message, drawn as `‹ 1/2 ›`. A fork of a coding thread
  does not inherit the parent's workspace (open question 40).
* **Files** ([ADR 0032](decisions/0032-files-from-agents-live-in-an-artifact-store.md)). A file an agent makes goes to an artifact store behind a port (a
  directory or S3), the log keeps a reference, and the owner is served the bytes (an SVG sanitized, another user's request a 404). A thread's delete erases its files
  with it ([ADR 0043](decisions/0043-deleting-a-thread-erases-it.md), built, proposed); a time limit and quotas do not exist (open question 46).
* **Roles** ([ADR 0033](decisions/0033-the-orchestrator-is-an-oauth2-resource-server.md)). The orchestrator is an OAuth2 resource server; roles map to permissions;
  nobody reads another person's thread, an administrator included ([ADR 0039](decisions/0039-nobody-reads-another-persons-thread.md), which reversed ADR 0033's "administrators read every thread"); `GET /api/me` tells the web what to draw. The dev stack runs a real oauth2-proxy and a mock issuer;
  a real identity provider is *unverified*.
* **The agent does not know who the person is** (accepted 2026-11-24, [ADR 0064](decisions/0064-the-person-reaches-the-agent-and-links-their-github.md)). An agent is called with one static bearer and a message that names no person, so a coder offered to many people at once would work on any repository its GitHub App is installed on. The decision: an optional extension `identity/v1` (a signed assertion of who the person is), people linking their GitHub account in the orchestrator, and the coder checking the person's access before it touches a repository. Nothing is built; tenancy beyond roles stays missing until it is (open questions 85 to 89).
* **One YAML configuration and utility models** ([ADR 0034](decisions/0034-one-yaml-configuration-secrets-by-reference.md),
  [ADR 0035](decisions/0035-utility-model-tasks.md)). Secrets by reference, an endpoint and a prompt for the thread's title and its description each,
  and the title in the conversation's language. Hot reload of the file is not built (question 43).
* **Streaming and titles** ([ADR 0027](decisions/0027-live-text-relayed-not-stored.md)): the words show as they are written; the log keeps the final text once.
* **Token usage** ([ADR 0056](decisions/0056-token-usage-per-model-call.md), asked on 2026-10-08: "a token gauge (LibreChat-like ring): usage per model
  call from adam-rs, to the orchestrator's log, to the web; sub-agents counted apart"). An agent that lists `usage/v1` reports each model call and
  keeps its task's totals; the log has `model_usage` (attributed to the agent, a sub-agent step or an asked agent) and `model_usage_total`, and the
  web draws a ring beside Send that fills with how full the context of the agent's last call is, its details the thread's tokens per model and per
  agent. Proven on a WireMock agent and the fake agent, and since the pin adam-rs `09291a6` (2026-10-09) the coder, the chat and the researcher report it
  too, with `MODEL_CONTEXT_WINDOW=131072` in `compose.yaml`; `dev/greeting-e2e.sh` asserts the coder's greeting call and totals (CI only). The orchestrator's own title and description calls are not counted. Since 2026-10-27 the totals can also carry the time a run's commands used in a pod (`sandbox`, [`api/usage-v1.md`](api/usage-v1.md) section 5; adam-rs `55bbe9f`, ADR 0056 amended): logged and projected, proven on mocks, drawn by no screen and read by no limit yet. Since 2026-10-27 a **ledger per person** keeps what each person used (tokens by provider and model, the sandbox time), per task and UTC month, beyond the life of the thread ([ADR 0065](decisions/0065-a-usage-ledger-per-person.md), proposed): its write side, port, adapters and backfill are built, and since 2026-10-28 so are the price table (`usage.prices`, exact decimals, a line with no price said so and never counted as free), `GET /api/me/usage` (a person's own month, priced, with a total that says whether it is complete) and the retention sweep (`usage.retentionMonths`, 24 by default); proven on in-memory and Postgres stores and over HTTP, the scenario on mocks is `dev/usage-ledger-e2e.sh` (passed in CI: Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27*), and since 2026-11-14 the web draws the answer as the **Usage** page (`/usage`, from the account menu; proven on the web's mock server only).
* **An access tier for each message** (proposed 2026-10-11; the orchestrator and the web are built against mocks, no live agent lists it yet; [ADR 0061](decisions/0061-the-person-picks-an-access-tier-for-each-message-the-agent-keeps-to-it.md), [`api/access-tier-v1.md`](api/access-tier-v1.md)). The owner: "the agent should be fully autonomous, and its permissions should be as easy as eating chips", with a control for the user over the tier (`plan`, `edits`, `auto`, `bypass`) and no permissions passed down to children. An optional extension an agent lists in its card; the web shows a chip only for such an agent, and an agent without it (kagent) is unchanged.

:::

### Not proven

The same list stands behind every "built" above:

* **Live services.** No model, GitHub.com, GitHub App, search provider, identity provider or platform was used; every scenario runs on mocks. Where a
  claim depends on a live service, the section says *unverified*.
* **The owner has not tried this state.** The verdict of 2026-10-01 stands until they do.
* **The database backups.** The chart can back the database up to S3 ([ADR 0041](decisions/0041-deployed-with-helm-on-kubernetes-secrets-by-externalsecret.md), amended 2026-10-17; off by default): proven on renders and CRD schemas, and by a kind end-to-end (`.github/workflows/backup-e2e.yml`: the plugin, a RustFS, a base backup, WAL and a restore that returns a seeded thread), which **passed in CI** (run 39008626108 at `0e017d3`, *verified 2026-10-17* in its log: a completed plugin backup, base and WAL in the bucket, and the restore returned both threads). Not proven until the owner restores a backup on netcup: no plugin, bucket or restore has run there.
* **The web against the real stack.** Playwright runs Chromium against the web's mock server (`web.yml`); the scenario scripts run against the real
  orchestrator without a browser. No test drives the real web against the compose stack; `system.yml` drives the real web in Chromium
  against the real orchestrator on Postgres, with fake agents (`web/e2e-system/`).
* **CI.** The scenarios are run by the `Coder E2E` workflow. Several were written where no container could start, and say so in
  [`dev/README.md`](../dev/README.md); this page does not claim a green run that no one saw. Every scenario of `dev/e2e-all.sh`, and the split, browser-auth,
  provisioner and chat-browser stacks, passed in Coder E2E run 45977668014 at `dbafabb`, *verified 2026-11-27* in its log.

## A message, end to end

How a conversation looks now that capabilities 1 to 5 are built (the pieces are asserted by the scenarios of the table
above, not this whole sequence in one run, and `Registry` is a mock). The catalog goes once at the start; a newer UI resends
it; an agent can refetch it; an agent answers with a component; the person answers through it; a mention brings in a second
agent, which the addressed agent asks.

```mermaid
sequenceDiagram
  actor P as Person
  participant W as Web UI
  participant O as Orchestrator
  participant R as Registry (platform)
  participant A as Addressed agent
  participant B as Mentioned agent
  W->>O: GET agents
  O->>R: list agent cards
  R-->>O: cards, releases, tags
  O-->>W: agents (for the picker and mentions)
  P->>W: first message, picks an agent
  W->>O: run with catalog id, version and components
  O->>O: record ui_catalog in the log
  O->>A: A2A message, catalog inline (card lists the catalog extension)
  A->>A: turn components into model tools
  A-->>O: A2UI surface with Choices (5 questions)
  O-->>W: a2ui-surface activity
  W-->>P: radio lists
  P->>W: answers
  W->>O: action with the chosen values
  O->>A: action on the same task, as the person's answer
  Note over W,O: later, the person opens the chat in a newer UI
  W->>O: run with a new catalog version
  O->>A: next message carries the new catalog inline
  A->>O: refetch the catalog (tool call)
  O-->>A: current catalog
  P->>W: "@browser find pictures" (picked from autocomplete)
  W->>O: run, text plus mention reference (agent id, card URL)
  O->>A: A2A message with the mention reference
  A->>O: ask_agent for the mentioned agent (ADR 0026, option A)
  O->>B: A2A task, nested under A
  B-->>O: status with source path, artifacts
  O-->>W: steps nested under A, then B's result
```

## A workspace

```mermaid
stateDiagram-v2
  [*] --> Ephemeral: work starts with no repository
  [*] --> RepoBacked: the person names a repository
  Ephemeral --> AskFirst: the work needs a repository
  AskFirst --> RepoBacked: the person agrees, the repository is pulled
  AskFirst --> Ephemeral: refused, nothing is pulled
  RepoBacked --> AskMore: the model wants another repository
  AskMore --> RepoBacked: agreed (pulled) or refused (unchanged)
  Ephemeral --> Deleted: use ends, nothing published
  RepoBacked --> Released: use ends, pushed branches remain
  Deleted --> [*]
  Released --> [*]
```

An ephemeral workspace's work is lost when it ends unless it was published first; the agent says so.
A repository-backed workspace keeps only what was pushed (ADR 0003). The workspace grows only
through the permission step.

## What does not change

* **Protocols only** ([ADR 0007](decisions/0007-protocol-only-dependencies.md)). Agents are A2A,
  tools are MCP, the UI speaks AG-UI and A2UI. Every new convenience is an optional extension that
  plain A2A agents can ignore.
* **No platform state here** ([ADR 0008](decisions/0008-platform-integration-via-a2a-extension.md)).
  Registry data is read live.
* **One event log** ([ADR 0001](decisions/0001-rust-state-machine-on-postgres.md)). The catalog a
  thread saw, the tools attached to it and the mentions in it are events.
* **Verification over consensus, git is the artifact**
  ([ADR 0002](decisions/0002-verification-over-consensus.md),
  [ADR 0003](decisions/0003-git-as-durable-state-ephemeral-workers.md)).
