<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>BlackMesa Labs</title>
    <subtitle>Engineering notes: what we built, what we broke, what we took away.</subtitle>
    <link href="https://mesa.black/en/feed.xml" rel="self"/>
    <link href="https://mesa.black/en/"/>
    <updated>2026-11-01T01:00:00+01:00</updated>
    <id>https://mesa.black/en/</id>
    <author>
        <name>Jérôme Nadaud</name>
        <uri>https://github.com/jnadaud</uri>
    </author>
        <entry>
        <title>You cannot secure Luhn. That is why your card has a CVV.</title>
        <link href="https://mesa.black/en/you-cannot-secure-luhn/"/>
        <id>https://mesa.black/en/you-cannot-secure-luhn/</id>
        <updated>2026-11-01T01:00:00+01:00</updated>
        <summary>The Luhn formula has been explained a thousand times. What gets explained less is that it protects against nothing, that making it &quot;more secure&quot; is a category error, and that the payment industry understood this back in the 1990s. We also checked what our own tool sees when code uses it as a lock: nothing. That is fixed, in part, and here is what remains.</summary>        <content type="html">&lt;p&gt;The last digit of a card number is not part of the account number. It is a check digit, computed from the other fifteen with a &lt;a href=&quot;https://en.wikipedia.org/wiki/Luhn_algorithm&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;formula&lt;/a&gt; that Hans Peter Luhn, an engineer at IBM, patented in 1960. It is in card numbers, in phone IMEIs, and in every French company identifier (SIREN and SIRET).&lt;/p&gt;
