<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Javier García Camacho</title>
    <description>The latest articles on DEV Community by Javier García Camacho (@dimoncelli).</description>
    <link>https://dev.to/dimoncelli</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4233908%2Fc7a7da2e-58d8-45e6-bc3a-200e166238d9.png</url>
      <title>DEV Community: Javier García Camacho</title>
      <link>https://dev.to/dimoncelli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dimoncelli"/>
    <language>en</language>
    <item>
      <title>Why We Built a Zero-Custody BYOK Stripe Dunning Engine: AES-256-GCM, Plain-Text Resend Delivery, and Ephemeral Billing Portal Links</title>
      <dc:creator>Javier García Camacho</dc:creator>
      <pubDate>Fri, 27 Nov 2026 16:37:37 +0000</pubDate>
      <link>https://dev.to/dimoncelli/why-we-built-a-zero-custody-byok-stripe-dunning-engine-aes-256-gcm-plain-text-resend-delivery-ne2</link>
      <guid>https://dev.to/dimoncelli/why-we-built-a-zero-custody-byok-stripe-dunning-engine-aes-256-gcm-plain-text-resend-delivery-ne2</guid>
      <description>&lt;p&gt;A failed subscription payment is usually not a lost customer. It is an expired card that nobody noticed. The gap between those two readings is where every dunning product makes or loses its money, and the gap is smaller than the industry pretends.&lt;/p&gt;

&lt;p&gt;I built RebillKit after watching the same failure twice in my own projects. A renewal fails, the recovery email goes out, the customer opens it four days later, and the card-update link inside is dead. Stripe Billing Portal session URLs are created when you ask for them and they expire. Queue that URL inside an email and you have shipped a link with a shelf life shorter than the problem it solves.&lt;/p&gt;

&lt;p&gt;This article is about the three decisions that came out of that observation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Recovery links are created on click, not on send.&lt;/li&gt;
&lt;li&gt;Credentials belong to the tenant, encrypted per field, and never come back out.&lt;/li&gt;
&lt;li&gt;The email is plain text from the tenant's own domain, because inbox placement is the actual product.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The dead link problem
&lt;/h2&gt;

&lt;p&gt;Stripe's Billing Portal is the right place to change a card. It handles SCA, wallet cards and regional payment methods without you rebuilding any of it. The usual integration works like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;stripe&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;billingPortal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sessions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;customer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;customerId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;return_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;returnUrl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;flow_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'payment_method_update'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sendEmail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is correct code and a bad user experience, because &lt;code&gt;session.url&lt;/code&gt; is a resource with a lifetime. The email outlives it. Worse, the failure is silent: the customer clicks, gets an expiry page, and concludes that your billing is broken.&lt;/p&gt;

&lt;p&gt;RebillKit stores an opaque recovery token instead, and resolves it at click time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;43&lt;/span&gt; &lt;span class="n"&gt;base64url&lt;/span&gt; &lt;span class="n"&gt;chars&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;validate&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="n"&gt;shape&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt; &lt;span class="n"&gt;decoded&lt;/span&gt; &lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;load&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;then&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="n"&gt;must&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="s1"&gt;'active'&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;decrypt&lt;/span&gt; &lt;span class="n"&gt;tenant&lt;/span&gt; &lt;span class="nc"&gt;Stripe&lt;/span&gt; &lt;span class="n"&gt;restricted&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;create&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;fresh&lt;/span&gt; &lt;span class="nc"&gt;Billing&lt;/span&gt; &lt;span class="nc"&gt;Portal&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;
  &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;302&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;Cache&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Control&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;store&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Token generation is &lt;code&gt;crypto.randomBytes(32).toString('base64url')&lt;/code&gt;. Validation checks the regex shape and then decodes it to confirm 32 bytes, so a truncated or padded token cannot reach the database. Closed cases return a 410 with a page that says the invoice is settled or the sequence ended. No Stripe error page, no retry loop, no confusion.&lt;/p&gt;

&lt;p&gt;The cost of this design is one extra round trip on click, plus a Stripe API call. That is the whole trade: spend 300 ms at click time to remove an expiry date from the customer's inbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero custody: keys in, masks out
&lt;/h2&gt;

&lt;p&gt;The part that made me hesitate was credential handling. Storing someone else's Stripe key is a liability, and asking for a full secret key would be careless. Two decisions follow.&lt;/p&gt;

&lt;p&gt;First, the tenant creates a Stripe &lt;strong&gt;Restricted Key&lt;/strong&gt; with the minimum scopes the product needs, plus their Stripe webhook signing secret and a Resend API key. Second, every one of those values is encrypted per field before it touches Firestore:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;IV_BYTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;AUTH_TAG_BYTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;KEY_BYTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createCipheriv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aes-256-gcm'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;authTagLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;authTag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAuthTag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;ciphertext&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ciphertext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each record stores three fields, not one blob, and decryption enforces the exact lengths:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;decodeExact&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;enc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'iv'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;authTag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;decodeExact&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;enc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;authTag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'authTag'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That strictness matters. A truncated IV or tag is a data corruption signal, and the right response is to fail closed rather than attempt a decrypt with whatever bytes arrived. The master key is 64 hex characters (32 bytes) held outside the database, which means a database dump alone is not enough to read a customer's credentials.&lt;/p&gt;

