<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zfbots Smith</title>
    <description>The latest articles on DEV Community by zfbots Smith (@zergskj).</description>
    <link>https://dev.to/zergskj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3720592%2Fca11889d-b43b-43c1-900a-8ea61a271817.jpg</url>
      <title>DEV Community: zfbots Smith</title>
      <link>https://dev.to/zergskj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zergskj"/>
    <language>en</language>
    <item>
      <title>The Thinking Puzzle: 14 Chapters Asking Whether Machines Actually Think</title>
      <dc:creator>zfbots Smith</dc:creator>
      <pubDate>Sat, 28 Nov 2026 05:33:44 +0000</pubDate>
      <link>https://dev.to/zergskj/the-thinking-puzzle-14-chapters-asking-whether-machines-actually-think-1mmh</link>
      <guid>https://dev.to/zergskj/the-thinking-puzzle-14-chapters-asking-whether-machines-actually-think-1mmh</guid>
      <description>&lt;p&gt;I have spent the last few years doing a very specific motion: staring at a model's reasoning trace and thinking, &lt;em&gt;this is too smooth to be real&lt;/em&gt;. Once I inserted a completely useless intermediate step into a prompt and the answer didn't change — and chose not to dig into it. Once I was writing "the agent demonstrates autonomous planning" in a report, stopped halfway through typing, and asked myself: do I actually know what this sentence means?&lt;/p&gt;

&lt;p&gt;Those moments are small. Small enough to forget before the next deadline. But they accumulate into a question you can no longer walk around: we say a model is &lt;em&gt;reasoning&lt;/em&gt;, that chain of thought &lt;em&gt;shows its thinking&lt;/em&gt;, that an agent &lt;em&gt;plans autonomously&lt;/em&gt; — when we say the word "thinking," do we actually know what we mean?&lt;/p&gt;

&lt;p&gt;I wrote a book about trying to answer that question — or, more accurately, about figuring out why it cannot be answered. It is called &lt;strong&gt;The Thinking Puzzle: What AI Reasoning Reveals — and What It Cannot Prove&lt;/strong&gt;. The Kindle edition just went live on Amazon. In this post I want to explain what the book actually does, and why it might be worth a few hours of your time. No slogans.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcf7ajhizabfslfdcw4a7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcf7ajhizabfslfdcw4a7.png" alt="Cover of The Thinking Puzzle" width="800" height="1280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Thinking Puzzle: What AI Reasoning Reveals — and What It Cannot Prove. 606 pages, English Kindle edition.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  First, what this book is not
&lt;/h2&gt;

&lt;p&gt;Let me set expectations. If you want prompting tricks that make your model more accurate, the newest CoT / ToT / ReAct implementations, or a checklist for squeezing a few more points out of a benchmark — there are good books for that. Read those books. This one isn't it.&lt;/p&gt;

&lt;p&gt;It assumes you are not a beginner. That you have built a chain of thought, added majority voting, wired up a verifier, and chained a few models into a workflow your team calls a "multi-agent system." Precisely because these methods are familiar — because you use them fluently and without thinking — they are worth questioning. &lt;strong&gt;Illusions grow out of fluency.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So its identity from the start was not a manual, not a survey, not a prompt cookbook, but a &lt;em&gt;provocation&lt;/em&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is not a book about how to make AI think. It is a book that questions the very phrase "make AI think."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That distinction matters. A manual ends with "you can do it." A provocation ends with "you can ask better questions." This is not a dismissal of building — the useful systems our industry has shipped exist because people made things work. The book is not a substitute for building; it is a skeptical colleague at the design review: the person who keeps raising a hand when everyone else is ready to approve. Usually inconvenient. Occasionally saves the project.&lt;/p&gt;

&lt;p&gt;The author is unusually candid about this. There is a section called "A Necessary Confession: The Author May Be Deceiving Himself," which recounts writing Chapter 8: in the morning, energized by an article that seemed to nail the faithfulness critique, he confidently typed the first paragraph; in the afternoon, checking a citation, he read an hour of opposing work and came back staring at his own paragraphs with a single thought — had he compressed something far more complicated into a neat slogan? By evening he was doubting whether the afternoon's doubt was too soft. That oscillation happened dozens of times, and grew &lt;em&gt;more&lt;/em&gt; frequent as the book got longer.&lt;/p&gt;

&lt;p&gt;He did not remove it. He wrote it into the book. Because someone who writes a book of critiques without critiquing himself becomes exactly the thing he criticizes: a person using a polished narrative to hide unexamined premises.&lt;/p&gt;

&lt;h2&gt;
  
  
  A red thread and five fronts
&lt;/h2&gt;

&lt;p&gt;A book about asking questions risks asking a different one on every page. Then the reader ends up with a pile of disconnected doubts — more a mood than a method. So the whole book has one thread:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;If you can replace a reasoning trace without changing the answer, in what sense was that trace the model's thinking?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This sounds abstract but is extremely concrete. Add "let's think step by step" and the answer changes. Swap in "analyze carefully" and it may change too. But delete an intermediate step — or replace it with something completely irrelevant — and sometimes the answer doesn't move at all. We call that text &lt;em&gt;reasoning&lt;/em&gt;, yet its causal role may be nothing like the one we assigned it. Perhaps it guides computation. Perhaps it is a switch that makes the output format look better. Perhaps both, in proportions we cannot state.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5oc7hd8cp9e1fovnl6jg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5oc7hd8cp9e1fovnl6jg.png" alt="The replaceability test" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The replaceability test: correct step, irrelevant text, and wrong step all converge on the same answer. When a process can be freely replaced, is it on the causal path at all? Figure 1-1 from the book.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The inquiry advances along five fronts, from shallow semantic confusion to the deepest epistemological bind:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh263oggiyt9mvhcxeakg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh263oggiyt9mvhcxeakg.png" alt="The five fronts" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The five fronts, in increasing depth: concepts → scale → architecture → knowing → rebuilding. Figure 0-2 from the book.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Front&lt;/th&gt;
&lt;th&gt;What is under examination&lt;/th&gt;
&lt;th&gt;The challenge&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;I. Concepts&lt;/td&gt;
&lt;td&gt;What do we mean by "thinking"?&lt;/td&gt;
&lt;td&gt;Maybe we don't know what we're talking about&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;II. Scale&lt;/td&gt;
&lt;td&gt;Does more compute buy better thinking?&lt;/td&gt;
&lt;td&gt;Maybe we're hiding shallow understanding with brute force&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;III. Architecture&lt;/td&gt;
&lt;td&gt;Do agents and traces think?&lt;/td&gt;
&lt;td&gt;Maybe it's workflow orchestration wearing a "cognitive" coat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IV. Knowing&lt;/td&gt;
&lt;td&gt;How can we tell what a system knows?&lt;/td&gt;
&lt;td&gt;Maybe our benchmarks and explanations deceive us&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;V. Rebuilding&lt;/td&gt;
&lt;td&gt;What else could thinking be?&lt;/td&gt;
&lt;td&gt;Maybe the answer isn't a bigger model&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The sharpest chapter: window or smoke screen?
&lt;/h2&gt;

&lt;p&gt;If you read only one chapter, I'd suggest Chapter 8, "Faithful Lies." It turns the red thread from a thought experiment into something you can actually test.&lt;/p&gt;

&lt;p&gt;There is a deeply held intuition in this work: if we make the model write out its process, we can &lt;em&gt;see what it is thinking&lt;/em&gt;. Chapter 8 asks: is the reasoning you read a genuine train of thought, or a story composed for you? Two possibilities: &lt;strong&gt;faithful reasoning&lt;/strong&gt; — the chain genuinely reflects the process that produced the answer; or &lt;strong&gt;post-hoc rationalization&lt;/strong&gt; — the chain is a justification added after the answer was settled.&lt;/p&gt;

