Skip to content
Draft, pre-release documentation

Terms these docs use with a specific meaning. Names in code format are the field, value or variable exactly as the runtime spells it.

Agent. The coding agent that does a task: the harness the runtime starts in a workspace, or your own agent when it drives a session from outside. The loop behind a scenario’s goal: is the runtime’s loop.

Answer convention. The shape in which the vision model is asked to give a location when grounding: point (the default, a point with a found flag) or box2d (a bounding box, reduced to its centre). Coordinates are normalised to KASM_RUNTIME_VISION_GROUNDING_SCALE (default 1000); set the convention with KASM_RUNTIME_VISION_ANSWER_CONVENTION. See Vision models.

Backend. The mechanism a step used to reach the application, recorded in each steps[] row as backend: cdp, atspi, xtest, vision, shell or none, and rpc for a call from an outside agent. A grounded click is recorded with backend xtest and rung grounded: X input performed the click at a coordinate the model supplied.

Capture geometry. How a screenshot is shaped before it is sent to the vision model: native (the default, as captured) or square-padded (centred on a square canvas). Set it with KASM_RUNTIME_VISION_CAPTURE_GEOMETRY; it is independent of the model name.

Declared target. A named click position written into a scenario’s click_targets: map as fractions of the window, for example save-button: [0.92, 0.05], and used as click "save-button". It resolves at rung 1 and needs no model.

Deterministic-only. How the runtime runs when KASM_RUNTIME_VISION_ENDPOINT is empty, or after the model has failed repeatedly during a run: every step and check that needs no model still runs, nothing is judged visually, and the report says so. See When you need a model.

Grounding. Asking the vision model where a described element is on screen and getting back a screen coordinate. It is rung 3, the last rung of the ladder. A scenario’s click_grounded step must carry an expect: check, and the MCP method screen.ground returns the location and leaves the click to the caller. Grounding needs a vision backend: an endpoint, or a signed-in Claude Code agent in the workspace.

Harness. A coding agent the runtime can start and manage inside a session: Claude Code, Codex or OpenCode. The runtime runs it in a terminal window, delivers the person’s messages to it and takes its replies back. See Choosing an agent.

Human intervention. A person taking control of the session while a scenario’s run is paused after the runtime’s loop called escalate. It ends at the run’s deadline, at runner.escalation_pause_s, or when the person sends finish_intervention (the sidebar’s I’m done, finish), and the run never resumes. See The sidebar.

Inbox. The channel between people in the session and whoever is working: messages from the person, typed questions (human.ask, or ask_human in the runtime’s loop), and control actions such as stop and finish_intervention. The sidebar shows it as the Messaging tab. See Sidebar protocol.

Judge. The vision model answering a yes-or-no question about a screenshot: whether the application rendered, whether an expect: or observe: holds, or a screen.judge call. The judge can fail a check the scenario asked for, but it cannot turn a failed probe into a pass. Judging needs a vision backend, like grounding.

Messaging. The sidebar tab where a person sends the agent messages and files, answers its questions and sees what it needs from them. See The sidebar.

Observe port. The HTTP listener on KASM_SESSION_RUNTIME_PORT (default 9434) that serves /events, /artifacts/ and the inbox routes a sidebar reads. It is the same port as MCP over HTTP, and Kasm’s port map for it is named runtime. kasm-session-runtime run opens it when KASM_RUNTIME_OBSERVE=1. See Sidebar protocol.

Operator file. An optional YAML file, named by KASM_RUNTIME_CONFIG_FILE, holding tuning that belongs to the deployment rather than the test: loop budgets, model sampling and transport, reply caps, waits, evidence limits and which built-in tools the model may use. Each setting also has its own environment variable. See Operator file.

Outcome. The result of a recipe run, computed by the runtime: verified, refused, unverified or needs_decision. Only verified is success. See Recipes.

Plan. A scenario’s plan: list: actions, each with at least one postcondition, replayed with no model call. If a step fails or its postcondition does not hold, the run hands over to the runtime’s loop from that point, so a scenario with a plan also needs a goal:. kasm-session-runtime compile-plan writes one from an earlier run’s transcript. See Plans and postconditions.

Playbook. A task brief that a person starts from the sidebar and an agent follows. It names an objective, the input the person gives and what the agent hands back, and it needs an agent with a model. See Playbooks.

Postcondition. A fact that must be true after an action, declared in a post: list and waited for up to its timeout: url, dom, state, window, no_window, process, no_process, file or screen. All but screen are checked without a model. Required on every plan: step, optional on a steps: entry.

Receipt. The record a recipe run returns: a tree with one frame for each recipe that ran, with the outcome, the checks, the calls made and any open question. See Recipes.

Recipe. A checked operation on an application that any agent can call. It takes arguments, drives the application, and returns a receipt. A recipe is one of four levels: a guide, instructional steps, an executable operation or a composite of operations. See Recipes.

Rung. A level of the ladder (the order in which an action tries to reach its target) that decides how a click finds its target. From most trusted to least, the rungs are a browser or keyboard action (no coordinate), a declared or literal window fraction (rung 1), an element the application names through accessibility (rung 2), and a vision-grounded coordinate (rung 3). Each click’s rung is recorded in its step row as center, declared, literal, element or grounded. See How an action reaches an application.

Scenario. A YAML file describing one job: the application, how to find its window, scripted steps:, and optionally a plan: and a goal: for the runtime’s loop. The runtime takes it as file paths given to kasm-session-runtime run, or as base64 in KASM_RUNTIME_SCENARIO_B64. See Scenario YAML.

Session token. The value of KASM_RUNTIME_SESSION_TOKEN. Setting it in a session’s environment switches the runtime on, and the same value is the credential for MCP, the /v1/ routes and the /cdp/<name>/ passthrough, sent in the X-Kasm-Runtime-Session-Token header and nowhere else. The messaging token (KASM_RUNTIME_INBOX_TOKEN) is the narrower credential for people’s messages, and may also be sent as ?token= on the activity and inbox routes. See What the process can reach.

Sidebar tabs. Workspace shows the applications, playbooks and the agent. Messaging is the conversation with the agent and its questions. Activity lists each step as it runs. Details shows the session’s configuration and the agent’s setup. See The sidebar.

Sidebar. A panel beside the Kasm viewer that shows the session as it happens and lets the person send messages, answer questions, start playbooks and stop work. It has four tabs: Workspace, Messaging, Activity and Details. The bundled sidebar is named default, and a session picks one with KASM_RUNTIME_SIDEBAR. See The sidebar and Replace the sidebar.

Step. One entry in a scenario’s steps: list: an action, optionally with expect:, observe:, expect_state: or post:. Also one row in report.json’s steps[], which records every action the run took, including the runtime’s loop’s tool calls and calls from an outside agent. See Report.