<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matt Cockayne</title>
    <description>The latest articles on DEV Community by Matt Cockayne (@phpboyscout).</description>
    <link>https://dev.to/phpboyscout</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F284848%2Feccd93ba-1bff-4e17-85cb-ff4c4bac6c6d.png</url>
      <title>DEV Community: Matt Cockayne</title>
      <link>https://dev.to/phpboyscout</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phpboyscout"/>
    <language>en</language>
    <item>
      <title>The E2E test that built the wrong binary</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Tue, 24 Nov 2026 02:46:23 +0000</pubDate>
      <link>https://dev.to/phpboyscout/the-e2e-test-that-built-the-wrong-binary-31d1</link>
      <guid>https://dev.to/phpboyscout/the-e2e-test-that-built-the-wrong-binary-31d1</guid>
      <description>&lt;p&gt;The merge request said "verified locally green" in its description, which in hindsight was asking for it.&lt;/p&gt;

&lt;p&gt;It was the tail end of a big audit clean-up on &lt;a href="https://gtb.phpboyscout.uk/" rel="noopener noreferrer"&gt;go-tool-base&lt;/a&gt;, and one of the fixes came with a brand new end-to-end scenario: make sure &lt;code&gt;generate add-flag&lt;/code&gt; doesn't throw away a command's aliases, shorthand flags and pre-run hooks when it regenerates. It passed on my machine. In CI, one scenario out of eighty-five fell over with this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERRO failed to load configuration: failed to load config: no configuration files found please run init, or provide a config file using the --config flag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that's a funny thing to be told by gtb... because gtb doesn't have an init command.&lt;/p&gt;

&lt;h2&gt;
  
  
  The star and the stunt double
&lt;/h2&gt;

&lt;p&gt;go-tool-base builds two binaries from one repository, and only one of them ever ships. &lt;code&gt;./cmd/gtb&lt;/code&gt; is the real tool, the generator you install. &lt;code&gt;./cmd/e2e&lt;/code&gt; is a test rig: it switches on every optional feature the framework has, init and doctor and config and the rest, so the end-to-end suite can exercise framework behaviour that a downstream tool inherits. It's there so I don't have to bake weird test fixtures into the real binary.&lt;/p&gt;

&lt;p&gt;If gtb's the star, the e2e binary is its stunt double. It looks like the star, it answers to the same name (both call themselves &lt;code&gt;gtb&lt;/code&gt;, so they even read the same config paths), and it's built to do the dangerous scenes. You just don't put it in the close-ups.&lt;/p&gt;

&lt;p&gt;And the test harness had put it in the close-ups. The &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/blob/265542ac/test/e2e/support/binary.go#L18-44" rel="noopener noreferrer"&gt;old helper&lt;/a&gt; promised one thing in its comment and built the other:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// BinaryPath returns the path to the compiled gtb binary,&lt;/span&gt;
&lt;span class="c1"&gt;// building it on first call. The binary is placed in a temp directory&lt;/span&gt;
&lt;span class="c1"&gt;// and reused for all subsequent calls.&lt;/span&gt;
&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nc"&gt;BinaryPath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;buildOnce&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Do&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;func&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// ...&lt;/span&gt;
        &lt;span class="n"&gt;binaryPath&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;filepath&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tmpDir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"gtb-e2e"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;cmd&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;exec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CommandContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Background&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"go"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-o"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;binaryPath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"./cmd/e2e"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"The compiled gtb binary", it says, right above the line that builds the other one! All of the generator scenarios had been running against the stunt double.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the double needed a config
&lt;/h2&gt;

&lt;p&gt;The reason it mattered comes down to a rule in the framework. Whether a missing config file is fatal depends on whether the tool is able to create one. A tool with an init command is expected to have run it, so no config is an error. A tool without one is allowed to start empty. In the &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/blob/d13f86ce/pkg/cmd/root/root.go#L466-479" rel="noopener noreferrer"&gt;bootstrap&lt;/a&gt; it's one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;allowEmpty&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;props&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Tool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IsDisabled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InitCmd&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The real gtb disables init, so it runs happily with no config, same as in production. The stunt double enables init, so it demands one. And on my machine it found one. I have a perfectly real &lt;code&gt;~/.gtb/config.yaml&lt;/code&gt; from using the tool day to day. CI's clean runner had nothing of the sort.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix that would have hidden it
&lt;/h2&gt;

&lt;p&gt;The first suggestion on the table was to give the scenario a config file of its own, the way another scenario already did. It would have gone green straight away. It would also have tested the generator with init switched on, which the real generator doesn't have, and buried the mismatch under a fixture.&lt;/p&gt;

&lt;p&gt;What I typed back was "wait, what!!! the GTB binary should have the init FeatureCmd disabled and this not need a config file? is this the gtb binary or the e2e test binary". It was the e2e binary, naturally.&lt;/p&gt;

&lt;p&gt;So the &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/blob/d13f86ce/test/e2e/support/binary.go#L22-74" rel="noopener noreferrer"&gt;fix&lt;/a&gt; gave the generator scenarios the star. A second helper builds the real &lt;code&gt;./cmd/gtb&lt;/code&gt;, and the comment on it says why in more words than I'd normally allow, because this wasn't the first time I'd had that conversation and I didn't want a third:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Generator scenarios must use this binary, not the e2e binary: the real&lt;/span&gt;
&lt;span class="c1"&gt;// gtb tool disables InitCmd (internal/cmd/root), so its bootstrap treats a&lt;/span&gt;
&lt;span class="c1"&gt;// missing config as allow-empty and the generate/regenerate/remove commands&lt;/span&gt;
&lt;span class="c1"&gt;// run without an external config file — exactly as they do in production.&lt;/span&gt;
&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nc"&gt;GeneratorBinaryPath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The pipeline went green, the e2e binary got a proper explanation in its package docs, and that was that... for about two months.&lt;/p&gt;

&lt;h2&gt;
  
  
  My clean check wasn't clean
&lt;/h2&gt;

&lt;p&gt;Looking back at it now, the local re-check that "proved" the fix proved rather less than I thought. It emptied &lt;code&gt;XDG_CONFIG_HOME&lt;/code&gt; to simulate a clean machine, but gtb reads &lt;code&gt;~/.gtb/&lt;/code&gt;, not anywhere XDG points, so my config was there in plain sight the whole time. (The very first attempt at that re-check also finished in 0.013 seconds, because I'd forgotten the environment variable that switches the suite on, and every scenario skipped without a word.) The green CI pipeline was the real proof, and mine just happened to agree with it.&lt;/p&gt;

&lt;p&gt;And I suspect there was always a bigger problem behind the first one. Picking the right binary fixed &lt;em&gt;which tool&lt;/em&gt; the tests ran, and did nothing about &lt;em&gt;whose home&lt;/em&gt; they ran in. The generator steps launched gtb with no environment of their own, so they inherited mine: my config, my caches, my AI provider settings, the lot.&lt;/p&gt;

&lt;h2&gt;
  
  
  August, and a dressing room of its own
&lt;/h2&gt;

&lt;p&gt;In August that kind of bug came back for a second go. A docs-generation path behaved differently on my machine, which had an AI provider configured, than on CI, which didn't, and a hash bug sailed through a green local run and failed a merge request's pipeline. The &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/commit/ee054998" rel="noopener noreferrer"&gt;fix&lt;/a&gt; finally gave the generator steps a home of their own, the way the CLI steps had always had, and its commit message says the thing I should have written in June:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;'Green locally, so CI is flaky' was the wrong conclusion, twice.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Isolating HOME wasn't free, though. Done naively, with the Go and lint caches stranded in the old home, the generator suite went from 193 seconds to 809 (uncomfortably close to CI's fifteen-minute limit). Pinning the module, build and lint caches back to shared locations brought it down to 119, which is faster than it was before any of this!&lt;/p&gt;

&lt;p&gt;So June sorted out which binary ran and August sorted out where it lived, and these days the star and the stunt double each get changed in their own dressing room instead of mine.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/the-e2e-test-that-built-the-wrong-binary/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 24 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>testing</category>
      <category>go</category>
      <category>cicd</category>
      <category>bdd</category>
    </item>
    <item>
      <title>Why can't agents tell the time?</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:47:28 +0000</pubDate>
      <link>https://dev.to/phpboyscout/why-cant-agents-tell-the-time-58gc</link>
      <guid>https://dev.to/phpboyscout/why-cant-agents-tell-the-time-58gc</guid>
      <description>&lt;p&gt;About four minutes after a session set itself a ninety-minute timebox for a spike, it came back and cheerfully told me it had used about fifty of them. It even put it in writing... the spike report says "Timebox: 90 minutes. Used: about 50." in black and white, and it's still up on the go/messaging wiki with that figure in it.&lt;/p&gt;

&lt;p&gt;I knew it hadn't, because I'd barely had time to make a coffee. What bothered me more was that I'd seen this before... plenty of times.&lt;/p&gt;

&lt;h2&gt;
  
  
  No clock on the wall
&lt;/h2&gt;

&lt;p&gt;Back in August I gave a research session on &lt;a href="https://scoutdm.com/" rel="noopener noreferrer"&gt;Scout&lt;/a&gt; two hours of wall time to really dig into a question, and a finished report turned up twenty-eight minutes later. What I typed back was "there is no way we have exhausted 2 hours of timebox?", and then I spent the best part of the next hour nudging it along, telling it how many minutes it still had and asking whether it was really sure it wanted to stop there (it kept being sure).&lt;/p&gt;

&lt;p&gt;The easy conclusion is that an agent's sense of time is a hallucination like any other, so you should never trust a duration it gives you. I don't think that's true, or at least not wholly... I reckon it's simpler than that, and more interesting.&lt;/p&gt;

&lt;p&gt;They have no &lt;a href="https://en.wikipedia.org/wiki/Time_perception" rel="noopener noreferrer"&gt;chronoception&lt;/a&gt;. A model hasn't got a body clock, and as far as I can tell it has no feel for a minute going by. What I see them do on a timeboxed task, time and again, is make a plan, stick a time estimate against each step of it and crack on, and when they reach a conclusion they stop, because a conclusion feels like the end. Ask how long it took and they add up their own estimates and hand you the total.&lt;/p&gt;

&lt;p&gt;Now, four minutes of a model knocking out two implementations and running the race detector a few times &lt;em&gt;reads&lt;/em&gt; like fifty minutes of an engineer's afternoon, and I suspect that's where the number comes from. Everything it learned from was written by people, and for a person that much work takes about that long... so fifty is what comes out.&lt;/p&gt;

&lt;p&gt;At no point does anything go and ask the operating system what time it is, which is perhaps exactly what it should be doing!&lt;/p&gt;

&lt;p&gt;The counter-example came from a go-tool-base session a couple of days before the messaging one. I'd given it a two-hour box, and the very first thing it wrote was "started 08:43 UTC". It finished at about ten past nine and told me so, spot on, and it was the only session of the three that wrote the clock down (funny how that works out).&lt;/p&gt;

&lt;h2&gt;
  
  
  The floor and the ceiling
&lt;/h2&gt;

&lt;p&gt;If you sat exams in a school hall you'll remember the set-up. A big clock at the front, the start and finish times written up on the board, a rule that you couldn't leave in the first chunk of it however quickly you'd finished, and then at the end... "pens down". That's a timebox with both its edges, and I give agents a box for the same two reasons.&lt;/p&gt;

&lt;p&gt;The floor matters most to me, and it's the edge the missing clock breaks first. Half the time the first conclusion an agent reaches (unless you've told it otherwise) is where it stops, and that's rarely what I'm after. What I want is fifteen conclusions, a few of them knocked out with a reason, and a shortlist at the end. The box is there to keep it looking past that first answer, and an agent that thinks it's used fifty minutes when it's used four is going to put its pen down and walk out.&lt;/p&gt;

&lt;p&gt;The ceiling's the other edge: a box also means the work has an end. The first time I left Codex (running GPT-6 Astra) on a really big job overnight, it got itself stuck in a loop and burnt most of a week's quota before I'd even woken up. I mentioned it in passing in &lt;a href="https://phpboyscout.uk/yaml-has-comments-for-a-reason/" rel="noopener noreferrer"&gt;the yamldoc announcement&lt;/a&gt; and it's a war story for another day, but a "pens down" would have been massively handy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hanging a clock on the wall
&lt;/h2&gt;

&lt;p&gt;So I built the clock. It's a new timebox skill in my &lt;a href="https://gitlab.com/phpboyscout/claude-code-plugins" rel="noopener noreferrer"&gt;plugin marketplace&lt;/a&gt;, shipped in phpboyscout-common 0.46.0, and the design's written up in &lt;a href="https://gitlab.com/phpboyscout/claude-code-plugins/-/wikis/specs/0001-a-timebox-with-a-wall-clock" rel="noopener noreferrer"&gt;spec 0001, a timebox with a wall clock&lt;/a&gt;. A skill on its own felt a bit thin, though. One that says "remember to run &lt;code&gt;date&lt;/code&gt;" is relying on the agent remembering, and forgetting the clock is the very thing I'm trying to fix. So it comes with a handful of Claude Code hooks that put the clock in front of the agent whether it thinks to look or not.&lt;/p&gt;

