Tech roundup: AI optimizes machine code and new testing frameworks emerge

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...
Today's articles explore the intersection of AI and engineering practice: on one side, letting AI directly rewrite machine code and verify correctness with formal methods; on the other, how test frameworks should evaluate and structure things as LLMs evolve. There's also an in-depth look at KV Cache, plus two teams' experiences rebuilding their E2E test systems.
This is work introduced by Columbia University researcher Koukyosyumei on Zenn. He previously developed NoCompiler, a tool that introduces a Rust-like type system at the assembly level and uses Lean 4 to prove the soundness of the type checker. This time he added a "functional equivalence" formal verification feature to NoCompiler and let an AI agent directly optimize the machine code generated by the compiler.
The experiments targeted functions in embedded libraries such as TensorFlow Lite Micro, libfixmath, and ESP-DSP. Compared with -O3 compilation results, estimated CPU cycles dropped by up to about 66%, and equivalence before and after optimization was formally proven with Lean 4.
What stands out is that this approach separates "AI optimization" from "correctness verification": the AI agent can rewrite instructions however it likes, but correctness is judged by an independent formal verifier, not by the AI itself. For developers, this suggests an idea—beyond compiler optimization, use AI to explore instruction sequences tailored to specific hardware and input constraints, with machine-checkable proofs as a safety net.
This is nrslib's presentation material from the Findy event "Learning AI-driven development test framework design through case studies." Drawing on several LLM products he has worked on, the speaker discusses how the test harness built around an LLM can keep up as the LLM keeps evolving.
The material lists the problems posed by strong and weak models respectively: strong models raise defense requirements outside the threat model and lose information due to context compression; weak models call nonexistent tools, output invalid JSON, and miss residual defects. In response, the speaker proposes using a classification agent to filter out out-of-scope findings, managing related locations in a table, discarding and redoing work when compression is detected, and building a prompt evaluation foundation modeled on TDD's RED→GREEN approach, running it with promptfoo, judging with assert, and comparing results across multiple models.
For developers, the observation worth noting is that "the stronger the model, the more easily the test framework breaks down": prompts and workflows need continuous evaluation and refactoring as models change, rather than being built once and reused long-term.
This is the "KV Cache Deep Dive" material shared by Kota Tsuyuzaki of NTT DOCOMO BUSINESS at the Okinawa cloud-native study session, compiled from the source code and documentation of various OSS projects as of November 2026, covering vLLM, SGLang, LMCache, Mooncake, NVIDIA Dynamo, llm-d, and others.
The material starts with the Prefill and Decode phases of LLM inference, explains the role of KV Cache and how its size is calculated, and uses the example of a Coding Agent resending a long context each turn to show why cache reuse is critical. It then covers KV Cache management at the Engine layer, cross-GPU cache tiering (CPU memory, distributed memory, object storage, etc.), and request routing.
For developers, the point worth noting is that in long-context scenarios KV Cache consumes a large amount of GPU memory, and once the cache is evicted the prefix must be recomputed, directly lengthening time to first token. Understanding how the various OSS projects differ in cache tiering and routing helps in making better choices when building your own inference service.
This is Bitkey's takumi_sakao writing about improving the workhub development process. The team originally had to manually run about 2,000 regression tests each sprint; in 2023 they introduced mabl and automated about 30%, but execution still took about 37.8 hours, and the tests mostly copied manual steps, so they broke easily with slight UI changes.
The team eventually discarded all 2,000 cases (including the automated ones) and built user-story-based E2E tests from scratch with Playwright, describing them in Given/When/Then format and writing the user story as JSDoc at the top of the spec file. Half a year later, regression testing fit within a two-week sprint, daily automated runs surfaced regressions the next day, and once the test code entered the repository, developers and QA could discuss it on PRs.
For developers, the common pitfall worth noting is "automating manual steps directly": E2E should focus on the paths users take to achieve their goals, while details like prefix/suffix matching are better left to component tests.
This is tsuemura's article introducing the E2E automated testing framework "e2e." The framework took off quickly after its October 2026 debut, focusing on writing E2E test code in natural language, and it acquired the e2e.com domain.
It offers three types of APIs: agent.act describes a goal in natural language and the agent looks at the screen and operates; agent.assert and similar APIs have the model judge whether the screen satisfies a description; screen locators perform deterministic operations and verification. The operation steps of agent.act are cached, and the next run uses the cache first, falling back to AI on failure, which reduces cost and enables self-healing; agent.assert is not cached and calls the model for judgment every time.
For developers, the point worth noting is that natural-language steps can "get the right result for the wrong reason": for example, when Ctrl+Enter fails, the AI switches to the send button, and the test appears to pass without actually verifying the goal. The article suggests using deterministic locators in such cases to balance flexibility and accuracy.