Features & Flows

What the console actually does, section by section, from an operator's point of view. This is the console's own surface — for the meaning of the data it renders, follow the links to the playground and control plane docs rather than re-reading it here.

The console owns none of this state. It reads the playground (aitp-playground — scenario definitions, run history, live run events) and the control plane (aitp-control-plane — registry, sessions, audit, trust config, webhooks) and gives a human a way to drive workflows against them. Every view renders explicit empty, error, and loading states, so a section degrades to a friendly placeholder when its backend is down rather than crashing.

SectionRoute(s)BackendWhat you do here
Dashboard/dashboardCPRead KPIs and time-series at a glance
Scenarios/scenarios, /scenarios/[...ref]PlaygroundBrowse packs, inspect a scenario, trigger a run
Runs/runs, /runs/[id]Playground (+CP)Watch a run stream live, inspect its trace
Monitor/monitor, /monitor/sessions/[id]CPLive event ticker, delegation tree, TCTs
Registry/registry, /registry/[aid]CPView agents, mint enrollment tokens, deregister
Trust/trustCPManage trust anchors, pinned keys, revocations
Federation/federationPlaygroundHost an agent, resolve a did:web peer, handshake, invoke
Audit/auditCPFilter and export the protocol event history
Config/configBothHealth, identity, metrics, webhooks

Dashboard

A read-only overview backed by the control plane's dashboard aggregates.

  • KPI cards — agents registered, handshakes in range, success rate, capability invocations, active sessions, pending webhook deliveries.
  • Charts — handshakes over time (line), distribution by trust boundary (pie), top capabilities by invocation (bar). Each renders its own empty state when there's nothing to plot.
  • Time-range picker — 1h / 24h / 7d / 30d, synced to the URL so a view is shareable.
  • Auto-refresh picker — off / 10s / 30s / 1m. On top of this, the underlying query refetches on a slow cadence by default.

If the control plane is unreachable the whole section collapses to a single banner pointing the operator at Config.

Scenarios

Browse the playground's scenario catalog and launch runs. Scenario semantics (packs, workflow steps, boundaries) are defined by the playground — see scenarios.

List (/scenarios) — a pack tree on the left (grouped by trust boundary, with per-pack counts) filters a grid of scenario cards on the right. Each card shows the name, boundary badge, summary, tags, and version; clicking it opens the detail view.

Detail (/scenarios/[...ref]) — the scenario's agents and numbered workflow steps, a trust explainer that describes what the scenario's boundary (intra-org / cross-org / cross-cloud) implies, and the run trigger form.

Run-trigger flow

  1. Open a scenario's detail page.
  2. (Optional) Pick a template, then a variant of that template. Templates and variants come from the playground and pre-fill inputs.
  3. Fill the inputs — the form is generated from the scenario's JSON schema, so you get text / number / boolean / enum controls with required-field markers automatically.
  4. (Optional) Expand Advanced → Fault injection to deliberately break the run for testing: manifest_404 and peer_offline, each toggled per agent. A badge shows how many faults are armed. What each fault kind does and the injection contract are the playground's — see scenarios.
  5. Hit Run scenario. The console POSTs the run and navigates straight to its detail page, where the live timeline takes over.

A run started with non-empty fault injection is tagged with a fault-injected chip on its detail header for visual triage.

If the launch is refused with 429 (the playground's per-key launch limit, or the console's own per-IP limit in public mode), the form says "Too many runs — try again in N s". N comes from the Retry-After header, else the console's retryAfterSeconds, else the playground's retry_after; with none of those it says "try again shortly".

Runs

Watch scenario executions, live and historical.

List (/runs) — a table of runs (id, scenario, status, event count, start time) with a header that calls out how many are in flight. The list refetches adaptively: fast while any run is pending/running, slow once everything is terminal.

