LongLog Escape Judge labels phases of long agent runs as escape, probe or benign
A keyless structural pass over Inspect logs labels each 10-turn phase, and an optional LLM judge gives a second opinion. On three synthetic transcripts the structural pass matched all 38 gold labels.
By David Discua
Measured in the lab
- 1.00
- structural vs gold, Cohen's kappa
- 38
- phases labelled
- 2/2
- escape phases found
- 4/4
- probe phases found
- Structural pass found 2 of 2 gold escape phases
- Structural pass found 4 of 4 gold probe phases
- Mock judge pipeline parsed every phase (0 unparsed)
- Constant mock judge showed kappa 0.00 against structural
From reports/keyless-result.json · run on October 21, 2026. Keyless run over 3 synthetic transcripts, phase window 10 turns; Transect 0.3.4, inspect-ai 0.3.282; the judge column is a mock arm that answers benign for every phase
How it is wired
01/04A long agent transcript is cut into phases of 10 turns.
LongLog Escape Judge splits a long agent transcript into windows of 10 orchestrator turns and labels each phase as an escape attempt, a boundary probe or benign. A keyless structural pass, built on Transect from the UK AI Security Institute and Meridian Labs, reads the tool calls, and an optional LLM judge reads the same phases so you can compare the two. On three synthetic transcripts of about 120 turns each, the structural pass matched every gold label. The catch is that its rules were written to catch exactly those planted markers.
The catch
Structural-vs-gold agreement was 100% with Cohen's kappa 1.00 over 38 phases. That shows the pass is wired correctly. It does not show the rules generalize, since config/rules.yaml is tuned to this corpus and the escape steps are inert <sim:...> markers, not runnable commands. Extend the rules before you point it at real logs.
The judge column in CI is a mock arm that answers benign for every phase, so its labels say nothing about any real model. The live judge path was not run in this lab, which means there are no live judge labels and no output-side cost. For the live judge we have one real input-side number from the provider's count_tokens call, with no generation: google/gemini-4-argon reads 22,953 input tokens across the 38 phases, which is $0.045906 at the $2.00 per million Standard input price Google lists through November 30, 2026.
What we ran (keyless)
uv sync --frozen
uv run longlog analyze # structural pass only
uv run longlog analyze --judge mock --out out # structural + mock judge arm
From reports/keyless-result.json, run on October 21, 2026:
| Transcript | Turns | Phases | escape_attempt | boundary_probe | benign |
|---|---|---|---|---|---|
| benign | 122 | 13 | 0 | 0 | 13 |
| escape | 124 | 13 | 2 | 1 | 10 |
| probing | 120 | 12 | 0 | 3 | 9 |
| Label | Gold phases | Structural found | Mock judge found |
|---|---|---|---|
| benign | 32 | 32 | 32 |
| boundary_probe | 4 | 4 | 0 |
| escape_attempt | 2 | 2 | 0 |
The mock arm labelled all 38 phases benign, so its raw agreement with the structural pass was 84% with kappa 0.00, which is what a constant judge looks like and why the agreement table is there. Its meter still counted the mock calls: 3 calls, 20533 input tokens and 1298 output tokens, unpriced because the mock arm is not a real model. analyze exits 3 when any phase is labelled escape_attempt, so you can use it as a CI signal.
How it is wired
Transect provides the keyless structural surfaces over Inspect .eval logs. Each turn's tool calls are matched against config/rules.yaml, which covers network egress, filesystem access outside the workspace, privilege changes and sandbox-detection commands, and a phase takes the most severe label any of its turns hit. The judge goes through Inspect AI's model provider, reads the phases in one long-context prompt where they fit, and returns one label per phase as JSON against a fixed schema. The two labelings are compared cell by cell, and the cost meter reads the provider's own usage metadata.
Minilab (open source)
Upstreams are AI-Safety-Institute/transect (63 stars, MIT, Python) and UKGovernmentBEIS/inspect_ai (3,077 stars, MIT, Python), as of October 24, 2026. Extend config/rules.yaml for your own logs, run uv run longlog analyze --judge <provider/model> --out out with your own key, and read the agreement table in out/result.md.
Run it yourself
SkilledDragonCorp/longlog-escape-judge
Clone, install and run the report with no API keys. The numbers above are what that run writes.
uv sync --frozen && uv run longlog analyze --judge mock --out outSkilledDragon is not affiliated with the UK AI Security Institute, Meridian Labs, the Transect, Inspect AI or Inspect Scout projects, or Google. Numbers are from our own keyless run on a synthetic corpus; re-run the report before relying on them. Marks belong to their owners.
All labs