Skip to content
Draft, pre-release documentation

Every run leaves a record in KASM_RUNTIME_OUT: report.json, report.md, the live trace.jsonl, screenshots and log tails. The runtime keeps registered secrets out of that record. None of this depends on a model, except where noted.

The runtime replaces each of these values with [REDACTED]:

Value How it is registered
Any KASM_RUNTIME_SECRET_* or TESTBENCH_SECRET_* variable Read from the environment at start
VNC_PW, VNC_VIEW_ONLY_PW Read from the environment at start
KASM_RUNTIME_SESSION_TOKEN Read from the environment at start
KASM_RUNTIME_INBOX_TOKEN Added at start, in both run and mcp
KASM_RUNTIME_VISION_API_KEY Added at start, in both run and mcp
The sidebar token the runtime generates Added at start, in mcp
Variables named in KASM_RUNTIME_REDACT_ENV (comma-separated names) Read from the environment at start
Any value a scenario expands from a $NAME reference in a type, set_text, cdp_fill or provides: value Added at the moment it is expanded

Put credentials in a KASM_RUNTIME_SECRET_* variable and reference it from the scenario as $NAME. A literal written into the scenario file is not registered with the redactor. There is no supported setting to disable redaction; KASM_RUNTIME_REDACT_ENV adds values to the built-in list.

Redaction runs on everything the runtime writes as text:

  • report.json: every string field in the report is rewritten. Two fields are exempt, the tool-name list and the policy identifier, because they come from closed sets.
  • report.md, including the failure narrative and notes.
  • trace.jsonl and the live /events stream: every event is redacted before it is written.
  • The run log on stderr, and the fatal report a run writes when it cannot start.
  • Log tails in logs/*.tail and the excerpts quoted in report.md, line by line as they are collected.
  • Captured shell output, before it is cut to evidence.shell_output_chars (default 2,000 characters). The cut point moves so that it never splits a registered secret and leaves a partial prefix. The shell method returns the same redacted and cut text to its caller.
  • Inbox messages, reply values and request text, at the moment they arrive, so the inbox file, the trace, the report and the model’s context all hold the same redacted text. A typed reply whose redacted form would break its declared schema is refused with 422 rather than stored altered.

Values typed with type_text, set_text, input.type, cdp_fill, dom.fill or dom.type are recorded by length only (“typed 12 character(s)”), whether they came from a secret or a literal.

Limits:

  • Redaction replaces exact substrings. A secret that appears transformed (base64-encoded, URL-encoded, split across lines, or in different case) is not recognised.
  • A short secret value also replaces every other occurrence of the same characters in the output.
  • The report records the vision endpoint URL in full (agent.vision.endpoint). Put an API key in KASM_RUNTIME_VISION_API_KEY and keep it out of the URL.
  • What the agent in a workspace does on its own. The harness’s shell, file edits and conversation transcript are the harness’s own and are not in the runtime’s report. A credential the person types or pastes into the conversation sits in the harness’s transcript in the session user’s home directory. The runtime registers the values it holds; it cannot register one the person supplies.
  • Screenshots. A secret visible on screen when a capture is taken is in the saved image, and the image is sent to the model when one is configured. The runtime takes captures at action boundaries on its own, and there is no per-step switch. The only remedy is keeping credentials off the screen.
  • Browser page text sent to the model. Page text and element lists from the browser go to the model as the page presents them; accessibility listings have the registered values removed first. Both are redacted when they are written to the record.
  • What the dom.* methods return to their caller. Registered secret values are removed from titles, URLs and element names, in identities, listings, results and errors. The text and attributes a query matches, and anything personal or sensitive the page shows, reach the caller as the page presents them: redaction knows only the registered values. Grant dom.* on an application on the assumption that the caller can read what a person signed in to it sees.
  • Keystrokes seen by input observation. With KASM_RUNTIME_OBSERVE_INPUT on, every key the session receives is written to the trace verbatim, from any source, except while the runtime itself is typing: those events carry no key or text. A password a person types in the viewer is recorded key by key and is not a registered secret. Turning it on forces a token on the observe routes.

report.json and its companions record, per run:

Record Where
Verdict, outcome and the reasons for them verdict, outcome, reasons; DONE holds the verdict and is written last
Deterministic probe results: process, window, logs probes
Each step: action, the backend that ran it (cdp, atspi, xtest, vision, shell, rpc, none), the click rung, the result, the duration and any postcondition checks steps[]
Each grounded click: what was asked for, where the model put it, whether it clicked and the verification outcome grounding[]
Each file transfer: path, byte count and SHA-256, never content transfers[]
The agentic loop: iterations, retries by class, whether it degraded, the model’s verdict and summary, the tool list offered, token usage agentic
The configuration in force: runtime version, whether the run was deterministic-only, model name, endpoint, capture geometry, answer convention, sampling, the operator file’s effective values, legacy variable names in use agent
Escalation: reason, how long the pause lasted, process and window state before and after escalation
Screen geometry the run used screen
Screenshots at step boundaries, and 99-failure.png on failure screenshots/
The last lines of the app’s logs (200 by default) logs/*.tail
Every event as it happened, including the model’s text each turn trace.jsonl

Tool results, call arguments and the model’s text are cut to evidence.tool_result_chars (default 300 bytes) in the step table and the trace. The model sees the full text during the run; the record keeps the shortened version.

  • The report is not signed. It is written by a process running as the session user, into a directory that user and anyone holding the session token (through shell) can modify. Treat it as the runtime’s account of the run, and protect it after collection if you need it unaltered.
  • The report records what the runtime did and saw. It is evidence you can use in a review; it does not make a deployment compliant with any standard.