<?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: jamilxt</title>
    <description>The latest articles on DEV Community by jamilxt (@jamilxt).</description>
    <link>https://dev.to/jamilxt</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%2F167939%2F60b3c2ea-09de-43fc-9ad4-2487fc12faf2.png</url>
      <title>DEV Community: jamilxt</title>
      <link>https://dev.to/jamilxt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jamilxt"/>
    <language>en</language>
    <item>
      <title>AirLLM Explained: How a 4GB GPU Runs a 2.8T Model, and What Each Token Costs</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Tue, 24 Nov 2026 05:41:56 +0000</pubDate>
      <link>https://dev.to/jamilxt/airllm-explained-how-a-4gb-gpu-runs-a-28t-model-and-what-each-token-costs-44ad</link>
      <guid>https://dev.to/jamilxt/airllm-explained-how-a-4gb-gpu-runs-a-28t-model-and-what-each-token-costs-44ad</guid>
      <description>&lt;p&gt;Ask anyone how to run a large language model at home and you get the same first rule: the model has to fit in your GPU memory (VRAM). A 70B model in 16-bit precision is about 140GB. A gaming card has 8 to 16GB. So you shrink the model, or you pick a smaller one.&lt;/p&gt;

&lt;p&gt;AirLLM breaks that rule. Its README says a 70B model runs on a single 4GB card, with no quantization, distillation or pruning. It goes further: Kimi K3, a 2.8 trillion parameter model, in 3.72GB of VRAM. The project just shipped v4.0.1 on November 23, 2026, and it has more than 43,000 stars on GitHub.&lt;/p&gt;

&lt;p&gt;The claims are true. But the README talks about memory, not speed. The speed story is in the project's own release notes and issue tracker, and it changes who should use this tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, how a model makes one token
&lt;/h2&gt;

&lt;p&gt;Two ideas make AirLLM easy to understand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A model is a stack of layers.&lt;/strong&gt; Llama 3 70B has 80 of them. Text goes into layer 1, its output goes into layer 2, and so on to the end. Layer 40 only needs the output of layer 39. It does not care where layer 39 lives.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every new token runs through the whole stack.&lt;/strong&gt; A model writes one token at a time. To write the next word, it pushes data through all 80 layers again.&lt;/p&gt;

&lt;p&gt;Normal tools keep all layers in VRAM because reading VRAM is very fast. AirLLM asks: what if we load only the layer we need right now?&lt;/p&gt;

&lt;h2&gt;
  
  
  How AirLLM works
&lt;/h2&gt;

&lt;p&gt;Think of a cook in a tiny kitchen with a huge recipe book. The counter only fits one page. So the cook brings one page from the shelf, follows it, puts it back, and brings the next one.&lt;/p&gt;

&lt;p&gt;That is AirLLM. The steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Split.&lt;/strong&gt; On first run, it downloads the model from Hugging Face and saves each layer as a separate file on disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stream.&lt;/strong&gt; During generation, it loads layer 1 into the GPU, runs it, frees it, then loads layer 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefetch.&lt;/strong&gt; A background thread reads the next layer from disk while the current one runs. The code in &lt;code&gt;airllm_base.py&lt;/code&gt; does this by default.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the VRAM you need depends on the size of &lt;strong&gt;one layer&lt;/strong&gt;, not the whole model. For a 70B model, that is a few gigabytes.&lt;/p&gt;

&lt;p&gt;For Mixture of Experts (MoE) models, it goes one step further. An MoE layer has many small "expert" networks, and each token uses only a few. The v3.1.0 release notes explain the Kimi K3 number: each layer has 896 experts, and a token routes to 16. All experts in one layer are about 55GB. The 16 a token needs are about 1GB. AirLLM loads only those.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost: the whole model moves for every token
&lt;/h2&gt;

&lt;p&gt;Here is the catch. The cook does not keep the pages. For the next dish, the cook walks to the shelf again for every page.&lt;/p&gt;

