Skip to content

Public API and application SDKs

Applications integrate with Colossus through the public application API, not the private worker protocol and not colossus-agent internals. The initial contract is colossus.api.v1alpha1; its implemented surface provides authenticated system metadata and durable agent runs.

flowchart LR
    Web["Tauri WebView"]
    Native["Tauri Rust backend"]
    Other["Rust, TypeScript, Python, or Go application"]
    SDK["Colossus SDK"]
    TLS["Pinned TLS 1.3 and bearer authentication"]
    Worker["Colossus worker"]
    Public["Public API adapter"]
    Runtime["Runtime and Safety Kernel"]
    Journal["Hash-chained journal<br/>configured encryption"]

    Web -->|"narrow commands and ordered channels"| Native
    Native --> SDK
    Other --> SDK
    SDK --> TLS
    TLS --> Worker
    Worker --> Public
    Public --> Runtime
    Public --> Journal
    Runtime --> Journal

Reading the diagram without color: untrusted renderer code calls a narrow native interface; native or server applications use an SDK; the SDK authenticates a pinned loopback gRPC connection; the worker translates public resources into the existing runtime and durable journal.

Why gRPC is at the worker boundary

Protobuf and gRPC give non-Rust applications a generated, versioned contract and an ordered streaming transport. The public server belongs at the long-running worker boundary because runs must survive a UI reload, SDK disconnect, or client-process restart. colossus-agent remains an internal application service and never becomes a network authority.

The public API is distinct from the private worker IPC protocol:

Boundary Intended callers Contract Authentication
Public application API Enrolled desktop and server applications Protobuf colossus.api.v1alpha1 Per-application bearer credential over pinned TLS
Private worker IPC Colossus-owned CLI and TUI components Internal Rust worker protocol Independent worker key
Embedded Rust backend One trusted application process colossus-sdk Rust traits and DTOs Caller context bound during trusted composition

The keys and credentials for these boundaries are independent. Do not derive one from another.

Runtime placement

The Rust SDK uses one public API across three explicit placements:

  • Daemon connects to an installed shared worker. Desktop presents these connections as External targets for advanced, persistent, and fleet use; durable work can continue after the desktop application exits.
  • Sidecar supervises an application-bundled isolated worker. It is appropriate when the application needs separate state and lifecycle ownership. Colossus Desktop calls this placement Managed Local and makes it the default. A sidecar gRPC host must explicitly advertise Sidecar; the host API defaults to SharedDaemon and its bounded deployment-mode type cannot advertise Embedded.
  • Embedded calls an application-private runtime in process. It needs no gRPC transport, but it still uses the SDK interface so application code does not depend on runtime internals.

TypeScript, Python, and Go SDKs connect to a daemon or sidecar over gRPC. They are native/backend SDKs, not browser SDKs.

A browser-only web application needs its own authenticated backend-for-frontend. That backend may use the TypeScript, Python, or Go SDK, but the browser must not receive the local daemon descriptor or application bearer credential. The worker does not expose gRPC-Web or permissive cross-origin transport.

Agent communication

The optional AgentCommunicationService exposes caller-owned participant discovery, message send, receipt lookup, paginated inbox reads, and a durable message update feed. agent_messages.read.v1 requires agent_messages:read and runs:read; agent_messages.send.v1 requires agent_messages:send. New peer task allocation also requires runs:execute and the selected role. Existing application enrollments must be explicitly updated for these scopes. Conversation sharing does not grant inbox access.

Rust callers use client.agent_runs() with list_agent_participants, send_agent_message, get_agent_message, list_agent_messages, and watch_agent_messages. TypeScript exports AgentCommunication over the generated communication client; Python exposes client.agent_communication; Go provides the generated NewAgentCommunicationServiceClient over the enrolled SDK connection. All use the existing authenticated transport. Renderer code receives released records through a narrow host command and never selects credentials or ownership.

Message text is bounded to 16 KiB. An inbox admits at most 64 pending messages and 256 KiB of pending text; a root collaboration admits at most 128 participant attempts, 4,096 messages and 1 MiB of pending text. Reads return up to 16 messages. Provider input batches contain at most eight messages and 32 KiB of text. Stable sender-scoped idempotency keys preserve the original admission; changed retries conflict, and lost responses do not trigger automatic mutation retries.

accepted, included_in_turn, and not_delivered receipts come from canonical journal events. Inclusion records the actual prepared request's SHA-256 with its execution and turn. Peer input retains trusted provenance and does not reset a human turn's budgets, change the tool ceiling, or grant approval authority. Watches use an exclusive collaboration-feed cursor; inbox pages have their own recipient cursor. Ending a watch releases only that subscription.

The same service provides SubmitAgentTaskMessage, GetAgentTask, and ListAgentTasks for the A2A application edge. These expose curated released input history and final output, with owner-bound snapshot pagination; they do not expose private session or tool transcripts. See ADR 0007 for ownership and lifecycle decisions.

Tauri integration

Tauri can call Rust directly, so a Tauri application does not need a separate JavaScript-to-Colossus transport SDK. Colossus Desktop holds a native ConnectionManager keyed by opaque target IDs. It owns one Managed Local sidecar for the active workspace, any saved External daemon clients, per-target watch limits, and the selected Work target. The renderer receives sanitized target health and invokes only product-level Tauri commands:

  • create_run
  • get_run
  • list_runs
  • watch_run
  • cancel_run
  • respond_interaction

Desktop’s composer exposes public Execute, Plan, Goal, and managed-local Research run modes. Standalone Goal requests use RunMode::Goal with explicit goal_max_iterations in 1..=50 and text input; other modes leave that field at zero. No Plan action is needed. The goal.create capability requires runs.execute and both Goal tools in the authenticated caller’s tool ceiling. Every iteration retains that caller’s role, tools, selected skills, initiator, and ordinary approval and cancellation boundaries. Research carries an explicit bounded depth and a unique non-empty set of repository, web, or MCP evidence lanes. It reuses the authenticated durable run, interaction, watch, queue, and cancellation contracts while delegating collection and cited synthesis to the runtime research service. The initiating question and released report remain ordinary canonical conversation messages; tool traffic and unrestricted paths do not cross the renderer boundary.

Public Plan Mode means “create one new durable Draft”; the runtime constrains its tools and returns the canonical Plan identity, revision, and status in terminal result or cancellation evidence. The native bridge preserves those typed fields rather than attempting to reconstruct a Plan from assistant text.

