Fetching from the wire…
Public story · 2026-09-09 · high
LatentMD tested 9 language models across about 37,600 generations and traced the failures to colliding delimiters, not nesting depth.
Why now: The paper surfaced on arXiv in September 2026, as more tools parse raw LLM markdown without a human checking it first.
Correct-looking markdown from large language models breaks its own code fences, a new paper finds. Tools that regex-split on fence markers, or feed raw model output straight into a renderer, fail silently when that happens. The model's answer can be entirely correct while the code extraction step still breaks.
LatentMD ran 9 language models through about 37,600 generations, scoring content correctness separately from fence-boundary correctness. Even when the content was right, the boundaries were broken 38% of the time, per LatentMD's paper.
The failures aren't about nesting depth. They cluster around same-family symmetric delimiters colliding, such as a triple-backtick fence appearing inside content that already contains backticks. The same pattern shows up in Python's triple-quote docstrings, another symmetric delimiter, while JSON's asymmetric brackets and braces stayed steady across those tests.
The paper doesn't say which of the 9 models fared best, so there's no way to just pick a safer one.
Each link below shares sources, entities, or timing with this story.
I've been skeptical of "just have AI rewrite your codebase" advice because most of it comes from people who haven't actually done it in production. This week, three independent teams published results that changed my mind, with a very specific caveat. Reco.ai rewrote JSONata (...
After 20+ years maintaining Paint.NET, Rick Brewster concluded WINE's Direct2D would never be complete enough for what he needed, so the app now carries its own from-scratch reverse-engineered Direct2D implementation. He puts it at 180,000 lines against 700,000 for the rest of...
CCP announced the migration covering code that has run on Stackless 2.7 since 2010. The approach is to run futurize across the codebase and then manually review roughly 20,000 places where Python 2 and 3 behavior diverges, including integer division (Simon Willison). No comple...
Simon Willison released it August 4, calling it "the most significant new version since the initial launch of the project," which from him is not marketing. The agent-relevant pieces: tools can raise llm.PauseChain to stop for human approval, and chains resume from pending cal...
Simon Willison's release scans a JSON structure for duplicate strings and substrings from a supplied replacements object, swapping matches for compact references, marking condensed regions with {"$r": [...]} and pointing at replacements via {"$": "ID"}. Fully reversible via un...
The first major version bump of his widely-used Python/CLI SQLite toolkit lands built-in schema migrations and savepoint-based nested transactions on June 21. If you lean on sqlite-utils as glue in data or LLM pipelines, migrations kill the hand-rolled ALTER scripts you've bee...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.