&lt;p&gt;The UI never sees the plaintext after the save. It sees a mask produced by a fixed rule: known prefix, four bullets, and the last four characters only when the value is long enough that four characters are under a quarter of the secret tail. Anything starting with &lt;code&gt;rk_&lt;/code&gt;, &lt;code&gt;sk_&lt;/code&gt;, &lt;code&gt;whsec_&lt;/code&gt; or &lt;code&gt;re_&lt;/code&gt; is redacted in logs before the line is written, because the most common credential leak in a Node service is a &lt;code&gt;console.log(requestBody)&lt;/code&gt; that nobody removed.&lt;/p&gt;

&lt;p&gt;What this design does not do, and I would rather say it than let someone assume otherwise: the server can decrypt the keys while it is running. That is unavoidable if the server is the thing calling Stripe. Zero custody here means the keys belong to the tenant, are scoped to the tenant, are unreadable at rest, and are never shared between tenants. It does not mean the process never holds them in memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plain text as a deliverability decision
&lt;/h2&gt;

&lt;p&gt;The second half of the recovery rate is whether the email is read. Three constraints pushed the design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Send from the tenant's domain.&lt;/strong&gt; A shared sending domain carries the reputation of everyone using it. The tenant's verified domain carries theirs, and their customers already expect mail from it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plain text only.&lt;/strong&gt; No HTML part, no tracking pixel, no image. A one-pixel tracker is a spam signal and a privacy problem in the same object.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A human voice.&lt;/strong&gt; The emails read like the founder wrote them, because the ones that get replies are the ones that get read. Three of them: immediately (plus 15 minutes), three days, seven days.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The code is deliberately dull:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;resend&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;emails&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reply_to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;replyTo&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;idempotencyKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;emailId&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;text&lt;/code&gt;, never &lt;code&gt;html&lt;/code&gt;. The idempotency key is the internal email id, and the same id goes out as an &lt;code&gt;X-Entity-Ref-ID&lt;/code&gt; header, so a retried dispatch cannot produce a duplicate message.&lt;/p&gt;

&lt;p&gt;Inbox placement is influenced by domain reputation, sending history, content and recipient behaviour. I can control the content and the absence of tracking. I cannot promise the Primary tab, and no honest vendor can. What I can promise is that the message is shaped like the mail a person sends.&lt;/p&gt;

&lt;h2&gt;
  
  
  Idempotency everywhere, because Stripe retries
&lt;/h2&gt;

&lt;p&gt;Stripe delivers webhooks at least once. A handler that assumes exactly once will eventually create two cases for one failed invoice, and the customer gets six emails.&lt;/p&gt;

&lt;p&gt;Two guards, both boring:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Event level.&lt;/strong&gt; A &lt;code&gt;processed_webhook_events&lt;/code&gt; document is claimed inside a transaction before any work happens, with a five-minute processing lease. A replayed event finds the claim and exits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email level.&lt;/strong&gt; The dispatcher claims each due row by moving it from &lt;code&gt;scheduled&lt;/code&gt; to &lt;code&gt;sending&lt;/code&gt; inside a transaction, then calls Resend. Two cron invocations racing on the same row cannot both win.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The cron endpoint authenticates with a shared secret compared in constant time, and runs every five minutes. Anything slower makes the "15 minutes after the failure" email a lie.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attribution that under-claims
&lt;/h2&gt;

&lt;p&gt;The recovery counter is the number a customer looks at when deciding whether the tool works, which is exactly why it should be conservative.&lt;/p&gt;

&lt;p&gt;RebillKit only counts a save when the case was still active and &lt;code&gt;attemptCount &amp;gt;= 1&lt;/code&gt;: at least one email actually went out. If the customer fixes their card five minutes after the failure, before the first email, that payment is not a RebillKit save. It would be easy to count it. It would also make every number on the dashboard meaningless.&lt;/p&gt;

&lt;p&gt;When &lt;code&gt;invoice.paid&lt;/code&gt; arrives, the case closes and any pending emails are cancelled. Recovery amounts are recorded per currency, because a customer paying in EUR and a customer paying in USD are not the same number and should never be added together.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I left out on purpose
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No OAuth Stripe Connect flow.&lt;/strong&gt; It is a better fit for a platform that already has a billing relationship with its users. It is also a review queue, and the Restricted Key path gets a tenant live in about two minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No percentage of recovered revenue.&lt;/strong&gt; The pricing is $99 or 99 EUR once for the first 50 founders, then $29 or 29 EUR a month. A tool that takes a cut gets more expensive precisely when it succeeds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No customer data warehouse.&lt;/strong&gt; Cases, emails and counters, nothing else. The less of someone's billing history I store, the less there is to leak.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try the flow
&lt;/h2&gt;

&lt;p&gt;The product runs at &lt;a href="https://rebillkit.com/en" rel="noopener noreferrer"&gt;rebillkit.com&lt;/a&gt;. There is an in-memory simulator with seeded cases, no account needed, including the click-through to a Stripe test portal:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://rebillkit.com/en/dashboard?demo=1" rel="noopener noreferrer"&gt;rebillkit.com/en/dashboard?demo=1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you build subscription software, the useful question is not whether this specific tool fits. It is how many of your failed payments were recoverable and how many died on an expired link. That number is worth measuring either way.&lt;/p&gt;