For an actionable Draft, the main WebView can submit a typed plan_action on another public run. It supplies the caller-owned source run ID and exact visible revision, never a Plan ID. The server resolves that source run under the authenticated application, binds the action to its session and canonical Plan, and rejects stale or non-Draft revisions. Revision is structurally Plan Mode; Direct and bounded Goal execution are structurally Execute mode. They use the ordinary durable run, interaction, policy, permit, journal, audit, cancellation, and watch paths.

Managed Local can also hand the identity to the embedded TUI for the advanced interactive workflow. The main WebView supplies only bounded session and Plan identifiers to show_terminal_window. Native code accepts them only for colossus_tui; the dedicated terminal document opens the authenticated TUI and submits the fixed read-only /session resume ID and /plan use ID selections. No PTY session ID or generic terminal write command is granted to the main WebView.

The zero-input desktop_release_channel metadata command returns only the native compile-time development, stable, developer_preview, or validation_only enum. It lets the renderer label a Developer Preview even if runtime initialization fails; it accepts no renderer data and exposes no signing identity, path, credential, or runtime authority.

Every run operation carries an opaque target ID. The target manager, not the renderer, resolves it to an authenticated SDK client. Fleet may display health for all targets, but Work sends an operation to exactly one selected target.

Renderer target IDs are advisory, not routing authority. Native code accepts a run operation only when its ID matches the current Work selection, binds returned run IDs to that target, and requires the binding again for watches and mutations. Selection epochs terminate an old watch before it can deliver another target's update. Target switch, reconnect, removal, and Managed Local restart take the native selection writer, wait for in-flight mutations, and never replay a request. External import, selection, reconnect, and removal also require an operating-system dialog naming the native-sourced label, instance ID, and full certificate pin.

Use a Tauri channel for the ordered watch_run feed. The WebView receives released run DTOs only. It must never receive the bearer credential, certificate file contents, daemon descriptor path, provider key, private runtime path, raw gRPC channel, caller scopes, tool arguments, hidden reasoning, or quarantined output.

The Rust client can use either placement without changing that WebView contract: Embedded calls the trusted runtime in process and uses no gRPC, while Daemon or Sidecar keeps durable work in another process and uses authenticated gRPC behind the Rust command layer. In both cases, depend on the stable Rust SDK boundary rather than calling runtime internals from Tauri commands.

Keep Tauri capabilities deny-by-default. Grant each window only the commands it needs, and enforce resource scope again inside each command. Do not add generic “run process,” “read path,” “call URL,” or “invoke SDK method” commands; those would turn the WebView into a capability-confused deputy.

Explicit workspace conversation sharing

Cloud enrollment creates an independent application grant. It does not make existing Desktop or CLI application conversations visible. SetWorkspaceSharing lets the authenticated source application explicitly release its own sessions in that runtime workspace to a named recipient application. It requires runs:read and runs:control; enabling continuation also requires runs:execute. The source owner is derived from authentication and cannot be selected in the request.

ListVisibleRuns provides bounded, source-stable discovery of owned and explicitly shared runs. Each item carries runtime-derived controllable and continuable flags. Shared source runs remain read-only: their cancellation and interaction responses still require the original owner. Reads and live watches use only released public projections; revocation closes ongoing shared watches and invalidates discovery cursors. Cloud continuations create new recipient-owned runs using that recipient's captured scopes, roles, and tools. They never borrow the source application's execution grant.

Managed Local exposes this opt-in in Desktop's Cloud settings with native confirmation. For an installed daemon, the source application can use colossus cloud share-workspace with its protected local connection configuration and the exact recipient application ID. --allow-continuation permits new recipient-owned runs; --disable revokes future disclosure. Previously synchronized cloud history is retained under cloud project access and retention policy.

Desktop's native conversation reader combines its primary application's owned runs with Control Plane-owned runs through the separately provisioned connector client. Discovered run IDs stay bound to their reader and selected runtime. The renderer sees released history and authority flags, never either credential. Cloud runs are read-only in Desktop; cancellation and interaction responses retain their original application ownership. Desktop can continue a shared local conversation under its own grant. Periodic reconciliation observes new turns without reopening a completed thread.

Managed shell inspection

AgentRunService also exposes ListProcessSessions, ReadProcessSession, and StopProcessSession. Reads require runs:read; stop requires both runs:control and runs:read because its response includes retained logs, plus an exact caller-owned opaque process identity. Delegated shells retain the parent application owner. The same application cannot select another workspace through these requests. List/read/stop still pass through the runtime effect gateway. ReadProcessSession supports an exclusive output cursor and a wait bounded to 30 seconds, allowing finite polling and reconnect without resetting process deadlines. The server request deadline is 35 seconds to leave transport and policy headroom. Discovery, log reads, and Stop use separate bounded admission pools, so a waiting read cannot consume Stop capacity. Clients must still respect pagination rate limits. The Rust SDK exposes corresponding methods for both embedded and gRPC backends; generated TypeScript, Python, and Go service bindings expose the same typed messages.

Desktop uses the narrow list_shell_sessions, read_shell_session, and stop_shell_session commands. A native selected-target lease prevents target changes from racing an in-flight operation. Listing binds process identities to that selection; read and stop require the binding again. The renderer receives bounded released logs and safe metadata, never a PID, environment, or supervisor handle. A managed runtime with an active shell is busy for idle-eviction purposes even after its agent run ends.

Managed Local bootstrap and lifecycle

The VS Code extension ships colossus-app-host and colossus-sidecar in each platform VSIX. The native host uses this Rust SDK lifecycle and passes activated, pinned gRPC transport material to the trusted TypeScript extension host over bounded inherited pipes. SidecarConnectionObserver is a native-host handoff, including live credentials; implementations must never forward it to a renderer, logs, or storage. It runs only after activation and the authenticated SDK handshake, including after a supervised restart. Callback failure fails launch closed. Provider keys travel from VS Code SecretStorage through the same private channel into zeroizing SDK credentials. The sidebar receives only safe connection and run projections.

VS Code uses a private home under extension global storage and a separate vscode workspace surface. It does not attach to Desktop's private instance or borrow worker enrollment. Workspace trust, persisted folder identity, native SDK identity checks, and the existing writer lease fence startup. The native host returns its full workspace fingerprint over the private pipe; the extension persists it and supplies it as a strict restart ceiling, in addition to its inexpensive editor-folder guard. Explicit native folder reselection resets access to Minimal. The extension closes its parent pipe on unload; native drain/checkpoint and process supervision own shutdown. The extension never automatically replays a create or effect request. macOS VSIX native components are explicitly labeled Developer Preview and use the existing ad-hoc preview signing requirement; Windows release binaries pass the normal Authenticode signing gate.