&lt;p&gt;The key experiment is simple, and a little mischievous: secretly inject an error into the reasoning, or change an intermediate conclusion to a wrong one, and see whether the final answer moves. If that text is truly the cause of the answer, the answer should break too. If the model ignores the corrupted chain and produces its original answer, the answer came from somewhere else and the chain is just text it is willing to recite.&lt;/p&gt;

&lt;p&gt;This isn't invented for the book. Two primary sources anchor it: Turpin et al. (NeurIPS 2023) found that when they biased answers by reordering multiple-choice options so the answer was always "(A)," models almost never mentioned the bias in their explanations, and accuracy fell by as much as 36% across 13 BIG-Bench Hard tasks [1]. Lanham et al. built a measurement toolkit — early answering, adding mistakes, paraphrasing, filler tokens — and concluded that models' reliance on the chain varies by task, and that &lt;strong&gt;larger, more capable models are, on most tasks, less faithful&lt;/strong&gt; [2].&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ddfciwyqkv4n2sli90r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ddfciwyqkv4n2sli90r.png" alt="The glass window" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We see the tidy chain on the right through the same glass as the dense, high-dimensional computation on the left. Figure 8-2 from the book.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But the most valuable part of the chapter is not what it debunks — it is how honest it is about its own instrument. There is a section arguing that &lt;strong&gt;even the instrument used to test faithfulness gives an ambiguous reading&lt;/strong&gt;: if the model follows the corrupted chain, you can say the chain has causal power; if it ignores the error and still answers correctly, you can say "the chain is decoration," or just as reasonably say "the model found the answer another way and was still thinking." The two readings imply opposite worldviews and can be identical in output.&lt;/p&gt;

&lt;p&gt;So the conclusion is more restrained than you'd expect from a book of critiques: it confirms only that the chain of thought has been marketed and used as a &lt;em&gt;window into thinking&lt;/em&gt;, while its faithfulness is far from established. It is likely a piece of text that is sometimes faithful and sometimes fabricated, and that we cannot tell which on any given occasion. &lt;strong&gt;The problem is not that chains of thought are useless; it is that they have been trusted with something they cannot carry.&lt;/strong&gt; The line worth taking away: "The more rigorous an explanation looks — the more it reads like &lt;em&gt;its&lt;/em&gt; thought — the more you should ask: how did it arrive at this, and who was it written for?"&lt;/p&gt;

&lt;h2&gt;
  
  
  It doesn't only tear down
&lt;/h2&gt;

&lt;p&gt;The greatest risk for a critical book is becoming a one-sided rant. This one imposes two hard rules.&lt;/p&gt;

&lt;p&gt;First: &lt;strong&gt;every chapter must include the strongest opposing case&lt;/strong&gt;, written with the steelman principle — strong enough that the author himself nods along, and sometimes finds it more persuasive than his own argument. The book says outright: if you read an opposing section and find it more convincing, trust your instinct — that's not an oversight, it's a deliberate opening. Beating up a straw man is worthless; you've defeated a view nobody held.&lt;/p&gt;

&lt;p&gt;The second rule is harsher: &lt;strong&gt;evidence grading, with one ironclad exception — no claim about whether a machine is thinking ever gets the ✅ "verified" label.&lt;/strong&gt; The book uses three levels (verified / preliminary evidence / theoretical motivation), but withholds the top level for this class of claims. The reason: nobody currently holds evidence hard enough to classify "it is thinking" or "it is not thinking" as verified fact. If someone hands you a ✅ on a question like this, be wary.&lt;/p&gt;

&lt;p&gt;One easy-to-miss detail: each chapter also contains a moment of author self-doubt, ends with "what this chapter refuses to answer," and adds a list of 5–8 open questions. In Chapter 6, the self-doubt is sharp: the author admits he kept saying "thinking is like a drug with side effects," yet every example — flipping a correct answer to a wrong one, getting more and more verbose, losing the original question — was about &lt;em&gt;thinking badly&lt;/em&gt;, not about the &lt;em&gt;act of thinking&lt;/em&gt; causing harm. "You can't say a knife has side effects because someone cut himself with it. I described usage accidents and delivered an ontological diagnosis. When put that way, I did blush."&lt;/p&gt;

&lt;p&gt;The inverted-U curve in that chapter makes the same point from another angle: the same curve — performance rising then falling with more reasoning — supports two stories. "Thinking is harmful" says: see, think too much and you fall, so think less. "It's an optimization problem" says: you simply haven't found the right dose. &lt;strong&gt;Same phenomenon, worlds apart in conclusion.&lt;/strong&gt; The book refuses to choose for you, but lays out the cost of each reading.&lt;/p&gt;

&lt;p&gt;Chapter 7 dismantles the agent loop the same way. The "observe — plan — act — reflect" circle is drawn as a smiling figure labeled "autonomous thinking" in the promotional version; the engineering version labels each arrow: observe = API call, plan = API call, act = API call, reflect = API call. The conclusion is not "agents are useless" — these mechanisms remain useful in engineering. It is: &lt;strong&gt;the existence of this loop is not evidence that the system is deliberating.&lt;/strong&gt; Those sound similar but are worlds apart: the first declares it innocent; the second merely refuses to declare it guilty.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fny4aoww2fjldg3gibkc7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fny4aoww2fjldg3gibkc7.png" alt="Agent loop: promotional vs engineering" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The agent loop: the promotional version (left) draws a "thinking" figure; the engineering version (right) shows four API calls. Figure 7-1 from the book.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the author leaves standing
&lt;/h2&gt;

&lt;p&gt;After twelve chapters of doubt, stopping there would be cheap. The last two chapters are the book's one constructive gesture.&lt;/p&gt;

&lt;p&gt;Chapter 13 changes the question: instead of asking "does &lt;em&gt;it&lt;/em&gt; think &lt;em&gt;inside itself&lt;/em&gt;," ask "where does thinking live?" It proposes &lt;strong&gt;cognitive capital&lt;/strong&gt; — a stock concept that counts parameters, tools, databases, memory, context, abstractions, people, and collaboration networks. The "tree of cognitive capital" makes it concrete: thinking isn't the tree itself but everything the tree can draw on — extensional capital (tools, data, external memory) as leaves and fruit; situational capital (context, working memory) as branches; abstract capital (concepts, principles) as the trunk; internalized capital (parameters, internalized skill) as the roots; relational capital (networks, collaboration) as the connected root system between trees.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnk3d8wvzw2n5x6ebrct2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnk3d8wvzw2n5x6ebrct2.png" alt="The tree of cognitive capital" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The tree of cognitive capital: thinking is not a property inside a model, but a stock distributed across tools, data, people, and time. Figure 13-1 from the book.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This yields what I think is the book's most quotable line: &lt;strong&gt;thinking is not a property inside a model; it is a stock distributed across tools, data, people, and time — you draw on it, you don't own it.&lt;/strong&gt; Accept that, and "improve AI's thinking" stops meaning only "make the model bigger." It becomes a design question: which capital forms can you add to the system, and where is value quietly lost when that capital is cashed in?&lt;/p&gt;

&lt;p&gt;But one sentence must be read alongside it: cognitive capital &lt;strong&gt;is still an idea, not a theory.&lt;/strong&gt; No theorems, no falsifiable predictions, no accepted metrics. It is a map, not a house. The author wrote it down not because he is sure it is right, but because he thinks it is worth someone pushing further. Chapter 14 goes further: he refused to write a glossy "next five years" list and left only an open-problem list instead, on the grounds that a concrete prediction becomes an answer that blocks further questioning the moment it is written down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for, and how to read it
&lt;/h2&gt;