&lt;p&gt;It works like the exam hall, more or less.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The board.&lt;/strong&gt; You open a box with &lt;code&gt;/timebox 90m&lt;/code&gt;, or just by saying "timebox this to 90 minutes" in a prompt, and opening it reads the system clock and writes down the start, the length, the deadline, the floor and the question being answered. Everything after that comes off the clock.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The clock.&lt;/strong&gt; Every time I say something, and on the first tool call after the minute ticks over, a hook slips a line like this into the agent's context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Timebox: 23 of 90 minutes used, 67 left (floor at 72). Opened 14:03 UTC, deadline 15:33 UTC. Below the floor: keep widening the shortlist rather than finishing.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;No leaving early.&lt;/strong&gt; Try to stop below the floor (80% of the box, unless I say otherwise) and a Stop hook blocks it and tells it why. This one's the real thing, lifted from the first live run further down:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Timebox: 0 of 10 minutes used, floor at 8. You are stopping below the floor, and the floor exists so the work goes past its first conclusion. Keep going on breadth: generate more candidate answers, eliminate the weak ones with a line on why, and widen the shortlist. If there is a real reason to stop early (a decisive answer with every alternative eliminated, work blocked on a human, or a resource limit), record it with the timebox script's finish command, as the timebox skill describes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So there are three ways out early, and only three. A decisive answer has to come with a shortlist and a list of what got eliminated, with something in both, and if I've got a research panel set up it has to get past the panel as well. Being blocked on me pauses the box instead of ending it, so time spent waiting on me doesn't count against it. And a quota or a broken tool is the third.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pens down.&lt;/strong&gt; At the deadline the clock line changes its tune and tells the agent to stop widening and show me what it's got. Then after a grace of a fifth of the box (at least five minutes, at most fifteen) a hook starts refusing tool calls altogether, and keeps refusing until I reply. That's the overnight loop sorted.&lt;/p&gt;

&lt;p&gt;There was one nice wrinkle in the stop check. Each time the agent tries to stop, Claude Code runs the Stop hook and hands it a little bundle of JSON about the moment, and one of the fields in it is &lt;code&gt;stop_hook_active&lt;/code&gt;, a true-or-false flag that's true when the agent is only stopping again because a hook already sent it back once. My first thought was that this was the loop guard handed to me on a plate... and it nearly is, but once it turns true it stays true for the rest of that turn, so on its own it would hold the floor once per prompt and then give up.&lt;/p&gt;

&lt;p&gt;So &lt;a href="https://gitlab.com/phpboyscout/claude-code-plugins/-/blob/6218831a/plugins/phpboyscout-common/skills/timebox/scripts/lib/box.js#L169-186" rel="noopener noreferrer"&gt;the check&lt;/a&gt; pairs it with a count of the tool calls made since the last block. An agent that gets held and goes back to work will be held again the next time it tries to stop, but one that gets held and just tries to stop again without doing anything is let go, because holding it any longer is only going to loop. And five blocks on one box is the limit regardless.&lt;/p&gt;

&lt;p&gt;Before it merged I put the whole thing in front of a review panel of other agents, and the second review found a way out of the exam hall I hadn't thought of. You could slip past the ceiling by smuggling escaped quotes into a shell command dressed up as a harmless run of the timebox script. Agents finding a fire exit for agents! That one got bricked up, along with five others.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first sitting
&lt;/h2&gt;

&lt;p&gt;The first live run was a toy: a ten-minute box, opened from the prompt, with a question that needed nowhere near ten minutes. Suggest a name for a small command-line tool that tells you how long you've been working.&lt;/p&gt;

&lt;p&gt;About twenty seconds in, it stopped. It had five names, a favourite (&lt;code&gt;stint&lt;/code&gt;) and an argument that naming a small tool didn't need eight minutes... which is fair enough, and also more or less what most of the agents I've ever boxed have told me!&lt;/p&gt;

&lt;p&gt;The Stop hook held it, so it went back, came up with another eleven candidates and knocked most of them out with a line each (&lt;code&gt;uptime&lt;/code&gt; is already a system command, &lt;code&gt;shift&lt;/code&gt; collides with a shell builtin, &lt;code&gt;wip&lt;/code&gt; means work in progress to most developers). Then it tried to record a decisive finish, couldn't write the evidence file because I hadn't given it permission, and tried to stop anyway. Held again! So it recorded that it was blocked on me, which was the right call.&lt;/p&gt;

&lt;p&gt;Seventeen names weighed instead of five, and each time it checked, the status said "0 of 10 minutes used"... which was perfectly true. Not one whole minute had gone by. The whole run took forty-seven seconds.&lt;/p&gt;

&lt;p&gt;It still picked &lt;code&gt;stint&lt;/code&gt;, as it happens. A wider shortlist can land on the same answer, but at least this time the answer had beaten sixteen others to get there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the clock stops
&lt;/h2&gt;

&lt;p&gt;It's not perfect...&lt;/p&gt;

&lt;p&gt;The clock only moves when the agent does something. Claude Code doesn't have a timer hook (not one I could find, anyway), so the line updates on tool calls and turns, and an agent thinking for a long stretch without touching a tool won't see time pass until it does. On research work they're calling tools constantly, so I can live with that for now.&lt;/p&gt;

&lt;p&gt;Codex has no equivalent of these hooks at all, so under Codex the skill tells the agent to run the status command itself before each step and before stopping. That puts me straight back to relying on it remembering... better than nothing, but a long way short of a clock on the wall.&lt;/p&gt;

&lt;p&gt;The script can also only check that a reason was given, not that it's true. An agent that records "decisive" on a weak answer with a token list of eliminations will get through, so the note's there for me to read (and I do read it).&lt;/p&gt;

&lt;p&gt;Then the skill has a rule that probably matters more than any of the hooks: every duration in a report comes from the clock, never from feel.&lt;/p&gt;

&lt;p&gt;So the next spike report I get should open with the box as the clock saw it... how long it was, where the floor was, and how much of it got used. And if it still says "about fifty", at least there's a clock on the wall now to mark it against.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/why-cant-agents-tell-the-time/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 23 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
      <category>process</category>
    </item>
    <item>
      <title>The move that stopped everything at once</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:47:22 +0000</pubDate>
      <link>https://dev.to/phpboyscout/the-move-that-stopped-everything-at-once-4bj9</link>
      <guid>https://dev.to/phpboyscout/the-move-that-stopped-everything-at-once-4bj9</guid>
      <description>&lt;p&gt;My Claude sessions ran out of quota on the 5th of November, which left me with a quiet estate and nobody to talk to until it reset. So, naturally, I picked that moment to move house.&lt;/p&gt;

&lt;p&gt;All nineteen of my private projects went into a brand new GitLab group in one go. When the sessions came back the next morning, the first thing I typed to them was that the estate had shifted massively in the last 24 hours... "let me explain!"&lt;/p&gt;

&lt;h2&gt;
  
  
  Why move at all
&lt;/h2&gt;

&lt;p&gt;For years everything I've built has lived under one GitLab group, &lt;code&gt;phpboyscout&lt;/code&gt;, the open source stuff and the private stuff all mixed in together. It worked well enough, but it was getting a bit untidy, and I'd wanted a cleaner line between the two for a while.&lt;/p&gt;

&lt;p&gt;There was a more practical reason too. GitLab runs an &lt;a href="https://about.gitlab.com/solutions/open-source/" rel="noopener noreferrer"&gt;open source programme&lt;/a&gt; that hands open source projects its top tier for free, and the catch (a perfectly fair one) is that the namespace has to be open source through and through. My open source work could really use that kind of support... and the private projects were stood right in the way of it.&lt;/p&gt;

&lt;p&gt;So they got a new top-level group of their own, and the open source estate stayed where it was. All of it on bonfire night, which in hindsight feels about right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Picking moving day
&lt;/h2&gt;

&lt;p&gt;The timing was opportunistic, and kinda perfect. With the sessions all off the clock no work was half-finished, so no agent was going to have a repo vanish from under it halfway through a merge request. And it was only the private projects moving, so if it all went horribly wrong I was the only one who'd get hurt.&lt;/p&gt;

&lt;p&gt;I wasn't expecting it to go smoothly either. CI and hud (the dashboard I run the sessions from) had both been built on the assumption there'd only ever be one group, so I fully expected them to fall over. That was fine. The plan was to move everything, get the estate back on its feet, and let it sort out its own mess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unpacking the boxes
&lt;/h2&gt;

&lt;p&gt;Once I'd done the explaining, the first job I gave the sessions was a read-only audit of everything that had moved... look, but don't touch. Forty minutes later it landed, and it made grim reading. Nineteen projects: four red, fourteen not green since before the move, one with no CI at all, and not a single green pipeline between them since.&lt;/p&gt;

&lt;p&gt;Then I got into the detail, and it was a lot less grim than it looked. All of those failures were the same failure! Each job had sat in the queue for hours until GitLab gave up on it with &lt;code&gt;stuck_pending_no_matching_runners&lt;/code&gt;, which is GitLab's polite way of saying it waited and waited and no runner ever came along to collect it. Shared runners were switched off on all nineteen projects, and my own runners (the ones in my homelab) were registered to the old group. The new group had no runners of its own.&lt;/p&gt;

&lt;p&gt;So all the breakages I'd been bracing for (CI variables left behind in the old group, cloud trust policies still pointing at the old paths, tokens that only knew the old address) hadn't happened yet. They were stood in the queue behind a missing runner, patiently waiting their turn to fail. My gut says that if the runners had come across cleanly I'd have spent that morning on a dozen different fires... instead I had one, with a dozen more lined up behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The box with the kettle in it
&lt;/h2&gt;

&lt;p&gt;Anyone who's moved house knows to find the kettle first, before the bed, before the curtains, before the box marked "kitchen misc". Without a brew you're not unpacking anything. The runners were my kettle.&lt;/p&gt;

&lt;p&gt;A runner registers to one group, so serving two means a second runner entry on each machine. We settled on one for all of them, the kids' Windows PCs included (they're the estate's Windows build farm, whether the kids like it or not), and split the capacity between the open source side and the private one. The main runner went first and the kids' PCs were left for the next day. Once jobs could start, the failures the audit had predicted came out of their boxes right on cue, and we worked down the snag list: credentials recreated for the new group, the infrastructure re-applied with the new paths in its trust policies, and Renovate handed over to the handyman (the session that does the estate's odd jobs).&lt;/p&gt;

&lt;p&gt;The blog was one of the first back on its feet, and it was the daftest mess of the lot. Twelve announcement pipelines had stacked up in its queue, each one primed to fire off social posts the moment a runner appeared... some of them for a post that hadn't even been deployed yet! We cancelled the lot, ran one deploy and one sweep by hand, and let the next hourly run carry on from there. Green by 07:28.&lt;/p&gt;

&lt;h2&gt;
  
  
  Broken, and keeping quiet about it
&lt;/h2&gt;

&lt;p&gt;While all that was going on, a few things had been broken for hours without a single pipeline going red to tell me.&lt;/p&gt;

&lt;p&gt;My release artifacts are signed, and the index tools use to find them carries an expiry date, so a stale copy gets refused instead of trusted. A pipeline keeps renewing it. No runners, no renewal... and at 06:08 that morning, nine minutes after I'd typed "we are back", it expired. From then on anything reading it through &lt;a href="https://artifacts.go.phpboyscout.uk/" rel="noopener noreferrer"&gt;go/artifacts&lt;/a&gt; would refuse it outright. Renovate had gone quiet too, and not only for the private projects: the bot itself lives in a project that moved, so the open source estate lost its dependency updates as well. And hud, bless it, had gone completely blind to everything that moved, since the webhooks it listens for were only ever set up on the old group.&lt;/p&gt;

&lt;p&gt;Written down, it sounds a lot scarier than it was. I'm prolific with projects, but as far as I know not many people are depending on them yet (and I'm fine with that), which gives me room for a day like this. It was all put right fairly quickly. I'll be eyeing an all-green dashboard a little more suspiciously for a while, though.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the lights on, tidy later
&lt;/h2&gt;

&lt;p&gt;The whole day was planned around one idea: get the estate running again first, because a running estate can organise its own repairs a lot faster than I can by hand. Anything that could wait, waited. When splitting up some shared credentials came up mid-morning, I told the coordinating session that today was about getting the estate operational again, and it went on a ticket as a future me problem.&lt;/p&gt;

&lt;p&gt;It wasn't all tidy. By mid-afternoon the sessions were throwing questions at me faster than I could read them (which is why I built hud in the first place), so once things were building I paused the lot, closed them down, and brought them all back up under hud with their new scopes and tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Would I do it again?
&lt;/h2&gt;

&lt;p&gt;Maybe. With an agent alongside me it was massively quicker and smoother than doing it by hand would ever have been, and starting with the audit meant the runners got fixed first instead of me chasing nineteen separate failures round the houses. The quota wall made the timing hard to resist as well.&lt;/p&gt;

