<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://richardmurillo.com/blog/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    
    <title>Richard Murillo</title>
    <link>https://richardmurillo.com/blog/</link>
    <atom:link href="https://richardmurillo.com/blog/feed.xml" rel="self" type="application/rss+xml" />
    <description>Posts by Richard Murillo about AI agents, CI gates, and deployment, drawn from his own projects. Every post also has a markdown copy and an RSS feed entry.</description>
    <language>en</language>
    <item>
      <title>Green should say how many things it checked</title>
      <link>https://richardmurillo.com/blog/green-should-say-how-many/</link><description>&lt;p&gt;Your CI run is green. Every gate passed. One of them checked zero items.&lt;/p&gt;
&lt;p&gt;I found two gates like that in one repo this year. VSTest behaves the same way. Each gate judged the inputs it received. Each skipped two questions: how many inputs arrived and whether they were the right ones.&lt;/p&gt;
&lt;h2&gt;The short answer&lt;/h2&gt;
&lt;p&gt;A gate that runs over a set must check the set before it checks the items. Is the set empty? Is it the set you meant? An empty set fails. A set with the wrong members fails too, even when the count matches.&lt;/p&gt;
&lt;p&gt;When I set one gate to fail on mismatched inputs, it failed on its first run. That failure was correct. It showed that the perf gate in &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers&quot;&gt;moq.analyzers&lt;/a&gt; had compared zero benchmarks since the suite gained a parameter.&lt;/p&gt;
&lt;h2&gt;Passing gates that checked zero items&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;The perf gate.&lt;/strong&gt; The moq.analyzers repo uses PerfDiff to compare benchmark runs. PerfDiff&#39;s exit code determines whether the required merge gate passes. PerfDiff compared the overlap: benchmarks present in both the baseline run and the PR run. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/issues/1266&quot;&gt;Issue #1266&lt;/a&gt; traced what happened when that overlap held zero benchmarks. The regression checks looped over zero items. The tool logged &amp;quot;No regressions detected&amp;quot; and exited 0. A PR that broke the benchmark harness would pass the perf gate.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The coverage gate.&lt;/strong&gt; The repo&#39;s AGENTS.md requires 100% block coverage of modified code. The coverage filter named two assemblies and left out PerfDiff.dll. On &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1330&quot;&gt;PR #1330&lt;/a&gt;, a PerfDiff-only change, the qlty coverage diff said: &amp;quot;Not applicable. There was no coverage data for the files in this diff.&amp;quot; The gate passed. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/issues/1332&quot;&gt;Issue #1332&lt;/a&gt; records the gap. The fix, &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1365&quot;&gt;PR #1365&lt;/a&gt;, reports the before and after. Before, all 145 PerfDiff tests passed while the coverage report held zero PerfDiff classes. After, it held 24.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The test runner.&lt;/strong&gt; This case comes from runner documentation, outside the repo. pytest &lt;a href=&quot;https://docs.pytest.org/en/stable/reference/exit-codes.html&quot;&gt;exits with code 5&lt;/a&gt; when it collects zero tests. Microsoft&#39;s &lt;a href=&quot;https://learn.microsoft.com/dotnet/core/testing/migrating-vstest-microsoft-testing-platform#behavioral-differences-between-vstest-and-mtp&quot;&gt;migration guide&lt;/a&gt; says VSTest &amp;quot;tolerates that and exits with success&amp;quot; when an assembly runs zero tests. Microsoft.Testing.Platform reports an empty test module with exit code 8. A filter that matches zero tests turns red or green, depending on the runner.&lt;/p&gt;
&lt;p&gt;A pass can hide an empty comparison, a gap in coverage, or a run with zero tests.&lt;/p&gt;
&lt;h2&gt;Empty and mismatched are failures&lt;/h2&gt;
&lt;p&gt;A gate without an input check answers one question. Did anything fail? An empty set answers no. So the gate says pass.&lt;/p&gt;
&lt;p&gt;The gate must ask two questions first. Did I check anything? Did I check the right things? The answers give four outcomes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Pass:&lt;/strong&gt; the set is the one you meant, it holds at least one item, and every item passed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fail:&lt;/strong&gt; at least one item broke a rule.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Empty:&lt;/strong&gt; the gate checked zero items.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mismatch:&lt;/strong&gt; the gate checked items other than the ones you meant.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Empty and mismatch are separate failures. Counting inputs catches an empty set. Equal counts can mask a mismatch. Two sets can hold equal counts of names with zero names in common. The perf gate hit that problem. The baseline and PR runs listed the same benchmarks under different names.&lt;/p&gt;
&lt;p&gt;Both gates I found reported an empty or mismatched set as a pass. That is the bug. Confusing &amp;quot;all good&amp;quot; with &amp;quot;saw nothing&amp;quot; disarms a gate, and the gate stays green.&lt;/p&gt;
&lt;p&gt;My &lt;a href=&quot;https://richardmurillo.com/blog/validation-passed-16-of-49/&quot;&gt;last post&lt;/a&gt; made the same point about an agent. It reported PASSED after it wrote 16 of 49 files. The validator checked format and skipped the count. A CI gate is the same machine with a different input.&lt;/p&gt;
&lt;p&gt;The fix in moq.analyzers is short. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1309&quot;&gt;PR #1309&lt;/a&gt; added a check that runs before any comparison. It finds the benchmarks missing from each side and fails if either list has entries:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;string[] missingFromResults = benchmarkIdToBaseResults.Keys
    .Except(benchmarkIdToDiffResults.Keys, StringComparer.Ordinal).ToArray();
string[] missingFromBaseline = benchmarkIdToDiffResults.Keys
    .Except(benchmarkIdToBaseResults.Keys, StringComparer.Ordinal).ToArray();
if (missingFromResults.Length == 0 &amp;amp;&amp;amp; missingFromBaseline.Length == 0)
{
    return true;
}

