<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fh="http://purl.org/syndication/history/1.0"><channel><title>TriageLab | Blog</title><description>A Kubernetes-based tool that automates technical investigations for tickets and issues — routing, classification, and sandboxed investigation with recorded evidence.</description><link>https://bondrenai.github.io/</link><language>en</language><fh:complete/><atom:link rel="self" href="https://bondrenai.github.io/TriageLab/blog/rss.xml"/><item><title>Six-cent triage, local models, and cheap escalations</title><link>https://bondrenai.github.io/TriageLab/blog/2026-11-13-six-cent-investigations/</link><guid isPermaLink="true">https://bondrenai.github.io/TriageLab/blog/2026-11-13-six-cent-investigations/</guid><description>An automated bug investigation is priced like a premium service, but the work underneath costs cents. We ran the missing-orders case on a local 27B model, priced the same tokens on hosted APIs, and looked at what a failed cheap run is still worth.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Automated investigation of support tickets and bug reports is usually sold as a
premium service, priced per seat, per resolution, or per investigation. The
work underneath is modest: a model, a sandbox, a handful of tools, and a few
hundred thousand tokens that are mostly cache hits. The gap between that price
and that cost is markup, and you can skip it by running the workflow yourself.&lt;/p&gt;
&lt;p&gt;To put a number on the cost, we ran one realistic investigation end to end on a
small open-weight model and counted every token. This post covers three things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The run.&lt;/strong&gt; A 27B model on a laptop correctly diagnosed a ticket whose own
diagnosis was wrong.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The cost.&lt;/strong&gt; Those tokens are free at the margin on local hardware and cost
&lt;strong&gt;$0.06 to $0.19&lt;/strong&gt; on hosted open-weight APIs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The failure case.&lt;/strong&gt; When a small model does not solve a ticket, its run
still makes escalating to a frontier model cheap.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;h2 id=&quot;the-setup&quot;&gt;The setup&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;TriageLab gives one investigator model a disposable sandbox per run, lets it
execute commands against the ticket’s files, and writes a local report that
keeps what actually ran separate from what the model concluded.&lt;/p&gt;
&lt;p&gt;We ran the bundled &lt;a href=&quot;https://bondrenai.github.io/TriageLab/start/example/&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;missing-orders&lt;/code&gt;&lt;/a&gt; case against
&lt;code dir=&quot;auto&quot;&gt;Qwen3.8-27B-4bit&lt;/code&gt;, a 4-bit quantized open-weight model served locally on Apple
Silicon. It got the same system prompt, strict output schema, and six sandbox
tools as the default &lt;code dir=&quot;auto&quot;&gt;gpt-6.1-sol&lt;/code&gt; investigator, with no domain hints added.&lt;/p&gt;
&lt;p&gt;Switching models took no code changes. A
&lt;a href=&quot;https://bondrenai.github.io/TriageLab/guides/agents/&quot;&gt;custom agent definition&lt;/a&gt; pointed at a loopback
OpenAI-compatible endpoint (&lt;code dir=&quot;auto&quot;&gt;mlx-community/Qwen3.8-27B-4bit&lt;/code&gt; with speculative
decoding at &lt;code dir=&quot;auto&quot;&gt;medium&lt;/code&gt; reasoning effort), and we raised the wall-clock timeout.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;a-ticket-whose-own-diagnosis-is-wrong&quot;&gt;A ticket whose own diagnosis is wrong&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The case is harder than a stack-trace lookup. A customer’s nightly sync reports
exit code &lt;code dir=&quot;auto&quot;&gt;0&lt;/code&gt;, yet 11 EDI orders worth &lt;code dir=&quot;auto&quot;&gt;$24,935.20&lt;/code&gt; are missing from their
warehouse. The ticket arrives with a detailed, internally consistent theory
blaming database lock-wait retries, plus six files: the ~200-line Python/SQLite
sync script (&lt;code dir=&quot;auto&quot;&gt;rowferry.py&lt;/code&gt;), configuration, schema, the production sync log,
and a 625-row CSV export.&lt;/p&gt;
&lt;p&gt;Every observation in the ticket is true. The conclusion is wrong.
&lt;code dir=&quot;auto&quot;&gt;rowferry.py&lt;/code&gt; pages with a strict &lt;code dir=&quot;auto&quot;&gt;WHERE (created_at) &gt; (?)&lt;/code&gt; cursor on a
non-unique timestamp column, and the EDI importer writes batches that share a
single microsecond timestamp. Whenever a 100-row page ends partway through a
batch, the next page skips the rest of that timestamp group.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;what-the-27b-model-did&quot;&gt;What the 27B model did&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The run took 18 model turns and five sandbox processes. In that time the local
investigator:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reproduced the exact loss&lt;/strong&gt; (&lt;code dir=&quot;auto&quot;&gt;proc-bb05cfbf51467ee1d518776c&lt;/code&gt;). 614 of 625
rows delivered, &lt;code dir=&quot;auto&quot;&gt;total_cents&lt;/code&gt; short by &lt;code dir=&quot;auto&quot;&gt;2,493,520&lt;/code&gt; (&lt;code dir=&quot;auto&quot;&gt;$24,935.20&lt;/code&gt;), the same
11 EDI order IDs, and all seven per-page cursors matching the customer’s
production log character for character.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tested and rejected the lock-retry theory.&lt;/strong&gt; The identical 11 orders
vanished with &lt;code dir=&quot;auto&quot;&gt;0 lock retries&lt;/code&gt; in the SQLite replay, and &lt;code dir=&quot;auto&quot;&gt;read_page()&lt;/code&gt;
re-executes the identical query and cursor on retry.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tested the customer’s &lt;code dir=&quot;auto&quot;&gt;page_size=500&lt;/code&gt; experiment&lt;/strong&gt;
(&lt;code dir=&quot;auto&quot;&gt;proc-7cd305c047182112c820677e&lt;/code&gt;). It still dropped three orders at the
remaining page boundary, with zero retries.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Verified a configuration-only fix&lt;/strong&gt; (&lt;code dir=&quot;auto&quot;&gt;proc-7af8f76f69d571f4d6600644&lt;/code&gt;).
Setting &lt;code dir=&quot;auto&quot;&gt;cursor_columns=created_at,id&lt;/code&gt; made the keyset order total and
delivered all 625 rows with matching sums, while preserving time-ordered sink
output.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stated the replay’s limits.&lt;/strong&gt; An isolated SQLite database with no
concurrent writer cannot exercise real lock contention or rule out separate
production retry bugs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The frontier model was still better in three ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Speed.&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;gpt-6.1-sol&lt;/code&gt; finished in 94 seconds. The laptop took 23 minutes
38 seconds.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tool-call reliability.&lt;/strong&gt; An earlier local attempt died when the model
emitted a malformed argument inside a multi-line &lt;code dir=&quot;auto&quot;&gt;python3 -c&lt;/code&gt; snippet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One operational catch.&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;gpt-6.1-sol&lt;/code&gt; noticed that the customer’s saved
cursor (&lt;code dir=&quot;auto&quot;&gt;00:14:05.902620Z&lt;/code&gt;) already sits &lt;em&gt;after&lt;/em&gt; the skipped batches, so
recovering the historical orders means rewinding the checkpoint, not just
resuming with the composite cursor.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;what-those-tokens-cost&quot;&gt;What those tokens cost&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The local server logged exact token counts across all 18 turns:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Tokens&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Total input across 18 turns&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;803,767&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Includes reading all 626 lines of &lt;code dir=&quot;auto&quot;&gt;orders_export.csv&lt;/code&gt; on turn 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prefix-cached input&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;752,512&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;93.6%&lt;/strong&gt; cache hit rate across the multi-turn tool loop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached (fresh) input&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;51,255&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Initial files, tool outputs, and turn framing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output + &lt;code dir=&quot;auto&quot;&gt;&amp;#x3C;think&gt;&lt;/code&gt; reasoning&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;30,539&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reasoning, tool calls, and the final structured JSON report&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Read naively, 803K input tokens makes an agent loop look expensive. But an
investigation is one growing prefix. Once the model has read the repository and
data on turn 1, turns 2 through 18 hit the prefix cache almost entirely, and
the bill is dominated by the 30K output and reasoning tokens.&lt;/p&gt;
&lt;p&gt;On local hardware, the marginal token cost of that run is zero, and the
customer’s logs and exports never leave your network. Where data policy allows
a hosted open-weight provider, the same tokens cost this much:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hosted &lt;code dir=&quot;auto&quot;&gt;Qwen3.8-27B&lt;/code&gt; provider&lt;/th&gt;
&lt;th&gt;Input / Cached / Output (per 1M)&lt;/th&gt;
&lt;th&gt;Equivalent run cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenRouter (NEAR AI, cached)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.04&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$0.018&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$1.35&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;$0.06&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenRouter (Chutes floor)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.039&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$0.039&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$1.25&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;$0.07&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepInfra (promo, cached)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.15&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$0.038&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$1.875&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;$0.09&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alibaba DashScope Int’l (implicit cache)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.50&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$0.10&lt;/code&gt; / &lt;code dir=&quot;auto&quot;&gt;$3.00&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;$0.19&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepInfra (standard, no cache)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.20&lt;/code&gt; / — / &lt;code dir=&quot;auto&quot;&gt;$2.50&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.24&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alibaba DashScope Int’l (no cache)&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.50&lt;/code&gt; / — / &lt;code dir=&quot;auto&quot;&gt;$3.00&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code dir=&quot;auto&quot;&gt;$0.49&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;These figures are model tokens only. The sandbox adds a short-lived container
on a cluster you already run.&lt;/p&gt;
&lt;p&gt;So the raw cost of testing a customer’s theory against their own export,
rejecting a false lead, and verifying a workaround is between six and nineteen
cents. Whatever a vendor charges above that is paying for packaging, not for
compute. And at that cost, reproduction no longer has to be reserved for
high-severity escalations. You can run it on every qualifying ticket.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;when-the-cheap-run-fails&quot;&gt;When the cheap run fails&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;A 27B model will not solve every case. Harder bugs involve subtler state,
larger codebases, or multi-step setup, and a small model can run out of budget,
misread an output, or return &lt;code dir=&quot;auto&quot;&gt;not_reproduced&lt;/code&gt; or &lt;code dir=&quot;auto&quot;&gt;inconclusive&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;With an agent that leaves only a chat transcript, that failed run is a sunk
cost. If you cannot trust the model’s summary, a stronger model has to start
over and repeat the same discovery turns at frontier prices.&lt;/p&gt;
&lt;p&gt;TriageLab’s &lt;a href=&quot;https://bondrenai.github.io/TriageLab/articles/evidence-not-answers/&quot;&gt;report architecture&lt;/a&gt;
changes that. Every run, including partial, timed-out, and unsuccessful ones,
writes &lt;a href=&quot;https://bondrenai.github.io/TriageLab/reference/reports/&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;report.json&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;report.md&lt;/code&gt;&lt;/a&gt; with two
strictly separated records:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Observed execution evidence&lt;/strong&gt;, fetched directly from the sandbox by
TriageLab: the exact file hashes, every command array executed, its exit
code, and its captured &lt;code dir=&quot;auto&quot;&gt;stdout&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;stderr&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Model hypotheses&lt;/strong&gt;, kept apart from the evidence and validated against
real process IDs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The evidence does not depend on how good the first model was. Even a failed
run has found the entry points, run the baseline reproduction, captured the
error messages, and recorded which commands exited &lt;code dir=&quot;auto&quot;&gt;0&lt;/code&gt; or &lt;code dir=&quot;auto&quot;&gt;1&lt;/code&gt;. A frontier model
picking up the ticket starts from that record instead of from a blank workspace
and a vague ticket. There are two ways to hand it over:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://bondrenai.github.io/TriageLab/guides/chat-mcp/&quot;&gt;Results chat&lt;/a&gt;.&lt;/strong&gt; Point &lt;code dir=&quot;auto&quot;&gt;--chat&lt;/code&gt; at a stronger
model to review a finished or inconclusive report. It is a single, bounded,
tool-free completion over the captured process outputs, with no second
sandbox and no repeated exploration.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MCP.&lt;/strong&gt; An escalation workflow or coding agent connected to &lt;code dir=&quot;auto&quot;&gt;/mcp&lt;/code&gt; can call
&lt;code dir=&quot;auto&quot;&gt;get_investigation&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;get_process_evidence&lt;/code&gt; to read the exact &lt;code dir=&quot;auto&quot;&gt;stdout&lt;/code&gt; and
&lt;code dir=&quot;auto&quot;&gt;stderr&lt;/code&gt; from the first pass, then launch a targeted follow-up investigation
only when a new experiment is needed.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;the-takeaway&quot;&gt;The takeaway&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Run a local or sub-ten-cent model first on every qualifying ticket. Keep its
process record whether or not its hypothesis holds up. Spend frontier tokens
only on the tickets where the cheap pass falls short, and start those from the
evidence already collected. None of this needs a vendor in the middle: it is a
model endpoint, a sandbox, and a report format.&lt;/p&gt;
</content:encoded><category>benchmarks</category><category>economics</category><category>local-models</category></item><item><title>TriageLab 0.1.0</title><link>https://bondrenai.github.io/TriageLab/blog/2026-11-09-triagelab-0-1-0/</link><guid isPermaLink="true">https://bondrenai.github.io/TriageLab/blog/2026-11-09-triagelab-0-1-0/</guid><description>First public chart release, and what this site is for.</description><pubDate>Mon, 09 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;TriageLab 0.1.0 is out: the Go CLI, the browser workspace, the evidence-first
investigation workflow, and the first public Helm chart
(&lt;code dir=&quot;auto&quot;&gt;oci://ghcr.io/bondrenai/charts/triagelab&lt;/code&gt;) for running the single-user
workspace as one pod beside an existing kagent/Substrate installation.&lt;/p&gt;
&lt;p&gt;What shipped in this release:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The core loop&lt;/strong&gt; — collect a bounded case, create one standalone sandbox,
start one real kagent investigator, record experiments independently, and
write JSON and Markdown reports that separate observed evidence from model
hypotheses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The browser workspace&lt;/strong&gt; — loopback-only and authenticated, with local
accounts or one OIDC provider, viewer/user/admin roles, and editors for
kagent agents, models, MCP servers, sandbox templates, and egress policies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ticket and issue sources&lt;/strong&gt; — Zendesk, GitHub, and Linear case preparation
with policy-checked clarifications, input and output sanitizers, and
review of the exact evidence for launches from the ticket queue.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Telemetry&lt;/strong&gt; — optional OTLP/HTTP export of traces, metrics, and logs,
verified against a real collector.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This site is new too. The &lt;a href=&quot;https://bondrenai.github.io/TriageLab/reference/cli/&quot;&gt;reference section&lt;/a&gt; includes pages
generated directly from the CLI’s flag registrations and configuration
structs, so the technical bits cannot quietly drift from the code — a test
fails if they do. Long-form pieces live under
&lt;a href=&quot;https://bondrenai.github.io/TriageLab/articles/evidence-not-answers/&quot;&gt;articles&lt;/a&gt;, and release and working notes
will land here on the blog.&lt;/p&gt;
&lt;p&gt;Try the &lt;a href=&quot;https://bondrenai.github.io/TriageLab/start/quickstart/&quot;&gt;quickstart&lt;/a&gt; on a disposable cluster, and read
&lt;a href=&quot;https://bondrenai.github.io/TriageLab/articles/evidence-not-answers/&quot;&gt;evidence, not answers&lt;/a&gt; for why the report
looks the way it does.&lt;/p&gt;
</content:encoded><category>release</category></item></channel></rss>