Managed hosts carry an explicit ManagedExecutionBoundary independently from access profile and approval mode:

  • FullAccess is the default host posture and maps to acknowledged danger_full_access;
  • WorkspaceIsolated selects the supported platform-native workspace-development boundary; and
  • OfflineIsolated selects platform isolation without derived workspace resources, hides the generic model-visible network.http, web.fetch, and docs.fetch tools, and retains the exact provider service and authentication/refresh destinations needed by the configured provider.

Rust builders and getters expose this choice, and the private sidecar protocol carries it as a versioned bootstrap field. Hosts must not infer it from the access profile. Full access permits ambient structured filesystem and HTTP(S) effects as well as child process resources, but it does not add undeclared tools, routes, credentials, MCP servers, integration operations, or extension trust.

OfflineIsolated is therefore not an air-gap declaration: selected provider and authentication transports can still use their retained destinations. Preserving those destinations does not reactivate general model fetch tools. Search, MCP, and integration adapters remain independently governed by their own configuration and host grants.

The signed desktop bundle contains two independent executables:

  • colossus-sidecar owns runtime composition, private worker IPC, the public gRPC host, sandbox-helper dispatch, drain, checkpoint, and guardian-triggered shutdown;
  • colossus is the separately verified interface binary used only for the fixed TUI launcher.

The native application verifies the sealed bundle manifest and macOS code identity immediately before a no-shell spawn. It sends bounded workspace configuration, exact application grants, one-use API material, and provider credentials over inherited anonymous pipes. Bootstrap secrets never enter argv, environment variables, files, renderer events, logs, or debug output. The sidecar binds a loopback TLS endpoint, creates an independent API authentication root, and returns the exact endpoint, certificate pin, instance identity, API version, and bearer through that private channel. Native code validates every field before activating the credential and marking the target Ready.

Executable binding is completed before either bootstrap secrets or execution are released. On macOS, the SDK hashes and parses one private snapshot, starts the selected bundle executable with the kernel's start-suspended flag, and requires its exact live CodeDirectory identity to match before SIGCONT. On Linux, it executes the verified bytes from a sealed, non-writable memfd. Platforms without an equivalent mechanism fail Managed Local startup closed.

Linux native startup retains only the host's local Unix D-Bus session locator after clearing the child's environment. The SDK accepts one filesystem or abstract Unix socket and verifies the bus peer's OS user before launch; it rejects remote transports, autolaunch, aliases, and ambiguous addresses. Without an explicit session locator it uses /run/user/<uid>/bus. This locator carries no secret. The native Secret Service remains required by default; missing session authority fails startup without a credential fallback. The explicit debug-only development credential authority instead forwards one validated nonsecret path to the verified child and uses its encrypted file custody. It does not require a Secret Service session, discover an alternative backend or change application grants. Release builds reject this opt-in.

The selected macOS workspace is also persistent object authority rather than a saved path. Desktop hashes the device, inode, and birth timestamp obtained from a securely opened directory descriptor and includes that versioned identity in its private state partition. The SDK parent and sidecar child independently reproduce it before launch or runtime composition; preview-era path-only or inode-only settings require explicit folder reselection. Unix workspace reads then stay relative to the retained workspace; Agent Plugin discovery and resources use the separately retained owner-private Colossus home and immutable plugin roots.

Desktop uses two same-application credentials delivered and activated as one bootstrap set. The primary credential has exactly runs:execute, runs:read, runs:control, and prompts:respond, plus the selected role and tool ceilings. A separate native approval broker has only approvals:respond, no tools, and roles bounded by the primary grant. The SDK routes only approval answers through that second pinned-TLS client; every other operation uses the primary client. Both credentials are revoked together during shutdown or a failed bootstrap, and neither transport replays an operation after a restart.

Native browser attachment uses an additional independent parent/sidecar bootstrap key, separate from both API credentials. Its private transport attests the managed workspace, application and parent/child process identities and rechecks the active primary grant for every admission and presentation operation. Native SDK attachments retain cleanup ownership and authoritative presentation state; neither this key nor native leases, host paths or input-fence receipts enter renderer IPC. A new human page owns a canonical conversation, and human-to-agent handoff accepts only a run in that conversation through the runtime effect gateway. This connected source also supports read-only attachment to an existing active run's Embedded page, after its first gateway-authorized native action establishes the writer generation. Runtime verifies the enrolled application and canonical conversation; attachment allocates no browser and grants no writer. browser.status without session_id discovers only the active run's already granted sessions, including a handed-off human page. Its observations still pass through the effect gateway and release policy. Production attachment remains unavailable without an accepted Embedded supervisor and installed package. See owned browser readiness for functional gaps and the distinct native acceptance requirements.

The native client also discovers expiring client-certificate requests independently of an in-flight initial browser open. Review metadata contains only the native request reference and public certificate details. Desktop can explicitly permit one eligible matching identity, or display multiple candidates in its trusted in-window review. Runtime revalidates the current application, original allocation and canonical writer before a keyed selection; a lost acknowledgement never retries that request. The ordinary presentation relay rejects these operations. Native request references and sidecar incarnation snapshots stay out of renderer DTOs.

Provider YAML for Managed Local contains a validated host:<opaque-id> reference. The key remains in the desktop keychain and is copied into a zeroizing, in-memory sidecar resolver during bootstrap. The provider adapter can resolve it only after policy has authorized the provider action. CLI and daemon configurations remain environment-backed and do not interpret host: identifiers as values.

Same-provider model and profile edits can reuse the native keychain binding without opening another secret prompt. First enrollment, provider-kind changes, and explicit rotation never take that reuse branch. A missing reused key fails before any settings or runtime mutation and requires an explicit replacement retry. Tool access and execution-boundary choices apply through setup Save and start or Workspace Apply without a second native confirmation. Permission-mode selection applies directly between managed runs. Native validation, workspace binding, runtime lifecycle guards, and authenticated worker control remain responsible for applying these choices.