logger.LogError(&amp;quot;Benchmark result sets do not match. ...&amp;quot;);
return false;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A separate check fails when either result set is empty. The same PR fails the run on duplicate names. The gate compares values after those checks pass.&lt;/p&gt;
&lt;h2&gt;The first failure revealed the mismatch&lt;/h2&gt;
&lt;p&gt;The new check failed on &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1309&quot;&gt;PR #1309&lt;/a&gt;&#39;s own perf run. It logged:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Benchmark result sets do not match.
Missing from results: ...Moq1400ExplicitBehaviorBenchmarks.Moq1400Baseline, ...
Missing from baseline: ...Moq1400ExplicitBehaviorBenchmarks.Moq1400Baseline(FileCount: 1), ...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Every pair referred to the same benchmark and differed by the (FileCount: 1) suffix. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/issues/1310&quot;&gt;Issue #1310&lt;/a&gt; identifies the cause.&lt;/p&gt;
&lt;p&gt;The perf job regenerates its baseline on every run. It checks out a pinned baseline commit, builds the benchmarks there, and runs them. The pin pointed at release 0.1.1, from June 9, 2025. After that release, the benchmarks gained a FileCount parameter. Every benchmark name changed.&lt;/p&gt;
&lt;p&gt;So the baseline names and the PR names diverged. The old code took the overlap, found it empty, and exited 0. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/issues/1310&quot;&gt;The issue&lt;/a&gt; puts it in one line: the gate &amp;quot;provided no protection for an extended period.&amp;quot; During that period, the gate was blind to performance regressions.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1309&quot;&gt;PR #1309&lt;/a&gt; fixed the baseline too. It moved the pin to a commit that has the parameter. With the new pin, the two name sets matched and the gate resumed comparing real numbers. &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1309&quot;&gt;PR #1309&lt;/a&gt; shipped the check and the new baseline in one merge on July 6, 2026.&lt;/p&gt;
&lt;p&gt;A routine change to the benchmark suite disarmed the gate. A pinned baseline can drift out of step with the code the gate guards, and the drift stays silent.&lt;/p&gt;
&lt;p&gt;The honest gate failed first. Expect that when you add an input check to an old gate. Treat that first failure as a finding and investigate it.&lt;/p&gt;
&lt;h2&gt;What you can do in your setup&lt;/h2&gt;
&lt;p&gt;Start with a list. Write down every gate that loops over a set. Tests, coverage, perf, lint on changed files, security scans and schema checks all qualify.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Print the count.&lt;/strong&gt; A gate log should report the test count: &amp;quot;checked 412 tests&amp;quot;. A number in the log is the cheapest alarm you can buy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fail on zero.&lt;/strong&gt; pytest does this with exit code 5. Let that exit code fail the job, and keep &lt;code&gt;|| true&lt;/code&gt; off the command. On Microsoft.Testing.Platform, exit code 8 means zero tests. Limit any exemption to the one project that needs it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fail on mismatch.&lt;/strong&gt; When a gate compares two sets, such as a baseline and a PR, check that the names match before you compare values. Matching counts can hide mismatched names.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scope coverage to what ships or runs in CI.&lt;/strong&gt; Every assembly that ships or runs in CI belongs in the coverage filter. A file outside the filter reads as &amp;quot;not applicable&amp;quot;, and not applicable reads as green.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Why CI passes when zero tests run&lt;/h2&gt;
&lt;p&gt;The answer depends on the runner. &lt;code&gt;dotnet test&lt;/code&gt; runs VSTest unless you opt in to Microsoft.Testing.Platform.&lt;/p&gt;
&lt;p&gt;VSTest passes an empty run. When it finds zero matching tests, it prints a warning and returns 0. Set &lt;a href=&quot;https://learn.microsoft.com/dotnet/core/tools/dotnet-test-vstest&quot;&gt;&lt;code&gt;TreatNoTestsAsError&lt;/code&gt;&lt;/a&gt; to true in a .runsettings file. With that setting, a run that discovers or selects zero tests returns 1.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-xml&quot;&gt;&amp;lt;RunSettings&amp;gt;
  &amp;lt;RunConfiguration&amp;gt;
    &amp;lt;TreatNoTestsAsError&amp;gt;true&amp;lt;/TreatNoTestsAsError&amp;gt;
  &amp;lt;/RunConfiguration&amp;gt;
&amp;lt;/RunSettings&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Pass the file with &lt;code&gt;dotnet test --settings test.runsettings&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Microsoft.Testing.Platform fails an empty test module with exit code 8. With the .NET 11 SDK, an empty module alone does not fail the run if another module runs tests. The run fails when every module runs zero tests.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://learn.microsoft.com/dotnet/core/tools/dotnet-test-mtp&quot;&gt;&lt;code&gt;--minimum-expected-tests&lt;/code&gt;&lt;/a&gt; flag sets a floor. You give it a number. If fewer tests run, the run exits with code 9. That catches a run that finds some tests but fewer than you expect.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;dotnet test --minimum-expected-tests 10
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The flag requires Microsoft.Testing.Platform mode. That mode needs the .NET 10 SDK, version 10.0.100 or later. It needs test projects on Microsoft.Testing.Platform 1.7 or later. Set the runner to Microsoft.Testing.Platform in &lt;code&gt;global.json&lt;/code&gt;. The VSTest page omits the flag.&lt;/p&gt;
&lt;p&gt;The number must be positive. Skipped tests count toward the whole-run minimum. Put the flag after &lt;code&gt;--&lt;/code&gt; to set a per-module minimum.&lt;/p&gt;
&lt;h2&gt;How this could be wrong&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;If a fixed gate passes on an empty set, the fix failed.&lt;/li&gt;
&lt;li&gt;If a count check produces more false failures than the empty passes it catches, it costs more than it saves. My evidence leaves that trade unmeasured.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The evidence is narrow: two gates in one repo, plus documented runner behavior. It shows that the failure exists and that the fix exposed a real case. It leaves the rate of empty passes unknown. I want that number for my own repos.&lt;/p&gt;
&lt;p&gt;A check has to be able to fail. This post shows where to look: the inputs your gate left uncounted and unmatched.&lt;/p&gt;
&lt;p&gt;Which of your green checks would stay green on zero inputs?&lt;/p&gt;
</description><pubDate>Fri, 06 Nov 2026 00:00:00 +0000</pubDate>
      <dc:creator>Richard Murillo</dc:creator>
      <guid>https://richardmurillo.com/blog/green-should-say-how-many/</guid>
    </item>
    <item>
      <title>Validation: PASSED at 16 of 49 files</title>
      <link>https://richardmurillo.com/blog/validation-passed-16-of-49/</link><description>&lt;p&gt;Your agent says the work is done. The validator exits with success. The workspace holds part of the work.&lt;/p&gt;
