Skip to content

Speedy 0.5.3

Choose a tag to compare

@DevDock-AI DevDock-AI released this 21 Nov 19:38
788f694

Speedy 0.5.3 (2026-11-21)

  • Loop breaker catches edit cycles (on with the loop breaker; STRATA_LOOP_BREAKER_CYCLE=0 turns it off): successful edits that go back and forth on one file while nothing else gets done were invisible to the 0.5.1 rules, because every edit succeeded and differed from the one before (seen: PLAN.md checkboxes [ ] -> [~] -> [x] -> [ ] for hundreds of requests). Now counted, since the last other work (a call that did not fail and is not about that file): an edit that restores text an earlier edit replaced (second time), a third different change of the same lines' checkbox marks, four edits in a row that each rewrite what the one before wrote, the same sequence of calls with the same results going round (period 2 to 6, a write in it), four turns in a row whose edits all failed (any file, any error text), and the same for whole-file writes and todo-list calls that return to an earlier content.
  • The mask now holds: the first cycle turn gets a note that says to stop updating the file and do the next real step; from the second on, every file-editing and todo-list tool (not only the one that looped: masking edit alone moved the same rewrite to write) is kept out of the reply until two turns of other work followed, four after a relapse, up to eight. A relapse on the same file is caught on its second edit. The shell is never masked by a cycle, and a round that holds other calls (edit -> test -> revert -> test with the same results) gets the note only.
  • Not a cycle: many edits of one file in a row while building it, edit -> test cycles, one plan update per finished step, several edits sent in one turn, a single undo, a retry after a failed edit. Eight turns in a row that only edit the session plan (PLAN.md, TODO.md) or the todo list get a soft note, never a mask.
  • A failed-edit result now also means Claude Code's <tool_use_error> / "has not been read" / "modified since" texts.
  • Tool-name constraining rewritten: it no longer steers the model to the wrong tool (STRATA_TOOLCALL_CONSTRAIN, now on by default; 0 turns it off). Since 0.4.6 the server stopped at every <tool_call>, wrote \n<function= itself and let the model pick the name under a bias. Qwen's vocabulary spells <function=bash> as <function =b ash > (and =g+lob, =g+rep, =read, =t+od+ow+rite), so the forced bare = token was a place the model only knows from the names written =+NAME: write, edit, skill, task, webfetch. Seen on an agent benchmark with OpenCode's ten tools: 2,377 of 2,387 constrained openings named one of those five (write 2,307) while the thinking said "invoke the bash tool"; one task made 1,665 write calls and 3 bash calls. With the flag off the same model wrote 81 openings, every one in the tokenizer's own spelling, 59 of them bash, and the three tasks took 76 requests instead of 2,421. Now the model writes the opening itself; the server reads along and steps in only at the first token after which no declared name can follow (another letter case and the parser's aliases count as declared). What was written stays; the rest is finished under a mask in which the model's own ranking decides: tokens every remaining name shares are written directly, and where names part, one one-token request gives the same bias to every token that continues a declared name. A valid opening costs no extra request (before: one or more per call, 20 to 600 ms). STRATA_TOOLCALL_CONSTRAIN=eager keeps the mask at every call, without the forced =. The pick keeps the request's own -100 bans and runs without the repetition penalty (the engine applies it after the bias). Not applied when the request defers tools.
  • Tool call repair forced the same bare = (<tool_call>\n<function=); it now forces only the tokens every declared name's opening shares.
  • "Says X, does Y" (STRATA_TOOLCALL_INTENT, on; 0 turns it off): when the last sentence before a reply's first call states the tool it is about to call ("invoke the bash tool", "call bash instead", "let me run cmd") and the opening names another, the opening is written again with the stated tool, once per reply, before anything of it is streamed. Narrow on purpose: declared names only, the last sentence only, no questions, quotes, negations or later steps, and no change when the call made is the shell, a tool that only looks (read, grep, glob) or, for an edit tool, another edit tool. Where the server could not rewrite it (engine-side mask, --batch), such a turn gets a note after its result. On the looping benchmark transcripts it finds 1,944 such turns (1,937 of them "said bash / glob / grep / read / todowrite, called write / edit / skill / task"); on 17,300 turns of ordinary OpenCode sessions 5 (all in two sessions that were looping the same way), on 19,980 Claude Code turns none.
  • Junk writes are not work done (loop breaker): a dummy file written in place of the step the reply described (/tmp/opencode/cr8 holding cr8, placeholder.txt x -> y; a whole file of at most 64 bytes in a scratch directory, at most 16 bytes of change to a dummy-named file, at most 8 bytes in a file named like x or cr8) no longer counts as other work or as a workspace change: three in a row are a loop (note, then write masked), four turns in a row an edit cycle (note, then every editing tool masked until other work followed). Real files in a scratch directory, small edits of real files and the session plan are not judged by it.

Speedy 0.5.2 (2026-11-21, folded into 0.5.3)

  • Updates bring the 0.5 settings (UPDATE.bat / ./speedy-update, setup.py --update): each installed Qwen3.8-Flash-Next config gets what a fresh 0.5 install writes. The tuned MTP drafter (downloaded and SHA-checked; offline or a bad file keeps the stock one), the thinking budgets of our old generic presets (16384 / 8192 / 4096) dropped so the server default 32768 applies (the old Q2_0 "low" preset's reasoning_effort: low with them), and the Speedy tool-call env everywhere plus the 1-GPU speed profile on one NVIDIA card with a UD-* file. Kept: "mtp_drafter": "stock" / STRATA_MTP_DRAFTER=stock, any other budget, env entries and engine options already set, configs set up with --speedy-profile upstream; Qwen3.6 and DeepSeek configs are not touched. Each changed config is backed up as strata-*.json.bak-0.5.2 and the update prints what changed and how to revert it. A second update changes nothing.
  • Setup records "speedy_profile": "upstream" and "mtp_drafter": "stock" in the config when they are chosen, so an update respects them.

Tests: 28 new tool-call opening tests (19 failed on 0.5.2), full serve suite green except one known pre-existing failure; GPU: expected tool 48/48 (old opening 26/48), needle 48/48, tool calls 24/24; Terminal-Bench control tasks: 91 requests / 16 min (was 2,421 / 58 min).