WebView reload does not own sidecar lifetime. Provider and workspace changes request a graceful restart. An unexpected exit receives at most three backoff attempts; create and effect requests are never automatically replayed. Application exit uses the worker's existing run drain, transport force-close, checkpoint, and native process supervision. It terminates the signed sidecar, its managed process group, and still-discoverable descendants. A writer-lease conflict is reported without killing or taking over the existing owner.

Sealed macOS bundle manifest

macOS code signing changes executable bytes, so a digest captured by the Rust build script cannot authenticate the final signed sidecar. Release packaging therefore uses a two-phase contract:

  1. A credential-free runner creates and archives the unsigned .app with both externalBin entries.
  2. A fresh signing runner verifies and extracts those exact bytes, then imports the Developer ID and notarization authority.
  3. Packaging signs the nested sidecar and CLI individually.
  4. It hashes those final bytes into Contents/Resources/colossus-bundle-manifest.json.
  5. It patches the exact manifest SHA-256 into the one fixed binding record in the already-built desktop executable, then signs that executable and the outer app without --deep.
  6. It verifies every nested signature, the outer seal, the embedded manifest binding, and both nested-binary hashes before optional notarization and stapling.

The signed running desktop executable is the manifest trust anchor. Release native code ignores the compile-time unsealed_release marker, opens the resource once with NOFOLLOW, hashes and decodes that same bounded byte buffer, and rejects an unset or mismatched embedded digest. This prevents a same-user path swap or rollback to an older same-team bundle after outer verification. It also fails closed unless the bound manifest has the expected schema, target triple, release channel, fixed filenames, and exact lowercase SHA-256s. The compile-time channel and sealed-manifest channel must match.

The stable channel requires the outer app and desktop executable identifier com.obscuritylabs.colossus.desktop, the fixed .sidecar and .cli nested identifiers, and the exact 10-character Apple Team ID compiled into the release. It uses Developer ID signing and notarization. The explicitly separate developer_preview channel instead requires the ADHOC sentinel, an ad-hoc signature with no Team Identifier, the same fixed code identifiers, strict signature verification, and the same executable/manifest hash binding. It is runnable for time-bounded testing, but it does not establish Apple publisher identity and is not notarized. Native code exposes only this bounded channel name to the renderer for the Developer Preview banner, shown when the device-local Show security warnings preference is enabled (off by default). No signing identity, filesystem path, or credential enters renderer state.

The validation_only channel also uses the ADHOC sentinel but remains non-runnable and is accepted only for CI structure checks; Managed Local rejects it. Debug builds use the development channel and compile-time manifest with canonical development paths. These channels are mutually exclusive, so enabling the preview does not relax stable-channel identity or notarization requirements.

Remote human terminal boundary

The public HumanTerminal operation is a separate, explicitly granted human surface. It requires terminals:control and native worker opt-in; ordinary run execution and agent tool grants do not imply it. The additive human_terminal.v1 capability appears only when both conditions hold. Applications bind a bounded opaque human owner below their own authenticated application identity. See ADR 0011 for Fleet routing and the distinction from agent policy.

The SDK's closed request supports context, open, attach, bounded output read, sequenced input, resize, process signal, and close. It carries no executable, cwd, environment, PID, or native credential. Replies contain bounded session metadata, output/resize frames, cursors, history-gap evidence, and the host incarnation. A browser uses the Control Plane's authenticated WebSocket; it never receives a daemon credential or connects directly to the worker.

The worker's native supervisor retains sessions across caller disconnects, within bounded idle and absolute deadlines. Restart does not adopt PIDs or replay commands. Input loss after dispatch has an unknown outcome; do not retry it automatically. Generated transport envelopes remain independently size-bounded and strictly decoded.

Local terminal boundary

Terminal commands are available only to a dedicated local Tauri window capability. The main window may request that window be shown but cannot open or control a PTY. The terminal renderer receives random window-bound session IDs and can request only the closed colossus_tui and shell kinds for the native-selected workspace. It cannot choose a program, environment, working directory, or arguments.

Desktop does not inject managed credentials, persist transcripts, or send terminal bytes to models, remote nodes, telemetry, or run context. Output, input, and session count are bounded. First-time terminal enablement requires a fixed native confirmation that distinguishes local-user shell authority from the policy-controlled TUI.

On macOS, the shell kind revalidates the persisted Managed Local workspace and launches exactly the validated system /bin/zsh -l with a native-constructed cleared environment. The shell receives no worker authentication. It remains available while the managed runtime is offline, but its commands and effects are outside Colossus policy, remote journal, and audit. A compromised terminal renderer can therefore type commands as the logged-in user while this feature is enabled; the main renderer cannot write to a PTY.

The bundled CLI instead starts suspended in a new session so native code can verify its live code identity against the sealed manifest before resuming it. The CLI independently opens and changes directory through the selected workspace, reports the same persistent object identity to the parent, and receives worker authentication only after that attestation succeeds. Authentication crosses bounded one-use inherited anonymous pipes, never the renderer-visible PTY. Closing the window or app freezes and kills that verified CLI session.

The PTY transports only terminal input and output. Native code passes worker authentication through separate bounded one-use inherited pipes at fixed child file descriptors; those descriptors are never renderer-selectable and never share the PTY stream.

A plan handoff does not widen this boundary. Native code validates the opaque public session and plan identifiers, binds them to a colossus_tui launch request, and releases them only to the dedicated terminal document. That document may submit the two fixed selection commands after the verified TUI opens. The main document still has no open_terminal or write_terminal capability, and the selection performs no lifecycle transition by itself.

Desktop does not claim cleanup of arbitrary shell descendants after setsid, double-fork, or reparenting because macOS exposes no supported race-free job primitive for that boundary. It retains and kills the original process group on a best-effort basis. Clipboard escape writes, automatic URL opening, remote navigation, and general renderer-selected spawning stay disabled. The release terminal surface is served from a label-bound local protocol with its own CSP so xterm may create its required runtime style sheets; the main Work WebView retains the stricter style-src 'self' policy. The TUI path is different: fixed arguments require the existing worker, and its actions retain normal Colossus policy and audit behavior.

After shutdown or a failed launch, SDK cleanup waits for confirmed process-tree death, then removes only the fixed public endpoint descriptor and certificate through a held no-follow directory descriptor. Every leaf is revalidated for identity, ownership, mode, type, and single-link status immediately before unlink; unrelated or unsafe state is left intact.

Connection and enrollment