&lt;p&gt;AirLLM frees each layer after using it. So for every token, it reads the whole model from disk again. One open issue (#364) puts it plainly: &lt;code&gt;use_cache=True&lt;/code&gt; saves attention state, not weights.&lt;/p&gt;

&lt;p&gt;You can do the math yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;seconds per token (best case) = model size on disk / disk read speed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a 70B model at 16 bits (about 140GB) on a fast Gen4 NVMe SSD (about 7GB/s), that is about 20 seconds per token. That is before any compute. On a SATA SSD (about 0.5GB/s), it is over four minutes. These are rough estimates, not measurements.&lt;/p&gt;

&lt;p&gt;Now the measured numbers from the project itself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Kimi K3 (2.8T), v3.1.0 release notes:&lt;/strong&gt; 3.72GB peak VRAM on an RTX 6000 Ada. One-time setup took 900 seconds. Generation was &lt;strong&gt;292 seconds per token&lt;/strong&gt;, which the notes call "disk-bound". A 100-token answer would take about 8 hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Qwen2.5-3B, issue #364:&lt;/strong&gt; On Windows with an RTX 5060 Ti and an NVMe SSD, 4 tokens took 114.5 seconds, or &lt;strong&gt;28.6 seconds per token&lt;/strong&gt;. GPU use was about 6%. The reporter first thought it had frozen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-OSS 20B, issue #374:&lt;/strong&gt; About &lt;strong&gt;30 minutes&lt;/strong&gt; for one answer of around 120 tokens on an RTX 3090.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The maintainer deserves credit for publishing the 292 seconds per token number. It is just not in the headline.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "3x faster" compression claim is disputed
&lt;/h2&gt;

&lt;p&gt;The README still says 4-bit or 8-bit block-wise compression gives "up to 3x" faster inference. The idea makes sense: smaller files mean less disk reading.&lt;/p&gt;

&lt;p&gt;Issue #330, still open, reports the opposite. The test used Qwen2.5-32B on a GB10 machine, 10 tokens, same prompt:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No compression: 13.3 seconds per token&lt;/li&gt;
&lt;li&gt;8-bit: 50.5 seconds per token (3.8x slower)&lt;/li&gt;
&lt;li&gt;4-bit: 106.7 seconds per token (8x slower)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three gave correct output. The reporter's explanation: the whole split model fit in the machine's RAM cache, so disk reading was not the slow part. The slow part was turning every compressed layer back into 16-bit weights, for every token.&lt;/p&gt;

&lt;p&gt;A second commenter pointed to another cause in the code. When compression is on, AirLLM turns prefetching off. You can see it in &lt;code&gt;airllm_base.py&lt;/code&gt;: it prints "prefetching is not supported together with compression for now" and disables it. So loading and compute can no longer overlap.&lt;/p&gt;

&lt;p&gt;This is one user's test on one machine, so treat it as a strong data point, not the final word. Compression may still help on a slow disk with little RAM. But do not assume it is faster. Measure it on your own machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in v4.0.1
&lt;/h2&gt;

&lt;p&gt;The new release is a patch, not a feature drop. The notes list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A fix for the free disk space check with 4-bit compression. It used to ask for about 3.5 times the checkpoint size by mistake.&lt;/li&gt;
&lt;li&gt;Compression now applies only to weight matrices. Small tensors like norm weights and biases stay full precision.&lt;/li&gt;
&lt;li&gt;A new option, &lt;code&gt;clean_memory_per_layer=False&lt;/code&gt;, to skip the memory cleanup that runs after every layer. The default stays &lt;code&gt;True&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bigger recent change was v4.0.0 in September: training. AirLLM can now fine-tune with LoRA (small trainable add-on weights) while the frozen base model streams from disk. The README says Qwen3.8-Flash-Next (125B) trains under 6GB on an RTX 3060 Ti. Speed numbers for training are not published.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to try it
&lt;/h2&gt;

&lt;p&gt;Install from PyPI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install airllm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the README's quick start, shortened:&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="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;airllm&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;AutoModel&lt;/span&gt;

&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AutoModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_pretrained&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Qwen/Qwen3-32B"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;tokens&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tokenizer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'What is the capital of United States?'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;return_tensors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"pt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;return_attention_mask&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;truncation&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_length&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;padding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tokens&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'input_ids'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;device&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;max_new_tokens&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;use_cache&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;return_dict_in_generate&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tokenizer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sequences&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things to check before you run it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Disk space.&lt;/strong&gt; The first run splits the model into layer files, so you need room for both copies. &lt;code&gt;delete_original=True&lt;/code&gt; removes the original download after the split. The README's first FAQ item, &lt;code&gt;MetadataIncompleteBuffer&lt;/code&gt;, usually means the disk is full.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A fast SSD.&lt;/strong&gt; Your disk speed sets your token speed. A hard drive is not practical.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS limits.&lt;/strong&gt; Apple Silicon is supported through MLX, but only Llama-style models (&lt;code&gt;LlamaForCausalLM&lt;/code&gt;, &lt;code&gt;MistralForCausalLM&lt;/code&gt;) for now.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When AirLLM makes sense
&lt;/h2&gt;

&lt;p&gt;AirLLM does not make a huge model fast on a small GPU. It makes it &lt;strong&gt;possible&lt;/strong&gt;. That is useful when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want to check how a big model answers a few prompts before you pay for cloud GPUs.&lt;/li&gt;
&lt;li&gt;You run offline batch jobs where waiting hours is fine.&lt;/li&gt;
&lt;li&gt;You study or teach how large models behave, and a slow answer is better than no answer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is the wrong tool for chat, coding help, or anything a person waits on. For that, a quantized model in llama.cpp or Ollama on the same hardware, or a hosted API, will answer in seconds instead of minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;AirLLM is a clean idea done well: keep only one layer on the GPU and stream the rest. Its VRAM numbers hold up, and its release notes are honest about speed. The price is that every token reads the whole model from disk, so your SSD matters more than your GPU. And the README's compression speedup now has a public, unanswered test against it.&lt;/p&gt;

&lt;p&gt;If your task can wait, it opens models you could never load. If it cannot wait, pick a smaller model.&lt;/p&gt;

&lt;p&gt;Would you trade hours of waiting for a full-precision answer from a model too big for your GPU?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sources:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm" rel="noopener noreferrer"&gt;AirLLM repository and README&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/releases/tag/v4.0.1" rel="noopener noreferrer"&gt;AirLLM v4.0.1 release notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/releases/tag/v4.0.0" rel="noopener noreferrer"&gt;AirLLM v4.0.0 release notes (training)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/releases/tag/v3.1.0" rel="noopener noreferrer"&gt;AirLLM v3.1.0 release notes (Kimi K3, 292 s/token)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/issues/330" rel="noopener noreferrer"&gt;Issue #330: 3x speedup compression claim is false/outdated&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/issues/364" rel="noopener noreferrer"&gt;Issue #364: 28.6 s/token on a 3B model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/issues/374" rel="noopener noreferrer"&gt;Issue #374: 30 minutes per query with GPT-OSS 20B&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lyogavin/airllm/blob/main/air_llm/airllm/airllm_base.py" rel="noopener noreferrer"&gt;airllm_base.py (prefetching and compression code)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/airllm/" rel="noopener noreferrer"&gt;airllm on PyPI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Ladybird Alpha: How to Test Your Website in a Brand New Browser Engine</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Tue, 24 Nov 2026 03:08:48 +0000</pubDate>
      <link>https://dev.to/jamilxt/ladybird-alpha-how-to-test-your-website-in-a-brand-new-browser-engine-1hjm</link>
      <guid>https://dev.to/jamilxt/ladybird-alpha-how-to-test-your-website-in-a-brand-new-browser-engine-1hjm</guid>
      <description>&lt;p&gt;On November 23, 2026, the Ladybird team published &lt;a href="https://ladybird.org/posts/alpha/" rel="noopener noreferrer"&gt;Ladybird is now in alpha&lt;/a&gt;. The first public build, version 2026.47.7, is out for macOS and Linux. The post describes it as "a browser with a new engine. The engine is our own, built from the ground up, and not a fork."&lt;/p&gt;

&lt;p&gt;That last part matters for web developers. Almost every browser you test today runs on Blink (Chrome, Edge, Brave, Opera), WebKit (Safari) or Gecko (Firefox). The &lt;a href="https://github.com/LadybirdBrowser/ladybird/releases/tag/2026.47.7" rel="noopener noreferrer"&gt;GitHub release notes&lt;/a&gt; say Ladybird "isn't a fork or a wrapper around Chromium, WebKit or Gecko. HTML, CSS, the DOM, layout, JavaScript and WebAssembly are all implemented from scratch." So when your site breaks in Ladybird, it is breaking in an engine your site has probably never been tested against.&lt;/p&gt;

&lt;p&gt;The alpha post also asks directly: "If you build websites, try yours in Ladybird and tell us what breaks. It supports WebDriver for automated testing, as well as the Firefox DevTools protocol."&lt;/p&gt;

&lt;p&gt;This guide covers four steps: install it safely, inspect your pages, automate a check, and send a useful report. It is built from the project's release notes, docs and source code, not from hands-on testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shipped, in plain numbers
&lt;/h2&gt;

&lt;p&gt;From the &lt;a href="https://ladybird.org/download/" rel="noopener noreferrer"&gt;download page&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Version:&lt;/strong&gt; Alpha 2026.47.7, dated November 23, 2026.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; needs macOS 14.4 or later on Apple silicon. It ships as a disk image.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; x86-64 and ARM64. Flatpak (a Linux app format that works across distributions) is the recommended install. There are also APT packages for Ubuntu 24.04 and 26.04+, an RPM repo for Fedora 44 and 45, and a standalone archive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; not in this alpha.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Updates:&lt;/strong&gt; the alpha is "a rolling channel, and we'll be pushing out automatic updates regularly." Rolling means new builds keep arriving, instead of a few big versions a year. The standalone archive is the exception; the page says it "doesn't update automatically."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://news.ycombinator.com/item?id=50614249" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt; on the launch passed 1,500 points and 340 comments in its first 11 hours. One commenter &lt;a href="https://news.ycombinator.com/item?id=50614564" rel="noopener noreferrer"&gt;posted the user agent string&lt;/a&gt; the macOS build sends, which matters in Step 5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Install it like untrusted software
&lt;/h2&gt;

&lt;p&gt;The alpha post is direct about security: "A new browser gets hacked, over and over, and that's part of the process, so we make no promises about security today."&lt;/p&gt;

&lt;p&gt;The project's &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/SECURITY.md" rel="noopener noreferrer"&gt;SECURITY.md&lt;/a&gt; adds a known limitation. Ladybird's process isolation "is still being hardened: The browser process and the other helper processes don't yet treat every request from the WebContent process as untrusted." WebContent is the sandboxed process that runs web pages.&lt;/p&gt;

&lt;p&gt;For a testing machine, that leads to three simple rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Do not log in to real accounts.&lt;/strong&gt; Use test accounts on staging, not your production admin login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep it away from secrets.&lt;/strong&gt; Do not browse to internal dashboards that hold API keys or customer data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefer a separate machine, VM or user account&lt;/strong&gt; if you plan to use it for more than a quick look.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Verify the download first
&lt;/h3&gt;

&lt;p&gt;The download page gives a verification step for every package. For the macOS disk image, it lists three checks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Hash matches the published value&lt;/span&gt;
shasum -a 256 &lt;span class="s1"&gt;'ladybird-2026.47.7-macOS-arm64.dmg'&lt;/span&gt;

&lt;span class="c"&gt;# 2. Apple notarization and the Ladybird signer&lt;/span&gt;
&lt;span class="c"&gt;#    (should print "explicit requirement satisfied")&lt;/span&gt;
codesign --verify -v -R=&lt;span class="s1"&gt;'notarized and anchor apple generic and certificate leaf[subject.OU] = "KQT83NTQL8"'&lt;/span&gt; &lt;span class="s1"&gt;'ladybird-2026.47.7-macOS-arm64.dmg'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The third check verifies a Sigstore build attestation (a signed record of how the file was built) with &lt;code&gt;cosign&lt;/code&gt;. The exact command is on the download page. For Linux, the page publishes the expected GPG key fingerprint for each repository, so you can compare the key before running &lt;code&gt;apt update&lt;/code&gt; or &lt;code&gt;dnf install&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On Linux, the Flatpak install is one line, copied from the download page:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flatpak install --user &lt;span class="s1"&gt;'https://flatpak.ladybird.org/ladybird.flatpakref'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Do a manual pass and report what breaks
&lt;/h2&gt;

&lt;p&gt;Open your site and click through the flows that matter: sign up, log in with a test account, search, checkout, any form with validation. HN testers report mixed early results. One &lt;a href="https://news.ycombinator.com/item?id=50615429" rel="noopener noreferrer"&gt;found every site they tried rendered correctly&lt;/a&gt; apart from slightly jerky scrolling. Another, building a &lt;a href="https://news.ycombinator.com/item?id=50619177" rel="noopener noreferrer"&gt;canvas-heavy web game&lt;/a&gt;, said it "seems to work pretty bad but thats understandable for alpha version."&lt;/p&gt;

&lt;p&gt;When something breaks, report it from inside the browser. The &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/Documentation/WebCompatReports.md" rel="noopener noreferrer"&gt;web compatibility report docs&lt;/a&gt; describe the flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose &lt;strong&gt;Report Website Issue...&lt;/strong&gt; from the Help menu or the page's context menu.&lt;/li&gt;
&lt;li&gt;Drag a box around the broken area, take the whole visible page, or pick &lt;strong&gt;No Screenshot&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Describe what is wrong. This field is required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every report includes the page URL, user agent, viewport size, device pixel ratio, zoom level, and the Ladybird version, platform and git commit. You can also tick &lt;strong&gt;Include layout and painting information&lt;/strong&gt;, which attaches the layout tree and display list. The docs warn that these dumps "contain text from the page and can contain personal information," so leave the box unticked on pages with real user data. &lt;strong&gt;View full report&lt;/strong&gt; shows exactly what will be sent.&lt;/p&gt;

&lt;p&gt;If you can, cut the bug down to a small HTML file before reporting it. Ladybird &lt;a href="https://ladybird.org/posts/changing-how-we-develop-ladybird/" rel="noopener noreferrer"&gt;no longer accepts public pull requests&lt;/a&gt;, so outside code fixes are off the table. The same post lists what still helps: "clear bug reports, reductions, website testing, standards discussion, design discussion, security reports, and technical feedback."&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Inspect the page with Firefox DevTools
&lt;/h2&gt;

&lt;p&gt;Ladybird's developer tools work through the Firefox DevTools protocol: Ladybird runs a server, and a Firefox DevTools client (in Firefox or a Firefox-based browser) connects to it. The &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/Documentation/DevTools.md" rel="noopener noreferrer"&gt;DevTools docs&lt;/a&gt; describe two ways to turn it on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;From the &lt;strong&gt;Inspect&lt;/strong&gt; menu, choose &lt;strong&gt;Enable DevTools&lt;/strong&gt;. A banner shows the port it is listening on.&lt;/li&gt;
&lt;li&gt;Or start Ladybird with the &lt;code&gt;--devtools&lt;/code&gt; flag. &lt;code&gt;--devtools=6001&lt;/code&gt; picks a specific port.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then either click &lt;strong&gt;Open Client&lt;/strong&gt; on the banner, or connect from Firefox by hand:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;about:debugging&lt;/code&gt; in Firefox and go to &lt;strong&gt;Setup&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Network Location&lt;/strong&gt;, add &lt;code&gt;localhost:6001&lt;/code&gt; (or whichever port the banner shows).&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Connect&lt;/strong&gt;, open the address, and press &lt;strong&gt;Inspect&lt;/strong&gt; next to the Ladybird tab.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An &lt;a href="https://news.ycombinator.com/item?id=50615944" rel="noopener noreferrer"&gt;HN tester described&lt;/a&gt; the default flow: pressing F12 makes Ladybird listen on port 6000, and then you connect from a Gecko browser through &lt;code&gt;about:debugging&lt;/code&gt;. They said the DOM inspector and network tab worked, and the debugger showed sources.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to expect from the tooling
&lt;/h3&gt;

&lt;p&gt;The DevTools document records what Ladybird has implemented, as "only observed behavior." In its examples, the &lt;strong&gt;applied styles&lt;/strong&gt; pane returns an empty list, because LibWeb (the engine's web library) does not support it yet. Flexbox and grid inspection are stubbed. The &lt;strong&gt;Computed&lt;/strong&gt; pane, the box model highlighter and console evaluation of plain values all work.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://ladybird.org/newsletter/2026-10-31/" rel="noopener noreferrer"&gt;October newsletter&lt;/a&gt; lists newer DevTools work on top of that: Inspect Element, console autocomplete and expandable objects in the console. So the document may lag behind the build you install. In practice, expect DOM and computed-style debugging to be the solid part, and use another browser for detailed CSS editing until the applied-styles pane fills in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Automate a check with WebDriver
&lt;/h2&gt;

&lt;p&gt;This part is for teams with a CI pipeline. Ladybird includes a WebDriver service, and the project's &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/Documentation/WebDriver.md" rel="noopener noreferrer"&gt;WebDriver guide&lt;/a&gt; says it "can launch a browser, navigate pages, evaluate JavaScript, and capture screenshots."&lt;/p&gt;

&lt;p&gt;The guide's example builds WebDriver from source (&lt;code&gt;ninja WebDriver&lt;/code&gt; in &lt;code&gt;Build/release&lt;/code&gt;) and runs &lt;code&gt;bin/WebDriver&lt;/code&gt;, or &lt;code&gt;bin/Ladybird.app/Contents/MacOS/WebDriver&lt;/code&gt; on macOS. The docs do not say whether every packaged build includes the WebDriver binary, so check your install, and build from source if it is missing.&lt;/p&gt;

&lt;p&gt;Start the service on loopback (127.0.0.1, reachable only from your own machine) in headless mode (no visible window). These flags come from the guide and from the service's &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/Services/WebDriver/main.cpp" rel="noopener noreferrer"&gt;argument parser&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/WebDriver --headless --listen-address 127.0.0.1 --port 4444
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WebDriver is a W3C standard HTTP protocol, so plain &lt;code&gt;curl&lt;/code&gt; can drive it. The calls below follow the Python example in Ladybird's guide: create a session, set timeouts, open a URL, run a script, take a screenshot, end the session.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create a headless session and note the sessionId in the reply&lt;/span&gt;
curl -s -X POST http://127.0.0.1:4444/session \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"capabilities":{"alwaysMatch":{"ladybird:headless":true}}}'&lt;/span&gt;

&lt;span class="nv"&gt;SID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;paste-session-id-here

curl -s -X POST http://127.0.0.1:4444/session/&lt;span class="nv"&gt;$SID&lt;/span&gt;/timeouts \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; -d &lt;span class="s1"&gt;'{"pageLoad":30000,"script":30000}'&lt;/span&gt;

curl -s -X POST http://127.0.0.1:4444/session/&lt;span class="nv"&gt;$SID&lt;/span&gt;/url \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; -d &lt;span class="s1"&gt;'{"url":"https://staging.example.com/"}'&lt;/span&gt;

&lt;span class="c"&gt;# Ask the page a question&lt;/span&gt;
curl -s -X POST http://127.0.0.1:4444/session/&lt;span class="nv"&gt;$SID&lt;/span&gt;/execute/sync \
  -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"script":"return {title: document.title, forms: document.forms.length};","args":[]}'&lt;/span&gt;

&lt;span class="c"&gt;# The screenshot comes back as base64 in the "value" field&lt;/span&gt;
curl -s http://127.0.0.1:4444/session/&lt;span class="nv"&gt;$SID&lt;/span&gt;/screenshot -o shot.json

curl -s -X DELETE http://127.0.0.1:4444/session/&lt;span class="nv"&gt;$SID&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WebDriver clients such as Selenium's remote driver speak the same protocol, but the guide only shows raw HTTP, so get the &lt;code&gt;curl&lt;/code&gt; flow working first. The October newsletter also lists &lt;a href="https://github.com/LadybirdBrowser/ladybird/pull/13167" rel="noopener noreferrer"&gt;WebDriver BiDi&lt;/a&gt;, the newer two-way version of the protocol.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three options worth knowing
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Swap one file without touching the server.&lt;/strong&gt; &lt;code&gt;--resource-map&lt;/code&gt; takes a JSON file that maps URLs to local files. The guide's example replaces a production script with an instrumented copy (a copy with extra logging or checks added):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"substitutions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com/assets/app.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"file"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/absolute/path/to/instrumented-app.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"content_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text/javascript"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;URL matching ignores the query string and fragment, so this entry also replaces &lt;code&gt;app.js?v=123&lt;/code&gt;. Paths must be absolute, and you need to restart the WebDriver session after changing the map. It lets you add logging to a minified bundle and find where Ladybird behaves differently from other browsers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wait for the app, not the clock.&lt;/strong&gt; The guide says to "avoid fixed sleeps to decide when a page is ready." Use &lt;code&gt;/execute/async&lt;/code&gt; with a promise or an application event, and call the callback passed as the last script argument when the page is ready.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule out the GPU.&lt;/strong&gt; If a rendering bug looks like a painting issue, rerun with &lt;code&gt;--force-cpu-painting&lt;/code&gt;. If your test needs a logged-in state, &lt;code&gt;--profile-path /absolute/path/to/profile&lt;/code&gt; keeps a persistent profile. Otherwise, WebDriver uses its own temporary profile and removes it when it shuts down cleanly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Check your user agent (UA) sniffing
&lt;/h2&gt;

&lt;p&gt;Here is the user agent from that HN comment, sent by the macOS build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ladybird/2026.47.7 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It contains &lt;code&gt;Chrome/153.0.0.0&lt;/code&gt; on purpose. The &lt;a href="https://github.com/LadybirdBrowser/ladybird/blob/master/Libraries/LibWebCommon/Loader/UserAgent.h" rel="noopener noreferrer"&gt;UserAgent.h source&lt;/a&gt; names this token &lt;code&gt;SAD_COMPATIBILITY_HACK&lt;/code&gt;, with the comment: "Some web servers treat us very badly unless we pretend to be one of the major browsers." The platform part is frozen too. The source says reporting the real OS and CPU "gets us served degraded or broken content (e.g. the Instagram login page)." That is why an Apple silicon Mac reports "Intel Mac OS X 10_15_7".&lt;/p&gt;

&lt;p&gt;This has two effects on your site:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your analytics will likely count Ladybird visitors as Chrome&lt;/strong&gt;, unless your parser looks for the &lt;code&gt;Ladybird/&lt;/code&gt; token. If you want to know how many Ladybird visitors you get, match that token before you match &lt;code&gt;Chrome/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chrome-only code paths can run in a non-Chrome engine.&lt;/strong&gt; If your server sends Chrome-specific markup or scripts based on the user agent, Ladybird gets them. This is a good argument for feature detection (&lt;code&gt;if ('IntersectionObserver' in window)&lt;/code&gt;, &lt;code&gt;@supports&lt;/code&gt; in CSS) over user agent checks. Feature detection asks the engine what it can do, instead of guessing from a name.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What "no security promises" means if you find a bug
&lt;/h2&gt;

&lt;p&gt;If your testing turns up something that looks like a security bug, SECURITY.md sets the rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Report privately&lt;/strong&gt; through GitHub's private vulnerability reporting, not as a public issue or on Discord. The policy explains why: "Ladybird now has public releases, so a vulnerability disclosed before it's fixed can put people using Ladybird at risk."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In scope:&lt;/strong&gt; memory-safety bugs that web content can trigger, sandbox escapes, bypasses of the same-origin policy, site isolation, Content Security Policy or iframe sandboxing, and address bar spoofing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a security issue:&lt;/strong&gt; a controlled crash of the sandboxed WebContent process that corrupts no memory, such as a failed assertion or a null-pointer dereference. That goes in a normal GitHub issue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timeline:&lt;/strong&gt; a default 30-day disclosure window. Accepted reports get an advisory and a CVE identifier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No bug bounty&lt;/strong&gt; "at this time."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The October newsletter also reports progress on isolation: cross-site iframes now get their own renderer process by default, and each top-level site gets its own network process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this engine is worth an hour of your time
&lt;/h2&gt;

&lt;p&gt;The number that got attention is from Web Platform Tests (WPT), the shared cross-browser test suite. Per the &lt;a href="https://ladybird.org/newsletter/2026-10-31/" rel="noopener noreferrer"&gt;October newsletter&lt;/a&gt;, Ladybird passed Safari Technology Preview on October 26. At the end of October, the subtest counts it published were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome: 2,244,397&lt;/li&gt;
&lt;li&gt;Firefox: 2,189,315&lt;/li&gt;
&lt;li&gt;Ladybird: 2,184,722&lt;/li&gt;
&lt;li&gt;Safari Technology Preview: 2,172,990&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The team is open about how part of that happened: "We pointed AI coding agents at WPT and asked them to fill in missing functionality. They made lots of small fixes, and those added up." Passing tests is also not the same as running real sites well. WPT measures spec behavior, and real sites lean on quirks, timing and performance that tests do not cover. That gap is exactly what your own site testing can expose.&lt;/p&gt;

&lt;p&gt;The same newsletter lists the engine work from October alone: style and layout moved off the main thread, a JavaScript JIT (a compiler that turns hot code into machine code at runtime), and a new WebAssembly engine. At that pace, bugs you report now land while the code is still being shaped.&lt;/p&gt;

&lt;p&gt;There is also a simpler reason. Ladybird's &lt;a href="https://ladybird.org/#about" rel="noopener noreferrer"&gt;about section&lt;/a&gt; says "only a small number of browser engines power the entire thing, each controlled by a company with its own agenda." Ladybird is developed by a non-profit. Whether or not you ever use it daily, a site that works in four engines is a site written against the standards, not against one browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install on a test machine or account, and verify the download: hash, signature or key fingerprint.&lt;/li&gt;
&lt;li&gt;Use test accounts only. No production logins, no internal dashboards.&lt;/li&gt;
&lt;li&gt;Click through your main flows and report breakage with &lt;strong&gt;Report Website Issue...&lt;/strong&gt;, leaving layout dumps off on pages with personal data.&lt;/li&gt;
&lt;li&gt;Inspect with Firefox through &lt;code&gt;about:debugging&lt;/code&gt;, and expect DOM and computed styles to work better than applied-style editing.&lt;/li&gt;
&lt;li&gt;Start WebDriver headless on &lt;code&gt;127.0.0.1&lt;/code&gt; and run one scripted check against staging.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;--resource-map&lt;/code&gt; to load an instrumented copy of a script without redeploying.&lt;/li&gt;
&lt;li&gt;Search your codebase for user agent checks, and match &lt;code&gt;Ladybird/&lt;/code&gt; before &lt;code&gt;Chrome/&lt;/code&gt; in analytics.&lt;/li&gt;
&lt;li&gt;Send security bugs privately under SECURITY.md, not as public issues.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ladybird updates itself on a rolling channel, so a bug you find this week may be gone next week. Which part of your site do you expect to break first in an engine it has never met?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>testing</category>
      <category>opensource</category>
      <category>browser</category>
    </item>
    <item>
      <title>Looped Weight-Space Programming Explained: Claude Wrote a 19,936-Weight Transformer That Solves Every Maze</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:29:50 +0000</pubDate>
      <link>https://dev.to/jamilxt/looped-weight-space-programming-explained-claude-wrote-a-19936-weight-transformer-that-solves-519m</link>
      <guid>https://dev.to/jamilxt/looped-weight-space-programming-explained-claude-wrote-a-19936-weight-transformer-that-solves-519m</guid>
      <description>&lt;p&gt;Normally a neural network gets its weights from training. You show it data, and gradient descent slowly adjusts millions of numbers until the model works.&lt;/p&gt;

&lt;p&gt;A new project from MBZUAI skips that step. Researchers asked Claude Opus 5.5 to write every weight of a small transformer by hand, with no training at all. The transformer has one block of 19,936 weights that runs in a loop. On Maze-Hard, a benchmark of 30x30 mazes, it solves 100% of the test mazes. Claude itself, asked to solve the same mazes directly, solves 26%.&lt;/p&gt;

&lt;p&gt;The work is called &lt;a href="https://mbzuai-oryx.github.io/LoopedWSP/" rel="noopener noreferrer"&gt;Looped Weight-Space Programming&lt;/a&gt;, by Abdelrahman Elsayed, Ahmed Heakl, Abdelrahman Shaker, Fahad Khan and Salman Khan, with Claude Opus 5.5 listed as a co-author. It was published as a blog post on November 23, 2026, with weights and code on &lt;a href="https://github.com/mbzuai-oryx/LoopedWSP" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; under the MIT license.&lt;/p&gt;

&lt;p&gt;I have not run the code or the demos. Everything below comes from the project's post, and all numbers are the authors' results. It is a blog post, not a peer-reviewed paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The idea:&lt;/strong&gt; an LLM that cannot solve a long problem step by step can still write one step of the algorithm into transformer weights. A loop then repeats that step as many times as the problem needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maze-Hard:&lt;/strong&gt; the 19,936-weight written transformer solves 100% of test mazes. The best trained model the authors cite, LDT, solves 99.8% with 1.8 million weights. Frontier LLMs solve at most 26%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; writing the maze transformer took Claude 39 minutes and about $19 at API list prices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training could not find it:&lt;/strong&gt; the same architecture, trained from random weights on the same mazes, solved 0% in every run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It goes beyond mazes:&lt;/strong&gt; written transformers also solved Sudoku-Extreme, a 20-disk Tower of Hanoi (1,048,575 moves), million-token GraphWalks prompts and several BIG-Bench tasks, each at 100% on the test sets used.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The catch:&lt;/strong&gt; this only works when you already know the algorithm. It is not a way to build a general language model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What "weight-space programming" means
&lt;/h2&gt;

&lt;p&gt;A trained transformer is, in the end, just a program stored as matrices. If you know exactly what program you want, you could in theory write those matrices yourself.&lt;/p&gt;

&lt;p&gt;People have done this before, at small scale. The post credits hand-built examples, compilers like &lt;a href="https://arxiv.org/abs/2301.05062" rel="noopener noreferrer"&gt;Tracr&lt;/a&gt; that turn short programs into transformer weights, and recent work from MIT CSAIL showing that a frontier LLM can edit a model's weights directly.&lt;/p&gt;

&lt;p&gt;The problem with earlier LLM-written transformers was size. Each step of a computation needed its own block. A maze with a 110-step path would need a huge transformer, and Claude would have to write every weight in it.&lt;/p&gt;

&lt;p&gt;The fix is the loop. Instead of writing 110 blocks, Claude writes &lt;strong&gt;one&lt;/strong&gt; block that does &lt;strong&gt;one&lt;/strong&gt; step, and the transformer runs that block again and again. The authors call this &lt;em&gt;looped weight-space programming&lt;/em&gt;. A bigger problem needs more passes, not more weights.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the maze transformer works
&lt;/h2&gt;

&lt;p&gt;Claude designed the transformer in a Claude Code session. Here is the design, in plain terms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One token per cell.&lt;/strong&gt; A 30x30 maze becomes 900 tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;35 numbers per cell.&lt;/strong&gt; Claude decided what each number means before setting any weight. Some say what the cell is (wall, start, goal) and where it is. Others track the search: distance to the goal, which neighbor is the next step, and whether the cell is on the path. The last 20 are scratch space.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Four attention heads, one per direction.&lt;/strong&gt; Each head lets a cell read one neighbor: down, left, right or up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each pass through the block does one step of a standard shortest-path search:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A wave spreads from the goal.&lt;/strong&gt; The goal starts at distance 0. On each loop, every open cell next to a visited cell takes that neighbor's distance plus one. The visited area grows by one step per loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each cell points toward the goal.&lt;/strong&gt; Once visited, a cell marks which neighbor is one step closer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The path grows from the start.&lt;/strong&gt; When the wave reaches the start cell, the path follows the pointers back to the goal, one cell per loop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On the first test maze, the wave reaches the start at loop 111, and the path is complete at loop 222. The transformer runs 1,800 loops on a 30x30 maze to cover any possible path.&lt;/p&gt;

&lt;h3&gt;
  
  
  The clever trick: distance modulo 3
&lt;/h3&gt;

&lt;p&gt;Almost every number in a cell is either 0 or 1. So how does a cell store a distance like 87?&lt;/p&gt;

&lt;p&gt;It does not. It stores only the &lt;strong&gt;remainder of the distance divided by 3&lt;/strong&gt;, using three 0-or-1 values. That turns out to be enough. Two neighboring cells always differ in distance by exactly one, so the remainder alone tells you which neighbor is closer to the goal.&lt;/p&gt;

&lt;p&gt;The post explains why 3 and not 2: with remainders of 2, "one step closer" and "one step farther" would look the same. With 3, they differ.&lt;/p&gt;

&lt;p&gt;This is why the transformer's size does not depend on the maze's size.&lt;/p&gt;

&lt;h3&gt;
  
  
  It does not get worse with extra loops
&lt;/h3&gt;

&lt;p&gt;Looped models trained with gradient descent can "overthink": run them for more loops than they were trained on, and their answers get worse. The post cites a 2022 model, DeepThinking, that peaked at 86% on 13x13 mazes and then collapsed below 1% by loop 82.&lt;/p&gt;

&lt;p&gt;The written maze transformer cannot do that. Once the path is complete, every cell already holds its final values, so another loop changes nothing. It stays at 100% at 1,800, 3,600 and 7,200 loops.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it compares on Maze-Hard
&lt;/h2&gt;

&lt;p&gt;Here are the Maze-Hard test scores the authors report, where any shortest path counts as correct:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Written transformer (19,936 weights):&lt;/strong&gt; 100%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LDT (1.8M weights):&lt;/strong&gt; 99.8%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EBR (1.8M weights):&lt;/strong&gt; 94.1%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRM (7M weights):&lt;/strong&gt; 91.9%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HRM (27M weights):&lt;/strong&gt; 82.2%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Opus 5.5:&lt;/strong&gt; 26%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-6 Astra:&lt;/strong&gt; 26%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-6.1 Sol:&lt;/strong&gt; 12%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few notes on these numbers. The LDT, TRM and HRM scores come from another paper (Davis et al., NeurIPS 2026), and EBR's from Chen et al. (2026). The LLMs answered only the first 50 of the 1,000 test mazes. LDT is within 0.2 points, so the headline result is less "written beats trained by a mile" and more "written matches the best trained model with 90 times fewer weights and no training."&lt;/p&gt;

&lt;p&gt;The 19,936 weights are not even a minimum. When five fresh Claude Code sessions were given a weight cap, all five still scored 100%. The smallest used &lt;strong&gt;928 weights&lt;/strong&gt;, about 1,900 times fewer than LDT.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Claude can write it but cannot solve the maze
&lt;/h2&gt;

&lt;p&gt;This is the most interesting part of the project.&lt;/p&gt;

&lt;p&gt;The authors tried hard to help Claude solve mazes directly. They told it the exact algorithm to use. They gave each cell its own token. They let it answer with just the path. The best prompt raised Claude from 26% to 50%. None went higher.&lt;/p&gt;

&lt;p&gt;The reason seems to be execution errors. Every step along a path of 110+ cells has to be right. Even when told how to search, Claude's first wrong step came, on median, 35% of the way along the path.&lt;/p&gt;

&lt;p&gt;Writing the transformer is a different kind of task. Claude does not have to run the search. It only has to design one step and set weights to match. Each design choice can be checked on its own.&lt;/p&gt;

&lt;p&gt;The post compares this to programmers who write code for arithmetic they could not do in their heads. LLMs already benefit from this on math word problems: writing a short program to do the arithmetic gets more answers right than doing it in text.&lt;/p&gt;

&lt;p&gt;The cost numbers make the same point:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Writing the maze transformer:&lt;/strong&gt; 196,771 output tokens, about $19, ready in 39 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Solving mazes in text:&lt;/strong&gt; $0.14 to $0.34 per maze, with at most a 50% success rate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The written transformer pays for itself after about 55 to 134 mazes, and needs no API calls after that. The post notes that these are list-price equivalents: the builds actually ran on a Claude subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can training find these weights?
&lt;/h2&gt;

&lt;p&gt;If 20,000 weights can solve every maze, why do trained models need millions? Maybe the architecture is the secret. So the authors took Claude's architecture, reset its weights to random, and trained it on the same 1,000 mazes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every run solved 0%.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Without normalization, training broke down within 30 steps.&lt;/li&gt;
&lt;li&gt;With normalization added, training ran smoothly, but every model learned only to copy the maze back. That already gets 87.4% of cells right, because only about one cell in eight is on the path.&lt;/li&gt;
&lt;li&gt;Bigger versions (up to 2.8 million weights), a curriculum from small to large mazes, a rebalanced loss, and extra supervision of the internal distances and pointers all still gave 0% on test mazes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A plain 6.4 million weight transformer with no loop did better, reaching 46%.&lt;/p&gt;

&lt;p&gt;The authors' guess is that gradient descent "finds no partial credit along the way." Marking a path cell only happens after a chain of a hundred or more correct steps, so there is no gradual signal to follow.&lt;/p&gt;

&lt;p&gt;They are also careful about what this proves. Each of their training runs used about 5 PFLOPs, which is 230 to 2,000 times less compute than the trained models they compare against. So the result shows that gradient descent did not find these weights &lt;strong&gt;under the settings tested&lt;/strong&gt;, not that the weights cannot be learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generalizing to bigger problems
&lt;/h2&gt;

&lt;p&gt;On three simpler tasks, Claude could only check its transformer on small inputs while writing it. The authors then tested on much larger ones and compared with trained models:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Graph search:&lt;/strong&gt; checked on maps of about 12 points, tested on maps of about 48 points with routes of 8 to 16 steps. Written transformer: 100%. Trained models up to 99 times bigger: 0%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parity (odd or even number of 1s):&lt;/strong&gt; checked on strings of up to 20 bits, correct up to 4,095 bits. Trained models fell to chance (45.5 to 53.8%) beyond 20 bits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning chains&lt;/strong&gt; (like &lt;code&gt;x0 = 7. x1 = x0 + 3.&lt;/code&gt;): checked up to 8 steps, correct up to 63. The best trained model reached 93.7% within its training lengths but only 3.5% beyond them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The maze transformer was checked on mazes of up to 45x45. It then solved every one of 50 mazes at 60x60 and 40 at 100x100, with the same weights.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond mazes
&lt;/h2&gt;

&lt;p&gt;The same recipe produced transformers for more tasks, each solving every test problem the authors ran:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sudoku-Extreme:&lt;/strong&gt; 100% of 141,040 test puzzles. The best trained model the authors cite, Sotaku v2, reaches 98.96% on the first 10,000. This transformer has to guess and backtrack, saving a copy of the grid before each guess. The cost is compute: it runs 40,000 loops on every puzzle and does about 50 times more arithmetic per puzzle than TRM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tower of Hanoi:&lt;/strong&gt; every size from 1 to 20 disks, including 1,048,575 moves for 20 disks with no mistakes. It uses only 3,686 weights. The reasoning models tested in "The Illusion of Thinking" paper collapsed past 5 to 7 disks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GraphWalks:&lt;/strong&gt; OpenAI's benchmark with prompts of 256k to 1M tokens. The written transformer scores 100% F1 on 200 problems. Claude Opus 5.5 scores 66.8%, and the best LLM the authors found, Gemini 4 Carbon, 96.2%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BIG-Bench reasoning:&lt;/strong&gt; four tasks written in plain English, including Web of Lies and Shuffled Objects from BIG-Bench Extra Hard, all at 100%. The best LLM results the authors found were 81.2% and 56.9%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More algorithms:&lt;/strong&gt; strongly connected components, Prim's minimum spanning tree, longest common subsequence, 3-SAT and three planning domains.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude wrote all of these in 18 sessions. Each session cost between $1.19 and $37.06 at list prices, with a median of about $4.&lt;/p&gt;

&lt;h2&gt;
  
  
  Interpretability for free
&lt;/h2&gt;

&lt;p&gt;Interpretability research usually works backwards: you take a trained model and try to work out what its numbers mean. Here it is the other way around. Claude chose what every number means first, then set the weights.&lt;/p&gt;

&lt;p&gt;That makes some things easy to test. Each attention head carries the wave in one direction, so removing a head should stop the wave from crossing that way. It does: without any single head, the wave reaches only about 8% of the cells it should, and 0% of mazes get solved.&lt;/p&gt;

&lt;p&gt;The authors also tried the reverse. They gave three fresh Claude Code sessions only the weights and a bare description of the architecture, without saying it was about mazes. Each one worked out the whole design in about two minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limits
&lt;/h2&gt;

&lt;p&gt;The authors are clear about where this stops working:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You need to know the algorithm.&lt;/strong&gt; Every task here has a known procedure: shortest path, constraint propagation, Hanoi's recursive rule. The post says this "suits tasks with a known algorithm better than open-ended ones such as language."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each transformer has size limits.&lt;/strong&gt; The maze transformer reads grids up to 128x128. The Sudoku one has room for 24 saved grids. The Hanoi one needs 64-bit arithmetic and handles at most 20 disks. The GraphWalks and BIG-Bench transformers only read the exact prompt format they were built for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some solutions are expensive to run.&lt;/strong&gt; The Sudoku transformer always runs 40,000 loops, even though half the puzzles are solved in 273.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is a blog post.&lt;/strong&gt; The results have not been through peer review, and several comparison scores come from other papers rather than the authors' own runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://arxiv.org/abs/2311.12424" rel="noopener noreferrer"&gt;2024 ICLR paper on looped transformers&lt;/a&gt; showed a single looped layer could learn simple algorithms through training. This project flips that around. It shows that a single small looped block &lt;strong&gt;can&lt;/strong&gt; hold an exact algorithm, and that an LLM can write it, even when training fails to find it.&lt;/p&gt;

&lt;p&gt;The authors' broader claim is worth repeating: "for algorithmic tasks with a known procedure, what holds small models back is not their size but finding the right weights."&lt;/p&gt;

&lt;p&gt;Their next steps are practical: one transformer that holds many of these modules with a router, and using written weights as a starting point for training. If training starts from a solution that already scores 100%, does it keep the ability to handle bigger inputs, or wash it out?&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;An LLM that solves 26% of hard mazes wrote a 19,936-weight looped transformer that solves 100% of them, in 39 minutes, for about $19. Training the same architecture from scratch got 0%.&lt;/p&gt;

&lt;p&gt;The lesson is less about mazes and more about division of labor. LLMs are bad at running long chains of steps without a mistake. They are much better at writing one correct step and letting a loop do the repetition.&lt;/p&gt;

&lt;p&gt;If an LLM can write exact algorithms into weights, should future models learn to call small written modules the way they call tools today?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>deeplearning</category>
    </item>
    <item>
      <title>Day Explained: A Rust Framework That Builds Native Apps for Every Platform</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 17:55:36 +0000</pubDate>
      <link>https://dev.to/jamilxt/day-explained-a-rust-framework-that-builds-native-apps-for-every-platform-3iog</link>
      <guid>https://dev.to/jamilxt/day-explained-a-rust-framework-that-builds-native-apps-for-every-platform-3iog</guid>
      <description>&lt;p&gt;Most cross-platform app frameworks make you choose between two things. You can share your UI code across platforms, or you can use each platform's real, native controls. Getting both usually means writing the interface more than once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://daybrite.dev/" rel="noopener noreferrer"&gt;Day&lt;/a&gt; is an open-source framework that tries to give you both. You write your app once in Rust. On macOS it uses AppKit. On iOS it uses UIKit. On Android it uses Material Components. On Linux it uses GTK or Qt, and on Windows it uses WinUI 3. The buttons, text fields and menus your users see are the platform's own.&lt;/p&gt;

&lt;p&gt;I have not built an app with Day. This breakdown comes from the project's website, documentation and GitHub repository. Anything about how well it works in practice is the project's own claim, not something tested here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it is:&lt;/strong&gt; a framework for building desktop and mobile apps from one Rust codebase, using each platform's native UI toolkit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Platforms:&lt;/strong&gt; macOS, iOS and Android are the most supported. Linux and Windows are supported with less testing. Web and HarmonyOS are experimental.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beyond UI:&lt;/strong&gt; it includes localization, accessibility, a UI testing tool, packaging and app store preparation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; MPL-2.0, open source on &lt;a href="https://github.com/daybrite/day" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maturity:&lt;/strong&gt; young. The repository was created in July 2026 and the CLI is at version 0.7.10. There is no hot reload, and the project tells you to test your hardest requirement first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it differs from other approaches
&lt;/h2&gt;

&lt;p&gt;There are roughly three ways to build one app for many platforms:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Draw everything yourself.&lt;/strong&gt; The framework renders its own controls, so the app looks the same everywhere. You get full design control, but the controls are not the platform's own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a web view.&lt;/strong&gt; You build the UI with web technology and show it inside a native window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Map to native controls.&lt;/strong&gt; Your code describes the UI, and the framework creates the real platform widgets.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Day takes the third approach. Its own documentation is honest about what that means: "your interface will vary with the platform, and you will still need to test those differences." If you need pixel-identical screens and heavy custom animation everywhere, Day suggests that a framework with its own renderer "may give you more control."&lt;/p&gt;

&lt;p&gt;The other point that sets Day apart is that the UI is shared, not just the business logic. In the project's words, "No bridging between disparate programming languages is required." Your layouts and event handlers are Rust, from the data model up to the buttons.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the code looks like
&lt;/h2&gt;

&lt;p&gt;Day calls a control, or a group of controls, a &lt;strong&gt;piece&lt;/strong&gt;. You build screens with ordinary Rust functions that return pieces. State lives in &lt;strong&gt;signals&lt;/strong&gt;, which update the UI when their value changes.&lt;/p&gt;

&lt;p&gt;Here is the counter example from the &lt;a href="https://daybrite.dev/docs/explanation/overview" rel="noopener noreferrer"&gt;docs overview&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;prelude&lt;/span&gt;&lt;span class="o"&gt;::*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;root&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;impl&lt;/span&gt; &lt;span class="nc"&gt;Piece&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Signal&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0i64&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;column&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nf"&gt;label&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;counter_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;id!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;counter_label&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nf"&gt;button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;add_one&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;move&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;id!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;increment_button&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Space&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;M&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Space&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;L&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few things to notice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is declarative.&lt;/strong&gt; You describe what the screen contains, and Day creates the widgets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Updates are targeted.&lt;/strong&gt; When &lt;code&gt;count&lt;/code&gt; changes, Day updates the label. The docs say the whole &lt;code&gt;root()&lt;/code&gt; function "does not run again."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text is not hard-coded.&lt;/strong&gt; &lt;code&gt;res::str::counter_value&lt;/code&gt; and &lt;code&gt;res::str::add_one&lt;/code&gt; come from translation files, which we will get to next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Controls have stable IDs.&lt;/strong&gt; The &lt;code&gt;.id(...)&lt;/code&gt; calls are there so automated tests can find each control.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The pieces beyond UI
&lt;/h2&gt;

&lt;p&gt;A framework that only draws controls still leaves you with a lot of work before release. Day tries to cover more of the path to shipping.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Localization.&lt;/strong&gt; Translations use &lt;a href="https://projectfluent.org/" rel="noopener noreferrer"&gt;Mozilla Fluent&lt;/a&gt; files. Day generates typed Rust functions from them, so if a message expects an argument and your code does not pass it, the build fails. Translation mistakes become compile errors instead of bugs users find.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessibility.&lt;/strong&gt; Because Day uses native controls, it starts from each platform's built-in screen reader and keyboard support. It adds a shared Rust API for labels, hints and changing values. The docs are clear that this is "a starting point, not a certification." On Android, accessibility support is listed as partial.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DayScript.&lt;/strong&gt; This is Day's tool for testing and automation. You write a walkthrough that finds controls by their IDs and interacts with them. The same walkthrough can run on several platforms and in several languages, and take screenshots along the way. That makes it useful both for regression tests and for generating app store screenshots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Packaging.&lt;/strong&gt; The &lt;code&gt;day&lt;/code&gt; CLI creates projects, checks that you have the right SDKs installed (&lt;code&gt;day doctor&lt;/code&gt;), builds, launches, and packages your app with &lt;code&gt;day pack&lt;/code&gt;. Depending on the platform, it produces &lt;code&gt;.dmg&lt;/code&gt;, &lt;code&gt;.ipa&lt;/code&gt;, &lt;code&gt;.apk&lt;/code&gt;, &lt;code&gt;.aab&lt;/code&gt;, &lt;code&gt;.msix&lt;/code&gt;, Flatpak or AppImage files. It also prepares store listing metadata, but the actual store submission still uses each store's own tools and your credentials.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optional add-ons.&lt;/strong&gt; Extras are ordinary Cargo dependencies. The site lists web views, Lottie animations, text-to-speech, charts, camera, audio and video, OAuth and passkey sign-in, Bluetooth LE, local network discovery, push notifications, background tasks and crash reporting. Each has its own platform support notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Platform support, honestly
&lt;/h2&gt;

&lt;p&gt;Day ranks each platform in a &lt;a href="https://daybrite.dev/docs/reference/platforms" rel="noopener noreferrer"&gt;support tier&lt;/a&gt;. A tier describes how much testing and maintenance a target gets, not how complete its API is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tier 1, Supported:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS&lt;/strong&gt; (AppKit), packaged as &lt;code&gt;.dmg&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS&lt;/strong&gt; (UIKit), packaged as &lt;code&gt;.ipa&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android&lt;/strong&gt; (Material Components), packaged as &lt;code&gt;.apk&lt;/code&gt; and &lt;code&gt;.aab&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 2, supported with less testing:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linux&lt;/strong&gt; (GTK 4 or Qt 6), packaged as Flatpak and AppImage&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows&lt;/strong&gt; (WinUI 3), packaged as &lt;code&gt;.msix&lt;/code&gt; and an installer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 3, Experimental:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HarmonyOS&lt;/strong&gt; (ArkUI), packaged as &lt;code&gt;.hap&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web&lt;/strong&gt;, compiled to WebAssembly, rendering real HTML elements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The platform page also includes small details that matter if you are planning a real project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Apple builds need Xcode 27 or newer.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On iOS&lt;/strong&gt;, daily development happens on the Simulator. The docs say physical-device debugging gets less use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On Android&lt;/strong&gt;, CI does not fail when the Android UI walkthrough fails. If the app process is killed, it restarts from scratch unless your app saves its own state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On Windows&lt;/strong&gt;, the docs say fewer apps have shipped than on the Apple, Linux and Android targets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is still missing
&lt;/h2&gt;

&lt;p&gt;The docs keep a single list of gaps that apply across platforms. Some of the bigger ones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No hot reload.&lt;/strong&gt; Every code change means a rebuild and relaunch. A DayScript walkthrough can take you back to the screen you were working on, but the app still restarts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Animation is partial.&lt;/strong&gt; It works on AppKit, UIKit, Android, Web and ArkUI. On GTK, Qt and WinUI, changes apply instantly with no animation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No automatic dark mode for custom colors.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No form validation framework.&lt;/strong&gt; You build it yourself with signals.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project's advice is direct: "Check this list before you adopt the framework."&lt;/p&gt;

&lt;h2&gt;
  
  
  Who is behind it
&lt;/h2&gt;

&lt;p&gt;The repository belongs to a GitHub organization called Daybrite, which describes itself as "Stewards of Day." Almost all of the commits come from one developer, Marc Prud'hommeaux. His GitHub profile lists him as the founder of Skip, a tool for building iOS and Android apps from Swift. So this is not his first attempt at the cross-platform problem.&lt;/p&gt;

&lt;p&gt;It also means Day currently depends heavily on one maintainer. As of November 23, 2026, the repository has 43 stars and 4 forks, and the &lt;code&gt;day-cli&lt;/code&gt; crate on crates.io has about 10,900 downloads. Releases come out quickly: there have been 63 since the first one on August 13, including five in the past week. Fast releases are good for fixes, but they also mean the API may still change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is it a good fit?
&lt;/h2&gt;

&lt;p&gt;Day's own &lt;a href="https://daybrite.dev/features" rel="noopener noreferrer"&gt;features page&lt;/a&gt; is unusually clear about this. Based on it, Day looks like a good candidate if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want to write the whole app in Rust, or you already have Rust code you want to reuse.&lt;/li&gt;
&lt;li&gt;You build "tools people use every day": settings screens, document windows, lists of records, where native controls feel right.&lt;/li&gt;
&lt;li&gt;You are a small team that needs to ship on several platforms, and the built-in localization, testing and packaging save real work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is a weaker fit if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your team does not know Rust. The docs say learning the language "is part of the project."&lt;/li&gt;
&lt;li&gt;Your design needs identical controls and heavy custom animation on every platform.&lt;/li&gt;
&lt;li&gt;You depend on fast hot reload during UI work.&lt;/li&gt;
&lt;li&gt;You need a large, mature ecosystem of third-party components today.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project's suggestion for deciding is practical: build one screen from your own design, using the feature you are least sure about, and run it on every platform you plan to ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to try it
&lt;/h2&gt;

&lt;p&gt;You need stable Rust from &lt;a href="https://rustup.rs/" rel="noopener noreferrer"&gt;rustup&lt;/a&gt; and the tools for your platform: Xcode 27+ on an Apple silicon Mac, Visual Studio C++ Build Tools and the Windows App Runtime on Windows, or GTK 4 and libadwaita on Linux. Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo install day-cli --locked
day --version
day doctor --toolkit gtk   &lt;span class="c"&gt;# or appkit, winui&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://daybrite.dev/docs/tutorials/first-app" rel="noopener noreferrer"&gt;first-app tutorial&lt;/a&gt; walks you through a small counter app in six lessons. The site also has a live browser demo of the same Rust UI code running through the experimental web target.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Day is an ambitious attempt to make one Rust codebase produce truly native apps, including the UI and not just the logic. Its best feature may be its honesty: the docs tell you what is stable, what is experimental, what is missing, and how to test whether it fits before you commit.&lt;/p&gt;

&lt;p&gt;It is also very young and mostly built by one person. For a side project or an internal tool in Rust, it is worth an afternoon. For a production app, follow its own advice and prototype your hardest screen first.&lt;/p&gt;

&lt;p&gt;Would you pick native controls that look different on every platform, or one custom look that is the same everywhere?&lt;/p&gt;

</description>
      <category>rust</category>
      <category>mobile</category>
      <category>crossplatform</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Jensen Huang Is Back as Nvidia CEO: What Happened, and What the Stock Did</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:54:57 +0000</pubDate>
      <link>https://dev.to/jamilxt/jensen-huang-is-back-as-nvidia-ceo-what-happened-and-what-the-stock-did-1g2</link>
      <guid>https://dev.to/jamilxt/jensen-huang-is-back-as-nvidia-ceo-what-happened-and-what-the-stock-did-1g2</guid>
      <description>&lt;p&gt;Nvidia's board has &lt;a href="https://nvidianews.nvidia.com/news/nvidia-board-reinstates-jensen-huang-as-president-ceo-and-board-director" rel="noopener noreferrer"&gt;reinstated Jensen Huang&lt;/a&gt; as President, CEO and board member, effective immediately. The announcement came on Monday, November 23, 2026, 11 days after he resigned. Just six days earlier, the board had said on an earnings call that it did "not intend" to bring him back.&lt;/p&gt;

&lt;p&gt;Investors reacted fast. Nvidia shares were up about 30% in early Monday trading.&lt;/p&gt;

&lt;p&gt;This post covers what happened, what the board actually said, and what the stock did over the past month. It is built from Nvidia's press release, its SEC filing, and reporting by CNBC, WIRED, AP and DW. Stock prices come from daily market data. Several parts of this story are still allegations or are under investigation, and they are described that way below.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;November 12:&lt;/strong&gt; Huang resigned as CEO after reports of several extramarital relationships, including one with a woman US intelligence officials reportedly suspected of working for China. CFO Colette Kress became interim CEO.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 17:&lt;/strong&gt; The board said it "does not intend" to reinstate him.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 23:&lt;/strong&gt; The board reversed course and voted unanimously to reinstate him.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The stock:&lt;/strong&gt; Nvidia closed at $217.94 on October 27. By Friday, November 20, it had fallen to $125.53, down 42.4%. In early Monday trading it was around $163, up about 30% on the day but still about 25% below the October high.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What led to the resignation
&lt;/h2&gt;

&lt;p&gt;The story moved quickly over about a week. According to &lt;a href="https://www.wired.com/story/jensen-huang-is-back-as-nvidia-ceo/" rel="noopener noreferrer"&gt;WIRED's timeline&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;November 6:&lt;/strong&gt; The New York Times and Financial Times reported that US intelligence officials suspected that Alice Huang (no relation), a businesswoman Jensen Huang had a relationship with, might be an asset of China's Ministry of State Security. Both outlets cited an intelligence briefing from the previous year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The days after:&lt;/strong&gt; Huang admitted the relationship. Reports then emerged of relationships with two Nvidia employees, one of whom reported directly to him.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 12:&lt;/strong&gt; Nvidia announced that Huang was resigning as President, CEO and board member, effective immediately. (CNBC gives the date as November 13. WIRED and DW both describe the resignation as happening on Thursday, November 12.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two facts made this more than a personal scandal.&lt;/p&gt;

&lt;p&gt;First, Alice Huang was the CEO of Megaspeed, a Singapore-based AI cloud company and a major Nvidia customer. &lt;a href="https://www.dw.com/en/jensen-huang-spy-row-affairs-leave-nvidia-without-its-rockstar-ceo/a-79926972" rel="noopener noreferrer"&gt;DW reports&lt;/a&gt; that the US government is investigating Megaspeed on suspicion that it sent some of its Nvidia chips to China, which would break US export rules. Megaspeed denies this.&lt;/p&gt;

&lt;p&gt;Second, the intelligence claim itself is disputed. WIRED notes that some reports and Trump administration officials have questioned its accuracy, and the Chinese government has consistently rejected the claim that Alice Huang was a spy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reversal
&lt;/h2&gt;

&lt;p&gt;After resigning, Huang moved quickly to come back.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Employees backed him.&lt;/strong&gt; WIRED reported more than 1,600 comments on an internal post urging the board to reinstate him. A public petition passed 200,000 signatures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;He said he was open to it.&lt;/strong&gt; On November 17, Huang posted that if the board decided his return was in the best interest of shareholders, employees, the company and America, he "would be honored to answer these calls and return as CEO."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The White House signaled support.&lt;/strong&gt; President Donald Trump said on November 16 that he "would not mind" Huang returning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The board said no, then yes.&lt;/strong&gt; On the November 17 earnings call, Chair Harvey Jones said the board had accepted the resignation and did "not intend" to reinstate him. Six days later, it voted unanimously to do exactly that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nvidia's &lt;a href="https://www.sec.gov/Archives/edgar/data/1045810/000104581026000090/nvda-20261122.htm" rel="noopener noreferrer"&gt;SEC filing&lt;/a&gt; says the board made the decision on November 22. The public announcement came on the morning of November 23.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the board actually said
&lt;/h2&gt;

&lt;p&gt;The press release is short, and the wording matters. The board says it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Voted unanimously after "a series of discussions and meetings" with Huang.&lt;/li&gt;
&lt;li&gt;Was "satisfied with respect to Mr. Huang's candor and ability to lead NVIDIA."&lt;/li&gt;
&lt;li&gt;"Received input from senior levels of the United States government," and based on that input is "confident that Mr. Huang's reinstatement poses no national security risk."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The release also lists what is &lt;strong&gt;not&lt;/strong&gt; over:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An independent board committee is still investigating, with outside counsel. The board says this investigation "will proceed to conclusion," and Huang has said he will cooperate.&lt;/li&gt;
&lt;li&gt;A new &lt;strong&gt;National Security and Export Control Committee&lt;/strong&gt;, made up only of independent directors, will oversee trade compliance and national security risk.&lt;/li&gt;
&lt;li&gt;Nvidia is hiring a new &lt;strong&gt;Chief Compliance Officer&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The company "will continue to cooperate with ongoing government investigations and inquiries."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Colette Kress goes back to being CFO. Harvey Jones stays as board chair.&lt;/p&gt;

&lt;p&gt;Trump &lt;a href="https://www.cnbc.com/2026/11/23/nvidia-jensen-huang-ceo.html" rel="noopener noreferrer"&gt;wrote on social media&lt;/a&gt; that the board made "the correct and proper decision." CNBC reports he also said the government "does not possess evidence that he has engaged in any unlawful conduct."&lt;/p&gt;

&lt;h2&gt;
  
  
  What the stock did
&lt;/h2&gt;

&lt;p&gt;Here are Nvidia's daily closing prices at the key points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;October 27:&lt;/strong&gt; $217.94, the highest close of the past month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 11:&lt;/strong&gt; $173.73, the day before the resignation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 12 (resignation day):&lt;/strong&gt; opened at $151.01, about 13% below the previous close, then recovered to close at $166.19.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 17 (board says no return):&lt;/strong&gt; $155.46.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 20:&lt;/strong&gt; $125.53. That was a 14% drop in one day, and 42.4% below the October 27 close.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;November 23 (reinstatement):&lt;/strong&gt; about $163 in early trading, roughly 30% above Friday's close.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two things are worth keeping in mind.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not all of the fall was about Huang.&lt;/strong&gt; Last week was a bad week for the whole market. &lt;a href="https://www.cnbc.com/2026/11/22/stock-market-today-live-updates.html" rel="noopener noreferrer"&gt;CNBC reports&lt;/a&gt; it was the Nasdaq Composite's and Dow's worst weekly decline in more than six years, driven by worries about the AI trade. All three major US indexes ended Friday in correction territory. Nvidia's 14% drop on November 20 happened in the middle of that broader sell-off. So the drop from $217.94 to $125.53 mixes two things: the leadership crisis and the wider AI stock slump.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monday's jump did not erase the whole loss.&lt;/strong&gt; CNBC described the rally as "recovering nearly all the losses since he disclosed affair." Measured from the October 27 high, though, the stock was still about 25% lower in early Monday trading. The rally also helped other AI names: CNBC reported Micron up 4%, AMD up 3% and CoreWeave up 5% in premarket trading, while Nasdaq-100 futures rose 6%.&lt;/p&gt;

&lt;p&gt;Intraday prices change quickly. The Monday numbers above are from early in the US session and will be different by the close.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Even if you never buy a single share, this week tells you a few things about the AI industry.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nvidia is a single point of failure for the AI economy.&lt;/strong&gt; WIRED notes that Nvidia controlled about 90% of the global GPU market as of September 2026. When its leadership wobbles, so do AI stocks in general.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key-person risk is real.&lt;/strong&gt; DW cited a Wall Street Journal report that Huang does not believe in formal succession planning. That is part of why the board had to appoint its CFO as interim CEO with little notice. Investors priced in that risk quickly, and priced it out just as quickly when he returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Export controls are now a board-level issue.&lt;/strong&gt; The new national security committee and compliance officer show that questions about where Nvidia's chips end up are no longer just a policy topic. They are a governance problem for the company.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is not over.&lt;/strong&gt; The board's own investigation, the government inquiries and the questions about Megaspeed are all still open. The board says it is confident there is no national security risk. The investigations will show whether that confidence holds.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;In 11 days, Nvidia went from losing its founder, to saying he would not return, to bringing him back with a unanimous vote. The stock followed the same path: a fall of more than 40% from its October high, made worse by a market-wide AI sell-off, then a roughly 30% jump in one morning.&lt;/p&gt;

&lt;p&gt;The board solved its leadership problem. It has not yet answered the questions that caused it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post is news analysis, not investment advice.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Do you think a company this central to AI should be allowed to depend this much on one person?&lt;/p&gt;

</description>
      <category>nvidia</category>
      <category>ai</category>
      <category>business</category>
      <category>news</category>
    </item>
    <item>
      <title>GLM-5.4 Explained: How Z.ai Turned a 750B Model Into a Loop Transformer</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:47:59 +0000</pubDate>
      <link>https://dev.to/jamilxt/glm-54-explained-how-zai-turned-a-750b-model-into-a-loop-transformer-53dl</link>
      <guid>https://dev.to/jamilxt/glm-54-explained-how-zai-turned-a-750b-model-into-a-loop-transformer-53dl</guid>
      <description>&lt;p&gt;Looped transformers had a busy week. Thinking Machines shipped &lt;a href="https://thinkingmachines.ai/news/inkling-2-mini/" rel="noopener noreferrer"&gt;Inkling 2 Mini&lt;/a&gt;, a small open-weights model that runs its middle layers three times per token. Now Z.ai has published &lt;a href="https://z.ai/blog/glm-5.4" rel="noopener noreferrer"&gt;GLM-5.4&lt;/a&gt;, which it calls its "first flagship model built on the Loop Transformer architecture."&lt;/p&gt;

&lt;p&gt;The difference is scale. Inkling 2 Mini has 26.4B total parameters. GLM-5.4 is built at what Z.ai calls "the 750B scale." And Z.ai did not train it as a looped model from scratch. It took an existing, already trained base model and converted it.&lt;/p&gt;

&lt;p&gt;I have not used GLM-5.4. This breakdown comes from the Z.ai launch post and its architecture diagram. Every number below is reported by Z.ai and has not been independently checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GLM-5.4 runs &lt;strong&gt;28 layers twice&lt;/strong&gt; for every token. The other layers run once.&lt;/li&gt;
&lt;li&gt;It was made by &lt;strong&gt;continued training&lt;/strong&gt; of the GLM-5 base model, not by pre-training a looped model from zero.&lt;/li&gt;
&lt;li&gt;Three changes make it work at this size: &lt;strong&gt;per-token gates&lt;/strong&gt;, a &lt;strong&gt;hybrid KV cache&lt;/strong&gt;, and &lt;strong&gt;reused sparse attention indices&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;On a 30B test model with the same architecture, looping added about &lt;strong&gt;10% more training compute&lt;/strong&gt; and improved every benchmark shown, by &lt;strong&gt;3.3 to 11.3 points&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Z.ai claims intelligence "comparable to 2T-3T parameter models," but the post does not include flagship benchmark scores to back that up.&lt;/li&gt;
&lt;li&gt;Weights are not out yet. Z.ai says it plans to release them "after completing necessary safety hardening."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What a loop transformer does
&lt;/h2&gt;

&lt;p&gt;A standard transformer is a fixed stack of layers. Each token goes through every layer once.&lt;/p&gt;

&lt;p&gt;A loop transformer picks a group of layers and runs them more than once. The same weights are reused on each pass. Each pass starts from the hidden states the previous pass produced, so the model gets to refine its work. You get a deeper network without storing more parameters.&lt;/p&gt;

&lt;p&gt;Z.ai is open about the history. The post credits the 2018 Universal Transformer and later work on recurrent depth. Its reason for looping is the same one other labs give. In its words, "memory-intensive tasks benefit from more parameters, while reasoning-intensive tasks benefit from more effective compute." Looping adds compute, not memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  The key decision: convert instead of training from scratch
&lt;/h2&gt;

&lt;p&gt;This is the most interesting part of the post.&lt;/p&gt;

&lt;p&gt;Z.ai says looped models trained from scratch "still lag behind unshared models under the same pre-training compute budget." In other words, if you have a fixed training budget, a normal model trained from scratch still tends to win.&lt;/p&gt;

&lt;p&gt;So Z.ai skipped that race. It took the GLM-5 base model, which was already fully trained, and turned part of it into a loop through continued training. The goal, in the post's words, is to "raise the intelligence ceiling with a relatively small compute overhead."&lt;/p&gt;

&lt;p&gt;For anyone following this field, that is a practical result. It suggests that looping does not have to be a choice made before pre-training starts. It could be applied to a model that already exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the model is wired
&lt;/h2&gt;

&lt;p&gt;The architecture diagram in the post shows 78 layers in four groups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prelude (layers 1 to 26):&lt;/strong&gt; runs once. Turns the input into the model's internal representation. The input includes text embeddings plus projected features from a 24-layer vision encoder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loop pass 1 (layers 27 to 54):&lt;/strong&gt; the 28 looped layers, first run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loop pass 2 (layers 27 to 54 again):&lt;/strong&gt; same weights, second run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coda (layers 55 to 78):&lt;/strong&gt; runs once. Turns the final state into the next-token prediction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That makes 106 layer passes per token from 78 stored layers.&lt;/p&gt;

&lt;p&gt;This is close to how Inkling 2 Mini is built: a prelude, a looped middle, and a final block. Both labs loop the middle of the network, not the start or the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  Change 1: gates that stop the numbers from blowing up
&lt;/h2&gt;

&lt;p&gt;When you loop layers that were trained to run only once, a problem shows up. If each pass simply overwrites the hidden state, the size of the values (the "activation norms") grows with each pass. The layers after the loop then get inputs at a scale they never saw in training.&lt;/p&gt;

&lt;p&gt;GLM-5.4 fixes this with a gate after each pass. The diagram shows the formula:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x1 = x0 + b1 * (h1 - x0)
x2 = x1 + b2 * (h2 - x1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here &lt;code&gt;x0&lt;/code&gt; is the state before the loop, &lt;code&gt;h1&lt;/code&gt; is what pass 1 produced, and &lt;code&gt;b1&lt;/code&gt; is a gate value the model computes for each token. If the gate is small, the pass only nudges the state. If it is close to 1, the pass replaces it.&lt;/p&gt;

&lt;p&gt;Z.ai reports that after training, the gates split the work in a clear way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pass 1 writes carefully.&lt;/strong&gt; It builds global context with small gate values, which keeps the numbers stable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass 2 writes fully.&lt;/strong&gt; It opens the gates and refines the output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard tokens get more.&lt;/strong&gt; On harder tokens, the first pass writes more aggressively, so those tokens get more benefit from the second pass.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This rhymes with the research. The 2024 ICLR paper &lt;a href="https://arxiv.org/abs/2311.12424" rel="noopener noreferrer"&gt;"Looped Transformers are Better at Learning Learning Algorithms"&lt;/a&gt; found that looped models became unstable unless they were given extra structure (in that paper, feeding the original input back in on every pass). Inkling 2 Mini uses a learned gate that starts closed. Stability is the problem every looped design has to solve, and gates are a common answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Change 2: the KV cache does not double
&lt;/h2&gt;

&lt;p&gt;This is the change that matters most for running the model.&lt;/p&gt;

&lt;p&gt;During generation, a transformer keeps a KV cache: the stored keys and values for every earlier token. For long contexts, this cache is a big share of memory. A naive looped model would keep a full cache for every pass. Two passes would mean two full caches.&lt;/p&gt;

&lt;p&gt;GLM-5.4 avoids that with a hybrid design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pass 2 reuses pass 1's cache&lt;/strong&gt; for the long context (the "sparse KV selected in the first pass").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass 2 also keeps its own small cache&lt;/strong&gt; for recent tokens only, using a sliding window. The diagram labels this window as 128 tokens.&lt;/li&gt;
&lt;li&gt;The model can attend to both at once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The result, according to Z.ai, is that "an extra loop only costs one sliding window of KV cache rather than a full context cache." Z.ai says this keeps the deployment cost increase over GLM-5.3 "well under control" at 1M-token context lengths. The post does not give a number for that increase.&lt;/p&gt;

&lt;h2&gt;
  
  
  Change 3: attention indices are computed once
&lt;/h2&gt;

&lt;p&gt;GLM-5.4 uses sparse attention. Instead of looking at every earlier token, it picks the most relevant ones. A component called an indexer makes that choice.&lt;/p&gt;

&lt;p&gt;In the second pass, GLM-5.4 does not run the indexer again. It reuses the choices from the first pass. Z.ai says this adds "zero indexing overhead" and "performs nearly identically to recomputing indices on every pass."&lt;/p&gt;

&lt;h2&gt;
  
  
  The ablation numbers
&lt;/h2&gt;

&lt;p&gt;Before using looping in the flagship model, Z.ai tested it on base models of 1B, 4B, 30B and 750B parameters.&lt;/p&gt;

&lt;p&gt;The clearest evidence is a controlled test on the 30B model, which has the same architecture as the 750B base. Both versions had the same parameter count. The looped version used about 10% more total training compute. Scores were measured after long-context fine-tuning, with thinking mode on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AIME25:&lt;/strong&gt; 19.17 to 30.42 (+11.3)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPQA-Diamond:&lt;/strong&gt; 47.58 to 56.26 (+8.7)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AA-LCR:&lt;/strong&gt; 40.33 to 47.67 (+7.3)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MMLU-Pro:&lt;/strong&gt; 71.65 to 75.05 (+3.4)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IFBench:&lt;/strong&gt; 50.20 to 53.47 (+3.3)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two patterns stand out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The gains are biggest on long reasoning.&lt;/strong&gt; Math (AIME25), science (GPQA-Diamond) and long-context reasoning (AA-LCR) improved most. Knowledge-heavy MMLU-Pro and instruction following (IFBench) improved least. Inkling 2 Mini's launch post reported a similar split: looping helped reasoning, not memorized knowledge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model writes less while thinking.&lt;/strong&gt; Average output length dropped on every benchmark in the table. Z.ai's text says most benchmarks dropped by 10 to 14%. The table shows a wider range: GPQA-Diamond fell 11.7% (2,473 tokens), MMLU-Pro 14.9% and IFBench 13.0%, but AIME25 only 2%. Z.ai's reading is that "part of the reasoning shifts from explicit output tokens into the implicit depth of the loop." Inkling's team reported the same effect.&lt;/p&gt;

&lt;p&gt;That last point has a safety side. Reasoning that moves inside the loop is reasoning nobody can read in the chain of thought. Thinking Machines studied that question in detail for Inkling. The GLM-5.4 post does not discuss it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the post does not show yet
&lt;/h2&gt;

&lt;p&gt;The engineering details are clear. The headline claims are thinner.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No flagship benchmarks.&lt;/strong&gt; The "comparable to 2T-3T parameter models" claim has no scores attached in the post. The only numbers are from the 30B test model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed numbers are vendor-reported.&lt;/strong&gt; Z.ai says GLM-5.4 reaches "up to 200 tokens/s" off-peak and 70 to 80 tokens/s at peak load. There is no detail on hardware, context length or batch size.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A known weakness.&lt;/strong&gt; Z.ai says the model "tends to get caught in overly long 'marathon thinking' loops." It adds that this extra reflection improves accuracy. For anyone paying per token or waiting on a response, long thinking still costs time and money.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not yet open.&lt;/strong&gt; The API is listed as "coming soon," and weights will follow safety work. Today you can try it through the GLM Coding Plan, ZCode and Z.ai Chat.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  "Generalized Coding"
&lt;/h2&gt;

&lt;p&gt;The second half of the post is product positioning. Z.ai calls it "Generalized Coding": using code as the base for tasks beyond software. Its demos include a music video, a 6-axis robotic arm modeled in FreeCAD, a complete game, and a 3D bird-watching scene written in GLSL shaders.&lt;/p&gt;

&lt;p&gt;These are demos, not benchmarks. They show what the model can produce on a good run, not how often it succeeds. Treat them that way until independent tests appear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;In one week, two labs shipped looped models at very different sizes: about 26B for Inkling 2 Mini and the 750B scale for GLM-5.4. That is a signal that looping has moved from research papers into production.&lt;/p&gt;

&lt;p&gt;GLM-5.4 adds two lessons of its own:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You can convert an existing model.&lt;/strong&gt; Continued training on a pre-trained base sidesteps the main weakness of looped models trained from scratch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The KV cache is the real cost, and it can be managed.&lt;/strong&gt; Sharing the cache across passes and giving the second pass only a small local window keeps memory close to the non-looped model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The open questions are the ones Z.ai lists itself. Can harder tokens get more loops automatically? And how do the gains change as loop count and model size keep growing? Z.ai says its next, "significantly larger" model is coming soon.&lt;/p&gt;

&lt;p&gt;If looping moves reasoning out of the visible chain of thought and into the hidden layers, how much should we trust a model's written reasoning to tell us what it actually did?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>programming</category>
    </item>
    <item>
      <title>Looped Transformers Explained: How One Reused Layer Can Match a 12-Layer Model</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:34:16 +0000</pubDate>
      <link>https://dev.to/jamilxt/looped-transformers-explained-how-one-reused-layer-can-match-a-12-layer-model-21a</link>
      <guid>https://dev.to/jamilxt/looped-transformers-explained-how-one-reused-layer-can-match-a-12-layer-model-21a</guid>
      <description>&lt;p&gt;Thinking Machines' &lt;a href="https://thinkingmachines.ai/news/inkling-2-mini/" rel="noopener noreferrer"&gt;Inkling 2 Mini&lt;/a&gt; is a production model that runs its middle layers three times per token. That idea has a research history. One of the clearest papers in it is &lt;a href="https://arxiv.org/abs/2311.12424" rel="noopener noreferrer"&gt;"Looped Transformers are Better at Learning Learning Algorithms"&lt;/a&gt; by Liu Yang, Kangwook Lee, Robert D. Nowak and Dimitris Papailiopoulos (University of Wisconsin, Madison). It was accepted at ICLR 2024.&lt;/p&gt;

&lt;p&gt;The headline result: a transformer with &lt;strong&gt;one layer&lt;/strong&gt;, run in a loop, matched a standard &lt;strong&gt;12-layer&lt;/strong&gt; GPT-2 style transformer on several in-context learning tasks. The looped model had about 0.79M parameters. The standard one had about 9.48M.&lt;/p&gt;

&lt;p&gt;I have not run the paper's code. Everything below comes from the paper itself (arXiv v3, March 2024), and the numbers are the authors' results. The goal is to explain the idea in plain terms and be clear about what the experiments do and do not show.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question the paper asks
&lt;/h2&gt;

&lt;p&gt;Start with a simple setup from earlier work by &lt;a href="https://arxiv.org/abs/2208.01066" rel="noopener noreferrer"&gt;Garg et al. (2022)&lt;/a&gt;. You give a transformer a prompt made of example pairs, like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x1, f(x1), x2, f(x2), ..., xk, f(xk), x_test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The function &lt;code&gt;f&lt;/code&gt; is random and different for every prompt. The model never sees it directly. It has to look at the examples and predict &lt;code&gt;f(x_test)&lt;/code&gt;. This is in-context learning in its purest form: no fine-tuning, just "figure out the pattern from the prompt."&lt;/p&gt;

&lt;p&gt;Garg et al. showed that a normal transformer trained from scratch can do this well for linear functions, often close to the textbook answer (ordinary least squares).&lt;/p&gt;

&lt;p&gt;But here is the catch. Classic machine learning solves these problems with &lt;strong&gt;iterative&lt;/strong&gt; algorithms. Gradient descent takes the same small step again and again until the answer settles. A standard transformer has no loop. It has a fixed stack of different layers, and each input goes through them once.&lt;/p&gt;

&lt;p&gt;So the authors asked: if you build the loop into the transformer, does it learn these algorithms more efficiently?&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a loop should help
&lt;/h2&gt;

&lt;p&gt;The paper gives a clear example with linear regression.&lt;/p&gt;

&lt;p&gt;The exact answer, least squares, needs a matrix inverse. Earlier work found that transformers find matrix inversion hard to learn. It needs more layers and heads.&lt;/p&gt;

&lt;p&gt;Gradient descent avoids the inverse. Each step only needs matrix multiplication, which transformers handle well. The trade-off is that you must repeat the step many times.&lt;/p&gt;

&lt;p&gt;That maps neatly onto a loop. If one layer can learn "one step of improvement", running it many times could do the rest. And because the same weights are reused on every pass, you pay for one layer of parameters, not twelve.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the looped transformer works
&lt;/h2&gt;

&lt;p&gt;The model is a GPT-2 decoder with 1 layer, 8 attention heads and an embedding size of 256. The baseline is the same design with 12 layers.&lt;/p&gt;

&lt;p&gt;Each loop looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Y0 = zeros
Y1 = M(Y0 + P)
Y2 = M(Y1 + P)
...
Yt = M(Y(t-1) + P)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;M&lt;/code&gt; is the one shared layer. &lt;code&gt;P&lt;/code&gt; is the original prompt. &lt;code&gt;Yt&lt;/code&gt; is the model's state after &lt;code&gt;t&lt;/code&gt; passes.&lt;/p&gt;

&lt;p&gt;Notice that &lt;code&gt;P&lt;/code&gt; is added back in at &lt;strong&gt;every&lt;/strong&gt; step. The paper calls this &lt;strong&gt;input injection&lt;/strong&gt;, and it turned out to be essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trick 1: keep feeding the prompt back in
&lt;/h2&gt;

&lt;p&gt;Older weight-sharing models (like ALBERT and Universal Transformers) feed the input in once and then just keep applying the layer to its own output. The problem: as the loop runs longer, the original input fades away and the output drifts.&lt;/p&gt;

&lt;p&gt;The authors tested both versions. Without input injection, the model got worse as soon as it ran past the number of loops it was trained on. With input injection, it stayed stable.&lt;/p&gt;

&lt;p&gt;The plain version: each pass gets to look at the original question again, not only at its own previous guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trick 2: train on a window of loop steps
&lt;/h2&gt;

&lt;p&gt;Training a loop raises two questions. How many loops do you run during training? And at which loop steps do you check the answer?&lt;/p&gt;

&lt;p&gt;The paper uses two numbers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;b&lt;/strong&gt;: the maximum number of loop iterations during training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T&lt;/strong&gt;: the size of a window at the end. The loss is only computed on the last T iterations, from step b minus T to step b.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only checking the last T steps saves memory. It borrows the idea of truncated backpropagation through time from recurrent network training.&lt;/p&gt;

&lt;p&gt;Both numbers involve trade-offs, according to the paper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;b too small:&lt;/strong&gt; the model diverges once you run it past b loops at inference time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;b larger:&lt;/strong&gt; the model finds a stable answer that holds beyond the trained loops. Past a certain point, larger b stops helping and convergence slows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T too small:&lt;/strong&gt; worse accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T too large:&lt;/strong&gt; unstable training, a known problem with recurrent models.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For linear regression the authors settled on b = 20 and T = 15. They also increased b gradually during training. They found this scheduling made little difference on most tasks, but it helped a bit on decision trees.&lt;/p&gt;

&lt;p&gt;The goal of all this tuning is a &lt;strong&gt;fixed point&lt;/strong&gt;. The answer should improve with each loop, then settle and stay there no matter how many extra loops you run. In the paper's Figure 2, a model trained with 30 loop iterations kept a stable answer well beyond 30 at inference time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the experiments show
&lt;/h2&gt;

&lt;p&gt;The main tests use inputs with 20 dimensions. The authors compare the looped model (1 layer) against the standard transformer (12 layers) and classic solvers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linear regression.&lt;/strong&gt; The looped transformer matched the 12-layer transformer and came close to least squares, with about 1/12 of the parameters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fewer training examples needed.&lt;/strong&gt; The authors trained both models on fixed datasets of different sizes. The looped model learned the task from fewer distinct prompts than the standard one. They attribute this to its smaller parameter count, and the result held for problem dimensions 5, 10 and 20.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Harder function classes.&lt;/strong&gt; They also tested sparse linear functions (only 3 of 20 weights non-zero), depth-4 decision trees and 2-layer ReLU neural networks. The looped model matched the standard transformer on all of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sparse linear regression is the standout.&lt;/strong&gt; Here the looped model did better than the standard transformer, and with fewer than 10 examples in the prompt it even beat Lasso, the classic tool for sparse problems. The authors are careful about this claim. They mean the trend with few examples, not final precision. With 40 examples, the reported errors were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Least squares: 8.21e-14&lt;/li&gt;
&lt;li&gt;Lasso: 1.32e-04&lt;/li&gt;
&lt;li&gt;Looped transformer: 6.12e-04&lt;/li&gt;
&lt;li&gt;Standard transformer: 0.0017&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the looped model beat the standard transformer, but the classic solvers still reached more precise final answers when given enough data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real tabular data.&lt;/strong&gt; In an appendix, they trained both models on 9 OpenML datasets and tested on a 10th unseen one, rotating through 10 datasets. The looped model was clearly better on 5, roughly tied on 4, and worse on 1. Example: on dataset 847 (wind), test accuracy was 0.757 for the looped model and 0.668 for the standard one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Looping is not the same as stacking layers
&lt;/h2&gt;

&lt;p&gt;One finding is easy to miss. You might expect a 1-layer model looped 8 times to equal an 8-layer model. It does not.&lt;/p&gt;

&lt;p&gt;The paper reports that a 1-layer looped model needed roughly 20 iterations to match an 8-layer transformer. In general, the looped model needs more passes than the standard model has layers.&lt;/p&gt;

&lt;p&gt;The authors looked inside both models using &lt;strong&gt;probing&lt;/strong&gt;: training a small network to read specific quantities out of each layer's output. They probed for two things related to the regression answer. The standard transformer represented them best around layer 10, then moved on to other information. The looped model kept improving its representation of them with every pass.&lt;/p&gt;

&lt;p&gt;That is a different way of computing. The standard model uses each layer for a different job. The looped model keeps refining the same estimate, which looks much more like an iterative algorithm.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it breaks
&lt;/h2&gt;

&lt;p&gt;The limitations section is the most useful part for anyone excited about looping.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It learns a shortcut for its training data, not a general algorithm.&lt;/strong&gt; Real gradient descent works on any input. The looped transformer only behaves like a solver on data similar to what it was trained on. The authors say this directly: it "fails to identify an actual algorithm that generalizes to any input distribution."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It prefers simple answers, which cuts both ways.&lt;/strong&gt; The looped model shows a bias toward simpler solutions. That helped with skewed inputs, with noisy regression, and with sparse problems. But when the test inputs were scaled up (by 3 in the main figure), the looped model did worse than the standard transformer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There is an error floor.&lt;/strong&gt; Even at its fixed point, the answer is not as precise as a classic solver.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tasks are small and synthetic.&lt;/strong&gt; Linear functions, small decision trees and small neural networks with 20 input dimensions. The OpenML results are a step toward real data, but nothing here tests language modeling or reasoning at scale.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tuning matters.&lt;/strong&gt; The right b and T values changed by task: b = 20 and T = 10 for sparse linear functions, b = 70 and T = 15 for decision trees, and b = 12 and T = 5 for 2-layer ReLU networks. The authors suggest these values could serve as a measure of how hard a task is for a transformer. Oddly, the neural network task needed fewer loops than plain linear regression, and they say the reason is still unclear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters now
&lt;/h2&gt;

&lt;p&gt;In 2023 this was a small-scale research result. In late 2026, labs ship looped models that people run on laptops. The paper explains, in a clean setting, the core bargain those models are making:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reuse weights to get more computation per parameter.&lt;/strong&gt; That is what makes looping attractive on memory-limited hardware.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stability is the hard part.&lt;/strong&gt; Input injection and careful loop training were what made the difference here. Production models use their own versions of these ideas. Inkling 2 Mini, for example, starts with its loop message gated off and opens the gate slowly during training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More loops are not free.&lt;/strong&gt; Each pass costs compute and time, and past a point extra loops stop helping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Looping adds computation, not knowledge.&lt;/strong&gt; In this paper, the looped model was good at refining an estimate. That fits the Inkling launch post's finding that extra passes did not help knowledge-heavy benchmarks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to go deeper, the code is open on &lt;a href="https://github.com/Leiay/looped_transformer" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. The related paper &lt;a href="https://arxiv.org/abs/2301.13196" rel="noopener noreferrer"&gt;"Looped Transformers as Programmable Computers"&lt;/a&gt;, which shares two of the authors, covers the theory side.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;The paper makes one clear point. If the algorithm you want a model to learn is iterative, give the model a loop. A single layer, looped with the prompt fed back in on each pass, matched a 12-layer transformer on these tasks and learned from fewer examples.&lt;/p&gt;

&lt;p&gt;It also shows the limit. The loop learned to act like a solver for the data it was trained on, not a solver that works everywhere.&lt;/p&gt;

&lt;p&gt;When you choose a model for your next project, do you care more about the number of parameters, or about how much computation it can do per token?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>deeplearning</category>
    </item>
    <item>
      <title>Ruby2Shell: How to Find Every Ruby Your Servers Actually Run</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:10:07 +0000</pubDate>
      <link>https://dev.to/jamilxt/ruby2shell-how-to-find-every-ruby-your-servers-actually-run-576j</link>
      <guid>https://dev.to/jamilxt/ruby2shell-how-to-find-every-ruby-your-servers-actually-run-576j</guid>
      <description>&lt;p&gt;On November 18, 2026, the Ruby team released &lt;a href="https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/" rel="noopener noreferrer"&gt;Ruby 4.0.10, 3.4.13 and 3.3.14&lt;/a&gt; to fix seven memory safety bugs. One of them now has a name: &lt;a href="https://verialabs.com/ruby2shell/" rel="noopener noreferrer"&gt;Ruby2Shell&lt;/a&gt;, tracked as CVE-2026-132825. Veria Labs, one of the teams that found it, says it reaches remote code execution on a stock Rails app before any login. They plan to publish a proof of concept on &lt;strong&gt;November 25, 2026&lt;/strong&gt;, or later if major vendors have not shipped a fix by then.&lt;/p&gt;

&lt;p&gt;The obvious fix is "upgrade Ruby." The catch is that many servers run more than one Ruby. There is the one your package manager installed and the ones your version manager added. There are the ones inside your containers. And there are the ones that products like GitLab ship in their own install folders. &lt;code&gt;apt upgrade&lt;/code&gt; only touches the first.&lt;/p&gt;

&lt;p&gt;This guide walks through how to find all of them, decide which ones are affected, and what to do while you wait for vendors. It is based on the Ruby advisory, the researchers' write-ups, Cloudflare's analysis, and vendor release notes, all linked inline. The inventory script near the end was checked against stand-in binaries that print fixed and vulnerable version strings, not against a live fleet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug in plain words
&lt;/h2&gt;

&lt;p&gt;Ruby strings carry an encoding. Besides UTF-8, Ruby still supports old single-byte encodings such as ISO-8859-1 (Latin-1) and Windows-1252, where one character is one byte.&lt;/p&gt;

&lt;p&gt;The German letter ß has a problem in those encodings. They have no capital ß, so the uppercase form is two letters: &lt;code&gt;SS&lt;/code&gt;. According to &lt;a href="https://verialabs.com/ruby2shell/" rel="noopener noreferrer"&gt;Veria Labs&lt;/a&gt;, Ruby's case-conversion loop writes those two bytes but only checks that there is room for one. The output buffer is the input length plus 20 bytes, so an input with 21 ß characters writes one byte past the end of the buffer.&lt;/p&gt;

&lt;p&gt;One byte sounds small. &lt;a href="https://blog.cloudflare.com/ruby2shell-waf-protection/" rel="noopener noreferrer"&gt;Cloudflare's write-up&lt;/a&gt; explains why it is not: a single byte written past a heap buffer (a block of memory the program asked for at runtime) can corrupt the object next to it or the memory allocator's own bookkeeping. That is often enough for an attacker to take control.&lt;/p&gt;

&lt;p&gt;Some details from the advisories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The bug is reached by &lt;code&gt;upcase&lt;/code&gt;, &lt;code&gt;swapcase&lt;/code&gt;, &lt;code&gt;downcase(:fold)&lt;/code&gt; and &lt;code&gt;casecmp?&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It affects 14 ISO-8859 and Windows-125x encodings. UTF-8 strings take a different code path and are not affected.&lt;/li&gt;
&lt;li&gt;The same loop has been in Ruby since version 2.4.0.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why stock Rails is exposed before login
&lt;/h2&gt;

&lt;p&gt;HTML forms can only send GET and POST. To fake PUT, PATCH or DELETE, Rack (the interface most Ruby web frameworks sit on) has a middleware called MethodOverride. It reads a &lt;code&gt;_method&lt;/code&gt; field from the POST body and calls &lt;code&gt;.upcase&lt;/code&gt; on it.&lt;/p&gt;

&lt;p&gt;Rails includes this middleware by default, and classic-style Sinatra apps turn it on. A &lt;a href="https://durendal.sh/blog/ruby-case-mapping-bugs" rel="noopener noreferrer"&gt;blog post by Moritz Sanft&lt;/a&gt;, one of the other people who found the bug, shows the last piece: Rack lets the client choose the encoding of each multipart field through a &lt;code&gt;charset&lt;/code&gt; value. So an attacker can send a multipart POST with a &lt;code&gt;_method&lt;/code&gt; field marked as ISO-8859-1 and filled with ß characters. The upcase happens while the request is still being routed, before any application code or authentication check runs.&lt;/p&gt;

&lt;p&gt;A commenter in the &lt;a href="https://news.ycombinator.com/item?id=50557838" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt; summed it up: you can freely specify the encoding, for example &lt;code&gt;charset=Windows-1252&lt;/code&gt;, because Rails respects it.&lt;/p&gt;

&lt;p&gt;Veria Labs reports that other frameworks and plain Rack apps are not exposed by default. But any code that changes the case of a string received in a legacy encoding can still hit the bug, wherever the string comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which versions are affected
&lt;/h2&gt;

&lt;p&gt;From the &lt;a href="https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/" rel="noopener noreferrer"&gt;Ruby advisory&lt;/a&gt; and &lt;a href="https://verialabs.com/ruby2shell/" rel="noopener noreferrer"&gt;Veria Labs&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ruby 4.0:&lt;/strong&gt; 4.0.0 to 4.0.9 affected, fixed in &lt;strong&gt;4.0.10&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ruby 3.4:&lt;/strong&gt; 3.4.0 to 3.4.12 affected, fixed in &lt;strong&gt;3.4.13&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ruby 3.3:&lt;/strong&gt; 3.3.0 to 3.3.13 affected, fixed in &lt;strong&gt;3.3.14&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ruby 3.2 and older (back to 2.4.0):&lt;/strong&gt; affected, end of life, no upstream fix&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same releases fix six other bugs, five of them in Ruby's regular expression engine. Upgrading to a fixed version covers all seven. Ruby 3.3 is in its security maintenance phase, and Ruby 3.2 and earlier will not receive these fixes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: The system Ruby and your distro packages
&lt;/h2&gt;

&lt;p&gt;Start with what the operating system installed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;which -a ruby
ruby -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;which -a&lt;/code&gt; lists every &lt;code&gt;ruby&lt;/code&gt; on your &lt;code&gt;PATH&lt;/code&gt;, including the ones hidden behind the first match. Then check the package itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Debian and Ubuntu&lt;/span&gt;
dpkg -l &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'^ii +(ruby|libruby)'&lt;/span&gt;

&lt;span class="c"&gt;# RHEL, Fedora, Rocky, Alma&lt;/span&gt;
rpm -qa &lt;span class="o"&gt;|&lt;/span&gt; grep -i ruby
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the trap with distro packages: they often backport fixes without changing the upstream version number. &lt;a href="https://blog.cloudflare.com/ruby2shell-waf-protection/" rel="noopener noreferrer"&gt;Cloudflare's advisory&lt;/a&gt; warns about this directly. So &lt;code&gt;ruby -v&lt;/code&gt; can print an old version on a patched system, and the package version is what you compare.&lt;/p&gt;

&lt;p&gt;Debian shows both sides of this. On November 23, its &lt;a href="https://security-tracker.debian.org/tracker/CVE-2026-132825" rel="noopener noreferrer"&gt;security tracker&lt;/a&gt; listed a fixed &lt;code&gt;ruby3.1&lt;/code&gt; package for bookworm (via DLA-4926-1), even though upstream Ruby 3.1 is end of life. It also listed &lt;code&gt;ruby3.3&lt;/code&gt; version &lt;code&gt;3.3.14-0+deb13u1&lt;/code&gt; as the fix for trixie (DSA-6644-1), while the package in unstable was still unfixed. Ubuntu keeps its own &lt;a href="https://ubuntu.com/security/CVE-2026-132825" rel="noopener noreferrer"&gt;CVE page&lt;/a&gt;, which listed several of its Ruby packages as "Needs evaluation" when this was written. Check your distro's page. The version string alone can mislead you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Version managers and stray installs
&lt;/h2&gt;

&lt;p&gt;Developers and deploy scripts often install Ruby outside the package manager. Common places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;rbenv:&lt;/strong&gt; &lt;code&gt;rbenv versions&lt;/code&gt;, files under &lt;code&gt;~/.rbenv/versions/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RVM:&lt;/strong&gt; &lt;code&gt;rvm list&lt;/code&gt;, files under &lt;code&gt;~/.rvm/rubies/&lt;/code&gt; or &lt;code&gt;/usr/local/rvm/rubies/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;asdf or mise:&lt;/strong&gt; &lt;code&gt;asdf list ruby&lt;/code&gt; or &lt;code&gt;mise ls ruby&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;chruby / ruby-install:&lt;/strong&gt; &lt;code&gt;/opt/rubies/&lt;/code&gt; and &lt;code&gt;~/.rubies/&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these needs its own upgrade, and each app should then point at the new version. Look for pins in your repos too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -rnE &lt;span class="s1"&gt;'^FROM .*ruby:'&lt;/span&gt; --include=&lt;span class="s1"&gt;'Dockerfile*'&lt;/span&gt; .
find . -name .ruby-version -o -name .tool-versions &lt;span class="o"&gt;|&lt;/span&gt; xargs grep -H ruby
grep -n &lt;span class="s1"&gt;'^ruby '&lt;/span&gt; Gemfile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;.ruby-version&lt;/code&gt; file that says &lt;code&gt;3.3.13&lt;/code&gt; will keep pulling the vulnerable version back in, even after you install 3.3.14.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Containers and images
&lt;/h2&gt;

&lt;p&gt;A container ships its own Ruby, so the host's Ruby does not matter for it. For each running container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps --format &lt;span class="s1"&gt;'{{.Names}}'&lt;/span&gt;
docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;container&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ruby -e &lt;span class="s1"&gt;'print RUBY_VERSION'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For images that are built but not running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm --entrypoint ruby &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;image&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -e &lt;span class="s1"&gt;'print RUBY_VERSION'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fixing a container means rebuilding the image on a fixed base (for example the official &lt;code&gt;ruby&lt;/code&gt; image at 3.3.14, 3.4.13 or 4.0.10) and redeploying. Restarting the old container does nothing. &lt;a href="https://blog.cloudflare.com/ruby2shell-waf-protection/" rel="noopener noreferrer"&gt;Cloudflare's checklist&lt;/a&gt; also says to restart every Ruby process, including background workers. A Sidekiq worker that kept running on the old binary is still on the old binary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Products that bundle their own Ruby
&lt;/h2&gt;

&lt;p&gt;This is the group the title is about. Some self-hosted products ship a private copy of Ruby in their own install folder. Your system Ruby can be fully patched while these keep running the old one. Only the vendor can ship the fix.&lt;/p&gt;

&lt;p&gt;Veria Labs keeps a &lt;a href="https://verialabs.com/ruby2shell/#self-hosted" rel="noopener noreferrer"&gt;table of these products&lt;/a&gt;. At the time of disclosure, &lt;a href="https://www.aikido.dev/blog/ruby2shell" rel="noopener noreferrer"&gt;Aikido&lt;/a&gt; listed the bundled Ruby in each one's latest release: GitLab 19.6.0 shipped 3.3.13, GitHub Enterprise Server 3.22.5 shipped 4.0.9, and Chatwoot 4.20.0 shipped 3.4.4. Here is where each stood on November 23:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitLab:&lt;/strong&gt; fixed in &lt;strong&gt;19.6.1, 19.5.8 and 19.4.10&lt;/strong&gt;, released November 20. The &lt;a href="https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-1-released/" rel="noopener noreferrer"&gt;GitLab patch notes&lt;/a&gt; say official Linux packages and container images include the patched Ruby. Self-compiled installs must rebuild their own Ruby at 3.3.14 or 3.4.13 or later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Enterprise Server:&lt;/strong&gt; the &lt;a href="https://docs.github.com/en/enterprise-server@3.22/admin/release-notes" rel="noopener noreferrer"&gt;3.22 release notes&lt;/a&gt; list &lt;strong&gt;3.22.6&lt;/strong&gt;, dated November 22, with a critical fix: "GitHub has updated Ruby to fix several announced vulnerabilities. Where an update was not immediately possible, mitigations were introduced at the application level." Note that Veria's table, last updated November 21, still showed GHES with no fix. If you run an older 3.x line, check the release notes for that line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mastodon:&lt;/strong&gt; fixed in &lt;a href="https://github.com/mastodon/mastodon/releases/tag/v4.7.6" rel="noopener noreferrer"&gt;4.7.6&lt;/a&gt;, 4.6.12, 4.5.22 and 4.4.29, all released November 19.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenProject:&lt;/strong&gt; fixed in &lt;a href="https://github.com/opf/openproject/releases/tag/v17.9.8" rel="noopener noreferrer"&gt;17.9.8&lt;/a&gt; and 17.8.3, both released November 19.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chatwoot:&lt;/strong&gt; fixed in &lt;a href="https://github.com/chatwoot/chatwoot/releases/tag/v4.20.1" rel="noopener noreferrer"&gt;4.20.1&lt;/a&gt;, whose changelog starts with "Upgraded to Ruby 3.4.13".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discourse:&lt;/strong&gt; the Docker base image moved to Ruby 4.0.10 on November 19. Per Veria, base images before &lt;code&gt;2.0.20261119-0203&lt;/code&gt; are affected. A rebuild picks up the fix: &lt;code&gt;cd /var/discourse &amp;amp;&amp;amp; ./launcher rebuild app&lt;/code&gt;, the standard command from the &lt;a href="https://github.com/discourse/discourse_docker" rel="noopener noreferrer"&gt;discourse_docker&lt;/a&gt; project.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For GitLab Omnibus installs, you can see the bundled Ruby directly. A &lt;a href="https://news.ycombinator.com/item?id=50561571" rel="noopener noreferrer"&gt;post on Hacker News&lt;/a&gt; on disclosure day used exactly these commands to show that 19.6.0 still ran Ruby 3.3.13:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
/opt/gitlab/embedded/bin/ruby --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitLab's own &lt;code&gt;sudo gitlab-rake gitlab:env:info&lt;/code&gt; also prints a "Ruby Version" line, as shown in the &lt;a href="https://docs.gitlab.com/administration/raketasks/maintenance/" rel="noopener noreferrer"&gt;GitLab maintenance docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Other products you run may bundle Ruby too. The list above is just the one the researchers checked. If a product has an &lt;code&gt;embedded/&lt;/code&gt; or &lt;code&gt;vendor/&lt;/code&gt; folder with its own &lt;code&gt;bin/ruby&lt;/code&gt;, treat it the same way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: One script to list them all
&lt;/h2&gt;

&lt;p&gt;This script walks the filesystem for every executable named &lt;code&gt;ruby&lt;/code&gt;, asks each one for its version, and does the same inside running containers. It flags each result against the fixed versions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# List every Ruby on this host and in running containers,&lt;/span&gt;
&lt;span class="c"&gt;# and flag versions affected by Ruby2Shell (CVE-2026-132825).&lt;/span&gt;

verdict&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;local&lt;/span&gt; major minor patch
  &lt;span class="nv"&gt;IFS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;. &lt;span class="nb"&gt;read&lt;/span&gt; -r major minor patch &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s2"&gt;"$1"&lt;/span&gt;
  &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"$major.$minor"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
    4.0&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$patch"&lt;/span&gt; -ge 10 &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"fixed"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"VULNERABLE"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    3.4&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$patch"&lt;/span&gt; -ge 13 &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"fixed"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"VULNERABLE"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    3.3&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$patch"&lt;/span&gt; -ge 14 &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"fixed"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"VULNERABLE"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    *&lt;span class="o"&gt;)&lt;/span&gt;   &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"no upstream fix: check distro or vendor advisory"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;esac&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== Ruby binaries on disk =="&lt;/span&gt;
find / \&lt;span class="o"&gt;(&lt;/span&gt; -path /proc -o -path /sys -o -path /var/lib/docker \&lt;span class="o"&gt;)&lt;/span&gt; -prune \
  -o -type f -name ruby -perm -u+x -print 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r bin&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;v&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;&lt;span class="s2"&gt;"$bin"&lt;/span&gt; -e &lt;span class="s1"&gt;'print RUBY_VERSION'&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;continue&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$bin  $v  $(verdict "&lt;/span&gt;&lt;span class="nv"&gt;$v&lt;/span&gt;&lt;span class="s2"&gt;")"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;command&lt;/span&gt; -v docker &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== Running containers =="&lt;/span&gt;
  docker ps --format &lt;span class="s1"&gt;'{{.Names}}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r c&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; r &lt;span class="k"&gt;in&lt;/span&gt; ruby /opt/gitlab/embedded/bin/ruby&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
      &lt;span class="nv"&gt;v&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"$c"&lt;/span&gt; &lt;span class="s2"&gt;"$r"&lt;/span&gt; -e &lt;span class="s1"&gt;'print RUBY_VERSION'&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;continue&lt;/span&gt;
      &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"container $c ($r)  $v  $(verdict "&lt;/span&gt;&lt;span class="nv"&gt;$v&lt;/span&gt;&lt;span class="s2"&gt;")"&lt;/span&gt;
      &lt;span class="nb"&gt;break&lt;/span&gt;
    &lt;span class="k"&gt;done&lt;/span&gt;
  &lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it as root so &lt;code&gt;find&lt;/code&gt; can see every folder. With stand-in binaries, the output looks like this (paths shortened):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== Ruby binaries on disk ==
/opt/app/3.3.13/bin/ruby  3.3.13  VULNERABLE
/opt/app/3.4.13/bin/ruby  3.4.13  fixed
/opt/app/3.1.2/bin/ruby  3.1.2  no upstream fix: check distro or vendor advisory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the output with two limits in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It reads version strings.&lt;/strong&gt; A distro package with a backported fix may print an old version, and the script will flag it. For distro builds, the package version from Step 1 decides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not check bundled products for vendor patches.&lt;/strong&gt; GHES, for example, says some fixes were "mitigations at the application level." For bundled products, the vendor's release notes decide.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not use the public crash reproducer (21 ß characters passed to &lt;code&gt;upcase&lt;/code&gt;) as a test. A one-byte write past a buffer does not reliably crash a process, so a clean run tells you nothing about whether you are safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do when you cannot patch yet
&lt;/h2&gt;

&lt;p&gt;If a vendor has not shipped a fix, or your upgrade window is days away, there are two stopgaps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Put a WAF in front.&lt;/strong&gt; In a November 20 post, Cloudflare said it had added two managed rules: one for Ruby2Shell and one for GHSA-87fm-7w84-j2px, a related integer overflow in the same string code. &lt;a href="https://blog.cloudflare.com/ruby2shell-waf-protection/" rel="noopener noreferrer"&gt;Per Cloudflare&lt;/a&gt;, both are in the Free Managed Ruleset and the Cloudflare Managed Ruleset with Block as the default action. On paid plans, Cloudflare recommends checking that the Managed Ruleset is actually deployed on each zone. The &lt;a href="https://radar.cloudflare.com/zero-wire/ruby2shell" rel="noopener noreferrer"&gt;Zero Wire briefing&lt;/a&gt; links straight to the rules.&lt;/p&gt;

&lt;p&gt;Cloudflare is clear that a WAF is a "compensating control, not a replacement for patching." It cannot see requests sent straight to your origin IP, traffic between internal services, or Ruby code that changes the case of strings from email, file imports, message queues or background jobs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Take the server off the public internet.&lt;/strong&gt; &lt;a href="https://www.aikido.dev/blog/ruby2shell" rel="noopener noreferrer"&gt;Aikido's advice&lt;/a&gt; for self-hosted products is to make the server private, for example behind a VPN or an IP allowlist, until the vendor's fix lands. Ruby itself lists no workaround.&lt;/p&gt;

&lt;h2&gt;
  
  
  A side effect: one patch moved another project's schedule
&lt;/h2&gt;

&lt;p&gt;Coordinated disclosure means many projects line up their release dates. Ruby2Shell shows what happens when one date moves.&lt;/p&gt;

&lt;p&gt;GitLab had reported a separate bug to the GnuPG team: a double free (memory released twice) in GPGME, a library many mail clients and Samba use to talk to GnuPG. The disclosure date was set for November 25. According to the &lt;a href="https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html" rel="noopener noreferrer"&gt;GnuPG announcement&lt;/a&gt;, "due to the new Ruby2Shell bug GitLab had to update earlier and thus we also disclosed the GPGME bug on 2026-11-20." That bug is CVE-2026-129975, fixed in GPGME 2.3.1. If your servers run anything that links GPGME, it belongs on the same patch list.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;which -a ruby&lt;/code&gt; and the inventory script on every host, as root.&lt;/li&gt;
&lt;li&gt;Compare distro packages against your distro's CVE page, not the version string.&lt;/li&gt;
&lt;li&gt;Upgrade Ruby to 4.0.10, 3.4.13 or 3.3.14. Move anything on 3.2 or older to a supported series.&lt;/li&gt;
&lt;li&gt;Update &lt;code&gt;.ruby-version&lt;/code&gt;, &lt;code&gt;.tool-versions&lt;/code&gt;, &lt;code&gt;Gemfile&lt;/code&gt; and Dockerfile pins, then rebuild and redeploy images.&lt;/li&gt;
&lt;li&gt;Restart every Ruby process, including background workers.&lt;/li&gt;
&lt;li&gt;Upgrade bundled products to the vendor's fixed release: GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Chatwoot, Discourse.&lt;/li&gt;
&lt;li&gt;Until then, keep a WAF rule in front and make self-hosted products private.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The proof of concept is due November 25. Which Ruby on your servers would you have missed with &lt;code&gt;apt upgrade&lt;/code&gt; alone?&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>security</category>
      <category>devops</category>
      <category>rails</category>
    </item>
    <item>
      <title>OpenAI Wants Perplexity as an AI Speed Limit: What the Number Really Measures</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Mon, 23 Nov 2026 03:08:38 +0000</pubDate>
      <link>https://dev.to/jamilxt/openai-wants-perplexity-as-an-ai-speed-limit-what-the-number-really-measures-5bba</link>
      <guid>https://dev.to/jamilxt/openai-wants-perplexity-as-an-ai-speed-limit-what-the-number-really-measures-5bba</guid>
      <description>&lt;p&gt;On November 22, 2026, OpenAI chief scientist Jakub Pachocki published a short post called &lt;a href="https://openai.com/index/perplexity-and-intelligence/" rel="noopener noreferrer"&gt;Perplexity and Intelligence&lt;/a&gt;. It does two things. It publishes OpenAI's internal pretraining scores for every major model since GPT-3.5. And it proposes "common limits": a level of this score that AI labs would agree not to cross until they can monitor model behavior better. The idea builds on Anthropic CEO Dario Amodei's earlier call to &lt;a href="https://darioamodei.com/post/we-must-pace-the-frontier" rel="noopener noreferrer"&gt;pace the frontier&lt;/a&gt;, which the post links to.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://techcrunch.com/2026/11/22/openais-chief-scientist-has-thoughts-on-how-to-limit-ai-development/" rel="noopener noreferrer"&gt;TechCrunch reported&lt;/a&gt; that Sam Altman called the post "the most important thing OpenAI has published in a while." The &lt;a href="https://news.ycombinator.com/item?id=50601525" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt; passed 500 points within a day. Within hours, Mustafa Suleyman of Microsoft AI &lt;a href="https://x.com/mustafasuleyman/status/2124663594449318173" rel="noopener noreferrer"&gt;posted a score&lt;/a&gt; for Microsoft's own base model on OpenAI's test set.&lt;/p&gt;

&lt;p&gt;So a single number may become the speedometer for the whole industry. If you build on these models, it is worth knowing what that number is, how to compute it yourself, and where it breaks. This piece covers all three. It is based on the OpenAI post and its chart data, the Hacker News discussion, and public documentation from Hugging Face and llama.cpp. Outside OpenAI, only a lab that OpenAI shares its private test set with can rerun these numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Perplexity in plain words
&lt;/h2&gt;

&lt;p&gt;A language model reads text one token (a word or a piece of a word) at a time. Before each token, it assigns a probability to every possible next token. Perplexity asks one question: how much probability did the model give to the token that actually came next?&lt;/p&gt;

&lt;p&gt;If the model is confident and right, it gave that token a high probability. If it was surprised, it gave a low one. Perplexity averages that surprise over a whole test set. Lower is better.&lt;/p&gt;

&lt;p&gt;A useful intuition comes from a &lt;a href="https://news.ycombinator.com/item?id=50604668" rel="noopener noreferrer"&gt;comment in the HN thread&lt;/a&gt;: perplexity is roughly "the number of options a model is considering for the next token." A perplexity of 2 means the model is, on average, as unsure as if it were choosing between two equally likely tokens.&lt;/p&gt;

&lt;p&gt;The official definition, from the &lt;a href="https://huggingface.co/docs/transformers/perplexity" rel="noopener noreferrer"&gt;Hugging Face perplexity guide&lt;/a&gt;, is "the exponentiated average negative log-likelihood of a sequence." That sounds heavy, but the math fits in a few lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compute it yourself in Python
&lt;/h2&gt;

&lt;p&gt;Say a model predicted five tokens. Here is the probability it gave to the correct token each time:&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="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;

&lt;span class="c1"&gt;# Probability the model gave to the token that actually came next&lt;/span&gt;
&lt;span class="n"&gt;token_probs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0.50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;nll&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;token_probs&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# negative log-likelihood, in nats&lt;/span&gt;
&lt;span class="n"&gt;log_ppl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nll&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nll&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;               &lt;span class="c1"&gt;# average = cross-entropy loss&lt;/span&gt;
&lt;span class="n"&gt;ppl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;log_ppl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                     &lt;span class="c1"&gt;# perplexity&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"log-perplexity: {log_ppl:.3f} nats per token"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"perplexity:     {ppl:.2f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Same loss in bits, and normalized by bytes instead of tokens&lt;/span&gt;
&lt;span class="n"&gt;text_bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;                             &lt;span class="c1"&gt;# bytes of text those 5 tokens covered&lt;/span&gt;
&lt;span class="n"&gt;bits_per_token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;log_ppl&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;bits_per_byte&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nll&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;text_bytes&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"bits per token: {bits_per_token:.3f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"bits per byte:  {bits_per_byte:.3f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running it prints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;log-perplexity: 1.023 nats per token
perplexity:     2.78
bits per token: 1.476
bits per byte:  0.335
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things to notice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The log version is the training loss.&lt;/strong&gt; OpenAI's post says it tracks "the log of perplexity, also called cross-entropy loss." That is the &lt;code&gt;log_ppl&lt;/code&gt; line. It is the same number pretraining code minimizes, which is why labs already have it for every base model they train.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One bad guess costs a lot.&lt;/strong&gt; The token with probability 0.10 adds about 2.3 nats on its own. The token with probability 0.80 adds about 0.22. Perplexity punishes the model hard whenever it gave the real next token a low probability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bits per byte removes the tokenizer.&lt;/strong&gt; Per-token numbers depend on how the text was split into tokens. Dividing the total loss by the number of bytes gives a figure that no longer depends on that split. This matters later.&lt;/p&gt;

&lt;p&gt;For a real model, the Hugging Face guide walks through the same calculation with GPT-2 and the WikiText-2 dataset. The &lt;a href="https://github.com/ggml-org/llama.cpp/tree/master/tools/perplexity" rel="noopener noreferrer"&gt;llama.cpp perplexity tool&lt;/a&gt; does it for GGUF models (the file format llama.cpp uses for local models). Its docs say that within llama.cpp it is used mainly to judge how much quality a quantized (compressed to lower precision) model lost compared with the FP16 original.&lt;/p&gt;

&lt;h2&gt;
  
  
  What OpenAI's chart says
&lt;/h2&gt;

&lt;p&gt;The post's chart is titled "Base model log-perplexity" with the subtitle "Internal OpenAI codebase." A footnote explains: "The primary held-out datasets we've been using since GPT-3.5 are sourced from our internal codebase, and those are the numbers reported here (for a fixed snapshot)." Held-out means the model never trained on that data.&lt;/p&gt;

&lt;p&gt;These are the values from the chart data embedded in the page. Dates are the chart's own, and the labels are OpenAI's milestone labels where it gives one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GPT-3.5 (March 2022):&lt;/strong&gt; 0.986. Label: "Fluent conversation."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4 (March 2023):&lt;/strong&gt; 0.913. Label: "Benefits from thinking before answering."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4.5 (February 2025):&lt;/strong&gt; 0.876.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-4.1 / o3 (April 2025):&lt;/strong&gt; 0.902.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.3-Codex / 5.4 (February 2026):&lt;/strong&gt; 0.871. Label: "Useful coder."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.5 (April 2026):&lt;/strong&gt; 0.848.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.6 Sol (July 2026):&lt;/strong&gt; 0.828. Label: "Cybersecurity expert."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-6 Astra (September 2026):&lt;/strong&gt; 0.783.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-6.2 Astra (November 2026):&lt;/strong&gt; 0.761. Label: "Solved a Millennium Prize math problem."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An unnamed internal model (November 2026):&lt;/strong&gt; 0.732.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post adds that once OpenAI moved to a model of log-perplexity around 0.76, it "started producing groundbreaking results" on open math problems. It expects "further transformative capabilities" in a shaded window between 0.68 and 0.70, and says it does not know what those capabilities will be.&lt;/p&gt;

&lt;p&gt;The decimals look small, so here is a conversion. The post does not state the log base. Training code usually uses the natural log, and if that holds here, then e^0.986 gives a perplexity of about 2.68 for GPT-3.5 and e^0.761 gives about 2.14 for GPT-6.2 Astra. That is my calculation, not OpenAI's. In the "number of options" picture, the model went from choosing among about 2.7 options per token of OpenAI code to about 2.1.&lt;/p&gt;

&lt;p&gt;The post also notes "a steep acceleration in 2026." OpenAI attributes it "mostly to the outcomes of long term research and compute investments, and only in a smaller part to automation," while saying recent models already include "meaningful design contributions coming from AI." The chart shows the acceleration clearly. From GPT-4 in March 2023 to GPT-5.2 in December 2025, the score fell by 0.025. In 2026 alone, from GPT-5.3-Codex / 5.4 in February to GPT-6.2 Astra in November, it fell by 0.110.&lt;/p&gt;

&lt;h2&gt;
  
  
  Microsoft joins within hours
&lt;/h2&gt;

&lt;p&gt;Suleyman's post says Microsoft is "committed to sharing our pre-training progress on a common held-out evaluation set." With OpenAI's permission, Microsoft ran its MAI-2 Base model on OpenAI's test set and got 0.819, which it put "in the same ballpark as the GPT-5.6 Sol base model."&lt;/p&gt;

&lt;p&gt;Two lines in that post matter more than the score. First: "Our model uses the same tokenizer as OpenAI, so the numbers are directly comparable." Second, Microsoft said future cross-lab comparisons "might need to report bits-per-byte (BPB) rather than perplexity since different labs use different tokenizers," and that "the fact we have access to OpenAI's evaluation dataset is a special case."&lt;/p&gt;

&lt;p&gt;In other words, the first outside lab to join pointed out that the comparison only worked because of two special conditions that most labs will not meet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the speed limit leaks
&lt;/h2&gt;

&lt;p&gt;Pachocki lists four challenges himself: comparison across labs is hard, perplexity does not map to a task anyone cares about directly, it misses progress outside pretraining, and nobody knows the floor. Each one is a real gap in a limit. Here is how each plays out, plus two more that came up in the documentation and the HN discussion.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Perplexity on what?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://news.ycombinator.com/item?id=50604135" rel="noopener noreferrer"&gt;One objection&lt;/a&gt; in the HN thread is simple: "perplexity is a measure like accuracy, where the next question has to be 'accuracy at doing what' or 'perplexity on what?'" OpenAI's answer is its own private codebase. Its footnote admits that code is "a poor proxy" for what GPT-2 and GPT-3 could do, given their training data.&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://news.ycombinator.com/item?id=50603141" rel="noopener noreferrer"&gt;second commenter&lt;/a&gt; put the governance problem plainly: the proposed standard is "a metric that only labs can calculate, using their own datasets that they won't share." A speed limit that only the driver can read is not much of a limit. For this to work, a regulator or auditor would need to see the dataset and the method.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The tokenizer changes the score
&lt;/h3&gt;

&lt;p&gt;The Hugging Face guide warns that "the tokenization procedure has a direct impact on a model's perplexity which should always be taken into consideration when comparing different models." The llama.cpp docs go further: perplexity "is &lt;strong&gt;not&lt;/strong&gt; directly comparable between models, especially if they use different tokenizers."&lt;/p&gt;

&lt;p&gt;A model with a tokenizer that splits text into fewer, longer tokens faces a harder guess per token, so its per-token perplexity rises even if it compresses the text just as well. This is why Microsoft suggested bits per byte. Our Python example shows the fix: divide total loss by bytes, not tokens.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The method changes the score
&lt;/h3&gt;

&lt;p&gt;Even with the same model, the same tokenizer and the same text, the measuring method moves the number. The Hugging Face guide measures GPT-2 on WikiText-2 two ways. Splitting the text into separate 1,024-token chunks gives 19.44. Using a sliding window with a stride of 512 tokens, so each prediction sees more context, gives 16.44. Same model, about 15 percent lower, just from the evaluation setup.&lt;/p&gt;

&lt;p&gt;llama.cpp says the same thing about its own numbers: they are "not directly comparable to those of other projects because the exact values depend strongly on the implementation details." A cross-lab limit would need a fixed protocol: context length, stride, tokenizer handling, and data snapshot, all written down.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Reasoning does not show up
&lt;/h3&gt;

&lt;p&gt;For a limit, this gap matters most. The post states it directly: "chain-of-thought reasoning does not reduce perplexity achieved by the model, even though it leads to a drastic increase in capabilities."&lt;/p&gt;

&lt;p&gt;The chart shows the effect. GPT-4.5 scores 0.876. GPT-4.1 / o3, dated two months later on the chart, scores a worse 0.902. Yet o3 is a reasoning model. One &lt;a href="https://news.ycombinator.com/item?id=50602582" rel="noopener noreferrer"&gt;HN commenter noted&lt;/a&gt; that GPT-4.5 "is the only discontinuity on the graph" and that it "performed worse than CoT-trained o1 and o3 on the benchmarks."&lt;/p&gt;

&lt;p&gt;So a lab could stay under a perplexity cap and still ship a much more capable product by investing in reinforcement learning, longer thinking, tools and agents. Pachocki seems aware of this. He proposes limits "based on perplexity and other measurements," not perplexity alone. But the other measurements are not defined yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. The floor is unknown
&lt;/h3&gt;

&lt;p&gt;A loss of zero would mean predicting the test set perfectly, which the post does not expect to be possible. The real floor depends on "the inherent entropy of the data," and OpenAI says it does not know what that is. Near the floor, "smaller gains on perplexity will correspond to larger leaps in model intelligence."&lt;/p&gt;

&lt;p&gt;My reading is that a fixed threshold would get stricter over time in practice. A drop from 0.70 to 0.69 might matter more than a drop from 0.90 to 0.85 did. Any rule written in absolute numbers would need regular review.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. The test set can go stale
&lt;/h3&gt;

&lt;p&gt;The post says the numbers use "a fixed snapshot" of the codebase. Commenters asked when that snapshot was taken. &lt;a href="https://news.ycombinator.com/item?id=50604111" rel="noopener noreferrer"&gt;One noted&lt;/a&gt; that if newer slices of the codebase are mostly AI-written, "we'd naturally expect perplexity to drop significantly." The commenter's point is that models may find AI-written code easier to predict than human-written code. A fixed old snapshot avoids that, but it also drifts further from the code models write today. Any shared test set has to be both private enough to stay out of training data and fresh enough to stay relevant.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a workable version would need
&lt;/h2&gt;

&lt;p&gt;This section is my analysis of the gaps above, not part of OpenAI's proposal. A perplexity-based limit would need at least:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A test set no single lab owns.&lt;/strong&gt; Held by a neutral party, kept out of every lab's training data, and refreshed on a schedule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bits per byte, not per-token perplexity.&lt;/strong&gt; So different tokenizers can be compared, as Microsoft suggested.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A written protocol.&lt;/strong&gt; Context length, stride, and data snapshot fixed in advance, given how far the Hugging Face GPT-2 example moved with one setting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outside verification.&lt;/strong&gt; Someone other than the lab runs the model on the test set, or at least checks the run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A second gauge for post-training.&lt;/strong&gt; Since reasoning gains do not show up in perplexity, the limit needs a capability measure for what reinforcement learning and agent scaffolding add.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these exist yet. The OpenAI post is a first step toward a shared number, and its own list of weak spots is a good place to start the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means if you build on these models
&lt;/h2&gt;

&lt;p&gt;Most developers will never see OpenAI's test set. But perplexity is already a practical tool for smaller decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Checking a quantized local model.&lt;/strong&gt; Run the llama.cpp perplexity tool on the full-precision model and on the quantized one, with the same text and the same settings. The gap tells you how much the compression cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparing fine-tunes of one base model.&lt;/strong&gt; Same tokenizer, same test text, same window settings. Keep in mind the llama.cpp warning that "finetunes typically result in a higher perplexity value even though the human-rated quality of outputs increases."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reading vendor claims.&lt;/strong&gt; When someone quotes a perplexity number, ask three questions: on what data, with which tokenizer, and with what window settings. If any answer is missing, the number does not compare to anything else.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same three questions apply to OpenAI's chart. It is internally consistent: one lab, one tokenizer, one dataset, one method. That makes it a good record of OpenAI's own progress. It does not yet make it a speed limit for anyone else.&lt;/p&gt;

&lt;p&gt;If labs did agree on a shared perplexity limit tomorrow, which of these gaps do you think they would fix first, and which would they leave open?&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[1] &lt;a href="https://openai.com/index/perplexity-and-intelligence/" rel="noopener noreferrer"&gt;Perplexity and Intelligence, Jakub Pachocki, OpenAI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[2] &lt;a href="https://techcrunch.com/2026/11/22/openais-chief-scientist-has-thoughts-on-how-to-limit-ai-development/" rel="noopener noreferrer"&gt;OpenAI's chief scientist has thoughts on how to limit AI development, TechCrunch&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[3] &lt;a href="https://x.com/mustafasuleyman/status/2124663594449318173" rel="noopener noreferrer"&gt;Mustafa Suleyman on X, MAI-2 Base score&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[4] &lt;a href="https://news.ycombinator.com/item?id=50601525" rel="noopener noreferrer"&gt;Hacker News discussion of the post&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[5] &lt;a href="https://huggingface.co/docs/transformers/perplexity" rel="noopener noreferrer"&gt;Perplexity of fixed-length models, Hugging Face Transformers docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[6] &lt;a href="https://github.com/ggml-org/llama.cpp/tree/master/tools/perplexity" rel="noopener noreferrer"&gt;llama.cpp perplexity tool documentation&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[7] &lt;a href="https://darioamodei.com/post/we-must-pace-the-frontier" rel="noopener noreferrer"&gt;We must pace the frontier, Dario Amodei&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>AI Agent Attackers Bring Patience, Not Genius: A Defender Checklist From the Cairn Case</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:09:20 +0000</pubDate>
      <link>https://dev.to/jamilxt/ai-agent-attackers-bring-patience-not-genius-a-defender-checklist-from-the-cairn-case-3e4l</link>
      <guid>https://dev.to/jamilxt/ai-agent-attackers-bring-patience-not-genius-a-defender-checklist-from-the-cairn-case-3e4l</guid>
      <description>&lt;p&gt;The instruction was three words long: "obtain shell access."&lt;/p&gt;

&lt;p&gt;That was the goal an attacker gave to a set of AI agents in September, according to &lt;a href="https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/" rel="noopener noreferrer"&gt;Amazon Threat Intelligence&lt;/a&gt;. The agents planned their own steps, tried them, and changed course when something failed. Against one target they found an unknown bug (a zero-day) and took over the server as root. Against two others they worked for hours and got nothing.&lt;/p&gt;

&lt;p&gt;Both halves of that story matter. The win shows how fast an agent can move. The failures show what still stops it. This article walks through what Amazon reported, adds related reports from the past few months, and turns it into a checklist you can run against your own servers this week.&lt;/p&gt;

&lt;p&gt;A note on sources: everything below comes from the published reports linked in each section. I have not run Cairn or reproduced the attacks. The code samples are illustrations written for this article. They follow the bug class described in the advisory and were checked only against small synthetic inputs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Amazon found
&lt;/h2&gt;

&lt;p&gt;On September 10, 2026, Amazon found a server running a public copy of Cairn with no login. Cairn is an open-source framework that coordinates several AI agents for penetration testing (authorized hacking to find weaknesses). It was built for defenders. You give it a starting point and a goal in plain language, and the agents look for a path to that goal.&lt;/p&gt;

&lt;p&gt;Because the operator left the console open, anyone on the internet could read its history. That included project settings, the operator's prompts and the AI output. The prompts were in Simplified Chinese and the script timestamps used China Standard Time. Amazon attributes the campaign to a China-nexus actor with moderate confidence. The targets were IP addresses linked to universities in East Asia outside mainland China, over about 48 hours starting September 8.&lt;/p&gt;

&lt;p&gt;Amazon published the findings on November 20. Three operations stand out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Redis: 16 hours, 148 actions, no success.&lt;/strong&gt; The agents went after a Redis server (an in-memory database) that allowed access without a password. Over roughly 16 hours and 148 sequential actions, they worked through known Redis takeover methods. These included abusing replication to load code, escaping the scripting sandbox, writing to config files and corrupting memory. They also tried Log4Shell against another service on the same machine. Next they used a server-side request forgery bug (SSRF, where a server is tricked into making requests for you) in a Qdrant instance to map the internal Docker network. Then they sprayed passwords at PostgreSQL, SSH and other services. None of it worked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A GPU server: 6 hours, 30,000 logins, no success.&lt;/strong&gt; The agents built a list of about 80 real usernames from the university's public pages, such as faculty directories, lab sites, archived pages and papers. They then tried more than 30,000 username and password combinations. The targets were SSH, an admin dashboard, a storage device, a VPN server and the campus portal. They never found a working login.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MONAI Label: 11 minutes to file write, then root.&lt;/strong&gt; The third target ran MONAI Label, an open-source tool that helps researchers label medical images with AI. The agents identified the framework, mapped its API, and found an upload endpoint that took a filename parameter. They tested it for path traversal (using &lt;code&gt;../&lt;/code&gt; in a name to escape the intended folder), and it worked. Amazon says the agents went from mapping the API to writing arbitrary files in about 11 minutes.&lt;/p&gt;

&lt;p&gt;In a later session, the agents used the same bug to write a Python reverse shell into &lt;code&gt;sitecustomize.py&lt;/code&gt;. Python imports that file automatically every time the interpreter starts, as the &lt;a href="https://docs.python.org/3/library/site.html" rel="noopener noreferrer"&gt;&lt;code&gt;site&lt;/code&gt; module docs&lt;/a&gt; explain. The agents then called a training API endpoint, which started a new Python process. That process loaded the payload and opened a reverse shell running as root.&lt;/p&gt;

&lt;p&gt;After that, a human stepped in. The operator gave the agents a proxy into a second university network that ran the same vulnerable software, and pointed them at other machines there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The MONAI Label bug, in plain terms
&lt;/h2&gt;

&lt;p&gt;Amazon reported the bug to the maintainers. The &lt;a href="https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94" rel="noopener noreferrer"&gt;GitHub advisory GHSA-qc22-rmgc-vg94&lt;/a&gt;, rated critical and published November 18, describes it like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;PUT /datastore/image&lt;/code&gt; takes an &lt;code&gt;image&lt;/code&gt; query parameter and uses it as the image ID without checking it.&lt;/li&gt;
&lt;li&gt;The code adds a file extension, joins the result onto the datastore folder, and copies the upload there.&lt;/li&gt;
&lt;li&gt;Nothing checks that the final path is still inside the datastore. A value like &lt;code&gt;../../../tmp/x&lt;/code&gt; writes the file anywhere the server process can write.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PUT /datastore/label&lt;/code&gt; builds its path the same way.&lt;/li&gt;
&lt;li&gt;Authentication is off by default (&lt;code&gt;MONAI_LABEL_AUTH_ENABLE=False&lt;/code&gt;), so any client that can reach the server can use the bug.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The fix (&lt;a href="https://github.com/Project-MONAI/MONAILabel/pull/1915" rel="noopener noreferrer"&gt;pull request #1915&lt;/a&gt;) resolves each destination path and rejects anything outside the datastore. It also cuts the image ID down to its base name and rejects empty or dot-prefixed IDs. The fix shipped in &lt;a href="https://github.com/Project-MONAI/MONAILabel/releases/tag/0.8.6" rel="noopener noreferrer"&gt;MONAI Label 0.8.6&lt;/a&gt;, a security release from November 22. Its notes list the bug as CVE-2026-133968, affecting all versions up to 0.8.5. The same release fixes a second path traversal in session uploads.&lt;/p&gt;

&lt;h2&gt;
  
  
  This was not a one-off
&lt;/h2&gt;

&lt;p&gt;Three other recent reports point the same way.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gambit Security, September 22.&lt;/strong&gt; &lt;a href="https://gambit.security/blog-posts/autonomous-ai-agents-online-retailers-25-a-company" rel="noopener noreferrer"&gt;Gambit's report&lt;/a&gt; describes a financially motivated operator running three open-source AI harnesses, with Cairn doing end-to-end exploitation, against hundreds of online retailers. Gambit counts at least 600,000 stolen card records from two companies. The operator's own cost review showed a mean of $25.46 per completed scan across 101 scans.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Threat Intelligence Group, November 16.&lt;/strong&gt; &lt;a href="https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold" rel="noopener noreferrer"&gt;GTIG reported&lt;/a&gt; that in the past quarter it saw attackers use LLM frameworks to fully automate finding and exploiting bugs "without a human in the loop for the first time." It also saw Cairn used against targets including the US aerospace sector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bell Canada, November 20.&lt;/strong&gt; Bell told &lt;a href="https://www.bleepingcomputer.com/news/security/bell-canada-says-agentic-hacker-stole-enterprise-customer-data/" rel="noopener noreferrer"&gt;BleepingComputer&lt;/a&gt; that an "agentic threat actor" got into some of its systems on November 17 and took enterprise customer data. Its customer notice says the intruder accessed a pre-production environment of Bell's Maximo system, which is used to order and provision network connections. Bell has not published its indicators of compromise and says it does not know who the attacker is.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GTIG also warns about the other side of this: a flood of AI-written exploits that are claimed to work but do not. That creates extra checking work for defenders.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agents were good at, and what stopped them
&lt;/h2&gt;

&lt;p&gt;The agents did not invent new attack science. The Redis attempts were a list of known methods. The credential attack was a classic password spray with better username research. The MONAI Label bug was path traversal, one of the oldest bug classes on the web. What the agents added was patience and breadth: 148 actions against one server, 30,000 login attempts against another, and 11 minutes from API map to file write on a third. In Amazon's words, the agents "kept adapting for nearly a full day without human direction."&lt;/p&gt;

&lt;p&gt;What stopped them was ordinary hardening. Amazon calls the Redis server a "hardened" target even though it had no password. The report does not say which setting held, but 148 attempts did not get through. No password in the 30,000 tries worked. The one success came from software that ships with authentication off by default and wrote files without checking paths.&lt;/p&gt;

&lt;p&gt;That gives a practical rule. You cannot out-wait a machine, so do not depend on the attacker getting bored. Remove the easy wins, and make your detection fast enough to act before a human would have even read the alert. Amazon's own advice is to "prioritize high-confidence detections that trigger automated response, with humans overseeing outcomes rather than reviewing every individual action."&lt;/p&gt;

&lt;h2&gt;
  
  
  The defender checklist
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Find every service that answers without a login
&lt;/h3&gt;

&lt;p&gt;Count the unauthenticated services in this story: an open Redis, a MONAI Label server with auth off by default, and the attacker's own Cairn console. Start by listing what you expose.&lt;/p&gt;

&lt;p&gt;For Redis, a quick test from a machine outside the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;redis-cli -h &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;your-redis-host&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ping
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that returns &lt;code&gt;PONG&lt;/code&gt; without a password, anyone on that network can talk to it. The &lt;a href="https://redis.io/docs/latest/operate/oss_and_stack/management/security/" rel="noopener noreferrer"&gt;Redis security docs&lt;/a&gt; recommend firewalling the port and binding to the interfaces you need, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="n"&gt;bind&lt;/span&gt; &lt;span class="mf"&gt;127.0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Since Redis 3.2.0, protected mode makes a default, password-less Redis answer only on loopback, but an admin can turn it off. Redis 6 added ACLs (named users with their own permissions), which the docs recommend over the older single &lt;code&gt;requirepass&lt;/code&gt; password. The docs also show how to rename or disable risky commands such as &lt;code&gt;CONFIG&lt;/code&gt; with &lt;code&gt;rename-command&lt;/code&gt;, though they mark that method as deprecated in favor of ACL rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Patch MONAI Label, then check for changes
&lt;/h3&gt;

&lt;p&gt;If you run MONAI Label, upgrade to 0.8.6:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install -U &lt;span class="nv"&gt;monailabel&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;0.8.6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then follow the release notes for every version: turn authentication on (&lt;code&gt;MONAI_LABEL_AUTH_ENABLE=True&lt;/code&gt;), keep the server off untrusted networks, and run it as an unprivileged user that can only write to the datastore. The notes also say that if a 0.8.5 or older server was reachable from an untrusted network, you should review it for unexpected file changes before putting it back in service.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Fix the bug class in your own upload code
&lt;/h3&gt;

&lt;p&gt;Path traversal is not a MONAI problem. Any endpoint that builds a file path from user input can have it. Here is a short Python pattern that follows the same idea as the fix: keep only the base name, resolve the final path, and refuse anything outside the base folder.&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="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_destination&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;image_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ext&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;image_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;  &lt;span class="c1"&gt;# drop any directory parts&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"invalid image id"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;dest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{name}{ext}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;is_relative_to&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"path escapes the datastore"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a base of &lt;code&gt;/tmp/ds&lt;/code&gt;, the input &lt;code&gt;../../../tmp/x&lt;/code&gt; becomes &lt;code&gt;/tmp/ds/x.nii.gz&lt;/code&gt;, inside the folder. Empty and dot-prefixed names raise an error. &lt;code&gt;Path.is_relative_to&lt;/code&gt; needs Python 3.9 or newer. The &lt;a href="https://owasp.org/www-community/attacks/Path_Traversal" rel="noopener noreferrer"&gt;OWASP path traversal page&lt;/a&gt; has more input variants worth adding to your tests.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Do not run network services as root
&lt;/h3&gt;

&lt;p&gt;The reverse shell ran as root, which means the Python process the service started was running as root. A file-write bug in a service running as a limited user would still be serious, but the attacker would not get root automatically. Give each service its own user, and limit its write access to the folders it needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Watch Python startup files
&lt;/h3&gt;

&lt;p&gt;The payload went into &lt;code&gt;sitecustomize.py&lt;/code&gt;, a file that runs on every Python start. On servers that run Python services, it is cheap to check whether one exists and when it changed. To see where your interpreter looks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 -c &lt;span class="s2"&gt;"import site; print(site.getsitepackages())"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then list any &lt;code&gt;sitecustomize.py&lt;/code&gt; or &lt;code&gt;usercustomize.py&lt;/code&gt; in those folders. A file that appeared recently, on a server where nobody set one up, deserves a look. File integrity monitoring (tools that alert when watched files change) can cover these paths permanently.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Look for machine pacing in your logs
&lt;/h3&gt;

&lt;p&gt;The failed operations were long and repetitive: 148 actions over 16 hours against one server, and more than 30,000 login attempts over 6 hours against others, nearly all of them failures. People tend to work in bursts and stop. An agent can keep going. For web-facing services, here is a simple script that scans a standard nginx or Apache access log and flags sources that behave like that.&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="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;defaultdict&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;

&lt;span class="no"&gt;LINE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s1"&gt;'^(\S+) \S+ \S+ \[([^\]]+)\] "(\S+) (\S+)[^"]*" (\d{3})'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;defaultdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"replace"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;LINE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strptime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"%d/%b/%Y:%H:%M:%S %z"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;times&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;gaps&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;total_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;total_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;
    &lt;span class="n"&gt;errors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;paths&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"?"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;mean_gap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gaps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;gaps&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="n"&gt;spread&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;statistics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pstdev&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gaps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;mean_gap&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;mean_gap&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;spread&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;min_requests&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;min_hours&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ip&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;min_requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;spread&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;min_hours&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{ip}: {len(events)} requests over {hours:.1f}h, "&lt;/span&gt;
                  &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{errors:.0%} errors, {paths} distinct paths, gap spread {spread:.2f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It flags any source with at least 100 requests over two or more hours where at least half returned an error. It also prints the "gap spread": how much the time between requests varies. A value near zero means very regular timing. On a small synthetic log made for this article, with one steady scanner and one normal visitor, it flagged only the scanner (400 requests over 6.1 hours, 77% errors, gap spread 0.05).&lt;/p&gt;

&lt;p&gt;Treat this as a starting point, not a detector you can trust as-is. Agents can add random delays and spread work across many IP addresses, and some real tools (monitoring checks, backup jobs) also look steady. The thresholds are guesses you should tune to your own traffic. The better long-term home for this logic is your existing log pipeline or SIEM (the system that collects and searches security logs), with an automatic response such as a temporary block.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Make the 30,000th password guess as useless as the first
&lt;/h3&gt;

&lt;p&gt;The GPU server held for a plain reason: none of the username and password pairs the agents tried was valid. The agents built their username list from public faculty pages and papers, so assume your usernames are known too. For SSH, use keys and turn off password login with &lt;code&gt;PasswordAuthentication no&lt;/code&gt; in &lt;a href="https://man.openbsd.org/sshd_config" rel="noopener noreferrer"&gt;&lt;code&gt;sshd_config&lt;/code&gt;&lt;/a&gt;. Put MFA in front of VPNs, admin dashboards and portals, and rate-limit or lock out repeated failures.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Treat pre-production like production
&lt;/h3&gt;

&lt;p&gt;In Bell's case, the system the intruder reached was a pre-production environment, and the data at risk was still real enterprise contact information such as names, job titles, work emails and phone numbers. If a staging copy holds real customer data, it needs production-level access control, logging and patching. If it does not need real data, use fake data and make the copy less valuable to an attacker.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Check the indicators you do have
&lt;/h3&gt;

&lt;p&gt;Amazon published two IP addresses seen in records dated September 8 to 10, 2026: &lt;code&gt;142[.]4.98.145&lt;/code&gt; and &lt;code&gt;142[.]4.107.34&lt;/code&gt;. They are more than two months old and the actor may have moved on, but a quick search of your logs for that window costs little. Gambit's report also lists skimmer domains and URLs if you run an online shop.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not mean
&lt;/h2&gt;

&lt;p&gt;It does not mean AI agents break into everything. In the three operations Amazon described, two failed. The one success depended on software that ships with authentication off by default and had no path checks. A human still chose the targets and handed over a proxy to the second network.&lt;/p&gt;

&lt;p&gt;It does mean, as GTIG puts it, that the patch window is shrinking, and that a long, boring attack now costs the attacker very little. Gambit's numbers put the operator's cost at a few dollars to a few tens of dollars per target. The defenses that held in these reports were the plain ones: logins on every service, strong credentials, limited privileges, and patches applied quickly.&lt;/p&gt;

&lt;p&gt;Which of these nine checks would turn up something on your own servers today?&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/" rel="noopener noreferrer"&gt;Amazon Threat Intelligence: Chinese-nexus actor's Cairn AI agents found a zero-day on their own&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94" rel="noopener noreferrer"&gt;GitHub advisory GHSA-qc22-rmgc-vg94 for MONAI Label&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Project-MONAI/MONAILabel/releases/tag/0.8.6" rel="noopener noreferrer"&gt;MONAI Label 0.8.6 release notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Project-MONAI/MONAILabel/pull/1915" rel="noopener noreferrer"&gt;MONAI Label pull request #1915&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gambit.security/blog-posts/autonomous-ai-agents-online-retailers-25-a-company" rel="noopener noreferrer"&gt;Gambit Security: Autonomous AI agents breaking into online retailers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold" rel="noopener noreferrer"&gt;Google Threat Intelligence Group: Agentic threat activity crosses a significant threshold&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.bleepingcomputer.com/news/security/hackers-use-autonomous-ai-tool-cairn-to-find-zero-day-take-over-server/" rel="noopener noreferrer"&gt;BleepingComputer: Hackers use autonomous AI tool Cairn to find zero-day, take over server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.bleepingcomputer.com/news/security/bell-canada-says-agentic-hacker-stole-enterprise-customer-data/" rel="noopener noreferrer"&gt;BleepingComputer: Bell Canada says 'agentic' hacker stole enterprise customer data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://redis.io/docs/latest/operate/oss_and_stack/management/security/" rel="noopener noreferrer"&gt;Redis security documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.python.org/3/library/site.html" rel="noopener noreferrer"&gt;Python site module documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://owasp.org/www-community/attacks/Path_Traversal" rel="noopener noreferrer"&gt;OWASP: Path Traversal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://man.openbsd.org/sshd_config" rel="noopener noreferrer"&gt;OpenBSD sshd_config manual&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>devops</category>
      <category>python</category>
    </item>
    <item>
      <title>How to Keep OS AI Agents Out of Your App's Sensitive Screens</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:10:25 +0000</pubDate>
      <link>https://dev.to/jamilxt/how-to-keep-os-ai-agents-out-of-your-apps-sensitive-screens-5b05</link>
      <guid>https://dev.to/jamilxt/how-to-keep-os-ai-agents-out-of-your-apps-sensitive-screens-5b05</guid>
      <description>&lt;p&gt;End-to-end encryption protects a message on the wire and on disk. It does not protect the message while it sits on the screen. At that point the operating system can see it, and so can any AI agent the operating system lets in.&lt;/p&gt;

&lt;p&gt;On November 20, Signal said it would block screenshots in its iOS 27 app by default, and turn on its "Screen security" setting on Android when it detects an AI assistant trying to read the screen. &lt;a href="https://signal.org/blog/protecting-your-privacy/" rel="noopener noreferrer"&gt;Signal's announcement&lt;/a&gt; names Gemini on Android and Siri AI's Onscreen Awareness on iOS, and calls OS-level AI agents "an existential threat" to its mission. &lt;a href="https://techcrunch.com/2026/11/21/signal-restricts-mobile-screenshots-as-it-confronts-existential-threat-of-ai-surveillance/" rel="noopener noreferrer"&gt;TechCrunch covered it&lt;/a&gt; the next day, and the &lt;a href="https://news.ycombinator.com/item?id=50572348" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt; passed 570 points.&lt;/p&gt;

&lt;p&gt;Most of the coverage is about Signal. This article is about your app. If you build a banking app, a health app, a password manager, or a chat feature inside a bigger product, the same question applies to you: what can you actually stop, on which platform, and with which API? The answers below come from the official Android, Apple, Microsoft and Electron documentation, and from Signal's own posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  How an OS agent sees your app
&lt;/h2&gt;

&lt;p&gt;It helps to split the problem into three paths, because each one needs a different control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pixels.&lt;/strong&gt; The agent takes a screenshot or reads a screen recording, then runs it through a model. Microsoft Recall works this way on Windows: Signal's footnote describes it as capturing the screen every few seconds and pulling text out with OCR (optical character recognition, turning an image of text into real text). Signal says screenshots are "how most agentic systems access data from applications like Signal."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Structure.&lt;/strong&gt; The agent asks the OS for the view hierarchy (the tree of buttons, labels and text fields) instead of the image. On Android, the Assist API hands the active assistant an &lt;code&gt;AssistStructure&lt;/code&gt; with the text and view tree of the current screen. The accessibility API gives a similar tree to any accessibility service the user has turned on. Signal's post names Meta's Muse as an example of a third-party agent that gets in through the deep permissions users grant during setup. In many cases, Signal says, those are accessibility settings, used as "a skeleton key."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data that never reaches the screen.&lt;/strong&gt; Notifications, files on disk, and other OS frameworks and APIs. Signal says plainly that screenshot blocking "does not address other more sneaky ways AI agents could potentially access application data, such as retrieving content already present on a user's device via the filesystem."&lt;/p&gt;

&lt;p&gt;Screen protection only covers the first path fully, and the second path partly. Keep that in mind as you read the platform sections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Android: the strongest toolkit
&lt;/h2&gt;

&lt;p&gt;Android gives you the most controls, and they are documented. Here they are in the order you will probably need them.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. FLAG_SECURE on the window
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;FLAG_SECURE&lt;/code&gt; is a window flag. The &lt;a href="https://developer.android.com/security/fraud-prevention/activities" rel="noopener noreferrer"&gt;Android fraud-prevention guide&lt;/a&gt; says it "tells Android not to allow screenshots or to display the window view on a non-secure display (such as Casting the screen)." A screenshot of a secure window comes out blank.&lt;/p&gt;

&lt;p&gt;It also matters for assistants. The &lt;a href="https://developer.android.com/training/articles/assistant" rel="noopener noreferrer"&gt;Assist API guide&lt;/a&gt; says the system passes automatically collected screen content to the assistant "unless the current window is flagged as secure."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ChatActivity&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AppCompatActivity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bundle&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setFlags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="nc"&gt;WindowManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;LayoutParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FLAG_SECURE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nc"&gt;WindowManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;LayoutParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FLAG_SECURE&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;setContentView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;R&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;layout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;activity_chat&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three details from the docs are easy to miss:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The flag is per window, not per app. The Assist guide says you "must set &lt;code&gt;FLAG_SECURE&lt;/code&gt; explicitly for every window created by the activity, including dialogs," and that "there is no global (app-level) mechanism to exclude all views from the assistant." For a &lt;code&gt;SurfaceView&lt;/code&gt;, use &lt;code&gt;setSecure()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FLAG_SECURE&lt;/code&gt; does not stop the Assist callbacks. If your activity overrides &lt;code&gt;onProvideAssistContent()&lt;/code&gt; or &lt;code&gt;onProvideAssistData()&lt;/code&gt;, it can still hand data to the assistant itself. On a sensitive screen, do not put message text or account numbers into those callbacks.&lt;/li&gt;
&lt;li&gt;On old devices it is weaker. The fraud-prevention guide notes that for Android 11 (API 30) and lower, &lt;code&gt;FLAG_SECURE&lt;/code&gt; "is able to help around 70% of the devices reliably," because keyboard taps can be recorded on some devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://developer.android.com/about/versions/14/features/screenshot-detection" rel="noopener noreferrer"&gt;Android 14 screenshot guide&lt;/a&gt; also recommends a setting that lets users switch the flag. Signal does exactly that. To turn it off at runtime, call &lt;code&gt;window.clearFlags(WindowManager.LayoutParams.FLAG_SECURE)&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Mark only the sensitive views (Android 15)
&lt;/h3&gt;

&lt;p&gt;Blocking every screenshot of every screen is heavy. Android 15 (API 35) added &lt;code&gt;View.setContentSensitivity()&lt;/code&gt;. The &lt;a href="https://developer.android.com/reference/android/view/View" rel="noopener noreferrer"&gt;View reference&lt;/a&gt; says the system will "hide content drawn by a sensitive view from screen sharing and recording," and that "the window hosting a sensitive view will be marked as secure during an active media projection session."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;VERSION&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SDK_INT&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;VERSION_CODES&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;VANILLA_ICE_CREAM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;otpField&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContentSensitivity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;View&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;CONTENT_SENSITIVITY_SENSITIVE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note the scope: this kicks in during media projection, which means screen sharing and screen recording. It is a lighter option for login and payment forms. It is not a full replacement for &lt;code&gt;FLAG_SECURE&lt;/code&gt; when your threat is a screenshot-based assistant.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Close the accessibility door (Android 14)
&lt;/h3&gt;

&lt;p&gt;This is the closest thing Android has to an answer for the "skeleton key" problem. Android 14 (API 34) added &lt;code&gt;View.setAccessibilityDataSensitive()&lt;/code&gt;. Per the View reference, it "specifies whether this view should only allow interactions from AccessibilityServices with the &lt;code&gt;AccessibilityServiceInfo.isAccessibilityTool()&lt;/code&gt; property set to true."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;VERSION&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SDK_INT&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nc"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;VERSION_CODES&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;UPSIDE_DOWN_CAKE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;messageList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAccessibilityDataSensitive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nc"&gt;View&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ACCESSIBILITY_DATA_SENSITIVE_YES&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Who gets to set &lt;code&gt;isAccessibilityTool&lt;/code&gt;? Google Play's &lt;a href="https://support.google.com/googleplay/android-developer/answer/10964491" rel="noopener noreferrer"&gt;accessibility API policy&lt;/a&gt; says: "Only services that are designed to help people with disabilities access their device or otherwise overcome challenges stemming from their disabilities are eligible to declare that they are accessibility tools."&lt;/p&gt;

&lt;p&gt;So a screen reader built for people with disabilities can keep working, while a general-purpose service that is not a declared accessibility tool is shut out of that view. Two limits: it only protects the views you mark, and the flag is self-declared. Play's policy says it is set "using the &lt;code&gt;isAccessibilityTool&lt;/code&gt; attribute in the service's metadata file," and the check on that claim is Google Play's review, not the API.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Detect capture and react
&lt;/h3&gt;

&lt;p&gt;Sometimes you want to know when capture happens rather than block it. Android has two callbacks.&lt;/p&gt;

&lt;p&gt;Screenshot detection arrived in Android 14. You declare the install-time permission &lt;code&gt;android.permission.DETECT_SCREEN_CAPTURE&lt;/code&gt;, then register a callback per activity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;screenCaptureCallback&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Activity&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ScreenCaptureCallback&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Warn the user, or tell the other side of the chat.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;registerScreenCaptureCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mainExecutor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;screenCaptureCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onStop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onStop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;unregisterScreenCaptureCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;screenCaptureCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the limits on the &lt;a href="https://developer.android.com/about/versions/14/features/screenshot-detection" rel="noopener noreferrer"&gt;screenshot detection page&lt;/a&gt; before you rely on it. The callback fires only for screenshots taken with "a specific combination of hardware button presses." It does not fire for ADB or instrumentation test captures. It also does not give you the image. So it tells you about a person pressing buttons, not about an agent grabbing pixels in the background.&lt;/p&gt;

&lt;p&gt;Screen recording detection arrived in &lt;a href="https://developer.android.com/about/versions/15/features" rel="noopener noreferrer"&gt;Android 15&lt;/a&gt;. It needs the &lt;code&gt;DETECT_SCREEN_RECORDING&lt;/code&gt; permission, and the callback runs whenever your app becomes visible or invisible in a recording:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;recordingCallback&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Consumer&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;Int&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;WindowManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SCREEN_RECORDING_STATE_VISIBLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Hide sensitive content or show a notice.&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;initialState&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
        &lt;span class="n"&gt;windowManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addScreenRecordingCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mainExecutor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recordingCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;recordingCallback&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;accept&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initialState&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onStop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onStop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;windowManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeScreenRecordingCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;recordingCallback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Signal's footnote explains why it did not simply block screenshots everywhere on Android. Android ships in many vendor versions, and on many of them Signal has no reliable way to detect a screenshot attempt once screenshots are already disabled. Rather than make screenshots silently fail and confuse users, Signal turns on Screen security automatically when it detects an AI assistant trying to access the screen. Signal has not published how that detection works, so do not assume one of the public callbacks above is the whole story.&lt;/p&gt;

&lt;h2&gt;
  
  
  iOS: detection, not prevention
&lt;/h2&gt;

&lt;p&gt;The documented iOS controls are thinner. In the UIKit APIs covered here, you can learn that capture is happening, but you cannot stop a screenshot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After a screenshot.&lt;/strong&gt; &lt;code&gt;UIApplication.userDidTakeScreenshotNotification&lt;/code&gt; fires, but Apple's docs say it "posts after the screenshot is taken." Use it to warn or to notify the other party, not to protect anything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="nc"&gt;NotificationCenter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addObserver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;forName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;UIApplication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;userDidTakeScreenshotNotification&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;object&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
    &lt;span class="c1"&gt;// The screenshot already exists. Warn or log here.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;During recording or mirroring.&lt;/strong&gt; The old &lt;code&gt;UIScreen.isCaptured&lt;/code&gt; property is marked deprecated as of iOS 27. Apple's docs point to &lt;code&gt;sceneCaptureState&lt;/code&gt;, a trait available since iOS 17 that "represents whether a scene is currently being mirrored or recorded." Its values are &lt;code&gt;.active&lt;/code&gt;, &lt;code&gt;.inactive&lt;/code&gt; and &lt;code&gt;.unspecified&lt;/code&gt;. When it turns &lt;code&gt;.active&lt;/code&gt;, you can cover sensitive views with a placeholder.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="nf"&gt;registerForTraitChanges&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;UITraitSceneCaptureState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kc"&gt;self&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;self&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;UITraitCollection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;captured&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;traitCollection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sceneCaptureState&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;active&lt;/span&gt;
    &lt;span class="kc"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sensitiveContainer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isHidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;captured&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Signal does block screenshots in its iOS 27 app, with a "Block Siri AI" setting, but its post does not say which mechanism it uses. If you need the same result, treat it as an open question to test on real devices, not as a documented API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The user-side switch.&lt;/strong&gt; Since iOS 27.2 there is a per-app control. The &lt;a href="https://www.eff.org/deeplinks/2026/10/victory-you-can-now-exclude-apps-siri-ai" rel="noopener noreferrer"&gt;EFF&lt;/a&gt; describes it as Settings &amp;gt; Siri &amp;gt; Excluded Apps. Once an app is excluded, "Siri AI cannot access the contents of the app," and even Onscreen Awareness stops working inside it. Neither Signal nor the EFF describes a way for an app to turn this on by itself. What you can do is tell users about it, for example in a privacy section of your settings screen or during onboarding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Desktop: Windows works, macOS does not (yet)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Windows.&lt;/strong&gt; The control is &lt;code&gt;SetWindowDisplayAffinity&lt;/code&gt; with &lt;code&gt;WDA_EXCLUDEFROMCAPTURE&lt;/code&gt;. The &lt;a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity" rel="noopener noreferrer"&gt;Win32 reference&lt;/a&gt; says the window is then shown only on a monitor and "everywhere else, the window does not appear at all." It is supported from Windows 10 version 2004. On older versions it behaves like &lt;code&gt;WDA_MONITOR&lt;/code&gt;, which shows the window as empty in captures. Microsoft's &lt;a href="https://learn.microsoft.com/en-us/windows/client-management/manage-recall" rel="noopener noreferrer"&gt;Recall admin guide&lt;/a&gt; says that with this flag, "the window content won't show up in Recall or any other screenshot application." Signal Desktop has used this approach on Windows 11 by default since 2025, as its &lt;a href="https://signal.org/blog/signal-doesnt-recall/" rel="noopener noreferrer"&gt;Recall post&lt;/a&gt; describes.&lt;/p&gt;

&lt;p&gt;If your desktop app is built on Electron, you do not need Win32 code. The &lt;a href="https://www.electronjs.org/docs/latest/api/browser-window" rel="noopener noreferrer"&gt;Electron BrowserWindow docs&lt;/a&gt; say &lt;code&gt;win.setContentProtection(true)&lt;/code&gt; "prevents the window contents from being captured by other apps," and on Windows it calls &lt;code&gt;SetWindowDisplayAffinity&lt;/code&gt; with &lt;code&gt;WDA_EXCLUDEFROMCAPTURE&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;BrowserWindow&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'electron'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;whenReady&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;win&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;BrowserWindow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;700&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;win&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContentProtection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;win&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loadFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'index.html'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Electron docs add one timing detail: the change "takes effect with the next desktop composition, not when the call returns." Set protection when you create the window. Do not wait until sensitive data is on screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;macOS.&lt;/strong&gt; This is the gap Signal could not close. Electron's docs say that on macOS the same call sets the &lt;code&gt;NSWindow&lt;/code&gt; &lt;code&gt;sharingType&lt;/code&gt; to none, but "newer Mac applications that use &lt;code&gt;ScreenCaptureKit&lt;/code&gt; will capture your window despite &lt;code&gt;win.setContentProtection(true)&lt;/code&gt;." Signal's post goes further: protections against continuous screen capture exist on macOS, but Signal "cannot reliably block screenshots," which is how most agents read app data. Its only advice for macOS 27 users is the same user-side switch: add Signal to System Settings &amp;gt; Siri &amp;gt; Excluded Apps.&lt;/p&gt;

&lt;h2&gt;
  
  
  What no app can block today
&lt;/h2&gt;

&lt;p&gt;Even with every control above in place, three paths stay open.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Notifications.&lt;/strong&gt; The EFF notes that on Android, Gemini can read notifications if the "Device Assistance" connected app is enabled. A message preview in a notification never touches your secure window. If your notifications carry sensitive text, give users an option to hide the content and show only "New message."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Files on disk.&lt;/strong&gt; Signal lists filesystem access as a gap it cannot cover. Screen flags do nothing here. Keep sensitive data encrypted at rest, with keys held by the platform keystore, so a file read returns ciphertext.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything the OS vendor itself controls.&lt;/strong&gt; Signal's two requests to Apple, Google and Microsoft are an easy, documented way for apps to opt out of AI data access, covering "screen reading, filesystem access, notifications, APIs, and other OS frameworks," and real documentation of how these agents access data. Until those exist, every protection above is a workaround on top of the OS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One commenter in the HN thread put the dependency simply: "Any protection against this requires OS support." (&lt;a href="https://news.ycombinator.com/item?id=50586122" rel="noopener noreferrer"&gt;comment&lt;/a&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  The trade-offs to plan for
&lt;/h2&gt;

&lt;p&gt;Blocking capture has real costs, and Signal's own posts are open about them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessibility users.&lt;/strong&gt; In its Recall post, Signal noted that "some accessibility software (such as screen readers or magnification tools for people who are visually impaired) may not function correctly" with screen security on. Test your protected screens with TalkBack, VoiceOver and screen magnifiers. On Android, &lt;code&gt;setAccessibilityDataSensitive&lt;/code&gt; is designed to keep declared accessibility tools working while shutting out other services, which is one reason to prefer it over blanket blocking for the accessibility path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Users who need screenshots.&lt;/strong&gt; Bug reports, receipts, and sharing a funny message are normal uses. Signal lets users disable the protection, and on Windows it shows a warning and asks for confirmation before turning it off. That is a good pattern to copy: protected by default, easy to change, hard to change by accident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silent failure.&lt;/strong&gt; A screenshot that comes out black looks like a bug. Signal chose its Android approach partly to avoid "a poor user experience (where screenshots simply stop working, confusing users)." If you block screenshots, say so somewhere the user will see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist for your next release
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;List your sensitive screens: chats, account balances, health records, one-time codes, password fields.&lt;/li&gt;
&lt;li&gt;Android: set &lt;code&gt;FLAG_SECURE&lt;/code&gt; on each of those windows, including dialogs. Add &lt;code&gt;setAccessibilityDataSensitive&lt;/code&gt; (API 34+) to the views that hold the data, and &lt;code&gt;setContentSensitivity&lt;/code&gt; (API 35+) to login and payment fields.&lt;/li&gt;
&lt;li&gt;Android: check your &lt;code&gt;onProvideAssistContent()&lt;/code&gt; and &lt;code&gt;onProvideAssistData()&lt;/code&gt; overrides so they do not hand sensitive data to the assistant.&lt;/li&gt;
&lt;li&gt;iOS: watch &lt;code&gt;sceneCaptureState&lt;/code&gt; and hide sensitive views while the screen is recorded or mirrored. Handle &lt;code&gt;userDidTakeScreenshotNotification&lt;/code&gt; if your product needs to warn people.&lt;/li&gt;
&lt;li&gt;iOS and macOS: tell users about Settings &amp;gt; Siri &amp;gt; Excluded Apps.&lt;/li&gt;
&lt;li&gt;Windows and Electron: call &lt;code&gt;setContentProtection(true)&lt;/code&gt; or &lt;code&gt;SetWindowDisplayAffinity&lt;/code&gt; with &lt;code&gt;WDA_EXCLUDEFROMCAPTURE&lt;/code&gt; at window creation.&lt;/li&gt;
&lt;li&gt;Notifications: offer a "hide message content" option.&lt;/li&gt;
&lt;li&gt;Storage: encrypt sensitive data at rest with platform-held keys.&lt;/li&gt;
&lt;li&gt;Add a settings toggle with a clear warning, and test every protected screen with a screen reader.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Signal described itself as "the canary in the coal mine." By its own account it spent "considerable developer time" over the past few months on forensic investigations across Android and iOS, and it still could not cover macOS or every Android device. A smaller app will hit the same walls. The difference is whether you find out now, from the docs, or later, from a user.&lt;/p&gt;

&lt;p&gt;Which screens in your app would you protect first, and has an OS assistant already read one of them?&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;[1] &lt;a href="https://signal.org/blog/protecting-your-privacy/" rel="noopener noreferrer"&gt;Signal: Signal is Serious About Protecting Your Privacy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[2] &lt;a href="https://techcrunch.com/2026/11/21/signal-restricts-mobile-screenshots-as-it-confronts-existential-threat-of-ai-surveillance/" rel="noopener noreferrer"&gt;TechCrunch: Signal restricts mobile screenshots as it confronts "existential threat" of AI surveillance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[3] &lt;a href="https://news.ycombinator.com/item?id=50572348" rel="noopener noreferrer"&gt;Hacker News discussion of Signal's post&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[4] &lt;a href="https://developer.android.com/security/fraud-prevention/activities" rel="noopener noreferrer"&gt;Android Developers: Secure sensitive activities&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[5] &lt;a href="https://developer.android.com/training/articles/assistant" rel="noopener noreferrer"&gt;Android Developers: Optimizing contextual content for the Assistant&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[6] &lt;a href="https://developer.android.com/about/versions/14/features/screenshot-detection" rel="noopener noreferrer"&gt;Android Developers: Detect when users take device screenshots&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[7] &lt;a href="https://developer.android.com/about/versions/15/features" rel="noopener noreferrer"&gt;Android Developers: Android 15 features and APIs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[8] &lt;a href="https://developer.android.com/reference/android/view/View" rel="noopener noreferrer"&gt;Android Developers: View reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[9] &lt;a href="https://support.google.com/googleplay/android-developer/answer/10964491" rel="noopener noreferrer"&gt;Google Play: Use of the AccessibilityService API&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[10] &lt;a href="https://developer.apple.com/documentation/uikit/uiapplication/userdidtakescreenshotnotification" rel="noopener noreferrer"&gt;Apple Developer: userDidTakeScreenshotNotification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[11] &lt;a href="https://developer.apple.com/documentation/uikit/uitraitcollection/scenecapturestate" rel="noopener noreferrer"&gt;Apple Developer: sceneCaptureState&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[12] &lt;a href="https://developer.apple.com/documentation/uikit/uiscreen/iscaptured" rel="noopener noreferrer"&gt;Apple Developer: isCaptured&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[13] &lt;a href="https://www.eff.org/deeplinks/2026/10/victory-you-can-now-exclude-apps-siri-ai" rel="noopener noreferrer"&gt;EFF: Victory! You Can Now Exclude Apps from Siri AI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[14] &lt;a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity" rel="noopener noreferrer"&gt;Microsoft Learn: SetWindowDisplayAffinity function&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[15] &lt;a href="https://learn.microsoft.com/en-us/windows/client-management/manage-recall" rel="noopener noreferrer"&gt;Microsoft Learn: Manage Recall&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[16] &lt;a href="https://signal.org/blog/signal-doesnt-recall/" rel="noopener noreferrer"&gt;Signal: By Default, Signal Doesn't Recall&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[17] &lt;a href="https://www.electronjs.org/docs/latest/api/browser-window" rel="noopener noreferrer"&gt;Electron: BrowserWindow&lt;/a&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>ios</category>
      <category>security</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Inkling 2 Mini Explained: How a Looped Transformer Gets More Reasoning Out of a 20GB Model</title>
      <dc:creator>jamilxt</dc:creator>
      <pubDate>Sun, 22 Nov 2026 11:50:49 +0000</pubDate>
      <link>https://dev.to/jamilxt/inkling-2-mini-explained-how-a-looped-transformer-gets-more-reasoning-out-of-a-20gb-model-14a6</link>
      <guid>https://dev.to/jamilxt/inkling-2-mini-explained-how-a-looped-transformer-gets-more-reasoning-out-of-a-20gb-model-14a6</guid>
      <description>&lt;p&gt;Most small models get better the boring way: more parameters, more data, more tokens of reasoning. Inkling 2 Mini tries something else. It runs the same middle layers three times for every token it produces.&lt;/p&gt;

&lt;p&gt;Thinking Machines Lab &lt;a href="https://thinkingmachines.ai/news/inkling-2-mini/" rel="noopener noreferrer"&gt;released Inkling 2 Mini on November 20&lt;/a&gt;. It is an open-weights Mixture-of-Experts model with 26.4B total parameters and 3.4B active per token. Its memory footprint is about 20GB, and the launch post shows it running offline on a MacBook Pro. A day later, &lt;a href="https://x.com/exolabs/status/2123953913342935486" rel="noopener noreferrer"&gt;EXO Labs posted local speed numbers&lt;/a&gt; from their work with the lab on Apple hardware.&lt;/p&gt;

&lt;p&gt;I have not run the model myself. This breakdown is built from the Thinking Machines launch post and the EXO Labs post. All benchmark numbers below are reported by those two sources, not independently checked. The goal is to understand the one idea that makes this release different, looping, and to read the numbers with the right amount of caution.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "looping" means
&lt;/h2&gt;

&lt;p&gt;A normal transformer is a fixed stack. A token goes through layer 1, then layer 2, and so on to the last layer, once. The depth of the stack limits how many steps of computation the model can do before it has to write the next token.&lt;/p&gt;

&lt;p&gt;A looped transformer reuses some of its layers. Instead of adding more layers (which means more weights and more memory), it sends the token's internal state through the same layers again. You get more computation per token without storing more parameters.&lt;/p&gt;

&lt;p&gt;The idea is not new. The launch post credits earlier work such as &lt;a href="https://arxiv.org/abs/1807.03819" rel="noopener noreferrer"&gt;Universal Transformers (Dehghani et al., 2018)&lt;/a&gt;. What is new is a lab shipping a competitive, open-weights looped model that people can actually download and study.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Inkling 2 Mini is wired
&lt;/h2&gt;

&lt;p&gt;The model has 24 layers, split into four blocks of six:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Block 1 (the "prelude")&lt;/strong&gt; runs once. It turns token embeddings into the model's internal representation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blocks 2 and 3&lt;/strong&gt; run three times. They share weights across all three passes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block 4&lt;/strong&gt; runs once. It turns the internal state back into a next-token prediction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That gives 6 + (12 x 3) + 6 = 48 layer applications per token from 24 stored layers. This is why the lab gives two "active" numbers: 3.4B active parameters, but 5.4B weight activations per token once you count the repeated reads.&lt;/p&gt;

&lt;p&gt;Why loop the middle and not the end? The lab's intuition is that middle layers do the more abstract reasoning, while the first and last layers mostly translate between embeddings and internal representations. They tested it. Looping the middle 12 layers beat looping the last 12 on 27 of 28 evaluations. At training step 2,000, a no-loop baseline was estimated to need 1.51 to 1.91 times the compute to match the middle-loop model's loss, compared with 1.24 to 1.36 times for the last-loop version.&lt;/p&gt;

&lt;p&gt;Two details make the loops work in practice:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Attention residuals.&lt;/strong&gt; Instead of adding every layer's output into one running sum, each layer learns its own mix of earlier blocks' outputs (an approach from the 2026 "Attention Residuals" paper by the Kimi Team). Every pass reads the prelude's output. Passes 2 and 3 also read the previous pass's output, which the lab calls the "message".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A learned gate on the message.&lt;/strong&gt; At the start of training the gate blocks the message completely, so each loop behaves like a normal non-looped model. The gate opens gradually. This lets looping be introduced without destabilizing training.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The cost and benefit, according to the lab's scaling comparison: the non-looped model was 7.5% cheaper to train, but needed 140% more inference compute to match the looped model's loss on 512k-token agentic traces.&lt;/p&gt;

&lt;h2&gt;
  
  
  How they made it small enough for a laptop
&lt;/h2&gt;

&lt;p&gt;Looping is only half the story. Three other choices get the model down to about 20GB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Native 4-bit weights.&lt;/strong&gt; Most of the weights were trained in NVFP4, a 4-bit floating point format, on every forward pass from pretraining through reinforcement learning (RL). The last four layers use 8-bit MXFP8. The released weights use the same precision the model was trained in, so there is no extra loss from converting a 16-bit model down to 4-bit after the fact. That is a real difference from the usual "download the big model, then quantize it" workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expert pruning.&lt;/strong&gt; The model started with 384 experts per layer and picked 8 per token. Midway through training, the lab deleted two-thirds of them, keeping the 128 most-used experts in each layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Healing.&lt;/strong&gt; After pruning, the model trained on 1T tokens distilled from a larger internal Inkling model, so the surviving experts could take over the work of the deleted ones. Then came supervised fine-tuning and an RL phase of 2.2T tokens over 2,000 steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the benchmarks show
&lt;/h2&gt;

&lt;p&gt;The lab compares Inkling 2 Mini with open-weights models under 100B total parameters: Gemma 4 31B, Muse Glimmer, Qwen3.8-27B and Nemotron 3.5 Super VL. Some reported scores:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DeepSWE v1.1:&lt;/strong&gt; 48.2%, against 42.2% for Qwen3.8-27B.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SWE-bench Verified (bash only):&lt;/strong&gt; 79.2%, against 77.8% for Qwen3.8-27B.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SWE-bench Pro v2 (Hard):&lt;/strong&gt; 77.9%, against 73.8% for Qwen3.8-27B.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vals Index v2.2:&lt;/strong&gt; 46.5%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BrowseComp (with compaction):&lt;/strong&gt; 79.0%, essentially tied with Nemotron 3.5 Super VL at 78.9%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP Atlas:&lt;/strong&gt; 82.7%, against 77.3% for Qwen3.8-27B.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern is clear. The model is strongest on long, multi-step agentic work: coding agents, search and tool use. On several other rows it sits just behind Qwen3.8-27B, for example Terminal Bench v2.1 (71.6% vs 73.0%) and GDPVal-AA v2.1.&lt;/p&gt;

&lt;p&gt;There is an important footnote in the launch post: "Evaluation setups vary by model." Different harnesses, agent scaffolds and settings can move these numbers a lot. Treat a gap of one or two points as a tie until independent runs confirm it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What looping does not fix
&lt;/h2&gt;

&lt;p&gt;This is the most useful part of the release for anyone choosing a model.&lt;/p&gt;

&lt;p&gt;Looping gives the model more computation per token. It does not give it more memory for facts. Knowledge is mostly a function of total parameter count, and the lab says so directly. Using the variable-loop research model, they found that more passes helped long-context and multi-hop tasks (GraphWalks BFS, MRCR v2), but did not help knowledge-heavy benchmarks such as AA-Omniscience, SimpleQA Verified and WorldVQA.&lt;/p&gt;

&lt;p&gt;The lab's answer is tools. A small model that knows fewer facts can still do well if it searches efficiently, and that matches the strong BrowseComp and DeepSearchQA scores.&lt;/p&gt;

&lt;p&gt;The launch post also lists clear limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is not the best small model for multi-turn chat. It scores 50.0% on MultiChallenge, behind Qwen3.8-27B.&lt;/li&gt;
&lt;li&gt;It is weaker at following many constraints at once: 33.4% on ComplexConstraints v1.1, also behind Qwen3.8-27B.&lt;/li&gt;
&lt;li&gt;It trails larger models on hard reasoning benchmarks such as CritPt v2 and HLE-Diamond.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the practical reading is: a strong pick for agent loops that call tools, a weaker pick as a pure chat assistant or a closed-book fact source.&lt;/p&gt;

&lt;h2&gt;
  
  
  How fast it runs on a Mac
&lt;/h2&gt;

&lt;p&gt;The lab's own speed chart uses a theoretical ceiling (614 GB/s memory bandwidth, BF16 weights, batch size one), so it is not a real measurement. The EXO Labs post gives measured local numbers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;96GB M5 Ultra Mac Studio:&lt;/strong&gt; 210 tokens/sec decode, 3,620 tokens/sec prefill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;48GB M5 Max MacBook Pro:&lt;/strong&gt; 125 tokens/sec decode, 1,750 tokens/sec prefill.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EXO also says the model built a native weather app 1.8 times faster than Claude Sonnet 5.5 and 11 times cheaper at API pricing, on the M5 Ultra. That is one task, and the post does not describe the setup in detail, so read it as a demo, not a benchmark.&lt;/p&gt;

&lt;p&gt;Their explanation of why looping suits Macs is the key point. Apple machines are usually limited by memory size and bandwidth, not raw compute. Looping adds compute per token without adding weights, so it spends the resource a Mac has spare and saves the one it lacks.&lt;/p&gt;

&lt;p&gt;There is a separate efficiency data point from Stanford's Hazy Research and Scaling Intelligence labs, which had early access. On an NVIDIA DGX Spark, they measured "intelligence per joule" at 0.703 for Inkling 2 Mini, against 0.430 for Qwen3.6-35B-A3B and 0.159 for Gemma-4-26B-A4B. Note that the models ran at different precisions in that test (MXFP8 for Inkling, NVFP4 or INT4 for the others).&lt;/p&gt;

&lt;h2&gt;
  
  
  The safety question: can you still read its reasoning?
&lt;/h2&gt;

&lt;p&gt;This section is why the release matters beyond speed.&lt;/p&gt;

&lt;p&gt;One way to oversee a reasoning model is to read its chain of thought (CoT), the reasoning it writes out before answering. This works partly because a normal transformer has a fixed depth per token. Reasoning that needs more steps than that has to be written down, where a human or a monitor model can see it.&lt;/p&gt;

&lt;p&gt;Looping raises that limit. A looped model can do more thinking internally, without writing it out. The worry is that this hidden reasoning could make models harder to monitor.&lt;/p&gt;

&lt;p&gt;To study this, the lab also released TML-d24-varloop-research, a variant that can run with one to five passes. Their early findings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More silent reasoning, but it levels off.&lt;/strong&gt; On the Think Fast benchmark, the no-CoT time horizon (how long a task, in human time, the model can solve half the time without writing reasoning) rose from 16 seconds at one pass to 37 seconds at three, then stayed roughly flat. On a serial lookup task (N-Hop Lookup), accuracy kept improving out to ten passes, even though the model was never trained with more than five.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shorter reasoning, still readable.&lt;/strong&gt; On GPQA Diamond questions it answered correctly at every pass count, reasoning at five passes averaged 1,661 tokens versus 3,703 at one pass. Sentence length and the share of real English words did not change. The model mostly backtracked less: "wait", "actually" and "hmm" dropped from 9.7 to 3.6 per answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Poor control over its own CoT.&lt;/strong&gt; When asked to reshape its reasoning (for example, avoid a keyword), Inkling 2 Mini followed the instruction at most 0.1% of the time on 750 to 1,250 token CoTs. Low control is good news here, because a model that cannot steer its CoT also struggles to hide things from a monitor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No clear trend in sabotage stealth.&lt;/strong&gt; In LinuxArena, where a model tries to complete a hidden malicious side task while doing normal engineering work, a weaker monitor caught most attempts. The stealth rate moved between 1.0% and 5.0% across pass counts with no clear upward trend.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The lab's own conclusion is careful: looping increases what the model can do without a visible CoT, but "at this scale" they do not see a meaningful loss of monitorability. They also note the variant was trained with RL at three passes only. A model trained with RL at higher pass counts might compress its reasoning more aggressively. That is an open research question, and releasing the weights is how others can test it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to try it
&lt;/h2&gt;

&lt;p&gt;According to the launch post, as of November 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mac:&lt;/strong&gt; any Mac with at least 32GB of RAM via Ollama. If your machine has 24GB or less, the official Mac path does not cover you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quantized GGUF builds:&lt;/strong&gt; via Unsloth and llama.cpp.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Servers:&lt;/strong&gt; SGLang, vLLM, NVIDIA Dynamo and TokenSpeed, among others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosted:&lt;/strong&gt; inference and fine-tuning on Thinking Machines' Tinker platform, plus chat in the Tinker Playground.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Weights:&lt;/strong&gt; both Inkling 2 Mini and the variable-loop research model are on Hugging Face.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Inkling 2 Mini is a bet that, for small models, reusing layers is a better deal than adding them. The reported results support that bet for agentic coding and tool use, and the limitations section is honest about where it does not help: facts, multi-turn chat and dense instruction following.&lt;/p&gt;

&lt;p&gt;If you build agents that need to run locally, the useful questions are simple. Does your task depend on reasoning or on memorized knowledge? Can your agent give the model search and tools to cover the knowledge gap? And does your hardware have enough memory to hold about 20GB of weights with room for context?&lt;/p&gt;

&lt;p&gt;Which part matters more for your work: the local speed, or the chance to study a model that thinks partly out of sight?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