&lt;p&gt;But it was a gamble I could only take because I was the only person exposed. If I ever do anything like it again it gets a proper risk assessment first, so I don't come a cropper on whatever I didn't think of. Hopefully it won't come to that... but if it does, at least I know which box the kettle's in.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/the-move-that-stopped-everything-at-once/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 21 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>cicd</category>
      <category>gitlab</category>
      <category>ci</category>
    </item>
    <item>
      <title>Stop regex-ing the LLM's prose</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Sat, 21 Nov 2026 02:43:16 +0000</pubDate>
      <link>https://dev.to/phpboyscout/stop-regex-ing-the-llms-prose-53go</link>
      <guid>https://dev.to/phpboyscout/stop-regex-ing-the-llms-prose-53go</guid>
      <description>&lt;p&gt;Ask an LLM a question and it hands you back prose. Lovely to read, miserable to program against. You wanted the one number buried in the middle of it, and now you're writing a regular expression to fish a word out of three well-written paragraphs that phrase themselves slightly differently every single time you run them.&lt;/p&gt;

&lt;p&gt;There's a much better way, and it's the difference between forever interpreting an LLM and actually building on one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with a paragraph
&lt;/h2&gt;

&lt;p&gt;You ask an LLM to analyse a log file and tell you the severity of what it found and a suggested fix. It comes back with three well-written paragraphs. Somewhere in there is the word "critical", and somewhere is the fix.&lt;/p&gt;

&lt;p&gt;Your program now has to &lt;em&gt;extract&lt;/em&gt; those two facts from prose, and prose has no contract. The next run, the model phrases it differently. It leads with a caveat. It says "severe" where last time it said "critical". It puts the fix first. Anything that worked by finding "critical" in the text is now quietly wrong, and you didn't change a line. Parsing free text for structured facts is a game you lose slowly.&lt;/p&gt;

&lt;p&gt;What you actually wanted was never a paragraph. It was a value: a thing with a &lt;code&gt;severity&lt;/code&gt; field and a &lt;code&gt;fix&lt;/code&gt; field, that you can branch on and store and pass around like any other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask for the struct, not the prose
&lt;/h2&gt;

&lt;p&gt;go-tool-base's &lt;code&gt;chat&lt;/code&gt; package draws the line with two methods. &lt;code&gt;Chat&lt;/code&gt; gives you text. &lt;code&gt;Ask&lt;/code&gt; gives you a struct.&lt;/p&gt;

&lt;p&gt;You define the Go type you want back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Analysis&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Severity&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="sb"&gt;`json:"severity"`&lt;/span&gt;
    &lt;span class="nc"&gt;Fix&lt;/span&gt;      &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="sb"&gt;`json:"fix"`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="nc"&gt;Analysis&lt;/span&gt;
&lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Analyse this log file: "&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;logText&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The framework generates a JSON Schema from that struct, sends it to the model as the required response format, and unmarshals the reply straight into &lt;code&gt;result&lt;/code&gt;. You never lay a finger on the prose. You get &lt;code&gt;result.Severity&lt;/code&gt; and &lt;code&gt;result.Fix&lt;/code&gt;, typed, ready to use. If you want the model's answer to drive a &lt;code&gt;switch&lt;/code&gt; statement, this is the method that lets it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The struct is the schema is the contract
&lt;/h2&gt;

&lt;p&gt;The detail that makes this hold up over time: you don't write the schema. The struct &lt;em&gt;is&lt;/em&gt; the schema.&lt;/p&gt;

&lt;p&gt;The framework derives the JSON Schema from your type. In go-tool-base that's &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/blob/5c78fc9/pkg/chat/schema.go#L11" rel="noopener noreferrer"&gt;&lt;code&gt;GenerateSchema[T]()&lt;/code&gt;&lt;/a&gt;; in rust-tool-base the schema comes from your Rust type through &lt;a href="https://gitlab.com/phpboyscout/rust-tool-base/-/blob/9c22aa8/crates/rtb-ai/src/client.rs#L208" rel="noopener noreferrer"&gt;&lt;code&gt;schemars&lt;/code&gt;&lt;/a&gt;. (Yes, there's a Rust sibling now. I'll &lt;a href="https://phpboyscout.uk/rust-tool-base-the-same-idea/" rel="noopener noreferrer"&gt;introduce it properly&lt;/a&gt; in a few weeks, but it keeps gatecrashing these posts because the two frameworks deliberately share ideas.) Either way there's one definition, your type, and the schema is just a projection of it.&lt;/p&gt;

&lt;p&gt;That matters, because otherwise two things have to agree. There's the schema you tell the model to obey, and there's the type you unmarshal the answer into. Hand-write the schema and those two can drift: add a field to the struct, forget to add it to the schema, and the model is never told to produce it, so it silently never appears. Deriving the schema from the type collapses the two into one. They can't disagree, because there's only one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Both frameworks, with one extra step in Rust
&lt;/h2&gt;

&lt;p&gt;go-tool-base does this with &lt;code&gt;Ask&lt;/code&gt; and a &lt;code&gt;ResponseSchema&lt;/code&gt; set on the client config. rust-tool-base does it with &lt;code&gt;chat_structured::&amp;lt;T&amp;gt;&lt;/code&gt;, where &lt;code&gt;T&lt;/code&gt; is any type that's both deserialisable and &lt;code&gt;JsonSchema&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;rust-tool-base adds one step worth calling out. Before it deserialises the model's reply into your &lt;code&gt;T&lt;/code&gt;, it &lt;em&gt;validates&lt;/em&gt; the raw response against the schema with a JSON Schema validator. That splits the failure into two distinct, named cases: the response didn't match the schema, or it matched the schema but still wouldn't deserialise. A model that returns subtly wrong JSON fails loudly and specifically, with an error that tells you which of those happened, instead of quietly handing you a zero-valued struct that you end up debugging an hour later.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you'd reach for it
&lt;/h2&gt;

&lt;p&gt;The line is simple, and it's about who reads the answer.&lt;/p&gt;

&lt;p&gt;If a &lt;em&gt;human&lt;/em&gt; reads the answer, prose is right. &lt;code&gt;Chat&lt;/code&gt;, free text, let the model write well. A summary, an explanation, an interactive reply: leave all of those as prose.&lt;/p&gt;

&lt;p&gt;If a &lt;em&gt;program&lt;/em&gt; consumes the answer, you want a value. Classification, extraction, a code review scored out of a hundred with a list of issues, a yes-or-no with reasons: anything where the next thing that happens is your code branching on the result. There, &lt;code&gt;Ask&lt;/code&gt; and &lt;code&gt;chat_structured&lt;/code&gt; turn the LLM from something you have to interpret into something that returns a value, and a typed value is a thing you can actually build on.&lt;/p&gt;

&lt;h2&gt;
  
  
  To sum up
&lt;/h2&gt;

&lt;p&gt;An LLM returns prose by default, and prose has no contract, so a program that picks structured facts out of it breaks the moment the model rephrases.&lt;/p&gt;

&lt;p&gt;Structured output asks for the value instead. You define a struct, the framework derives a JSON Schema from it, the model is constrained to that shape, and you get a typed result. go-tool-base's &lt;code&gt;Ask&lt;/code&gt; and rust-tool-base's &lt;code&gt;chat_structured&lt;/code&gt; both work this way, with the schema derived from your type so the schema and the type can't drift; rust-tool-base additionally validates the response against the schema before deserialising. Use it whenever the answer feeds code rather than a human. It's one of the four methods that make up &lt;a href="https://phpboyscout.uk/an-ai-interface-that-fits-on-one-screen/" rel="noopener noreferrer"&gt;go-tool-base's small chat interface&lt;/a&gt;, and it's the one that makes an LLM safe to program against.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/stop-regexing-the-llms-prose/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 31 March 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>go</category>
      <category>gotoolbase</category>
      <category>rusttoolbase</category>
    </item>
    <item>
      <title>The core goes first</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Tue, 17 Nov 2026 02:44:52 +0000</pubDate>
      <link>https://dev.to/phpboyscout/the-core-goes-first-59kg</link>
      <guid>https://dev.to/phpboyscout/the-core-goes-first-59kg</guid>
      <description>&lt;p&gt;Most of the estate's Go modules come in families. Each has a core, &lt;code&gt;go/chat&lt;/code&gt; or &lt;code&gt;go/config&lt;/code&gt; or &lt;code&gt;go/forge&lt;/code&gt;, and a ring of adapters around it, one per provider or backend, each requiring the core. So there's a right order to release them in, and it's fairly obvious: the core goes first, then each adapter picks up the new core and releases against it.&lt;/p&gt;

&lt;p&gt;I've known that for as long as the families have existed, which made it all the more irritating when twenty-three config adapters went out in the wrong order, all at once, and took thirty-nine second releases to put right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Carriages without an engine
&lt;/h2&gt;

&lt;p&gt;What happened was dull, and blindingly obvious in hindsight. &lt;code&gt;go/config&lt;/code&gt; v0.17.3 went out, and all twenty-three &lt;code&gt;config-*&lt;/code&gt; adapters then tagged releases still requiring v0.17.2, because their release merge requests had been open, perfectly green, since before the core moved. Each one shipped against a core that had already left the station, so each one needed another release the moment I noticed.&lt;/p&gt;

&lt;p&gt;It's a train pulling out without its engine. The carriages are fine on their own, they're just not going anywhere useful, and someone (me) has to go back and fetch them.&lt;/p&gt;

&lt;p&gt;It happened again in a smaller way while I was writing the spec for the fix. &lt;code&gt;go/chat&lt;/code&gt; v0.31.0 was tagged one morning, and forty minutes later four chat adapters had release merge requests open and mergeable... still requiring v0.30.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  A check on the platform
&lt;/h2&gt;

&lt;p&gt;The releases go out through &lt;a href="https://colophon.phpboyscout.uk/" rel="noopener noreferrer"&gt;colophon&lt;/a&gt;, which opens a release merge request and tags when I merge it. It has no hook that runs before a release, so the only place to catch a stale core is the release merge request itself, as an ordinary pipeline job. And I didn't want it inside colophon either. It's a Go dependency rule specific to how this estate is laid out, and baking it into the release tool would have handed any outside user of colophon a default that pointed at my family list and decided what a correct release meant for &lt;em&gt;their&lt;/em&gt; modules. So it's a component of its own in &lt;a href="https://cicd.phpboyscout.uk/" rel="noopener noreferrer"&gt;cicd&lt;/a&gt;, &lt;a href="https://cicd.phpboyscout.uk/reference/go/go-core-currency/" rel="noopener noreferrer"&gt;&lt;code&gt;go-core-currency&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;(The agent working on the code came up with the name, and it threw me at first. I was left scratching my head, thinking "money... concurrency???", and shrugged. It was only when I asked the agent what it meant that I got the explanation: "currency" in the sense of being current, as in the currency of a document. I could have swapped it for something blunter, but once I understood it, it made total sense and I kept it.)&lt;/p&gt;

&lt;p&gt;It needs to know which modules are cores, and that question turned into something bigger than the guard: the family list started out in a private file and is now part of the estate's public feed at &lt;a href="https://phpboyscout.uk/projects.json" rel="noopener noreferrer"&gt;&lt;code&gt;phpboyscout.uk/projects.json&lt;/code&gt;&lt;/a&gt;. Membership, though, comes from each module's &lt;code&gt;go.mod&lt;/code&gt; and not from the list. On the day the spec was written, three chat adapters were missing from the list, and a guard that trusted it would have waved all three through.&lt;/p&gt;

&lt;p&gt;I asked for a red pipeline, and what shipped is yellow: a stale core is reported as an allowed failure, and a single setting turns it into a hard block once it's proved itself for a week. A guard that goes red by mistake across a whole family's releases is one I'd end up switching off myself, so I'm inclined to give it that week to show it can be trusted first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Asking what "latest" means
&lt;/h2&gt;

&lt;p&gt;All of that depends on knowing a module's latest release.&lt;/p&gt;

&lt;p&gt;The spec's first guess was that the Go module proxy might lag a fresh tag by a few minutes, so the worst case was a guard that missed a brand new release briefly and stayed green. Then I measured it on a real release, and "a few minutes" was wrong by a couple of orders of magnitude. &lt;code&gt;go/chat&lt;/code&gt; v0.32.0 was tagged at 19:57 one evening, and the proxy's index first saw it at 07:42 the next morning. Nearly twelve hours! And only because it was asked for by hand, since the proxy learns about a version when something requests it, and nothing had. Then, once it did know, its cached &lt;code&gt;@latest&lt;/code&gt; carried on answering v0.31.0 for the best part of an hour.&lt;/p&gt;

&lt;p&gt;I'd been grumbling for months that the proxy felt slow, and it has a nasty edge as well: ask for a version before the proxy can serve it and you make things worse. &lt;a href="https://proxy.golang.org/" rel="noopener noreferrer"&gt;The proxy's own FAQ&lt;/a&gt; says as much, that if someone requested a version before the tag was pushed, it may take up to thirty minutes for the cache to expire.&lt;/p&gt;