A daemon connection deliberately has four separate inputs:

  1. an owner-only endpoint descriptor with an exact literal loopback HTTPS endpoint, instance identity, PID, API version, and lowercase leaf-certificate SHA-256;
  2. an owner-only PEM containing exactly one BasicConstraints CA=false public leaf certificate whose DER digest matches the descriptor;
  3. the expected instance identity and certificate SHA-256 provisioned independently during trusted enrollment; and
  4. a one-application bearer credential loaded directly from a platform credential store into native memory.

The descriptor is mutable readiness metadata, not a trust anchor or authorization. It contains no token or private key. Every native convenience connector requires the independent pin and checks descriptor pin equals expected pin and presented leaf equals expected pin before loading the bearer. SDKs reject plaintext, localhost, public interfaces, URL credentials, unknown descriptor fields, certificate-pin mismatch, malformed credentials, and oversized transport messages.

The Rust gRPC connector also requires the independently provisioned instance ID and API major. Its TLS verifier hashes the leaf presented in the live handshake, rejects intermediates, and compares that digest to the expected pin. Before returning a usable backend it makes only the authenticated GetServerInfo compatibility call and verifies the exact instance ID, API package, and daemon-versus-sidecar deployment mode; no credential-bearing application RPC can run first.

Trusted enrollment code creates an exact application grant:

  • application ID and placement;
  • runs:execute, runs:read, runs:control, prompts:respond, approvals:respond, artifacts:read, artifacts:write, agent_messages:read, and/or agent_messages:send;
  • allowed logical roles; and
  • allowed tools.

Empty role and tool grants deny all. Credential issuance first persists a pending keyed verifier and the grant in the canonical journal. Managed Local uses platform-backed encryption; other hosts use their configured storage protection. Pending credentials cannot authenticate. Trusted bootstrap transfers the one-time bearer directly to an operating-system credential store, then records a separate durable activation. The bearer must not enter a file, descriptor, URL, command line, environment variable, crash report, or log. Rotation activates a new credential for the same application ID before revoking the old credential; revocation permanently invalidates either state. If old-credential revocation cannot be confirmed, the active replacement remains in the destination and administration reports both non-secret IDs for reconciliation.

A generic OS-keyring service/account pair is a lookup namespace, not portable process identity or an application sandbox. On some platforms another process running as the same OS user can read an unlocked generic store; on macOS an item created by the CLI may require an access prompt or may not be readable by a separately signed target without an appropriate access policy. Applications that must defend against hostile same-user processes must supply a platform-specific, application-bound credential provider and keep the independent pin in signed configuration or app-owned protected storage. The built-in generic provider protects against files, logs, argv, environment leaks, other OS users, and accidental credential reuse; it does not claim same-UID process isolation.

Public runs may use agent.delegate only when that exact tool appears in the application grant. The accepted run and every delegated job durably preserve the caller's exact tool ceiling. Child runs receive that ceiling but remove agent.delegate from model discovery, which keeps nested delegation fail closed and prevents a child from acquiring the worker's broader internal authority.

Authenticated server discovery reports optional capabilities such as artifacts, attachments, delegation, and typed Plan continuation. Clients must hide or disable optional UI until the server advertises it. In particular, the SDK refuses to encode a plan_action unless the target advertises plans.continue; this prevents an older protobuf server from ignoring the unknown field and treating it as an ordinary run.

Editable next-prompt predictions

composer.prediction.v1 advertises optional AgentRunService.PredictNextPrompt. It is enabled only when the runtime implements prediction and the authenticated application has both runs:read and runs:execute. The Rust SDK exposes Colossus::predict_next_prompt(PredictNextPromptRequest { source_run_id }); its high-level and gRPC transports return an unavailable prediction without sending this RPC to an older server that does not advertise the capability.

The source must be a directly caller-owned completed run, using an allowed role. Shared read visibility grants no prediction authority. The request contains only the source ID: the runtime loads bounded canonical user/assistant prose, excluding tools, images, system instructions, and private agent messages. It uses the source model with no tools, memory, retrieval or provider continuation and a 12-second provider deadline. It requests at most 96 output tokens when the adapter supports that parameter. Codex subscription routes and Chat Completions profiles configured to omit output limits send no token ceiling, so reported usage can exceed 96 tokens. The returned suggestion is still limited to 240 characters. The adapter selects its supported transport, including collected SSE for Codex. The gateway settles and audits the effect even when an editor stops observing it.

The response is strict NextPromptPrediction JSON with source_run_id, optional text, and optional usage. Generated TypeScript, Python and Go bindings carry this envelope in PredictNextPromptResponse.prediction_json. Text is at most 240 characters and is an editable draft proposal. Accepting it must never submit a run. Hosts fence it to the current source and preserve existing drafts. Missing usage means unknown; keep reported auxiliary tokens separate from source-run totals.

A durable claim is written before each source's first provider attempt and a separate receipt afterward. Reconnects or cancelled observers never purchase the request again. Concurrent observers wait up to 16 seconds for that existing receipt; they never start another provider call. An observer can still receive no result when an attempt remains unknown. Cloud can reconcile a later validated receipt over an empty receipt, preserving paid usage without another request. Stale sources, pending/unknown attempts, rejected output and provider failures can return no text. Hosts can retain Local next-step extraction as a fallback; prediction availability must never block an ordinary conversation turn.

Model selection

agent_runs.model_selection advertises optional model_profile and reasoning_effort on CreateRunRequest. Absent fields keep configured role/model defaults. The Rust SDK rejects explicit preferences when the target lacks this capability; Desktop exposes the picker only for an authenticated managed runtime advertising it. These preferences apply to root Execute, Plan, and Goal calls. Research, workflow steps, and delegated agents keep their own routes, and role authorization and tool ceilings stay intact. Authenticated ServerInfo.model_profiles exposes up to 256 configured choices only to callers with runs:execute, including model/provider labels, saved reasoning defaults, and caller-authorized default roles. It contains no provider endpoints or credentials. VS Code uses this catalog with the same shared picker as Desktop and validates each submitted preference against the connected worker's metadata.

Artifact uploads are caller-owned, size- and digest-bound, and chunked; downloads revalidate the released length and digest. Run attachments contain only opaque artifact IDs, never client or server filesystem paths.

attachments.image_input is advertised separately from the existing text-attachment capability. SDK ContentPart::Artifact calls remain unchanged and caller ordering is preserved, but servers reject image artifacts unless the selected model profile has explicitly enabled image inputs.

