<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Accountability on PHP Boy Scout</title>
        <link>https://phpboyscout.uk/tags/accountability/</link>
        <description>Recent content in Accountability on PHP Boy Scout</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-gb</language>
        <copyright>Matt Cockayne</copyright>
        <lastBuildDate>Mon, 30 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://phpboyscout.uk/tags/accountability/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>AI attribution belongs in the docs, not the commit</title>
            <link>https://phpboyscout.uk/ai-attribution-belongs-in-the-docs-not-the-commit/</link>
            <pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate>
            <guid>https://phpboyscout.uk/ai-attribution-belongs-in-the-docs-not-the-commit/</guid>
            <description>&lt;img src=&#34;https://phpboyscout.uk/ai-attribution-belongs-in-the-docs-not-the-commit/cover-ai-attribution-belongs-in-the-docs-not-the-commit_hu_60caa245d7cbbccd.jpg&#34; alt=&#34;Featured image of post AI attribution belongs in the docs, not the commit&#34; /&gt;&lt;p&gt;Left to its own devices, a commit I make with an agent in the loop ends with a line crediting the model as a co-author. The tool I use adds that trailer by default, so I&amp;rsquo;ve had to write an instruction, in bold, telling it not to (and I still find myself repeating it to new sessions!).&lt;/p&gt;&#xA;&lt;p&gt;And yet the documentation in most of my projects credits the AI quite happily. To anyone watching, that probably looks a bit inconsistent. I don&amp;rsquo;t think it is, though it took a bug report to make me spell out why.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-report&#34;&gt;The report&#xA;&lt;/h2&gt;&lt;p&gt;The report was on &lt;a class=&#34;link&#34; href=&#34;https://gtb.phpboyscout.uk/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;go-tool-base&lt;/a&gt;, whose &lt;code&gt;generate docs&lt;/code&gt; command uses a model to write reference pages for a tool&amp;rsquo;s commands. A reporter noticed that the pages it produced had the model in the &lt;code&gt;authors:&lt;/code&gt; field of their front matter, where the neighbouring hand-written pages had a person. They made a fair argument that this was more than cosmetic. It asserted AI authorship in a committed, machine-readable field, contrary to a common no-AI-attribution policy, and it churned the diff every time the configured model changed. Their suggestion was to stop putting the model in &lt;code&gt;authors:&lt;/code&gt; at all.&lt;/p&gt;&#xA;&lt;p&gt;Part of that was a real bug. The model had been &lt;em&gt;replacing&lt;/em&gt; the human rather than joining them, which is wrong by anyone&amp;rsquo;s standard, and that got fixed whatever else happened.&lt;/p&gt;&#xA;&lt;p&gt;The rest I said no to.&lt;/p&gt;&#xA;&lt;h2 id=&#34;two-different-kinds-of-credit&#34;&gt;Two different kinds of credit&#xA;&lt;/h2&gt;&lt;p&gt;At the end of a film there&amp;rsquo;s the credits, a long scroll of everyone who made it, right down to the caterers. Somewhere in a drawer there&amp;rsquo;s also a contract, with one signature on it for each party who&amp;rsquo;s on the hook if it all goes wrong. The two don&amp;rsquo;t get confused: a credit says who contributed, and a signature says who answers for it.&lt;/p&gt;&#xA;&lt;p&gt;A commit is a signature. When a change lands in one of my repositories, the person who approved it owns it, entirely, with no asterisk saying a model did the typing. That&amp;rsquo;s why the rule exists. As I put it to one of my sessions when it came up again: no AI attribution in commit messages or merge request bodies, all must be owned by a human who takes full responsibility for any AI work committed, and that goes for myself and for anyone working under my direct supervision. I don&amp;rsquo;t hide AI usage, but I make humans accountable for code submitted.&lt;/p&gt;&#xA;&lt;p&gt;Docs, on the other hand, are credits. They&amp;rsquo;re what engineers stereotypically leave until last and do badly (guilty as charged), and the model did a real chunk of the work. Crediting it there says nothing about who&amp;rsquo;s accountable for the code, only how the page came to exist.&lt;/p&gt;&#xA;&lt;p&gt;So the fix kept the model in the credits and gave the human back their place at the top. The model is now appended as an &lt;em&gt;additional&lt;/em&gt; co-author after the project&amp;rsquo;s human authors, instead of standing in for them. And because some projects have a policy that says no AI attribution anywhere, there&amp;rsquo;s a flag, &lt;code&gt;--no-ai-attribution&lt;/code&gt;, that keeps the authors human-only.&lt;/p&gt;&#xA;&lt;p&gt;How that flag works made me smile. The model writes the front matter itself, so there&amp;rsquo;s no field in the code to filter&amp;hellip; the flag changes what the model is told instead, swapping the instruction to add itself for one that forbids it: the authors field &amp;ldquo;must contain the project&amp;rsquo;s human authors only&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-same-line-in-other-places&#34;&gt;The same line, in other places&#xA;&lt;/h2&gt;&lt;p&gt;Once I&amp;rsquo;d said it out loud about docs, I kept finding that reasoning elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;Specs, reports and spikes credit the agent freely, and I encourage it. They&amp;rsquo;re working documents about how a decision was reached, and an agent drafting one is part of how it was reached.&lt;/p&gt;&#xA;&lt;p&gt;An automated triage reply on a public issue carries a disclaimer saying an agent wrote it, which looks like it contradicts the commit rule until you ask who owns the conversation at that point. No one on my side does yet, only the person who raised the ticket, who may well be a member of the public. Leaving the disclaimer off would be dishonest to them, and an awkward thing to walk back the day I join the thread myself.&lt;/p&gt;&#xA;&lt;p&gt;And a bug report to a project I don&amp;rsquo;t run gets submitted by me, by hand, even when an agent drafted it, since some projects frown on agents raising bug reports and I think a human ought to stand behind it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;written-down-once&#34;&gt;Written down once&#xA;&lt;/h2&gt;&lt;p&gt;For a long while I just said all this to each new session as it came up, and it kept coming up, especially whenever a new model arrived with the old defaults. In the end I wrote it into my global instructions, so each session starts from it: no attribution in commits or merge request bodies, an explicit override for the tool&amp;rsquo;s default trailer, and a line saying why, which is accountability and not concealment. Outside contributors to my public projects can attribute AI in their own commits if they want to (it&amp;rsquo;s their signature on the line, after all).&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve mentioned the rule before, in &lt;a class=&#34;link&#34; href=&#34;https://phpboyscout.uk/house-rules/&#34; &gt;House rules&lt;/a&gt;, as one line in a list, which feels about right for a signature&amp;hellip; the credits, like any film&amp;rsquo;s, run a good deal longer.&lt;/p&gt;</description>
        </item></channel>
</rss>