&lt;p&gt;So the fix comes in two parts. Colophon now tells the proxy about each new tag itself, with one request per tag, after a short pause, so it doesn't ask before the forge can show the tag. And the guard doesn't rely on &lt;code&gt;@latest&lt;/code&gt; alone any more. It asks &lt;a href="https://go.dev/blog/pkgsite-api" rel="noopener noreferrer"&gt;pkg.go.dev's module API&lt;/a&gt;, which the Go team announced back in May, and takes the higher of the two answers. This is the start of how it &lt;a href="https://gitlab.com/phpboyscout/cicd/-/blob/54b01a6/templates/go-core-currency.yml#L199-235" rel="noopener noreferrer"&gt;finds a latest version&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;candidates&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;misses&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="n"&gt;sources&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"proxy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{PROXY}/{proxy_path(module)}/@latest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;PKGSITE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;sources&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"pkg.go.dev"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{PKGSITE}/v1/module/{module}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both only report versions the proxy can serve, so the guard still can't invent a release.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rename that answered with someone else's name
&lt;/h2&gt;

&lt;p&gt;There was one more trap, and it arrived with the &lt;code&gt;go/chat-platform&lt;/code&gt; family being renamed to &lt;code&gt;go/comms&lt;/code&gt;. Ask the proxy for the latest &lt;code&gt;go/chat-platform&lt;/code&gt; today and it happily answers with a version whose own &lt;code&gt;go.mod&lt;/code&gt; says it's &lt;code&gt;go/comms&lt;/code&gt;. Take that answer at face value and you'd tell an adapter to bump to a version that doesn't resolve under the name it requires.&lt;/p&gt;

&lt;p&gt;So a candidate version only counts if its &lt;code&gt;go.mod&lt;/code&gt; still declares the module that was asked about. Anything else means the module moved, and that gets reported as a move, naming where it went, and not as stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first proper look
&lt;/h2&gt;

&lt;p&gt;Once it was in, I had it run across every open release merge request in the estate to see how far things had drifted. Sixty-eight of them ran the job. Fifty-nine were current and nine were behind, and ten of the eleven stale core requirements were &lt;code&gt;go/chat&lt;/code&gt;, which had released twice in a single day. The furthest behind was go-tool-base's own CLI, eight chat releases adrift (a tad embarrassing, in my own framework). The guard also checks other first-party modules now, though only as a warning, since a stale leaf is far more often a deliberate pin than a stale core is.&lt;/p&gt;

&lt;p&gt;It all went yellow, which was the plan, and it runs on every release merge request in the estate now. Once it's had its week I'll flip that setting, and a train with no engine won't get out of the station at all.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/the-core-goes-first/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 17 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>cicd</category>
      <category>releases</category>
      <category>modules</category>
    </item>
    <item>
      <title>The protection I switched off to make CI pass</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Sun, 15 Nov 2026 10:39:59 +0000</pubDate>
      <link>https://dev.to/phpboyscout/the-protection-i-switched-off-to-make-ci-pass-4j59</link>
      <guid>https://dev.to/phpboyscout/the-protection-i-switched-off-to-make-ci-pass-4j59</guid>
      <description>&lt;p&gt;On the morning of 15 October an email landed from Google about a data export I hadn't asked for, and in roughly the time it takes to read a subject line I'd decided my eldest son's PC was compromised heavily and needed writing off.&lt;/p&gt;

&lt;p&gt;It wasn't. The PC I should have been worrying about was his little brother's, and I found that out in the afternoon, about five minutes after I'd switched off a good half of what was standing between it and the malware.&lt;/p&gt;

&lt;h2&gt;
  
  
  The morning I wrote off the wrong PC
&lt;/h2&gt;

&lt;p&gt;Some context first. My CI runs on the family's computers these days. The cloud runners went in September on cost, so the GitLab runners (the machines that pick up a pipeline's jobs and run them) now borrow my youngest's gaming PC while he's at school, and my eldest's while he's at work. My eldest's has a decent GPU in it too, and with his blessing I'd been borrowing that for some inference testing on &lt;a href="https://chat.go.phpboyscout.uk/" rel="noopener noreferrer"&gt;go/chat-vllm&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So when the email came, I didn't hang about. The session looking after his machine locked it down and told the rest of the estate to distrust anything claiming to come from it. I changed my Google password before anyone had found a cause.&lt;/p&gt;

&lt;p&gt;Ten minutes in, the penny dropped, and what I typed to the session was &lt;em&gt;"I just realised what it was! it was edge importing settings from google"&lt;/em&gt;. To borrow capacity on his machine I'd set up a user profile of my own, and Edge on a brand new profile very helpfully offers to pull your settings in from Google. Google, equally helpfully, emails you about it. Nothing had been compromised except my composure, and a Google password I'd changed for no reason at all.&lt;/p&gt;

&lt;p&gt;My eldest shrugged when he heard. His PC was fine and he knew it was fine (he's been through an infection before, years ago, and he's a lot more savvy for it). The paranoia was all mine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sending the bouncer home
&lt;/h2&gt;

&lt;p&gt;That afternoon was spent on the other PC, my youngest's, which had just been given the same runner hardening as his brother's. The runner had been running as Windows' all-powerful system account, with folder permissions loose enough that any user could read its registration token, so it moved to a hidden account with no admin rights and the folders got locked down. Very responsible. Then I pointed a Windows test job for &lt;a href="https://mcp.go.phpboyscout.uk/" rel="noopener noreferrer"&gt;go/mcp&lt;/a&gt; at it, and &lt;a href="https://gitlab.com/phpboyscout/go/mcp/-/jobs/17203761717" rel="noopener noreferrer"&gt;it fell over&lt;/a&gt; inside a minute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;An Application Control policy has blocked this file.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's Smart App Control talking. If you've not met it (I'd barely met it myself, having run Linux as my main OS since 1997 and only touched Windows or a Mac when there was no other choice), it's a Windows 11 feature that acts like a bouncer on the door. Each program gets checked as it starts: is it signed, and does Microsoft's cloud reputation service know it? No ID and no reputation, and you're not getting in. That's lovely for a games PC and a real problem for Go, since &lt;code&gt;go test&lt;/code&gt; compiles a brand new, unsigned binary for each package it tests, on each run. They all turn up at the door with no ID.&lt;/p&gt;

&lt;p&gt;My first call, relayed through the session that runs the estate, was to keep SAC on and add an allow rule for just the runner's build folders. The PC's own session went and checked the logs, came back and said that wouldn't work. SAC itself was the blocker, and SAC doesn't take extra allow rules. It laid out the options, recommended keeping SAC on and pausing that runner, and pointed out (as had the estate session, a few minutes earlier) that switching SAC off was a one-way trip. It could only come back with a Windows reset.&lt;/p&gt;

&lt;p&gt;Confession time... I didn't really read that part. I read "the runner works straight away", told it to turn Smart App Control off and re-run the job, and two minutes later the job was green!&lt;/p&gt;

&lt;h2&gt;
  
  
  Who he'd been turning away
&lt;/h2&gt;

&lt;p&gt;Feeling pleased with myself, I asked the same session for a quick report-only sweep of my youngest's installed programs for adware, the sort of junk that piles up on any teenager's PC. A minute and a half later the first thing it reported back was that two scheduled tasks looked like malware hiding behind signed programs, &lt;em&gt;"and Smart App Control was blocking them until I turned it off."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It was worse than that, once it had finished looking.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A fake copy of a real app&lt;/strong&gt;, sitting in his user folder. The program itself was the genuine signed article, wrapped around a malicious script that ran whenever he logged in, and that class of script exists to lift saved browser passwords and game and chat logins. It had probably been running since the summer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two hidden scheduled tasks&lt;/strong&gt;, each launching a properly signed program from a system folder with a planted DLL sitting beside it. That's DLL side-loading (worth a search if it's new to you): Windows loads the DLL it finds next to the program, the program is legitimate, and the code that actually runs is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where the bouncer gets complicated, as he'd only been doing half the job. The side-loading kit had been bounced off the door for months. The password stealer had sailed straight past him. It turned up inside a signed app with perfectly good ID, and a bouncer checking IDs can't do much about that. Defender only flagged it once the sweep went looking.&lt;/p&gt;

&lt;p&gt;How it got there in the first place, I've no idea. He's had a lot of freedom with that PC since it arrived at Christmas, and my suspicion is that it got on there the way it gets onto most teenage lads' machines: something downloaded that promised a cheat for a game and brought some friends along with it. He received the news with the incredulity of someone denying all knowledge while silently admitting guilt... a technique I can respect, as a parent.&lt;/p&gt;

&lt;h2&gt;
  
  
  He wouldn't come back
&lt;/h2&gt;

&lt;p&gt;The clean-up itself was fairly mechanical. An offline Defender scan, a full scan, and all the folders, tasks and installers belonging to the infection removed, and backups of it all kept until the end. Then I wanted my bouncer back.&lt;/p&gt;

&lt;p&gt;Straight after the sweep, the session had flipped SAC back "on" in the registry, and Windows duly reported it as on and enforcing. It also let a fresh unsigned test program run straight through with nothing logged, before and after a reboot. The session's own word for it was "a label". Its suggestion was that I go to the PC and use the real switch in Windows Security, turning it off and back on again if it already said on.&lt;/p&gt;

&lt;p&gt;So up the stairs I went. I switched it off. It would not switch back on, and what I sent back from his room was &lt;em&gt;"I switched it off, now it wont let me switch it back on"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;To its credit the session owned that one straight away: switching it off and on had been its idea, and the "on" I'd turned off had never been protecting anything. When I asked whether this was a limitation or some strange security feature, it explained the logic, and I think the logic is sound. SAC only checks programs as they start. It doesn't go looking for what's already installed. So if you could turn it off, install whatever you like, and turn it back on again, it would happily say "On" while something already settled in carried on running inside a hijacked signed program. Better to insist on a clean slate than give you a false sense of safety.&lt;/p&gt;

&lt;p&gt;That was the rule for a long time. Except it's no longer the rule, or isn't meant to be. Microsoft's own page on &lt;a href="https://support.microsoft.com/en-us/topic/what-is-smart-app-control-285ea03d-fa88-4d56-882e-6698afdb7003" rel="noopener noreferrer"&gt;what Smart App Control is&lt;/a&gt; now says recent updates let you switch it back on without a reinstall, and the press dates that to &lt;a href="https://www.bleepingcomputer.com/news/microsoft/windows-11-cumulative-updates-kb5083769-and-kb5082052-released/" rel="noopener noreferrer"&gt;the April 2026 cumulative update&lt;/a&gt;. My youngest's PC was well past that. The session had even said as much before I went upstairs, which is why it thought the switch was worth a try.&lt;/p&gt;

&lt;p&gt;So the warning I skipped was out of date, and on that PC it came true anyway. Maybe the registry fiddling left SAC in a state the switch couldn't climb out of. Maybe it was one of the cases Microsoft still excludes, like a PC with optional diagnostic data switched off (I don't think it was, but I wouldn't swear to it). Maybe the change simply hadn't reached that machine yet. I can't tell you, and now I never will...&lt;/p&gt;

&lt;h2&gt;
  
  
  Flattening it anyway
&lt;/h2&gt;

&lt;p&gt;Getting the bouncer back was only part of it, though. A password stealer had been running on that machine since the summer, and with my history on Windows I wasn't going to trust it again until it had been flattened and rebuilt from nothing, just in case something insidious had been missed.&lt;/p&gt;

&lt;p&gt;The session found what was worth keeping (about 165 MB of game saves and his bookmarks, everything else already in his OneDrive), zipped it up and put it in my OneDrive. It took the runner offline for good, and recommended a cloud download over a local reinstall so nothing from the old install got reused. It also warned me, quite reasonably, that its own notes about both PCs lived on that disk and would go with the wipe. Its transcript survived, as it happens, since I'd been driving the whole thing from the Mac downstairs.&lt;/p&gt;

&lt;p&gt;The last thing I typed before the reset was &lt;em&gt;"reset starting now, see you on the other side"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;And then the passwords. Everything used on the old install went: Steam and the other gaming logins, his Microsoft and Google accounts, Snapchat, the whole lot. It was not a fun afternoon, sitting my son down to change them all, and I even had to change a few of my own, Google included. That made two resets on one account in one day, the morning's in a panic and the afternoon's for real, which is a special kind of fun. All very promptly, too... a stealer that's been running since the summer has had plenty of time to post what it found.&lt;/p&gt;

&lt;h2&gt;
  
  
  A bouncer on a trial shift
&lt;/h2&gt;

&lt;p&gt;The PC came back two days later, and it came back different.&lt;/p&gt;

&lt;p&gt;I'm liberal by nature. I'd rather both boys had admin rights on their own PCs, and they did until that week. But once you've been burned you take measures to make sure it doesn't happen again, so my youngest, who's just turned 16, is now a standard user. He's accepted that what he did caused a fair bit of consternation and let malware onto my home network (thankfully kept to his PC), and with my runners borrowing that machine on school days, I have to be able to vouch for the network. He hasn't complained once since, which probably tells you all you need to know about how that conversation went.&lt;/p&gt;

