Repository navigation
Conversation
A recipe for teams that read the traces of failed agent runs. Qwen/Qwen3.8-27B-FP8 on SIE reads a run whole when it fits; a longer run goes to a recursive language model (DSPy's RLM), where Qwen writes Python against the run in a sandbox with helpers that search it and ask Qwen about pieces of it, so no call sends more than 24,000 tokens. Three synthetic runs of a coding team of agents (about 5,500, 36,000 and 420,000 tokens), each with a planted root step. The model calls go through SIEClient via a small DSPy engine. The live run used SIE Local with the rtx-pro-6000-32k-thinking-bounded-rlm profile; SIE Serverless serves Qwen3.8-27B with an 8,192-token window today, which is too small for this recipe.
…answer past the thinking limit Thinking counts against a call's output limit, so a helper capped at 4,096 tokens on a profile that thinks up to 4,096 could end with no answer. Helpers now get 6,144, and an answer that still reaches the limit is marked unfinished for the driver. The README now says reading a run whole did as well as the RLM or better when it fit, which is what the benchmark runs showed.
…run with the helper fix 2 of 3 runs came out as expected. The long run found both steps that wrote the interest code and named the earlier one; the README reports the miss and that the previous run named the planted step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A new SRE recipe,
sre/find_the_step_that_broke_an_agent_run: find the step, and the agent, where a failed agent run's decisive error came in.Qwen/Qwen3.8-27B-FP8reads a run in one call when it fitswhole_read.max_tokens.RLMruns model-written Python against the run in its Deno sandbox (installed by uv from PyPI). Helpers search the run in plain Python (grep,show,steps_by) or ask Qwen about pieces of it (scan,ask); no call sends more than 24,000 tokens.SIEClient.chat_completions, via a small DSPy engine (SIEEngine). The driver's engine declares response-schema support, so DSPy sends each turn's JSON schema and SIE constrains the answer to it.make_data.py: about 5,500, 36,000 and 420,000 tokens, each with a planted root step.How it was run
On 12 Nov 2026 (UTC), using SIE Local: one SIE server on an RTX PRO 6000 with
Qwen/Qwen3.8-27B-FP8:rtx-pro-6000-32k-thinking-bounded-rlm-no-spec, the profile proposed in superlinked/sie#949. 2 of 3 runs came out as expected, in 23 SIE calls and about 18 minutes. The long run found both steps that wrote the interest code and named the earlier one; the run before named the planted step. The README reports each answer and states the limits:SIE Serverless: on the same day it served
Qwen/Qwen3.8-27B-FP8with an 8,192-token window, and its longer-window profiles answered "Generation route is unavailable for this deployment". So aLiveworkflow run against SIE Serverless will fail this recipe on the window until a longer one is served. The README says to run it using SIE Cluster or SIE Local.Checks
uvx pre-commit run --all-filesmypy --strictuv run recipe.py --helpuv run selfcheck.py: data, routing, pieces, helpers, a helper answer cut at the output limit, answers, and a round trip through the DSPy engine with a stand-in client.tools/check_tree.py