The AI Gazette

Practical AI techniques, workflows, tools and research for hands-on engineers.

By Ravi AutarRSS feed

Top news

No. 6

Cost and routing

Amazon swapped Sonnet for a small decision model on ticket labels, behind a three-way switch

Two Amazon engineers replaced Claude Sonnet 4.6 with Strands Decider for sorting tickets into 20 categories, at about 98 percent less cost, after running both models side by side on live traffic.

Sonnet 4.6 had been labeling tickets in one of Amazon's internal ticketing systems with a long system prompt on every ticket, writing JSON against a fixed set of 20 labels. A decision model cannot generate text: it gets some state, a question and a set of options, and returns a probability for each option plus a confidence score. The team started with the original Strands Decider 2B, switched to the E4B Gemma 4 build after it scored clearly better on a test set, then tuned how confident the model had to be before a label was applied.

The measured change per call: average time fell from 4,215 ms to 897 ms, total tokens per ticket from 6,724 to 2,010, and output tokens from 170 to 1. At published list prices that works out to about $22,200 per million tickets for Sonnet versus about $500 for the decision model on a SageMaker ml.g5.xlarge instance. Because the production label descriptions alone were longer than the model's 4,096-token window, they rewrote each label as a one or two sentence criterion, added a "none" option, and dropped the oldest comments on long tickets.

The part the authors say they would copy regardless of model is the rollout: the labeling Lambda reads a setting from AWS AppConfig on every message with three values, BEDROCK, DUAL and DECIDER. In DUAL both models run in parallel, Sonnet's label is applied and the two are compared, and going back is a 45-second config change. They also found that JSON key order changed the answer, so every request is now sent with sorted keys, and they are clear about the limits: this fits a closed choice from a known catalog at high volume, not labels that need explanation text or a catalog that changes weekly.

Sending the same content with keys in a different order moved the output probabilities by up to 0.19.
The gotchaCarr Onstott and Mehul Jaiswal, Strands Agents blog

GoogleCoding agents

Chrome's web guidance skill reaches 1.0 with a scanner for legacy front-end code

Modern Web Guidance gives coding agents offline, searchable guides to current web platform features, and version 1.0 adds a legacy-scan command and published before-and-after eval numbers.

Version 1.0 ships 203 use-case guides covering 250 web platform features, now maintained by the Chrome, Edge, Firefox and MDN teams. The agent runs npx modern-web-guidance@latest search "<query>" and then retrieve "<id>" to pull a guide into context; search runs offline on a small embedding model plus BM25. The new legacy-scan [path] command statically finds legacy patterns and maps each one to the guide with the modern replacement, covering about 20 percent of guides so far.

The release publishes unguided versus guided pass rates: Claude Code with claude-opus-5-5 went from 58 to 94 percent on 221 tasks, Codex CLI with gpt-6.1-sol from 50 to 86 percent, and Antigravity CLI with gemini-4-argon from 60 to 98 percent. The skill file tells agents to search with short, action-oriented queries for one capability at a time and to split compound tasks into separate searches.

Coding agentsClaude

One prompt before bed turned a stalled kids' game into 12 playable levels

Lex Toumbourou gave Claude Code with Fable 5.2 his nephew's drawings and one long prompt, and woke up to a four-player beat 'em up that the agent had playtested itself.

His June version, built mostly with Claude Code on Opus 4.8 and Fable 5, worked but "wasn't worth playing for more than a couple of minutes." The new prompt pointed the agent at a folder of scanned drawings and at file paths holding the image and sound API keys, and told it to "Commit as you go" and "Start fresh where it makes sense." Fable 5.2 threw away most of the old code and generated roughly 175 images and 140 audio clips overnight.

The reasoning traces show it wrote a bot to play the game, ran it through all twelve stages in a headless browser and checked the screenshots for problems. Over two days the Claude side came to roughly 600 requests: about 320M tokens read from cache, 19M written to cache and 1M output. He notes he never tried the same thing with Opus 5.5, so it is not clear how much of the jump is the new model.

Deep dive

Verification

GoogleEvals

How DeepMind's agents proved Signal's compiled code secure, and why the spec was the hard part

AlphaProof Code splits formal verification into a human-approved Lean specification and a team of prover agents whose work only counts if Lean's kernel accepts it, and it produced about 6.5 million lines of proof for libsignal.

Google DeepMind used AlphaProof Code to prove security properties of libsignal v0.105.4, the Signal protocol's reference implementation, at the level of AArch64 machine code built from the unmodified Rust with the stock rustc compiler. The proofs cover the post-quantum PQXDH handshake and the Triple Ratchet, establishing forward secrecy, authentication, post-compromise security and handshake secrecy. About 6.5 million lines of machine-checked Lean rest on about 26,000 lines of trusted specifications and AArch64 semantics, and the work took a team of five four weeks.

The design keeps agents away from the definition of done. A specification-writer agent drafts Lean theorems with the user, skeptical reviewer agents critique each draft, and the approved spec's git commit becomes the baseline. A gatekeeper copies that spec into a held-out directory no agent can write to, and accepts a proof only if the comparator tool confirms the statement and every definition it depends on are identical, that only Lean's standard axioms are used, and that the kernel accepts it. Provers cannot edit the spec; they can propose small amendments to a critic agent that never sees the proof attempts.

The proof teams are organized around context limits. An orchestrator schedules work but never edits Lean files, team leads absorb the back-and-forth with workers and send short summaries upward, an architect revises the proof decomposition, and only an integrator commits, with each file edited by at most one worker at a time. A typical campaign ran 40 to 80 agents on a single machine for 24 to 72 hours, and agents try to falsify a goal before spending effort proving it.

Much of the effort went into making sure the spec was strong enough to mean something. Agents prove that theorem hypotheses are jointly satisfiable to rule out vacuous results, inject bugs such as skipping the ciphertext MAC check and prove the security theorem then fails, and the team reintroduced two previously fixed libsignal bugs and proved the resulting binaries violate the symbolic theorem. The paper's main lesson: "once proofs become cheap, the hard question is what to prove."

The limits are spelled out. Cryptographic primitives and 37 other routines are covered by trusted contracts rather than proved, the machine model has no threads, signals or dynamic linking, and the computational proof gives no guarantee against a quantum attacker. The Lean development, specifications and proofs are public.

In brief

Techniques and workflows

Tools and releases

Say hi.