&lt;p&gt;Smart App Control is back as well, in its evaluation mode for now: a bouncer on a trial shift, watching the door to decide whether he can stay. Memory integrity is on, the DNS filters out known malware domains, and Defender has the same tighter settings as his brother's PC, which had its own hardening pass that evening and its first-ever full scan (clean, of course). The runner work mostly moved somewhere SAC has no say over, a Linux container runner inside its own WSL2 distro, under its own account and capped at 12 GB and four cores. Go test binaries are Linux binaries in there, so as far as I can tell the bouncer at the Windows door never has to look at them.&lt;/p&gt;

&lt;p&gt;Would I borrow my kids' PCs for CI again? I still am, every week. Each machine has a session attached to it that keeps it patched and tidy and switches the runners on and off when I need them, and my eldest was quite pleased that his came out of all this with its storage rearranged and a bit quicker for it. Best of all, I can look after both PCs without setting foot in either bedroom, and if you've ever met a teenage boy's bedroom you'll know that's the one door I'm happy to leave to someone else.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/the-protection-i-switched-off-to-make-ci-pass/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 15 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>security</category>
      <category>devops</category>
      <category>cicd</category>
    </item>
    <item>
      <title>Wire it, don't configure it</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Sat, 14 Nov 2026 02:45:29 +0000</pubDate>
      <link>https://dev.to/phpboyscout/wire-it-dont-configure-it-10i6</link>
      <guid>https://dev.to/phpboyscout/wire-it-dont-configure-it-10i6</guid>
      <description>&lt;p&gt;Where does a tool's configuration live? For a tool generated by &lt;a href="https://gtb.phpboyscout.uk/" rel="noopener noreferrer"&gt;go-tool-base&lt;/a&gt; it's always been a file you point it at with &lt;code&gt;--config&lt;/code&gt;, and for plenty of tools that's all they'll ever need. But configuration has a habit of getting more involved depending on where a thing is run. One team keeps shared settings in Consul, another keeps secrets in Vault, a third has everything in AWS Parameter Store, and some platform or other drops a &lt;code&gt;.env&lt;/code&gt; file in &lt;code&gt;/etc&lt;/code&gt; and expects you to read it.&lt;/p&gt;