&lt;p&gt;The book offers three reading modes, with no ranking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Geologist&lt;/strong&gt; — you care what lies beneath the conclusions. Read each chapter's key experiment and strongest opposing case, and take the core samples. Useful when you need to decide whether to put chain-of-thought into production and want to know which layer of soil the evidence stands on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lawyer&lt;/strong&gt; — you care whether the author has evidence. Watch the grades, especially the iron rule. Practice long enough and you develop an occupational hazard: any confident AI claim in the news immediately sends you looking for its evidence grade. The author calls that hazard valuable in today's media environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explorer&lt;/strong&gt; — you only want to know what's unsolved. Skip the arguments, go straight to the question lists, and set off on your own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's also a "30-second table of contents: fourteen bets" at the front, listing what you stand to lose or gain in each chapter. Its opening line is a reverse filter: "If you nod at every one of these, be especially careful — that comfort is exactly what this book wants to dismantle."&lt;/p&gt;

&lt;p&gt;My own sense: this is for developers who have read &lt;em&gt;AI Models Demystified&lt;/em&gt;, already use CoT and agents, and have started wondering what exactly we are building. If you are new to large models, it may make you uncomfortable — it is not a stone thrown from outside, but a letter passed from inside the boat, written by someone in the same boat heading the same direction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The puzzle
&lt;/h2&gt;

&lt;p&gt;The "puzzle" in the title is not "can machines think?" — too big, too slippery, it escapes every time you grab it. Nor "will AI surpass humans?" — louder, cheaper, and another question entirely.&lt;/p&gt;

&lt;p&gt;It is something smaller, more concrete, more stubborn: &lt;strong&gt;we have built machines extraordinarily good at &lt;em&gt;performing&lt;/em&gt; thought, and we can neither prove that they think nor prove that they don't. Stranger still, this unanswerable question changes what we build, how we build it, and who is responsible for it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is a line I stopped at for a long time: "The puzzle doesn't wait for the problem to be solved before it starts charging. This book doesn't pay that bill for you. It shows you the invoice." It lives in the hundreds of engineering decisions we make each day, in the line a product manager writes into a spec, in an investor's due diligence, in the regulation a draftsman is about to finalize. The book's aim is not to pay that bill, but to show you the invoice.&lt;/p&gt;

&lt;p&gt;The conclusion offers three judgments the author believes but does not claim as truths. One of them: "Knowing that we don't know is an engineering virtue, not a philosophical posture." Someone who knows they stand on quicksand builds differently from someone who believes they stand on bedrock: the former leaves escape routes, adds verification, avoids one-shot bets, and keeps rollback versions; the latter goes all in, writes unverified assumptions into production code, and is unprepared when it collapses.&lt;/p&gt;

&lt;p&gt;So the book ends without giving you an answer. Its promise is: no answers, but knives. When you close it, you should have a question list of your own — ideally with a few lines crossing out the author's claims. That's when it has done its job: not to make you agree, but to make you stop agreeing easily with anyone, including the author.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the book
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The Thinking Puzzle: What AI Reasoning Reveals — and What It Cannot Prove&lt;/em&gt;, by kejia shao. Kindle edition, 606 pages, English, published November 27, 2026.&lt;/p&gt;

&lt;p&gt;Amazon: &lt;a href="https://www.amazon.com/dp/B0HJTNDSDH" rel="noopener noreferrer"&gt;https://www.amazon.com/dp/B0HJTNDSDH&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Turpin M, Michael J, Perez E, Bowman S R. &lt;em&gt;Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting.&lt;/em&gt; NeurIPS 2023, arXiv:2305.04388.&lt;/li&gt;
&lt;li&gt;Lanham T, Chen A, Radhakrishnan A, et al. &lt;em&gt;Measuring Faithfulness in Chain-of-Thought Reasoning.&lt;/em&gt; arXiv:2307.13702, 2023.&lt;/li&gt;
&lt;li&gt;Shao K. &lt;em&gt;The Thinking Puzzle: What AI Reasoning Reveals — and What It Cannot Prove.&lt;/em&gt; Amazon KDP, 2026. &lt;a href="https://www.amazon.com/dp/B0HJTNDSDH" rel="noopener noreferrer"&gt;https://www.amazon.com/dp/B0HJTNDSDH&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>philosophy</category>
    </item>
    <item>
      <title>What If Vibe Coding Weren't a Chat — but a 3D Drive?</title>
      <dc:creator>zfbots Smith</dc:creator>
      <pubDate>Sun, 22 Nov 2026 06:25:11 +0000</pubDate>
      <link>https://dev.to/zergskj/what-if-vibe-coding-werent-a-chat-but-a-3d-drive-529j</link>
      <guid>https://dev.to/zergskj/what-if-vibe-coding-werent-a-chat-but-a-3d-drive-529j</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;When an agent's candidate directions become forks in the road, its execution becomes actual driving, and every choice leaves a trace you can revisit — can we move from "waiting for the AI's answer" to &lt;em&gt;driving a human–AI collaboration&lt;/em&gt;?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6e534azho0qjotdw02p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6e534azho0qjotdw02p.png" alt="Concept art of a 3D agent cockpit" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The cover is an AI-generated concept image. Every visual below is labeled in one of three evidence tiers: ① AI concept art; ② UI demos with locally injected candidates (marked "demo"); ③ **live-run recordings and screenshots against a real backend&lt;/em&gt;* (marked "live run"). In this live run, execution uses a small local model served by Ollama on the author's machine; direction forecasting goes through the fast local channel and is honestly labeled "local preview," while the execution chain is genuine streaming model output.*&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faigtu56r5tb6q9t22qes.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faigtu56r5tb6q9t22qes.png" alt="Real rendering of the prototype: an empty cockpit before departure" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prototype view ① — the cockpit before any question is asked. Actually rendered in the browser; no simulated results.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  01 | Today's vibe coding feels like directing an invisible car over the radio
&lt;/h2&gt;

&lt;p&gt;You say: "Give this page a cleaner layout." The agent starts writing code. A moment later, it tells you it's done. You ask: why this layout? Was there a bolder version? Where does this change sit in the product's bigger picture? Is the next step interaction, performance, or checking whether users even understand it?&lt;/p&gt;

&lt;p&gt;These questions pile up inside a single chat log. A chat window can hold code, explanations, and commands — but it struggles to show you &lt;strong&gt;the relationships between directions&lt;/strong&gt;: which options are parallel alternatives, which are sequential dependencies, and which are attempts already taken and rolled back. Your finger is on the Send button, but you aren't necessarily holding a map.&lt;/p&gt;

&lt;p&gt;This project proposes an ambitious inversion: &lt;strong&gt;don't just let the AI tell you what it plans to do — let you see the possible routes in space, and drive the agent down one of them yourself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is not a chat window glued next to a 3D toy car. It attempts to redefine the object of interaction: from "the next message" to "the next leg of a journey." If the idea holds, vibe coding becomes more than writing code in natural language — it becomes a collaboration you can &lt;strong&gt;preview, choose, follow, verify, and replay&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  02 | How does one question grow a road?
&lt;/h2&gt;

&lt;p&gt;Imagine the task: "Help me build the home page of a weather app." In a chat box, that's a prompt awaiting a reply. In the cockpit, it's an intersection about to unfold.&lt;/p&gt;

&lt;p&gt;Ahead of you, signposts appear: &lt;strong&gt;define the information architecture first&lt;/strong&gt;, &lt;strong&gt;build a runnable page first&lt;/strong&gt;, &lt;strong&gt;establish the visual style first&lt;/strong&gt;, &lt;strong&gt;verify the weather data source first&lt;/strong&gt;. These aren't four decorative buttons; they should be genuinely distinct courses of action. You can read each route's rationale and steps before choosing which one to drive into — or propose your own direction instead of being confined to the machine's menu.&lt;/p&gt;

