The AI Gazette

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

By Ravi AutarRSS feed

Listen to this edition

22 min · read by an AI voice

Top news

No. 13

ClaudeCoding agents

The Claude Code team sets out how it checks the code Claude writes

A post on the claude.dev blog explains which tests let a coding agent prove its own work, and the habits the Claude Code team uses to keep those checks honest. With a reliable way to verify, the post argues, a team can run dozens of agents at once instead of reading every diff.

A coding agent writes more code than a person can read. If a human still has to check every change, that human sets the limit on how much work can be handed over, and in practice only one or two agents can run at a time. The answer the Claude Code team gives is to let the agent check its own work with evidence, and to put real engineering effort into those checks. On that team, the post says, about 90% of the code is written and reviewed by Claude.

In the post of 16 November, Addy Osmani names three kinds of tests worth the investment. End-to-end tests drive a real user flow, such as adding an item to a cart and checking out, and are hard to fool because the whole feature either works or does not. Property tests state something that must always hold, for example that encoding a value and decoding it again returns the original, and let a library such as fast-check, Hypothesis or proptest generate thousands of inputs to break it. Because those inputs do not share the blind spots of the agent that wrote the code, they find the edge cases agents tend to miss. Differential tests run the old and the new system on the same inputs, which suits migrations. The post also reports an internal test on structured file generation in which a separate grader, checking Claude's work against a rubric, raised task success by up to 10 points.

The second half describes the team's own practice. Running the app counts for more than tests: a skill called verify, kept in .claude/skills/ close to the code, starts the app or the simulator, and Claude uses it before committing. Claude runs the checks and fixes what fails; if a check still fails after three rounds, it stops and brings in a person. A reliability checklist of 39 items, each with a trigger that can be read from a diff, lets Claude check only the items that match, usually 3 to 10. Review rules live in a REVIEW.md that is read from the base branch, so a change cannot rewrite the rule that judges it. A commit gate with off, observe and enforce modes can block a commit when the session ran neither /code-review nor /verify, and every commit is stamped with how it was verified, including "none".

The checks are checked too. The team tracks reverted changes, changes a maintainer rejected and a size-matched set of changes that stayed clean, and it measures recall separately for raw findings, after verification and in the final review, to see where a bug that was found gets lost. A missed bug becomes a rule only when the pattern appears in at least two pull requests and can be seen in a diff; three agents then try to disprove it before a person approves it. Flaky tests may not be retried until they pass or padded with sleeps: if Claude cannot find the cause, it deletes the test and writes down why.

If a change can modify the check that judges it, the check is broken." Review rules are therefore read from the base branch, never from the pull request under review.
The rule for checksHow the Claude Code team thinks about verification, claude.dev Blog

GoogleAgent harnesses

Google finds that coding agents on Kubernetes wait 78% of the day

A Google Cloud post works out what it costs to run 100 coding agents on GKE, with one Pod per session or with sandboxes that give their machine back while they wait. The answer turns on one number a team can measure: prompts per hour.

Diagram: a person on the left is connected to a chat window with messages and a terminal, which connects on the right to a sandbox icon with a moon badge for a parked session, above icons for files and settings.
Image: Google (opens in a new tab)

A web server answers a request in milliseconds and keeps nothing, so Kubernetes scales it by traffic. A coding agent's session works differently. It stays open for a developer's whole workday, keeps its memory and files between prompts, and works only when a prompt arrives. A study of GitHub Copilot agent traces by Banruo Liu and colleagues found the agent waiting for the user about 80% of the time, with each turn taking 396.3 seconds of agent work on average. At 2 prompts an hour over an 8 hour day, the post's assumption, the agent works 22% of the day and waits for the other 78%.

The post, published on 16 November by Drake Williams and Ivan Nardini, compares three ways to run 100 such agents. One Pod per session keeps the state but holds 1 vCPU and 1 GiB all day: 3 Pods fit on a c3-standard-4 node, so 100 agents need 34 nodes and about USD 1,288 a month. Scaling the Pod to zero between prompts frees the node, but the process and its memory are lost and the next prompt starts a new agent. The third way is parking, with Agent Substrate, which was donated to the CNCF this month along with gVisor and OpenRL and is generally available on GKE at version 1.0. In Agent Substrate an actor is the sandbox for one agent, and workers are warm Pods that each host several actors. SuspendActor snapshots an idle actor to object storage and frees its worker, and the next request restores it on any warm worker. Gateways add credentials on the way out, so the agent never holds the keys.

With a 2 minute idle timeout, each session holds a worker 29% of its open time, and a pool sized for bursts needs 15 nodes, plus one node that runs around the clock for the control plane and its PostgreSQL database. That saves 40% of the node bill. The pool is full about once in 3,500 turns, and then a request waits up to 5 seconds before failing with HTTP 503. The saving shrinks quickly as developers prompt more often: at 4 prompts an hour the pool grows to 27 nodes and saves 4%, and around 4.5 prompts an hour one Pod per session becomes the cheaper option. Because the control plane costs the same for any fleet, parking pays from about 37 coding sessions.

Two things are left to the team. Agent Substrate does not suspend an idle actor by itself, so the agent harness must call suspend after its own timeout, and the autoscaling in the install guide follows worker Pods rather than parked actors, so a pool left running all 730 hours of a month costs about twice the one-Pod bill. Overcommit also changes the comparison: Pods that request 0.25 vCPU under a 1 vCPU limit pack 12 to a node, which fits the same 100 agents on 9 nodes, at the price of agents slowing each other down during builds and tests.