Public v1alpha1 runs cannot select plugin skills. The removed selected_skills field numbers and names are reserved, and a streaming protobuf wire guard rejects those fields before allocation. Plugin selection remains a local runtime surface until an application grant can express and durably preserve an exact qualified-skill ceiling.

CreateRunRequest.end_user_id is optional caller-asserted correlation data. It uses the bounded public token grammar, may contain PII, and is neither an authenticated principal nor an authorization input. It is included in the idempotency fingerprint so one key cannot replay a request attributed to another asserted end user. An accepted W3C traceparent/tracestate is deliberately excluded from that fingerprint, allowing a retry from a new calling span to remain a valid replay. See Live observability.

The installed Unix worker provides the first-party bootstrap path: perform worker --public-api-dir ... --enroll-application ... while the worker is stopped, then start worker --public-api-dir .... Enrollment requires exact scope and role ceilings and writes the one-time bearer directly to the application's named OS-keyring entry. See Storage and worker for the complete command and rotation procedure.

Enrollment output includes the stable non-secret instance ID and certificate SHA-256. Provision both into trusted application configuration separately from the discovery directory. Never compute the expected pin by rereading endpoint.json or certificate.pem; doing so would make a same-directory replacement self-validating.

The initial server also bounds each TLS handshake to five seconds, accepts at most 128 simultaneous connections, permits at most 80 concurrent request setups globally and per connection, permits 128 HTTP/2 streams per connection, expires connections after 15 minutes, limits each unary request and streaming-handler setup to 35 seconds, limits HTTP/2 headers to 16 KiB, limits decoded request messages to 2 MiB, and limits encoded responses to 8 MiB. The response budget includes a sanitized command context of up to 4 MiB plus its envelope; command, effect, and request limits remain unchanged. Only eight authenticated protobuf decodes may run concurrently, with at most two for one application; the permits are acquired after authentication but before message decoding. A streaming protobuf wire guard rejects the 129th top-level CreateRun.input field, the first forbidden selected_skills field, and the tenth packed or unpacked ListRuns.statuses value before Prost can allocate their decoded collections; post-decode validation remains as defense in depth. The transport independently caps active watches at 64, leaving 16 request slots that watches cannot consume for cancellation, interaction responses, and system RPCs. These effective transport limits are advertised through GetServerInfo. The Rust client verifier also rejects TLS 1.2 signatures, preserving the TLS 1.3-only contract even if a future server configuration regresses. The deterministic local leaf uses P-256 so the same pinned identity works with the Rust, Python gRPC C-core, Node.js, and Go SDK transports. Run input is limited to 128 parts and 1 MiB, and max_turns cannot exceed 100. Zero selects the configured positive default; it does not request an unlimited run.

Preview applications enrolled against the earlier Ed25519-derived leaf must perform one authenticated re-enrollment after upgrading and store the newly reported certificate fingerprint. The P-256 leaf remains byte-for-byte stable for the same stored seed after that one-time pin rotation.

Default application-resource limits are 32 active runs globally and eight per application, with fresh-create token buckets of four runs/second (burst 16) globally and one run/second (burst four) per application. Watches are limited to 64 globally and eight per application. Owner-index listings allow four concurrent requests globally and one per application, with separate global and per-application rate limits. The server advertises the effective values through GetServerInfo.

ListRuns reads only the authenticated application's durable run index, newest first; it never scans the shared global journal. CreateRun appends the idempotency claim, run creation, and owner-index entry in one transaction, retrying an owner-index head conflict without exposing a partially indexed run. A page contains at most three runs. One request reads owner-index events in batches of eight, advances through at most 64 index entries, reconstructs at most 16,396 run events, and accepts at most 4,099 events from any one valid run stream. Sparse filters can therefore return a short or empty page with a continuation token; clients continue while that token is present. Ordinary nonterminal appends stop when the durable sequence reaches 4,096; three reserved lifecycle events allow interaction closure, the cancelling transition, and one terminal event without making that valid stream unlistable.

Each run-update event carries a versioned projection of the public state immediately before that update and the cumulative released-byte count. Protected storage encrypts the payload; keyless storage keeps canonical plaintext with payload and record hashes. A mutation authenticates the creation event and two-event tail, derives the current state and byte count from the predecessor, validates the tail projection against them, then uses optimistic stream concurrency for its append; its work is independent of run history length. While an interaction is pending, only its resolution or a conservative terminal settlement may append, preventing repeated projection of its bounded prompt. Full reads still replay every transition and cross-check every embedded projection and byte count, so the fast mutation path does not replace journal-chain verification with an in-memory cache.

The opaque continuation token binds the application and canonical filters and carries the owner-index snapshot head plus an exclusive resume version. The server validates both referenced index versions before continuing. Runs created after the first page do not shift that traversal, and per-request work stays bounded independently of unrelated journal growth.

Durable run contract

Canonical conversation export

AgentRunService.ReadSessionTranscript is an optional read-only capability, advertised as conversations.transcript.v1 only when the host implements it and the authenticated caller has runs:read. The Rust SDK exposes client.runs().read_session_transcript(ReadSessionTranscriptRequest). Custom backends default to unavailable; the capability does not imply that the worker hosts the broader SessionService.

The request addresses a canonical session through source_run_id, an owned or explicitly shared visible run. The service checks both run visibility and the original session's current sharing rules on every page, including before releasing the response. Owning a continuation run does not bypass revocation of the original session. The caller does not supply a session path, owner, transcript text, or attachment authority.

The canonical DTOs live in colossus-contracts::transcript, with request validation in colossus-api::transcript and protobuf messages in api/colossus/api/v1alpha1/transcript.proto. TranscriptPage contains fixed TranscriptSnapshot metadata, chronological TranscriptMessage records and an optional opaque continuation. The public page size defaults to 32 and accepts at most 32 messages. Each canonical page is bounded to 1.5 MiB; the indexed reader scans at most 128 events in batches of eight without replaying the entire session. Filtered pages can be empty and still carry a continuation. Follow every token until it is absent; message sequence gaps from excluded records are valid.

Transcript pages have separate admission from metadata lists: at most two active reads globally and one per application, with four global waiters and one per application. The global token bucket allows 16 pages per second with a burst of eight; the application bucket allows eight per second with a burst of four. Admission waits for at most two seconds and releases queued capacity on cancellation. A full queue or expired wait returns CapacityExceeded. Source, session-sharing and cursor checks run again after admission and after reading; waiting never reserves metadata-list capacity.