&lt;p&gt;It fits in three lines. Starting from the right, double every second digit; when the double is over 9, subtract 9; add everything up. The number is valid if the sum is a multiple of 10. &lt;code&gt;79927398713&lt;/code&gt; passes, &lt;code&gt;79927398712&lt;/code&gt; does not.&lt;/p&gt;
&lt;p&gt;This post starts from an idea that comes up regularly, and that we had too: since everybody knows the formula, why not harden it? Change its “crypto mode”, put a key in it, make it into something secure. The short answer is that you cannot, and the reason is more useful than the formula itself.&lt;/p&gt;
&lt;h2 id=&quot;what-luhn-actually-does&quot;&gt;What Luhn actually does&lt;/h2&gt;
&lt;p&gt;Luhn does not protect a number. It protects against a typing mistake: a human copying sixteen digits from a card, over the phone or on a keyboard. At that job it is very good, and we checked rather than copied the claim:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;it catches &lt;strong&gt;every single-digit error&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;it catches &lt;strong&gt;every swap of two adjacent digits, except &lt;code&gt;09&lt;/code&gt; ↔ &lt;code&gt;90&lt;/code&gt;&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;it misses a few “twin errors”, where two identical digits are replaced by two other identical ones: &lt;code&gt;22&lt;/code&gt; ↔ &lt;code&gt;55&lt;/code&gt;, &lt;code&gt;33&lt;/code&gt; ↔ &lt;code&gt;66&lt;/code&gt;, &lt;code&gt;44&lt;/code&gt; ↔ &lt;code&gt;77&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is all it is asked to do. The formula contains no secret: anybody can compute it, and that is on purpose, since it is the payment form that has to be able to say “you must have mistyped” before sending anything.&lt;/p&gt;
&lt;p&gt;For an adversary, the consequence is immediate. A random number passes the check &lt;strong&gt;one time in ten&lt;/strong&gt; (over a hundred thousand draws, we counted 10.2%). And any fifteen chosen digits always have a sixteenth that makes them valid: you just do the arithmetic. A protection you can compute yourself protects against nothing.&lt;/p&gt;
&lt;h2 id=&quot;why-it-cannot-be-hardened&quot;&gt;Why it cannot be hardened&lt;/h2&gt;
&lt;p&gt;Suppose we replace Luhn’s arithmetic with a function that takes a secret key. The check digit becomes impossible to compute without the key: wish granted. But what we have built has a name: it is a &lt;strong&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Message_authentication_code&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;message authentication code&lt;/a&gt;&lt;/strong&gt;, a MAC. And a MAC is judged by its length.&lt;/p&gt;
&lt;p&gt;One decimal digit is 3.3 bits. An adversary who does not know the key guesses the right digit one time in ten, exactly as before. We have added a key to manage, rotate and protect, and the forgery probability has not moved one bit.&lt;/p&gt;
&lt;p&gt;To reach the security expected of a modern MAC, 128 bits, it would take &lt;strong&gt;39 check digits&lt;/strong&gt;. A card number does not have a single one to spare: the format is fixed by ISO/IEC 7812, and terminals and forms all over the world expect it as it is. An identifier’s security budget is counted in digits, and this one’s is zero.&lt;/p&gt;
&lt;p&gt;So the problem is not that Luhn is “weak”. It does something else entirely, and does it perfectly. Protecting against an accident and protecting against an adversary are two different jobs, and the first is not a cut-price version of the second.&lt;/p&gt;
&lt;h2 id=&quot;what-the-industry-did-instead&quot;&gt;What the industry did instead&lt;/h2&gt;
&lt;p&gt;The payment sector asked itself the same question, and answered by leaving Luhn alone and putting the security next to it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The &lt;a href=&quot;https://en.wikipedia.org/wiki/Card_security_code&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;CVV&lt;/a&gt; is exactly the “Luhn with a key” we were looking for.&lt;/strong&gt; The three digits on the back of the card are computed by the issuing bank, with a pair of secret keys (&lt;a href=&quot;https://en.wikipedia.org/wiki/Triple_DES&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;3DES&lt;/a&gt;, inside a hardware security module), over the card number, the expiry date and a service code. Without the key they cannot be computed. It is a MAC.&lt;/p&gt;
&lt;p&gt;And it has exactly the flaw described above: three digits, barely 10 bits. One in a thousand. What makes it usable is not the cryptography, it is everything around it. The bank blocks the card after a few wrong attempts, and &lt;a href=&quot;https://en.wikipedia.org/wiki/Payment_Card_Industry_Data_Security_Standard&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;PCI DSS&lt;/a&gt; forbids storing the CVV after authorisation. When those conditions fail, three digits do not hold: in 2016, researchers at Newcastle University showed that by spreading guesses over hundreds of merchant sites, which do not talk to one another, a card’s CVV could be found in a matter of seconds.&lt;/p&gt;
&lt;p&gt;The lesson is the same as for Luhn, one step further: &lt;strong&gt;a MAC that is too short is only secure as long as somebody counts the attempts&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The industry understood this well enough that it eventually turned the other dial. Since the mid-2010s, some banks have offered cards with a &lt;strong&gt;dynamic CVV&lt;/strong&gt;: a small screen on the back shows a code that changes at regular intervals, and banking apps do the same for virtual cards. The code still has three digits. Nobody tried to make it longer, since the format does not allow it. Its lifetime was made shorter instead. A CVV guessed across a hundred merchant sites is worthless if it has changed before the attack is over, and a CVV stolen along with the rest of the card expires on its own. It is the principle behind the &lt;a href=&quot;https://en.wikipedia.org/wiki/One-time_password&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;one-time codes&lt;/a&gt; in our authenticator apps: when a secret cannot be made longer, make it die quickly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Tokenization_%28data_security%29&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Tokenisation&lt;/a&gt; is the other answer.&lt;/strong&gt; When Apple Pay or Google Pay registers a card, the phone does not receive the real number. It receives a token issued by the network, shaped like a card number, Luhn included, so that terminals and forms accept it without changing anything. The token is worthless outside the device and the context it was issued for. &lt;a href=&quot;https://en.wikipedia.org/wiki/Format-preserving_encryption&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Format-preserving encryption&lt;/a&gt; (FF1, standardised by NIST in SP 800-38G) does a related job: it encrypts a sixteen-digit number into another sixteen-digit number.&lt;/p&gt;
&lt;p&gt;In both cases Luhn stays what it is: a typing check laid over a number, whether that number is real, a token or encrypted. The security lives elsewhere, in a key, a hardware module and an attempt counter.&lt;/p&gt;
&lt;p&gt;A word on quantum computing, since it is our usual subject: none of this depends on it. A MAC rests on a shared key, which a quantum computer weakens only marginally. A CVV does not need a quantum computer to be guessed, it needs a merchant site that does not count attempts.&lt;/p&gt;
&lt;h2 id=&quot;what-our-tool-sees&quot;&gt;What our tool sees&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/mesa-black/sablier&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Sablier&lt;/a&gt; reads a repository and lists all the cryptography it finds there. So the natural question was: what does it say about code that uses a typing check as a lock? We wrote a four-file project to find out, and ran the published version, 0.11.1, on it without changing anything.&lt;/p&gt;
&lt;p&gt;The four files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a voucher accepted on the strength of its Luhn check digit alone, then credited with €50;&lt;/li&gt;
&lt;li&gt;a password-reset link “signed” with &lt;code&gt;crc32()&lt;/code&gt;, and an authentication token checked with &lt;code&gt;hash(&#039;crc32b&#039;, …)&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;the same link, signed properly with &lt;code&gt;hash_hmac(&#039;sha256&#039;, …)&lt;/code&gt; and a secret key, as a control;&lt;/li&gt;
&lt;li&gt;card numbers stored with &lt;code&gt;openssl_encrypt(…, &#039;des-ede3-cbc&#039;, …)&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The report:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  . — 4 files read, 3 findings, 0.0 s
  declaration: none (default lifetimes)

    BROKEN TODAY             1
    CLEAR                    1
    PROBABLY NOT SECURITY    1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The 3DES is found and filed as broken, the &lt;a href=&quot;https://en.wikipedia.org/wiki/HMAC&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;HMAC&lt;/a&gt; is found and filed as clear. The voucher, the CRC-signed link and the CRC-checked token &lt;strong&gt;appear nowhere&lt;/strong&gt;. Yet they are the only three places in the project where a stranger can get something that does not belong to them.&lt;/p&gt;
&lt;p&gt;The reasons were precise, and they were all in the code:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A hand-written Luhn check has no signature.&lt;/strong&gt; It is a loop, a doubling and a modulo 10. There is no library call to recognise, and we had never tried.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;crc32()&lt;/code&gt; was looked for by no rule.&lt;/strong&gt; It is a PHP function, easy to spot, and nobody had thought of it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;hash(&#039;crc32b&#039;, …)&lt;/code&gt; was seen, then dropped.&lt;/strong&gt; The rule that reads &lt;code&gt;hash()&lt;/code&gt; found the call, looked &lt;code&gt;crc32b&lt;/code&gt; up in its catalogue, did not find it, and applied a rule written precisely against false positives: &lt;em&gt;an algorithm we do not know is not ours to judge.&lt;/em&gt; Yet the line contains &lt;code&gt;$authToken&lt;/code&gt;, one of the words that, elsewhere in the same file, turn a finding back to red.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The word “checksum” silenced the tool.&lt;/strong&gt; It is still in the list of hints that mark an identifier rather than a security control. An &lt;code&gt;md5()&lt;/code&gt; over a reset token, in a function called &lt;code&gt;checksum&lt;/code&gt;, therefore comes out as “probably not security”. In this precise case the conclusion holds up, since MD5 collisions are useless against the digest of a random token. But the reasoning is wrong: the tool filed it with the cache keys because it read the function’s name, not because it understood what the function protects.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is worse than silence. Every Sablier report ends with a section called “What this report did not look at”, because an inventory that hides its blind spots manufactures false assurance. That section covered managed services, HSMs, images, YAML. &lt;strong&gt;It did not mention checksums.&lt;/strong&gt; The reader of that report had every reason to believe their reset links had been looked at.&lt;/p&gt;
&lt;p&gt;This is not a one-off slip, it is the consequence of a choice we still stand by. The lists that silence the tool were built from a measurement: twenty public repositories, eighty-nine findings filed as “broken”, eighty-two of which were cache keys, filenames or identifiers. Without those lists, the seven real findings drowned. With them, across thirty-one repositories, only three of twenty-one reds are wrong. But a list that silences the tool on a word needs the opposite rule, the one that notices when that word names exactly the thing being protected, and for “checksum” that rule did not exist.&lt;/p&gt;
&lt;h2 id=&quot;what-the-tool-says-now&quot;&gt;What the tool says now&lt;/h2&gt;
&lt;p&gt;The missing finding was not “CRC32 is broken”. &lt;a href=&quot;https://en.wikipedia.org/wiki/Cyclic_redundancy_check&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;CRC32&lt;/a&gt; is not broken; it does very well what it exists for, checking that a file was not damaged on the way. That finding would be false, and that kind of error teaches the reader to stop believing the red ones. The right finding is about the &lt;strong&gt;use&lt;/strong&gt;, and it is the one Sablier has printed since 0.12.0:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;BROKEN TODAY&lt;/strong&gt; — &lt;code&gt;src/ResetLink.php:8&lt;/code&gt;
A checksum protects against an accident, not against somebody: it has no key, and anyone can recompute it. The deadline was yesterday.
&lt;em&gt;Replacement: HMAC-SHA-256 with a secret key, compared with &lt;code&gt;hash_equals()&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On the same four-file project, the report goes from three findings to six:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  . — 4 files read, 6 findings, 0.0 s
  declaration: none (default lifetimes)

    BROKEN TODAY             4
    CLEAR                    1
    PROBABLY NOT SECURITY    1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The three checksums on the reset link and the token are red, and so is the 3DES. The link signed with a key stays clear.&lt;/p&gt;
&lt;p&gt;The rule is deliberately narrow. A &lt;code&gt;crc32()&lt;/code&gt; is reported only when it sits next to something a stranger would want to forge: a token, a reset link, a password, a secret, a signature, a voucher, read on the line, in the function’s name and in the file’s name. Everywhere else it stays silent: verifying a download, spreading sessions across servers, computing an ETag is exactly what a checksum is for. The test that comes with the fix contains those three uses, and it fails if any of them turns red. Without it, we would have replaced a silence with noise.&lt;/p&gt;
&lt;p&gt;What is not fixed is Luhn itself. The voucher accepted on its check digit still does not appear: a loop, a doubling and a modulo cannot be told apart from ordinary arithmetic, and recognising one by its shape is a project of its own. Until then, the report says so, in its blind spots section, in so many words:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Checksums (CRC32, Adler-32) are reported only beside a token, a link or a secret. A Luhn check digit or a modulo written by hand never is: nothing tells it apart from ordinary arithmetic, and code that accepts a number on the strength of its check digit does not appear here.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Luhn does not need to be secured. It needs people to stop asking it to be, and a tool that claims to take inventory to say so when it cannot see somebody doing it.&lt;/p&gt;
</content>
    </entry>
        <entry>
        <title>We named the branch. The commit landed on main.</title>
        <link href="https://mesa.black/en/we-named-the-branch/"/>
        <id>https://mesa.black/en/we-named-the-branch/</id>
        <updated>2026-10-20T02:00:00+02:00</updated>
        <summary>In a GitOps repository, main is production. One night in October, manifests nobody had approved landed there, with an image tag that did not exist, and nobody had typed &quot;main&quot;. Two Git settings, each reasonable, and a command that is right everywhere else.</summary>        <content type="html">&lt;p&gt;In a GitOps repository there is no “deploy” button. Argo CD reads the &lt;code&gt;main&lt;/code&gt; branch of k3s-stack, our (private) infrastructure repository, and makes the cluster converge on what it contains. Pushing to &lt;code&gt;main&lt;/code&gt; is shipping to production. That is the whole point of the model, and it is why everything goes through a branch, gets reviewed, then merged.&lt;/p&gt;
&lt;p&gt;On 19 October at 01:00, a commit landed directly on &lt;code&gt;main&lt;/code&gt;: the manifests of the small service that shows readers the key exchange their browser just negotiated. Nobody had approved them. And their image carried a placeholder tag, written while waiting for CI to build the real one:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;images:
  - name: ghcr.io/mesa-black/handshake
    newTag: TO-BE-SET-AFTER-THE-FIRST-BUILD
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Argo CD did exactly what it is told: it deployed. The pod sat in &lt;code&gt;ImagePullBackOff&lt;/code&gt; for nine minutes, until CI wrote the real tag at 23:09 UTC. No harm this time: a new service nobody was calling yet. But nobody had typed &lt;code&gt;git push origin main&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-command-that-was-typed&quot;&gt;The command that was typed&lt;/h2&gt;
&lt;p&gt;The branch was created in a worktree, from the remote branch, then pushed by naming it explicitly. In substance:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git worktree add -b feat/handshake ../k3s-handshake origin/HEAD
# … commit …
git push -u origin feat/handshake
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It was typed by the coding agent we work with, and it is the right command in nearly every configuration. It was not right in ours, because two settings meet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The first is a Git default.&lt;/strong&gt; A branch created from a remote branch (&lt;code&gt;origin/main&lt;/code&gt;, or &lt;code&gt;origin/HEAD&lt;/code&gt;, which points to it) tracks it automatically: that is &lt;code&gt;branch.autoSetupMerge&lt;/code&gt;, on by default. Our &lt;code&gt;feat/handshake&lt;/code&gt; therefore had &lt;code&gt;main&lt;/code&gt; as its upstream, without anyone asking for it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The second is a choice, in our &lt;code&gt;~/.gitconfig&lt;/code&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-ini&quot;&gt;[push]
    default = upstream
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With &lt;code&gt;upstream&lt;/code&gt;, &lt;code&gt;git push&lt;/code&gt; sends the current branch to its upstream. It is a legitimate setting, designed for workflows where a local branch has a different name from the branch it feeds. With a branch that tracks &lt;code&gt;main&lt;/code&gt;, it pushes to &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;So far, nothing surprising: that is what the documentation says for &lt;code&gt;git push&lt;/code&gt; with no arguments. The surprise is elsewhere.&lt;/p&gt;
&lt;h2 id=&quot;even-when-you-name-the-branch&quot;&gt;Even when you name the branch&lt;/h2&gt;
&lt;p&gt;We expected naming the branch, &lt;code&gt;git push -u origin feat/handshake&lt;/code&gt;, to override the setting. It does not. We replayed it in a throwaway repository, with Git 2.54, each time creating a branch from &lt;code&gt;origin/main&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;push.default&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;git push&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;git push -u origin my-branch&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;simple&lt;/code&gt;, Git’s default&lt;/td&gt;
&lt;td&gt;refuses, and explains why&lt;/td&gt;
&lt;td&gt;creates &lt;code&gt;my-branch&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;current&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;creates the branch&lt;/td&gt;
&lt;td&gt;creates &lt;code&gt;my-branch&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;pushes to main&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;pushes to main&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;With &lt;code&gt;upstream&lt;/code&gt;, a destination missing from the command is replaced by the upstream, even when you wrote the name of the source branch. The name you type says what is sent, not where it lands. Only a destination spelled out in full changes the outcome:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git push -u origin HEAD:refs/heads/feat/handshake   # does create the branch
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The script, to check it without us:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;#!/bin/sh
# A branch created from origin/main, pushed by naming it.
set -e
d=$(mktemp -d) &amp;amp;&amp;amp; cd &amp;quot;$d&amp;quot;
git init -q --bare -b main remote.git
git clone -q remote.git clone 2&amp;gt;/dev/null &amp;amp;&amp;amp; cd clone
git commit -q --allow-empty -m init &amp;amp;&amp;amp; git push -q origin main
git switch -q -c my-branch origin/main
git commit -q --allow-empty -m &amp;quot;my-branch&amp;quot;
git -c push.default=upstream push -q -u origin my-branch
git --git-dir=../remote.git for-each-ref --format=&#039;%(refname:short)&#039; refs/heads
# prints &amp;quot;main&amp;quot; alone: the branch does not exist, the commit is on main
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;why-it-is-worse-in-a-gitops-repository&quot;&gt;Why it is worse in a GitOps repository&lt;/h2&gt;
&lt;p&gt;In an application repository, this push would have put an unreviewed commit on &lt;code&gt;main&lt;/code&gt;. Annoying, fixable, and CI would probably have complained before anything reached production.&lt;/p&gt;
&lt;p&gt;In a GitOps repository there is no step in between. The commit is the deployment. No review, no merge, and in our case not even an image: the controller applied a manifest referencing a tag that did not exist yet. The mistake does not show in Git, where everything looks normal. It shows in the cluster.&lt;/p&gt;
&lt;p&gt;And it does not show in the terminal either. The push succeeds, with no warning. The output does say &lt;code&gt;-&amp;gt; main&lt;/code&gt;, on a line nobody reads after a push that worked.&lt;/p&gt;
&lt;h2 id=&quot;what-we-changed&quot;&gt;What we changed&lt;/h2&gt;
&lt;p&gt;Three rules, now written into the agent’s instructions as well as ours:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Create branches from local &lt;code&gt;main&lt;/code&gt;, not from &lt;code&gt;origin/main&lt;/code&gt;.&lt;/strong&gt; A branch created from a local branch tracks nothing: &lt;code&gt;git worktree add -b feat/x ../x main&lt;/code&gt;, or &lt;code&gt;--no-track&lt;/code&gt; if you start from the remote anyway.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Push with an explicit destination:&lt;/strong&gt; &lt;code&gt;git push -u origin HEAD:refs/heads/feat/x&lt;/code&gt;. It is longer, and it is the only form that gives the same result whatever &lt;code&gt;push.default&lt;/code&gt; says.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check &lt;code&gt;origin/main&lt;/code&gt; after every branch push:&lt;/strong&gt; &lt;code&gt;git log origin/main -1&lt;/code&gt;. If the last commit is ours, it is already in production.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We did not change &lt;code&gt;push.default&lt;/code&gt;. The setting is useful elsewhere, and changing it would only have fixed our own machine. The rule also protects the agent, which shares the same configuration.&lt;/p&gt;
&lt;h2 id=&quot;what-is-still-missing&quot;&gt;What is still missing&lt;/h2&gt;
&lt;p&gt;The real barrier is not on the workstation. It is on the server: a GitHub rule that refuses direct pushes to &lt;code&gt;main&lt;/code&gt; and requires a pull request, with an exception for the CI deploy key that writes image tags.&lt;/p&gt;
&lt;p&gt;Today, k3s-stack’s &lt;code&gt;main&lt;/code&gt; is not protected: no rule on the branch at all. Everything above therefore relies on the discipline of whoever pushes, human or agent. It is the next thing to fix, and we write it down here so it does not stay an intention.&lt;/p&gt;
&lt;h2 id=&quot;what-it-came-to&quot;&gt;What it came to&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;One push&lt;/strong&gt; to &lt;code&gt;main&lt;/code&gt;, at 01:00, that no command had asked for in those words.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nine minutes&lt;/strong&gt; of a pod in &lt;code&gt;ImagePullBackOff&lt;/code&gt; in production, on a service nobody was calling yet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two settings&lt;/strong&gt; involved: &lt;code&gt;branch.autoSetupMerge&lt;/code&gt;, by default, and &lt;code&gt;push.default = upstream&lt;/code&gt;, by choice.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One discovery:&lt;/strong&gt; with &lt;code&gt;upstream&lt;/code&gt;, naming the branch does not change the destination.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Three working rules&lt;/strong&gt;, and a branch protection still to set up.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practices&quot;&gt;Good practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;In a repository where &lt;code&gt;main&lt;/code&gt; is production, protect &lt;code&gt;main&lt;/code&gt; on the server before anything else. A rule written in a guide protects those who know it; a server rule protects everyone.&lt;/li&gt;
&lt;li&gt;Spell out the destination of a push in full (&lt;code&gt;HEAD:refs/heads/…&lt;/code&gt;) in scripts and in an agent’s instructions: it is the only form independent of local configuration.&lt;/li&gt;
&lt;li&gt;Create working branches from the local branch, so they track nothing by accident.&lt;/li&gt;
&lt;li&gt;After a push, read the line that says where it landed, or check the remote branch.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;watch-out-for&quot;&gt;Watch out for&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A right command is only right in one configuration.&lt;/strong&gt; &lt;code&gt;git push -u origin my-branch&lt;/code&gt; is correct nearly everywhere. An agent that learnt it elsewhere will type it on your machine, with your &lt;code&gt;~/.gitconfig&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An inherited setting shows up in no review.&lt;/strong&gt; &lt;code&gt;push.default = upstream&lt;/code&gt; lives in the global configuration, not in the repository. Nothing flags it until it has had its effect.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A successful push does not say where it went.&lt;/strong&gt; Git gives no warning when the destination differs from the name typed. The only trace is the &lt;code&gt;-&amp;gt; main&lt;/code&gt; line.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Whoever answers is whoever owns the configuration.&lt;/strong&gt; The agent typed the command, but it was our machine that sent it to &lt;code&gt;main&lt;/code&gt;. We wrote it a few days ago: &lt;a href=&quot;/en/who-answers/&quot;&gt;an agent can do anything, it cannot answer for what it did&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>Your document and its signature do not travel together</title>
        <link href="https://mesa.black/en/two-urls/"/>
        <id>https://mesa.black/en/two-urls/</id>
        <updated>2026-10-14T02:00:00+02:00</updated>
        <summary>A signed artefact published on the web is at least two HTTP resources. The verifier downloads them separately, and nothing guarantees they come from the same generation. When they do not, verification fails exactly as it would on a forgery. Here is the mechanism, what it breaks, and the three ways to close it.</summary>        <content type="html">&lt;p&gt;You publish a signed document. The reader runs the command you printed, and it answers:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;message imprint mismatch
Verification: FAILED
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That answer has two possible causes. One is that someone modified your document. The other is that they downloaded yesterday’s document and today’s token.&lt;/p&gt;
&lt;p&gt;Nothing in the message tells them apart.&lt;/p&gt;
&lt;h2 id=&quot;two-files-two-resources-two-lifetimes&quot;&gt;Two files, two resources, two lifetimes&lt;/h2&gt;
&lt;p&gt;A signed artefact on the web is never one file. It is &lt;strong&gt;at least two independent HTTP resources&lt;/strong&gt;: the document, and the detached signature next to it. Often three, when a timestamp token is added. In our case, five: a report, its signature, and three date attestations.&lt;/p&gt;
&lt;p&gt;The verifier fetches them with separate requests. Each one goes through its own browser cache, its own proxy, its own CDN, and each one comes out with its own freshness. &lt;strong&gt;Nothing in the protocol treats them as a set.&lt;/strong&gt; There is no “fetch me these five files as they were at the same instant”.&lt;/p&gt;
&lt;p&gt;It is obvious once said. It is not obvious at all when you publish.&lt;/p&gt;
&lt;h2 id=&quot;what-http-does-when-you-tell-it-nothing&quot;&gt;What HTTP does when you tell it nothing&lt;/h2&gt;
&lt;p&gt;If you set no &lt;code&gt;Cache-Control&lt;/code&gt;, the cache does not give up. It guesses. RFC 9111, section 4.2.2, says exactly this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;A cache MAY assign a heuristic expiration time when an explicit time is not specified, employing algorithms that use other field values (such as the Last-Modified time) to estimate a plausible expiration time.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And further on:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;If the response has a Last-Modified header field, caches are encouraged to use a heuristic expiration value that is no more than some fraction of the interval since that time. A typical setting of this fraction might be 10%.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ten per cent of the document’s age. A report published ten days ago is therefore considered fresh for a whole day, without anyone asking the server anything. A report published three months ago, for more than a week.&lt;/p&gt;
&lt;p&gt;And it is not a setting you chose: it is what happens &lt;strong&gt;in the absence&lt;/strong&gt; of a setting. Silence is not neutral.&lt;/p&gt;
&lt;h2 id=&quot;why-this-failure-is-worse-than-the-others&quot;&gt;Why this failure is worse than the others&lt;/h2&gt;
&lt;p&gt;A blog post served from cache is a nuisance. Here, three things combine.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The document carries the fingerprint of its own content.&lt;/strong&gt; That is the principle: the report prints the fingerprint of its findings, and that is what gets compared with the token. A stale document carries a stale fingerprint.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And the reader does not hold both files in the same state.&lt;/strong&gt; This is where it is easy to get it wrong, and we got it wrong while writing this paragraph: you imagine the resources have different freshness lifetimes. On our site they have exactly the same one — the deployment gives them the same &lt;code&gt;Last-Modified&lt;/code&gt;, so the same heuristic window, to the second.&lt;/p&gt;
&lt;p&gt;The asymmetry is elsewhere, and it is &lt;strong&gt;behavioural&lt;/strong&gt;: the reader has already visited the page, so it is in their cache. They have never downloaded the token, so they do not have it. The first request is served from cache, the second goes to the server. Two generations, simply because people read a page several times and check a signature once.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And the error message is the same as for a forgery.&lt;/strong&gt; That is the point. In &lt;a href=&quot;/en/when/&quot;&gt;last week’s post&lt;/a&gt;, we explained why &lt;code&gt;openssl ts -verify&lt;/code&gt; conflates two situations that have nothing in common — a certificate chain it cannot build, and a token that attests a different document. Here is a third one, which lands in the same bucket: &lt;strong&gt;two perfectly authentic files, but not from the same generation.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The reader sees &lt;code&gt;FAILED&lt;/code&gt;. They conclude what anyone would conclude.&lt;/p&gt;
&lt;h2 id=&quot;measured-on-our-own-site&quot;&gt;Measured on our own site&lt;/h2&gt;
&lt;p&gt;We found this on our own site, and how it happened is worth telling: a reader reported that the published inventory still showed a version we had replaced. The server was returning the new one — &lt;code&gt;curl&lt;/code&gt; showed it in one line.&lt;/p&gt;
&lt;p&gt;The temptation is to answer “clear your cache”. It is true, and it is the wrong answer: the cause was on our side. Our signed artefacts carried &lt;strong&gt;no&lt;/strong&gt; &lt;code&gt;Cache-Control&lt;/code&gt; at all, only a &lt;code&gt;Last-Modified&lt;/code&gt;. The heuristic was doing exactly what the RFC describes.&lt;/p&gt;
&lt;p&gt;Nobody was harmed — the gap was in a version number, not in the fingerprint, so verification still passed. But that was luck, not design: had the findings moved, a careful reader would have concluded our seal was broken.&lt;/p&gt;
&lt;h2 id=&quot;this-is-not-a-blog-problem&quot;&gt;This is not a blog problem&lt;/h2&gt;
&lt;p&gt;The mechanism depends on nothing specific to us. Wherever a signed artefact is published with its signature next to it, the same desynchronisation is possible:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;an &lt;strong&gt;SBOM&lt;/strong&gt; and its signature, in a GitHub release or an artefact registry;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;provenance attestation&lt;/strong&gt; — SLSA, in-toto — served next to the image it describes;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;sigstore bundle&lt;/strong&gt;, whose &lt;code&gt;.sigstore&lt;/code&gt; is a second request;&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;release manifest&lt;/strong&gt; and its &lt;code&gt;SHA256SUMS.asc&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;any &lt;strong&gt;RFC 3161 token&lt;/strong&gt; placed next to the document it dates.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And it gets worse with every layer you stack. A CDN keeps its own copy, with its own lifetime, and does not necessarily purge all five files at the same instant. A package mirror resyncs in batches. The more intermediaries, the longer the window during which your resources come from different generations.&lt;/p&gt;
&lt;h2 id=&quot;three-ways-to-close-it-and-what-they-cost&quot;&gt;Three ways to close it, and what they cost&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;1. Forbid use without asking.&lt;/strong&gt; &lt;code&gt;Cache-Control: no-cache&lt;/code&gt; on the family of URLs that carry signed artefacts. The name is misleading: it does not forbid storing, only serving without revalidation. The real cost is a &lt;code&gt;304 Not Modified&lt;/code&gt; — a few hundred bytes — and the benefit is that a reader can no longer compare two generations.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# what the server says now, on /audit/*
cache-control: no-cache

# and what revalidation costs
curl -s -o /dev/null -w &#039;%{http_code}\n&#039; -H &amp;quot;If-None-Match: $ETAG&amp;quot; …
304
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It is the cheapest and most immediate remedy. It is the one we applied.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Put the fingerprint in the URL.&lt;/strong&gt; A file named &lt;code&gt;report-8ecb829c.html&lt;/code&gt; cannot be stale: if the content changes, the name changes, so the address changes. A cache that serves you the old URL serves you the old document — which is correct, and verifiable, because its fingerprint is in its name.&lt;/p&gt;
&lt;p&gt;It is sturdier than point 1, and more expensive: links move with every publication, and you have to keep old versions reachable or accept dead links. Keep it for artefacts you archive rather than those you republish.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Print the fingerprint in the document.&lt;/strong&gt; This one does not replace the other two, it makes them diagnosable. If the report displays the fingerprint it covers, the verifier can compare &lt;strong&gt;three&lt;/strong&gt; values instead of two: the one the document announces, the one the token attests, and the one recomputed.&lt;/p&gt;
&lt;p&gt;And the combination finally tells the cases apart:&lt;/p&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;what you observe&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;the document announces A, the token attests A, the recomputation gives A&lt;/td&gt;
&lt;td&gt;all is well&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the document announces A, the token attests B&lt;/td&gt;
&lt;td&gt;the two files disagree. Almost always a stale copy — reload everything, without cache, before considering anything else&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the document announces A, the token attests A, the recomputation gives B&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;now&lt;/strong&gt; someone has modified the document&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Three rows that turn a mute &lt;code&gt;FAILED&lt;/code&gt; into three separate diagnoses.&lt;/p&gt;
&lt;h2 id=&quot;what-it-says-about-a-verification-tool&quot;&gt;What it says about a verification tool&lt;/h2&gt;
&lt;p&gt;It is the same lesson as for the four states of a timestamp, and it generalises: &lt;strong&gt;a tool that verifies must tell the reasons for failing apart, not just report the failure.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;“These two files are not from the same generation” and “this document has been modified” call for opposite actions. The first is fixed by reloading. The second is an incident. Confusing them means either raising an alert for a cache problem or — far worse — filing a real forgery under network oddities and moving on.&lt;/p&gt;
&lt;p&gt;That is also why you should test the verification command &lt;strong&gt;from a machine that is not yours&lt;/strong&gt;, and preferably from an empty container. The machine that produced the artefact has all the right versions locally; it is precisely the one place where the bug is invisible.&lt;/p&gt;
&lt;h2 id=&quot;good-practices&quot;&gt;Good practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Treat the document, its signature and its token as a set&lt;/strong&gt;, since HTTP never will. If you take only one action, take this one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Set an explicit &lt;code&gt;Cache-Control&lt;/code&gt; on signed artefacts.&lt;/strong&gt; Setting nothing is not neutral: the RFC allows the cache to guess, and it does.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Print the fingerprint in the document itself.&lt;/strong&gt; It costs one line and lets you tell a stale copy from a forgery.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Verify from somewhere else.&lt;/strong&gt; An empty container, another machine, another network. The origin does not reproduce the bug it causes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If you archive rather than republish, put the fingerprint in the file name.&lt;/strong&gt; A content-addressed URL cannot serve a stale version.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;watch-out-for&quot;&gt;Watch out for&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;no-cache&lt;/code&gt; and &lt;code&gt;no-store&lt;/code&gt; do not say the same thing. The first allows keeping and requires revalidating; the second forbids keeping. For a public artefact the first is enough, and the second wastes bandwidth for nothing.&lt;/li&gt;
&lt;li&gt;Your CDN has its own policy, which can outlive the origin’s. Check on the wire, from outside, not in your configuration file.&lt;/li&gt;
&lt;li&gt;Purging a cache file by file reopens the window: during the purge, the resources come from different generations. Purge the whole family at once, or let revalidation do the work.&lt;/li&gt;
&lt;li&gt;A verifier that downloads its files a few minutes apart can land in the middle of a deployment. It is rare, it is real, and it is yet another failure that looks like a forgery.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>An agent can do anything. It cannot answer for what it did.</title>
        <link href="https://mesa.black/en/who-answers/"/>
        <id>https://mesa.black/en/who-answers/</id>
        <updated>2026-10-12T02:00:00+02:00</updated>
        <summary>Where development ends, where operations begin, and who decides when an AI writes half of both. The answer is not in the tooling or the org chart: it is in reversibility, and European law has already written it down for cybersecurity. Here is the line, and what it demands in practice.</summary>        <content type="html">&lt;p&gt;The question “where is the boundary between dev and ops” has been badly posed for ten years, and coding agents have made it frankly unusable. Because we keep answering it with tools — who writes the Terraform, who carries the pager, who has production access — when the only answer that holds is somewhere else.&lt;/p&gt;
&lt;p&gt;There is one boundary, and it separates &lt;strong&gt;what you can come back from&lt;/strong&gt; from what you cannot.&lt;/p&gt;
&lt;h2 id=&quot;what-the-boundary-is-not&quot;&gt;What the boundary is not&lt;/h2&gt;
&lt;p&gt;It is not in the tooling. Saying that development stops at &lt;code&gt;git push&lt;/code&gt; and operations start at the deployment makes no sense in a chain where the same file describes the application and the infrastructure carrying it, where the same pipeline builds the image and puts it into production.&lt;/p&gt;
&lt;p&gt;It is not in the job titles. “DevOps” solved an organisational problem by renaming it: two teams that passed the ball to each other were merged, which was progress, and from that we concluded the boundary had gone. It has not gone. It moved &lt;strong&gt;inside each person&lt;/strong&gt;, who writes code in the morning and deploys it in the afternoon, and who must therefore arbitrate alone what an organisation used to arbitrate for them.&lt;/p&gt;
&lt;p&gt;And it is not in the access rights. Who can connect to production is a consequence of the boundary, not its definition. We hand out rights because we have decided who answers for what — not the other way round.&lt;/p&gt;
&lt;h2 id=&quot;what-it-is-three-natures-not-three-degrees&quot;&gt;What it is: three natures, not three degrees&lt;/h2&gt;
&lt;p&gt;A change belongs to one of three categories, and confusing them is the source of most of the incidents that get told afterwards.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reversible and cheap.&lt;/strong&gt; Merging a branch, deploying behind a flag, adding an index, scaling up a replica count. Going back is one command, it costs minutes, and its cost is known &lt;em&gt;in advance&lt;/em&gt;. This category needs no ceremony: ceremony costs more here than the mistake does.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reversible and expensive.&lt;/strong&gt; A schema migration with a data transformation, a provider switch, a format change in an artefact others consume. You can come back, but the return is itself a project, with risks of its own. Here ceremony earns its keep: a window, a backup that has been verified — verified, not assumed — and somebody watching.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Irreversible.&lt;/strong&gt; Deleting data, rotating a key that encrypts a history, publishing. Yes, publishing: you do not unpublish, you add a correction on top. A package pushed to a public registry, an article online, a declaration filed with an authority — what left has left.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The boundary sits between the second and the third&lt;/strong&gt;, and it has nothing to do with job descriptions. A &lt;code&gt;DELETE&lt;/code&gt; without a &lt;code&gt;WHERE&lt;/code&gt; written by a developer and a bucket purge launched by an ops engineer are the same event.&lt;/p&gt;
&lt;h2 id=&quot;where-an-agent-fits--by-the-same-rule&quot;&gt;Where an agent fits — by the same rule&lt;/h2&gt;
&lt;p&gt;This is where the reasoning becomes useful, because it needs no special rule for AI.&lt;/p&gt;
&lt;p&gt;A coding agent is excellent on the first category. It reads more files than a human will ever open, it does not get bored, it does not skip the tedious step, and it measures where we would have read documentation. Forbidding it that category on principle means refusing a real gain out of a misplaced fear.&lt;/p&gt;
&lt;p&gt;On the second, it prepares and does not decide. The distinction is operational, not symbolic: it produces the migration script, the rollback plan and the list of what breaks — and a human reads all three before anything moves.&lt;/p&gt;
&lt;p&gt;On the third, it never decides. And the reason is not competence.&lt;/p&gt;
&lt;p&gt;Experience, on the other hand, does count — but elsewhere, and the distinction is worth holding. What an agent lacks is not knowing how to perform a key rotation: it is having seen one go wrong. Experience is not what decides once you are inside the third category; it is what lets you &lt;strong&gt;recognise that you are in it&lt;/strong&gt;, before acting, when nothing in the command announces it. An agent has no scars, it has a corpus — and a corpus holds the incidents other people have recounted, not the ones you paid for.&lt;/p&gt;
&lt;p&gt;Which is why sorting changes into three categories is not administrative paperwork: it is the place where human experience actually enters the chain. But even an agent that sorted them perfectly still could not decide — and this time the reason owes nothing to capability.&lt;/p&gt;
&lt;h2 id=&quot;the-law-has-already-settled-it-more-clearly-than-our-debates&quot;&gt;The law has already settled it, more clearly than our debates&lt;/h2&gt;
&lt;p&gt;There is a text that answers the question “can a machine carry a decision”, and it is not theoretical. Directive (EU) 2022/2555 — NIS 2 — devotes its article 20 to governance, in these terms:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;management bodies of essential and important entities approve the cybersecurity risk-management measures taken by those entities in order to comply with Article 21, oversee its implementation and can be held liable for infringements by the entities of that Article&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And in the following paragraph:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;members of the management bodies of essential and important entities are required to follow training&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Three verbs, and each one carries weight. &lt;strong&gt;Approve&lt;/strong&gt;: there is an act of acceptance, distinct from producing the measure. &lt;strong&gt;Oversee&lt;/strong&gt;: the acceptance is not spent at the moment of signing. &lt;strong&gt;Be held liable&lt;/strong&gt;: the consequence has a named recipient.&lt;/p&gt;
&lt;p&gt;It is the third that settles the AI question, and it settles it without anyone needing a view on what models can do. You cannot hold an agent liable. It has nothing to lose, no training obligation to discharge, and no legal existence for a sanction to bite on. That is not a judgement on its quality: it is an observation about structure.&lt;/p&gt;
&lt;p&gt;The training obligation says the same thing from the other side. The legislator does not require the company to possess a competence — it requires that &lt;strong&gt;the people who approve&lt;/strong&gt; understand what they are approving. You do not train an agent into liability. You train somebody to know what they are taking on.&lt;/p&gt;
&lt;h2 id=&quot;the-signature-is-the-test-case&quot;&gt;The signature is the test case&lt;/h2&gt;
&lt;p&gt;All of this becomes concrete the moment something has to be signed.&lt;/p&gt;
&lt;p&gt;A cryptographic signature does not say “this was produced correctly”. It says: &lt;strong&gt;somebody stands behind this.&lt;/strong&gt; It is an attribution of responsibility, not a certificate of quality — and that is exactly why it is the right test of the boundary.&lt;/p&gt;
&lt;p&gt;Three practical consequences, all of which follow from that one sentence.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The private key never touches the agent.&lt;/strong&gt; Not out of distrust towards any particular supplier: because a key an agent can use is a key that signs without anyone having taken anything on. In our inventory reports the key is built on the fly, it signs, and it is destroyed — it exists only for the duration of a human gesture.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The agent proposes, the human signs.&lt;/strong&gt; The agent prepares the change, runs the checks, shows what it does, and stops. The authorisation is a separate act, by somebody who can answer for it. That is not a formality: it is article 20’s “approve”, implemented.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The commit carries no machine co-author.&lt;/strong&gt; This one surprises people, and it matters most. A trailer attributing a commit to a tool feels transparent and produces the opposite effect: it dilutes. If a decision is disputed in two years, “co-written with an assistant” names nobody you can question. &lt;strong&gt;A signature that names a tool names nobody.&lt;/strong&gt; Transparency about using agents belongs in the documentation and in the practices — not in the field whose purpose is knowing who to talk to.&lt;/p&gt;
&lt;h2 id=&quot;what-the-human-checkpoint-is-really-there-to-catch&quot;&gt;What the human checkpoint is really there to catch&lt;/h2&gt;
&lt;p&gt;There is a widespread misunderstanding: that we put a human approval in place because we assume the agent is incompetent. That is false, and believing it leads to putting the approval in the wrong place.&lt;/p&gt;
&lt;p&gt;An agent is wrong less often than feared about things it knows how to check. It is wrong differently. Three failure modes deserve naming, because they do not look like incompetence and they do not show up in an ordinary code review.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The test that locks in the defect.&lt;/strong&gt; When the same chain produces the artefact and the test that guards it, the test can encode the observed state instead of the intended one. A check verifying that a document displays the version it displayed yesterday passes perfectly, for months, while guaranteeing exactly the bug. That is worse than no test: it manufactures confidence.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Speed, which turns a recoverable mistake into a propagated one.&lt;/strong&gt; A human who gets a destructive command wrong notices at the next command. An automated chain has already run fifteen more steps. The mistake is the same; its radius is not. It is speed, not accuracy, that justifies the stopping point.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The state that does not exist for the agent.&lt;/strong&gt; We learned this one the hard way, and it is worth telling precisely because it does not look like carelessness.&lt;/p&gt;
&lt;p&gt;An agent reasons about what the repository records. Anything uncommitted does not exist in its model of what is recoverable — and the most natural gesture for undoing an experiment, &lt;code&gt;git checkout &amp;lt;file&amp;gt;&lt;/code&gt;, restores the last committed version &lt;strong&gt;by overwriting everything that was not&lt;/strong&gt;. Twice in one session, while checking that a guard really did refuse what it was meant to refuse, we deliberately broke a file, confirmed the guard noticed, and then undid the experiment that way. The test passed. The uncommitted work went with it — once a documentation file, once a README rewritten from top to bottom.&lt;/p&gt;
&lt;p&gt;A human hesitates in front of a destructive command because they remember working for two hours without committing. The agent has no such memory: it has a git index, and the index does not contain what you just wrote. This is not an attention failure, it is a difference of model — and it is stable, so you can guard against it.&lt;/p&gt;
&lt;p&gt;Two practical consequences, and the second is counter-intuitive. &lt;strong&gt;Before breaking something deliberately to exercise a guard, back it up outside the repository&lt;/strong&gt; — &lt;code&gt;cp&lt;/code&gt; to &lt;code&gt;/tmp&lt;/code&gt; is enough, and &lt;code&gt;git checkout&lt;/code&gt; is not an undo button. And &lt;strong&gt;commit early&lt;/strong&gt;, not out of history discipline, but so that what you have just done &lt;strong&gt;exists&lt;/strong&gt; for the machine helping you.&lt;/p&gt;
&lt;p&gt;Hence a simple rule: &lt;strong&gt;the human approval goes where recovery becomes difficult, not where you doubt the competence.&lt;/strong&gt; The rest of the time it costs more than it returns, and a team that approves everything ends up reading nothing.&lt;/p&gt;
&lt;h2 id=&quot;what-a-reviewer-brings-and-what-it-demands&quot;&gt;What a reviewer brings, and what it demands&lt;/h2&gt;
&lt;p&gt;If the human contribution is to classify and then to answer, what does that look like in practice? Not like an ordinary code review.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;An agent’s mistakes do not look like mistakes.&lt;/strong&gt; A beginner’s do: it does not compile, it is visibly wrong, you catch it skimming. An agent produces working code with a confident comment explaining why it is right. A one-liner extracting a digest works perfectly on a Mac and fails under Linux, because GNU’s &lt;code&gt;tr&lt;/code&gt; reads three characters as a range. A test checking that a document still shows the version it showed yesterday passes for months — while guaranteeing the defect. These are not beginners’ mistakes: these are mistakes that &lt;strong&gt;survive a review&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Which makes them harder to review, not easier. And it is the opposite of the intuition we have when hiring.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What it demands of the reviewer is not knowledge, it is a habit:&lt;/strong&gt; refusing an explanation you do not follow. “What exactly does that mean?” costs no expertise and works very well on a machine whose output is fluent by construction. A piece of internal jargon that had leaked into three translations of a documentation fell that way — not thanks to an expert reading, thanks to somebody who refused to understand.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What a corpus does not hold.&lt;/strong&gt; I can ask an agent why PHP 6 died, and the answer will be right: Unicode everywhere, a rewrite that collapsed under its own ambition, a version number we ended up skipping. But I &lt;em&gt;waited&lt;/em&gt; for it. For years, building plans on top of it that were never used. That is not the same knowledge: one is a story, the other is an invoice that was paid. A corpus holds the incidents other people recounted — not the ones you remember because you lived through them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And the real question: a developer arriving now and doing everything through AI, what does that produce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What they will not acquire is not syntax. It is the memory of consequences, and the mechanism is precise: the tool removes exactly the friction that produced the learning. Three hours spent on an error message is how you eventually learn what that message really means. Solved in thirty seconds, the defect is fixed and nothing has been learned.&lt;/p&gt;
&lt;p&gt;Honesty requires saying that every generation has said this about the previous abstraction. Garbage collection was going to produce developers who no longer understood memory, frameworks people incapable of writing a query, Stack Overflow a generation of copyists. There is still a difference this time, and it is structural: &lt;strong&gt;the previous abstractions removed implementation work while leaving diagnosis intact.&lt;/strong&gt; This one removes diagnosis. And diagnosis is what manufactures judgement, which is exactly what we ask of a reviewer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But the conclusion is not “you need twenty-five years”.&lt;/strong&gt; The quality required to review an AI is not seniority, it is the refusal to be impressed. Seniority is the most common way of acquiring it, not the only one. A junior who never accepts an explanation they cannot follow is doing real review work today; a senior who skims because “it looks fine” is doing none. It is a habit before it is a level — and a habit can be taught, which is the only good news in this section.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One asymmetry is left, and it has to be said because it is uncomfortable.&lt;/strong&gt; We put the question to the agent this text was written with, asking it to be frank rather than pleasant. Its answer, as given:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“You can work without me, more slowly. I cannot work without somebody who knows when I am wrong. The dependency does not run in both directions with the same force, and an article claiming otherwise would be flattering and false.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That is exactly it. Organising a chain as a partnership between equals means misunderstanding what you bought: a very fast executor that needs to be told where to look.&lt;/p&gt;
&lt;h2 id=&quot;what-you-gain-when-the-split-is-right&quot;&gt;What you gain when the split is right&lt;/h2&gt;
&lt;p&gt;A well-used agent does not just write code faster: it measures where we would have read. Three examples from our own chain, chosen because they share one shape — a documentation claim that does not survive a measurement.&lt;/p&gt;
&lt;p&gt;An archive advertised as reproducible was not: &lt;code&gt;git archive&lt;/code&gt; does give identical bytes under two versions of git, but &lt;code&gt;gzip -n&lt;/code&gt; does not make two deflate implementations agree — Apple’s and GNU’s compress the same tar differently. The promise was true of the uncompressed stream and false of the archive.&lt;/p&gt;
&lt;p&gt;A verification command published everywhere fails on half the distributions, because &lt;code&gt;/etc/ssl/certs/ca-certificates.crt&lt;/code&gt; is a Debian convention that exists neither on Fedora, nor Rocky, nor openSUSE — and a &lt;code&gt;-CAfile&lt;/code&gt; pointing at a missing file answers &lt;code&gt;Verification: FAILED&lt;/code&gt;, exactly as a forgery would.&lt;/p&gt;
&lt;p&gt;A timestamping token carries its own certificate chain, and LibreSSL — the &lt;code&gt;openssl&lt;/code&gt; shipped with macOS — does not read it. Same failure message, radically different cause.&lt;/p&gt;
&lt;p&gt;None of those three is found by reading. All three are found by running the same command against eight targets, which is exactly the kind of tedious, repetitive, glory-free task an agent does without tiring — and on which a human would, honestly, have extrapolated from two cases.&lt;/p&gt;
&lt;h2 id=&quot;good-practice&quot;&gt;Good practice&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Sort changes by reversibility, not by job title.&lt;/strong&gt; Three categories are enough, and it is the boundary between the second and the third that deserves a procedure.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Give the first category to agents, without ceremony.&lt;/strong&gt; Putting a human approval there costs more than the mistake it prevents, and burns the attention you will need elsewhere.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Make approval an act distinct from production.&lt;/strong&gt; Article 20 of NIS 2 makes it an obligation for the entities in scope; it is good practice for everybody else.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep the private key out of the agent’s reach.&lt;/strong&gt; A key an automaton can use signs without anyone having taken anything on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do not attribute a commit to a tool.&lt;/strong&gt; Put your use of agents in your documentation, not in the field whose purpose is knowing who to question.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Place the stopping points on recoverability&lt;/strong&gt;, not on your level of trust. The right criterion is “what does going back cost”, not “do I trust what produced this”.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;things-to-watch&quot;&gt;Things to watch&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A test produced by the same chain as the artefact can lock in the defect instead of detecting it. Have the test and the code written in separate passes, and check that a new test fails before believing it.&lt;/li&gt;
&lt;li&gt;“Approving” is not “clicking”. An approval given without reading is worse than no approval: it creates a record saying the opposite of what happened.&lt;/li&gt;
&lt;li&gt;Reversibility is a property of the system, not of the intention. A rollback that has never been executed is not a rollback, it is a hypothesis.&lt;/li&gt;
&lt;li&gt;Publishing is irreversible, internally too. A report sent, a declaration filed, a package pushed: the correction adds, it does not replace.&lt;/li&gt;
&lt;li&gt;And the boundary moves. A change that is reversible today becomes irreversible the day somebody else depends on what it produces. That is a review to redo, not a classification to carve.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;how-this-text-was-written&quot;&gt;How this text was written&lt;/h2&gt;
&lt;p&gt;It was written in dialogue with a coding agent, and the split was the one this article describes. The agent produced the drafts, read the directive in its official text rather than in a summary, and verified every measurement quoted above. The rest — recognising that a claim smelled wrong — does not delegate, and three passages of this text come directly from it.&lt;/p&gt;
&lt;p&gt;The section on experience did not exist: it was born from a disagreement about a single sentence. The jargon that had fallen into three translations fell because somebody refused to understand one word. And an explanation about a browser cache, plausible and false — the resources would have had different freshness windows — did not survive verification: they all carried exactly the same header, to the second.&lt;/p&gt;
&lt;p&gt;This text was therefore written in collaboration with an artificial intelligence, and it carries no machine co-signature. The two go together: what is useful to a reader is knowing how a text was made — which the above says — not reading a tool’s name next to that of somebody who can answer for it.&lt;/p&gt;
</content>
    </entry>
        <entry>
        <title>Cryptography: we put our one question to a real company director. He understood none of it.</title>
        <link href="https://mesa.black/en/cryptography-our-one-question/"/>
        <id>https://mesa.black/en/cryptography-our-one-question/</id>
        <updated>2026-10-08T02:00:00+02:00</updated>
        <summary>Our tool reads a project, says how long each protection will hold, and asks the business for one thing only. Here is what it produces, and what happened when we put that question to somebody who is not an engineer: three sessions, three failures, and 986 words to read in order to answer two questions.</summary>        <content type="html">&lt;p&gt;Almost everything that protects a company’s data today rests on sums that are easy one way and impractical the other. A powerful enough quantum computer makes the return trip possible, and states have set dates: today’s methods will be discouraged around 2030 and disallowed around 2035.&lt;/p&gt;
&lt;p&gt;This is not a problem for 2035, and that is the point almost everyone misses. An adversary does not have to wait: it is enough to &lt;strong&gt;copy a backup or a stream today&lt;/strong&gt; and keep it until the day it can be opened. Which means data encrypted this morning that must stay confidential beyond 2035 is already lost — changing method later protects what comes after it, not it.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/mesa-black/sablier&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Sablier&lt;/a&gt; is our tool for turning that sentence into figures on a real project. This piece is what it produces, and then the failure of the one thing it asks a human for.&lt;/p&gt;
&lt;h2 id=&quot;what-the-tool-does&quot;&gt;What the tool does&lt;/h2&gt;
&lt;p&gt;It reads a repository — running nothing, sending nothing — and records every place the code encrypts, signs or hashes something: library calls, keys and certificates sitting in the tree, server configuration, deployment scripts, declared dependencies, and the infrastructure when it is written in Terraform. Then it crosses that inventory with how long each category of data has to stay confidential, and returns a verdict per place.&lt;/p&gt;
&lt;p&gt;Run on an example project, that looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  /project — 3 files read, 7 findings, 0.0 s
  declaration: /project/sablier.json

    COMPROMISED              1
    BROKEN TODAY             1
    WATCH                    2
    CLEAR                    2
    LIKELY NOT CRYPTO        1

  → /project/r.html
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Five categories, and two that count. Here is the red finding, as the report writes it:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;COMPROMISED&lt;/strong&gt; — &lt;code&gt;deploy/backup.sh:3&lt;/code&gt;
Encrypted today, to be kept confidential until 2036 — one year after RSA expires. A capture made now will be readable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And the one that has nothing to do with quantum computing, because an inventory that only talks about 2035 misses what has been broken for twenty years:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;BROKEN TODAY&lt;/strong&gt; — &lt;code&gt;src/Tokens.php:17&lt;/code&gt;
Classically broken, quantum computing aside. The deadline was yesterday.
&lt;em&gt;references CVE-2005-4900&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;An inventory that concludes nothing gets filed in a folder, so the report decides and puts things in order. The first item of the plan is never “migrate”:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Decide what happens to the data already emitted.&lt;/strong&gt; This is the decision nobody takes, and it comes before the migration. The domains concerned are protected by an algorithm that will not last out their confidentiality lifetime: what has already been encrypted and transmitted is beyond the reach of a fix. Three outcomes, and one has to be chosen explicitly — re-encrypt the existing stock, rotate the keys and re-issue what can be re-issued, or record in writing that the risk is accepted. Migrating without settling this protects future data and leaves the old exposed without anybody having decided it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It can also read a breach backwards. Given a date of compromise, it stops reasoning about what an adversary will harvest: it counts what is already in their hands, and for how long it keeps hurting.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;After the breach of 29/07/2026&lt;/strong&gt; — What left is already in somebody’s hands. The only protection remaining is the algorithm, and it has an end date.
&lt;em&gt;backups&lt;/em&gt; — confidentiality asked for: 10 years, so until 2036. The algorithm protecting it expires in 2035. 1 year of what was taken will become readable, and no migration reaches it.
&lt;em&gt;session tokens&lt;/em&gt; — protected by cryptography quantum does not reach. Nothing becomes readable on that side.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The report exists in two versions: a technical one, read next to an editor, and a numbered audit document separating facts from opinion, for the exhibit produced in front of a third party. Both print what they did not look at, because an inventory that hides its blind spots manufactures false assurance. Everything runs on the machine of whoever types the command: no data leaves, the code is MIT, and &lt;a href=&quot;https://github.com/mesa-black/sablier/tree/main/examples&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;the example reports&lt;/a&gt; are in the repository.&lt;/p&gt;
&lt;h2 id=&quot;the-one-thing-it-cannot-guess&quot;&gt;The one thing it cannot guess&lt;/h2&gt;
&lt;p&gt;One verdict above says “to be kept confidential until 2036”. That 2036 does not come from the code. It comes from a duration somebody declared: ten years for those backups.&lt;/p&gt;
&lt;p&gt;That is the hinge of the whole tool, and no software can guess it. A login session lasts hours, an invoice ten years, a contract thirty — and none of that is a technical fact. So the tool asks for it, in one question, of somebody who knows the business: &lt;em&gt;how long must this stay secret?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A piece written for this blog in early October ended on an uncomfortable sentence: every tool in this field, ours included, assumes the confidentiality lifetime of data is an &lt;em&gt;obtainable&lt;/em&gt; fact, and nobody appears to have checked that a real business can state it. It closed by admitting that this conclusion too had been validated with nobody.&lt;/p&gt;
&lt;p&gt;That piece never ran — it was scheduled for 2 October and we withdrew it the day before, along with another, for reasons that do not belong here. Its last line held.&lt;/p&gt;
&lt;p&gt;It was validated this week. Three times, with the director of a company that uses our tools every day. The result fits in one sentence, his:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“I am sorry but this is gibberish to me, I do not know what it means, I do not understand the sentences. In short, I am lost.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is not a teaching problem, and it is not a problem with him. It is a measurement of the instrument, and it could be counted.&lt;/p&gt;
&lt;h2 id=&quot;the-measurement&quot;&gt;The measurement&lt;/h2&gt;
&lt;p&gt;To ask that question remotely, the tool produces a standalone HTML file: no server, no network, you open it, you answer, you hand back a block of JSON. Built for the rooms a live interview cannot enter — a closed network, a machine nobody may connect to.&lt;/p&gt;
&lt;p&gt;On the third attempt, I counted what that file gave somebody to read before they could answer. &lt;strong&gt;986 words.&lt;/strong&gt; For seven subjects and two questions each. With the word &lt;em&gt;fingerprint&lt;/em&gt; five times, and &lt;em&gt;algorithm&lt;/em&gt;, &lt;em&gt;deadline&lt;/em&gt;, &lt;em&gt;regime&lt;/em&gt;, &lt;em&gt;declaration&lt;/em&gt;, &lt;em&gt;plumbing&lt;/em&gt; on the way.&lt;/p&gt;
&lt;p&gt;The detail that matters: &lt;strong&gt;most of those 986 words had been written that same day&lt;/strong&gt;, while fixing the two previous failures. At every pass I had added a paragraph out of honesty — what the tool cannot know, why this question is being asked, where this date comes from, what the answer implies. Each defensible on its own. Together, a document nobody outside the field gets through.&lt;/p&gt;
&lt;p&gt;Prose arrives one justified paragraph at a time. That is why it does not show.&lt;/p&gt;
&lt;h2 id=&quot;what-the-answers-really-said&quot;&gt;What the answers really said&lt;/h2&gt;
&lt;p&gt;The second session had produced a file of answers. It looked complete: seven subjects, seven answers, no empty box. It arrived with a comment — “I understood nothing” — and it is reading it line by line that shows the real problem.&lt;/p&gt;
&lt;p&gt;Seven subjects, &lt;strong&gt;the same duration seven times&lt;/strong&gt;: five years. No legal retention declared anywhere. No written justification. No name to say who was committing to it. 182 seconds in total, with the time per subject collapsing: 20.8 s, 36.1, 16.8, 15.9, 23.8, &lt;strong&gt;8.9&lt;/strong&gt;, 10.6.&lt;/p&gt;
&lt;p&gt;The seven buttons offered ran from 0 to 30 years. Five was the middle one.&lt;/p&gt;
&lt;p&gt;And that uniform five is demonstrably wrong in at least two places. The domain he named “REX” is &lt;strong&gt;published content&lt;/strong&gt;: its confidentiality lifetime is zero by construction. The one he named “Facturation” carries ten years of mandatory accounting retention — answered five, with “legal retention: 0” right beside it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One part did work.&lt;/strong&gt; He renamed all seven subjects in his own words: Login, Facturation, Information, REX, Profile, Sécurité, Paramètres. That is exactly the task he was given, and he did it. The vocabulary of &lt;em&gt;data&lt;/em&gt; was not the blocker. The vocabulary of &lt;em&gt;durations&lt;/em&gt; was.&lt;/p&gt;
&lt;p&gt;And the form’s last two questions — “a question you expected and were not asked”, “a word you did not understand” — came back empty. 7.8 seconds on that screen. Somebody who does not understand does not fill in the field where you say so.&lt;/p&gt;
&lt;h2 id=&quot;why-that-is-worse-than-no-answer&quot;&gt;Why that is worse than no answer&lt;/h2&gt;
&lt;p&gt;That file was not empty. It was &lt;strong&gt;plausible&lt;/strong&gt;. And the tool, importing it, printed “7 answers taken”, wrote a declaration, and said nothing else.&lt;/p&gt;
&lt;p&gt;A declaration, in this tool, is what makes a person accountable for a figure: the audit report prints beside every duration who declared it and when. Turning seven clicks on the middle button into a dated declaration manufactures exactly the false assurance the project spends its time denouncing elsewhere. No declaration beats a laundered one.&lt;/p&gt;
&lt;p&gt;So the dangerous failure mode of a tool like this is not “the person cannot answer”. It is “the person produces something that looks like an answer”.&lt;/p&gt;
&lt;h2 id=&quot;the-six-corrections&quot;&gt;The six corrections&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Subjects are named by their place, no longer by the cryptography they hold.&lt;/strong&gt; Subjects were merged by family of algorithms, which means a subject could only be &lt;em&gt;named&lt;/em&gt; after a family: we were asking how long “public-key encryption” and “content digests” had to stay confidential. Those are mechanisms, not data. Worse, the one subject he could have handled well — five business directories — had been collapsed into one of them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Durations became consequences.&lt;/strong&gt; No more 0/1/3/5/10/20/30 buttons, but four sentences: &lt;em&gt;it is public, or of no consequence&lt;/em&gt; / &lt;em&gt;it would embarrass us, until it blew over&lt;/em&gt; / &lt;em&gt;a client could hold it against us, or walk away&lt;/em&gt; / &lt;em&gt;we would be held to it for years, or end up in court&lt;/em&gt;. The arithmetic is the tool’s job.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And those sentences are anchored on the project’s own history.&lt;/strong&gt; Where the repository knows when it started — the oldest author date in its git log — the choices name years the person lived through: &lt;em&gt;what we were writing in 2023 would still be awkward&lt;/em&gt;, &lt;em&gt;even what we were writing in 2019, at the start&lt;/em&gt;. The longest choice is then the project’s own age rather than a round number. Nobody estimates seven years forward well; everybody can say whether the invoices from the first year still matter.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;986 words became 235, and a test fails over 260.&lt;/strong&gt; A budget, not a review: nothing else catches prose that arrives one paragraph at a time. A second test fails if a trade word returns to the reader’s path. Everything removed is still written down — in the audit report, read by whoever has to weigh the figures, not by whoever supplies one of them. I was confusing the two readers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A whole question disappeared: the regulatory regime.&lt;/strong&gt; Nobody outside the field picks between NIST IR 8547, CNSA 2.0 and an ANSSI position. The question printed five lines of acronyms — then deadlines of 2030 and 2035 right under the year the person had just given as the end of the application’s life. It is the auditor’s choice, in a versioned file, and the tool reminds them when it has been left at the default.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The tool now reports a uniform answer.&lt;/strong&gt; Identical durations throughout, no justification, nobody named: it says so, names the figures, and points out that published content and ten years of accounting do not share a duration. It reports, it does not refuse — judging whether those answers mean anything belongs to whoever ran the session.&lt;/p&gt;
&lt;h2 id=&quot;what-we-refused-to-do&quot;&gt;What we refused to do&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Pre-fill the answer.&lt;/strong&gt; It was the most tempting correction: propose a duration per category and ask for a confirmation. A yes/no on a concrete proposition is far easier cognitively than producing a duration.&lt;/p&gt;
&lt;p&gt;It is also the surest way to obtain a declaration nobody read. A tired reader accepts whatever is in the box, and the box ends up signed. The field that names the data is no longer pre-filled at all, for the same reason: it used to arrive carrying a family of algorithms, and filling it with the directory name — “Entity” — would have been no better.&lt;/p&gt;
&lt;h2 id=&quot;what-it-produced&quot;&gt;What it produced&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;An assumption shared by the whole field, tested&lt;/strong&gt;: a business cannot spontaneously state the confidentiality lifetime of its data. Not “not yet”: not the way we were asking.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A failure mode named&lt;/strong&gt;: the plausible answer. A form that does not force thought produces figures, not information.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Three failures with the same person&lt;/strong&gt;, which is a measurement of the instrument and not of them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;751 words removed&lt;/strong&gt; from a document I had written believing I was being honest.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practice&quot;&gt;Good practice&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Measure the document before rewriting it. “Too technical” is an impression; 986 words and &lt;em&gt;fingerprint&lt;/em&gt; five times is a defect you can fix.&lt;/li&gt;
&lt;li&gt;Put a budget where the drift is slow. A test that counts words catches what no review catches, because every added paragraph is defensible at the moment it is added.&lt;/li&gt;
&lt;li&gt;Separate the readers. An honest tool’s caveats go into the report, read by whoever weighs the figures — not into the form, filled in by whoever supplies one.&lt;/li&gt;
&lt;li&gt;Ask for a consequence when you want a duration. People know what it would cost them; they do not know how to convert that into years.&lt;/li&gt;
&lt;li&gt;Watch the time per question. The falling curve says you lost the person, and it says it before they do.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;things-to-watch&quot;&gt;Things to watch&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A sample of one.&lt;/strong&gt; One director, one company, one field. The six corrections are justified by an observation, not by a study.&lt;/li&gt;
&lt;li&gt;Subject headings are still code words — “Billing”, “Entity”. Translating them into business vocabulary would mean inventing what the tool does not know; it shows the place and asks for the name.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The standalone file was not built for this.&lt;/strong&gt; It exists for closed networks, not for somebody alone in front of their inbox. Three failures in a row say mostly that we used the instrument meant for an isolated room where a twenty-minute conversation, side by side, would have reworded out loud what no written sentence catches up with.&lt;/li&gt;
&lt;li&gt;Nothing guarantees the fourth attempt gets through. What is guaranteed is that we will be able to measure it.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>A signature proves who and what. Never when.</title>
        <link href="https://mesa.black/en/when/"/>
        <id>https://mesa.black/en/when/</id>
        <updated>2026-10-08T02:00:00+02:00</updated>
        <summary>The &quot;signed at&quot; field of a signed document comes off your own clock. The signature covers it, so it cannot be edited afterwards — and it can be chosen beforehand. Backdating costs nothing, and a chain of signatures does not help either. The answer is four moves, it checks with stock openssl, and it divides across jurisdictions for thirty-two bytes.</summary>        <content type="html">&lt;p&gt;A signed report answers two questions: &lt;strong&gt;which key signed&lt;/strong&gt;, and &lt;strong&gt;which findings it signed&lt;/strong&gt;. It is generally taken to answer a third, which is not in there.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;signed_at&lt;/code&gt; field is present, and the signature covers it — so it cannot be edited afterwards without breaking the seal. But it is read off the clock of the machine that signs. Yours. &lt;strong&gt;Backdating a signed document costs nothing at all&lt;/strong&gt;: sign with whatever clock you like.&lt;/p&gt;
&lt;p&gt;And chaining does not rescue this. A report naming the digest of the one it replaces makes a fine audit trail — as long as somebody else holds the keys. If you hold them, you can rebuild the whole chain in order, and it will verify perfectly.&lt;/p&gt;
&lt;p&gt;So: what does a date nobody can argue with look like?&lt;/p&gt;
&lt;h2 id=&quot;the-answer-in-four-moves&quot;&gt;The answer, in four moves&lt;/h2&gt;
&lt;p&gt;It fits in a sentence: &lt;strong&gt;take the date out of your own house.&lt;/strong&gt; In detail, four moves, none of which asks anybody to trust us.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Have a third party attest a digest&lt;/strong&gt;, not the document. Thirty-two bytes leave, nothing else. That third party has no stake in your conclusions, and that is what gives its signature value.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Choose a third party whose root is already public&lt;/strong&gt;, so your reader checks with stock &lt;code&gt;openssl&lt;/code&gt; and nothing that came from you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Compare the imprint before discussing trust.&lt;/strong&gt; It is a hash comparison; it needs no certificate, no root, no permission.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep the earliest attestation&lt;/strong&gt;, and re-attest while the scheme that signs it still holds.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What you get is precise, and deserves to be stated precisely: &lt;em&gt;this digest existed &lt;strong&gt;no later than&lt;/strong&gt; this date, according to somebody who is not you.&lt;/em&gt; That is an &lt;strong&gt;upper bound&lt;/strong&gt; — and it is exactly the shape of the claim “we had inventoried before 31 December 2026”.&lt;/p&gt;
&lt;p&gt;The rest of this piece is why each of the four moves is necessary, what it costs, and where it stops.&lt;/p&gt;
&lt;h2 id=&quot;what-a-timestamping-authority-actually-does&quot;&gt;What a timestamping authority actually does&lt;/h2&gt;
&lt;p&gt;RFC 3161. You send it &lt;strong&gt;a digest&lt;/strong&gt;, never the document. Thirty-two bytes. It returns a signed token saying this digest was presented to it at this instant.&lt;/p&gt;
&lt;p&gt;That is the whole mechanism, and the whole elegance of it: &lt;strong&gt;an authority can attest a date without being told what it is dating.&lt;/strong&gt; None of your code, your file names or your findings leaves the machine — a digest does not run backwards.&lt;/p&gt;
&lt;p&gt;The authority also has no stake in your conclusions, which is precisely what gives its signature value.&lt;/p&gt;
&lt;h2 id=&quot;what-we-have-attested-and-why-that-choice&quot;&gt;What we have attested, and why that choice&lt;/h2&gt;
&lt;p&gt;Three candidates: the file, the signature, or the digest of the findings. We attest &lt;strong&gt;the digest&lt;/strong&gt;, for a reason that fits in one command.&lt;/p&gt;
&lt;p&gt;It is printed in the report. So anybody checks the date without ever touching our tool:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openssl ts -verify -digest 8ecb829ccc278ef7ab3138f56e07ee13319cbb72ce1dabbfc58ee7b4d6b670b5 \
  -in report.html.tsr -CAfile &amp;lt;certificate store&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Simplified form, to show the mechanism. That &lt;code&gt;-CAfile&lt;/code&gt; is the most expensive trap in this whole piece, and the section “and on which machine” below gives the version that works everywhere.&lt;/p&gt;
&lt;p&gt;No file to canonicalise, no field order to agree on, no format of ours. &lt;code&gt;openssl ts -verify -digest&lt;/code&gt; takes a hexadecimal digest directly.&lt;/p&gt;
&lt;p&gt;And it survives an ephemeral key. When a report is signed by a pair created for it alone and then destroyed, the key no longer exists — the attested date does.&lt;/p&gt;
&lt;p&gt;It is also why the token is &lt;strong&gt;a file of its own&lt;/strong&gt;, raw DER beside the signature: that is exactly what the stock &lt;code&gt;openssl ts&lt;/code&gt; command reads. An artefact only our tool can open is not evidence, it is a promise.&lt;/p&gt;
&lt;h2 id=&quot;the-trap-openssl-ts--verify-does-not-answer-the-question-you-think&quot;&gt;The trap: &lt;code&gt;openssl ts -verify&lt;/code&gt; does not answer the question you think&lt;/h2&gt;
&lt;p&gt;This is the part that took measurement rather than reading.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;openssl ts -verify&lt;/code&gt; stops at a certificate chain it cannot build — &lt;strong&gt;before&lt;/strong&gt; comparing the imprint. The consequence: two radically different situations come back with the same failure message.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;“I cannot get up to a trusted root”&lt;/em&gt; — the authority is self-signed, or an intermediate is missing. Not a forgery.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;“This token attests a different document”&lt;/em&gt; — that one is serious.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On a self-signed authority, both print &lt;code&gt;Verification: FAILED&lt;/code&gt;. We established it by deliberately passing a wrong digest: the same answer as for the right one.&lt;/p&gt;
&lt;p&gt;The fix is to &lt;strong&gt;compare the imprint yourself, first&lt;/strong&gt;, by reading it out of the token. It is a hash comparison: it needs no certificate, no root, no trust. Only then comes the question of the chain.&lt;/p&gt;
&lt;p&gt;Which gives four states, not two:&lt;/p&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;state&lt;/th&gt;
&lt;th&gt;what it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;verified&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;the authority’s signature holds, up to a root this machine trusts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;chain unverified&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;the imprint does match this document; no chain could be built. Self-signed authority or missing intermediate — not a forgery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;invalid&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;the token attests a different digest, or it was tampered with&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;not checkable here&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;no openssl, or no certificate store&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Collapsing them turns a missing root certificate into an accusation of forgery. Or, far worse, the reverse.&lt;/p&gt;
&lt;h2 id=&quot;which-authority-that-is-a-decision-not-a-default&quot;&gt;Which authority? That is a decision, not a default&lt;/h2&gt;
&lt;p&gt;We put no default authority in the tool. Who attests your dates is a decision of the same order as the regulatory regime you adopt — a default would make it for you, in a jurisdiction you did not pick.&lt;/p&gt;
&lt;p&gt;Here is what measurement gives, on free authorities:&lt;/p&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;authority&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Certum / Asseco&lt;/strong&gt; (Poland, EU)&lt;/td&gt;
&lt;td&gt;verified with the system store, RSA-4096&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GlobalSign&lt;/strong&gt; (Belgium, EU)&lt;/td&gt;
&lt;td&gt;verified with the system store, RSA-3072&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DigiCert&lt;/strong&gt; (United States)&lt;/td&gt;
&lt;td&gt;verified with the system store, RSA-4096&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sectigo (UK)&lt;/td&gt;
&lt;td&gt;a token whose signer openssl cannot resolve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FreeTSA (Germany)&lt;/td&gt;
&lt;td&gt;self-signed: its root must be shipped for anybody to check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Belgian federal TSA&lt;/td&gt;
&lt;td&gt;self-signed as well&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;timestamp.apple.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;answers, but a self-signed chain and a declared policy of &lt;code&gt;1.2.3&lt;/code&gt; — not a public service&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;The deciding criterion is not reputation, it is &lt;strong&gt;the public root&lt;/strong&gt;: a reader checks with stock openssl and nothing that came from you. The moment a root certificate has to travel with your document, your evidence carries a part you supplied yourself — which removes much of the point.&lt;/p&gt;
&lt;h2 id=&quot;you-have-just-moved-the-trust-around&quot;&gt;“You have just moved the trust around”&lt;/h2&gt;
&lt;p&gt;This is the serious objection, and it deserves its strong form: &lt;em&gt;you replaced “believe my clock” with “believe Certum’s clock”. The problem is not solved, it changed address.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It is partly right. Here are the three reasons the move is not neutral, and what is left once they are granted.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. The shape of the claim changes.&lt;/strong&gt; Your &lt;code&gt;signed_at&lt;/code&gt; is a date you choose. The token is a bound somebody else sets. To backdate, setting a clock is no longer enough: an authority has to issue a false token, or you have to manufacture one — that is, break RSA-4096. We have gone from a free gesture to an attack.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. The incentives are not the same.&lt;/strong&gt; The authority does not know what it is dating: it only sees a digest. It therefore has no way to favour one conclusion over another, and its entire business rests on its signature meaning something. Backdating for you means risking that whole business on your file. For an eIDAS qualified authority those obligations are audited, and that is exactly why its root sits in the certificate stores.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. And above all: this trust divides.&lt;/strong&gt; One authority is still a single point of trust. But nothing in RFC 3161 prevents presenting the &lt;strong&gt;same digest to several authorities&lt;/strong&gt; — they only see those thirty-two bytes, they have nothing to coordinate, and none of them needs to know it is not alone. We did it on the digest of this site’s inventory, presenting the same imprint to three of them:&lt;/p&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;authority&lt;/th&gt;
&lt;th&gt;jurisdiction&lt;/th&gt;
&lt;th&gt;attested date&lt;/th&gt;
&lt;th&gt;published token&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Certum / Asseco&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Poland (EU)&lt;/td&gt;
&lt;td&gt;6 Oct 2026 21:58 UTC&lt;/td&gt;
&lt;td&gt;&lt;code&gt;report.html.tsr&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GlobalSign&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Belgium (EU)&lt;/td&gt;
&lt;td&gt;8 Oct 2026 02:19 UTC&lt;/td&gt;
&lt;td&gt;&lt;code&gt;report.html.2.tsr&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DigiCert&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;United States&lt;/td&gt;
&lt;td&gt;8 Oct 2026 02:19 UTC&lt;/td&gt;
&lt;td&gt;&lt;code&gt;report.html.3.tsr&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Those three files are online beside the report, and all three verify with the recipe below. The marginal cost of an authority is one HTTP request: an authority only sees thirty-two bytes, it has nothing to coordinate, and it does not need to know it is not alone.&lt;/p&gt;
&lt;p&gt;The dates differ, and that is the mechanism showing itself: Certum holds the earliest attestation of these findings and keeps it — the other two were added the day we wrote this piece. &lt;strong&gt;What this buys is precise, and deserves to be&lt;/strong&gt;: each authority sets an &lt;em&gt;independent&lt;/em&gt; bound. So the date defensible &lt;strong&gt;without extending trust to any single operator&lt;/strong&gt; is the latest of the three, 8 October; the one defensible &lt;strong&gt;if you trust Certum&lt;/strong&gt; is the 6th. Forging the earliest no longer detaches this document from a date: the other two bound it on their own.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is left, and must be said.&lt;/strong&gt; A token gives an upper bound, never a lower one: it attests that these findings existed &lt;em&gt;no later than&lt;/em&gt; that date, and it will never say they did not exist before. If your need runs the other way — proving a priority somebody disputes — this is not the tool.&lt;/p&gt;
&lt;p&gt;And nobody attests retroactively. An authority will not sign last week’s date today, and that is the entire point. The corollary is unpleasant: &lt;strong&gt;the date has to be asked for at the moment the document is produced.&lt;/strong&gt; A timestamp you have to remember to go and fetch is a timestamp nobody fetches — which is the only reason this mechanism belongs in the tool that produces the report, and not in a procedure.&lt;/p&gt;
&lt;h2 id=&quot;doing-it-yourself-today-without-us&quot;&gt;Doing it yourself, today, without us&lt;/h2&gt;
&lt;p&gt;None of this needs our tool. Four commands, &lt;code&gt;openssl&lt;/code&gt; and &lt;code&gt;curl&lt;/code&gt;, on any artefact you want to be able to date — an SBOM, an audit report, a release tarball, minutes of a meeting.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# 1. the digest of what you want to date
openssl dgst -sha256 -r artefact.json | cut -d&#039; &#039; -f1
7643cc3ff2957a137b15c509382463efe5fe29c26a14224009462266adf77672

# 2. the request — &amp;quot;-cert&amp;quot; asks the authority to include its certificate,
#    without which nobody can verify without asking you for it
openssl ts -query -digest 7643cc3f… -sha256 -cert -out timestamp.tsq

# 3. send it. 69 bytes leave, a 6 kB token comes back
curl -s -H &#039;Content-Type: application/timestamp-query&#039; \
  --data-binary @timestamp.tsq http://time.certum.pl &amp;gt; timestamp.tsr

# 4. the verification — this is the command your reader will run. The first
#    lines find their certificate store and the chain the token already
#    carries; the section &amp;quot;and on which machine&amp;quot; explains why
O=$(openssl version -d | sed &#039;s/.*&amp;quot;\(.*\)&amp;quot;/\1/&#039;)
for f in &amp;quot;$O/cert.pem&amp;quot; &amp;quot;$O/certs/ca-certificates.crt&amp;quot; /etc/ssl/ca-bundle.pem; do
  [ -f &amp;quot;$f&amp;quot; ] &amp;amp;&amp;amp; CA=&amp;quot;$f&amp;quot; &amp;amp;&amp;amp; break
done
openssl ts -reply -in timestamp.tsr -token_out -out token.der
openssl pkcs7 -inform DER -in token.der -print_certs -out chain.pem

openssl ts -verify -digest 7643cc3f… -in timestamp.tsr \
  -CAfile &amp;quot;$CA&amp;quot; -untrusted chain.pem
Verification: OK
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;File the &lt;code&gt;.tsr&lt;/code&gt; beside the artefact and print the digest in the document. That is all: your reader needs neither you, nor a house format, nor a library.&lt;/p&gt;
&lt;p&gt;To read what a token says — the date, and the imprint it attests:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openssl ts -reply -in timestamp.tsr -text | grep &#039;^Time stamp&#039;
Time stamp: Oct  7 20:50:11 2026 GMT

openssl ts -reply -in timestamp.tsr -text \
  | awk &#039;/^Message data:/{f=1;next} /^[A-Za-z]/{f=0} f&#039; \
  | sed -E &#039;s/^ *[0-9a-f]{4} - //; s/   .*$//&#039; | tr -dc &#039;0-9a-f&#039;
7643cc3ff2957a137b15c509382463efe5fe29c26a14224009462266adf77672
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That last line is the practical answer to the trap described above: it compares the imprint &lt;strong&gt;without asking anybody for anything&lt;/strong&gt;, and it works even when the certificate chain does not build.&lt;/p&gt;
&lt;p&gt;A note on the &lt;code&gt;tr -dc &#039;0-9a-f&#039;&lt;/code&gt;, because it illustrates the rest of this piece better than any paragraph could: we first wrote &lt;code&gt;tr -d &#039; -\n&#039;&lt;/code&gt;, which works perfectly well on a Mac. GNU’s &lt;code&gt;tr&lt;/code&gt; reads those three characters as a &lt;strong&gt;range&lt;/strong&gt;, from space to newline, finds it reversed, and refuses. We found out by replaying this article in an empty Debian container before publishing it. Every command on this page went through it.&lt;/p&gt;
&lt;p&gt;With a public-root authority, &lt;code&gt;openssl ts -verify&lt;/code&gt; makes the distinction on its own — we altered the document and re-ran the command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;message imprint mismatch
Verification: FAILED
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A clear, specific message, which you do not get from a self-signed authority. That is the most concrete argument for choosing one whose root is already in the certificate stores.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&quot;https://github.com/mesa-black/sablier&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Sablier&lt;/a&gt;, all of this is one flag — &lt;code&gt;--timestamp=&amp;lt;url&amp;gt;&lt;/code&gt; — because a good practice you have to remember to perform by hand is a good practice nobody performs. The flag repeats, or takes a comma-separated list, and each authority receives the same digest:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sablier scan . --sign=sablier.key \
  --timestamp=http://time.certum.pl,http://timestamp.digicert.com
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each token goes to its own slot — &lt;code&gt;report.html.tsr&lt;/code&gt;, &lt;code&gt;report.html.2.tsr&lt;/code&gt;, in the order the authorities were named — and the slot belongs to the authority from one run to the next: one that was unreachable today leaves its slot empty instead of shifting the others down and losing their antecedence. &lt;code&gt;sablier verify&lt;/code&gt; walks the slots rather than reading the first, because a reader handed three attestations and a command that checks one would have checked a third of what they hold, and concluded on all of it.&lt;/p&gt;
&lt;p&gt;But the tokens produced are ordinary files, verifiable with the same commands, by somebody who has never installed the tool.&lt;/p&gt;
&lt;p&gt;And you can try it right now, on a real document: this site’s cryptographic inventory is published with its signature and its token.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;curl -sO https://mesa.black/audit/report.html
curl -sO https://mesa.black/audit/report.html.tsr

O=$(openssl version -d | sed &#039;s/.*&amp;quot;\(.*\)&amp;quot;/\1/&#039;)
for f in &amp;quot;$O/cert.pem&amp;quot; &amp;quot;$O/certs/ca-certificates.crt&amp;quot; /etc/ssl/ca-bundle.pem; do
  [ -f &amp;quot;$f&amp;quot; ] &amp;amp;&amp;amp; CA=&amp;quot;$f&amp;quot; &amp;amp;&amp;amp; break
done
openssl ts -reply -in report.html.tsr -token_out -out token.der
openssl pkcs7 -inform DER -in token.der -print_certs -out chain.pem

openssl ts -verify \
  -digest 8ecb829ccc278ef7ab3138f56e07ee13319cbb72ce1dabbfc58ee7b4d6b670b5 \
  -in report.html.tsr -CAfile &amp;quot;$CA&amp;quot; -untrusted chain.pem
Verification: OK
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The other two tokens sit beside it — &lt;code&gt;report.html.2.tsr&lt;/code&gt; and &lt;code&gt;report.html.3.tsr&lt;/code&gt;, GlobalSign and DigiCert — and verify with the same command by changing the file name. The next section explains why this block is six lines instead of one.&lt;/p&gt;
&lt;p&gt;The digest is printed in the &lt;a href=&quot;/audit/report.html&quot;&gt;report&lt;/a&gt; itself, and the date you will get is 6 October 2026 at 21:58 UTC — the first time these findings were attested, and not the last time we republished the page.&lt;/p&gt;
&lt;h2 id=&quot;and-on-which-machine-the-command-everybody-publishes-is-wrong&quot;&gt;And on which machine? The command everybody publishes is wrong&lt;/h2&gt;
&lt;p&gt;This is the part we did not see coming, and which took a run of measurements rather than a read of the documentation.&lt;/p&gt;
&lt;p&gt;The command found everywhere for verifying an RFC 3161 token is this one:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openssl ts -verify -digest &amp;lt;digest&amp;gt; -in timestamp.tsr \
  -CAfile /etc/ssl/certs/ca-certificates.crt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It contains two false assumptions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The certificate store is not at that path.&lt;/strong&gt; &lt;code&gt;ca-certificates.crt&lt;/code&gt; is a Debian convention. On Fedora, on Rocky, on openSUSE, that file does not exist — and when &lt;code&gt;-CAfile&lt;/code&gt; names a file that is absent, &lt;code&gt;openssl ts -verify&lt;/code&gt; does not say “that file does not exist”: it answers &lt;code&gt;Verification: FAILED&lt;/code&gt;. Your reader concludes your token is bad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And the token carries its chain, but not everybody reads it.&lt;/strong&gt; A token requested with &lt;code&gt;-cert&lt;/code&gt; contains the certificates that climb to the root — we checked, ours carries three. OpenSSL 3 uses them. LibreSSL, which is to say the &lt;code&gt;openssl&lt;/code&gt; shipped with macOS, does not, and answers:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Verify error:unable to get local issuer certificate
Verification: FAILED
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Same failure message. Same wrong conclusion for the reader.&lt;/p&gt;
&lt;p&gt;So we looked for a recipe that works everywhere, and measured it on eight targets:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# 1. your openssl&#039;s certificate store, wherever it is
O=$(openssl version -d | sed &#039;s/.*&amp;quot;\(.*\)&amp;quot;/\1/&#039;)
for f in &amp;quot;$O/cert.pem&amp;quot; &amp;quot;$O/certs/ca-certificates.crt&amp;quot; /etc/ssl/ca-bundle.pem; do
  [ -f &amp;quot;$f&amp;quot; ] &amp;amp;&amp;amp; CA=&amp;quot;$f&amp;quot; &amp;amp;&amp;amp; break
done

# 2. the chain the token already carries, extracted so it can be handed over
openssl ts -reply -in report.html.tsr -token_out -out token.der
openssl pkcs7 -inform DER -in token.der -print_certs -out chain.pem

# 3. the verification
openssl ts -verify -digest &amp;lt;digest&amp;gt; -in report.html.tsr \
  -CAfile &amp;quot;$CA&amp;quot; -untrusted chain.pem
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;scroll&quot;&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;target&lt;/th&gt;
&lt;th&gt;openssl&lt;/th&gt;
&lt;th&gt;store found&lt;/th&gt;
&lt;th&gt;result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Debian 13&lt;/td&gt;
&lt;td&gt;OpenSSL 3.5.7&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/usr/lib/ssl/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ubuntu 24.04&lt;/td&gt;
&lt;td&gt;OpenSSL 3.0.13&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/usr/lib/ssl/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alpine 3.22&lt;/td&gt;
&lt;td&gt;OpenSSL 3.5.9&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/etc/ssl/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fedora 42&lt;/td&gt;
&lt;td&gt;OpenSSL 3.2.6&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/etc/pki/tls/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rocky 9&lt;/td&gt;
&lt;td&gt;OpenSSL 3.5.8&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/etc/pki/tls/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;openSUSE Leap 15.6&lt;/td&gt;
&lt;td&gt;OpenSSL 3.1.4&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/etc/ssl/ca-bundle.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS + Homebrew&lt;/td&gt;
&lt;td&gt;OpenSSL 3.6.0&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/opt/homebrew/etc/openssl@3/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS, Apple’s openssl&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;LibreSSL 3.3.6&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/private/etc/ssl/cert.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;OK&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;openssl version -d&lt;/code&gt; gives the directory that particular binary was built against, which covers six cases out of eight; openSUSE files its bundle elsewhere, hence the third entry in the loop. And &lt;code&gt;-untrusted chain.pem&lt;/code&gt; changes nothing where it was not needed — which is what makes &lt;strong&gt;one&lt;/strong&gt; recipe possible rather than one per system.&lt;/p&gt;
&lt;p&gt;It is now the one the report prints, with the note explaining the three steps. Because evidence that can only be checked on the distribution of whoever produced it is not portable evidence, and a reader whose command fails does not learn that their distribution differs: they learn that our seal is broken.&lt;/p&gt;
&lt;h2 id=&quot;the-limit-printed-in-the-document&quot;&gt;The limit, printed in the document&lt;/h2&gt;
&lt;p&gt;A timestamping authority signs with RSA or ECDSA. Which is exactly what a post-quantum inventory classes as vulnerable.&lt;/p&gt;
&lt;p&gt;A tool that spends forty pages explaining that signatures expire does not grant itself an exception for the one it depends on. So the report writes it next to the date:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;What the token does not prove: nothing beyond RSA-4096, the scheme that signs it. A date to be relied on later must be re-attested while that scheme still holds.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A timestamp is evidence for a dispute in the next few years. Not for 2040.&lt;/p&gt;
&lt;h2 id=&quot;the-design-trap-the-earliest-attestation-is-the-only-one-worth-having&quot;&gt;The design trap: the earliest attestation is the only one worth having&lt;/h2&gt;
&lt;p&gt;This one deserves stating because it is very naturally taken backwards.&lt;/p&gt;
&lt;p&gt;A site republishing its inventory happily requests a fresh token at every publication. It is the gesture that looks cleanest — and it &lt;strong&gt;destroys the evidence&lt;/strong&gt; it was meant to build.&lt;/p&gt;
&lt;p&gt;Because the only claim that counts is: &lt;em&gt;these findings existed &lt;strong&gt;no later than&lt;/strong&gt; this date.&lt;/em&gt; Overwriting the first attestation with a more recent one erases exactly that. You end up with a document proving it existed this morning, when what you wanted to prove is that it existed in October.&lt;/p&gt;
&lt;p&gt;The rule that follows is short: &lt;strong&gt;the seal does not move while the findings do not move.&lt;/strong&gt; A token that already attests this digest is kept; a different digest requests a new one. Same for the signature: re-signing it identically produces a chain link joining a digest to itself, which is noise dressed as history.&lt;/p&gt;
&lt;h2 id=&quot;why-now&quot;&gt;Why now&lt;/h2&gt;
&lt;p&gt;The NIS Cooperation Group’s coordinated roadmap, of 23 June 2025, makes the cryptographic inventory a &lt;em&gt;First Step&lt;/em&gt; due on &lt;strong&gt;31 December 2026&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;“We had inventoried before the deadline” is a claim about a date. It is the only argument that convinced us to add everything above: without a third party, that sentence is worth no more than the word of whoever says it — and the field that carries it comes off their clock.&lt;/p&gt;
&lt;h2 id=&quot;good-practice&quot;&gt;Good practice&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Do not confuse “signed at” with “dated”.&lt;/strong&gt; The first comes off your clock, the second from a third party with no stake in your conclusions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Attest a digest, not a file.&lt;/strong&gt; It prints in the document, it checks with a standard command, and it survives a destroyed key.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Compare the token’s imprint before raising the question of trust.&lt;/strong&gt; It is a hash comparison, it needs no certificate — and without it, “chain unverifiable” and “this token is about something else” look alike.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Choose an authority with a public root&lt;/strong&gt;, or your evidence travels with a part you supplied yourself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test the verification command somewhere other than your own machine.&lt;/strong&gt; The certificate store path and the installed &lt;code&gt;openssl&lt;/code&gt; both vary, and both fail with the same &lt;code&gt;Verification: FAILED&lt;/code&gt; as a forged token.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep the earliest attestation.&lt;/strong&gt; Requesting a token at every publication erases the only thing it established.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Divide the trust if the stakes justify it.&lt;/strong&gt; The same digest can go to two or three authorities in different jurisdictions, for one more HTTP request each. The date defensible without trusting anybody in particular is then the latest in the list.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ask for the date at the moment you produce the document.&lt;/strong&gt; Nobody will attest it retroactively — that is the point of the mechanism, and its constraint.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;things-to-watch&quot;&gt;Things to watch&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A chain of signatures held by a single key is not an audit trail: it rebuilds in full, in order, and it verifies.&lt;/li&gt;
&lt;li&gt;A timestamp rests on a classical signature. It has to be re-attested while the scheme holds, and that has to be said in the document rather than letting an eternal proof be assumed.&lt;/li&gt;
&lt;li&gt;The digest leaves the machine. It reveals nothing, but if your document promises that nothing leaves, that promise becomes “nothing leaves, unless you request a timestamp” — and that has to be an explicit option, never a default.&lt;/li&gt;
&lt;li&gt;A token that has to travel with the authority’s root certificate is half-portable evidence.&lt;/li&gt;
&lt;li&gt;A timestamp bounds from above, never from below. It will never prove a document did not exist before the attested date, and presenting an upper bound as an exact date is the kind of approximation that turns around in front of somebody attentive.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>&quot;We say what we do&quot;: three times in two days, this blog said something false.</title>
        <link href="https://mesa.black/en/we-say-what-we-do/"/>
        <id>https://mesa.black/en/we-say-what-we-do/</id>
        <updated>2026-10-06T02:00:00+02:00</updated>
        <summary>A signature that did not cover the page it sealed. Three digests where the document promised one. A piece cited as published that never ran. Each found by doing what the sentence described, and this is how — because transparency is not an intention, it is an apparatus.</summary>        <content type="html">&lt;p&gt;“We say what we do and we do what we say” is a sentence found on a great many websites, and it costs nothing to write. It only becomes interesting where the two halves drift apart — and they always do, because a claim is written once while the code keeps moving.&lt;/p&gt;
&lt;p&gt;So the useful question is not “are we transparent”. It is: &lt;strong&gt;by what apparatus does a false sentence get caught, and how fast?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here are the last three, all from 5 and 6 October, all printed by our own tools.&lt;/p&gt;
&lt;h2 id=&quot;1-a-signature-that-does-not-cover-the-page-it-seals-and-never-will&quot;&gt;1. A signature that does not cover the page it seals, and never will&lt;/h2&gt;
&lt;p&gt;This site now publishes its own cryptographic inventory, produced by &lt;a href=&quot;https://github.com/mesa-black/sablier&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Sablier&lt;/a&gt; and signed. The link is in the header of every page, the &lt;code&gt;.sig&lt;/code&gt; file sits beside it, and four commands are enough to check it without us.&lt;/p&gt;
&lt;p&gt;While adding that report we wrote a sentence into it: &lt;em&gt;“the report has not changed since it was signed”&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;An hour later, the end-to-end check — download the report from the site, its signature from the site, the declaration from GitHub, and verify — returned this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;signature valide, Ed25519 et post-quantique
  + ML-DSA-65 : vérifiée
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then we &lt;strong&gt;altered one word in the report&lt;/strong&gt; and ran the same command again. Same answer: valid.&lt;/p&gt;
&lt;p&gt;The sentence was false, and it was the worst kind of false: it invited a reader to trust bytes the signature never touched. The cause is structural and no mechanism repairs it — &lt;strong&gt;a report displays its own signature, so it cannot contain it.&lt;/strong&gt; The HTML is written after the block exists, and signing the rendered bytes would be circular.&lt;/p&gt;
&lt;p&gt;What is signed is the digest of the &lt;em&gt;findings&lt;/em&gt;, which is the right thing to sign: two renderings of one inventory, in two languages, must give the same value. The only way to tie a page to that digest is to replay the analysis on the same source and compare — and &lt;strong&gt;a public repository is precisely what makes that recomputation possible&lt;/strong&gt;. That became the printed instruction, before the sentence saying what the signature establishes.&lt;/p&gt;
&lt;h2 id=&quot;2-three-digests-where-the-document-promised-one&quot;&gt;2. Three digests where the document promised one&lt;/h2&gt;
&lt;p&gt;The previous correction added the missing sentence to the report: &lt;em&gt;“two renderings of the same inventory, in two languages, give the same value”&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The next day, a simple question — &lt;em&gt;if I am reading in Spanish, shouldn’t the link point at the Spanish audit?&lt;/em&gt; — had us generate the report in all three languages. The digests came out like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fr  1839cd93…      en  abb8b217…      es  0e5b2727…
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Three values, under a paragraph promising one. Two causes, one of them serious.&lt;/p&gt;
&lt;p&gt;The small one: the label of an &lt;em&gt;undeclared&lt;/em&gt; domain is translated — “non déclaré”, “undeclared”, “no declarado” — and it went into the computation.&lt;/p&gt;
&lt;p&gt;The large one: the network probe built its findings out of translated sentences, and a finding’s identifier is hashed from that text. So the same server produced a different identifier per language.&lt;/p&gt;
&lt;p&gt;Why that is worse than a digest mismatch: this identifier is what accepts a finding — what writes, in a versioned file, “we saw that one, here is why we are leaving it”. An identifier that changes with the language means &lt;strong&gt;a decision recorded in French silently stops applying to an analysis run in English&lt;/strong&gt;. Nothing would have reported it: the finding simply reappears, with no decision attached.&lt;/p&gt;
&lt;p&gt;Everywhere else in that tool, the evidence for a finding is a line of source code — untranslatable by nature. From the probe it is now the fact the handshake returned, and the sentence that explains it lives in a separate field, as it does for every other detector.&lt;/p&gt;
&lt;h2 id=&quot;3-a-piece-cited-as-published-and-never-run&quot;&gt;3. A piece cited as published, and never run&lt;/h2&gt;
&lt;p&gt;The piece scheduled for 8 October — not out yet as these lines are written — opened on: &lt;em&gt;“On 2 October, a piece published here ended on an uncomfortable sentence…”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;That piece never ran. It was written, scheduled for 2 October, and withdrawn the day before along with another. Checked: absent from the sitemap, absent from the four versions uploaded to the server, and its URL answers 404.&lt;/p&gt;
&lt;p&gt;A reader following the reference would have found nothing — the worst possible error in a piece whose subject is checking what you assert. The sentence now says what happened: written, scheduled, withdrawn the day before, and its last line held. &lt;strong&gt;The withdrawal is part of the story rather than something in its way.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;what-the-three-have-in-common&quot;&gt;What the three have in common&lt;/h2&gt;
&lt;p&gt;None was found by proofreading. All three were found &lt;strong&gt;by doing what the sentence described&lt;/strong&gt;: altering a published report to see whether the signature noticed, generating the document in three languages, following one’s own reference.&lt;/p&gt;
&lt;p&gt;It is the only method that works, and it has a less noble name than “transparency”: &lt;strong&gt;check rather than assume&lt;/strong&gt;. The same mistake happened twice in the tooling over those two days, in an even sillier form — a check that asked for a status code instead of a content. PHP’s development server answers &lt;code&gt;200&lt;/code&gt; with the home page for a path that does not exist, so our check reported “online” for an article that had been rebuilt out of existence. &lt;strong&gt;A status code is not a verification.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-apparatus-now&quot;&gt;The apparatus, now&lt;/h2&gt;
&lt;p&gt;A false sentence is not corrected by promising to be more careful. It is corrected by making its refutation automatic.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A word budget.&lt;/strong&gt; The interview questionnaire had reached 986 words of text to read in order to answer two questions per subject. It is 235 now, and a test fails over 260. A second fails if a trade word returns to the reader’s path. Because prose arrives one justified paragraph at a time, and nothing else catches it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tests on the claim&lt;/strong&gt;, not on the code: three languages give one digest; three languages give one identifier; no file path appears in front of the person being asked; an unsigned report claims nothing a signature would prove.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replayable artefacts.&lt;/strong&gt; This site’s report, its signature and the declaration naming the key are public. The command to verify is printed inside the document, and what it establishes — along with what it does not — right underneath.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Withdrawals owned.&lt;/strong&gt; Two pieces written, scheduled, then withdrawn the day before. The publication mechanism was fixed in the same pass: a dated version no article claims any more is dropped from the server, since otherwise it would be served on the day with the withdrawn text inside it.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-we-decided-not-to-measure&quot;&gt;What we decided not to measure&lt;/h2&gt;
&lt;p&gt;Transparency is also for saying what you do not do, and why.&lt;/p&gt;
&lt;p&gt;This site &lt;strong&gt;does not count its visits&lt;/strong&gt;. There is no access log at all: checked, zero request lines recorded. An honest counter is possible — Caddy’s log, the IP address dropped at source, no personal data kept — but it would count &lt;em&gt;requests&lt;/em&gt;, not people, and robots would inflate the figure. A counter announcing “visitors” while counting requests is exactly the false assurance the rest of this work refuses. So no.&lt;/p&gt;
&lt;p&gt;It has &lt;strong&gt;no comments&lt;/strong&gt; either. That would need an executable on the server, a database, moderation, spam defence and the storage of other people’s names — five things this site is defined by not having. Instead, an address at the end of every piece. It costs one line and filters on its own: whoever takes the trouble to write has something to say.&lt;/p&gt;
&lt;h2 id=&quot;what-it-produced&quot;&gt;What it produced&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Three false claims corrected in two days&lt;/strong&gt;, each with the test that fails if it comes back.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One serious defect found in passing&lt;/strong&gt;: audit decisions silently detaching from their finding depending on the language of the run.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two checks rewritten&lt;/strong&gt; because they measured a status code rather than a content.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero lines of communication added.&lt;/strong&gt; There is no “our commitments” page on this site, and there will not be one.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practice&quot;&gt;Good practice&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Do what the sentence describes, for real, once. Alter the signed file, generate in three languages, follow your own link: that is where claims fall over, not in proofreading.&lt;/li&gt;
&lt;li&gt;Write first what a guarantee does &lt;strong&gt;not&lt;/strong&gt; cover. That is the half everybody forgets, and it is the one that manufactures misplaced trust.&lt;/li&gt;
&lt;li&gt;Turn every kept promise into a test that fails when it stops being kept. A claim with no automatic refutation is a claim that will be false one day without anybody knowing.&lt;/li&gt;
&lt;li&gt;Verify a content, never a status code.&lt;/li&gt;
&lt;li&gt;Say what you withdrew. An explained withdrawal costs a paragraph; a hole in a public history costs the trust you were trying to build.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;things-to-watch&quot;&gt;Things to watch&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;An apparatus is not a virtue.&lt;/strong&gt; None of the above guarantees the next sentence. It only guarantees that a claim already tested will not quietly decay.&lt;/li&gt;
&lt;li&gt;The three errors in this piece were found in two days because somebody was &lt;strong&gt;using&lt;/strong&gt; these tools that day. A tool nobody uses keeps its false claims indefinitely, and no test writes itself in our place.&lt;/li&gt;
&lt;li&gt;Publishing your mistakes has a cost worth naming: to a fast reader it looks like amateurism. We do it anyway, because the alternative — correcting in silence — protects the author and leaves the reader with the false version.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>Our domain layer contains nothing but exceptions. On purpose.</title>
        <link href="https://mesa.black/en/our-domain-layer-is-only-exceptions/"/>
        <id>https://mesa.black/en/our-domain-layer-is-only-exceptions/</id>
        <updated>2026-10-04T02:00:00+02:00</updated>
        <summary>Nine contexts, twenty-nine commands, a single query handler, zero ports. What we kept of DDD and hexagonal architecture, what we turned down, and the five places infrastructure crosses the boundary anyway. This is not purist DDD, it is time to market.</summary>        <content type="html">&lt;p&gt;Articles about hexagonal architecture almost always show the same diagram: a circle in the middle, ports around it, adapters outside, and an arrow pointing inward. None of them ever shows what the &lt;code&gt;Domain/&lt;/code&gt; folder actually holds six months later.&lt;/p&gt;
&lt;p&gt;Here is ours. Nine contexts, and twelve domain files in total: nine exceptions, two enums, one role. Zero interfaces. Zero aggregates. Zero value objects. Calling that a business layer would be a lie, and that is precisely what this piece is about.&lt;/p&gt;
&lt;h2 id=&quot;what-we-kept-the-c-in-cqrs-not-the-q&quot;&gt;What we kept: the C in CQRS, not the Q&lt;/h2&gt;
&lt;p&gt;The bus configuration declares three channels with explicit semantics:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;default_bus: command.bus
buses:
    command.bus:            # a command mutates state, exactly one handler
        default_middleware: { enabled: true, allow_no_handlers: false }
    query.bus:              # a query returns a value, a single handler
        default_middleware: { enabled: true, allow_no_handlers: false }
    event.bus:              # a domain event: 0..n subscribers
        default_middleware: { enabled: true, allow_no_handlers: true }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The actual count today: &lt;strong&gt;twenty-nine command handlers, one query handler.&lt;/strong&gt; The query bus exists, it is configured, and it is very nearly empty.&lt;/p&gt;
&lt;p&gt;That is not migration debt, it is a conclusion. A command earns its ceremony because it brings three things we did not have: a name for an intent (&lt;code&gt;ChangeCompanySubscriptionPlan&lt;/code&gt; is not &lt;code&gt;setSubscriptionPlan&lt;/code&gt;), a guarantee that exactly one place executes it — &lt;code&gt;allow_no_handlers: false&lt;/code&gt; fails at boot, not in production — and an obvious transaction boundary, the handler’s.&lt;/p&gt;
&lt;p&gt;A read brings none of that. Its shape is dictated by the screen that displays it: this page needs these seven columns, joined this way, sorted like that. Putting that on a bus adds no rule, adds a layer, and moves the SQL from one file to another. So we read through Doctrine repositories, directly, without apologising for it.&lt;/p&gt;
&lt;p&gt;One detail matters more than it looks: &lt;code&gt;default_bus: command.bus&lt;/code&gt;. A bare &lt;code&gt;dispatch()&lt;/code&gt; is a command. The default is the channel that mutates state — the one thing you never want travelling down the wrong channel by accident.&lt;/p&gt;
&lt;h2 id=&quot;what-we-turned-down-dependency-inversion&quot;&gt;What we turned down: dependency inversion&lt;/h2&gt;
&lt;p&gt;This is the heart of the hexagon in the literature: the domain declares interfaces, infrastructure implements them, the dependency arrow points inward. We did not do it. Here is a full handler, uncut:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;#[AsMessageHandler(bus: &#039;command.bus&#039;)]
final readonly class ChangeCompanySubscriptionPlanHandler
{
    public function __construct(
        private EntityManagerInterface $entityManager,
        private LoggerInterface $logger,
    ) {}

    public function __invoke(ChangeCompanySubscriptionPlanCommand $command): void
    {
        $company = $this-&amp;gt;entityManager-&amp;gt;find(Company::class, Ulid::fromString($command-&amp;gt;companyId));
        if (!$company instanceof Company) {
            throw CompanyNotFoundException::withId($command-&amp;gt;companyId);
        }
        // …
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;EntityManagerInterface&lt;/code&gt; as a direct dependency. Out of thirty-eight handlers, &lt;strong&gt;twenty-four&lt;/strong&gt; depend on it. The &lt;code&gt;Company&lt;/code&gt; entity comes from &lt;code&gt;App\Entity&lt;/code&gt;, shared by every context. There is no abstract repository, no port, no domain model distinct from the table.&lt;/p&gt;
&lt;p&gt;Two remarks on that example, because they say more than the diagram does.&lt;/p&gt;
&lt;p&gt;First, the command carries &lt;code&gt;string $companyId&lt;/code&gt;, not a &lt;code&gt;CompanyId&lt;/code&gt; value object. That is not laziness: the message has to be serialisable for asynchronous transport. The bus boundary dictates the shape of the message — infrastructure setting the signature of what we call the domain, from the very first line.&lt;/p&gt;
&lt;p&gt;Second, &lt;code&gt;Ulid::fromString(...)&lt;/code&gt;. The domain identifier exists in two forms depending on whether you are carrying it or querying with it, and that conversion is a storage constraint, not a business one.&lt;/p&gt;
&lt;h2 id=&quot;what-the-boundary-buys-anyway&quot;&gt;What the boundary buys anyway&lt;/h2&gt;
&lt;p&gt;One thing, exactly one, and it is worth its price: &lt;strong&gt;coupling between contexts became visible in the import list.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The handler above lives in &lt;code&gt;App\Billing&lt;/code&gt;. It imports &lt;code&gt;App\Company\Domain\Exception\CompanyNotFoundException&lt;/code&gt;. That single import says billing depends on the Company context, and it says so at the top of the file, in one line, with no diagram to keep up to date. The cross-context dependency graph is a &lt;code&gt;grep&lt;/code&gt; over &lt;code&gt;use&lt;/code&gt; statements.&lt;/p&gt;
&lt;p&gt;That is modest. Compared with a codebase where everything lives in &lt;code&gt;App\Service&lt;/code&gt;, it is the difference between “we assume it’s coupled” and “here is exactly where”. That benefit is what we bought, and nothing else.&lt;/p&gt;
&lt;h2 id=&quot;the-five-places-infrastructure-crosses&quot;&gt;The five places infrastructure crosses&lt;/h2&gt;
&lt;p&gt;Here is what no diagram shows: the places where Doctrine decides the shape of a business operation. These are real leaks, all of them in the code today.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. The business rule written in two dialects.&lt;/strong&gt; Our policy for keeping internal companies out of commercial figures is one predicate. It exists in two versions, because some read paths are native SQL for performance and others are DQL:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;public static function sql(string $alias = &#039;c&#039;): string  // native queries
{ return ($alias !== &#039;&#039; ? $alias.&#039;.&#039; : &#039;&#039;).&#039;excluded_from_stats = false&#039;; }

public static function dql(string $alias = &#039;c&#039;): string  // ORM queries
{ return $alias.&#039;.excludedFromStats = false&#039;; }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One rule, two spellings, because of the query language. The divergence is a single character — &lt;code&gt;excluded_from_stats&lt;/code&gt; against &lt;code&gt;excludedFromStats&lt;/code&gt; — so it is invisible to a quick read, and no test would fail if one of the two drifted.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. The ambient filter.&lt;/strong&gt; Doctrine’s soft-delete filter is mutable global state. A query looking for a unique identifier finds nothing while the unique index still holds it. The way out is to disable the filter and put it back:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;$filters = $this-&amp;gt;em-&amp;gt;getFilters();
$wasEnabled = $filters-&amp;gt;isEnabled(&#039;softdeleteable&#039;);
if ($wasEnabled) { $filters-&amp;gt;disable(&#039;softdeleteable&#039;); }
$existing = $repo-&amp;gt;findOneBy([&#039;slug&#039; =&amp;gt; $slug]);
if ($wasEnabled) { $filters-&amp;gt;enable(&#039;softdeleteable&#039;); }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A “business query” whose result depends on ambient state is not a function. This is not a Doctrine defect — the filter does exactly what we asked of it — but it forbids reasoning about application code without knowing which mode it runs in.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Write ordering inside the unit of work.&lt;/strong&gt; Replacing a piece of content’s translations looks like one operation: drop the old ones, add the new ones, save. Within a single &lt;code&gt;flush()&lt;/code&gt;, Doctrine runs &lt;code&gt;INSERT&lt;/code&gt;s before orphan &lt;code&gt;DELETE&lt;/code&gt;s, and the unique constraint on &lt;code&gt;(feedback_id, locale)&lt;/code&gt; breaks. The operation has to be split into two successive saves.&lt;/p&gt;
&lt;p&gt;Put differently: the shape of the application-level operation is not set by the business but by the ORM’s internal scheduling. No port would have protected us, because the constraint lives neither in the domain nor in the adapter — it lives in the execution order that connects them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. The join alias that truncates in silence.&lt;/strong&gt; Filtering on an association already joined with &lt;code&gt;fetch&lt;/code&gt; also restricts the hydrated collection: you think you are filtering rows, you are amputating the returned object. Filtering needs its own second join:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-php&quot;&gt;$qb-&amp;gt;innerJoin(&#039;f.industries&#039;, &#039;i_filter&#039;)      // alias distinct from the fetch one
   -&amp;gt;andWhere(&#039;i_filter.id IN (:industries)&#039;);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The bug is invisible: the query returns the right entities, with incomplete collections. That is infrastructure semantics, right in the middle of what reads like a search rule.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. The identifier’s type.&lt;/strong&gt; Identifiers travel as ULIDs, compare as RFC 4122 in queries, and forgetting the conversion yields an empty result rather than an error. A port would have moved the conversion; it would not have removed it.&lt;/p&gt;
&lt;h2 id=&quot;the-migration-rule&quot;&gt;The migration rule&lt;/h2&gt;
&lt;p&gt;Which leaves the question that kills rewrites: what do we do with the existing code, written as classic Symfony services?&lt;/p&gt;
&lt;p&gt;Nothing, as long as nobody touches it. The policy is written down: &lt;strong&gt;CQRS for new writes and new reads; existing code migrates on demand only.&lt;/strong&gt; Never a wholesale rewrite in the name of consistency.&lt;/p&gt;
&lt;p&gt;Because consistency is not a business outcome. Rewriting a service that works so it resembles its neighbours produces risk without producing value — and it is exactly the kind of work that justifies itself indefinitely, because its stopping criterion is aesthetic.&lt;/p&gt;
&lt;h2 id=&quot;this-is-not-purist-ddd-it-is-time-to-market&quot;&gt;This is not purist DDD, it is time to market&lt;/h2&gt;
&lt;p&gt;The real reason has to be named, because everything above reads differently once it is on the table.&lt;/p&gt;
&lt;p&gt;We have already written here that &lt;a href=&quot;/en/the-code-we-dont-write/&quot;&gt;the cheapest feature is the one you don’t build&lt;/a&gt;. A port is a feature. So is an aggregate, so is a value object, so is an anti-corruption layer. Each one costs writing, costs reading for whoever arrives next, and costs upkeep for as long as the code lives. An abstraction is not free because it is immaterial.&lt;/p&gt;
&lt;p&gt;So the useful question is not “is this correct DDD”. It is: what does this abstraction buy today, and what is it merely postponing? A repository behind an interface buys the ability to change storage — we are not leaving PostgreSQL. It also buys tests without a database, and that one is a real benefit: it is the single argument that may yet make us pay the bill.&lt;/p&gt;
&lt;p&gt;What we did instead fits in one sentence: ship, and keep only the boundaries that pay for themselves. The command bus costs three files and helps the same day. Ports cost a whole layer and may help, later, a team that does not exist yet.&lt;/p&gt;
&lt;p&gt;The risk in that position is well known, and writing it down is part of the price: it is indistinguishable from laziness at a glance. The difference comes down to one detail — we can name what we did not build, and why.&lt;/p&gt;
&lt;p&gt;And we own it. These are our choices, not accidents we would discover on a re-read. We correct them when we can and when we have the time: the day a friction becomes real and measurable, not the day an architecture article explains that they are incorrect. A debt that is written down, dated and argued is not a denied debt — it is the only kind you are able to repay at the right moment.&lt;/p&gt;
&lt;h2 id=&quot;what-it-produced&quot;&gt;What it produced&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Nine named contexts&lt;/strong&gt;, whose mutual coupling is read in the imports rather than in an out-of-date diagram.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Twenty-nine commands&lt;/strong&gt;, each with an intent name, a single handler guaranteed at boot, and an obvious transaction boundary.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One query handler&lt;/strong&gt;, deliberately: reads go through repositories.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Twelve domain files&lt;/strong&gt; — nine exceptions, two enums, one role — which is to say no business rule genuinely isolated from Doctrine.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero rewrites&lt;/strong&gt; of the existing classic code, which keeps working alongside.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practices&quot;&gt;Good practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Treat every abstraction as a feature: it has to say what it buys today, not what it would allow one day.&lt;/li&gt;
&lt;li&gt;Adopt the pieces separately. A command bus delivers something without the rest; ports, aggregates and value objects are distinct purchases, each with its own bill.&lt;/li&gt;
&lt;li&gt;Pick the strictest default: the default bus is the one that mutates state, and a missing handler fails the boot rather than production.&lt;/li&gt;
&lt;li&gt;Use namespaces as a coupling detector rather than a barrier: they protect nothing, they make things visible.&lt;/li&gt;
&lt;li&gt;Write the migration rule down, with its stopping criterion. Without one, “harmonising the architecture” is infinite work.&lt;/li&gt;
&lt;li&gt;Look at what &lt;code&gt;Domain/&lt;/code&gt; actually contains before claiming you do DDD. The count is instructive.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;watch-outs&quot;&gt;Watch-outs&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The folder is not the boundary.&lt;/strong&gt; Creating &lt;code&gt;Domain/&lt;/code&gt;, &lt;code&gt;Application/&lt;/code&gt;, &lt;code&gt;Infrastructure/&lt;/code&gt; gives a comforting sense of measurable progress — and measuring an architecture by its folder count is the surest way to get none of the guarantees they suggest.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Twenty-four of thirty-eight handlers depend on the &lt;code&gt;EntityManager&lt;/code&gt;&lt;/strong&gt;: none can be tested with an in-memory repository. The test suite needs a real database. That is a cost, it is accepted, it is not free.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Shared Doctrine entities are the real coupling&lt;/strong&gt;, and it is invisible in the folder tree. The day two contexts want the same table to diverge, that is the wall we will hit — not the absence of ports.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A business rule duplicated across two query dialects will eventually drift&lt;/strong&gt;, and today nothing would catch it. That is the most concrete debt in everything above.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>We were our own best customer. That was a bug.</title>
        <link href="https://mesa.black/en/our-own-best-customer/"/>
        <id>https://mesa.black/en/our-own-best-customer/</id>
        <updated>2026-09-30T02:00:00+02:00</updated>
        <summary>Our company publishes on our platform — and was counting itself in our revenue, our funnel and our follow-up lists. How we took it out of the statistics without taking it off the site.</summary>        <content type="html">&lt;p&gt;Everyone tells you to use your own product. Nobody warns you about the side effect: the moment your company has an account, it enters your figures. Not in a footnote — in the revenue, in the conversion rate, in the list of customers to chase.&lt;/p&gt;
&lt;p&gt;Our case: BlackMesa publishes real case studies on &lt;a href=&quot;https://showmetherex.com/en/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Show me the REX&lt;/a&gt;. The account is real, the plan is real, the articles get read. What is not real is the revenue — we do not invoice ourselves. So a zero-euro customer sat inside our MRR, inflated the plan breakdown, and filled a slot in the conversion funnel without ever having converted anything.&lt;/p&gt;
&lt;p&gt;The obvious fix — “exclude our own company” — is wrong. It assumes the problem is the company. The problem is somewhere else.&lt;/p&gt;
&lt;h2 id=&quot;it-isnt-who-to-exclude-its-what-does-this-number-answer&quot;&gt;It isn’t “who to exclude”, it’s “what does this number answer”&lt;/h2&gt;
&lt;p&gt;The reflex is to look for a list of entities to leave out. The right question is asked metric by metric: which question is this number the answer to?&lt;/p&gt;
&lt;p&gt;A view counter answers “how many people read this text”. The answer is the same whether the reader came from our offices or from anywhere else: the page was served, it was read, the content exists. Excluding our views would make that number wrong.&lt;/p&gt;
&lt;p&gt;Monthly revenue answers “how much do our customers pay us”. Our own company is not a customer. Its presence makes that number wrong.&lt;/p&gt;
&lt;p&gt;Both metrics look at the same database, sometimes at the same row, and need opposite rules. That is not an exception to handle, it is the rule: &lt;strong&gt;the unit of exclusion is not the data, it is the question being asked.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-case-that-settles-it-a-view-that-counts-and-does-not-count&quot;&gt;The case that settles it: a view that counts and does not count&lt;/h2&gt;
&lt;p&gt;The clearest example is also the most uncomfortable, because it rules out every implementation shortcut.&lt;/p&gt;
&lt;p&gt;On the platform, a case-study view feeds two distinct things. On one side, audience: the counter shown on the article, the dashboard total, the traffic curve. On the other, a commercial signal: “which companies have read your case studies”, used to identify contacts worth following up.&lt;/p&gt;
&lt;p&gt;Same event, same record. In the first group, a read from our own offices counts — somebody really did read it. In the second, it must not count at all: we are not a prospect to call back, and an internal reader sitting in a lead list is a sales action triggered for nothing.&lt;/p&gt;
&lt;p&gt;So there is no global filter to install once at the door. Every query has to know which family it belongs to.&lt;/p&gt;
&lt;h2 id=&quot;a-flag-in-the-database-not-a-constant-in-the-code&quot;&gt;A flag in the database, not a constant in the code&lt;/h2&gt;
&lt;p&gt;First version, the quickest one: a hardcoded list of company names. It lasted an hour. A constant forces a deployment to reclassify a company, and more importantly it lies about the nature of the information: “this company is not a customer” is business data — it changes, it gets decided, and it has to be visible to whoever administers the accounts.&lt;/p&gt;
&lt;p&gt;So it became a checkbox on the company form, with its help text spelled out, because an option whose scope nobody understands ends up ticked at random:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Our own companies publish and stay visible on the public site, but count in no commercial or marketing figure: MRR, plans, funnel, upsell/churn, leads, digests. Views and visits, however, still count.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The list of names did not disappear: it bootstraps a freshly installed environment so it never starts with polluted metrics. But it no longer decides anything.&lt;/p&gt;
&lt;p&gt;The predicate itself lives in one small class, in two flavours — one for ORM queries, one for raw SQL. That sounds trivial; it is what makes the rule auditable. Finding every place that applies it became a text search, and checking it against the list of commercial figures takes a minute by eye.&lt;/p&gt;
&lt;h2 id=&quot;verify-rather-than-re-read&quot;&gt;Verify rather than re-read&lt;/h2&gt;
&lt;p&gt;Re-reading your own exclusion code proves nothing: you read back what you believe you wrote. The only verification worth the name is to toggle the checkbox and compare the dashboards before and after, figure by figure.&lt;/p&gt;
&lt;p&gt;About thirty values moved. Seven stayed strictly identical — and that was the expected result: they are the audience counters and the published-content volumes. A number that moves when it shouldn’t is a bug; a number that stays put when it should have moved is an omission. Without that pass, we would have caught neither.&lt;/p&gt;
&lt;p&gt;The final shape: one flag, one policy class, thirty-four predicates across eight files — MRR, plans, funnel, upsell, churn risk, follow-ups, lead intelligence, monthly digests, coupon expiry, nurturing.&lt;/p&gt;
&lt;p&gt;That last one deserves a mention. Without the exclusion, our own company sat in the automated re-engagement sequence. We would have been sending ourselves our own win-back e-mails.&lt;/p&gt;
&lt;h2 id=&quot;what-it-produced&quot;&gt;What it produced&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;An MRR with no zero-euro customer in it&lt;/strong&gt;, and a conversion rate that no longer counts our own sign-up in its denominator.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;About thirty corrected values&lt;/strong&gt; across the commercial dashboards, seven deliberately unchanged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero change on the public site&lt;/strong&gt;: the case studies stay published, visible, filterable, and their views still count.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One rule written in one place&lt;/strong&gt;, with its reason, rather than an &lt;code&gt;AND&lt;/code&gt; copied from query to query.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A checkbox&lt;/strong&gt; that reclassifies a company without a deployment.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practices&quot;&gt;Good practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Classify each metric before coding the filter: audience measurement, or commercial signal. The answer sets the rule, and it is not the same for two numbers drawn from the same table.&lt;/li&gt;
&lt;li&gt;Put membership in the database, not in a constant: it is business data, it changes and it gets decided.&lt;/li&gt;
&lt;li&gt;Keep the predicate in a single class even if it fits on one line: the point is not reuse, it is being able to find every call site.&lt;/li&gt;
&lt;li&gt;Verify by toggling: comparing figures before and after is the only way to tell an omission from a decision.&lt;/li&gt;
&lt;li&gt;Write the scope into the admin interface, right where the box gets ticked.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;watch-outs&quot;&gt;Watch-outs&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Nothing stops the next query from forgetting the predicate.&lt;/strong&gt; The rule is held by code review, not by a test, and that is the main weakness of the setup today.&lt;/li&gt;
&lt;li&gt;An exclusion that is too broad is as wrong as no exclusion at all: pulling our views out of the audience counter would have produced a lie in the other direction.&lt;/li&gt;
&lt;li&gt;The day an internal company becomes a real paying customer, the box has to be unticked — and nobody will remind you. That decision is human, and it needs a scheduled moment where it gets revisited.&lt;/li&gt;
&lt;li&gt;Saying publicly that your statistics exclude your own data costs nothing, and beats having someone else discover it for you.&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>The cheapest feature is the one you don&#039;t build</title>
        <link href="https://mesa.black/en/the-code-we-dont-write/"/>
        <id>https://mesa.black/en/the-code-we-dont-write/</id>
        <updated>2026-09-27T02:00:00+02:00</updated>
        <summary>Three signals that say &#039;do not write this code&#039; — and what they saved us in a single day.</summary>        <content type="html">&lt;p&gt;Digital sobriety is almost always framed as an optimisation problem: lighter images, better
caching, a cleaner region. All true, and all marginal. The real waste sits elsewhere, and
nobody measures it: &lt;strong&gt;code written for nothing&lt;/strong&gt;. A migration to redo, a tool bought then
dropped, a feature shipped that nobody opens. Which leaves the question we had never put
into words: how do you &lt;em&gt;decide&lt;/em&gt; not to build something?&lt;/p&gt;
&lt;p&gt;The report gives the &lt;strong&gt;three signals&lt;/strong&gt; we settled on, and what each one saved over one
ordinary working day: a broken feature nobody complained about — information about the
feature, not about the bug; 1,400 translations we did not write because no reader could
reach them; and a monitoring gap that turned out to be a rehearsal gap, not a tooling gap.&lt;/p&gt;
&lt;p&gt;It also says what those signals &lt;strong&gt;do not&lt;/strong&gt; mean. “Nobody needs it” is the perfect excuse for
doing nothing, and a rule that can only say no has stopped being a rule. Two guardrails keep
it honest — including this one: an unused feature is sometimes badly exposed rather than
useless.&lt;/p&gt;
</content>
    </entry>
        <entry>
        <title>Upgrading the OS under Docker: what is still coupled, and what nothing validates</title>
        <link href="https://mesa.black/en/upgrading-the-os-under-docker/"/>
        <id>https://mesa.black/en/upgrading-the-os-under-docker/</id>
        <updated>2026-09-27T02:00:00+02:00</updated>
        <summary>The application lives in an image, so the distribution cannot touch it. Four coupling points remain — and one of them sits in a blind spot no pipeline covers.</summary>        <content type="html">&lt;p&gt;&lt;a href=&quot;https://showmetherex.com/en/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Show me the REX&lt;/a&gt; runs on a single host: one Postgres, one Redis, one front proxy, and the application deployed blue-green — two identical instances, “blue” and “green”, of which only one serves traffic at a time. A new version is started on the idle one, and once it answers correctly the proxy is switched over. At the time of writing, that host serves 52 published case studies and a little over 16,000 cumulative views.&lt;/p&gt;
&lt;p&gt;This arrangement protects a release: if the new version misbehaves, switching back takes a second and nobody notices. It protects nothing at all against the machine itself, since both instances sit on that same host — stop it and you stop them both.&lt;/p&gt;
&lt;p&gt;The single host is a deliberate choice, not an oversight: no redundancy until traffic justifies it, and the threshold for revisiting it is written down — a thousand visits a day. Below that, a second machine costs far more in complexity (replication, failover, consistency) than it returns in availability, and complexity nobody needs yet is the most expensive thing you can build.&lt;/p&gt;
&lt;p&gt;Owning that choice creates an obligation, though. If you accept that a reboot takes the service down, you owe yourself an exact figure for what it costs. That is the part we got wrong that night, and we come back to it at the end.&lt;/p&gt;
&lt;p&gt;We moved that host from one Ubuntu release to the next. The operation went through — and that is not the interesting part. The interesting part is that containerisation has narrowed what such an upgrade can still break down to a very short list, and that we found exactly the item on it that nothing in our chain was watching.&lt;/p&gt;
&lt;h2 id=&quot;what-containerisation-actually-decoupled&quot;&gt;What containerisation actually decoupled&lt;/h2&gt;
&lt;p&gt;The application is immune to a distribution upgrade, and it is worth being precise about why: it does not use anything from the host. Its PHP, its extensions, its system libraries, its CA bundle all ship inside the image. The host’s &lt;code&gt;ca-certificates&lt;/code&gt; can be replaced wholesale — our outbound calls to VIES, the payment provider and object storage are unaffected, because they never read that store.&lt;/p&gt;
&lt;p&gt;This is why teams have come to treat an OS upgrade on a container host as routine. It is very nearly true, and it is the “very nearly” that costs.&lt;/p&gt;
&lt;h2 id=&quot;the-four-coupling-points-that-remain&quot;&gt;The four coupling points that remain&lt;/h2&gt;
&lt;p&gt;Once you have moved everything you can into images, what still belongs to the host is a short list — and it is the same list on every containerised server:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The kernel.&lt;/strong&gt; Containers share it. A major jump changes the ground under a database far more than under a web process.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Docker daemon.&lt;/strong&gt; It is not in your image; it is a host package, installed from a third-party repository.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The apt sources for that daemon.&lt;/strong&gt; The thing that decides whether the previous point ever gets a security patch again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The restart contract.&lt;/strong&gt; Which containers come back on their own after a boot, and which deliberately do not — the idle instance, for one, must stay down, or two versions of the application would fight over the same database.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Nothing else really matters. That list is short enough to be checked by hand, before and after — which is precisely what makes not checking it inexcusable.&lt;/p&gt;
&lt;h2 id=&quot;the-only-lasting-damage-landed-on-point-three&quot;&gt;The only lasting damage landed on point three&lt;/h2&gt;
&lt;p&gt;A release upgrade disables or removes third-party apt sources. This is not a bug: those sources are built for the release you are leaving, and keeping them enabled across the jump is how you break a system. The tool is right to do it, and it says so.&lt;/p&gt;
&lt;p&gt;What it does not do is tell you afterwards. Our Docker source was gone. Nothing broke — the daemon kept running, the containers with it, the site served. But the installed package had been built for the previous distribution, and there was no longer any repository able to replace it. &lt;strong&gt;The failure mode is not a service that stops; it is a package manager that becomes authoritative and empty at the same time.&lt;/strong&gt; It reports that everything is up to date, and it is telling the truth about a universe it can no longer see.&lt;/p&gt;
&lt;p&gt;Restoring the source is four lines and no restart. It immediately revealed seven minor versions of drift accumulated in silence. Nothing would ever have raised a hand: not the daemon, which works; not the monitoring we do not have; not &lt;code&gt;apt&lt;/code&gt;, which had nothing left to compare against.&lt;/p&gt;
&lt;h2 id=&quot;the-blind-spot-the-compose-files&quot;&gt;The blind spot: the compose files&lt;/h2&gt;
&lt;p&gt;Then the structural finding, which is the one worth taking away.&lt;/p&gt;
&lt;p&gt;Our database service had no restart policy. After a reboot, every other container would have come back and Postgres would not. The bug is trivial — one missing line. Its lifespan is not: it had been there for months, and it could only manifest on a host reboot, which had not happened in that whole time.&lt;/p&gt;
&lt;p&gt;The real question is not how it got written. It is why nothing caught it. And the answer generalises well beyond our setup: &lt;strong&gt;the compose files are the only production configuration that nothing owns.&lt;/strong&gt; They are not baked into the image, so the build never sees them. No test exercises them, because tests run against the application, not against the host’s topology. And our deploy job does not even copy them — it opens an SSH session and runs a script. They are edited in the repository, applied by hand, and validated by nothing.&lt;/p&gt;
&lt;p&gt;In a chain that is otherwise fully automated — tests, static analysis, image build, zero-downtime deploy — that is where a defect can sleep indefinitely. Not in the code the pipeline reads twenty times a day, but in the handful of YAML lines it never opens.&lt;/p&gt;
&lt;h2 id=&quot;what-the-kernel-could-have-broken-and-what-we-did-not-verify&quot;&gt;What the kernel could have broken, and what we did not verify&lt;/h2&gt;
&lt;p&gt;A major kernel jump under a containerised Postgres deserves more than “it came back up”. Three questions are worth asking, and we can only answer the first two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;The data directory.&lt;/em&gt; It lives in a named volume, on the same filesystem, with the same storage driver. Nothing moved — and that is the reason the upgrade was survivable at all, not luck.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The daemon’s confinement profiles.&lt;/em&gt; Seccomp and AppArmor defaults ship with the Docker package, not with the distribution, which is why the containers found the same environment on the other side.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Durability semantics.&lt;/em&gt; Whether a new kernel changes anything for Postgres under our mount options is a question we did not answer. It held, which proves nothing. We are writing it down rather than claiming a verification we never ran.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-measurement-already-existed&quot;&gt;The measurement already existed&lt;/h2&gt;
&lt;p&gt;Which leaves the obligation set out at the start: knowing the real cost of the outage we chose to accept. We stated a figure by reading container logs — the gap between a process’s last error and the next one’s start. That number describes the host, not the visitors. It leaves out the shutdown before it and the warm-up after, and it can be off by a factor of three.&lt;/p&gt;
&lt;p&gt;Meanwhile all our traffic goes through a CDN, which had already recorded, request by request, exactly what people got during that window. &lt;strong&gt;The measurement we thought we lacked had been taken for us, by an appliance we had been paying for and never queried.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The reflex to fix is not “add instrumentation”. It is to inventory what already measures before adding anything: the CDN, the reverse proxy’s own logs, the provider’s console. Our procedural slips that night — a guessed container name, shell variables that do not survive an SSH reconnection, a grep loose enough to report 41 lines for 2 errors — all belong to the same family, and they are worth exactly one sentence: a runbook must resolve what it needs, never freeze it. Which instance is live is the textbook case: it changes at every deploy.&lt;/p&gt;
&lt;h2 id=&quot;why-we-publish-all-of-this--and-the-one-thing-we-hold-back&quot;&gt;Why we publish all of this — and the one thing we hold back&lt;/h2&gt;
&lt;p&gt;A report is only useful if it is specific, so this one carries the commands, the failure modes and the gaps. Which raises a fair question: is publishing all that not handing an attacker a map?&lt;/p&gt;
&lt;p&gt;Our rule fits in one sentence. &lt;strong&gt;The problem is never naming a version. It is naming a version you are still vulnerable on.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;“We were on version X, it cost us this, it is patched” is ordinary post-mortem practice. The same text published before the fix is a weakness that is still true with the target attached — a case study is signed, it names a company and a domain. So: fix first, tell afterwards, and generalise whatever teaches nothing. The &lt;em&gt;gap&lt;/em&gt; — seven versions of silent drift — is the lesson; our host’s exact version string is not. What never gets published is the other category, the part that cannot be learned from but can be copied: host names, paths, the chain of keys that decrypts a backup. The line is not “sensitive versus harmless” — it is &lt;strong&gt;does this teach, or does this open?&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;what-it-gave-us&quot;&gt;What it gave us&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Four coupling points&lt;/strong&gt; isolated between a containerised application and its host: kernel, daemon, the daemon’s apt sources, restart contract. Short enough to check by hand, before and after.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A frozen update path restored&lt;/strong&gt;: the daemon had drifted seven minor versions behind, with nothing able to report it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A structural blind spot named&lt;/strong&gt;: the compose files, the only production configuration that no build, no test and no deploy job ever reads.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A measurement recovered rather than built&lt;/strong&gt;: the CDN had already recorded what visitors saw, for free.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;good-practices&quot;&gt;Good practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Write down your coupling points once. On a container host there are four of them, they are always the same, and checking them takes ten minutes.&lt;/li&gt;
&lt;li&gt;After a release upgrade, re-check the third-party sources first: a package manager with nothing left to compare against reports that everything is up to date, and it is not lying.&lt;/li&gt;
&lt;li&gt;Look for what your automation does not own. In a fully automated chain, the defect that survives is in the file the pipeline never opens.&lt;/li&gt;
&lt;li&gt;Inventory what already measures — CDN, proxy, provider console — before adding instrumentation. The figure you are missing has often already been recorded.&lt;/li&gt;
&lt;li&gt;A runbook resolves, it never freezes: which instance is live, its container name, the service id — all of it is asked for at call time.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;watch-outs&quot;&gt;Watch-outs&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The dangerous failure is not the service that stops, it is the one that keeps working while losing its ability to be updated. It emits nothing.&lt;/li&gt;
&lt;li&gt;“It came back up” proves nothing about durability. Write down the questions you did not answer rather than claiming a verification you never ran.&lt;/li&gt;
&lt;li&gt;A defect that can only manifest on a host reboot has the lifespan of the interval between two reboots. On a well-behaved server, that is months.&lt;/li&gt;
&lt;li&gt;An internal log says when a process died, never when visitors stopped being served. Only a measurement taken in front of the stack says that.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fix before you tell: a report describing a weakness that is still open, signed with your own name, is not transparency — it is an instruction manual.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
</content>
    </entry>
        <entry>
        <title>Building a complete, production-ready SaaS with a coding agent</title>
        <link href="https://mesa.black/en/a-complete-saas-with-a-coding-agent/"/>
        <id>https://mesa.black/en/a-complete-saas-with-a-coding-agent/</id>
        <updated>2026-09-26T02:00:00+02:00</updated>
        <summary>Zero-downtime deploys, real payments, passwordless sign-in — paired with an AI.</summary>        <content type="html">&lt;p&gt;How we designed, secured and shipped an entire platform — blue-green switching with no
downtime, real direct debits, passkey sign-in, a trilingual site, encrypted backups — while
working alongside a coding agent.&lt;/p&gt;
&lt;p&gt;The report goes through the architecture we settled on, what the agent genuinely
accelerated, and above all the places where we had to take the wheel back.&lt;/p&gt;
</content>
    </entry>
        <entry>
        <title>Guaranteeing legitimate case studies without a moderation team</title>
        <link href="https://mesa.black/en/legitimacy-without-moderation/"/>
        <id>https://mesa.black/en/legitimacy-without-moderation/</id>
        <updated>2026-09-25T02:00:00+02:00</updated>
        <summary>Betting on verified identity rather than censorship — and the two bugs that made us doubt it.</summary>        <content type="html">&lt;p&gt;A case-study platform is worth exactly as much as the trust placed in what gets published
on it. One fake report and the credibility of the whole corpus wobbles. The question we
faced: how do you guarantee the legitimacy of every publication, at scale, without
standing up a moderation team — and without handing the triage to an AI, which judges the
form of a text rather than the legitimacy of whoever publishes it?&lt;/p&gt;
&lt;p&gt;Our answer replaces content moderation with &lt;strong&gt;sender verification&lt;/strong&gt;: no company, no
publication; a minimum of substance required; an intra-community VAT number checked
against the EU registry; full traceability.&lt;/p&gt;
&lt;p&gt;The report also tells the story of the &lt;strong&gt;two traps&lt;/strong&gt; we hit along the way, both from the
same family: a third-party service answering &lt;code&gt;200 OK&lt;/code&gt; without having been able to check
anything, then an “unknown” state that actually covered two opposite situations — “I could
not check right now” and “I will never be able to check this value”. The second one let any
string of characters through for months.&lt;/p&gt;
</content>
    </entry>
    </feed>