ClaudeAgent security

Anthropic cuts its disclosure deadline for serious vulnerabilities from 90 days to 30

From 1 January 2027, Anthropic will publish the high- and critical-severity bugs it reports 30 days after telling the maintainer, and other bugs after 45. The lab says the 90-day norm assumed that fixes moved at human speed and that nobody else would find the same bug soon.

Illustration in two halves: on the left, a black-and-white photograph of a large boulder resting on smaller stones, with the boulder coloured yellow; on the right, blue line drawings of mountains under a yellow sun on a lilac background.
Image: Anthropic (opens in a new tab)

When a researcher finds a security hole in someone else's software, the usual practice is coordinated disclosure: tell the maintainer privately, give them a fixed time to ship a fix, and publish the details afterwards. Ninety days became the common deadline, long enough to prepare a fix and short enough that a known hole does not stay open for good. Anthropic follows such a policy for the vulnerabilities that its researchers and models find in other projects.

On 16 November Anthropic shortened its window from 90 days to 30 for high- and critical-severity issues, and to 45 days for all others. The new deadlines apply to reports sent on or after 1 January 2027; reports already in progress keep their old ones. Two related changes come with it. Anthropic will aim to escalate to an external vulnerability coordinator after 15 days instead of 30 when a maintainer does not respond, and it will wait 30 days instead of 45 after a patch is available before sharing full technical details. Serious reports that are already past the old 90-day deadline get an extra 30 days, after which they go on Anthropic's dashboard. The seven-day window for bugs under active exploitation is unchanged.

The reason given is that both assumptions behind the old norm have broken: models can now help develop fixes, and a bug one model can find is increasingly likely to be found by another. Anthropic says it is seeing a higher rate of rediscovery. Some flaws still cannot be fixed within a month, such as those in hard-to-deploy software like critical infrastructure or those that need a change to a specification, and for these Anthropic will agree a timeline with the vendor. The policy does not apply to AI findings that no human has reviewed, such as those from OSS Scanner, its no-cost service that scans critical open-source projects with its strongest models. To ease the pressure on maintainers, it points to OSS Scanner, to six months of Claude Ultra through the Claude for Open Source Program, and to the Cyber Verification Program for security professionals.

Deep dive

Engineering

ResearchGoogle

Google makes its RL sampler and trainer agree to the last bit on TPUs

In reinforcement learning for language models, the sampler that generates answers and the trainer that learns from them can score the same token differently, even with the same weights. A Google post explains how floating-point arithmetic causes this and gives a four-part recipe, now in Tunix, that removes it.

Reinforcement learning after pre-training runs in a loop. A sampler generates attempts and records, for every token it picks, the log-probability that the model gave that token. A trainer then runs the same tokens through the model again to compute gradients. On-policy learning assumes that both steps evaluate exactly the same policy. In production the two run on different code paths, the sampler decoding one token at a time and the trainer processing whole batches, and even with identical weights they can assign different log-probabilities to the same token. The schedule is on-policy, but the arithmetic is not, and the gap compounds over trajectories with many turns.

The cause is that floating-point addition is not associative. A sum computed in a different order rounds at different places. The post shows this in bfloat16, which keeps less precision than float32: near 2.0, a value of 0.0078125 added on its own is rounded away, while several such values grouped first reach the next representable number. Matrix products, normalisation statistics and the combining of tensor-parallel shards are all sums of this kind. In Google's original stack the sampler and the trainer used different array shapes and forward implementations, and JAX compiles a separate program for each shape. In the post's words, the weights and model equations were identical; the arithmetic was not.

The post sets a strict contract. Sampler decode, serving prefill and trainer forward must produce bitwise-identical log-probabilities for every sampled action, compared as raw bytes with no tolerance. The middle step is there for diagnosis: decode against prefill tests whether the serving engine agrees with itself, and prefill against the trainer tests the boundary between serving and training. The recipe has four parts. Batch-invariant Pallas kernels fix the order and precision of the sums within each shard, accumulating in float32 however many token rows there are. Sums across shards are made explicit: ppermute moves the partial results and every rank adds them in the same source-rank order. All three paths score the sampled token with one shared, fixed log-softmax. And the trainer reuses the serving kernels for its forward pass through custom vector-Jacobian products, with --xla_allow_excess_precision=false passed to the compiler.

The implementation, called Zero-TIM, lives in Tunix, Google's open-source JAX library for post-training on Cloud TPU, and was verified on 64 TPU v5p chips arranged as 8-way data parallelism by 8-way tensor parallelism. The test trained a public Qwen3-8B checkpoint for 200 steps on FrozenLake, a synthetic grid puzzle in sizes from 2×2 to 9×9 with up to five turns, using a GSPO-token loss. Zero-TIM recorded a mean absolute log-probability difference of zero at every logged step and reached higher solve rates than standard training and than truncated importance sampling, a common correction that reweights the mismatch instead of removing it.

These are single-seed runs in a toy environment, so they show that the mechanism works rather than how large the gain is on real tasks. The post credits recent open-source work on the same contract, with vLLM and TorchTitan and in RadixArk and LMSys's Miles; what it adds is an implementation for JAX, Pallas and multi-host TPU meshes. Google says it is extending the TPU version to linear attention and mixture-of-experts models.

In brief

Frontier news

Tools

Local and home

Security and trust

Research

Say hi.