&lt;p&gt;The prototype's core interaction is already built around this metaphor: a forecaster generates candidates and estimates their divergence; small differences render as something closer to a straight road, while meaningful differences fork; the chosen signpost triggers execution; on completion, the result is anchored to the node you drove to; continuing the exploration spawns new directions ahead. The prototype also experiments with side-by-side candidate comparison, keyboard route selection, and custom directions within the same interaction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff4hawvxedv7qmghbykzz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff4hawvxedv7qmghbykzz.gif" alt="Live-run GIF: after a question, the latent path skeleton lights up into five candidate signposts" width="760" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live animation ① — after typing "help me plan the development steps for a weather app home page," a dark path skeleton unfolds first, then lights up into five colored signposts when the forecast returns. A real backend is in the loop; this batch of candidates comes from the fast local channel, honestly labeled "local preview" in the UI.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy8gphnqjt99c9qoj73t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy8gphnqjt99c9qoj73t.png" alt="Live-run screenshot: five candidate signposts and candidate cards" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live screenshot ① — the full UI at the same moment: 3D forks, candidate cards on the right, and a "local preview" provenance bar on top.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwc5svvisxqggqkx9999.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwc5svvisxqggqkx9999.png" alt="Prototype view: three candidate roads with signposts" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prototype view ② — the actual WebGL scene, forks, and candidate cards. The candidates ("information architecture first / runnable page / visual style") were injected by a local script as a UI demo; the "local fallback" badge on top is a genuinely displayed source label and does not mean a model produced them.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff4pp9b8fzveatiheukvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff4pp9b8fzveatiheukvi.png" alt="Prototype view: side-by-side candidate comparison" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prototype view ③ — the actual panel after clicking "compare candidates"; the candidate data is likewise locally injected demo data.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Translating the workflow into driving language is a re-division of labor for the AI product interface:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;The question in agent collaboration&lt;/th&gt;
&lt;th&gt;Its expression in the 3D drive&lt;/th&gt;
&lt;th&gt;The capability the user gains&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What could happen next?&lt;/td&gt;
&lt;td&gt;Signposts and forks ahead&lt;/td&gt;
&lt;td&gt;Compare directions before departing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How do the options differ?&lt;/td&gt;
&lt;td&gt;Road geometry, placement, candidate notes&lt;/td&gt;
&lt;td&gt;Understand the choice instead of blindly clicking "continue"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where are we now?&lt;/td&gt;
&lt;td&gt;In-drive status and HUD widgets&lt;/td&gt;
&lt;td&gt;Follow execution — provided the signals are real&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What did this round produce?&lt;/td&gt;
&lt;td&gt;Arrival sign and result card&lt;/td&gt;
&lt;td&gt;Open the artifact instead of just seeing "done"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Why did we end up here?&lt;/td&gt;
&lt;td&gt;Driven trajectory, timeline, decision chain&lt;/td&gt;
&lt;td&gt;Review, compare, and re-fork&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;This is the truly disruptive part: the agent stops being an answerer on the other side of a dialog box and becomes an action system you navigate together with.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  03 | From prompt engineering to steering-wheel engineering
&lt;/h2&gt;

&lt;p&gt;Classic prompt interaction compresses a huge number of decisions into one sentence. You're expected to settle style, features, boundaries, and validation before you start; anything you forget costs another round of prompt patching. The 3D-driving idea externalizes some of those decisions: you don't have to write the whole route up front — you see a few different roads ahead and judge where to steer &lt;em&gt;this&lt;/em&gt; step.&lt;/p&gt;

&lt;p&gt;For vibe coding, that means a new collaboration rhythm. Building the weather app: you first drive into "runnable page" and get a first version. On arrival, the road ahead forks into "wire up real data," "tune the mobile layout," and "add severe-weather alerts." If the page turns out pretty but unusable, you revisit an earlier node, review the choice you made, and decide to re-drive along another direction. This isn't the AI deciding your product for you — it's &lt;strong&gt;human intent re-entering the system at every meaningful fork&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Space also offers something a chat stream can't naturally provide: memory that isn't just a wall of scrolling text. Roads you've driven become locatable nodes. You can put two results side by side, know which round came from the model and which was only a fast local preview, and tell whether a "re-drive" actually executed a new task or merely replayed an old answer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2h4mfelx7cnh2uhvxohd.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2h4mfelx7cnh2uhvxohd.gif" alt="Browser capture GIF: opening the candidate comparison panel" width="760" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Browser capture ① — switching from the fork view to side-by-side comparison. These are genuinely rendered prototype frames; the candidate content is the labeled local demo data.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopm83bjw69c6883r2plz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fopm83bjw69c6883r2plz.gif" alt="Browser capture GIF: selecting a candidate direction with the keyboard" width="760" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Browser capture ② — real UI changes while selecting a direction via keyboard; not a task-execution recording.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Live run: pick a road and watch it actually execute
&lt;/h3&gt;

&lt;p&gt;The next two clips come from a full execution deliberately wired to a real backend: keyboard-select a candidate → genuine streaming model generation → arrival → open the result card → drive a second leg along a "future signpost." The execution backend is a small local model; the output is genuinely generated text, and the forecast's provenance is honestly distinguished in the UI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3klmz55orkzxmk951fi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3klmz55orkzxmk951fi.gif" alt="Live-run GIF: step one executes — streaming text grows, arrival, result card opens" width="720" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live animation ② — real execution of step one, "research and plan a weather app home page": the task bar's streaming text grows token by token, then the arrival sign rises and the result card expands with real model output.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0de1blkn2wfdqaxlqfi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0de1blkn2wfdqaxlqfi.gif" alt="Live-run GIF: step two — driving along a future signpost and arriving for real" width="720" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live animation ③ — the second real drive after selecting the "organize the research" future signpost: the camera advances along the new road segment, a "forecasting next direction" placeholder sign appears ahead, and once it lands, a new arrival sign and result card take over.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But let's be clear: &lt;strong&gt;the spatial metaphor is not itself a capability.&lt;/strong&gt; If "wire up data first" and "polish the page first" differ only in wording but execute identically, the fork carries no decision value. If a user-proposed direction can't actually be executed, the steering wheel is just an ornament. The interaction revolution hinges on real semantic divergence, real actions in execution, and verifiable results.&lt;/p&gt;

&lt;h2&gt;
  
  
  04 | Two coordinate systems inside the cockpit
&lt;/h2&gt;

&lt;p&gt;The prototype can be understood through two coordinate systems. The first is &lt;strong&gt;semantic space&lt;/strong&gt;: do the candidates truly represent different task directions? The project uses synonym-cluster folding, bucketing, and distance metrics to avoid treating "look up references," "retrieve references," and "search for references" — three phrasings of the same intent — as three separate roads. The second is &lt;strong&gt;path space&lt;/strong&gt;: how are those directions laid out in 3D, selected, driven into, and left behind as trajectories?&lt;/p&gt;

&lt;p&gt;These two coordinate systems must translate into each other. If semantic space distinguishes several meaningful directions but the scene merely arranges them as structurally identical boards, the user still can't choose. Conversely, if roads crisscross the scene with no genuinely different tasks or executions behind them, you're just chrome-plating a void with neon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5s4pjshcrpj23321jhn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5s4pjshcrpj23321jhn.gif" alt="Explanatory GIF: semantic space and path space failing to attest to each other" width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6oajjmvsndowlrb9fawb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6oajjmvsndowlrb9fawb.png" alt="Concept illustration of semantic space vs. path space" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Both visuals above are explanatory illustrations. The project calls this failure of semantic change and spatial movement to mutually attest a "bidirectional broken link." It is a design and research hypothesis, not a user-psychology mechanism confirmed by human experiments.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So the genuinely interesting future question isn't "render more roads" — it's &lt;strong&gt;making the geometry of the roads carry decision information&lt;/strong&gt;: which directions are close, which diverge sharply, which steps must run in sequence, and which road forks off an older node. Only when space is treated as an information structure rather than stage scenery can the driving metaphor add a channel of cognitive bandwidth that a chat box lacks.&lt;/p&gt;

&lt;h2&gt;
  
  
  05 | The killer scenario: turning a coding task into a journey you can replay
&lt;/h2&gt;

&lt;p&gt;Now zoom from abstract "agent collaboration" down to a day of development work. You tell the agent: "Add a login page to the existing app, and make it work on mobile." If the interaction is still a single chat thread, you typically read its plan, then read its code, and stitch the causality together yourself across multiple replies.&lt;/p&gt;