The first page fixes the session stream boundary, title, capture time and activity for that traversal. active means session activity was established; idle requires proof of inactivity; unknown must remain unknown. Appends after capture are excluded. Signed public cursors bind the application, source run, session, sharing revision and snapshot, expire 30 minutes after capture, and can become invalid after a service restart or sharing change. Start a new traversal after an invalid or expired cursor rather than combining pages from different snapshots. An individual message that does not fit the page's JSON byte budget fails instead of being shortened, even if the total export is below its limit. JSON escaping can make a message exceed that budget; changing output format or using the CLI does not bypass the canonical reader's bound.

The user export guide owns disclosure scope, formats and recovery. The session reader projects only the released human/application conversation; it never uses provider working context, run-feed excerpts or UI caches as the export source. Existing run-input handling expands supported text attachments into canonical user text and can merge adjacent text parts before saving. Export preserves that saved text, including attachment contents and their labels; it does not infer or remove attachment text from those labels. Image and opaque attachment references remain metadata placeholders. Export fetches no attachment file and embeds no image bytes. It reads existing journal events and indexes without a SQL migration. colossus-presentation::TranscriptWriter owns Markdown, text and JSON formatting. Hosts must stage bytes, require a stable snapshot, advancing cursors and complete traversal, and publish only after finish() succeeds. The shared formatter caps output at 256 MiB and 10,000 pages.

Desktop's narrow export_conversation command resolves the source natively and accepts operation/target/run identities, format and Save/Copy choice. It accepts no renderer-provided path or transcript. Native code reads and stages the snapshot, uses the native Save dialog and publishes without replacing an existing file. Only Copy releases bounded formatted text to the renderer. The dialog prepares that text first; a separate user click invokes the host's clipboard write directly, preserving browser user activation. Cancellation and target generation checks fence preparation and the final save or clipboard handoff. See the Desktop workflow for its limits.

Cloud's POST /api/projects/{project}/threads/{thread}/transcript/export derives the source from an authorized thread. It requires CSRF protection, project Read access and personal-thread visibility. The server pins the connected runtime generation, checks access throughout traversal and before response, and returns no-store attachment bytes only after complete formatting. The endpoint allows two concurrent exports per server process, a 20-second total deadline and 64 MiB output. Hosted read-only hydration uses the existing fenced personal runtime; it cannot admit a run. Arbitrary transcript reads through the generic resource endpoint are rejected. The Cloud workflow retains the loaded-history fallback and distinguishes a started download from a saved file.

Workflow resources

The worker hosts authenticated AutomationService alongside chat services. The Rust SDK's optional workflows() client exposes canonical registered-definition metadata and schemas, validate/register of existing YAML, schedule list/detail/create/control, independent workflow-run start/state/history, and a bounded active-work fact for lifecycle supervision. Public workflow runs are separate from AgentRunService chat runs. Generated TypeScript, Python, and Go contracts expose the corresponding typed RPCs.

Discovery advertises workflows.read/register, schedules.read/create/control, and workflow_runs.read/start only for hosted support and sufficient scopes. New runtimes also advertise schedules.calendar, schedules.tasks, and workflow_runs.history. Task creation additionally requires definition read/register scopes. Enroll their distinct colon-separated API scopes. Registration requires definition read; schedule mutations require schedule read; independent allocation requires workflow-run read. Managed Local's primary grant contains these scopes and six exact workflow tools; its separate native approval broker receives no scheduling scopes or tools.

Operator mutations are authenticated application controls. Agent requests instead cross the ordinary effect gateway, exact ceilings, policy, approval, one-use permits, and quarantine. The host derives bounded owner/session/run provenance from trusted live run evidence and checks public scopes again immediately before committing. Renderer and model arguments cannot choose provenance or a runtime. Native Desktop commands hold the selected-target lease and validate its generation through each request; mutation guards reject configuration drain. SDK mutations attempt once and report lost/malformed responses as outcome-unknown rather than automatically retrying.

Schedules pin a reviewed canonical definition hash, validated immutable inputs, fixed cadence or IANA calendar recurrence and UTC start. Calendar weekdays normalize before approval/retry hashing; missing times skip and repeated times run once. Plain-language tasks atomically allocate a hidden one-step definition with configured model/effort and an exact allowed-tool ceiling. Creation and its caller-scoped receipt share one transaction; equivalent UTC offsets normalize before approval/retry hashing. Matching retries return the original allocation; mismatches conflict. Enabled-state controls check the last canonical schedule record hash under the same writer lock as ticks. Legacy records without ownership expose only metadata and cannot be controlled or reveal inputs/runs. Future queued runs preserve their origin and undergo current policy and trust checks.

Workflow pages are limited to 100 items and omit input schemas/snapshots until detail. Definition detail and validation also release bounded structural logic: at most 512 steps and seven nested branch levels within 256 KiB, without prompts, tool arguments, child inputs, or emitted values. Catalog pages omit this projection; older or oversized definitions may omit it while keeping ordinary metadata available. Owned run snapshots release recorded step states and distinct completion counts, without inferring unvisited paths. Owned run detail can release the final schema-validated JSON object up to 64 KiB via result_json, preserving exact JSON integers. Desktop keeps this result as JSON text through the native-to-renderer boundary. History pages omit results and step states, isolate ownership, and sort by canonical allocation sequence rather than run ID. Their exclusive cursor is a previously allocated owned run ID for the same definition. Desktop renders the graph only when its definition hash matches the selected workflow, schedule, and run. Workflow requests are bounded to 256 KiB, responses to 2 MiB, and four concurrent domain operations. Workflow watches share the 64-stream server ceiling with chat watches, leaving existing unary headroom. Their exclusive sequence cursor yields coalesced canonical snapshots, ends on terminal state/disconnect, and is bounded to 15 minutes; reconnect or poll explicitly. Runtime active-work inspection fails closed when its bounded catalog cannot prove inactivity. Future schedules alone do not pin workers.

CreateRun durably claims an idempotency key before execution. A caller can then fetch the run or call WatchRun with an exclusive after_sequence cursor. Watch delivery is at least once; SDKs deduplicate exact (run_id, sequence) replays and fail on gaps. Dropping a watch never cancels its run. SDKs reconnect only after an explicitly retryable transport failure. All SDK watch paths reconcile a clean stream close with GetRun and complete only when it proves the same run is terminal at the exact verified cursor. Daemon and sidecar streams can resume a non-terminal watch under their bounded read-only retry policy. Embedded and custom checked streams instead fail closed when reconciliation is unavailable or does not exactly match; a clean close is never accepted as silent completion.