Detail (/runs/[id]) — a sidebar plus a tabbed main area.

  • Sidebar — an agent-status grid (which agents took part and their state, derived from the event stream), a run summary (status, duration, handshake / LLM-call / event counts, established grants), and an error card when the run failed.
  • Cancel — for an active run, a confirm-guarded cancel button in the header; the outcome is surfaced as a toast. Operators only.
  • LLM quota badge — when the playground's LLM quota ran out during the run, the summary shows a status chip: LLM quota reached: mock responses (resets <local time>), plus · N calls on mock. Without a reset time it says why (quota store unavailable, quota check failed, or reset time not reported). The run fields (llm_quota_exceeded, llm_quota, llm_calls_on_mock) are read first, so the badge survives an SSE buffer that dropped the event; the llm.quota_exceeded event is the fallback and also renders as an amber timeline card. The run list shows a compact chip on such rows. An older playground without these fields shows nothing.

The main area has five tabs:

TabSourceShows
TimelinePlayground SSEThe live event stream (default tab)
NarratePlaygroundA narrated, human-readable trace of the run
CP auditPlayground→CPAudit entries the CP recorded for this run
CP sessionsPlayground→CPHandshake sessions started by this run
DeliveriesPlayground→CPWebhook deliveries triggered by run events

Live timeline behaviour

The Timeline tab subscribes to the run's SSE stream and renders a typed card per event. The console ships a card renderer for every family the playground emits — run.*, agent.*, trust.* (with granted-capability badges on trust.established), step.* (including the unhappy paths step.probing_no_trust and step.access_denied), and llm.*. Anything the console doesn't recognise falls back to a generic card rather than being dropped. The event catalog, ordering, and shapes are the playground's contract — see observability.