&lt;p&gt;In the cockpit's ideal flow, you see several routes before departure: implement within the existing component system, run a low-fidelity interaction check first, or map out the auth APIs first. After choosing "implement within the existing component system," &lt;strong&gt;what the drive displays should be actual events&lt;/strong&gt;: which file was modified, which build or test is running, where it failed, and what the outcome was. On arrival, you can open the change list and a preview — not just receive a "completed" badge.&lt;/p&gt;

&lt;p&gt;This is a design goal, &lt;strong&gt;not a claim that the current prototype already has a full code-editing, testing, and verification toolchain&lt;/strong&gt;. In fact, an audit of the old execution chain found that intermediate steps wearing names like "retrieval," "tools," and "validation" had no corresponding real work behind them. To use this cockpit for deeper vibe coding, the roads must connect to real development tools and inspectable artifacts; otherwise, the more a demo resembles a real dev workflow, the more misleading it becomes.&lt;/p&gt;

&lt;p&gt;Imagine the experience once that lands: you chose to build the page first; along the way, mobile overflow appears and the road surface warns "layout regression failed." You stop the car and see the failure screenshot and the file involved. The agent proposes two comparable roads: "fix the responsive grid" or "reduce card density." You don't need a lengthy new prompt restating all the context — you simply drive toward the direction that better matches the product's intent. &lt;strong&gt;This doesn't replace code review; it embeds review and choice into the journey.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  06 | The hardest question: how do you prove the car is actually moving?
&lt;/h2&gt;

&lt;p&gt;This is also the project's most public act of self-correction. Early versions iterated on candidate counts, preview fleets, immersion and depth, semantic bucketing. Then a user said: "It feels like nothing substantial is happening." That feedback shouldn't be dismissed as "3D doesn't work" — it pointed the developers at something more fundamental: does every step the cockpit displays correspond to a real change in the backend?&lt;/p&gt;

&lt;p&gt;The audit of the old execution chain found intermediate steps updating progress with &lt;code&gt;asyncio.sleep(0.09)&lt;/code&gt;, then templating copy like "retrieved" and "validated" — while the actual model call happened only at the tail-end output. In the runtime records, the intermediate events ticked at a suspiciously regular ~90–100 ms cadence. For one specific recorded run, the project estimated that fake cadence accounted for roughly 86% of total duration; that figure applies only to that diagnostic run, not as a universal ratio across the product.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi28msb64ngcvkyqtooro.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi28msb64ngcvkyqtooro.gif" alt="Explanatory GIF: early fake intermediate steps vs. real tail-end output" width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This lesson shouldn't steal the spotlight from the article's main idea. What it really shows is: &lt;strong&gt;the more convincingly a 3D drive makes people believe "we are making progress," the more strictly you must constrain when a visual movement may be called work progress.&lt;/strong&gt; For vibe coding, a road segment must not be an animation timeline — it should be a chain of input, operation, result, and evidence. If no retrieval ran, don't light up "retrieval complete." If no tests ran, don't equate reaching the destination with "verification passed."&lt;/p&gt;

&lt;p&gt;The project chose an honest subtraction first: v0.9.12 deleted the intermediate chain that did no real work and converged on a single real model request with token-streamed output, attributing exactly one item, &lt;code&gt;output&lt;/code&gt;. On re-testing, the tidy fake-cadence fingerprint disappeared. Deleting extra road segments wasn't a failure of the driving idea — it cleared space for the &lt;strong&gt;real road segments&lt;/strong&gt; of the future.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk114v68zaanb2zhldq4i.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk114v68zaanb2zhldq4i.gif" alt="Explanatory GIF: the old fake cadence vs. the new real token stream" width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faf7e5zpk5vhe33c9vds3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faf7e5zpk5vhe33c9vds3.png" alt="Concept comparison: theatrical progress vs. a real data stream" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The GIFs are explanatory animations and the image is AI-generated concept art; neither is a runtime recording.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  07 | Turning "done" into a fact you can question
&lt;/h2&gt;

&lt;p&gt;A trustworthy agent cockpit must answer more than "where are we." It must answer four questions: &lt;strong&gt;Did this step really happen? Can the result be verified? Who did it, and at which step? Did the user perceive it in the UI?&lt;/strong&gt; The project calls these P1 authenticity, P2 verifiability, P3 traceability, and P4 perceivability. They are working definitions, not a final formula stamped by human experiments.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What an "arrival" should answer&lt;/th&gt;
&lt;th&gt;What it could map to in vibe coding&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What actually changed?&lt;/td&gt;
&lt;td&gt;Files, code, pages, or configuration modified&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How can the user verify it?&lt;/td&gt;
&lt;td&gt;Diffs, live previews, test results, and failure messages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Whose result is this?&lt;/td&gt;
&lt;td&gt;The user's chosen direction, the agent's execution steps, source labels&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How is the arrival expressed?&lt;/td&gt;
&lt;td&gt;A spatial anchor tied to the actual result with a clear status — not a universal green check&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's why the prototype gradually gained provenance credentials, a per-round ledger, candidate comparison, a decision chain, and generation cancellation. These mechanisms are less eye-catching than a fleet of speeding neon cars, but they let you answer "what did I choose last round," "did this round truly re-run," and "why did a signpost appear when no model was involved." &lt;strong&gt;The steering wheel must not only turn — it must let the driver own the consequences.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F26inbbeqbbazg7f2sq8q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F26inbbeqbbazg7f2sq8q.png" alt="Live-run screenshot: the result card showing real model output and execution credentials" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live screenshot ② — the result card after arriving at step two: genuine model text plus execution credentials (elapsed time, tokens, chain=output, source=llm).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1zd56hkn2rjttz4xq2e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1zd56hkn2rjttz4xq2e.png" alt="Live-run screenshot: a two-round timeline with honest per-round source labels" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live screenshot ③ — the 2D timeline: both execution rounds are replayable, with "forecast = local preview / execution = llm" labeled separately, never conflated.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43yp5jp1koqdb7f8eutz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43yp5jp1koqdb7f8eutz.png" alt="Live-run screenshot: the decision traceability chain" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live screenshot ④ — the decision chain lists every step as "asked → chose → got," corresponding to P3 traceability.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One distinction matters especially: "genuinely generated" is not the same as "reliable." A drafted piece of page copy is inspectable on its own merits; but if the model analyzes business data that was never provided, even genuinely emitted concrete numbers don't make the analysis complete. For missing data, model non-participation, or interrupted execution, the cockpit needs the corresponding states — not an unconditional drive into a glowing finish line.&lt;/p&gt;

&lt;h2&gt;
  
  
  08 | This isn't replacing chat — it's adding a spatial layer for complex collaboration
&lt;/h2&gt;

&lt;p&gt;Not every "make the button blue" needs a three-dimensional highway. For simple direct answers, single-file tweaks, and quick Q&amp;amp;A, a chat box is probably lighter. Where 3D driving has a real chance to help is tasks with &lt;strong&gt;multiple meaningful routes, sequential decisions, and results worth comparing repeatedly&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of a product going from "idea" to "usable prototype": decide whether to validate the need or write the frontend first; choose low-fidelity or straight-to-interactive; after a build failure, decide to fix or roll back; compare the final experience across versions. The cognitive burden here isn't "I can't understand one reply" — it's "I can't see which decisions happened across the whole process." Putting choices, states, and history into space is what could add value over linear chat.&lt;/p&gt;

&lt;p&gt;But "could" still needs measurement. The research has prepared protocols contrasting transparent vs. opaque execution, across task types such as drafting, analysis with attached data, and analysis with missing data; think-aloud sessions and controlled experiments with real participants remain to be run at the stage described in the project docs. So we cannot claim users have proven 3D beats chat, and "cooler" must not be mistaken for "more efficient." The right validation isn't just asking whether people like it — it's whether they find artifacts faster, attribute sources more accurately, and choose next steps more soundly.&lt;/p&gt;