&lt;p&gt;A retrospective in my repo records what happened on December 24, 2025. The task called for splitting 18 memory files into 49 atomic files. The agent wrote 16, ran the validator, and reported &amp;quot;Validation: PASSED&amp;quot;.&lt;/p&gt;
&lt;h2&gt;The short answer&lt;/h2&gt;
&lt;p&gt;The validator checked the files it found. It had no expected count, so it missed the 33 absent files. A completeness check compares the plan with the files on disk and fails on any gap. The instruction tells the agent when to check. A script can count the files.&lt;/p&gt;
&lt;h2&gt;What happened on December 24&lt;/h2&gt;
&lt;p&gt;The commit message read &amp;quot;Split 18 bundled memory files into 49 atomic skill files&amp;quot;. The commit contained 16. The agent&#39;s report said &lt;code&gt;pwsh scripts/Validate-SkillFormat.ps1 - PASSED&lt;/code&gt;. The &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/.project-toolkit/retrospective/2025-12-24-memory-split-failure.md&quot;&gt;retrospective&lt;/a&gt; records the outcome as &amp;quot;Incomplete split (16 of 49 planned files created)&amp;quot;. That is 33% of the plan.&lt;/p&gt;
&lt;p&gt;About five minutes later, a second agent cherry-picked the commit and updated seven index files. It trusted the first agent’s report. The indexes linked to missing files.&lt;/p&gt;
&lt;p&gt;The CI check &amp;quot;Validate Memory Files&amp;quot; failed on &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/331&quot;&gt;PR #331&lt;/a&gt;: &amp;quot;Index files reference atomic skill files that don&#39;t exist&amp;quot;. The retrospective records a revert of both commits 8 minutes after the split.&lt;/p&gt;
&lt;h2&gt;Why the validator passed&lt;/h2&gt;
&lt;p&gt;The retrospective says the script &amp;quot;only checks format, not completeness&amp;quot;. All 16 files passed the format check. The agent judged completion &amp;quot;based on validation script exit code, not task requirements.&amp;quot;&lt;/p&gt;
&lt;p&gt;The commit message promised &amp;quot;49 atomic skill files&amp;quot;. The agent’s prompt and the script lacked that count. A format pass meant the existing files followed the format. The task called for 33 more files.&lt;/p&gt;
&lt;p&gt;The retrospective explains the false pass: &amp;quot;Background agents lack task completion verification.&amp;quot; Why the agent stopped at 16 remains unknown. The retrospective had no session log for the run.&lt;/p&gt;
&lt;h2&gt;The same pattern in other sessions&lt;/h2&gt;
&lt;p&gt;My &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/.agents/governance/FAILURE-MODES.md&quot;&gt;failure mode catalog&lt;/a&gt; draws on 50+ retrospectives from December 2025 through January 2026, plus later additions. It lists 13 patterns. False Completion Markers is one: &amp;quot;Success is reported in prose instead of verified against an artifact.&amp;quot;&lt;/p&gt;
&lt;p&gt;The catalog recommends &amp;quot;a blocking gate that produces an artifact a tool can inspect.&amp;quot;&lt;/p&gt;
&lt;p&gt;The protocol asks agents to activate Serena, a semantic code tool. In fresh sessions, agents activated it every time. The January 2026 &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/.project-toolkit/retrospective/2026-01-09-session-protocol-violation-analysis.md&quot;&gt;session protocol analysis&lt;/a&gt; calls that &amp;quot;100% Serena activation compliance&amp;quot;. In one session that resumed after compaction, the agent skipped the startup steps. The analysis says the work &amp;quot;was NOT blocked by missing protocol steps&amp;quot;.&lt;/p&gt;
&lt;p&gt;The same analysis tested a Git pre-commit hook that checked for a session lock. The hook blocked the commit. With &lt;code&gt;--no-verify&lt;/code&gt;, Git skipped the hook and accepted the commit. My &lt;a href=&quot;https://richardmurillo.com/blog/instruction-asks-hook-checks/&quot;&gt;previous post&lt;/a&gt; explains what a hook can block and what it costs.&lt;/p&gt;
&lt;h2&gt;The completeness check&lt;/h2&gt;
&lt;p&gt;In April 2026, the QA prompt gained a mandatory &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/src/claude/agents/qa.md#completeness-verification-mandatory&quot;&gt;Completeness Verification section&lt;/a&gt;. It opens with &amp;quot;Before reporting validation results, verify completeness independently. Format checks alone do not verify scope.&amp;quot;&lt;/p&gt;
&lt;p&gt;The check asks three questions: What did the task call for? What did the agent deliver? What is missing? The prompt gives an example: &amp;quot;If the promise was &#39;update all 49 templates&#39; and only 16 exist, validation = FAIL regardless of whether those 16 are correct.&amp;quot;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Promised: [list from issue/delegation]
Delivered: [list from workspace]
Gap: [missing items, if any]
Result: PASS | FAIL
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The prompt puts this block above the verdict. If the agent lacks the requirements, it must stop:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;work_finish(blocked, &amp;quot;Cannot verify completeness without requirements&amp;quot;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The retrospective proposes a script too. Record the expected file count in the commit message. Count the files the agent created. If the counts differ, print both and fail. Commit when the counts match. The checklist shows &amp;quot;Expected file count: 49&amp;quot; beside &amp;quot;Actual file count: 49&amp;quot;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/tests/build_scripts/test_qa_prompt_contract.py&quot;&gt;&lt;code&gt;test_qa_prompt_contract.py&lt;/code&gt;&lt;/a&gt; test fails if someone removes the section or lets copies of the prompt drift apart.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&quot;https://matt.kotsenas.com/posts/the-control-paradox/&quot;&gt;The Control Paradox&lt;/a&gt;, Matt Kotsenas describes an agent asked to &amp;quot;do this in 10 places&amp;quot; that does it in 5. His advice: get &amp;quot;task state out of the chat history and into something durable&amp;quot;. Put the expected files where a check can read the list.&lt;/p&gt;
&lt;h2&gt;What this evidence covers&lt;/h2&gt;
&lt;p&gt;The December incident shows how one agent reported success on partial work. It gives no failure rate. The January analysis records &amp;quot;1 observed (likely underreported)&amp;quot; compaction violation. The catalog reports 23 Session End failures out of 24 sessions (95.8%) on one branch on December 20, 2025.&lt;/p&gt;
&lt;p&gt;The prompt test tells me whether the instruction exists. I have yet to replay the December split through the QA agent or run the proposed count check on that case. A PASSED verdict on the 16 files would show that the fix missed the gap.&lt;/p&gt;
&lt;p&gt;A count check could flag the missing files. The cause of the early stop would remain open.&lt;/p&gt;
&lt;h2&gt;What you can do in your setup&lt;/h2&gt;
&lt;p&gt;Record the expected count before work starts. Put it in the task file, issue, or commit plan so a script can read it.&lt;/p&gt;
&lt;p&gt;Compare the expected count with the files on disk. Print both numbers on failure. Run the check in CI so the agent cannot skip it.&lt;/p&gt;
&lt;p&gt;Ask the QA agent to list what the task called for, what exists, and what is missing. Require the verdict to follow from that list. Tell the agent to stop if it lacks the requirements.&lt;/p&gt;
&lt;p&gt;Before you update an index, confirm that every target file exists. The retrospective calls the reverse order the Index-First Anti-Pattern.&lt;/p&gt;
&lt;p&gt;Run one partial result from your history through the check. If the result passes, fix the check.&lt;/p&gt;
&lt;p&gt;Which completion report in your repo would pass with missing files?&lt;/p&gt;
</description><pubDate>Thu, 05 Nov 2026 00:00:00 +0000</pubDate>
      <dc:creator>Richard Murillo</dc:creator>
      <guid>https://richardmurillo.com/blog/validation-passed-16-of-49/</guid>
    </item>
    <item>
      <title>An instruction asks. A hook checks.</title>
      <link>https://richardmurillo.com/blog/instruction-asks-hook-checks/</link><description>&lt;p&gt;In early June 2026, a hook blocked my coding agent from committing work it had not verified. I was landing a pull request about what repo instructions change.&lt;/p&gt;
&lt;p&gt;I kept one line about the block in the pull request. The hook gives me one example of enforcement. The tests below measure a different question: what happens when I change the agent’s instructions.&lt;/p&gt;
&lt;h2&gt;When the agent skips a rule&lt;/h2&gt;
&lt;p&gt;Your agent skips a rule in &lt;code&gt;CLAUDE.md&lt;/code&gt;. You bold the rule, repeat it at the bottom, and add three more. The file grows. The agent skips the rule again.&lt;/p&gt;
&lt;p&gt;An instruction tells the agent what to do. A blocking check controls whether an action goes through.&lt;/p&gt;
&lt;h2&gt;The test&lt;/h2&gt;
&lt;p&gt;I ran an A/B test in early June in &lt;a href=&quot;https://github.com/rjmurillo/ai-agents&quot;&gt;ai-agents&lt;/a&gt;. The setup lives in &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/.serena/memories/instruction-context-efficiency-not-quality.md&quot;&gt;this memory file&lt;/a&gt; and &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/2499&quot;&gt;PR #2499&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I ran &lt;code&gt;claude -p&lt;/code&gt; from outside the repo to keep its &lt;code&gt;.claude/rules&lt;/code&gt; out of the startup context.&lt;/li&gt;
&lt;li&gt;I varied one thing: the instruction context I appended.&lt;/li&gt;
&lt;li&gt;I scored each run with the compiler and hidden tests.&lt;/li&gt;
&lt;li&gt;The task was to reproduce the Moq1600 analyzer from &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/pull/1088&quot;&gt;moq.analyzers PR #1088&lt;/a&gt;. I used &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/issues/579&quot;&gt;issue #579&lt;/a&gt; as the spec. The docs from the pull request would have given away the answer.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The control arm got no repo instructions. The treatment arm got the repo&#39;s own 34 KB &lt;code&gt;copilot-instructions.md&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;What happened&lt;/h2&gt;
&lt;p&gt;Both arms passed 112 of 120 hidden tests. The same 8 &lt;code&gt;It.Ref&lt;/code&gt; cases failed in each run.&lt;/p&gt;
&lt;p&gt;The control arm took about 50 turns. The treatment arm took about 29. That is about 42% fewer turns for the same score.&lt;/p&gt;
&lt;h2&gt;What five runs tell us&lt;/h2&gt;
&lt;p&gt;The control arm had 3 runs. The treatment arm had 2. At temperature 0, the scores repeated. Five runs on one task show what happened in that setup. They leave open what happens on other tasks.&lt;/p&gt;
&lt;p&gt;I tested 56 KB of generic design rules on a refactoring kata. Sonnet scored 8 of 8 on the easy version and 14 of 14 on the hard one, with or without the rules. Haiku scored 14 of 14 on the hard version without the rules.&lt;/p&gt;
&lt;h2&gt;The rules that loaded and weren&#39;t supposed to&lt;/h2&gt;
&lt;p&gt;I meant to limit some rules to certain file types. My &lt;code&gt;.claude/rules&lt;/code&gt; files used &lt;code&gt;applyTo&lt;/code&gt; and &lt;code&gt;alwaysApply&lt;/code&gt;, which are GitHub Copilot and Cursor keys. Claude Code uses &lt;code&gt;paths&lt;/code&gt; to scope rules. A rule without &lt;code&gt;paths&lt;/code&gt; loads in every session. That put all 252 KB of rules into each session.&lt;/p&gt;
&lt;p&gt;I fixed the scope keys in early September in &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/5496&quot;&gt;PR #5496&lt;/a&gt;. The script &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/main/scripts/validation/check_rule_scope_keys.py&quot;&gt;&lt;code&gt;check_rule_scope_keys.py&lt;/code&gt;&lt;/a&gt; fails the build if a rule in that tree uses &lt;code&gt;applyTo&lt;/code&gt;, &lt;code&gt;globs&lt;/code&gt;, or &lt;code&gt;alwaysApply&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Where the hook fits, and where my evidence stops&lt;/h2&gt;
&lt;p&gt;The A/B test varied instructions. The hook evidence comes from one event: the gate blocked an unverified commit. I have no comparison run for the hook.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/blob/b57a25ffcf7850cd2a60be2731eb93a185ba73be/.claude/hooks/PreToolUse/invoke_false_completion_gate.py&quot;&gt;hook source&lt;/a&gt; shows what it checked. It watched for &lt;code&gt;git commit&lt;/code&gt;, &lt;code&gt;gh pr create&lt;/code&gt;, and &lt;code&gt;gh pr merge&lt;/code&gt;. If the commit message or PR text claimed &amp;quot;done&amp;quot; or &amp;quot;fixed&amp;quot;, the hook looked in the session log for a test run, build check, or PR check. If it found no evidence, exit code 2 blocked the tool call.&lt;/p&gt;
&lt;h2&gt;The price of a gate&lt;/h2&gt;
&lt;p&gt;In August, I retired every tool-call hook in &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/5172&quot;&gt;PR #5172&lt;/a&gt; under ADR-097. Each hook launched a Python process on a tool call. On my Windows machine, a cold start took about 250 ms, and more during Defender’s real-time scanning. I combined some of the launches, but tool calls were too slow for me.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/5172&quot;&gt;PR #5172&lt;/a&gt; records what plugin users lost. A subagent can inherit the session model if the caller omits a model. A Serena write can land in the wrong worktree.&lt;/p&gt;
&lt;p&gt;A gate can block the wrong work. In &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/issues/5013&quot;&gt;issue #5013&lt;/a&gt;, a bug blocked 127 unrelated Bash commands over 21 minutes before I caught it.&lt;/p&gt;
&lt;p&gt;A hook costs time on every call and needs maintenance. On my machine, tool-call hooks cost more than I wanted to pay.&lt;/p&gt;
&lt;p&gt;I kept Git hooks and CI checks for commits. The scope-key check runs in the build. Choose the least costly point that can block the mistake.&lt;/p&gt;
&lt;h2&gt;What I&#39;d do with this&lt;/h2&gt;
&lt;p&gt;When an agent skips a rule, identify the action a check should block.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Name the action.&lt;/strong&gt; A script can look for a commit message that says &amp;quot;fixed&amp;quot; and a session log with no test run.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Block the action.&lt;/strong&gt; A warning leaves the choice with the agent.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Choose where the check runs.&lt;/strong&gt; Tool hooks, Git hooks, CI jobs, and build steps differ in cost and in when they catch the mistake.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep instructions small.&lt;/strong&gt; The 34 KB of repo instructions cut turns in my test. The 56 KB of generic rules left the kata scores unchanged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test the check.&lt;/strong&gt; Give it an action it should reject. Confirm that it blocks the action.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Matt Kotsenas said this first&lt;/h2&gt;
&lt;p&gt;In February, Matt Kotsenas wrote in &lt;a href=&quot;https://matt.kotsenas.com/posts/the-control-paradox/&quot;&gt;The Control Paradox&lt;/a&gt;: &amp;quot;Agents will claim success without evidence. Make verification blocking, not advisory. No PR without passing tests, no &#39;done&#39; without proof.&amp;quot; He asked for a &amp;quot;hermetic mode&amp;quot; that isolates a session from machine state such as user instructions. Running from outside the repo was my attempt at that isolation.&lt;/p&gt;
&lt;h2&gt;How this could be wrong&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;If a prose-only arm changes the hidden-test score, I need to revise my claim about this task.&lt;/li&gt;
&lt;li&gt;If more runs erase the turn gap, the five-run result will have overstated the effect.&lt;/li&gt;
&lt;li&gt;If the target action gets through, fix the gate or move it to a point where it can block.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is the first batch of numbers I promised in &lt;a href=&quot;https://richardmurillo.com/blog/capability-not-competence/&quot;&gt;my capability post&lt;/a&gt;. For an example of moving a check earlier, see &lt;a href=&quot;https://richardmurillo.com/blog/move-the-failure-to-the-keystroke/&quot;&gt;Move the deployment failure to the keystroke&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If a gate stopped a mistake or an instruction improved a run, &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/issues/new&quot;&gt;open an issue on ai-agents&lt;/a&gt; with the example.&lt;/p&gt;
</description><pubDate>Sat, 31 Oct 2026 00:00:00 +0000</pubDate>
      <dc:creator>Richard Murillo</dc:creator>
      <guid>https://richardmurillo.com/blog/instruction-asks-hook-checks/</guid>
    </item>
    <item>
      <title>Move the deployment failure to the keystroke</title>
      <link>https://richardmurillo.com/blog/move-the-failure-to-the-keystroke/</link><description>&lt;p&gt;A rollout stops halfway. The validator rejects a configuration value for that region. The engineer wrote the line days ago and has moved on. Now they have to find the rule, fix one value, and wait for another pipeline run. The source held enough information to flag the mistake in the editor.&lt;/p&gt;
&lt;h2&gt;The rule&lt;/h2&gt;
&lt;p&gt;Catch errors in the editor and the build when the source exposes the cause. Keep deploy-time validation as a safety net.&lt;/p&gt;
&lt;p&gt;Sort last quarter’s deployment failures by what you knew when you wrote the change. Put causes the source exposed in one pile. Put runtime causes, such as capacity limits, outages, and races, in the other. Pick a class from the first pile and add an analyzer, a type, or a build gate. If that class keeps reaching deployment, find what the check misses.&lt;/p&gt;
&lt;h2&gt;A small, shipped example&lt;/h2&gt;
&lt;p&gt;I maintain &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers&quot;&gt;Moq.Analyzers&lt;/a&gt;, a set of Roslyn analyzers for the Moq mocking library.&lt;/p&gt;
&lt;p&gt;Moq generates a subclass to build a mock. It can intercept members that a subclass can override. This example compiles:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;class SampleClass
{
    int Property { get; set; }
}

var mock = new Mock&amp;lt;SampleClass&amp;gt;()
    .Setup(x =&amp;gt; x.Property);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Without an analyzer, the test exposes the problem at runtime. Moq 4 throws a &lt;code&gt;NotSupportedException&lt;/code&gt;: &amp;quot;Non-overridable members (here: ...) may not be used in setup / verification expressions&amp;quot; (&lt;a href=&quot;https://github.com/devlooped/moq/blob/v4.21.0/src/Moq/Guard.cs&quot;&gt;Moq source&lt;/a&gt;). The compiler had the relevant code before the test ran.&lt;/p&gt;
&lt;p&gt;With Moq.Analyzers installed, &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/blob/main/docs/rules/Moq1200.md&quot;&gt;Moq1200&lt;/a&gt; flags the line at Error severity. The rule reads &amp;quot;Setup should be used only for overridable members&amp;quot;. The fix: mock an interface or make the member &lt;code&gt;virtual&lt;/code&gt;. Moq1200 first shipped in release 0.0.7. It appears in &lt;a href=&quot;https://github.com/rjmurillo/moq.analyzers/releases/tag/v0.4.2&quot;&gt;v0.4.2&lt;/a&gt;, released March 11, 2026. NuGet listed &lt;a href=&quot;https://www.nuget.org/packages/Moq.Analyzers&quot;&gt;3,834,656 downloads&lt;/a&gt; on October 17, 2026.&lt;/p&gt;
&lt;p&gt;A Roslyn analyzer runs in the IDE and the compiler. Teams that reference the package get the same rule as they type and when they build.&lt;/p&gt;
&lt;h2&gt;Why this is a capability gain&lt;/h2&gt;
&lt;p&gt;The diagnostic gives the author the rule, the reason, and the fix while the code is in front of them.&lt;/p&gt;
&lt;p&gt;Coding agents can read compiler diagnostics and act on them. In my &lt;a href=&quot;https://richardmurillo.com/blog/capability-not-competence/&quot;&gt;last post&lt;/a&gt;, I argued for tools that expand what an agent can do. An error diagnostic puts the rule in the agent’s path and blocks the build until the agent deals with it.&lt;/p&gt;
&lt;h2&gt;What a good authoring-time check needs&lt;/h2&gt;
&lt;p&gt;Give engineers enough information to fix a failure or make a deliberate exception.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Explain the error.&lt;/strong&gt; Name the rule, the expected value, and the fix. A bare &amp;quot;denied&amp;quot; leaves the author guessing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Provide an escape hatch.&lt;/strong&gt; The Moq1200 docs show how to suppress one violation with &lt;code&gt;#pragma&lt;/code&gt; or disable the rule in &lt;code&gt;.editorconfig&lt;/code&gt;. An explicit override leaves a record.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Match severity to impact.&lt;/strong&gt; Errors block. Warnings inform. Too many warnings make the useful ones harder to spot.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fail when input is missing.&lt;/strong&gt; Report what the check expected to evaluate.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Better than earlier: impossible&lt;/h2&gt;
&lt;p&gt;An analyzer catches a mistake at build time. A typed API can prevent it. If a deployment option accepts a fixed set of regions, the compiler rejects values outside that set.&lt;/p&gt;
&lt;p&gt;Rico Mariani called this the &lt;a href=&quot;https://ricomariani.medium.com/the-pit-of-success-cfefc6cb64c8&quot;&gt;Pit of Success&lt;/a&gt; in a 2003 talk. As &lt;a href=&quot;https://learn.microsoft.com/en-us/archive/blogs/brada/the-pit-of-success&quot;&gt;Brad Abrams recorded it&lt;/a&gt;, &amp;quot;we want our customers to simply fall into winning practices by using our platform and frameworks. To the extent that we make it easy to get into trouble we fail.&amp;quot;&lt;/p&gt;
&lt;p&gt;Dan North argues that shifting testing left &amp;quot;means doing different things&amp;quot; (&lt;a href=&quot;https://dannorth.net/blog/we-need-to-talk-about-testing/&quot;&gt;We Need to Talk About Testing&lt;/a&gt;). Use analyzers to catch mistakes and types to prevent them. Keep deploy-time validation for failures that depend on runtime conditions.&lt;/p&gt;
&lt;h2&gt;The same problem at platform scale&lt;/h2&gt;
&lt;p&gt;My team, Policy and Configuration in Microsoft Security, works on deployment policy. The &lt;a href=&quot;https://apply.careers.microsoft.com/careers/job/1970393557001935&quot;&gt;public job description&lt;/a&gt; describes our tools. They help teams deploy across Azure regions and sovereign clouds. We use typed APIs, analyzers, and build gates to catch data residency, rollout, and configuration errors before deployment.&lt;/p&gt;
&lt;p&gt;The goal is for service teams to handle secure deployments on their own. That takes clear diagnostics and safe upgrades. Support requests and adoption data guide the work. The team is moving from proprietary tools toward .NET Aspire and Azure platform features.&lt;/p&gt;
&lt;h2&gt;We&#39;re hiring&lt;/h2&gt;
&lt;p&gt;I’m hiring a Principal Software Engineer in Redmond, WA, to set technical direction for this work. Apply through the &lt;a href=&quot;https://apply.careers.microsoft.com/careers/job/1970393557001935&quot;&gt;Principal Software Engineer, Policy and Configuration&lt;/a&gt; listing.&lt;/p&gt;
</description><pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate>
      <dc:creator>Richard Murillo</dc:creator>
      <guid>https://richardmurillo.com/blog/move-the-failure-to-the-keystroke/</guid>
    </item>
    <item>
      <title>Capability, not competence: agent skills as maps and GPS</title>
      <link>https://richardmurillo.com/blog/capability-not-competence/</link><description>&lt;p&gt;A large public catalog has 185 skill folders. Ask an agent how many contain a &lt;code&gt;scripts/&lt;/code&gt; directory. If it reads the listing and answers, it&#39;s estimating. A script counts them: 3. The model lacked an instrument.&lt;/p&gt;
&lt;p&gt;I judge a model by what it can do with its tools. Some skills are maps. They show the route and the branch points. A script measures what reading misses, and the model makes the call. Other skills are GPS. They drive deterministic work from start to finish. Many tasks need both, one after the other.&lt;/p&gt;
&lt;h2&gt;The rule&lt;/h2&gt;
&lt;p&gt;Use a script for any fact a program can measure. Leave judgment to the agent when the goal or the evidence is unclear. Automate a step end to end when a program can check the result and a failure stays contained. Compare quality, cost, and recovery against a run with no skill.&lt;/p&gt;
&lt;p&gt;The usual shape has three steps:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;+---------------------+     +----------------------+     +--------------------------+
| 1. Script extracts  | --&amp;gt; | 2. Agent judges the  | --&amp;gt; | 3. Script validates and  |
|    the facts        |     |    ambiguous cases   |     |    commits the result    |
|    (deterministic)  |     |    (judgment)        |     |    (checkable)           |
+---------------------+     +----------------------+     +--------------------------+
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Four questions decide who owns each step:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ambiguity.&lt;/strong&gt; Can you read the goal or the evidence more than one way? Then the agent owns that step.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reversibility.&lt;/strong&gt; Can you undo a wrong result? Then automating it is safer.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error cost.&lt;/strong&gt; What does a wrong answer break, and who notices? The higher the cost, the more that step needs a separate check.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Checkable results.&lt;/strong&gt; Can a separate program confirm the result? Then a script can own the step end to end.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Map or GPS: who holds the decision?&lt;/h2&gt;
&lt;p&gt;Map and GPS sit at the two ends of a spectrum. A GPS skill can beat a map on the task its author built it for. Since either can win, choose by two questions. Who makes the decision? Who checks it?&lt;/p&gt;
&lt;p&gt;A map gives both jobs to the model. The model reads what a script prints and compares it with what it expected. Then it picks the next branch. If the route is wrong, the model can catch it.&lt;/p&gt;
&lt;p&gt;A GPS takes the step for the model. Without a separate check, a GPS can hide its errors. With one, you can audit it. Counting, parsing, and checking a reference make good GPS work, because a script can prove the answer.&lt;/p&gt;
&lt;p&gt;A test decides which one wins on a given task. The method is below.&lt;/p&gt;
&lt;h2&gt;Capability vs competence&lt;/h2&gt;
&lt;p&gt;Capability is what a model can do with a tool. Competence is what it can do after you take the tool away. For agents, I optimize for capability.&lt;/p&gt;
&lt;p&gt;David Krakauer&#39;s paper, &lt;a href=&quot;https://arxiv.org/abs/2607.18460&quot;&gt;Competitive and Complementary Tools&lt;/a&gt; (arXiv 2607.18460), defines both terms. &lt;strong&gt;Competence&lt;/strong&gt; is &amp;quot;the performance that remains when the tool is withdrawn.&amp;quot; &lt;strong&gt;Capability&lt;/strong&gt; &amp;quot;is what tools add.&amp;quot;&lt;/p&gt;
&lt;p&gt;Keep the model and the agent system apart. A skill leaves the model&#39;s weights unchanged, so the model&#39;s own competence stays the same. The agent system learns by keeping knowledge outside the weights. When I say competence after withdrawal, I mean the bare model with no skills, scripts, or memory. By that measure, every skill I give an agent fails the complementary test. That&#39;s fine. I want more capability, and I measure capability with the tool in place.&lt;/p&gt;
&lt;h2&gt;Where the frame comes from&lt;/h2&gt;
&lt;p&gt;Krakauer is president of the Santa Fe Institute. On StarTalk, he discussed whether AI tools are complementary or competitive. The episode is &lt;a href=&quot;https://startalkmedia.com/show/what-is-intelligence-with-david-krakauer/&quot;&gt;What Is Intelligence? With David Krakauer&lt;/a&gt; (Oct 2, 2026).&lt;/p&gt;
&lt;p&gt;His paper defines the split. A tool is complementary when &amp;quot;competence transfers to the user and persists after withdrawal.&amp;quot; It is competitive when &amp;quot;the user grows more dependent the more it is used and tool-free competence is compromised.&amp;quot; By that definition, an abacus or a map is complementary, and a GPS is competitive.&lt;/p&gt;
&lt;p&gt;He puts language models in both columns, depending on use. &amp;quot;When its output is reconstructed and verified, it transfers a method and augments intelligence.&amp;quot; When people accept its answers &amp;quot;uncritically ... it diminishes intelligence.&amp;quot;&lt;/p&gt;
&lt;p&gt;The paper quotes Henri Bergson, who tied intelligence to making &amp;quot;tools to make tools.&amp;quot; Building tools that build tools is the goal of &lt;a href=&quot;https://github.com/rjmurillo/ai-agents&quot;&gt;ai-agents&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Two papers on people and AI argue for human independence. &lt;a href=&quot;https://www.preprints.org/manuscript/202605.1603&quot;&gt;The GPS for Thinking&lt;/a&gt; proposes a compass model. In it, AI should &amp;quot;strengthen, not supplant, the student&#39;s inner compass.&amp;quot; &lt;a href=&quot;https://pmc.ncbi.nlm.nih.gov/articles/PMC13420724&quot;&gt;Not all cognitive offloading is equal&lt;/a&gt; separates dependent offloading from autonomous offloading. Independence is the right goal for a student. An agent should depend on a good tool.&lt;/p&gt;
&lt;h2&gt;Claude skills with scripts: maps with instruments&lt;/h2&gt;
&lt;p&gt;A bare map tells the model where to look. A script gives it a way to look. The script does the deterministic work and reports what it found. The model makes the call.&lt;/p&gt;
&lt;p&gt;Anthropic&#39;s skill guidance favors scripts. &lt;a href=&quot;https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills&quot;&gt;Its engineering post&lt;/a&gt; says some jobs need &amp;quot;the deterministic reliability that only code can provide.&amp;quot; Its &lt;a href=&quot;https://resources.anthropic.com/hubfs/The-Complete-Guide-to-Building-Skill-for-Claude.pdf&quot;&gt;building guide&lt;/a&gt; says &amp;quot;Code is deterministic; language interpretation isn&#39;t.&amp;quot; That&#39;s the case for reliability. I add one point: a script that prints evidence keeps the model checking the route.&lt;/p&gt;
&lt;p&gt;In ai-agents, &lt;code&gt;skill-bootstrap&lt;/code&gt; builds workflow skills. Each one has four parts: a first useful action, observations that tell cases apart, decision branches, and outcome checks. The model picks the branch. The rules live in &lt;code&gt;.claude/skills/skill-bootstrap/references/authoring-and-gates.md&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/6642&quot;&gt;ai-agents PR #6642&lt;/a&gt; merged on Oct 17, 2026, and adds the instrument side. Each verified item gets a label. A &lt;code&gt;scaffold&lt;/code&gt; is prose the model reasons with. An &lt;code&gt;instrument&lt;/code&gt; is a script that computes the answer. An item can be both. &lt;code&gt;bootstrap_forms.py check&lt;/code&gt; rejects a computable item that lacks a script.&lt;/p&gt;
&lt;p&gt;The skill started as &lt;a href=&quot;https://gist.github.com/rjmurillo/c6565f419a5dc861e4d9b93bc5506dca&quot;&gt;a gist&lt;/a&gt; I adapted in July 2026 from a prompt Fable 5 wrote for u/Rodbourn. The prompt appeared in &lt;a href=&quot;https://www.reddit.com/r/ClaudeAI/comments/1ukynrw/friendly_reminder_to_have_fable_5_write_skills/&quot;&gt;an r/ClaudeAI thread&lt;/a&gt; that u/oj93-rd started. The prompt has a stronger model write skills. Then smaller models can &amp;quot;carry this project forward without you.&amp;quot; It wants instruments: &amp;quot;MEASURE instead of eyeball.&amp;quot; It tells the model to &amp;quot;ship actual scripts inside the skill&#39;s scripts/ dir.&amp;quot;&lt;/p&gt;
&lt;h2&gt;Skill catalogs: a count measures inventory&lt;/h2&gt;
&lt;p&gt;At commit &lt;code&gt;044b4b2&lt;/code&gt; (Oct 15, 2026), &lt;a href=&quot;https://github.com/wshobson/agents&quot;&gt;wshobson/agents&lt;/a&gt; has 185 skill folders. Three of them contain a &lt;code&gt;scripts/&lt;/code&gt; directory. In &lt;a href=&quot;https://github.com/rjmurillo/ai-agents&quot;&gt;ai-agents&lt;/a&gt;, 56 of 121 skill folders do, at commit &lt;code&gt;e2b9c1e&lt;/code&gt; (Oct 17, 2026).&lt;/p&gt;
&lt;p&gt;Treat those counts as inventory. A count shows how broad a catalog is. It leaves open whether any one skill makes the model more capable.&lt;/p&gt;
&lt;p&gt;Judge a skill by outcome quality. Score the task with the skill and without it. Cost, latency, variance, and how often a person steps in are guardrails. A skill that raises quality but makes runs erratic fails the guardrails.&lt;/p&gt;
&lt;p&gt;For each skill, I want five answers. Which baseline failure does it fix? What part is deterministic? Who judges the unclear cases? What detects failures? What measured gain justifies keeping it?&lt;/p&gt;
&lt;h2&gt;How to test whether a skill helps&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;ai-agents&lt;/code&gt; scenario runner compares runs with and without a skill. It scores three cells: &lt;code&gt;baseline&lt;/code&gt; with no skill, &lt;code&gt;description&lt;/code&gt;, and &lt;code&gt;full&lt;/code&gt;. An LLM judge grades each run from 1 to 5. To pass, a skill&#39;s best cell must average 3.5 or more and beat baseline by 0.5 or more. The thresholds live in &lt;code&gt;scripts/eval/eval-rule-activation.py&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;That runner checks whether the model follows the skill. My argument turns on a second question: did the task come out right? &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/pull/6642&quot;&gt;PR #6642&lt;/a&gt; adds a capability eval for that. It scores the task itself, with the instruments and without them.&lt;/p&gt;
&lt;p&gt;The first run used Haiku on four tasks. Accuracy stayed flat. F1 rose from 0.867 to 0.872 on one task and held at 1.000 on the other three. Cost per run rose on all four.&lt;/p&gt;
&lt;p&gt;The flat result leaves the value of instruments open. When a question was crisp, Haiku wrote its own throwaway script. The task got an instrument either way, so the shipped script repeated work Haiku had done. Accuracy is one outcome. The next runs must add run time, consistency across runs, and recovery after a failure.&lt;/p&gt;
&lt;h2&gt;What I measure next&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Outcome quality on a typical, unfiltered task set, plus a harder subset the model fails without help.&lt;/li&gt;
&lt;li&gt;Repeated paired runs with confidence intervals and held-out scenarios. I set the success criteria before each run.&lt;/li&gt;
&lt;li&gt;Four conditions with equal tool-access budgets: no skill, map, GPS, and the hybrid.&lt;/li&gt;
&lt;li&gt;Guardrails for each condition: cost, latency, variance, how often a person steps in, and wrong turns the agent catches itself.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&#39;ll publish the numbers when I have them, including any that go against me. The skills, scripts, and evals are in &lt;a href=&quot;https://github.com/rjmurillo/ai-agents&quot;&gt;ai-agents&lt;/a&gt;. To try the approach on your own repo, start with &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/tree/main/.claude/skills/skill-bootstrap&quot;&gt;&lt;code&gt;skill-bootstrap&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What task does your agent keep failing until you hand it a tool? If you&#39;ve measured a task with and without a skill, or know a skill that should be a GPS, &lt;a href=&quot;https://github.com/rjmurillo/ai-agents/issues/new&quot;&gt;open an issue on ai-agents&lt;/a&gt;.&lt;/p&gt;
</description><pubDate>Sat, 17 Oct 2026 00:00:00 +0000</pubDate>
      <dc:creator>Richard Murillo</dc:creator>
      <guid>https://richardmurillo.com/blog/capability-not-competence/</guid>
    </item>
  </channel>
</rss>