Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

LieLens flags agent runs that claim done while the trace shows a failed step

LieLens runs five probes over LangSmith and OTel GenAI traces for success claims the trajectory contradicts. On 13 synthetic traces it confirmed all 8 labelled cases and flagged no honest run.

By David Discua

Measured in the lab

13
synthetic traces scanned
8/8
labelled cases confirmed
0/5
honest traces flagged
3.0 ms
median scan time
failing-tool2
test-exit-nonzero2
write-claim-no-write1
skipped-steps2
swallowed-error1
  • "All tests pass" after bun test exited 1 flagged
  • "I updated src/config.ts" with no write in 4 steps flagged
  • Test step behind || true with FAIL in the output flagged
  • Final messages that disclose a failure are never flagged
  • CI gate at threshold 0 exits 1

From reports/measured.json · run on October 21, 2026. 13 synthetic traces with fictional agents (7 LangSmith run export, 6 OTel GenAI spans), hand-labelled in fixtures/expected.json; live LangSmith mode not run

How it is wired

trajectorymatchesAgent traceLangSmith or OTelLieLens5 probesEvidence packclaim + step

01/03An agent's last message says the work is done.

Agents report success in their final message, and people tend to believe it. LieLens Search is our CLI and agent skill that reads the whole trace and flags runs where the agent said "done", "fixed" or "all tests pass" while a step says otherwise. It writes a Markdown evidence pack with the claim, the contradicting step and the trace id, and fails CI above a threshold. On 13 synthetic traces it confirmed all 8 labelled cases and flagged none of the 5 honest runs. The catch is that every one of those traces was written for the lab, so the numbers show the probes work as designed and say nothing about precision on real traces.

The catch

The fixtures use fictional agents and hand-written labels in fixtures/expected.json. A 100% precision and recall there means the detectors match the cases we wrote. The README is direct that precision and recall on real traces are unknown and the probe wording is an untuned starting point.

The detectors are regex and structure based. They know common tool names like edit_file, apply_patch and todo_write, common test runners and common exit-code shapes. An unusual tool name or output format gets missed rather than guessed. Claim detection is English-only phrase matching on the final message.

The live LangSmith mode sends each probe's description to AI search and falls back to structured run filters. It was built from LangSmith's public OpenAPI document and tested against an in-process stub, and the live path was not run in this lab.

What we ran (keyless)

bun install --frozen-lockfile
bun run lielens scan fixtures/langsmith fixtures/otel
bun run report
bun run check

From reports/measured.json, run on October 21, 2026:

MetricValue
Synthetic traces scanned13 (7 LangSmith run export, 6 OTel GenAI spans)
Final messages read as success claims11
Labelled claimed-done pairs8
True / false positives, false negatives8 / 0 / 0
Honest traces wrongly flagged0 of 5
CI gate at threshold 0fail (exit 1)
Median scan time, 5 runs3.0 ms

The evidence pack in reports/lielens.md shows what each probe caught. One agent wrote "Fixed the parser bug. All tests pass." after bun test ended with exit code 1. Another said it updated src/config.ts with no successful write or edit call in its 4 steps. A third ran a test step behind || true and reported the migration complete while the output still showed FAIL src/db.test.ts. Another claimed all tasks complete with two items still open in its last todo_write.

How it is wired

Each trace is normalized into one trajectory shape, whether it came from a LangSmith run export (array, {runs}, {items} or JSONL) or OTel GenAI spans read from gen_ai.* attributes. A claim detector decides whether the final message asserts success, and a final message that discloses a failure, like "2 tests still fail", is treated as an honest report. Five deterministic probes then look for the contradicting step: failing-tool, test-exit-nonzero, write-claim-no-write, skipped-steps and swallowed-error.

Minilab (open source)

LieLens is our own lab, Apache-2.0 and written in TypeScript on Bun, at SkilledDragonCorp/lielens-search. It extends our ClaimGate CI lab from README claims to behaviour traces, and it reads attribute names from open-telemetry/semantic-conventions-genai (478 stars, Apache-2.0, Python, as of October 24, 2026). Export your own traces and run bun run lielens scan ./my-traces/ --threshold 0.

Run it yourself

SkilledDragonCorp/lielens-search

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run lielens scan fixtures/langsmith fixtures/otel

SkilledDragon is not affiliated with, endorsed by or sponsored by LangChain, Inc. (LangSmith) or the OpenTelemetry project. Numbers are from our own keyless lab run on synthetic traces; re-run the report before relying on them.

All labs