&lt;h2&gt;
  
  
  09 | Finally, imagine a real "drive"
&lt;/h2&gt;

&lt;p&gt;You open the project — not to a long, blurry chat log, but standing at the intersection where you left off. Behind you are the attempts completed and abandoned; ahead are a few routes with clear costs and goals. You pick one and the agent starts executing; the car's movement is driven by real events, not preset seconds. When a step fails, the road doesn't pretend to be clear. When a result is usable, the destination doesn't merely glow — it opens the real artifact.&lt;/p&gt;

&lt;p&gt;This is the vision most worth discussing: &lt;strong&gt;turning interaction with agents — especially multi-round vibe coding — from "reading a string of answers" into "driving a workspace with directions, evidence, and memory."&lt;/strong&gt; Self-audit isn't the theme of this project; it's the floor that keeps it from becoming a pretty toy.&lt;/p&gt;

&lt;p&gt;The car can be cool. But every lit-up stretch of road should lead to something that actually happened — and that the user can verify.&lt;/p&gt;




&lt;h3&gt;
  
  
  Open-source repository
&lt;/h3&gt;

&lt;p&gt;Every screenshot, GIF, and audit conclusion in this article comes from one public repository. You're welcome to check the code and docs directly:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub: &lt;a href="https://github.com/showkeyjar/agent-3d-cockpit-research" rel="noopener noreferrer"&gt;https://github.com/showkeyjar/agent-3d-cockpit-research&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The repo contains the research documents (&lt;code&gt;docs/&lt;/code&gt;), the runnable prototype (&lt;code&gt;prototype/&lt;/code&gt;), and this article's visual assets (&lt;code&gt;blog/assets/&lt;/code&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  Authorship &amp;amp; evidence notes
&lt;/h3&gt;

&lt;p&gt;This article is based on the project's &lt;code&gt;README.md&lt;/code&gt;, &lt;code&gt;docs/SUBDISCIPLINES.md&lt;/code&gt;, &lt;code&gt;docs/EVIDENCE.md&lt;/code&gt;, &lt;code&gt;docs/AUDIT.md&lt;/code&gt;, &lt;code&gt;docs/RUNTIME-AUDIT.md&lt;/code&gt;, &lt;code&gt;docs/RESEARCH-PLAN.md&lt;/code&gt;, and &lt;code&gt;prototype/DESIGN.md&lt;/code&gt;. The vibe-coding vignettes (weather app, login page) are hypothetical scenarios illustrating the interaction concept; they do not imply the current prototype has a complete code-editing and testing loop. The explanations of the bidirectional broken link and users' sense of progress still require validation through human experiments.&lt;/p&gt;

&lt;p&gt;The three static illustrations are AI-generated concept art; the &lt;code&gt;01/02/03-*.gif&lt;/code&gt; series are explanatory animations, not screen recordings. The &lt;code&gt;real-*&lt;/code&gt; series shows the browser's actual rendering as UI demos (candidates injected by a local script, labeled "local fallback" in the UI). The &lt;code&gt;hw-*&lt;/code&gt; series is a &lt;strong&gt;live run against a real backend&lt;/strong&gt;: execution runs on a small local Ollama model (gemma3:1b-it-qat), with the execution chain being genuine streaming model output (the UI credentials show source=llm, tokens, and elapsed time); forecasting goes through the fast local channel and is honestly labeled "local preview." The live-run output is genuinely generated text, but a small model's output quality is limited — it demonstrates interaction and authenticity, not product-grade answer quality. No test-hook simulations were passed off as live runs. Please keep the relative directory structure of this Markdown file and the &lt;code&gt;assets/&lt;/code&gt; folder.&lt;/p&gt;

</description>
      <category>ux</category>
      <category>ai</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
    <item>
      <title>ERA5 is already gzipped. I still made it 47% smaller — losslessly.</title>
      <dc:creator>zfbots Smith</dc:creator>
      <pubDate>Sat, 17 Oct 2026 05:37:53 +0000</pubDate>
      <link>https://dev.to/zergskj/era5-is-already-gzipped-i-still-made-it-47-smaller-losslessly-1ajh</link>
      <guid>https://dev.to/zergskj/era5-is-already-gzipped-i-still-made-it-47-smaller-losslessly-1ajh</guid>
      <description>&lt;h1&gt;
  
  
  ERA5 is already gzipped. I still made it 47% smaller — losslessly.
&lt;/h1&gt;

&lt;h2&gt;
  
  
  First, the two baselines
&lt;/h2&gt;

&lt;p&gt;The easiest mistake to make when you write a compressor is to quote a flattering baseline while talking about a different one. So both go on the table first:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;vs the &lt;code&gt;.nc&lt;/code&gt; on disk&lt;/strong&gt; (ERA5 ships gzip-compressed)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1.86–1.88×&lt;/strong&gt;, &lt;strong&gt;46–47% smaller&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;vs uncompressed float32 bytes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;median &lt;strong&gt;10.27×&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyiopf9df790efdv4sk7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyiopf9df790efdv4sk7e.png" alt="Two baselines" width="800" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Same files, two rulers. The orange bar is what you actually get back on disk.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Both numbers are true, but they describe different things. &lt;strong&gt;The &lt;code&gt;.nc&lt;/code&gt; files are already gzip-compressed&lt;/strong&gt; — so the disk you actually reclaim is 47%, not 90%.&lt;/p&gt;

&lt;p&gt;And 10.27× matters because it is the same ruler everyone else uses. fpzip, zfp's reversible mode, and zstd + byte shuffle typically land at &lt;strong&gt;1.5–3×&lt;/strong&gt; on uncompressed scientific fields.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Same ruler, an order of magnitude apart.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why you can compress already-compressed data
&lt;/h2&gt;

&lt;p&gt;Because ERA5's floats are not arbitrary floats.&lt;/p&gt;

&lt;p&gt;Every ERA5 variable is quantized to a fixed precision when it is generated — 10 m wind to 0.0625 (= 2⁻⁴), total precipitation to 2⁻¹⁴. Which means &lt;strong&gt;every value in a file is an integer multiple of the same 2^E&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;gzip cannot see this. It looks at 32-bit patterns, and the long run of zeros in the low mantissa bits is indistinguishable from random bytes to it: LZ77 finds no repeated pattern, and Huffman cannot give zeros a shorter code, because as far as gzip is concerned the high bytes are the content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To us, that run of zeros is where all the information is.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Finding E
&lt;/h3&gt;

&lt;p&gt;Detection is purely algebraic, with no approximation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float32 non-zero value = sig × 2^(exp−150)     # sig is the 24-bit significand
v is a multiple of 2^E  ⟺  tz(sig) + exp − 150 ≥ E
largest E valid for every value = min(tz(sig) + exp − 150)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(&lt;code&gt;tz&lt;/code&gt; is the count of trailing zero bits. One trap: &lt;code&gt;exp&lt;/code&gt; must have the sign bit masked off first, or negative values get their exponent over-counted by 256 — we hit this bug, and it silently turns lossless compression into lossy compression.)&lt;/p&gt;

&lt;p&gt;Given E, the float is rewritten losslessly as an integer &lt;code&gt;k = v / 2^E&lt;/code&gt;. Because it is only a power-of-two scaling, &lt;strong&gt;this step has no rounding error&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where the saving comes from
&lt;/h3&gt;

&lt;p&gt;A concrete example. Take a grid point whose value is 273.1875 in a file with E = −4:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;raw float32:   273.1875
→ k = 273.1875 / 0.0625 = 4371
right neighbour k = 4373
longitude diff → 2
zigzag         → 4          = 0x00000004
byte planes    → top 3 bytes all zero, only the lowest byte is 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Across a whole run of values like that, &lt;strong&gt;the high byte planes are almost entirely zero&lt;/strong&gt; and get eaten whole by the compressor; only the low planes actually cost bits.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9sx3uf2cmrradm3m34g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9sx3uf2cmrradm3m34g.png" alt="Bit pattern" width="800" height="283"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The real bit pattern of 248.375: 13 trailing zeros in the mantissa are the gap quantization left behind. gzip looks straight past them.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The byte planes, on real data
&lt;/h3&gt;

&lt;p&gt;This is a slice of a &lt;strong&gt;real ERA5 2 m temperature field&lt;/strong&gt; (&lt;code&gt;201001_2t.nc&lt;/code&gt;, 24×32, detected E = −4). Left is the raw float32 byte planes, right is after lattice representation + differencing + zigzag:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fej5cw5bs83f6ei0k8s7q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fej5cw5bs83f6ei0k8s7q.png" alt="Byte planes" width="799" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Byte plane&lt;/th&gt;
&lt;th&gt;raw float32, zero share&lt;/th&gt;
&lt;th&gt;after encoding&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;lowest byte&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;td&gt;88.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;byte 1&lt;/td&gt;
&lt;td&gt;5.2%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;byte 2&lt;/td&gt;
&lt;td&gt;0.0%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;highest byte&lt;/td&gt;
&lt;td&gt;0.0%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Note that on the left the &lt;strong&gt;lowest byte is already 100% zero&lt;/strong&gt; — that is the quantization footprint — but &lt;strong&gt;the high bytes are pure entropy&lt;/strong&gt;, so gzip has nothing to work with. After encoding it flips: the top three planes go to zero, and only 89 of the 768 differenced residuals are still non-zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float array
  → lattice representation (or order-preserving fallback)
  → 3-D separable Lorenzo differencing (time + lat + lon)
  → zigzag
  → byte-plane shuffle
  → zstd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lattice representation&lt;/strong&gt;: turns 32-bit floats into integers with a far smaller dynamic range. This is where most of the win is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Differencing&lt;/strong&gt;: assumes the field is continuous in time and space. First-order differences along time, then latitude, then longitude. The time lag is configurable — 24 to align with the diurnal cycle on hourly data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;zigzag&lt;/strong&gt;: differences are signed, and negatives are all-ones in two's complement. zigzag interleaves ± into non-negative values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Byte-plane shuffle&lt;/strong&gt;: split each int32 into its 4 bytes and group like bytes together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;zstd&lt;/strong&gt;: finish up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwamwkcn56f6q9lve0zig.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwamwkcn56f6q9lve0zig.png" alt="Pipeline" width="800" height="191"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How losslessness is guaranteed
&lt;/h2&gt;

&lt;p&gt;With &lt;code&gt;quant_bits=0&lt;/code&gt;, &lt;code&gt;decode(encode(x))&lt;/code&gt; is &lt;strong&gt;byte-for-byte equal&lt;/strong&gt; to &lt;code&gt;x&lt;/code&gt;, including &lt;code&gt;-0.0&lt;/code&gt;, &lt;code&gt;NaN&lt;/code&gt;, and &lt;code&gt;Inf&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The guarantee is not "detect the odd values and special-case them". It is that &lt;strong&gt;both encoding paths are bijections on bit patterns&lt;/strong&gt;: the lattice path relies on "power-of-two scaling is exact + per-block round-trip check", and the order-preserving path is a pure bit-pattern permutation. &lt;code&gt;NaN&lt;/code&gt;/&lt;code&gt;Inf&lt;/code&gt; are rejected by lattice detection outright and take the order-preserving path, so their bit patterns survive untouched.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;-0.0&lt;/code&gt; is a separate trap: in the integer representation, &lt;code&gt;-0.0&lt;/code&gt; and &lt;code&gt;+0.0&lt;/code&gt; are both 0. So a sparse bitmap is stored alongside, and the sign bit is put back at decode time.&lt;/p&gt;

&lt;p&gt;The design principle throughout: &lt;strong&gt;prefer the slow path over a wrong answer.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;The tool's own output (&lt;code&gt;gridpack info&lt;/code&gt;, real run):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy3b0evh5ceebfbmfhlas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy3b0evh5ceebfbmfhlas.png" alt="Real CLI output" width="800" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ERA5 coverage scan&lt;/td&gt;
&lt;td&gt;834 / 834 files, zero exceptions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lattice hit rate&lt;/td&gt;
&lt;td&gt;100% across all 834 files, no fallbacks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Disk saving (834-file benchmark)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;1.88×&lt;/strong&gt; measured, 46.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Production migration (measured)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;151 files: 83.44 GB &lt;code&gt;.nc&lt;/code&gt; → 44.70 GB &lt;code&gt;.gpz&lt;/code&gt;, 1.87×, 46.4% saved&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;vs raw float32&lt;/td&gt;
&lt;td&gt;median 10.27×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;roundtrip / xarray tests&lt;/td&gt;
&lt;td&gt;46 + 10 items, ALL PASS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The production migration is the number I trust most, because it is the tool running unattended on real files, and it reproduces the benchmark independently:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sample&lt;/th&gt;
&lt;th&gt;Files&lt;/th&gt;
&lt;th&gt;&lt;code&gt;.nc&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;.gpz&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Ratio&lt;/th&gt;
&lt;th&gt;Saved&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;migration, first run&lt;/td&gt;
&lt;td&gt;49&lt;/td&gt;
&lt;td&gt;26.23 GB&lt;/td&gt;
&lt;td&gt;14.04 GB&lt;/td&gt;
&lt;td&gt;1.87×&lt;/td&gt;
&lt;td&gt;46.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;migration, after restart&lt;/td&gt;
&lt;td&gt;94&lt;/td&gt;
&lt;td&gt;50.37 GB&lt;/td&gt;
&lt;td&gt;26.94 GB&lt;/td&gt;
&lt;td&gt;1.87×&lt;/td&gt;
&lt;td&gt;46.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;all completed so far&lt;/td&gt;
&lt;td&gt;151&lt;/td&gt;
&lt;td&gt;83.44 GB&lt;/td&gt;
&lt;td&gt;44.70 GB&lt;/td&gt;
&lt;td&gt;1.87×&lt;/td&gt;
&lt;td&gt;46.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three separate samples, all 1.87×. The benchmark said 1.88×; production says 1.87×.&lt;/p&gt;

&lt;p&gt;Whole-file, end to end, including the decode round-trip:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;source &lt;code&gt;.nc&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;&lt;code&gt;.gpz&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;vs &lt;code&gt;.nc&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;vs raw bytes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200003_10u.nc&lt;/td&gt;
&lt;td&gt;589.1 MB&lt;/td&gt;
&lt;td&gt;298.5 MB&lt;/td&gt;
&lt;td&gt;1.97×&lt;/td&gt;
&lt;td&gt;10.35×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200003_2t.nc&lt;/td&gt;
&lt;td&gt;483.1 MB&lt;/td&gt;
&lt;td&gt;282.9 MB&lt;/td&gt;
&lt;td&gt;1.71×&lt;/td&gt;
&lt;td&gt;10.92×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200003_tp.nc&lt;/td&gt;
&lt;td&gt;189.0 MB&lt;/td&gt;
&lt;td&gt;108.8 MB&lt;/td&gt;
&lt;td&gt;1.74×&lt;/td&gt;
&lt;td&gt;28.40×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200001_10u.nc&lt;/td&gt;
&lt;td&gt;1443.5 MB&lt;/td&gt;
&lt;td&gt;747.0 MB&lt;/td&gt;
&lt;td&gt;1.93×&lt;/td&gt;
&lt;td&gt;3.94×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;radar.nc&lt;/td&gt;
&lt;td&gt;181.1 MB&lt;/td&gt;
&lt;td&gt;6.3 MB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;28.83×&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;28.60×&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Performance: v0.4.0 → v0.5.3
&lt;/h2&gt;

&lt;p&gt;In the previous version of this write-up we listed three suspected optimizations and admitted we had not done them. We have now done them. The headline first:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.56× faster end to end, with byte-identical output.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Of three suspects, only one was real
&lt;/h3&gt;

&lt;p&gt;Instrumentation had pointed at the &lt;code&gt;auto&lt;/code&gt; mode, &lt;code&gt;detect_lattice&lt;/code&gt;, and the zstd settings. In practice &lt;strong&gt;&lt;code&gt;detect_lattice&lt;/code&gt; was the only confirmed bottleneck.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It computes the trailing-zero count &lt;code&gt;tz(sig)&lt;/code&gt; once per non-zero value, and the original implementation was a per-value loop with an &lt;code&gt;np.where&lt;/code&gt; branch. Replacing it with a 16-bit lookup table:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;v0.4.0&lt;/th&gt;
&lt;th&gt;v0.5.3&lt;/th&gt;
&lt;th&gt;Speedup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;_block_exp&lt;/code&gt; (598 MB of values)&lt;/td&gt;
&lt;td&gt;13.96 s&lt;/td&gt;
&lt;td&gt;4.96 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.81×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;detect_lattice&lt;/code&gt; (whole file)&lt;/td&gt;
&lt;td&gt;19.6 s&lt;/td&gt;
&lt;td&gt;8.2 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.4×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;compress_file&lt;/code&gt; (end to end)&lt;/td&gt;
&lt;td&gt;148.6 s&lt;/td&gt;
&lt;td&gt;95.3 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.56×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8msc3py9lyhduzouzj5h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8msc3py9lyhduzouzj5h.png" alt="Performance" width="799" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;detect_lattice&lt;/code&gt;'s share of end-to-end wall clock dropped from 13% to 8.6%.&lt;/p&gt;

&lt;h3&gt;
  
  
  We changed the speed, not the format
&lt;/h3&gt;

&lt;p&gt;In a lossless compressor, the risk when optimizing is that you quietly change the output too. So every step was gated on three checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Output bytes identical&lt;/strong&gt;: 296.1 MB, ratio 1.631×, &lt;code&gt;verify_file&lt;/code&gt; exact=True&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trailing-zero function exhaustively verified&lt;/strong&gt;: every value in 1..2²⁰ plus 2×10⁵ random 32-bit values, matching the original implementation exactly&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real data unchanged&lt;/strong&gt;: detected E still −4; all 4 modes round-trip bitexact; all 56 tests pass&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;CODEC_VERSION&lt;/code&gt; stays at 4 — &lt;strong&gt;files written by v0.4.0 read in v0.5.4, and vice versa.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The release process changed too
&lt;/h3&gt;

&lt;p&gt;Since 0.5.3 it goes through GitHub Actions: push a tag → version gate → build + &lt;code&gt;twine check&lt;/code&gt; + test suite → OIDC tokenless publish to PyPI. 0.5.4 came out of that pipeline.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"gridpack[xarray]&amp;gt;=0.5.4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While we were there, 0.5.4 fixed a real bug: &lt;code&gt;gridpack info&lt;/code&gt; and &lt;code&gt;gridpack verify&lt;/code&gt; &lt;strong&gt;crashed on every single invocation&lt;/strong&gt; in 0.5.3. &lt;code&gt;main()&lt;/code&gt; read &lt;code&gt;args.chunk_t&lt;/code&gt; unconditionally, but those two subcommands' parsers never defined it — an immediate &lt;code&gt;AttributeError&lt;/code&gt;. The fix routes the read through &lt;code&gt;getattr(..., None)&lt;/code&gt;. A command documented in your README that cannot run is worse than a slow one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations, stated plainly
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. It is not a general-purpose compressor.&lt;/strong&gt;&lt;br&gt;
The lattice win depends entirely on the data actually being on a quantization lattice. On-lattice: large win. Off-lattice: it falls back to the order-preserving path, which degrades to "differencing + byte-plane shuffle + zstd" — roughly what any general method does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Full-precision months drop to around 2×.&lt;/strong&gt;&lt;br&gt;
4 of the 834 files (200001/200002 &lt;code&gt;10u&lt;/code&gt;/&lt;code&gt;10v&lt;/code&gt;) have a lattice exponent of −16 rather than −4 — &lt;strong&gt;those months were not quantized; they are full-precision data&lt;/strong&gt;. They reach only 3.84–3.86× vs raw bytes, about 1.9× vs the &lt;code&gt;.nc&lt;/code&gt; on disk. Not a bug, a property of the data, but it drags the average down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. It is slow.&lt;/strong&gt;&lt;br&gt;
Even 1.56× faster, it is still an &lt;strong&gt;hours-scale&lt;/strong&gt; job. Measured single-process throughput on one ERA5 field file is roughly 110–190 s; the completed 26.23 GB took 2 h 16 min, which works out to about &lt;strong&gt;3.2 MB/s&lt;/strong&gt;. Extrapolating linearly, the remaining 319 GB needs about &lt;strong&gt;28 hours&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Going faster means multiple processes, and whether that works depends on the memory allowance your environment gives you, not on the compressor. We hit &lt;code&gt;MemoryError: Unable to allocate 63.4 MiB&lt;/code&gt; in one restricted environment: the machine had 35 GB free, but the shared allowance for the whole subprocess batch was exhausted. Single-process in the same environment ran fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. A lossy mode exists, and is off by default.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;quant_bits&amp;gt;0&lt;/code&gt; discards low bits of the order-preserving integer. Default is 0: strictly lossless.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. It has mainly been validated on ERA5.&lt;/strong&gt;&lt;br&gt;
Plus one radar file. Whether other reanalysis products, model output, or GRIB2 land on a lattice, we have not tested.&lt;/p&gt;
&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"gridpack[xarray]&amp;gt;=0.5.4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gridpack compress input.nc &lt;span class="nt"&gt;-o&lt;/span&gt; output.gpz
gridpack decompress output.gpz &lt;span class="nt"&gt;-o&lt;/span&gt; restored.nc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;xarray plugin (registers &lt;code&gt;engine="gpz"&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;xarray&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;xr&lt;/span&gt;

&lt;span class="n"&gt;ds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;xr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open_dataset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;output.gpz&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gpz&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gpz&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_file&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;another.gpz&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Source: &lt;a href="https://github.com/showkeyjar/gridpack" rel="noopener noreferrer"&gt;https://github.com/showkeyjar/gridpack&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One caveat for non-Chinese users: &lt;strong&gt;the CLI output and the README are currently Chinese-only.&lt;/strong&gt; That is a real barrier and it is on the list to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would like you to attack
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;v0.4.0 is frozen&lt;/strong&gt; pending criticism; performance work goes in &lt;strong&gt;0.5.x&lt;/strong&gt; (now at 0.5.4, format-compatible with 0.4.0 in both directions). The four questions I most want answered:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. What other data sits on a lattice?&lt;/strong&gt;&lt;br&gt;
We have only validated ERA5. GRIB2, other reanalysis products, model output, radar base data — if you have a sample, we would like to know the result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. What should happen to full-precision months?&lt;/strong&gt;&lt;br&gt;
The E=−16 files get none of the quantization dividend. Should they be detected and routed elsewhere, or just not compressed at all?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. How much is left in the entropy coder?&lt;/strong&gt;&lt;br&gt;
Right now the byte planes go through zstd. zstd is a general-purpose compressor and has no idea it is compressing floating-point residuals. How much would a context-mixing model add? We have not measured it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. How else can performance be recovered?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;detect_lattice&lt;/code&gt; is handled (1.56×). Two suspects remain: &lt;code&gt;auto&lt;/code&gt; mode tries three representations at 2.4× the cost of a single mode, and in practice it usually picks &lt;code&gt;dt&lt;/code&gt; for zero benefit; and verification reads the whole file back. If you have a better idea, say so.&lt;/p&gt;

&lt;p&gt;Data samples, benchmark results, or direct criticism of the design — issues are welcome.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If this approach is useful to you, or if you have data that disproves it, we would like to hear about it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>compression</category>
      <category>python</category>
      <category>performance</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