The existing colossus.api.v1alpha1 field ProviderRetry.http_status accepts HTTP 500 alongside 502–504. When upgrading a runtime independently, update Rust SDK clients with the earlier status allowlist, including Desktop v0.12.2. Those clients reject an HTTP 500 retry event in live or replayed watches. Managed Local Desktop bundles matching runtime and decoder versions. Older API runtimes also reject affected run history when they read a journal containing these events. Before upgrading, make a verified state backup. For rollback, use that pre-upgrade backup with its matching key material and secure anchor when protected storage is configured.

Run.title follows the canonical session title when one is set. Its title_revision is the session-title index stream version, independent of the run's last_sequence. Compare positive title revisions only within the same session_id; a lower revision must not replace a newer title received from another run or discovery page. Zero denotes the opening title or an older server without title revisions and must not replace a positive revision. The run-feed cursor and execution etag remain unchanged by this display metadata.

When CreateRun omits session_id, the durable run receives a server-owned session identity. The canonical session is materialized during agent initialization if execution proceeds; cancellation before start can leave that identity associated only with the run. The initial hosted surface does not expose SessionService.

Prompts and approvals are durable, one-use interactions bound to the owning application. Prompt choices echo the exact displayed choice. Approval answers echo a fresh randomized one-use binding; the private policy request hash never crosses the native boundary. Approval DTOs retain a fixed public action taxonomy plus a bounded display category or HTTP(S) origin. Command execution has one narrow exception: optional command_context contains the agent's task justification, prepared executable, arguments (excluding the executable), working_directory, and redacted. These sanitized details may include actual paths and URLs and are readable only through the owning application's authorized run interface. They omit environment maps, stdin, private policy reasons, and private request hashes, and redact known secret values and recognized credential forms. Arbitrary secret literals cannot be inferred from ordinary text. Instruction-like text is plain display data, not permission to run another command. Other effect arguments remain private. Public shell.run activity events omit raw tool input, which has not yet crossed command preparation or display sanitization. Inspect the pending approval's command context instead; this also prevents duplicate unredacted commands in activity titles. Completed and restored shell activity displays retain only typed process output/status fields, not the repeated invocation, argument vector, working directory, or observed origins. Unknown result shapes are withheld. Bounded previews remain parseable JSON on reconnect; this display projection does not change runtime/model results or evidence.

The generic approval reason retains its existing semantics; display the command justification separately as agent-provided. Missing command context means a historical or non-command interaction, not a reason to synthesize task intent. Full-details views must not silently truncate accepted commands. Command context participates in immutable challenge validation and durable replay. Public protobuf field 8 is additive; removed fields 1 and 7 remain reserved. The configuration schema version is 3. The server revalidates responses against the private request and applies current scope checks to cancellation and response operations.

Private worker protocol 29 adds the authenticated TUI request that saves an unsaved conversation as a session. Use matching client and worker builds, and restart older workers after updating.

Loopback limits bound resource consumption but cannot guarantee availability against a hostile local process, including one running as another OS user: loopback TCP does not carry filesystem-style ownership. Such a process can open unauthenticated sockets and consume some finite connection or handshake slots. Deployments with that threat model need an ACL-bound local transport or operating-system process isolation in addition to application-bound credentials.

After an unclean worker stop:

  • a durable queued run can resume with its accepted authority snapshot;
  • a run waiting for user input becomes interrupted;
  • a run that may have started an external effect becomes outcome_unknown; and
  • SDKs never automatically retry an operation whose outcome is unknown.

Recovery uses the grant captured when the run was accepted. The request that notices an orphan cannot lend broader current authority to it.

Revoking a bearer prevents future requests made with that credential; it does not rewrite or silently weaken already accepted durable work. To terminate accepted work, use another credential for the same application with runs:control to cancel the run. This distinction keeps recovery deterministic and avoids treating a credential rotation as an ambiguous partial cancellation.

Source and release workflow

  • Protobuf source: api/colossus/api/v1alpha1
  • Rust SDK: crates/colossus-sdk
  • TypeScript, Python, and Go packages: sdk/
  • Generated binding command: ./sdk/scripts/generate
  • Generated binding gate: ./sdk/scripts/check-generated

Generated sources are replaced from the local Protobuf tree. Do not upload a private schema to a hosted generator. A release runs Protobuf lint/build, generated-tree checks, each language's tests and type checks, Rust workspace checks, and a live TLS/authentication round trip.

The alpha package may make breaking corrections before a stable v1 package exists. Once v1 is published, reserve removed field numbers and names, add fields and RPCs compatibly, and support adjacent API versions during migrations.

Control Plane resource management

The outbound connector can advertise runtime.resources.v1 for a closed set of public workflow, schedule, independent workflow-run, and plugin-discovery operations. These requests use the dedicated cloud application's SDK clients. Managed Desktop adapters resolve that application's transport after a restart and never fall back to the primary Desktop grant. The controller intersects project Read, Execute, or Control permission with the runtime's independently enforced scopes and ownership.

Configured model choices use the additive runtime.model_catalog.v1 capability. Clients first discover the selected connection's context, then request its model catalog only with project Execute permission and agent_runs.model_selection support. The catalog releases configured profile labels, provider names, reasoning defaults, and role mappings; credentials and provider configuration remain on the host. Per-run model and reasoning choices apply to Execute, Plan, and Goal. Research keeps its configured runtime routes. Missing support retains host defaults, and a reconnect invalidates choices until the new connection's catalog has been checked.

Management is online. The controller records a short-lived request under the exact connection lease; any HTTP replica can admit and read it, while only that lease's stream owner can claim dispatch. Claimed requests are never replayed after reconnect. A lost mutation response reports an unknown outcome. Allocation retries retain the SDK's original durable idempotency key; revision controls retain the reviewed ETag. Pending requests are limited independently from agent tasks and watches. PostgreSQL retains metadata audit digests while bounded maintenance removes expired request and response payloads.

Enrollment alone does not grant automation management or release another application's schedules. The existing Managed Desktop cloud grant remains separate from Desktop's workflow grant. Plugin lifecycle, credential custody, local runtime configuration, and the private session map are not exposed through this transport. Applications must advertise and authorize a public resource contract before Web can manage those surfaces.