&lt;p&gt;The estate has adapters for all of that, twenty-six of them in the &lt;a href="https://config.go.phpboyscout.uk/" rel="noopener noreferrer"&gt;go/config&lt;/a&gt; family (it's a big family). And until recently a generated project couldn't reach any of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two awkward facts
&lt;/h2&gt;

&lt;p&gt;When I came to bring them into the generator, the brief I gave the session was to work out how the adapters would manifest in a generated project "safely and most importantly securely". Two facts got in the way, and the spec (&lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/wikis/specs/0204-the-config-stack-a-project-declares-and-orders" rel="noopener noreferrer"&gt;0204&lt;/a&gt;) put them plainly.&lt;/p&gt;

&lt;p&gt;The first is that most of these adapters need a client the framework can't build for you. A chat provider is a blank import and a name in config. An S3 config store is a blank import and &lt;em&gt;an authenticated client&lt;/em&gt;, with a region, a profile, a credential chain and all the baggage that comes with it.&lt;/p&gt;

&lt;p&gt;The second is what worried me. A config source is itself configured, and whatever says where Consul lives can't come from Consul. Those pointers are every bit as sensitive as a token. A repository that sets &lt;code&gt;config.sources.consul.address&lt;/code&gt; redirects all the keys the tool reads after that, not just one of them!&lt;/p&gt;

&lt;h2&gt;
  
  
  The stub I nearly shipped
&lt;/h2&gt;

&lt;p&gt;The first version of the design, which I approved, had the generator write a little stub for each source, a file in the generated project with a comment along the lines of &lt;code&gt;// TODO: build your Vault client here&lt;/code&gt; for the author to fill in. It's a common enough shape for a generator, and it seemed perfectly reasonable at the time.&lt;/p&gt;

&lt;p&gt;Before building it I wanted a design document tracing how configuration would flow through a generated tool, and where it touched generated code. That paid for itself almost straight away... it showed the stub couldn't work: a file the generator owns is rewritten on every regenerate, a file the author owns has their code in it, and one file can't be both.&lt;/p&gt;

&lt;p&gt;The obvious repair was to split it, a generated file plus some seeded files the author owned. I went the other way. The generator does the wiring, and the user &lt;em&gt;must&lt;/em&gt; run an init command to fill in the config for each source they've enabled. The generator generates the dependencies and the wiring, the user configures it separately, and the connection details come out of the project's manifest altogether.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-wired for a tow bar
&lt;/h2&gt;

&lt;p&gt;You know how a new car can come pre-wired for a tow bar? The factory runs the loom and fits the socket, so the car's ready to tow, but what you hitch to it (a caravan, a bike rack, your neighbour's trailer) is your business, and the factory doesn't need to know.&lt;/p&gt;

&lt;p&gt;That's the split now. The author decides what the tool &lt;em&gt;can&lt;/em&gt; read. The generator turns that into a file of blank imports, generated and never edited, which links the code for each kind of source it declares. This is all of it for a tool declaring a Consul slot, a Vault slot and two fixed files, reading TOML as well as YAML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Code generated by gtb. DO NOT EDIT.&lt;/span&gt;

&lt;span class="c1"&gt;// Links the config formats this tool reads beyond YAML and the config&lt;/span&gt;
&lt;span class="c1"&gt;// source kinds it declares, one per line. Generated from properties.config.formats&lt;/span&gt;
&lt;span class="c1"&gt;// and properties.config.sources in .gtb/manifest.yaml; change those and regenerate.&lt;/span&gt;
&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="s2"&gt;"gitlab.com/phpboyscout/go-tool-base/pkg/config/formats/toml"&lt;/span&gt;
    &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="s2"&gt;"gitlab.com/phpboyscout/go-tool-base/pkg/config/sources/consul"&lt;/span&gt;
    &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="s2"&gt;"gitlab.com/phpboyscout/go-tool-base/pkg/config/sources/file"&lt;/span&gt;
    &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="s2"&gt;"gitlab.com/phpboyscout/go-tool-base/pkg/config/sources/vault"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alongside it the root command declares each source as a named slot with its place in the order of precedence (defaults lowest, flags highest, the sources in between), which I was insistent on: the author has to be able to say which source wins.&lt;/p&gt;

&lt;p&gt;Each &lt;em&gt;user&lt;/em&gt; then decides where a source connects. For each declared slot the tool grows a command, &lt;code&gt;&amp;lt;tool&amp;gt; init config &amp;lt;name&amp;gt;&lt;/code&gt;, that asks for that slot's settings and writes them into the user's own config file under &lt;code&gt;config.sources.&amp;lt;name&amp;gt;&lt;/code&gt;. For a Vault slot that's an address, a mount and a path, and the token comes from the usual places. Run the tool before you've configured a required slot and it tells you what to do about it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR failed to load configuration: "team" (consul): config source not configured
  hints="run `moo init config team`, or set config.sources.team in your config file or the tool's defaults"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(The original name was &lt;code&gt;init source &amp;lt;name&amp;gt;&lt;/code&gt;, which I changed on sight. "Source" was the spec's word for a slot, and it means very little to someone reading &lt;code&gt;--help&lt;/code&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  A clone can't rewire the car
&lt;/h2&gt;

&lt;p&gt;Then there's the second awkward fact. A project-local config file, the kind that lives in a repository you've cloned, can't set &lt;code&gt;config.sources&lt;/code&gt; any more, and that holds even when you've explicitly trusted the project. It's the only key in the tool where trust doesn't help. In the &lt;a href="https://gitlab.com/phpboyscout/go-tool-base/-/blob/9fe7de85/pkg/cmd/root/project_trust.go#L181-183" rel="noopener noreferrer"&gt;code&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c1"&gt;// configSourcesKey is the subtree that says where configuration comes from&lt;/span&gt;
&lt;span class="c1"&gt;// (spec 0204 D5). A project file may never set it, trusted or not.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;configSourcesKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"config.sources"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The test that holds it has a project file pointing a Consul slot at &lt;code&gt;https://consul.attacker.example&lt;/code&gt;, which is about as subtle as a brick. Trusting a repository to set its own log level is a much smaller act than trusting it to choose your secret store, and the two shouldn't share a switch. The ordering mattered too: that rule landed hours before the first config source could exist, so a clone never had a window to point a tool at one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Help text for someone who's never seen the code
&lt;/h2&gt;

&lt;p&gt;The wizard had its own problem. With each source now a page of its own, there were a lot of pages, and very little on them explained &lt;em&gt;why&lt;/em&gt; you'd choose anything. When I went through it, one note told me a source's settings were "these keys, under config.sources.file", followed by the single word &lt;code&gt;path&lt;/code&gt;. Path to what?&lt;/p&gt;

&lt;p&gt;I had to look at it as if I had no idea what the generator would produce, because that's who's reading it. In the end I wrote the text myself, and what ships now is close to my version: config isn't set here, this only wires in the adapter, each user runs &lt;code&gt;init config &amp;lt;name&amp;gt;&lt;/code&gt;, here's what it writes and where, and here's how to give everyone a default instead. If the tool has no init command at all, the note says so and sends you to the defaults file. The format list stopped showing which Go packages each format would import (noise, to anyone choosing a format) and says whether the format can be written back.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one that's waiting
&lt;/h2&gt;

&lt;p&gt;Thirteen kinds of source made it through. The fourteenth, &lt;code&gt;filekv&lt;/code&gt;, is on hold. It was built for reading a Kubernetes ConfigMap or Secret mounted as a directory, and I suspect the right pattern for that is to walk the directory and attach each file as a layer of its own, in an order the author chooses, instead of folding the whole directory into one. That's an open question for go/config first, so for now the generator refuses it, with a test to prove it does. I'd much rather that than ship it the wrong way round and have to take it back.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the factory knows
&lt;/h2&gt;

&lt;p&gt;So the generator doesn't ask for an address, a region, a prefix or a token any more. It wires in what the author says the tool can read and leaves the connecting to whoever runs it, in their own file, out of reach of anything they've cloned. The factory fits the socket, and what you tow is your business.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/wire-it-dont-configure-it/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 14 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>go</category>
      <category>generator</category>
      <category>config</category>
    </item>
    <item>
      <title>A gap is better than a guess</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:03:59 +0000</pubDate>
      <link>https://dev.to/phpboyscout/a-gap-is-better-than-a-guess-51pd</link>
      <guid>https://dev.to/phpboyscout/a-gap-is-better-than-a-guess-51pd</guid>
      <description>&lt;p&gt;There's only one source of truth for what was promised in my Sunday night D&amp;amp;D game, and it's my memory of it.&lt;/p&gt;

&lt;p&gt;The recording doesn't have it and neither do my notes. Someone said they'd go back for the body, and someone else agreed to keep quiet about the letter, and I don't think either of those was ever said in a sentence you could point at. They were arrived at, over about twenty minutes, mostly sideways.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this particular file has to be right
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://scoutdm.com" rel="noopener noreferrer"&gt;Scout&lt;/a&gt; listens to a tabletop session and turns it into structured campaign facts. Who was there, what got promised, what the party now knows that it didn't at teatime.&lt;/p&gt;

&lt;p&gt;To find out whether it's any good at that, you need a labelled set: a file saying, for each session, what was &lt;em&gt;really&lt;/em&gt; committed to. Then you run the extraction, compare, and get a number.&lt;/p&gt;

&lt;p&gt;The number is only worth what the file is worth. And realistically the file can only come from a person who was in the room. In this case that's me, going back through my own campaign transcripts, writing down what actually happened.&lt;/p&gt;

&lt;p&gt;That's a slow, tedious, undelegatable job... and I did of course try to delegate it!&lt;/p&gt;

&lt;h2&gt;
  
  
  The terms I set for the first pass
&lt;/h2&gt;

&lt;p&gt;I asked a model to take a first pass, to save myself the worst of the typing (there's a lot of typing). Then I set the terms.&lt;/p&gt;

&lt;p&gt;The first is unremarkable and I'd have said it about anything. I told the session before it started that I definitely wouldn't be accepting any of it wholesale, as this needed to be right and I'm the only person who knows what actually happened in those sessions.&lt;/p&gt;

&lt;p&gt;The second is what made the exercise work: &lt;em&gt;where you cannot fill a field, leave it empty, and do not put something plausible there&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;A blank is a piece of work with a location attached: I can see it, I know what it's asking me, and I can answer it from memory in about thirty seconds. A confident wrong answer is a piece of work I might never know to do, sitting inside the file every other number depends on.&lt;/p&gt;

&lt;p&gt;That's what I meant when I told it a gap is better than a guess. It makes my job easier, and it stops the file lying to me later without my knowing.&lt;/p&gt;

&lt;h2&gt;
  
  
  A guess in the ground truth ratifies itself
&lt;/h2&gt;

&lt;p&gt;In most places in a system, a model's guess is a bug. It's wrong, something downstream behaves oddly, and with luck a test catches it.&lt;/p&gt;

&lt;p&gt;In the reference set it's worse than a bug, because it's &lt;em&gt;self-ratifying&lt;/em&gt;. The instrument I built to detect wrong answers now contains one. Extraction comes up with that wrong answer too, the harness marks it correct, and my score goes &lt;em&gt;up&lt;/em&gt;. A machine that rewards agreement with a mistake, and it'll carry on doing that for as long as I let it without once looking wrong.&lt;/p&gt;

&lt;p&gt;You can't test your way out of a corrupted reference set when the reference set &lt;em&gt;is&lt;/em&gt; the test... so here, of all places, I won't take a plausible answer, however tidy it looks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://phpboyscout.uk/three-models-vote-on-what-happened/" rel="noopener noreferrer"&gt;The extraction side of this&lt;/a&gt; is the other end of this programme: three models on one job, reconciled by majority, because a bad write poisons the record. It would be a daft kind of carelessness to take that much trouble over the writes and then score them against something I'd let a model invent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same argument, pointed at a schema
&lt;/h2&gt;

&lt;p&gt;The instinct turned up again about an hour later, in a place I wasn't expecting it.&lt;/p&gt;

&lt;p&gt;The schema had a boolean for whether something was &lt;code&gt;stated&lt;/code&gt;. True or false. So I stopped and typed back at the session that it isn't a boolean at all:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;we have true or false but this is not boolean, it may not be cleanly stated but may be implied across multiple utterances, how do we capture that? is there even value in capturing that?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A field that only offers yes and no will get a yes or a no. The labeller needn't be careless for that to happen, those are simply the two options on offer, and a promise assembled out of four half-sentences across twenty minutes has to become one of them.&lt;/p&gt;

&lt;p&gt;That's manufacturing certainty in the data model instead of in the answers, and I suspect it's harder to spot later, since it looks like schema design... a person forced to pick a side will pick one just as readily as a machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  It's slow, and the fix isn't a better model
&lt;/h2&gt;

&lt;p&gt;I wouldn't call any of this elegant. It's laborious, it doesn't scale, and I said at the time that if it turned into a repetitive job I'd end up building a small web interface just to speed the labelling up (I still might).&lt;/p&gt;

&lt;p&gt;If I do build it, it'll be a web form... better tooling for me rather than more confidence from the machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that couldn't be handed over
&lt;/h2&gt;

&lt;p&gt;The fashionable version of this is that AI takes the grunt work off you and frees you for the interesting bit.&lt;/p&gt;

&lt;p&gt;What happened here was the reverse. The interesting bit, extraction, reconciliation, the whole measurement instrument, went to the machines quite happily. The grunt work is the only part that couldn't go anywhere. It's the part where being right matters more than being fast, and the only qualified labeller is the person who was at the table when someone agreed to keep quiet about the letter.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/a-gap-is-better-than-a-guess/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 13 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>career</category>
      <category>agents</category>
      <category>testing</category>
    </item>
    <item>
      <title>Every link was a fix</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:03:18 +0000</pubDate>
      <link>https://dev.to/phpboyscout/every-link-was-a-fix-4oh0</link>
      <guid>https://dev.to/phpboyscout/every-link-was-a-fix-4oh0</guid>
      <description>&lt;p&gt;I'm aware I'm in danger of becoming a bit of a stuck record. Since May I've written about &lt;a href="https://phpboyscout.uk/ai-didnt-kill-curls-bug-bounty/" rel="noopener noreferrer"&gt;AI and curl's bug bounty&lt;/a&gt;, about &lt;a href="https://phpboyscout.uk/anything-under-an-8/" rel="noopener noreferrer"&gt;waving through anything under an 8&lt;/a&gt;, and only three weeks ago about &lt;a href="https://phpboyscout.uk/the-hero-gets-the-bill/" rel="noopener noreferrer"&gt;PHP2Shell&lt;/a&gt; and who picks up the bill when AI digs up a bug that's been sat in plain sight for twenty years. So when someone sent me &lt;a href="https://sshhole.com/" rel="noopener noreferrer"&gt;sshhole.com&lt;/a&gt; last week (an amusing write-up of the newest one, and a surprisingly good plain-English fix guide too), I had the facepalm everyone else had... and then a second, quieter groan, at the thought of writing the same post again.&lt;/p&gt;

&lt;p&gt;So I'm not going to. Well, not mostly. AI did find this one, and it gets its paragraph further down. But what's stuck with me since is less who found it, and more that when you pull the bug apart, every link in the chain that caused it was someone fixing something.&lt;/p&gt;

&lt;h2&gt;
  
  
  A password that opens a locked door
&lt;/h2&gt;

&lt;p&gt;Right, a quick bit of how it works first, since the rest hangs off it.&lt;/p&gt;

&lt;p&gt;On Linux, an account's password is stored as a hash, and an account that isn't meant to be logged into with a password gets a marker instead of a hash, usually a &lt;code&gt;*&lt;/code&gt; or a &lt;code&gt;!&lt;/code&gt;. A hash doesn't come out as a lone asterisk, so no typed password can match it. To check a password, sshd hands it to a C library function called &lt;code&gt;crypt()&lt;/code&gt;, along with a "setting" (the prefix that says which algorithm and which salt to use), and compares what comes back with what's stored.&lt;/p&gt;

&lt;p&gt;On &lt;a href="https://musl.libc.org/" rel="noopener noreferrer"&gt;musl&lt;/a&gt;, the small C library that Alpine Linux is built on, a &lt;code&gt;crypt()&lt;/code&gt; that fails doesn't return an error. It returns a string, and the string is &lt;code&gt;*&lt;/code&gt;. A SHA-style password longer than 256 bytes makes it fail. So you send a 257-byte password to an account marked &lt;code&gt;*&lt;/code&gt;, &lt;code&gt;crypt()&lt;/code&gt; gives up and returns &lt;code&gt;*&lt;/code&gt;, sshd compares that with the stored &lt;code&gt;*&lt;/code&gt;... and they match. You're in, on an account that was never meant to have a password at all.&lt;/p&gt;

&lt;p&gt;It needs a specific set of conditions: OpenSSH built against musl, PAM switched off, password logins switched on, an account marked &lt;code&gt;*&lt;/code&gt;, and at least one other account with a real hash (I'll come back to why). That's a narrow window, and musl's maintainer Rich Felker &lt;a href="https://www.openwall.com/lists/musl/2026/11/05/4" rel="noopener noreferrer"&gt;confirms&lt;/a&gt; that Dropbear isn't affected, and Dropbear is what a lot of home routers run by default (&lt;a href="https://openwrt.org/docs/guide-user/base-system/dropbear" rel="noopener noreferrer"&gt;OpenWrt's&lt;/a&gt;, for one). Nothing I run is in that window either (my images are Debian or Wolfi, both glibc). But Alpine marks root as &lt;code&gt;*&lt;/code&gt; out of the box, so on a box where all five line up, the account you get into is root!&lt;/p&gt;

&lt;h2&gt;
  
  
  Every link was a fix
&lt;/h2&gt;

&lt;p&gt;Pulling it apart, I couldn't find a careless piece anywhere in it. Each one was a reasonable person solving a real problem for the people downstream of them.&lt;/p&gt;

&lt;p&gt;It starts with the asterisk itself, which is older than I am (by nearly five months, I checked). Here's the daemon account from &lt;a href="https://github.com/dspinellis/unix-history-repo/blob/5c2b8791ce32b113b7345ca6e2fd777e8eca6156/etc/passwd#L2" rel="noopener noreferrer"&gt;3BSD's password file&lt;/a&gt;, committed in January 1980 (Research Unix V7 had &lt;a href="https://github.com/dspinellis/unix-history-repo/blob/6ac33ef6cbc01db04a98566c7d92447c0c7888f9/etc/passwd#L2" rel="noopener noreferrer"&gt;an &lt;code&gt;x&lt;/code&gt; there&lt;/a&gt; a year earlier, so this is as far back as I could trace the star):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daemon:*:1:1:The devil himself:/:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The devil himself! I couldn't make that up if I tried. The &lt;code&gt;*&lt;/code&gt; there is a convention: no password can ever produce it, so no one logs in with it. It has never really been a contract, it's just what everyone has done for forty-six years.&lt;/p&gt;

&lt;p&gt;Then in 2012 musl made &lt;code&gt;crypt()&lt;/code&gt; return &lt;code&gt;*&lt;/code&gt; on failure rather than a null pointer, and the &lt;a href="https://git.musl-libc.org/cgit/musl/patch/?id=b3c4cc121f70faea45389fe7ddc1127ed5cbd8bb" rel="noopener noreferrer"&gt;commit message&lt;/a&gt; says why: "a large portion of programs which call crypt are not prepared for its failure", so handing back an unmatchable hash was "reportedly a better behavior than failing on error". That's a fix. Callers were crashing, and a crash in a login path is its own kind of bad. And musl even guarded against the obvious hole, returning &lt;code&gt;x&lt;/code&gt; instead of &lt;code&gt;*&lt;/code&gt; if the setting it was given started with a &lt;code&gt;*&lt;/code&gt;. Belt and braces.&lt;/p&gt;

&lt;p&gt;A year later Thorsten Glaser, on &lt;a href="https://sourceware.org/legacy-ml/libc-alpha/2013-07/msg00046.html" rel="noopener noreferrer"&gt;a Debian bug about glibc's &lt;code&gt;crypt()&lt;/code&gt;&lt;/a&gt;, suggested the glibc world copy musl's idea, credited it to musl's maintainer, and called it "the best compromise/solution". As it turned out, the glibc distros got there by a different road. libxcrypt, which took over &lt;code&gt;crypt()&lt;/code&gt; on most of them from 2018, had been &lt;a href="https://github.com/besser82/libxcrypt/blob/27fa0cb49d585aff8ea25c380eb43d0679784f58/src/xcrypt.c#L89-L102" rel="noopener noreferrer"&gt;returning a failure token since at least 2009&lt;/a&gt;, a habit it shares with Openwall's crypt_blowfish, and its token "will begin with a &lt;code&gt;*&lt;/code&gt;, and will not compare equal to setting" (&lt;a href="https://github.com/besser82/libxcrypt/blob/25d5a2e52b79dd7230418a25afe11766ce67a2ba/doc/crypt.3#L286-L292" rel="noopener noreferrer"&gt;crypt.3&lt;/a&gt;). The token was &lt;code&gt;*0&lt;/code&gt;. One character longer, and as far as I can tell that one character is most of why the glibc world isn't reading about this today.&lt;/p&gt;

&lt;p&gt;In 2016 OpenSSH fixed &lt;a href="http://lists.mindrot.org/pipermail/openssh-commits/2016-July/005428.html" rel="noopener noreferrer"&gt;CVE-2016-6210&lt;/a&gt;, where an attacker could tell real usernames from made-up ones by timing how long a very long password took to be rejected. Real accounts got the slow hash, made-up ones didn't, and the difference showed. The fix was to hash the password for all accounts, including the ones with no usable hash, and to do that sshd borrows a salt from an account that does have one. That's the "another account with a real hash" condition from earlier.&lt;/p&gt;

&lt;p&gt;And in 2019 Alpine fixed CVE-2019-5021, a critical one where its Docker images shipped root with an empty password. Root got a &lt;code&gt;!&lt;/code&gt;, which turned out to block key logins too when PAM is off (&lt;a href="https://gitlab.alpinelinux.org/alpine/aports/-/work_items/10806" rel="noopener noreferrer"&gt;aports#10806&lt;/a&gt;), so a couple of years later it &lt;a href="https://gitlab.alpinelinux.org/alpine/aports/-/commit/fbe926af" rel="noopener noreferrer"&gt;became a &lt;code&gt;*&lt;/code&gt;&lt;/a&gt;, with the note "this still forbids password login but allows logins via ssh keys with pam disabled".&lt;/p&gt;

&lt;p&gt;Five links, five fixes. There's a kinda grim symmetry in there too, if you squint: a medium-severity bug driven by a very long password got fixed in a way that, ten years on, opened a root login driven by a very long password.&lt;/p&gt;

&lt;h2&gt;
  
  
  The guard was watching the wrong string
&lt;/h2&gt;

&lt;p&gt;So where did it go wrong? Both libraries had a guard, and both guards make one promise: whatever comes back on failure won't match the &lt;em&gt;setting&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Old sshd didn't hand a stored &lt;code&gt;*&lt;/code&gt; to &lt;code&gt;crypt()&lt;/code&gt; at all. When the stored field was too short to hold a salt, &lt;a href="https://github.com/openssh/openssh-portable/blob/5c35450a0c901d9375fb23343a8dc82397da5f75/auth-passwd.c#L205-L207" rel="noopener noreferrer"&gt;it used &lt;code&gt;xx&lt;/code&gt; instead&lt;/a&gt;, an old DES salt, and DES copes with an over-long password by quietly ignoring everything past the eighth character. Nothing failed, so nothing came back as &lt;code&gt;*&lt;/code&gt;. Then the 2016 fix swapped &lt;code&gt;xx&lt;/code&gt; for &lt;a href="https://github.com/openssh/openssh-portable/blob/99522ba7ec6963a05c04a156bf20e3ba3605987c/auth-passwd.c#L210-L216" rel="noopener noreferrer"&gt;no salt at all&lt;/a&gt;, and a missing salt makes sshd &lt;a href="https://github.com/openssh/openssh-portable/blob/99522ba7ec6963a05c04a156bf20e3ba3605987c/openbsd-compat/xcrypt.c#L102-L108" rel="noopener noreferrer"&gt;borrow one from another account&lt;/a&gt;. Now the setting was a real &lt;code&gt;$6$...&lt;/code&gt; prefix, SHA-512 gives up past 256 bytes, and the stored field was still &lt;code&gt;*&lt;/code&gt;. musl's guard went on faithfully protecting the setting, which wasn't the string being compared, for about ten years.&lt;/p&gt;

&lt;p&gt;I don't think that makes the guard worthless, and I'd push back on anyone who said so. It was of its time and entirely acceptable when it was written. Picture an engineer in 2016 with five moving pieces spread across three projects and four decades... how were they meant to see where those pieces would meet? It took &lt;a href="https://sshhole.com/" rel="noopener noreferrer"&gt;agents running about 17,600 deliberately odd logins&lt;/a&gt; across differently built servers, looking for the places where the builds disagreed, to find it. That's my paragraph on AI, and I'll leave it there.&lt;/p&gt;

&lt;p&gt;Then look at what the owners said afterwards. Felker's position is that it's "not a bug in musl just an erroneous use by the caller", and OpenSSH's &lt;a href="https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482" rel="noopener noreferrer"&gt;fix commit&lt;/a&gt; says "we do not consider the root cause to be within OpenSSH but we are well equipped to avoid it". Both point elsewhere, and both patched anyway. OpenSSH's fix makes sshd skip the comparison when the stored field is too short to be a real hash. It stopped relying on someone else's guard and checked for itself, right where the answer gets used.&lt;/p&gt;

&lt;h2&gt;
  
  
  Guard it where you use it
&lt;/h2&gt;

&lt;p&gt;That last bit landed close to home. Only a few days ago I had my own version of this argument on &lt;a href="https://gtb.phpboyscout.uk/" rel="noopener noreferrer"&gt;go-tool-base&lt;/a&gt;, about whether the framework should police the values a consumer's config might hand it. I came down on the side of no. A filter up front has to predict all the ways a value could be misused, and you end up patching edge cases in perpetuity. A check at the point of use only has to understand one use. So the consumer guards where it uses the value, and that's that.&lt;/p&gt;

&lt;p&gt;sshd's fix is that principle, applied a decade late. But I want to be careful not to turn it into "trust no one". That isn't what I think, and it isn't what happened either. The 2016 sshd team trusted &lt;code&gt;crypt()&lt;/code&gt; to behave, and &lt;code&gt;crypt()&lt;/code&gt; had a guard that, at the time, did what they needed. Trusting it was reasonable. It's just that the contract between them was never written down anywhere, so when one side moved, the other had no way of knowing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trust is reputation
&lt;/h2&gt;

&lt;p&gt;That brings me to the uncomfortable bit. I'd have installed that 2016 fix almost as soon as it came out. Renovate runs nightly across everything I own, and I try to patch CVEs of all severities as fast as I can. I'd have been an early adopter of the very change that opened this hole.&lt;/p&gt;

&lt;p&gt;And I'd do it again, because the alternative isn't realistic. It has been nigh on impossible, for as long as I've been doing this, to test and validate all the patches for all the software I consume. Imagine asking everyday, non-engineering people to build and test their own Windows or Office patches before installing them. What we actually run on is trust that upstream developers are doing the best they possibly can in the interests of the people downstream. The 2016 patch was just that.&lt;/p&gt;

&lt;p&gt;Historically, trust &lt;strong&gt;is&lt;/strong&gt; reputation. The two are inextricably linked, and you don't really get one without the other. Alpine's reputation took a dent last week, and I still trust them. The fix was &lt;a href="https://gitlab.alpinelinux.org/alpine/aports/-/commit/d482fb50" rel="noopener noreferrer"&gt;committed in Alpine's tree&lt;/a&gt; a few minutes after the announcement went out, musl says the mechanism is "something we have been wanting to change for a while now" (&lt;a href="https://www.openwall.com/lists/musl/2026/11/06/7" rel="noopener noreferrer"&gt;musl, 11-06&lt;/a&gt;), and there's already a proposal to have musl on Alpine return a proper error instead of &lt;code&gt;*&lt;/code&gt; (&lt;a href="https://gitlab.alpinelinux.org/alpine/aports/-/work_items/18553" rel="noopener noreferrer"&gt;aports#18553&lt;/a&gt;). That would undo the 2012 fix, which is its own small full circle. It looks a lot like people learning from it and getting on with the job.&lt;/p&gt;

&lt;p&gt;But the world is moving quickly, and I suspect we need to move with it. Do we start separating trust from reputation? I don't know, if I'm honest. What I do know is that I've always tried to do some due diligence before adopting a third-party component, and sometimes that diligence has ended with me building my own. The estate has its own &lt;a href="https://errors.go.phpboyscout.uk/" rel="noopener noreferrer"&gt;errors package&lt;/a&gt; because my trust in the &lt;a href="https://phpboyscout.uk/merged-in-five-days-open-in-seven-hundred/" rel="noopener noreferrer"&gt;previous one had waned&lt;/a&gt; and I couldn't find anything better, and it had to clear the bar I hold myself to before &lt;a href="https://phpboyscout.uk/building-it-yourself-is-the-third-thing-i-try/" rel="noopener noreferrer"&gt;building anything myself&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;AI makes that kind of build much easier than it used to be. Is it a good idea? Maybe, maybe not. I've created and still look after a lot of things, and the maintenance is not cheap. Plenty of developers won't want that weight, and the ones who take on enough of it can end up feeling like &lt;a href="https://en.wikipedia.org/wiki/Atlas_(mythology)" rel="noopener noreferrer"&gt;the Titan Atlas&lt;/a&gt; with the globe on his shoulders (the heavens, strictly speaking, but the globe is how everyone pictures him). So I'm inclined to say each engineer and organisation will draw their trust boundary in a different place... the important part is that they actually draw it, and know where it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Day nought or day three
&lt;/h2&gt;

&lt;p&gt;There's one question this has left me chewing on, and I don't have an answer yet.&lt;/p&gt;

&lt;p&gt;My Renovate presets make ordinary updates sit for &lt;a href="https://gitlab.com/phpboyscout/cicd/-/blob/311f928/default.json#L15-26" rel="noopener noreferrer"&gt;three days&lt;/a&gt; before they land, because, in the words of &lt;a href="https://gitlab.com/phpboyscout/cicd/-/blob/311f928/default.json#L32" rel="noopener noreferrer"&gt;my own config&lt;/a&gt;, "a soak exists to let OTHER people find problems we cannot". That's my trust-in-the-community argument, written into a JSON file. But a fix that arrives flagged as a security advisory skips the soak entirely and merges the same day. So the class of patch that opened this hole is the one my setup trusts most, and fastest. (For the record, Renovate wouldn't even have seen this particular fix, since it arrived as a package revision inside an image. My CI base image gets rebuilt daily on a schedule for exactly that reason, since &lt;a href="https://gitlab.com/phpboyscout/images/ci-base/-/blob/2d59a8363/Dockerfile#L102-108" rel="noopener noreferrer"&gt;Renovate can't see apk packages at all&lt;/a&gt;, but that's a post for another day.)&lt;/p&gt;

&lt;p&gt;Is day nought right for a security fix? My gut says a known hole beats a speculative one. But that's exactly what the 2016 team would have said, and they were right too.&lt;/p&gt;

&lt;p&gt;I'm going to have to ponder that one. And when I've made my mind up, I promise the post won't be about AI finding a bug. Probably.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/every-link-was-a-fix/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 12 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>security</category>
      <category>linux</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>They share a disk</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Tue, 10 Nov 2026 21:02:16 +0000</pubDate>
      <link>https://dev.to/phpboyscout/they-share-a-disk-3fm0</link>
      <guid>https://dev.to/phpboyscout/they-share-a-disk-3fm0</guid>
      <description>&lt;p&gt;I lost an hour once to a diff I hadn't written.&lt;/p&gt;

&lt;p&gt;It wasn't a bug or a bad merge, just changes sitting in a working tree, in a repository I'd been in earlier, that I couldn't account for and had no memory of making. Working out where they came from took longer than the work they interrupted.&lt;/p&gt;

&lt;h2&gt;
  
  
  A dozen sessions, one filesystem
&lt;/h2&gt;

&lt;p&gt;On a normal working day there are a lot of agent sessions running on the machine under my desk, each pointed at a different project (a dozen on a busy day). They're independent in most of the ways people talk about, and not in one that hardly gets a mention: they all write to the same disk.&lt;/p&gt;

&lt;p&gt;Any of them is capable of wandering into a checkout it wasn't invoked in, editing files another session is mid-flight in, or leaving a branch checked out that someone else was standing on. They're not really misbehaving, just busy doing what they were asked, and the failure is silent at the moment it happens, so you don't meet it then. You meet it an hour later, as a diff you don't recognise.&lt;/p&gt;

&lt;p&gt;Most of what I've read about running agents in parallel is about context windows or token spend. The first thing that actually bit me was two processes and one disk, which is about the oldest problem in the trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tripwire, which is embarrassingly crude
&lt;/h2&gt;

&lt;p&gt;Take a baseline of every checkout in the workspace. Then watch. When a repository that was clean at baseline goes dirty, say so once, naming the repository and the branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TRAMPLED: keryx was clean, now 1 changes on fix/npm-audit-advisories
TRAMPLED: skillup was clean, now 18 changes on master
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all of it: no locking, no permissions model, no policy about who may touch what. It can't stop anything and it doesn't try. It's a smoke alarm, cheap and dumb, and it goes off in the room where the problem is.&lt;/p&gt;

&lt;p&gt;Saying it &lt;code&gt;once&lt;/code&gt; is what keeps it useful. A monitor that reports every change would, I suspect, turn into a firehose within minutes and get muted, and then you've got a smoke alarm with the battery out. That's arguably worse than no alarm at all, since you think you're covered.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually caught
&lt;/h2&gt;

&lt;p&gt;Mostly not agents misbehaving, in the end. Over about a week it fired on five repositories: a CI change in one, a skills refresh in another, an audit fix, eighteen changes on a master branch, an infrastructure feature. Each was a session doing what it had been asked to do, in the repository it had been asked to do it in.&lt;/p&gt;

&lt;p&gt;You could call that a week wasted (it didn't catch a thing), but what it changed is that "is anything stepping on anything?" stopped being a background worry and became a question with an answer. I could look. Five things are moving, here they are, and they're all in different places. That's worth a lot more than the zero incidents it caught.&lt;/p&gt;

&lt;h2&gt;
  
  
  The only time it needed explaining, it was me
&lt;/h2&gt;

&lt;p&gt;There was a stretch where the loose ends didn't add up. Deletions from disk, renames, files moved, and I couldn't pin any of it on a session.&lt;/p&gt;

&lt;p&gt;I worked out why, and had to own up to it in the session that was trying to help me investigate:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;the deletions from disk were me in this case. along with the renames and moves in an effort to try and tame my local workspace as it had gotten out of hand.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I'd been tidying, by hand, across the very workspace a dozen automated processes were working in, without telling any of them! Behaviour I wouldn't tolerate from one of the agents for a second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prevention, and what it costs
&lt;/h2&gt;

&lt;p&gt;The tripwire is the second line. The first is a rule: work in a repository you weren't invoked in happens in a dedicated git worktree off latest main, never in the shared checkout. That way two sessions in one project are looking at two different directories and can't fight over a branch.&lt;/p&gt;

&lt;p&gt;Detection behind prevention, which is how most safety systems are shaped, and I can't claim to have invented a bit of it.&lt;/p&gt;

&lt;p&gt;The rule costs something, though. Worktrees accumulate. They get created for a task, the task finishes, the session ends, and the registration stays behind like an empty pint glass. Two separate sessions in the same window spent real time pruning dead ones, and a stale worktree pointing at a branch nobody is on is its own small niggle for whoever finds it next.&lt;/p&gt;

&lt;h2&gt;
  
  
  The alarm came off the ceiling
&lt;/h2&gt;

&lt;p&gt;It was armed from one session and it died with that session. It only ever lived in that session, and there's no script for it anywhere in the estate. If I wanted it back tomorrow I'd write it again (probably slightly differently) in about ten minutes.&lt;/p&gt;

&lt;p&gt;It was there to answer a question I had that week, it answered it, and the answer was reassuring enough that I stopped needing to ask.&lt;/p&gt;

&lt;p&gt;What &lt;em&gt;did&lt;/em&gt; survive is the worktree rule. It's a written skill now, one the sessions load, rather than something I keep repeating... so the tripwire proved the rule was worth having and then talked itself out of a job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The untidiest process on the box
&lt;/h2&gt;

&lt;p&gt;I built a monitor to watch a dozen sessions, on the off chance one of them might trample on another's work.&lt;/p&gt;

&lt;p&gt;Over the week it ran, the only actor who actually did that was me, at a keyboard, moving directories about because the place had got untidy and I wanted it neat.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/they-share-a-disk/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 10 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>git</category>
      <category>craft</category>
    </item>
    <item>
      <title>Twenty-six against forty</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:51:23 +0000</pubDate>
      <link>https://dev.to/phpboyscout/twenty-six-against-forty-29on</link>
      <guid>https://dev.to/phpboyscout/twenty-six-against-forty-29on</guid>
      <description>&lt;p&gt;I went to bed at about half nine, and the last thing I typed to the session before I did was this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I am going to head off to bed now, but I would like you to continue the rollout and create all the MRs for waves 1-5, &lt;strong&gt;but do not merge them, we will review together in the morning&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The whole governance model is in that last clause
&lt;/h2&gt;

&lt;p&gt;An estate-wide migration off a third-party errors library onto our own, across dozens of modules. It's mechanical and tedious, just the kind of job you want to hand over, and just the kind that goes badly wrong without making a sound.&lt;/p&gt;

&lt;p&gt;I could hand it over and then sleep because everything up to the merge button is recoverable... a branch, a merge request, the lot. Forty merge requests sitting open overnight are, at absolute worst, forty things to close in the morning (and a mild feeling of having wasted an evening's compute).&lt;/p&gt;

&lt;p&gt;The merge is where it stops being recoverable, so the merge is where the stop went. Once I'd seen that the stop was mine to place, leaving it running overnight stopped feeling like much of a gamble.&lt;/p&gt;

&lt;h2&gt;
  
  
  The morning, and what I did first
&lt;/h2&gt;

&lt;p&gt;The work looked good, it really did.&lt;/p&gt;

&lt;p&gt;So I typed back this, and it stopped short of an approval:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;that looks really good! it does however raise a concern, only 26 MRs? we have 40+ projects, have we missed some... were some using stdlib errors instead of cockroachdb/errors... if so then that means we need to do a second pass&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I hadn't read a single diff at that point, or opened a merge request. I'd looked at a count, held it up against a number I happened to know, and noticed they didn't match.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agents didn't make a mistake
&lt;/h2&gt;

&lt;p&gt;In one sense the night had gone perfectly well. The brief was to migrate every module using the third-party library, and each module using the third-party library had been migrated, correctly, one merge request each, unmerged, as asked. Audit the work against the instruction and it passes cleanly.&lt;/p&gt;

&lt;p&gt;The hole was in the instruction. A chunk of the estate hadn't been on that library in the first place: those modules sat on plain standard-library &lt;code&gt;errors&lt;/code&gt;, and they needed migrating just as much, for the same reasons. They weren't in scope because at half past nine at night it hadn't occurred to me (the one holding the map) that they were a separate category.&lt;/p&gt;

&lt;p&gt;So the agents had done exactly what I asked, and what I'd asked for was short a good dozen modules. Better agents wouldn't have helped with that one (a better brief would).&lt;/p&gt;

&lt;h2&gt;
  
  
  The check a fleet can't run on itself
&lt;/h2&gt;

&lt;p&gt;What caught it was arithmetic. Twenty-six against forty-plus! It wasn't a code review or a test, just one comparison between the shape of what came back and a number I'd been carrying around in my head, a number the fleet had no way of knowing. It only knows how many projects it was pointed at, which is a different number, and the gap between those two is invisible from the inside.&lt;/p&gt;

&lt;p&gt;That's the most valuable review I do over unattended work, and it was a while before I saw it as a pattern rather than a lucky glance. And I'm inclined to say it's rarely reading the diffs. The diffs are the part the machine is good at (most of the time) and reviewing them line by line at that volume becomes mostly theatre, at least for something as well shaped as this migration was meant to be. It's things like: is this the right &lt;em&gt;number&lt;/em&gt; of things? Does that total look like the estate I remember? Why is this one three times the size of the others?&lt;/p&gt;

&lt;p&gt;Cheap, instant, and unavailable to the fleet, since each of those questions needs something that wasn't in its context.&lt;/p&gt;

&lt;h2&gt;
  
  
  The judgement calls it couldn't have made either
&lt;/h2&gt;

&lt;p&gt;The review didn't stop at the count. The session had flagged three merge requests it had concerns about and left them for me instead of deciding for itself, which is the behaviour I want, and each of them needed a judgement call.&lt;/p&gt;

&lt;p&gt;One had introduced a deprecation. I turned it into a hard removal instead. What was being deprecated was a hack, a very recent one, and I could walk it back easily enough if I was wrong. That's three pieces of context that live in my head rather than in the code: how old it is, what I thought of it when I wrote it, and how much it would cost to reverse.&lt;/p&gt;

&lt;p&gt;Another changed a user-facing error message one release after that text had shipped. I accepted it as it was. The release window was short and the project was pre-release, so the usual compatibility care didn't apply.&lt;/p&gt;

&lt;p&gt;The third had got a test passing by adding an entry to a dependency allowlist, to cover a neighbouring module that hadn't been migrated yet. By the time I read it the session had reworked that into an allowance with a tripwire on it, one that fails once the dependency has gone and the entry is no longer needed, and I was happy to leave it there.&lt;/p&gt;

&lt;p&gt;They're all decisions I'd rather make myself, and I don't think any of the three could have been made from the diff alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then the boring part that actually took the thinking
&lt;/h2&gt;

&lt;p&gt;Merging forty-odd interdependent modules is not a loop. Do it in any old order and each merge triggers dependency-bump merge requests in everything downstream, which then race each other, and the CI churn is enormous and largely pointless. So the releases went &lt;em&gt;leaves first&lt;/em&gt;, working up the dependency graph, so that by the time each module was released the things it depended on had already settled.&lt;/p&gt;

&lt;p&gt;That part of the morning took real thought, and I suspect it's what an unattended run would have been least likely to get right. It needs the whole graph held in view at once, and it needs you to care about a mess that lands somewhere other than where you're standing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bookend, three nights later
&lt;/h2&gt;

&lt;p&gt;A near-identical permission on a different night, in very similar words: &lt;em&gt;I am going to bed now so please action this while I'm asleep, you have my permission to create a private repo.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;By morning &lt;a href="https://phpboyscout.uk/three-commits-ahead-of-its-own-version-number/" rel="noopener noreferrer"&gt;skillup existed&lt;/a&gt;, from nothing.&lt;/p&gt;

&lt;p&gt;That was a much easier thing to agree to, and the reason's fairly obvious once you say it. A throwaway private repository is about as reversible as anything gets. Same pattern, different worst case, so the stop went in a different place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Twenty-six against forty
&lt;/h2&gt;

&lt;p&gt;I've thought about that count a fair bit since. It took about four seconds, it wasn't clever and it needed no expertise at all, just knowing roughly how many projects there are... which you only know from having built them one at a time.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/twenty-six-against-forty/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 8 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>career</category>
      <category>agents</category>
      <category>go</category>
    </item>
    <item>
      <title>Nobody had to ask for the logs</title>
      <dc:creator>Matt Cockayne</dc:creator>
      <pubDate>Sat, 07 Nov 2026 02:52:18 +0000</pubDate>
      <link>https://dev.to/phpboyscout/nobody-had-to-ask-for-the-logs-2523</link>
      <guid>https://dev.to/phpboyscout/nobody-had-to-ask-for-the-logs-2523</guid>
      <description>&lt;p&gt;&lt;a href="https://keryx.phpboyscout.uk" rel="noopener noreferrer"&gt;keryx&lt;/a&gt; generates the cover art and the promo reels for this blog. It has no external users (unless you count me, and I'm biased). Over two days at the start of August it collected seven bug reports, and all seven were filed by a machine.&lt;/p&gt;

&lt;p&gt;Specifically by another of my own agent sessions: the blog project, driving keryx from the command line, hitting things that didn't work and writing them up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually landed
&lt;/h2&gt;

&lt;p&gt;Seven tickets, and they landed in three rather different piles.&lt;/p&gt;

&lt;p&gt;Five were straightforward defects and all five are fixed. &lt;code&gt;theme edit&lt;/code&gt; was copying the entire user library into the project config &lt;em&gt;and&lt;/em&gt; failing to apply the change you asked for (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/11" rel="noopener noreferrer"&gt;#11&lt;/a&gt;), which is two bugs for the price of one command. A typed theme became unreachable if an untyped one shared its name (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/12" rel="noopener noreferrer"&gt;#12&lt;/a&gt;). Three themes were missing their aspect ratio so their covers came out square (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/13" rel="noopener noreferrer"&gt;#13&lt;/a&gt;). &lt;code&gt;theme add&lt;/code&gt; was promoting whatever you added to be the default without telling you (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/14" rel="noopener noreferrer"&gt;#14&lt;/a&gt;). And cover generation couldn't produce a landscape image at all without a theme (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/10" rel="noopener noreferrer"&gt;#10&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;One's still open, and it's the least fixable: the image provider occasionally returns an image unrelated to the prompt (&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/16" rel="noopener noreferrer"&gt;#16&lt;/a&gt;). It's hard to miss when it happens, and the fix sits with the provider rather than with me.&lt;/p&gt;

&lt;p&gt;That's a decent hit rate for a bug reporter I'd built myself...&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the reporter's transcript
&lt;/h2&gt;

&lt;p&gt;To triage one of them I needed to know what the reporter had actually done, as opposed to what it said it had done. Most support interactions start here, and they normally go: can you reproduce it, what version are you on, can you send me your logs.&lt;/p&gt;

&lt;p&gt;Instead I read the reporter's transcript.&lt;/p&gt;

&lt;p&gt;The complete, unedited record of the commands that session ran and the words it typed, in order, in the fifteen minutes before it opened the ticket. Raw, rather than summarised for my benefit or pieced back together afterwards, and sat in a file on the very box I was working on.&lt;/p&gt;

&lt;p&gt;A bug report is a claim about what someone did, and people are unreliable narrators about their own actions, not dishonestly, just normally: you forget the step you took twice, you leave out the flag you set last week, you describe what you meant to do rather than what you typed. I'd say most of the discipline of support triage exists to work around that.&lt;/p&gt;

&lt;p&gt;Here that problem kinda evaporated... I could just see it! That's new, and I haven't decided how I feel about it yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  And then a ticket turned out to be my fault
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://gitlab.com/phpboyscout/keryx/-/issues/15" rel="noopener noreferrer"&gt;#15&lt;/a&gt; asked keryx to seed a missing cover theme. The reasoning was careful. It cited the blog's own instruction file (my file, my words), which says the house cover styles are canon and that the verbatim prompts are kept in sync with keryx's seeded configuration. It then listed what keryx seeds, observed that the announcement style was absent, and filed the gap.&lt;/p&gt;

&lt;p&gt;Thing is, keryx seeds no themes. It never has, and that's a deliberate design decision, on the grounds that shipping a style library inside the binary means cutting a release every time someone changes their mind about taste.&lt;/p&gt;

&lt;p&gt;So the claim in my instruction file was wrong, had been wrong for months, and the agent believed it over the tool sitting right in front of it. It filed a defect against reality. Politely, with evidence!&lt;/p&gt;

&lt;p&gt;The fix went into the blog rather than into keryx: a standing rule that keryx's own documentation wins over anything the local file says about keryx, on the grounds that keryx is pre-1.0 and moving faster than a file describing it from the outside can track.&lt;/p&gt;

&lt;p&gt;I'd like to report that I found this out cleverly. What happened is that a machine read my documentation, believed it, acted on it, and handed me the discrepancy on a plate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five requirements I nearly spent on patches
&lt;/h2&gt;

&lt;p&gt;The tickets arrived while I was mid-redesign, surfacing requirements for keryx in a new way. The obvious move is to triage them as a bugfix queue, get them off the board, and carry on with the redesign. I folded them into the new specs as requirements instead, which went against most of my instincts for a tidy board.&lt;/p&gt;

&lt;p&gt;A bugfix asks "what's the smallest change that stops this happening". A requirement asks "what should this have done to begin with", and answers it in the design itself, where a patch only sits on top of a design that let the bug happen in the first place. Five reports from something actually using the tool, arriving while the design was still soft, is about as good as the timing gets, and I wasn't about to spend them on patches.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one it didn't tell me about
&lt;/h2&gt;

&lt;p&gt;Twice, the blog session hit something in keryx and worked around it rather than reporting it. It hand-edited the generated files to unblock itself (which is what I'd have done) and carried on with what it had been asked to do.&lt;/p&gt;

&lt;p&gt;That's about the oldest product signal I know of... a user routing around your tool instead of telling you about it, because they had a job to finish and raising it with you wasn't the job. I've done it to other people's software this week.&lt;/p&gt;

&lt;p&gt;Machines, it seems, do it for much the reason people do, and unlike a human user this one left a full record of doing it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://phpboyscout.uk/nobody-had-to-ask-for-the-logs/" rel="noopener noreferrer"&gt;phpboyscout.uk&lt;/a&gt; on 7 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>documentation</category>
      <category>devex</category>
    </item>
  </channel>
</rss>