</description>
      <category>saas</category>
      <category>webdev</category>
      <category>stripe</category>
      <category>security</category>
    </item>
    <item>
      <title>Cutting 35-60% of LLM Structured Output Tokens at the Wire Level in Pure Go</title>
      <dc:creator>Javier García Camacho</dc:creator>
      <pubDate>Fri, 20 Nov 2026 16:37:47 +0000</pubDate>
      <link>https://dev.to/dimoncelli/cutting-35-60-of-llm-structured-output-tokens-at-the-wire-level-in-pure-go-i08</link>
      <guid>https://dev.to/dimoncelli/cutting-35-60-of-llm-structured-output-tokens-at-the-wire-level-in-pure-go-i08</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp4ti4v1su604gb8pb2ug.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp4ti4v1su604gb8pb2ug.gif" alt="wiretuple live terminal demo" width="760" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you ask an LLM for structured JSON (via OpenAI &lt;code&gt;response_format&lt;/code&gt; &lt;code&gt;json_schema&lt;/code&gt;, OpenAI &lt;code&gt;tools[]&lt;/code&gt;, or Anthropic &lt;code&gt;tools[].input_schema&lt;/code&gt;), you pay an invisible output token tax on every single record.&lt;/p&gt;

&lt;p&gt;Ask for 40 invoice line items with 7 fields, and the model repeats those 7 JSON key names 40 times. That is 280 key emissions spent on metadata the receiver already knows from the schema.&lt;/p&gt;

&lt;p&gt;As a Technical Integrations Specialist working with REST APIs and webhooks, I wanted to fix this at the wire level—so an application can change a single environment variable (&lt;code&gt;OPENAI_BASE_URL&lt;/code&gt; or &lt;code&gt;ANTHROPIC_BASE_URL&lt;/code&gt;) without rewriting prompts or application models.&lt;/p&gt;

&lt;p&gt;That became &lt;strong&gt;&lt;a href="https://github.com/Dimoncelli/wiretuple" rel="noopener noreferrer"&gt;wiretuple&lt;/a&gt;&lt;/strong&gt; (MIT, Go 1.23, zero external dependencies).&lt;/p&gt;

&lt;h2&gt;
  
  
  The lossless positional bijection
&lt;/h2&gt;

