Guides
Browser workspace
The browser workspace is the same investigation workflow as the CLI behind a
small Bondren-styled UI: case inputs and recorded experiments, not dashboard
metrics. It serves history, live runs, evidence inspection, and report
downloads from the same reports/ directory the CLI writes.
Run it
Section titled “Run it”Use Node.js 24 and Go 1.27.4 on the development VM:
make install-uimake build-uimake buildbin/triagelab serve --config triagelab.example.json --output reportsThe default listener is 127.0.0.1:8080 and --assets defaults to web/dist.
The server binds only to loopback; reach it through an SSH local forward:
ssh -N -L 8080:127.0.0.1:8080 YOUR_DEV_VMOpen http://127.0.0.1:8080. Sign-in is required — see
sign-in and roles. The UI lists existing CLI reports in the
selected output directory, including a separately labelled example bundled
from the repository’s recorded verification report. Viewing history or the
example does not require a running model provider.
To investigate, configure kagent and its model credential as in the
quickstart, forward the controller port on the VM, and
set TRIAGELAB_TOKEN in the server’s environment before starting it. Neither
that token nor the model key belongs in browser configuration. Model and cloud
usage can incur charges even though TriageLab is free.
Ticket evidence files
Section titled “Ticket evidence files”Attachment rules accept UTF-8 source, configuration, logs, and other text files.
The procedure editor lists the supported extensions. For a rule that matches
an extension, the requester can also paste a fenced code block in a Markdown reply with a language
tag such as python or yaml. For a rule that matches a specific filename,
include a hint such as filename=settings.yaml in the opening fence. Uploaded
files take precedence. The report attributes inline evidence to the requester
message it came from. Each run can include up to four files of 1 MiB each.
Automatic ticket investigations
Section titled “Automatic ticket investigations”Ticket cases default to Approve and start investigation. To let a matching
procedure start runs automatically, set policy.auto_runs to true in the
ticket source JSON passed to serve --tickets and restart the workspace. The
default procedure uses that setting when no procedure has been saved. For
saved procedures, an admin can enable Start automatically when evidence is
ready under Ticket cases → Edit procedures.
Automatic investigation comments
Section titled “Automatic investigation comments”When the connection allows posting — investigation_comments for GitHub,
GitLab, and Linear, internal_notes for Zendesk, Bondren, and Jira — a
procedure can also share the outcome on its own: set policy.auto_comments
to true (or enable Post the investigation comment automatically when the
run completes in a saved procedure). When such a run completes, TriageLab
posts the prepared investigation comment or internal note itself and records
the delivery receipt. Automatic posting needs the connection’s credential or
OAuth session; if it cannot run — the note is held by the output sanitizer or
the ticket closed — the preview stays on the report for a human to review,
edit, and post. Without this policy, completed runs always hold the comment
for review, and reviewers can edit the exact text before it is posted.
CEL policy demo
Section titled “CEL policy demo”Follow three GitHub issues through TriageLab to see how CEL policies match a procedure, add a label when evidence is missing, and start an investigation when the ticket is ready. The demo also shows how to preview a policy and inspect the audit trail for a policy-started run.
Watch the CEL policy demo on YouTube (5:30)
Conditions based on ticket properties
Section titled “Conditions based on ticket properties”Set the optional policy.auto_run_condition expression in the source JSON,
or edit Automatic start condition in a saved procedure.
For example, a Zendesk procedure can allow only high-priority tickets with a
specific tag.
ticket.priority == "high" && "reproduce" in ticket.tagsThe corresponding policy fields are shown below. Keep the source connection settings and other policy fields in your configuration.
{ "auto_runs": true, "auto_run_condition": "ticket.priority == \"high\" && \"reproduce\" in ticket.tags"}Use Condition builder to pick ticket properties and combine them with
All conditions or Any condition. Switch to Raw CEL to see the
generated expression or write your own. The Monaco editor highlights CEL,
completes ticket properties as you type ticket., and shows property help on
hover. Press Ctrl+Space for suggestions. Zendesk procedures also suggest
priority and custom_fields; custom-field IDs use bracket notation, such as
ticket.custom_fields["123"].
The server checks the expression as you type. Errors appear inline and in a clickable list with line and column locations. Tab moves to the next control. Preview the draft against a ticket to check how its actual attributes affect the case. Suggestions describe the supported properties; they do not discover custom-field IDs or replace validation against a real ticket.
CEL can also shape ticket preparation:
| Editor | JSON field | Effect |
|---|---|---|
| Procedure match condition | policy.match_condition |
The first matching procedure supplies the investigator and sandbox template, which determines the image. A CEL condition takes the place of the tag check. The tag becomes the procedure label. Status, priority, and configured custom-field filters still apply. |
| Conditional requirement | evidence[].required_when |
A required evidence item is mandatory when its condition returns true. Otherwise the item is optional. |
| Clarification condition | policy.auto_question_condition |
When missing evidence would queue a clarification request (auto_questions), only enter ask or allow follow-up sends when this condition returns true. |
| Automatic start condition | policy.auto_run_condition |
A ready ticket starts automatically when the condition returns true and automatic starts are enabled. |
A match, evidence, or clarification condition that cannot be evaluated sends the case to review (fail-closed). Preview shows the selected sandbox, any missing evidence, and whether clarification is allowed. An empty match condition uses the tag check. An empty evidence condition keeps the item’s required or optional setting, and an empty clarification condition allows clarifications whenever required evidence is missing.
CEL receives a ticket map with these properties from the current source read.
| Property | Value |
|---|---|
source |
zendesk, github, gitlab, linear, bondren, or jira |
id, requester_id |
Integer identifiers used by the connector |
subject |
Ticket title |
status |
Connector status, including Linear state type, GitLab issue state, and Jira status-category key |
priority |
Zendesk priority, or an empty string for connectors that do not collect it |
tags |
List of tags or labels, empty when none are present |
custom_fields |
Map of Zendesk custom-field IDs as string keys to their JSON values, empty for other connectors |
updated_at |
Source update timestamp as a string |
Guard optional fields before accessing them. JSON numeric custom-field values are doubles, and other values retain their JSON types.
"84" in ticket.custom_fields && ticket.custom_fields["84"] == "python"The condition must return a boolean. Empty conditions preserve the existing behavior of starting when the procedure’s evidence requirements are met. A false result or evaluation error leaves the ready case available for manual approval. Preview shows the decision without launching. Tracking, refreshing, and polling evaluate current attributes, and launch confirms source freshness. Changes to the condition invalidate the previous plan.
Conditions are evaluated locally with CEL and have no network or filesystem
access. Expressions are limited to 4 KiB and 10,000 evaluation cost units.
Syntax and result-type errors are rejected when saving or loading a procedure.
Only admins can edit saved policies. The automatic-launch report records the
condition under case.source.auto_run_condition. Ticket properties can be
requester-controlled, so choose conditions consistent with your source permissions.
Preview shows the proposed action. Tracking or refreshing a case can launch it once the required evidence is present, the investigator and sandbox are available, and TriageLab verifies the source is current. With polling enabled, the workspace also checks tracked cases and can start a run after a requester reply or when the shared run slot becomes free. Each tracked case gets one investigation attempt. Pause tracking to suspend automatic checks and launch for that case.
Set the optional top-level max_auto_runs_per_day to cap automatic launches
in a rolling 24-hour window. The workspace counts launches across restarts.
When the limit is reached, a user can approve the run or wait. Reports
record policy-started runs and keep the case linked to its source. Clarification
and summary delivery use their existing review controls.
External workflows and agents can start standalone runs through the CLI or HTTP MCP. Start investigations from a policy workflow.
Operate it
Section titled “Operate it”- One investigation runs at a time. By default, up to four others can wait
in submission order. Set
max_queued_runsto any value from 0 to 16 in the workspace configuration. - Use Choose folder to upload a reproduction directory with its relative
paths. Build and dependency directories such as
node_modulesanddistare skipped. The same file count and size limits apply to folders. - Closing a tab leaves active and queued work running. Use Stop
investigation on an active run or Cancel queued run on a waiting run.
The queue lives in memory. Server shutdown cancels waiting runs and allows
bounded cleanup of active work. After an
abrupt crash, use Close investigation for runs with a lifecycle journal.
Older reports offer Retry cleanup to users and admins when resources
may remain. You can also use
triagelab cleanup --report. - The workspace can also show live kagent deployment status and save kagent resources — see defining agents.
Iterate on the UI
Section titled “Iterate on the UI”Keep the Go server running and start make dev-ui on the VM. Vite listens on
loopback port 5173 and proxies /api to the Go server; forward that port too
and open http://127.0.0.1:5173 for hot reload. Before landing a change, run
make check-ui, make build-ui, and make check on the VM.
The API is a local interface for a small team, not a hosted service. Command output renders literally. Case descriptions, agent analysis and chat answers render a small Markdown subset as page elements: raw HTML and images stay literal text, and links show their URL without becoming clickable; the Go service normalizes uploads with the same ingestion package as the CLI and invokes the same investigator. No database, queue service, browser model SDK, or alternate execution backend is introduced.