Seven of the playground's trust- and delegation-vocabulary event types get dedicated cards rather than the generic fallback: manifest.verify_failed and revocation.verify_failed (each naming the producer's own classified cause, coloured amber when nothing was actually checked and red only when an artifact was checked and rejected — never a stronger claim than the cause supports), revocation.degraded_serve (a producer serving revocation data in a degraded mode, carrying its own reason / serves / fail_mode), delegation.issued, delegation.redeeming, delegation.redeemed (three distinct playground emit sites with three distinct field shapes — a redemption whose peer response couldn't be parsed as a token renders only what actually arrived, never a grant it never saw), and delegation.rejected. For the first three of those, this card is the only place the event becomes observable at all — the playground narrates and counts none of them.

Event timestamps (ts) are epoch seconds, the way the playground stamps them — not milliseconds since the run started — and the console converts each to a run-relative offset from the run's own first observed event. Every timeline event that carries a time shows that offset: row events at the start of the row, and the bordered cards (the trust/delegation cards, run.complete and run.failed) right-aligned in the card header. Until the first event sets the run's time base, no offset is shown.

The view auto-scrolls to the newest event unless you've scrolled up, in which case a jump-to-latest control appears; a small indicator shows whether the stream is streaming or reconnecting. Once a run is terminal, the timeline switches from the SSE buffer to the authoritative event list on the run record, so a reload shows the full, final trace rather than a partial live capture.

When the CP isn't wired up

The three CP-backed tabs depend on the playground having a CP_BASE_URL. When it doesn't, those tabs render an explicit "Control plane not wired up" state (telling you to set CP_BASE_URL on the playground) rather than a generic error — distinct from the empty ("no entries for this run") and error states.

Monitor

A live window onto the control plane, in three tabs.

  • Events — a real-time ticker of CP events (registry, handshake, audit), newest first, with a rolling client-side buffer (the most recent ~200 events) and a free-text filter over type / AID / session. A connection pill reflects the stream state: connected, reconnecting, disconnected, or at capacity (see Live updates). A side panel lists active sessions; each links to its trace.
  • Delegations — the delegation tree the console reconstructs in the browser from flat CP delegation records (src/components/monitor/delegation-tree.tsx). Beyond wiring parents to children it enforces three safety properties so bad data is visible rather than silently mis-rendered: records whose parent is missing are promoted to roots, records that would close a cycle are flagged and bucketed as orphans, and each child is attached at most once.
  • TCTs — observed Trust Credential Tokens. TCT semantics live in the spec.

Session trace (/monitor/sessions/[id]) — the event-by-event trace for a single handshake session.

Registry

The control plane's agent registry, made operable.

  • Agent table — display name, AID, status, boundary, offered capabilities, last activity. Filter by status (all / active / expired / deregistered) and search by name / AID / capability; both are synced to the URL. AIDs render through a copy-on-click cell, never raw.
  • Agent detail (/registry/[aid]) — the agent's record and a manifest viewer for its signed AITP manifest.
  • Deregister — a confirm-guarded action on an agent.

Enrollment-token flow

  1. Click New enrollment.
  2. Paste the agent's signed manifest envelope (the JSON &#123; manifest, signature, proof_of_possession &#125;). The form validates that it parses and has a top-level manifest before submitting.
  3. The console asks the CP to mint a token and shows the result: a short-lived, single-use bearer token with a live expiry countdown and a hidden-by-default reveal/copy control.
  4. Hand the token to the agent, which redeems it against the CP to register. Token mechanics — lifetime, signing, single-use enforcement — are the control plane's; see the CP API.

Trust

Three control-plane collections that together describe the system's trust posture. Each tab is a small CRUD surface.

  • Trust anchors — OIDC issuers accepted as identity sources for enrollment, scoped by namespace. Add / edit / delete, including bulk delete via row selection. Namespace is fixed after creation.
  • Pinned keys — static SPKI key pins per (namespace, aid) for environments that bypass discovery.
  • Revocation — the CP's revocation entries grouped by issuer AID, with each issuer's last pull from the CP relay ("no pull recorded" when that issuer has not pulled since the CP started). The CP signs no list: each issuer pulls its own entries, signs them and serves its list (RFC-AITP-0008 §1.5), so an entry takes effect at that issuer's next pull. Only issuers that have entries are listed, with their counts, from the CP's /api/revocation/issuers. Each issuer's entries are a separate CP request, so a group is fetched only when open: issuers that pull from the relay, issuers revoked against this session and the issuer in the revoke form open by default, and any other expands on click.

Revocation confirm flow

Revoking is a two-step confirm: enter a JTI, its issuer AID (prefilled from the TCT when the CP has recorded it) and an optional reason, then explicitly confirm. The CP refuses an issuer that contradicts the one it recorded for that JTI. It's gated this way because revocation is materially destructive — on the CP side its effects cascade well beyond the single JTI. The cascade rules are the control plane's; see revocation and the CP data model.

Federation

A cross-org, did:web-resolved handshake demo (/federation), talking to the playground's /hosted-agents API rather than the CP. Federation semantics — what hosting, resolution, and a handshake actually do — are the playground's; this section documents only what the console lets you drive and what it can honestly tell you about the result.

  • Host an agent — supply a scenario ref (pack/agent@version) plus optional public_host, public_scheme, signing_suite, and port. The playground starts the agent and the console shows its AID, DID, origin, manifest URL, and handshake URL.
  • Resolve & handshake — for a hosted agent, give a peer's peer_did (did:web:...) and optional comma-separated requested_grants; the console asks the playground to resolve that DID and attempt a handshake against whatever origin it resolves to.
  • Invoke — call a capability on an already-resolved peer directly (peer_port, capability, an optional JSON payload).
  • Stop — deregister a hosted agent.
  • Not on Railway — the playground refuses hosting there with a 400, and the form shows that reason (hosted agents are not available on Railway).

Fail-closed refusals are a feature, not a fault

resolve-and-handshake fails in seven distinct ways, and the console renders each one honestly instead of collapsing them into a single red error string. Two of the seven are the interesting case: a 409 loopback refusal (the resolved did:web origin turned out to be a loopback address — a same-process handshake wearing a did:web costume) and a 409 origin mismatch (the host named in the DID and the origin it actually resolved to disagree). Both render in amber, not red, with copy that says outright that this is a fail-closed control working as designed, not an error — rendering them red would train an operator to distrust the one thing this demo does correctly.

What a 502 here cannot tell you. The playground's federation boundary flattens every downstream failure to the same HTTP 502 — a peer that answered and refused, a peer that never answered at all, and a peer whose manifest failed verification are indistinguishable at this layer. The console's handshake error banner is honest about that limit: it quotes the peer's own response text verbatim when one exists, but it never asserts a verification verdict a bare 502 cannot support. The distinction between "the peer's manifest failed verification" and "the peer was simply unreachable" is not observable at this boundary at all. It lives one layer down, on the run timeline's manifest.verify_failed event card (see Live timeline behaviour), which carries the playground's own classified cause for the failure. A 502 banner here is not the place to look for that answer — the timeline is.

Audit

A filterable, exportable view of the control plane's protocol event history (handshakes, delegations, TCT issuance/revocation) — the same event feed the Monitor ticker streams live, queried here historically via /api/cp/events/history. (The CP also keeps a separate admin-action log at /api/cp/audit; that log has a different shape and is not what this page renders.)

  • Filters — AID (matches initiator or responder), event type, and result limit (50 / 100 / 250 / 500), all synced to the URL.
  • Rows — timestamp, event type (colour-coded), actor AIDs, granted capabilities, and session/run links. Expanding a row reveals the full event payload as a copyable JSON tree.
  • Export — download the current (filtered) result set as CSV or NDJSON. Column order is stable, and the export reports how many rows it wrote (or tells you the filter matched nothing).

Config

Operational settings and health, split across two columns.

  • Service connections — live health (and the CP's separate readiness) for both upstreams, with the configured URLs shown. A footnote makes the credential boundary explicit: URLs come from PLAYGROUND_URL / CP_URL on the server, and API keys never reach the browser.
  • CP identity — the control plane's own AITP manifest: AID, display name, handshake endpoint, capability set and expiry countdown. The manifest is verified server-side (in the BFF, via the aitp SDK, never in the browser) before the AID is shown as trustworthy — the AID is coloured as verified only when its manifest's signature actually checked out; an expired manifest renders as its own distinct state that claims nothing about authenticity either way, never as a softer "verified". A manifest whose signature checked out but which then fails a later proof-of-possession or identity-hint check is shown as rejected and as having had a valid signature — never as a signature failure, because it demonstrably wasn't one, and never as verified, because a manifest that fails any step is still discarded.
  • SDK matrix — SDK / capability support reported by the playground.
  • Processes & metrics — playground process list and the metrics panels for both services.
  • Webhooks — list, create, edit, and delete CP webhook subscriptions. Each row exposes its circuit-breaker state (closed / open / half-open with a failure count) and a reset action when it's tripped. Circuit-breaker semantics are the CP's — see CP operations.

Cross-cutting behaviour

Public mode

With AITP_CONSOLE_PUBLIC_MODE off (the default) every page needs the operator and nothing below applies. With it on, anonymous visitors can browse the read views and launch runs, and the server tells the UI who is looking when it renders the page (the same answer /api/auth/session gives), so the right controls show from the first paint:

  • Admin sections (Metrics, Webhooks, Revocation, the circuit breaker) show "Operator only — sign in" and send no request.
  • Write actions (enroll, pin, trust-anchor edits, revoke, cancel, hosted-agent changes) are hidden, and the shared mutation hook refuses them before sending anything.
  • The topbar shows a Sign in link back to the current page.
  • If the session check fails, the UI treats the visitor as anonymous; the server enforces the same rules regardless (Access model).

Live updates (SSE)

Two streams drive the live views: the per-run timeline (/api/playground/runs/[id]/events) and the global CP event ticker (/api/cp/events/stream). Both go through one client hook, useSse:

  • Auto-reconnect with exponential backoff after a drop.
  • Page-visibility pausing — the stream closes when the tab is hidden and reopens on focus, so a backgrounded tab costs nothing.
  • Capacity awareness — the CP caps concurrent listeners and returns a 503 at the limit (the console's own stream limit in public mode returns 429 with Retry-After, handled the same way). useSse probes for this and surfaces a distinct "at capacity" state (with a longer backoff) instead of a generic "reconnecting" spinner. See PROXIES.md.

There is no WebSocket library — see ARCHITECTURE.md for why.

Shareable URLs

Operator-visible filters, search boxes, and active tabs are synced to the query string (via useUrlState / useUrlEnum / useUrlInt), so any view is a deep link and survives reload and back/forward. Dashboard range + refresh, the Runs and Monitor tabs, Registry search + status, and the Audit filters all work this way.

Feedback & primitives

  • Toasts — mutations (create/cancel/delete/export/revoke/mint) confirm or report failure through transient toasts.
  • AIDs are always shown through a copy-on-click cell, never raw.
  • Times are shown as live relative timestamps that tick on their own.
  • Connection dots in the topbar go red when an upstream is down and link to Config for troubleshooting.

For the conventions that keep these consistent across the codebase, see CONVENTIONS.md.