&lt;p&gt;Given a deterministic key ordering (&lt;code&gt;required&lt;/code&gt; fields in schema order, followed by remaining properties sorted lexicographically), an array of objects:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"line_identifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"li_0000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"product_sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-00000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"quantity_units"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"line_identifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"li_0001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"product_sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKU-00001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"quantity_units"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;is mathematically bijective with an array of positional tuples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"li_0000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"SKU-00000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"li_0001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"SKU-00001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;provided the request schema carries one legend (&lt;code&gt;Tuple: [line_identifier, product_sku, quantity_units]&lt;/code&gt;) and closes the array with JSON Schema Draft 2020-12 &lt;code&gt;prefixItems&lt;/code&gt; and &lt;code&gt;items: false&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four pieces in pure Go stdlib
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Break-Even Gate (&lt;code&gt;internal/gate&lt;/code&gt;)&lt;/strong&gt;: A legend costs input tokens once. Before rewriting a schema, the gate compares expected output savings against the fixed legend cost. Small single-instance payloads stay byte-identical at zero overhead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bidirectional Schema Compiler (&lt;code&gt;internal/compiler&lt;/code&gt;)&lt;/strong&gt;: Preserves unknown JSON Schema properties via &lt;code&gt;Extra&lt;/code&gt; round-tripping and handles nested object tuples recursively (&lt;code&gt;KindTuple&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incremental Byte-Level SSE Rehydrator (&lt;code&gt;internal/rehydrator&lt;/code&gt;)&lt;/strong&gt;: No regex and no full-stream buffering. A bounded byte-level state machine handles multi-byte UTF-8 characters split across SSE frames, escaped quotes (&lt;code&gt;\"&lt;/code&gt;), brackets/commas inside string literals (&lt;code&gt;"[1,2]"&lt;/code&gt;), multi-tool call routing (&lt;code&gt;requestPlan&lt;/code&gt;), and falls back to raw output if a model violates arity—keeping the SSE connection alive and JSON valid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Passive Audit Mode (&lt;code&gt;--shadow&lt;/code&gt;, &lt;code&gt;internal/shadow&lt;/code&gt;)&lt;/strong&gt;: Leaves live traffic untouched while simulating savings into a pure-Go SQLite 3 writer (&lt;code&gt;shadow_records&lt;/code&gt;: timestamps, route, token counts, percentages, latency, activation flag—zero prompt or completion payloads ever stored).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Deterministic benchmarks (&lt;code&gt;make bench&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Measured with &lt;code&gt;make bench&lt;/code&gt; using a deterministic 4 UTF-8 bytes/token size model and verified with &lt;code&gt;reflect.DeepEqual&lt;/code&gt; plus legend key order assertions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;tokens_before&lt;/th&gt;
&lt;th&gt;tokens_after&lt;/th&gt;
&lt;th&gt;output_savings_%&lt;/th&gt;
&lt;th&gt;net_savings_%&lt;/th&gt;
&lt;th&gt;p99_overhead_ms&lt;/th&gt;
&lt;th&gt;equality&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;E-commerce invoice line items (40x7)&lt;/td&gt;
&lt;td&gt;2041&lt;/td&gt;
&lt;td&gt;801&lt;/td&gt;
&lt;td&gt;60.8%&lt;/td&gt;
&lt;td&gt;59.2%&lt;/td&gt;
&lt;td&gt;0.095&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP tool invocations batch (25x7)&lt;/td&gt;
&lt;td&gt;1617&lt;/td&gt;
&lt;td&gt;711&lt;/td&gt;
&lt;td&gt;56.0%&lt;/td&gt;
&lt;td&gt;53.7%&lt;/td&gt;
&lt;td&gt;0.084&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dev-tool pull request batch (30x7)&lt;/td&gt;
&lt;td&gt;1602&lt;/td&gt;
&lt;td&gt;889&lt;/td&gt;
&lt;td&gt;44.5%&lt;/td&gt;
&lt;td&gt;43.0%&lt;/td&gt;
&lt;td&gt;0.078&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Try it safely first with &lt;code&gt;--shadow&lt;/code&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go build -trimpath -ldflags=&lt;span class="s2"&gt;"-s -w"&lt;/span&gt; -o bin/wiretuple ./cmd/wiretuple
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OPENAI_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;http://127.0.0.1:8787/v1
./bin/wiretuple -upstream https://api.openai.com -shadow audit.db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Source and static release builds: &lt;a href="https://github.com/Dimoncelli/wiretuple" rel="noopener noreferrer"&gt;github.com/Dimoncelli/wiretuple&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>llm</category>
      <category>api</category>
      <category>opensource</category>
    </item>
    <item>
      <title>5 UCP and Schema.org Failures Blocking AI Shopping Agents from Your Store</title>
      <dc:creator>Javier García Camacho</dc:creator>
      <pubDate>Thu, 12 Nov 2026 08:11:02 +0000</pubDate>
      <link>https://dev.to/dimoncelli/5-ucp-and-schemaorg-failures-blocking-ai-shopping-agents-from-your-store-4poc</link>
      <guid>https://dev.to/dimoncelli/5-ucp-and-schemaorg-failures-blocking-ai-shopping-agents-from-your-store-4poc</guid>
      <description>&lt;p&gt;&lt;em&gt;What we found scanning real e-commerce sites for Universal Commerce Protocol readiness, and how to fix each one&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;AI shopping agents are arriving. Google and Shopify introduced the Universal Commerce Protocol (UCP) at Google I/O. Zalando, DoorDash, and Walmart have announced agent-driven checkout. But when you drop to the technical layer, most stores are invisible to these agents.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Karuma&lt;/strong&gt; (&lt;a href="https://karuma.dev/en" rel="noopener noreferrer"&gt;https://karuma.dev/en&lt;/a&gt;) to measure exactly that. It is a free, no-registration scanner that streams a live NDJSON audit of any public storefront against the UCP specification. It checks three layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Layer 1 (&lt;code&gt;/.well-known/ucp&lt;/code&gt; manifest)&lt;/strong&gt;: valid JSON (not HTML, not a soft-404), declared capabilities, version &lt;code&gt;YYYY-MM-DD&lt;/code&gt;, HTTPS, and working transport (&lt;code&gt;REST&lt;/code&gt;, &lt;code&gt;MCP&lt;/code&gt;, &lt;code&gt;A2A&lt;/code&gt;, &lt;code&gt;Embedded&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layer 2 (Schema.org &lt;code&gt;Product&lt;/code&gt; + &lt;code&gt;Offer&lt;/code&gt; in JSON-LD)&lt;/strong&gt;: clean numeric price with decimal point (&lt;code&gt;490.00&lt;/code&gt;, not &lt;code&gt;"490,00 € Todo incluido"&lt;/code&gt;), &lt;code&gt;priceCurrency&lt;/code&gt; in ISO 4217 (&lt;code&gt;EUR&lt;/code&gt;, &lt;code&gt;USD&lt;/code&gt;), &lt;code&gt;availability&lt;/code&gt; as a canonical Schema.org URI (&lt;code&gt;https://schema.org/InStock&lt;/code&gt;), and global identifiers (&lt;code&gt;gtin13&lt;/code&gt;/&lt;code&gt;sku&lt;/code&gt;/&lt;code&gt;mpn&lt;/code&gt; + &lt;code&gt;brand&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layer 3 (Crawl directives and feeds)&lt;/strong&gt;: &lt;code&gt;robots.txt&lt;/code&gt; without accidental blocks on AI shopping crawlers, accessible &lt;code&gt;sitemap.xml&lt;/code&gt;, and parity between visible HTML and structured JSON.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Karuma also renders a side-by-side view (what a human sees vs. what the agent reads in JSON) and emits a shareable report with exact evidence and concrete fix steps.&lt;/p&gt;

&lt;p&gt;After scanning dozens of production stores across Shopify, WooCommerce, PrestaShop, and custom stacks, five failures repeat constantly. Here they are with real snippets.&lt;/p&gt;




&lt;h3&gt;
  
  
  Failure 1: &lt;code&gt;/.well-known/ucp&lt;/code&gt; Missing or Returns Soft-404 HTML with &lt;code&gt;200 OK&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;The UCP manifest is the front door. If it is absent, the agent assumes no agentic commerce support. Worse: some stacks return a custom 404 page as HTML with status &lt;code&gt;200&lt;/code&gt;. The parser chokes on &lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt; instead of JSON.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the agent receives:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;known&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ucp&lt;/span&gt;
&lt;span class="no"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="no"&gt;OK&lt;/span&gt;
&lt;span class="nc"&gt;Content&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="no"&gt;DOCTYPE&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Page&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;found&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What it should return:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-08-25"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"capabilities"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"catalog.read"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"checkout.initiate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"orders.read"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"transports"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"REST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"endpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.store.com/ucp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MCP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"endpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.store.com"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"policies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"shipping"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ES"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"PT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"FR"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"returns"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://store.com/returns"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Add a static file or lightweight endpoint at &lt;code&gt;/.well-known/ucp&lt;/code&gt; returning valid JSON with &lt;code&gt;Content-Type: application/json&lt;/code&gt;. Ensure your CDN/WAF does not rewrite 404s to HTML pages.&lt;/p&gt;




&lt;h3&gt;
  
  
  Failure 2: Price with Promotional Text or Comma Decimal, Missing &lt;code&gt;priceCurrency&lt;/code&gt; ISO 4217
&lt;/h3&gt;

&lt;p&gt;Agents parse &lt;code&gt;Offer.price&lt;/code&gt; as a number. They fail on &lt;code&gt;"49,99 €"&lt;/code&gt; or &lt;code&gt;"From 49.99"&lt;/code&gt; or &lt;code&gt;"490,00 € Todo incluido"&lt;/code&gt;. They also require &lt;code&gt;priceCurrency&lt;/code&gt; as a three-letter ISO 4217 code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Broken JSON-LD:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Offer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"49,99 €"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"priceCurrency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Correct JSON-LD:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Offer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"49.99"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"priceCurrency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"availability"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://schema.org/InStock"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Emit &lt;code&gt;price&lt;/code&gt; as a plain number with a dot decimal separator. Keep &lt;code&gt;priceCurrency&lt;/code&gt; strictly ISO 4217. Strip all formatting, currency symbols, and marketing text from the structured data layer.&lt;/p&gt;




&lt;h3&gt;
  
  
  Failure 3: &lt;code&gt;availability&lt;/code&gt; Invented Instead of Canonical &lt;code&gt;schema.org&lt;/code&gt; URI
&lt;/h3&gt;

&lt;p&gt;Schema.org defines enumerated values for &lt;code&gt;availability&lt;/code&gt;. Agents expect the full URI. Custom strings like &lt;code&gt;"In Stock"&lt;/code&gt;, &lt;code&gt;"Available"&lt;/code&gt;, &lt;code&gt;"Disponible"&lt;/code&gt;, or &lt;code&gt;"✓ En stock"&lt;/code&gt; are not machine-readable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Broken:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"availability"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"In Stock"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Correct:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"availability"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://schema.org/InStock"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Other valid values: &lt;code&gt;https://schema.org/OutOfStock&lt;/code&gt;, &lt;code&gt;https://schema.org/PreOrder&lt;/code&gt;, &lt;code&gt;https://schema.org/LimitedAvailability&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Map your internal stock states to the exact Schema.org URIs. Do not localise or abbreviate.&lt;/p&gt;




&lt;h3&gt;
  
  
  Failure 4: Orphan Products Without &lt;code&gt;gtin13&lt;/code&gt; / &lt;code&gt;sku&lt;/code&gt; / &lt;code&gt;mpn&lt;/code&gt; + &lt;code&gt;brand&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;An agent needs to distinguish variants. &lt;code&gt;Product&lt;/code&gt; without &lt;code&gt;sku&lt;/code&gt;, &lt;code&gt;gtin13&lt;/code&gt;, &lt;code&gt;mpn&lt;/code&gt;, and &lt;code&gt;brand&lt;/code&gt; is ambiguous. The agent cannot match the item to a catalog entry or verify identity across feeds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Minimal viable identity:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Product"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Organic Cotton T-Shirt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sku"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TSH-ORG-M-BLU"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"gtin13"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"8412345678901"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Brand"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EcoWear"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Populate at least one of &lt;code&gt;gtin13&lt;/code&gt;, &lt;code&gt;sku&lt;/code&gt;, or &lt;code&gt;mpn&lt;/code&gt; plus &lt;code&gt;brand.name&lt;/code&gt; on every &lt;code&gt;Product&lt;/code&gt;. For variants, each SKU needs its own &lt;code&gt;Product&lt;/code&gt; node with distinct identifiers.&lt;/p&gt;




&lt;h3&gt;
  
  
  Failure 5: Static UCP Manifests Declaring Dead MCP/REST Endpoints
&lt;/h3&gt;

&lt;p&gt;A manifest that advertises &lt;code&gt;transports&lt;/code&gt; with endpoints returning 404, 500, or timing out is worse than no manifest. It wastes the agent's budget and signals unreliability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Manifest declares:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"transports"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MCP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"endpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.store.com"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"REST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"endpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.store.com/ucp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Reality:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;https://mcp.store.com&lt;/code&gt; -&amp;gt; DNS resolves, TCP connects, TLS handshake, then HTTP 502&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;https://api.store.com/ucp&lt;/code&gt; -&amp;gt; 404 Not Found&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Treat the manifest as a contract. Only declare transports that are live, authenticated correctly, and respond within the UCP latency budget. Remove or disable entries for deprecated endpoints.&lt;/p&gt;




&lt;h3&gt;
  
  
  Try the Free Scanner or Get the Production-Ready GEO &amp;amp; Fix Pack
&lt;/h3&gt;

&lt;p&gt;Karuma's scanner is free, open, and requires no registration. Paste any storefront URL at &lt;strong&gt;&lt;a href="https://karuma.dev/en" rel="noopener noreferrer"&gt;https://karuma.dev/en&lt;/a&gt;&lt;/strong&gt; and get a streaming audit in seconds. The report shows exact evidence (HTTP status, headers, JSON snippets) and a prioritized technical backlog.&lt;/p&gt;

&lt;p&gt;For store teams that want the missing files generated and verified without writing them from scratch, we also launched the &lt;strong&gt;Karuma GEO &amp;amp; Fix Pack&lt;/strong&gt; (&lt;strong&gt;&lt;a href="https://karuma.dev/en/geo-pack" rel="noopener noreferrer"&gt;https://karuma.dev/en/geo-pack&lt;/a&gt;&lt;/strong&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it delivers:&lt;/strong&gt; an executive PDF visibility audit across ChatGPT, Perplexity, and Gemini plus a &lt;code&gt;.zip&lt;/code&gt; with &lt;strong&gt;5 production-ready files&lt;/strong&gt; (&lt;code&gt;llms.txt&lt;/code&gt;, &lt;code&gt;llms-full.txt&lt;/code&gt;, &lt;code&gt;schema-patches.html&lt;/code&gt; with &lt;code&gt;Organization&lt;/code&gt;/&lt;code&gt;Offer&lt;/code&gt;/&lt;code&gt;FAQPage&lt;/code&gt; JSON-LD &lt;code&gt;@graph&lt;/code&gt;, &lt;code&gt;robots-ai-patch.txt + ucp.json&lt;/code&gt;, and &lt;code&gt;rag-landing-rewrites.md&lt;/code&gt;), installable in 45–90 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero hallucinated facts:&lt;/strong&gt; an automated quality gate checks every price, phone number, and URL against your live storefront; any missing policy or detail is flagged as &lt;code&gt;[COMPLETAR_DATO_REAL]&lt;/code&gt; rather than invented.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-login pricing:&lt;/strong&gt; &lt;strong&gt;€299 one-off payment&lt;/strong&gt; (no account, no password, no lock-in), with an optional &lt;strong&gt;€49/month Day-1 Watch&lt;/strong&gt; that re-audits your store on the 1st of every month and sends updated patches as your catalog or AI crawlers change (one-click cancellation via Stripe Customer Portal).&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Try the live scanner at &lt;a href="https://karuma.dev/en" rel="noopener noreferrer"&gt;karuma.dev/en&lt;/a&gt; or check the GEO &amp;amp; Fix Pack at &lt;a href="https://karuma.dev/en/geo-pack" rel="noopener noreferrer"&gt;karuma.dev/en/geo-pack&lt;/a&gt; (also in Spanish at &lt;a href="https://karuma.dev/es" rel="noopener noreferrer"&gt;karuma.dev/es&lt;/a&gt; and &lt;a href="https://karuma.dev/es/geo-pack" rel="noopener noreferrer"&gt;karuma.dev/es/geo-pack&lt;/a&gt;).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>ecommerce</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Why Your Coding Agent Agrees With Its Own Bugs: Building cold-jury, a Zero-Dep Cross-CLI Review Gate</title>
      <dc:creator>Javier García Camacho</dc:creator>
      <pubDate>Mon, 09 Nov 2026 08:58:40 +0000</pubDate>
      <link>https://dev.to/dimoncelli/why-your-coding-agent-agrees-with-its-own-bugs-building-cold-jury-a-zero-dep-cross-cli-review-gate-4cgn</link>
      <guid>https://dev.to/dimoncelli/why-your-coding-agent-agrees-with-its-own-bugs-building-cold-jury-a-zero-dep-cross-cli-review-gate-4cgn</guid>
      <description>&lt;p&gt;&lt;em&gt;Applying Google's Elephant-Goldfish pattern and arXiv:2607.21656 to run sterile, cross-model hostile code reviews in Node.js&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you ask the same coding agent session that just wrote a 300-line change to review its own &lt;code&gt;git diff&lt;/code&gt; before committing, it will almost always rubber-stamp it.&lt;/p&gt;

&lt;p&gt;That is not a prompt engineering problem. It is a structural context problem: over the course of the conversation, the model has already rationalized every shortcut, extra abstraction, and edge-case assumption in its context window. Asking it to audit that same thread asks it to contradict its own recent reasoning.&lt;/p&gt;

&lt;p&gt;Recent empirical benchmarks confirm how steep this self-bias is. In &lt;strong&gt;Cross-Model LLM Code Review&lt;/strong&gt; (&lt;a href="https://arxiv.org/abs/2607.21656" rel="noopener noreferrer"&gt;arXiv:2607.21656&lt;/a&gt;, evaluated across 116 tasks on LiveCodeBench):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Having &lt;strong&gt;Claude Sonnet 4&lt;/strong&gt; review its own drafts yielded &lt;strong&gt;+0.0 percentage points&lt;/strong&gt; of improvement (&lt;code&gt;91.4%&lt;/code&gt; -&amp;gt; &lt;code&gt;91.4%&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Having &lt;strong&gt;Claude Sonnet 4&lt;/strong&gt; review drafts written by &lt;strong&gt;OpenAI Codex&lt;/strong&gt; jumped pass rates from &lt;strong&gt;&lt;code&gt;71.6%&lt;/code&gt; to &lt;code&gt;89.7%&lt;/code&gt; (+18.1 percentage points)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Even a weaker model (&lt;strong&gt;GPT-4o-mini&lt;/strong&gt;, &lt;code&gt;69.0%&lt;/code&gt; baseline) reviewing &lt;strong&gt;Claude Sonnet 4&lt;/strong&gt; improved Claude's final score from &lt;strong&gt;&lt;code&gt;91.4%&lt;/code&gt; to &lt;code&gt;94.0%&lt;/code&gt; (+2.6 percentage points)&lt;/strong&gt; because uncorrelated error distributions expose blind spots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To automate that cross-examination without cloud lock-in or heavy wrappers, I built and open-sourced &lt;strong&gt;&lt;a href="https://github.com/Dimoncelli/cold-jury" rel="noopener noreferrer"&gt;cold-jury&lt;/a&gt;&lt;/strong&gt; (MIT).&lt;/p&gt;




&lt;h3&gt;
  
  
  What &lt;code&gt;cold-jury&lt;/code&gt; Does
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;cold-jury&lt;/code&gt; is a zero-dependency Node.js (&lt;code&gt;&amp;gt;=20.0.0&lt;/code&gt;) CLI and universal AAIF Skill (&lt;code&gt;SKILL.md&lt;/code&gt;, &lt;code&gt;agents/openai.yaml&lt;/code&gt;, &lt;code&gt;.claude-plugin&lt;/code&gt;) that implements Google's &lt;strong&gt;&lt;a href="https://github.com/google/elephant-goldfish-model" rel="noopener noreferrer"&gt;Elephant-Goldfish Model (EGM)&lt;/a&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Your coding agent is the Elephant&lt;/strong&gt;: it holds full repository memory, user history, and task context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;cold-jury&lt;/code&gt; spawns three ephemeral Goldfish jurors&lt;/strong&gt; in a &lt;strong&gt;different CLI&lt;/strong&gt; (&lt;code&gt;Writer != Juror&lt;/code&gt;) inside isolated temporary working directories (&lt;code&gt;fs.mkdtempSync&lt;/code&gt;) with no conversation memory, no project dotfiles, and a stripped environment variable allowlist.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each juror receives only two inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A single-sentence scope specification (&lt;code&gt;--spec&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;The redacted unified &lt;code&gt;git diff&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  The 4-Stage Pipeline
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Local Pre-Flight Secret Shield (Before Any Subprocess Spawns)
&lt;/h4&gt;

&lt;p&gt;Sending a raw &lt;code&gt;git diff&lt;/code&gt; or &lt;code&gt;--spec&lt;/code&gt; string to an external CLI risks leaking live credentials that accidentally landed in the working tree. Before &lt;code&gt;cold-jury&lt;/code&gt; spawns any child process, a local scanner inspects both the diff and the &lt;code&gt;--spec&lt;/code&gt; text across &lt;strong&gt;17 credential families&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Private keys (&lt;code&gt;-----BEGIN ... PRIVATE KEY-----&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;AWS (&lt;code&gt;AKIA...&lt;/code&gt;, &lt;code&gt;ASIA...&lt;/code&gt;), Stripe (&lt;code&gt;sk_live_...&lt;/code&gt;, &lt;code&gt;rk_live_...&lt;/code&gt;), Anthropic (&lt;code&gt;sk-ant-...&lt;/code&gt;), OpenAI (&lt;code&gt;sk-proj-...&lt;/code&gt;), GitHub (&lt;code&gt;ghp_...&lt;/code&gt;, &lt;code&gt;github_pat_...&lt;/code&gt;), Google (&lt;code&gt;AIza...&lt;/code&gt;), Slack (&lt;code&gt;xoxb-...&lt;/code&gt;), SendGrid (&lt;code&gt;SG....&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.env&lt;/code&gt; secret assignments, &lt;code&gt;Authorization: Bearer&lt;/code&gt; headers, JWTs, database URIs with embedded passwords (&lt;code&gt;postgres://user:pass@...&lt;/code&gt;), and high-entropy secret assignments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a &lt;strong&gt;&lt;code&gt;P0&lt;/code&gt; secret&lt;/strong&gt; is detected, &lt;code&gt;cold-jury&lt;/code&gt; &lt;strong&gt;short-circuits immediately with exit code &lt;code&gt;1&lt;/code&gt; (&lt;code&gt;BLOCK&lt;/code&gt;)&lt;/strong&gt; before a single byte leaves your machine. Lower-severity tokens are replaced in-memory with &lt;code&gt;[REDACTED:&amp;lt;RULE_ID&amp;gt;]&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Cross-Vendor Juror Selection (&lt;code&gt;Writer != Juror&lt;/code&gt;)
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;cold-jury doctor&lt;/code&gt; discovers which CLIs are installed and authenticated on your machine across five supported engines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;claude&lt;/code&gt; (Anthropic Claude Code)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;codex&lt;/code&gt; (OpenAI Codex CLI)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gemini&lt;/code&gt; (Google Gemini CLI)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;opencode&lt;/code&gt; (OpenCode CLI)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ollama&lt;/code&gt; (Local Ollama models, verified via live HTTP &lt;code&gt;/api/tags&lt;/code&gt; check so stopped daemons are marked &lt;code&gt;OFFLINE&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you run &lt;code&gt;cold-jury review --author codex&lt;/code&gt;, the selector automatically picks the highest-leverage available non-author CLI (prioritizing &lt;code&gt;claude &amp;lt;-&amp;gt; codex&lt;/code&gt; cross-family pairings).&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Three Parallel Adversarial Probes in Sterile Rooms
&lt;/h4&gt;

&lt;p&gt;Instead of asking one generic "please review this diff" prompt, &lt;code&gt;cold-jury&lt;/code&gt; runs three narrow, hostile probes concurrently (&lt;code&gt;Promise.allSettled&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;appsec&lt;/code&gt;&lt;/strong&gt;: CWE-mapped vulnerabilities (command/SQL injection, SSRF, XSS, path traversal, auth bypass, hardcoded secrets).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;correctness&lt;/code&gt;&lt;/strong&gt;: logic bugs, unhandled rejections, race conditions, off-by-one errors, null/undefined dereferences, broken edge cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;surgical&lt;/code&gt;&lt;/strong&gt;: YAGNI and scope discipline (&lt;code&gt;ponytail-surgical-coding&lt;/code&gt;) — flags drive-by refactors, unrequested abstractions, and dead code outside &lt;code&gt;--spec&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To prevent prompt injection from untrusted strings inside the diff itself, the diff is wrapped in per-run random nonce fences (&lt;code&gt;&amp;lt;&amp;lt;&amp;lt;DIFF_8f3a...&amp;gt;&amp;gt;&amp;gt;&lt;/code&gt;), and every child process is spawned with &lt;code&gt;shell: false&lt;/code&gt; (plus explicit &lt;code&gt;cmd.exe /d /s /c&lt;/code&gt; metacharacter validation on Windows &lt;code&gt;.cmd&lt;/code&gt; shims to mitigate &lt;code&gt;CVE-2024-27980&lt;/code&gt;, and &lt;code&gt;--end-of-options&lt;/code&gt; on &lt;code&gt;git diff&lt;/code&gt; ranges to prevent &lt;code&gt;CWE-88&lt;/code&gt; argument injection).&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Deterministic Gate (&lt;code&gt;PASS = 0&lt;/code&gt;, &lt;code&gt;BLOCK = 1&lt;/code&gt;)
&lt;/h4&gt;

&lt;p&gt;Findings are deduplicated across probes and evaluated against your severity threshold (&lt;code&gt;--fail-on P1&lt;/code&gt; by default). Any &lt;code&gt;P0&lt;/code&gt; or &lt;code&gt;P1&lt;/code&gt; finding—or any failed/timed-out probe (fail-closed)—returns exit code &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Quickstart (Zero Install or Universal Skill)
&lt;/h3&gt;

&lt;p&gt;You can run it directly from GitHub on any Node &lt;code&gt;&amp;gt;=20&lt;/code&gt; machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Check installed CLIs and cross-review matrix&lt;/span&gt;
npx &lt;span class="nt"&gt;--yes&lt;/span&gt; github:Dimoncelli/cold-jury doctor

&lt;span class="c"&gt;# 2. Run a cross-CLI hostile review on your current git diff&lt;/span&gt;
npx &lt;span class="nt"&gt;--yes&lt;/span&gt; github:Dimoncelli/cold-jury review &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--author&lt;/span&gt; claude &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--spec&lt;/span&gt; &lt;span class="s2"&gt;"Validate JWT audience claim and reject expired refresh tokens"&lt;/span&gt;

&lt;span class="c"&gt;# 3. Install a non-bypassable git pre-push hook&lt;/span&gt;
npx &lt;span class="nt"&gt;--yes&lt;/span&gt; github:Dimoncelli/cold-jury init-hook
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or install it as a native &lt;strong&gt;Agent Skill&lt;/strong&gt; for Claude Code, Codex, Gemini CLI, Cursor, or OpenCode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add Dimoncelli/cold-jury
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repository is MIT-licensed, ships with &lt;code&gt;0&lt;/code&gt; runtime npm dependencies (&lt;code&gt;24 files, 31.6 kB&lt;/code&gt; packed), and runs 164 automated tests across Linux, macOS, and Windows:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/Dimoncelli/cold-jury" rel="noopener noreferrer"&gt;https://github.com/Dimoncelli/cold-jury&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would love feedback from anyone running multi-agent coding workflows—especially on additional secret patterns, probe heuristics, or local Ollama model pairings you find effective for code review.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>node</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
