Repository navigation
Releases
v1.159.0
2026-10-22
- The doctor runs the brain gates —
scripts/maintainer_doctor.py(#2297).brain fresh at armruns in every sweep and is a skip off an arm;brain fresh at promotionis inPR_SKIPPED_GATES, so the full sweep that makes the release proof refuses a stale STATUS; both selftests run too.plugins/rails-flow/scripts/mutations/check_brain_fresh.py(9 mutants) andcheck_owner_rulings.py(9) and six new mutants inscripts/mutations/docs_layout.pyeach turn one refusal into a pass and name the fixture that must notice. claude-skills waivesdocs/product/in its owndocs/README.md, with the reason. The release-manager's preconditions gain the brain check. - The move is held by the existing checks, extended where the move needed it —
scripts/lint_self_consistency.py,scripts/check_manifest_paths.py(#2175).vendored-copy-driftno longer listscheck_simple_form_only.py(rails-stack owns it); the doc-pointer rule resolves${STACK_ROOT}/...in a stack's setup section against the plugin that holds it;check_manifest_paths.pycounts a stack plugin's own setup section as that plugin's surface (a gate it registers can wait on a file its section writes, asarchitecture-boundarieswaits onArchspec.rb), with a selftest case each way and a mutation. The maintainer doctor, the doctrine map and the tenancy-cop generator name the new paths, and the Rails-assumptions policy splits the four held gates into two moves, one per carrier issue (#2177, #2183). - A stack descriptor's
ui.implementationmust resolve to a design-flow UI adapter, and the harness finds the adapter's guards (#2178). The new ruleui-adapter-unresolvedinscripts/lint_self_consistency.pyrefuses a descriptor whoseui.implementationhas noplugins/design-flow/ui/<id>/adapter.json, an adapter whoseid, agents or checks do not resolve, and a descriptorui.porterorui.composerthat disagrees with the adapter; two guard mutations inscripts/mutations/lint_self_consistency.pyprove the agent and porter halves can fail.scripts/mutation_check.pynow discovers guards underplugins/*/ui/*/scripts/mutations, staged with the plugin as their base so an adapter script still reaches design-flow's neutralscripts/andbrands/; andscripts/rails_assumptions.pylets an adapter's guard follow the decision of the script beside it. Our own architecture decision, no framework claim. ui-adapter-unresolvednow also requires every adapter to ship the procedure file a dispatching command reads, andcheck_manifest_paths.pycounts an adapter's scripts and procedure files as surfaces (#2185).scripts/lint_self_consistency.pyrefuses an adapter lacking<command>.mdfor anyplugins/design-flow/commands/file that callsui_adapter.py;scripts/check_manifest_paths.pyreadsui/<implementation>/scripts/*.pyandui/<implementation>/*.md, because the gate rows'applies_whenpaths now live there. Each carries a selftest scenario and a guard mutation (scripts/mutations/lint_self_consistency.py,scripts/mutations/check_manifest_paths.py);ui_adapter.pyhas its own guard. Our own architecture decision, no framework claim.- Fixtures no longer read the machine's git config —
plugins/rails-flow/scripts/fixture_git.py(#2208).- The cause. Homebrew's system gitconfig sets
core.hooksPath=.githooks. Under it, a hook a selftest plants in.git/hooksnever ran, so "the hook did not run" passed whatever the code did, and "it ran" failed for the wrong reason. - The fix.
fixture_git(all three identical copies) andscripts/hermetic_git.pynow setGIT_CONFIG_NOSYSTEM=1, so a Mac fixture behaves as the Linux runner's does.wip_commitscrubs everyGIT_*from its own git, so its selftest keeps the machine's config and resolves the hook directory instead (#2207). - The lint.
lint_self_consistency.py's newplanted-hooks-not-hermeticrule reads every.pyand.shunderscripts/andplugins/*/scripts/, nested folders included, with comments removed so a mention is not a use. It refuses a script that builds a.git/hookspath without one of three things:rev-parse --git-path,GIT_CONFIG_NOSYSTEM, or git run throughfixture_git/hermetic_git. It also refuses either helper dropping the variable. The rule has 5 scenarios and 3 guard mutations.
- The cause. Homebrew's system gitconfig sets
- The full sweep runs on GitHub at the promotion for this public repository; a local
--require-slow --record-proofis for private repositories only —CLAUDE.md(owner rule, 2026-10-21: "full sweep runs only on machine for private repo"). Actions minutes are free here, andrelease.ymlalready runs the full sweep when no recorded proof matches the tree. v1.158.0 published that way (#2216). The doctor's skip reason formutation coveragein--fast(scripts/maintainer_doctor.py), the comment abovePR_SKIPPED_GATES, the doctrine-map note on the ancestry check (scripts/doctrine_map.py) and the rationale inscripts/sweep_proof.pysay the same. - An advice row in the doctrine map must stand on something —
scripts/doctrine_map.py(#2224, owner ruling 2026-10-21: "advice is not bad but must be tested against best practices or standards").- The new field. A
Claimgains abasis: eithersource: <what was checked> @ <version in scope>, ordecision: #<n>(a maintainer decision, whichrefsmust cite). - What is refused. An advice row with neither is
unbased advice. A basis of the wrong form ismalformed basis. A decisionrefsdoes not cite isdecision not cited. - The baseline. Measured when the ruling landed: 16 advice rows, of which 4 had a basis (two style.md rows verified on rubocop 1.91.0 (#1363);
git add -Adecision #1793; the MCP checklist decision #2056) and 12 had neither. The 12 areADVICE_UNBASED, a list that may only shrink: an entry whose row gains a basis, becomes a guarantee or is deleted is a finding until it is removed. - "May only shrink" is checked against the base, not against itself (#2254 review).
--checkreads the base'sscripts/doctrine_map.py(origin/dev, orDOCTRINE_MAP_BASE) withgit show, and refuses any entry the base did not allow: itsADVICE_UNBASED, or, before the list existed, its advice rows. So a new unbased row cannot ship with its own grandfather entry. The comparison point isgit merge-base <base> HEAD, and HEAD's first parent when that is HEAD itself (a push todev, orDOCTRINE_MAP_BASE=HEADby hand), so a list never agrees with itself. An unreadable base is a finding, never a pass. Asource:basis must also cite the verdict or issue that checked it inrefs. - Proof. The selftest is 62 cases, including a new row plus its new entry against a base fixture, both base shapes, an unreadable base, and the real list against the real rows. The guard is 18 mutations, all caught.
- The new field. A
- A shipped doc may not carry a Vercel or Supabase CLI step without a hand-off line —
scripts/check_vendor_handoff.py(#2289, plugin-boundaries rule 2: one home per concern). A line of a tracked.mdunderplugins/orskills/that tells the reader to run a vendor step (supabase <step>orvercel <step>, also behindnpx,vercel --prod, a barevercelwhere it is told to be run) is refused, and a line that saysHand-off:does not excuse it: a pointer names the vendor skill or command and carries no command of its own, so a table withHand-off:on every row is still a copied table. AHand-off:line about Vercel or Supabase must name its vendor target. The maintainer doctor runs it and its--selftest(a hand-off line alone is clean; every way around it is a fixture); its mutation guardscripts/mutations/check_vendor_handoff.pyhas 22 mutations. - Vendored copies are held byte-identical —
scripts/lint_self_consistency.py(#2173). A new rule,vendored-copy-drift, fails when a file rails-stack vendors from rails-flow (triage_failures.py,check_simple_form_only.py,agent-output-contract.md) differs from its canonical copy or goes missing, andfindings-script-driftnow covers rails-stack'sfindings.pytoo. Each copy has its own negative case (one byte changed, and the file missing), and two mutants inscripts/mutations/lint_self_consistency.pyturn the rule's comparison and its missing-file branch off. - The hook harness and its three guards follow the move —
plugins/rails-flow/scripts/check_hook_gates.py(#2174).run_hooktakes ahooks_dir, and theguard_migrateandlint_rubyfixtures, the bare-PATH run and thehooks.jsonmatcher check now readplugins/rails-stack/hooks/;scripts/mutations/hook_guard_migrate.py,hook_guard_migrate_matcher.pyandhook_lint_ruby.pyname the new subjects and stage the new directory, and all 11 of their mutants are still caught. The component-class map is regenerated: rails-flow's own Rails-class files fall by 2 and rails-stack's rise by 3. detect-stack-driftholds pipeline's copy of the stack detector —scripts/lint_self_consistency.py,scripts/mutations/lint_self_consistency.py(#2179). Two copies ofdetect_stack.py(rails-flow canonical, pipeline mirror) must be byte-identical or one is missing: a finding, with a selftest scenario and a mutation for each.scripts/maintainer_doctor.pyruns the movedkamal_destinationselftest fromplugins/rails-stack/scripts/and gains therails-stack tiersgate; the generated pages (docs/architecture/rails-assumptions.policy.json, component classes, the wiki) follow the move. Mixed components: 199 before and 199 after (the command is neutral now, the detector mirror is one more mixed file);railsfiles leftpipelineforrails-stack.- A neutral component is now PROVEN neutral by running it, not only by a scan finding no Rails name —
scripts/prove_neutral.py,docs/architecture/neutral-proof.json(#2205). Every neutral hook, script andchecks.jsongate runs a...
v1.158.0
2026-10-21
-
The release's mutation sweep runs as 6 shards, not 4 —
.github/workflows/gates.yml,.github/workflows/mutation-weekly.yml,scripts/mutation_incremental.py. The v1.158.0 promotion's release run (39559272291) published nothing (#2216): shard 4 hit its 75-minute cap while shards 1-3 took 16-48 minutes. Shard 4 had grown 46, 53, 46 and 57 minutes over the four releases before. The cost record that balances the shards names 24 of 277 guards and weighs the rest at the 60 s floor. Six shards spread the same work under the unchanged cap. The selftest's shard fixtures now derive the count fromEXPECTED_SHARDS.docs/evidence/mutation-cost-baseline.jsonis re-recorded from that branch's full Linux run (36 guards over the floor, up from 24):hook_guard_bashmeasured 9,810 CPU-seconds against its recorded 1,795, the main cause of shard 4's length (#2218). -
The v1.158.0 proof's
mutation coveragegate is green again —scripts/mutations/extract_release_notes.py(#2206, the v1.158.0 proof). The proof's--require-slowrun found 6 of 4732 mutations wrong, and CI's--fastskips that gate, so every PR was green.extract_release_notes. Its staged tempdir now carriesplugins/rails-stack/.claude-plugin/plugin.json(#2182 moved rails-stack's version there) andplugins/nextjs-stack/.claude-plugin/plugin.json. A missing-file mutant is caught by its own fixture again.- The four git-shim guards.
git_shim,git_shim_hook,git_shim_real_gitandgit_shim_selftest_skipstagescripts/fixtures/claude_code_git_config.json, the recorded Claude Code git calls the #2129 case reads. They are no longer INERT. wip_commit. A machine's system git config can setcore.hooksPath; Homebrew's sets.githooks. Then a hook in.git/hooksnever runs, and dropping wip_commit'score.hooksPath=/dev/nullsurvived. A new selftest row plants the hooks where git resolves them (rev-parse --git-path hooks), so the mutant dies on every machine.
-
The brain index loads only live lessons: 9 enforced ones become one-line pointers to their check, 8 archived ones move to history —
docs/brain/MEMORY.md,docs/brain/history/archived-lessons.md(#2146). From the prose-rule audit of 2026-10-18 (maintainer-approved via the coordinator). An enforced lesson's index line now names the check that makes it true (its memo stays); brain line 70 says thatgit stash popis still uncovered. The eight archived lessons (one-off, superseded or settled in code) are relocated verbatim, index line and memo, todocs/brain/history/, never summarised; a line at the foot of the index points tohistory/archived-lessons.md, so they stay findable. The other 56 lessons are recurring and unenforced; they are mapped to #2147–#2158. Our own design, not a framework claim. -
Added a re-checkable inventory of the Rails assumptions in the four flows (
scripts/rails_assumptions.py, policydocs/architecture/rails-assumptions.policy.json, generateddocs/architecture/rails-assumptions.md): every file that names a Rails thing has a decision (rails-stack,detector,rewordorneutral) with the reason, setup-flow is decided section by section, and each move is an issue under #2162. Maintainer-only, no plugin code moves;--checkis a doctor gate; tool and gem names match in any case, a file decided neutral is pinned to its recorded hit-line count, and the drift half of--checkand the four-flow scope are guarded by mutations. (#2164) -
A gate proves the shipped stack markers detect real projects —
scripts/check_stack_markers.py(#2165, e6's review of #2198). It runs hand-written Next.js, Supabase and Vercel projects, plus three near misses (a react-only app, asupabase/directory with noconfig.toml, an empty project), through the realdetect_stack.pyagainst the shippedplugins/nextjs-stack/stacks.json, and states the stacks each must produce.detect_stack.py --checkvalidates a manifest's shape, so a well-formed typo (nexttonxt) passed every check while real detection broke. Registered inmaintainer_doctor.pyas "stack markers detect their projects"; its guard (scripts/mutations/check_stack_markers.py) mutates the shipped manifest four ways, each caught by the fixture it names. -
The gates follow setup-flow's Rails repairs into rails-stack —
scripts/check_manifest_paths.py(#2180).- The paths gate.
checks.json pathsreads each stack'ssetup_section(rails-stack'ssetup/rails.md) as a surface of the plugin that shipsdetect_stack.py, and of no other plugin. That plugin's setup-flow is what runs those sections, soarchitecture-boundariesstill finds itsArchspec.rb. A section that escapes its plugin vouches for nothing. Selftest 18 checks; guard 9 mutations, all caught. - The markdown linters.
lint_markdown_shell.pyandlint_markdown_code.pyaddsetupto their roots, so the moved blocks are still linted.
- The paths gate.
-
The doc-pointer lint checks shipped text against the install layout —
scripts/lint_self_consistency.py(#2182, release blocker for v1.158.0). Underplugins/, askills/<name>/…pointer resolves againstplugins/rails-stack/(where an installed rails-stack hasskills/), so it is still verified and a typo still fails; aplugins/rails-stack/skills/…pointer in shipped text is now a finding ("clone-only path in shipped text"), even when the file exists. Repo docs keep the clone path, resolved from the repo root. New cases and two guard mutations; the #100 mutation's anchor follows the rewritten code. A second rule,clone-path-in-shipped-file, scans every file type underplugins/(a printed hint, a json, a docstring, a README) forplugins/rails-stack/skills/, except an allow-list of clone-aware code, each with its reason (doctrine_path.py,guard-claims.sh,pr_template.py,check_hook_gates.py,worktree_teardown.py,session_coordinator.py). -
Our own gate fixtures no longer fail when our rails-flow
git-shimis on PATH —scripts/hermetic_git.py(#2190). Every agent session runs with the shim first on PATH, and it rightly refuses a fixture'sgit add .,git add -Aorgit config filter.*. So four gates were red in every agent shell and green only with PATH stripped by hand:check_upstream_docsselftest;vendored alone(the wiki and generated-docs selftests);- the
where-stoppedhelper; - the doctor's own selftest.
hermetic_git.env(), which builds the environment of every subprocess the gate and mutation runners launch, now drops the rails-flow shim from PATH. It matches the session hook's own pattern (rails-flow(/<version>)?/git-shim), so another tool'sgit-shimdirectory stays. Measured through that environment with the shim on PATH, the four gates go from exit 1 to exit 0.scripts/mutation_check_selftest.pyproves it with a stub shim that refuses every command, first on PATH, while a fixture'sgit initandgit add .still run. The guard has two new mutations (the strip dropped, and the pattern widened to anygit-shim), 7 of 7 caught. -
A generated page classifies every shipped hook, command, agent, skill, script and gate as neutral, rails, nextjs or mixed —
scripts/component_classes.py,docs/architecture/component-classes.html(#2192). The class is declared once indocs/architecture/rails-assumptions.policy.jsonand verified by the scan: a component declared neutral that names a Rails or Next.js thing fails, an unclassified component fails, a mixed one needs its seam and plan issue. Gate rows and hooks take the class of the script they run, and mutation guards and selftests that of the script they test. Maintainer-only, no plugin code moves;--checkis a doctor gate and the page is built throughrebuild_generated.py. -
The Rails-assumption inventory sees Rails idioms named without the word Rails —
scripts/rails_assumptions.py(#2196 review).- The new pattern.
rails-idiomcoversCurrent.*,performas code orperform_later/perform_now,form_with/form_for, the association macros and the controller callbacks. The English verb "perform" and the word "current" are not hits. - The re-measure. It finds 21 files, every one already classified (rails-stack, detector or reword), so no unclassified file. Setup-flow's section table loses the template row: it has no hit left.
- Proof. The selftest has 4 new checks; the guard is 17 mutations, all caught.
- The new pattern.
1.65.0
- The git shim admits the config pairs Claude Code's own git calls carry, so
claude plugin marketplace updateworks with the shim on PATH —plugins/rails-flow/git-shim/git(#2129). The shim refusedGIT_CONFIG_KEY_0=credential.interactive, so Claude Code's marketplace refresh failed and plugin auto-update silently stayed on the old version. Measured with a logging git: the refresh carries 38 pairs in the environment and 43 as-carguments. Admitted now, exact key (case-insensitive) and exact value, no prefix or wildcard:credential.interactive=false;core.fsmonitor=andcore.askPass=EMPTY only;protocol.<ext|fd|git|ftp|ftps>.allow=never;submodule.recurse=false;log.showSignature=false;format.pretty=medium;init.defaultRefFormat=files;hook.<name>.enabled=falsefor the 28 listed hook names, which sets the hooks-off rule (admitted only on commands that run no hook:ls-remote,config,remote, …); andcore.sshCommandwith exactlyssh -o BatchMode=yes -o StrictHostKeyChecking=yes, the one program-running key (git's defaultsshplus two options that forbid prompts and unknown hosts). Every other key, value or hook name stays refused. The capture is a fixture (plugins/rails-flow/scripts/fixtures/claude_code_git_config.json) the selftest replays, with a neighbour and value-variant row per pair, and nine mutants. Our own design: owner-approved 2026-10-18. - **One stack detector reads each stack plugin's own markers — `plugins/...
v1.157.6
1.64.0
- The SessionStart hook leaves exactly one git shim on PATH, the running version's —
plugins/rails-flow/hooks/scripts/session-start.sh(#2110). The hook appendedexport PATH=<shim>:"$PATH"toCLAUDE_ENV_FILEonce per DISTINCT line, so after a plugin update the env file held every version's line and an OLDER shim stayed first (a session had 1.61.0 ahead of 1.62.1, with 1.59.0 first and last in another), so the fixes of the newer shim never ran. The written line now strips every rails-flowgit-shimdirectory (the cache layoutrails-flow/<version>/git-shimand a checkout'srails-flow/git-shim) from PATH before prepending this version's, and an earlier version's line is dropped from the env file (other hooks' lines stay); when the strip cannot run or leaves nothing PATH is kept as it was, so a failure never empties it.plugins/rails-flow/scripts/git_shim_selftest.pygains rows for the rewrite, for one shim under bash and zsh (sourced twice stays one), and for the fallback;plugins/rails-flow/scripts/mutations/git_shim_hook.pygains four mutants and two stale anchors are repointed. Maintainer decision: the fix designed on #2110 (rewrite the env file without earlier shim lines, and strip every*/rails-flow/*/git-shimentry before prepending). - A
production-configgate readsconfig/environments/production.rb—plugins/rails-flow/scripts/check_production_config.py(#2120, part of the secure-by-design audit #2115). Production configuration was validated by nothing in the toolchain, althoughauth-security.mddocuments the worst trap (config.hostsis empty in production and does nothing); a downstream app shipped with it commented out (Retask #2060: Host-header and DNS-rebinding protection off, an emailed link built from the request host). The check is static and offline. It evaluatesconfig/application.rb, thenconfig/environments/production.rb, thenconfig/initializers/*.rbas ONE sequence in Rails' load order (the last setting wins, so production.rb'sconfig.hosts = nilor.clearempties what application.rb set), after a Ruby-aware scanner removes comments only (strings,#{},%w[], regexps, heredocs and=begin/=endare understood). A setting made only conditionally (anif/unless/caseblock, a trailing modifier, a ternary, anENVvalue) does not count as made. Rules:hostsnon-empty (=,<<,+=,.push,.concatcount;= nil,= [],.clearempty);config.force_ssl = trueliterally and unconditionally (assume_sslalone is not it);consider_all_requests_localnot true (a conditional or non-literal value is unjudgeable and a finding); no wildcard Rack::Cors origin ("*",%w[*], a constant or variable bound to one,/.*/or/.+/, a block returningtrue; matched structurally, not by a bare*); no dev-only engine or route (letter_opener, rails_db, GraphiQL,/rails/info,/rails/mailers) outside a development guard, and no admin or job dashboard (Sidekiq::Web, MissionControl::Jobs::Engine, PgHero, Blazer, Flipper::UI) outside a development guard or an access constraint (constraints/authenticate). Exemptions are declared per rule, with a non-empty reason, in.rails-flow/production-config.json(an unknown rule, a missing reason and an exemption for a rule that passes are findings; thehostsreason can say the host is filtered at the proxy, named). Credential literals are not checked: secret detection is #2121.plugins/rails-flow/checks.jsongains theproduction-configentry (applies whenconfig/environments/production.rbexists), with a--selftestand a mutation guard. Maintainer decision: scope and the one-exemption-file shape confirmed on #2120 by the coordinator (credential-literal rule dropped in favour of #2121); the load-order, conditional, scanner and CORS/dashboard widening are the independent review of #2134. cd <worktree> && gh pr ready <n>is accepted, judged on that worktree's HEAD record —plugins/rails-flow/hooks/scripts/guard-pr-ready.sh(#2132). The guard refused every compound command, so a PR whose head is checked out in another worktree could only be marked ready by a session started inside it (the Bash tool does not carry a barecdto the next call); it stranded #2131. Now exactly one extra segment is accepted: acdto one plain literal path, joined by&&, the raw command at most 4096 characters;lib/command_cwd.pyjudges the record in that directory, and a cd cannot move HEAD. Everything else stays refused: a second segment,;, a second cd, a quoted or variable or substituted path,-R. 19 fixture rows, 3 mutants; the shell-adversary found nothing.toolchain-selftestsruns one version per installed plugin, not every cached version of rails-flow, so an older cacheddocs_layout.pyno longer fails the current git shim and blocksgh pr ready—plugins/rails-flow/scripts/check_toolchain_selftests.py(#2137). In the installed layout (<cache>/<plugin>/<version>/) its own flat walk tookparents[1]for the plugin directory, so "siblings" were other VERSIONS of rails-flow and the sibling plugins (qa-flow, design-flow) were never reached: on a Retask worktree it ran 124 selftests, 4 of them rails-flow versions, and the 1.60.1 and 1.61.0docs_layout.py(no.git/rails-flow-fixturemarker) failedgit add -Aunder the 1.63.0 shim. It now usesproject_gates.plugin_roots, the walk #706 already fixed forproject_gatesitself: the same worktree runs 53 selftests with 0 findings. A fake-cache-layout selftest and a guard mutant that restores the flat walk. Our own design.
1.76.0
- MCP write tools: a "before you add a write tool" checklist —
skills/rails-8/references/mcp-server.md(#2052, #2051). A new §6 opens with "If you cannot answer these, do not ship a write tool." and asks five decisions each project records in its CLAUDE.md: who may write, how a change is confirmed, what stops a retried call writing twice, how the audit tells agent writes from human ones, how a wrong write is undone. The scope change is the owner's ruling on #2056 (a checklist, not rules); every spec-cited mechanism isdoctrine-verifierCONFIRMED against MCP revision 2026-07-28 (verdicts on #2051), and the three gaps the spec leaves are labelled our design. Registered as advice inscripts/doctrine_map.py. - The write-tool checklist says which parts are our reading and which spec MUSTs are conditional —
skills/rails-8/references/mcp-server.md(#2056, review of #2113). "A preview token is a state handle" is now labelled our reading, and §6 item 2 quotes MRTR's tworequestStateMUSTs with their conditions (integrity "If requestState influences authorization, resource access, or business logic"; server-side enforcement for a requestState that "must be consumed at most once"), wording verified on #2051.
Install: /plugin marketplace add fmanimashaun/claude-skills
v1.157.5
2026-10-17
changelog_fragments.py --foldmatches a fragment's section by its name or its whole heading, never by prefix —scripts/changelog_fragments.py,changelog.d/README.md(#2099). A fragment'ssection:used to be a PREFIX of a##heading, so #2035'ssection: rails-stack (rails-8 + hotwire ...matched an old 2026-09 rails-stack heading that still held a stale### Unreleasedand the arm of v1.157.4 filed the bullet there; it was moved by hand. Nowsection:is the heading's name (its text before the first(:rails-flow,Repository hygiene) or the whole heading; a prefix of a title matches nothing and the error names the headings that start with the same word; two different headings with one name (rails-stackhas two) are an error naming both, and a### Unreleasednever breaks the tie (--intostill chooses by the armed release block). The tworails-stackfragments already inchangelog.d/now carry the whole heading. The selftest gains rows for two sections sharing a prefix with a stale### Unreleased, and the mutation guard gains two mutants (prefix matching restored;### Unreleasedbreaking a tie again). Maintainer decision: the issue's own fix, "match the section heading exactly (or by an explicit key), refuse an ambiguous match by name".
1.63.0
- A worktree teardown that drops its databases and stops its own servers —
plugins/rails-flow/scripts/worktree_teardown.py(#2058).git worktree removeends a checkout and nothing else, so every worktree left its development, test and_p<N>shard databases behind (113 on one machine). The script refuses a dirty tree, an unmerged head, a locked worktree and the main checkout before touching anything; stops only the PIDs in the worktree's owntmp/pids/*.pidwhose working directory is inside it (never by pattern); drops exactly the databases its ownconfig/database.ymlresolves to and their_p<digits>shards withdropdb --if-exists --force, never one the main checkout shares; removes the worktree without--force; and checks that nothing is left, failing closed when PostgreSQL cannot be asked. It has a--selftest, a mutation guard (plugins/rails-flow/scripts/mutations/worktree_teardown.py, 15 mutations) and--check-wording, a doctor gate that fails if the session-start line (plugins/rails-flow/hooks/scripts/lib/worktree_guard.py) or the handoff round (plugins/rails-flow/scripts/wrap_round.py) stops naming the script. Verified for PostgreSQL 13 or later (--forcefirst appeared in 13; the 18 docs list--force) and current git, recorded indocs/evidence/audits/2026-10-14-worktree-teardown-2058.md; the design is the owner rule recorded on #2058 (2026-10-14). - The shim's
git configallowlist now has rows and mutants for the three branches nothing held:--, an attached value (--file=x,--type=bool), and theLC_ALL=Cbyte strip —plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim.py(#2092, follow-up to #2062).config -- user.name b,-- user.name -x,--file=…and--type=…run, and a key outside the allowlist after--or beside an attached value is still refused; one mutant each for the--arm, itsendoptsbranch and the--*=*skip. TheLC_ALL=Cstrip is observable only on macOS bash 3.2 underen_US.UTF-8(measured:é, full-widtha,ß,ı,ſpass without it; on Ubuntu 24.04's bash 5.2 it differs in no locale there), so its row runs each usable locale and its mutant is held on every platform by a source row. Test-only; no shim behaviour changes. Our own design. - Hook-gate fixtures exec the real git, not the git-shim —
plugins/rails-flow/scripts/check_hook_gates.py(#2100). Three fixture stubs exec'dshutil.which("git"), which in a Claude Code session is the rails-flow git-shim; the shim's "first git that is not a shim" (#2003) was the stub itself, so the two exec'd each other until the hook's budget ran out.hook_worktree_guard_failopenread INERT (2 checks STARVED, hook CPU 0.2 s) on every local sweep while CI stayed green. A newresolve_real_git()skipsgit-shimdirectories, as the shim and #2091's selftest fix do; two checks pin it, one with a fake shim so it fails on a machine without one. - The hook-gate harness drives hooks with no git-shim on PATH, as production does —
plugins/rails-flow/scripts/check_hook_gates.py(#2104). Measured: the Claude Code process that spawns hooks has nogit-shimon PATH;session-start.shadds it throughCLAUDE_ENV_FILE, which reaches the Bash tool only. Run from a session, the harness inherited the shim-first PATH, so the release gate's owngitcalls went through the shim:release_gate_refsfailed 7 of 103 andrelease_gate_repos25 of 243 on clean dev (both green on CI), and thehook_release_gate_refs/_reposguards read INERT on a local sweep.main()now removesgit-shimdirectories before any fixture runs; two checks pin it, one on a fixed PATH string so it fails on a machine with no shim. check_toolchain_selftests.pyruns every shipped selftest with the session's project named, so a session withoutCLAUDE_SESSION_PROJECT_TOPno longer fails them ongit add -A—plugins/rails-flow/scripts/check_toolchain_selftests.py,plugins/rails-flow/scripts/mutations/check_toolchain_selftests.py(#2111). The rails-flow git shim lets a selftest stage its own fixture repository only when it knows the session's project, and the SessionStart hook exports that only when it started in a repository; in a session without it,project_gatesreportedtoolchain-selftestsERR ondocs-layout,project-wiki-drift,generated-paths-untouchedandmigration-order, which blocked every Retaskgh pr ready. The check now sets the variable to the cwd's git toplevel when it is unset or empty, never overriding a value the caller set; the shim is unchanged. Measured from a Retask worktree with the variable unset and the 1.62.1 shim first on PATH: 4 findings before, 0 after (52 selftests).
1.75.0
- Postgres index health and bloat, measured —
skills/rails-8/references/observability.md(#2045). Five catalog queries (window, unused, invalid, duplicate, unindexed foreign key), each run onpostgres:16against a planted case, and a cheap-screen/on-demand-measure bloat rule with its ownpg_stat_scan_tablesrole (our design, recorded on #2045). Measured correction to #2037's issue text: after a crash resetpg_stat_database.stats_resetstays null, so the window isgreatest(stats_reset, pg_postmaster_start_time()). Docs claimsdoctrine-verifierCONFIRMED on PostgreSQL 16; verdicts and runs:docs/evidence/audits/2026-10-16-observability-postgres-index-bloat-2045.md. rails-8doctrine moves its PostgreSQL baseline from 16 and 17 to 18 —skills/rails-8/references/deployment-kamal.md,skills/rails-8/references/observability.md,skills/rails-8/references/models.md(#2057). The Kamal accessory example now usespostgres:18and tells the reader the data path depends on the image's major: from 18 the official image declaresVOLUME /var/lib/postgresqlandPGDATA=/var/lib/postgresql/18/docker(17 and earlier keep/var/lib/postgresql/data), a mount at the old path on 18 stops the container from starting (measured onpostgres:18.6), and a major version is never a tag bump (dump and restore orpg_upgrade). The version notes inobservability.mdandmodels.mdare re-based on the PostgreSQL 18 docs,stats_since/minmax_stats_sinceare stated as present since 17, 18's constant-list squashing is noted, and one sentence is corrected:queryidsplits when a referenced function is dropped and recreated, not a table (a recreated table can make two queries count as the same). Verified bydoctrine-verifieragainst the PostgreSQL 16.0, 17.0, 18.0 release notes and 18 docs and the Docker Hubpostgrespage (docs/evidence/audits/2026-10-16-postgres-18-baseline-2057.md); three sentences from #2047 are INCONCLUSIVE and left as they were or labelled, and the/data-mount consequence on 18 is now a measured fact (a6, 2026-10-16); the design decision is the owner's (everything on 18, 2026-10-14).parallel-session-lanetells a session to end its worktree with the teardown, not a baregit worktree remove—skills/parallel-session-lane/SKILL.md,skills/parallel-session-lane/references/one-issue-at-a-time.md(#2058). Rule 3 ("Clean up when done") now points atworktree_teardown.py, which stops the worktree's own servers, drops its databases (dropdb --if-exists --force, PostgreSQL 13 or later; it can still fail while a prepared transaction or an active logical replication slot holds the database) and then runsgit worktree remove(never--force); a bare remove leaves every database behind. Verified bydoctrine-verifieragainst the PostgreSQL 18 and git docs (docs/evidence/audits/2026-10-14-worktree-teardown-2058.md).- Three Postgres sentences the #2057 pass left unverified, now measured on 18.6 —
skills/rails-8/references/observability.md,skills/rails-8/references/models.md(#2107). "Created per database" and "a generic plan can differ from the custom plans" are CONFIRMED, quoted and measured; "apg_read_all_statsreader can still readn_dead_tup" was true but misleading (a role with no grants reads it too) and is reworded. Verdicts and the run:docs/evidence/audits/2026-10-16-postgres-inconclusive-2107.md.
Install: /plugin marketplace add fmanimashaun/claude-skills
v1.157.4
2026-10-16
- The agent-surface research is kept in the repository, as evidence —
docs/evidence/audits/2026-10-14-agent-surface-read-research.md,docs/evidence/audits/2026-10-14-agent-surface-write-research.md,docs/evidence/audits/2026-10-14-production-monitoring-research.md,docs/evidence/audits/2026-10-14-write-tools-epic-review.md(#2061). The research behind #2033 to #2040 and the write-tools epic #2050, and the independent review of that epic, had lived in a directory outside the repository. Each source carries its VERIFIED, SECONDARY, RECALL or NOT FOUND label, and none of it is doctrine. The write-side report's section on Retask, a private application, is condensed in this public copy to conclusions the public issues already state; its file paths, limits, order of checks and audit columns are left out.
1.62.1
- The git-shim selftest finds real git past an installed shim —
plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim_real_git.py(#2091).REAL_GITcame fromshutil.which("git")on the ambient PATH, where the SessionStart hook puts the INSTALLED shim first. The fixtures' setup writes then went through that older shim, which refused them, and 14 checks failed for the wrong reason ("is not a git command").real_git_onnow skips agit-shimdirectory and falls back to/usr/bin/git. Measured on macOS with the 1.60.1 shim first on PATH: 1088 checks passed in 43 cases, where 14 had failed before. A new case runs a fake shim that exits 99; a guard has two mutants (skip removed, fallback changed). Test-only; the shim is unchanged. git configwrites through the git shim are an allowlist —plugins/rails-flow/git-shim/git,plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim.py(#2043, the coordinator's decision, a follow-up to #2021). Blocking program-running keys one at a time never closed the class: a0 measured a dozen more after #2021's eight (pager.*,core.askpass,core.gitProxy,diff.*.textconv/command,filter.*.clean/smudge/process,merge.*.driver,*tool.*.cmd,web.browser,uploadpack.packObjectsHook). A write is now let through only forCONFIG_WRITE_ALLOWED: identity, signing, branch tracking,remote.*.url/fetch, a few pull/push/fetch preferences, plusalias.*and the credential-helper keys, whose dangerous values have their own rules: acredential.helpervalue is refused when it starts with!or/or holds any character outside a plain-word set (letters, digits, space,._:/@=+,%-), because git runs every helper throughsh -candfoo; touch /xran a command (Fable, attack on #2062). That set was measured from our scripts and the downstream fixtures. Every write spelling is judged: theset/unset/editsubcommands, the write flags in git's unique-prefix spellings, and the oldkey valueform, with option values never read as the key.--editis refused, and so is a combined short-option cluster (-ze,-zf FILE,-fFILE: git reads it letter by letter, so it can edit or move the key; found by the commit security review), and so is any long option that is not an exact, known flag: an abbreviated VALUE option (--fil x=--file x) moves the key the same way (found by a second review). #2021's per-key program-key rule is removed as superseded, so a READ of such a key (git config --get core.editor) now runs.core.fsmonitor/core.sshCommandstay refused even to read (the #1789 hooks rule), and the section-rename refusal stays:alias.*is allowlisted, so renamingalias.xontocoreis stopped only by it. A selftest case with a row per refused class, the allowlist and the read forms; sixteen mutants, one per mechanism and one per refused class. Our own design; no framework claim.- The
docs_layout.pyselftest marks its fixture repository, so it runs under the git shim —plugins/rails-flow/scripts/docs_layout.py(#2085). The selftest staged its fixture withgit add -Awithout the.git/rails-flow-fixturemarker, so the shim refused it andtoolchain-selftestserrored in any session that has the shim (it passed only with none on PATH, as in CI). It now writes the marker right aftergit init: under the 1.61.0 shim the selftest gives 49 checks, 0 failures (it died atgit add -Abefore). docs_layout.pyno longer calls a measurement script "code in docs/" when the report beside it runs it by path —plugins/rails-flow/scripts/docs_layout.py(#2093). The three Ruby scripts of the native-code benchmark underdocs/evidence/benchmarks/2026-09-24-native-code/ruby/madeproject_gates.pyrecord a red sweep for every branch that contained them, so the pr-ready guard refusedgh pr readywhile the PR's own gates job was green. They are the reproduction: the report's Commands block runsruby --yjit ruby/bench.rbfrom that folder, so moving them toscripts/would break every command and split them from the siblingrs/. The exemption follows the existing canvas-module carve-out and is narrow: a script is evidence only when a realREPORT.md(a symlink is not read) inside its own bundle (docs/evidence/<kind>/<run>/or deeper, never theevidence/or kind folder) names its path from that folder as a standalone path with at least one folder in it, outside HTML comments (a fenced block counts: that is where the Commands are). A path that is only the tail or head of a longer one (myruby/bench.rb,bench.rb.bak,bench.rbx), a bare file name, a script at the bundle root, a script the report never names, a report outsidedocs/evidence/and a report at the kind folder all leave the script code. Ten selftest cases (two positive, eight negatives) and eight mutations inscripts/mutations/docs_layout.pyhold it, so the harness catches each rule being dropped. The sibling.rsfiles were never flagged because.rsis not inCODE_EXT; that is left as it is. Our own design (a layout rule has no upstream), recorded on #2093.
1.74.0
rails-8mcp-server.mdsays how to design, bound, type and test an agent's tools —skills/rails-8/references/mcp-server.md(#2033). A new section 5, every rule with its source and revision date (spec 2026-07-28, the Anthropic tools post of 2025-09-11, Claude Code's MCP docs, the Inspector docs), advice marked as advice: descriptions and names, bounded output and Claude Code's 25,000-token default,outputSchema/structuredContent/isError, the annotations beyond the two required, Inspector in CI and an evaluation step. The Ruby SDK is pinned atmcp1.7.0 (it was 1.6.0) and the file now says the gem supports revision 2026-07-28 and serves it statelessly since 1.2.0 (the legacy handshake still defaults to 2025-03-26);validate_tool_call_resultsis opt-in. Write tools are out of scope for now (#2034; tracked in #2049). Verified by an independentdoctrine-verifier-role read,docs/evidence/audits/2026-10-14-mcp-server-tool-design-2033.md; two unquoted points stay out. Claude Code's over-limit behaviour carries the page's qualifiers (successful results saved to a file, error text truncated, 50,000 characters for a tool without its own limit).- MCP server authorization gains the 2026-07-28 spec points, and the rate-limit and sanitize MUSTs —
skills/rails-8/references/mcp-server.md(#2035). §2 now says: a401SHOULD carryscopeand a too-narrow token SHOULD get403 insufficient_scopewithscopeandresource_metadata;tools/listMAY vary by the request's authorization and MUST NOT vary per connection; clients are identified by Client ID Metadata Documents (SHOULD; DCR a MAY, both unchanged from 2025-11-25), and Dynamic Client Registration is newly deprecated in 2026-07-28 with at least a twelve-month window; and RFC 9207issis SHOULD-emitted by the authorization server, which MUST advertise it, while a client MUST validate a presentiss. §3 rule 5 adds that servers MUST rate limit tool invocations (keyed by the token's user, linkingauth-security.md's rate-limit section) and MUST sanitize tool outputs (the read side of #2034). §4 adds the rate-limit request spec and its per-user control. Verified bydoctrine-verifieragainst the MCP specification revision 2026-07-28 (authorization, tools, changelog); citations and version boundaries indocs/evidence/audits/2026-10-14-mcp-authorization-2035.md. - Postgres production signals: what
pg_stat_statementscannot tell you,auto_explain, logging, least privilege, standbys —skills/rails-8/references/observability.md(#2037). Six bullets, eachdoctrine-verifierCONFIRMED against the PostgreSQL 16 docs (version boundary: 16;stats_since/minmax_stats_sincenamed as 17+). Verdicts and citations:docs/evidence/audits/2026-10-14-observability-postgres-2037.md.
Index health and bloat (the issue's items 7-8) need a run on a real database and moved to #2045. - rails-8
observability.mdsays how to find slow pages and N+1s on a live app, and what the query-log tags are —skills/rails-8/references/observability.md(#2038). A new §7 subsection: production N+1 comes from sampled spans (Prosopite's README guards its examples withunless Rails.env.production?and says nothing on production use, so it stays the post-fix regression test), Sentry's published N+1 rule as a threshold template (similar sequential spans, over 50 ms combined, usually five or more; configurable), how to sample (traces_sample_ratevstraces_sampler;OTEL_TRACES_SAMPLER=traceidratiowithOTEL_TRACES_SAMPLER_ARG), and what the Rails Pulse README does and does not say (drops under load; no sampling or SQL-literal redaction described; no default thresholds documented). §6 gains thequery_log_tagsdefaults, the:sqlcommenterdefault fromload_defaults 7.1, the:source_locationcost, and a note that thepg_stat_statementsqueryideffect is unmeasured. Each point cites the p...
v1.157.3
2026-10-16
- AGENTS.md states a rule: after a red run, re-run only what failed, and run the full sweep once at the release run —
AGENTS.md(#2077). Read the log, name the failing gate, guard or job, reproduce just that item (mutation_check.py --guard <name>, one selftest, or "Re-run failed jobs"), and prove a fix by that item on its own dev PR. The owner's rule, 2026-10-15, after a full 2-hour local proof was started for one Mac-only selftest failure. settings.example.jsonlists the fourgh runpermissions that re-running only the failed CI job needs —.claude/settings.example.json(#2079).gh run list,view,watchandrerunare named, with a note to put the same lines in~/.claude/settings.jsonto share them across projects; a read of a release workflow's jobs was refused by Claude Code's permission check as a production deploy until a rule allowed it (2026-10-15). The owner added them to their user settings the same day. It also namesgh pr mergeand records what the maintainer's machine allows that the example deliberately leaves out (deploys, one private repository's admin merge, MCP tools). The example stays inert: nothing reads it.
1.62.0
- The
context_nudge_compactmutation guard stagesclaim_coordinator.mjs, so its unmutated selftest no longer fails and the release's mutation shard goes green —plugins/rails-flow/scripts/mutations/context_nudge_compact.py(#2087). #2070's unit test (session-reset.unit.mjs) importsscripts/claim_coordinator.mjs; thesession_resetguard declared it inneeds, the second guard that runs the same selftest did not, so in the staged tempdir the selftest failed and the guard read INERT. That failed shard 3 of the v1.157.3 release run. Every guard that runs that selftest now stages the file (checked: only these two do); all 9context_nudge_compactmutants are caught. Maintainer tooling only. /rails-flow:claim-coordinatortakes the coordinator role for the session that runs it, with no trip to the session that holds it —plugins/rails-flow/scripts/claim_coordinator.mjs(#2070). Until now a session elected the wrong role could only be fixed by restarting it withRAILS_FLOW_ROLE=coordinatoror by going to the other session. The command passes the Bash tool's$PPID(the Claude Code process: measured, the tool's shell is its child) and$CLAUDE_CODE_SESSION_IDto the election script's force path, which writes the claim for that pid. Every session now re-reads the claim at each turn start (syncRoleinplugins/rails-flow/hooks/session-reset.mjs), so the claimer becomes coordinator and the previous holder becomes implementation at their next turn, no restart; aRAILS_FLOW_ROLEoverride is never rewritten. Run it only when the owner says this session coordinates. Five selftest rows and four mutants. Not measured live: that the engine's$.session.id()equals$CLAUDE_CODE_SESSION_ID— the sync compares pids, not ids, so the claim holds either way. Our own design; the owner's request, 2026-10-14.- A real session whose prompt mentions
--bg-spareis no longer mistaken for a pre-warmed spare —plugins/rails-flow/hooks/session-reset.mjs(#2072). The spare check matched the text--bg-spareanywhere in a process's command line, soclaude -p "fix the --bg-spare election"read as a spare, never claimed and got no role. It now matches the spare's own shape, the token sequencebg-spare --bg-spare(the shape recorded on #2068), so a prompt that merely names the flag still claims. One selftest row and one mutant. Known limit: a prompt that contains the exact wordsbg-spare --bg-sparestill reads as a spare; it fails toward fewer coordinators, never more. - The git-shim selftest reads only the fixture's own
credential.helper, so it passes on a machine whose system gitconfig sets one —plugins/rails-flow/scripts/git_shim_selftest.py(#2073). The #2021 case asserted that--get-all credential.helperwas exactlystore; Xcode's system gitconfig already setsosxkeychain, so on a Mac the check failed ("a named credential helper did not land"), thegit shimgate went red and the three guards that stage this selftest (git_shim,git_shim_hook,git_shim_selftest_skip) reported INERT. It now reads--local. Maintainer tooling only; the shim is unchanged. - The
issue_labelslinear-time selftest no longer fails a release on one noisy timing —plugins/rails-flow/hooks/scripts/lib/issue_labels.py(#2075). The selftest proves linear time by timing a half-size and a full-size input and requiring a ratio under 3.0. On a shared runner one measurement came out at 3.4 (v1.157.2's release run), which turned the guardhook_issue_labelsINERT and failed the release's mutation job. A borderline ratio is now measured again, up to three attempts keeping the lowest; a quadratic verdict measures about 4 or more every time, so it is still refused (the guard's three quadratic mutants stay caught). Maintainer tooling only; no behaviour of the shipped hook changes.
Install: /plugin marketplace add fmanimashaun/claude-skills
v1.157.2
2026-10-14
- A timeout inside an UNMUTATED selftest reads STARVED (not judged), not FAIL: it is retried once, and an all-starved run exits 3 —
scripts/mutation_check.py,scripts/mutation_check_selftest.py,scripts/mutations/mutation_check_harness.py(#2000). On a loaded laptop a selftest's own 20 s git call times out, the selftest records that as its failure and exits 1, and the harness read it as "the unmutated selftest fails":cannot be narrowedor INERT, a FAIL, with no mutant ever having survived (three runs of #1994 reported 27, 11 and 8 of 100 failed, every one aTimeoutExpired, none a survivor). Now a baseline or a narrowed control whose output saysTimeoutExpired ... timed out afteris run once more; when it is starved again it is listed asSTARV/ NOT JUDGED, and a run in which nothing failed but something was starved exits 3, the code the doctor already treats as a skip (a proof refuses it), never 0 (a pass) and never 1 (a failure). A failure that is not a timeout stays INERT, a survivor stays a failure, and a MUTATED run's timeout is untouched. Selftest rows for the retry, the starved baseline, the starved control, the real failure and the process exit; seven mutants hold them. Our own design; the coordinator's assignment on #2000. mutation_check.pyreads an unmutated selftest as STARVED only when every failure line in it is a timeout row —scripts/mutation_check.py,scripts/mutation_check_selftest.py,scripts/mutations/mutation_check_harness.py(#2014, refs #2000, found reviewing #2011).selftest_timed_out()was a substring test, so a real failure row beside one timeout row read STARVED (exit 3, a skip) and hid an INERT guard behind a loaded machine. A selftest tally line is not a failure; any other failure-shaped line is. A selftest fixture with a real failure beside a timeout and a mutant that restores the substring test. Our own design.- The STARVED rule's tally-header exemption has a selftest row and a mutant —
scripts/mutation_check_selftest.py,scripts/mutations/mutation_check_harness.py(#2017, from a2's review of #2016)._SELFTEST_SUMMARYkeeps a selftest's ownSELFTEST FAILED -- N failure(s)line from counting as a failure row, but no fixture printed that header, so a pattern that never matched survived. A selftest printing the header and only timeout rows must read STARVED, and a mutant that stops the header matching reads INERT instead. Our own design. - A bare dollar-digit in a command's or skill's markdown fails the shell lint —
scripts/lint_markdown_shell.py,scripts/mutations/lint_markdown_shell.py(#2022). A newpositional-substitutionrule scans everycommands/*.mdandSKILL.md(fences and prose, since both are substituted) for$0..$9not preceded by a backslash; its selftest has a bad and a good twin for a fence, prose, an escaped token,$$and a file Claude Code does not expand, and three mutations hold it.
1.61.0
- A pre-warmed
claude bg-spareprocess no longer wins the coordinator election, so a real session can be coordinator —plugins/rails-flow/hooks/session-reset.mjs(#2068). Claude Code keeps a spare process ready (claude bg-spare --bg-spare ...); it starts with no turns, so the election read it as a new session and it claimed the role, leaving every real session "implementation" (a resumed session never claims) and automatic compact and clear off everywhere. The election script now never lets a process whose command line carries--bg-spareclaim (it reportsspare, which parses to no role) and no longer counts a claim held by such a process as live, so the next real start replaces it;RAILS_FLOW_ROLE=coordinatorstill forces a claim. Three selftest rows (the spare never claims, a spare's claim is replaced, a live real coordinator is still not displaced) and two mutants. Known limit: a real session that starts life as a spare, if the engine does not firesession.startagain, keeps no role until it is started withRAILS_FLOW_ROLE=coordinator. Our own design; the owner's rule on one coordinator per machine, 2026-10-09. - The git shim refuses
git configof a key that runs a program —plugins/rails-flow/git-shim/git,plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim.py(#2021, the coordinator's scope decision recorded on the issue).diff.external,core.pager,core.editor,sequence.editorandgpg.*programmake git run a program, which finds the real git on its own PATH, never the shim, so it could run a refused command unseen (a0 measured it fordiff.external). Naming any of them ingit configis now refused, ascore.hooksPathalready is; acredential.helperthat is a shell command (!…) or an absolute program path (/…, a0's review: git runs it as given) is refused too, while a named helper (store) still runs. A row and a mutant per key, includingcore.fsmonitorandcore.sshCommand, whosegit configrule had none. The shim header now states thatgit clone --config/-csetting such a key in a NEW clone is out of scope (not the session's repository; the guarantee moves to #1789/#1790). Our own design; no framework claim. - The git shim's selftest reaches a linked worktree of a fixture —
plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim.py(#2019). The mutant that dropsfixture_marked's common-dir lookup (mutations/git_shim.py, "the marker of a linked worktree is not looked for in its common dir") survived on dev: no row staged a LINKED worktree of a fixture, whose identity file lives only in the common dir. A row now does, and asserts that the identity is only there. Also a0's note on #2029: a mutant for the 5-character prefix floor on--rename-section(--renmust still read as the option). Test-only; the shim is unchanged. wip_commit.py --selftestruns under rails-flow's git shim, and its no-identity row no longer depends on the machine —plugins/rails-flow/scripts/wip_commit.py,plugins/rails-flow/scripts/mutations/wip_commit.py(#1998). Run from the Claude Code Bash tool the shim is first on PATH, so the selftest'sshutil.which("git")was the shim, which refused the fixture's own-c protocol.file.allow=always submodule addinto a temp repository; the selftest failed at its submodule row and the shim's allowlist was not widened for it. The selftest now finds the real git past anygit-shimdirectory (real_git_outside_shims, a function with a row and two mutants). That exposed a latent defect the shim had been masking: the row "with no git identity configured it commits nothing and invents none" passed only on a Mac because the shim refused the commit first; git itself auto-detects an identity from the account and host name on macOS and committed. The fixture repository now setsuser.useConfigOnly, so "no identity configured" means the same everywhere.wip_commit.pyitself is still refused by hand from the Bash tool (it commits with hooks off, #1994); its Stop-hook path is unaffected. Our own design; the coordinator's assignment on #1998.- The git shim lets a downstream project's own spec fixtures stage their temp repositories: a repository marked with
.git/rails-flow-fixtureinsideTMPDIRmaygit add -Aand set its owncore.hooksPath—plugins/rails-flow/git-shim/git,plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/reference/downstream-spec-fixtures.md(#1999). Retask's 41 git-using specs ran git from the repository's directory and were refused, because the #1994 exemption only understoodGIT_DIR/GIT_WORK_TREE. It now also judges the repository git will use from the cwd or-C, accepts the marker in a linked worktree's common dir, and allowsinit.defaultBranch. The five bypasses closed on #1994 stay closed (selftest rows and eight new mutants). Our own design: the maintainer's decision is recorded on #1999. - The git shim skips a candidate
gitthat is not a regular file, and counts an over-long re-entry counter as zero without a bash error —plugins/rails-flow/git-shim/git,plugins/rails-flow/scripts/git_shim_selftest.py(#2005, from an adversary pass on #2004). The header read added for #2003 blocked on a FIFO namedgitin a PATH directory ahead of the real git, so every git call hung; a candidate must now be a regular, executable file before it is read.RAILS_FLOW_GIT_SHIM_DEPTHwith 7 or more digits (this shim counts to 16) printedinteger expression expectedbefore being judged; it now counts as zero, quietly. A selftest row and a mutant for each. Low severity: planting either needs write access to a PATH directory, which already allows a fake git. Our own design. - The git shim refuses writing a shell alias through
git config, in a marked fixture too —plugins/rails-flow/git-shim/git(#2015, found by a2's attack pass on #2013). An alias whose value starts with!runs any command the next time it is used, and the shim cannot see inside it.git config alias.x '!sh'(and--add,--local, any case, a leading space) was allowed everywhere, including inside a fixture, whose exemption covers onlycore.hooksPath. Now refused; a plain alias write and an alias read still run, since a plain alias is judged again when used. New selftest rows ingit_shim_selftest.py(a plain repository and a marked fixture) and two mutants inplugins/rails-flow/scripts/mutations/git_shim.py, both caught on macOS and on Linux. Our own design; no framework claim. /rails-flow:setup-flowno longer prints its post-checkout hook inline —plugins/rails-flow/commands/setup-flow.md,plugins/rails-flow/templates/post-checkout-graph.sh(#2022). Claude Code replaces a bare dollar-digit in a command's markdown with the arguments the command was invoked with (skills docs, "Available string substitutions"), so the hook's$1,$2and$3became the caller...
v1.157.1
2026-10-13
hook_normalize_lineardrops the three timing mutants the hosted runner cannot see —scripts/mutations/hook_normalize_linear.py(#2008, from the v1.157.1 release run 38446804081). The ANSI-C decoder taken one character at a time, the output buffer that never starts a new piece and the peel joining with a growing string SURVIVED on CI: a string copy that grows with every concatenation costs time in BWK awk (macOS) and mawk (a bare ubuntu image, where they were caught 6 of 6), but the runner's awk is gawk, where concatenation is amortised andsubstris O(1), so there they are no slower and nothing can catch them. The guard keeps the three seam mutants (a dropped last piece, a pair the wrong way round, a lost last character of a long slice), which break the output on every awk; thenormalizer_linearratio fixtures still catch a quadratic habit where the awk makes it one. Measured under gawk 5.2.1 (ubuntu:24.04 with gawk installed): 3 of 3 caught. Our own design; no framework claim.- v1.157.1 is a patch of three plugins: rails-flow 1.60.1, pipeline 1.5.2 and qa-flow 1.38.1 —
.claude-plugin/marketplace.json. It carries the git shim's fixture-exemption security fix (#1994, reaching theaddexemption that shipped in v1.157.0), the guard-bash label rule aftercd <other repo> &&(#1990), the linear-time command normaliser (#1980), the git shim no longer recursing when two rails-flow versions' shims are on PATH (#2003, #2004), and the pipeline and qa-flow selftests that now run under the shim (#1982). Our own design.
1.60.1
- The git shim no longer calls another version's shim forever: every git call hung when two rails-flow versions' shim directories were both on PATH —
plugins/rails-flow/git-shim/git,plugins/rails-flow/scripts/git_shim_selftest.py(#2003, P1, found after a session resume left 1.59.0 and 1.60.0 on PATH). The shim found "the real git" by skipping only ITS OWN directory, so it resolved the other version's shim, which resolved it back. It now skips every candidate that is a shim: a*/git-shimdirectory by its physical name or by the name it is written with (a symlink to one counts), and any file that opens with the shim's own header line (another name, and every earlier version, which all carry it). A re-entry counter (RAILS_FLOW_GIT_SHIM_DEPTH, passed to the real git on both exec paths, the auditedRAILS_FLOW_GIT_OK=1included) refuses with exit 127 and a message at 16 nested entries instead of hanging. A selftest case with a 15 s limit per call runs both orders, two copies, each recognition rule alone and the counter; it hangs 13 of 13 on the previous shim, and six mutants hold the rules. Our own design; the coordinator's assignment on #2003 (skip every*/git-shimdirectory and add a re-entry guard). The selftest's GIT_CONFIG_GLOBAL rows also drop this session's ownCLAUDE_SESSION_PROJECT_TOPbefore they set theirs, so "unset" is unset when the selftest runs inside a Claude Code session. - The
issue_labelsselftest's symlink row targets a directory outside both temp roots, and asserts it —plugins/rails-flow/hooks/scripts/lib/issue_labels.py(#2008, from the v1.157.1 release run 38446804081). The row "a heredoc through a /tmp symlink that lands outside /tmp does not keep the cd" linked to the selftest's own temp repository, which on Linux (the mutation harness's staged tempdir, and a stock container with TMPDIR=/tmp) is itself under /tmp, so the write landed inside /tmp and the cd was rightly kept: the row failed the unmutated baseline and thehook_issue_labelsguard read INERT, while thegatesjob (a runner temp directory) stayed green. The target is a directory under/var/tmp(outside/tmpand/private/tmpon macOS and Linux), and a new check asserts that precondition so the row can neither pass nor fail vacuously. Measured: dev's file fails 1 row in an ubuntu:24.04 container, the fix 0;mutation_check --guard hook_issue_labels136 of 136 caught on Linux. No shipped behaviour changes; the lib's judgement is untouched. Our own design; no framework claim. - The #1980 gate fixtures no longer run every large row under a mutant,
--matchsurvives a busy machine, and a Linux-only survivor is dropped —plugins/rails-flow/scripts/check_hook_gates.py,scripts/mutations/hook_guard_worktree.py,scripts/mutations/hook_guard_pr_ready_scope.py(#1980, from the Linux and macOS guard runs of #1992). Three findings. (1) Theguard_pr_readygroup keeps its subprocesses real under--matchand counts only a release-gate run as a hook, so every large row of #1992 ran in full while a mutant slowed the gate: the slicing mutant took 10 minutes for an unrelated check and the guard timed out at the harness's 300 s limit. Each row returns at once when the harness is skipping, and the plain-lines row is 160 KB, not 100 KB, so the slicing mutant (about 17 s) clears its 8 s bound; at 100 KB it took 7 s and survived. (2) The #1645 labels embed(rc 0, 0.1s of at most 21s), whose numbers differ between the survey and run passes of--matchwhen the machine is busy: a Linux run at load 40 to 67 refused 3 ofhook_normalize_cmd's 40 mutants as "cannot be narrowed"._stablemasks the timing text, with a meta check. (3) The mutant that puts${cmd//[...]/}back inguard-worktree.shsurvived on Linux: that substitution is worse than quadratic only on bash 3.2 (macOS), and bash 5 does it in no time. It is dropped with a note in the guard file; the fixture row (1,500 quoted words) still catches the regression on macOS. Measured:hook_guard_pr_ready_scope12 of 12 caught on macOS (623 s) and on ubuntu:24.04,hook_guard_worktree6 of 6 on Linux,hook_normalize_linear6 of 6 on both. Maintainer decision: 7d's review of #1992; no framework claim. - The shared command normaliser is linear in the length of a line, guard-pr-ready.sh no longer takes quadratic time on a long command, and both it and guard-worktree.sh refuse an oversize one that mentions their word in time, with a reason —
plugins/rails-flow/hooks/scripts/lib/normalize_cmd.sh,plugins/rails-flow/hooks/scripts/guard-pr-ready.sh,plugins/rails-flow/hooks/scripts/guard-worktree.sh,plugins/rails-flow/scripts/check_hook_gates.py,scripts/mutations/hook_normalize_linear.py,scripts/mutations/hook_normalize_cmd.py,scripts/mutations/hook_guard_pr_ready_scope.py,scripts/mutations/hook_guard_worktree.py(#1980). Two causes, both measured on macOS (bash 3.2, BWK awk), and the second is the root. (1)guard-pr-ready.shwalked the command's lines with${rest#*$'\n'}slicing, quadratic on bash 3.2: 60 s at 158 KB and 83 s at 211 KB; it reads them withreadnow, the cureguard-worktree.shalready had from #1978.guard-worktree.shwas already linear on a plain-lines command, so the 16 s the issue measured did not reproduce there. (2) With python3 present,normalize_segments(shared by guard-bash, guard-pr-ready, guard-worktree and the qa-flow release gate) was quadratic in the length of ONE line: BWK awk makes everysubstr(s, i, 1)cost the length ofsand copies the string on everyout = out c, so asubstr-only loop took 0.3 s, 1.2 s and 4.9 s at 100, 200 and 400 KB, and one 300 KB line took 13 s through the gates, past the 15 s hook timeout, which is a DENY since #1968._dequotenow splits the line into a character array once and builds its output in 2 KB pieces joined pairwise, the peel joins in pieces, and the ANSI-C decoder takes a run of ordinary characters at once: a 200 KB line costs 0.4 s in the normaliser (was 2.65 s), 300 KB through the gates 0.6 s (was 5.6 s), a 300 KB$'...'span 0.6 s (was 5.8 s). Its output is byte-identical to the old normaliser over about 30,000 fuzzed commands, in the plain and in the taint-marking mode (NC_MARK_EXPANSION=1).guard-worktree.shdropped quotes with${cmd//[...]/}, worse than quadratic in the number of quotes (1,000 quoted words took 4 s, 2,000 took 35 s, 3,000 took 110 s: a 4 KB command stalled the gate); it usestrnow. Both gates refuse a command past 400,000 characters at once, with a reason, only when it mentionsworktreeorready(quotes and backslashes dropped first); a large command that does not mention the word is let through unread, except one holding$': a word built from an ANSI-C escape (git $'\x77orktree' add,gh pr $'\162eady') is invisible to the dropped-quotes test, so past the cap a$'is refused too (fail closed). Still superlinear, below the timeouts: a line holding many$(...)takes about 6 s at 270 KB, through the three-level inner-string lexer.check_hook_gates.pygains anormalizer_lineargroup in part d (boundary cases for the 2 KB pieces and the 256-character slice, and a CPU-time ratio at 100 and 400 KB for four line shapes) and, per gate, a 160 KB plain-lines command, a 300 KB line, quoted words, a command just under the cap, and one over it with and without the word. The new guardhook_normalize_linearholds six mutants that put a quadratic habit back or break a seam; sevenhook_normalize_cmdanchors moved to the new lexer. Maintainer decision: #1980 and 7d's review of #1992 (fix at the root, do not lower the cap); no framework claim. - A
gh issue createaftercd <other repo> &&keeps that repo's label rules when its heredoc body is written to the temp directory —plugins/rails-flow/hooks/scripts/lib/issue_labels.py(#1990). The refused command wascd ~/projects/Retask-platform && cat > /private/tmp/…/scratchpad/cli.md <<'EOF' … EOF, followed by the create on a new line. 1.58.0 judged it by the session's taxonomy ("needs one of comp:*"); #1851 corrected the message in 1.59.0, but the create was still refused with "cannot tell which repository", because only a bare relative body filename kept thecd. A body written under/tmp/or/private/tmp/, where the harness scratchpad lives, now keeps it too. Every other absolute...
v1.157.0
2026-10-13
- The upstream review cursor moves to Claude Code 2.1.296 —
docs/evidence/upstream/claude-code.json,docs/evidence/upstream/reviews/claude-code-2.1.293-2.1.296.md(#1938). All 150 CHANGELOG entries from 2.1.293 to 2.1.296 were read against our hooks, mods, agents andCLAUDE_ENV_FILEuse: one affects us (onFailure: "block", filed and built as #1939), none moved a registry quote, and the rest touch surfaces we do not ship. The record names what was checked and what was not. - A gate named in CLAUDE.md as fail-closed, wired on PreToolUse without
"onFailure": "block", fails the self-consistency sweep —scripts/lint_self_consistency.py,scripts/mutations/lint_self_consistency.py(#1939). New rulegate-without-onfailurereads the same CLAUDE.md sentencehook-count-driftreads (the decision of which hooks are gates is recorded once) and refuses a gate inplugins/*/hooks/hooks.json's PreToolUse list that lacks the field or sets it to anything butblock. Not held to it: a hook CLAUDE.md does not name (an advisory hook must keep failing open) and a gate on an event where the field has no effect (Stop). Five selftest scenarios (conforming, missing,continue, an unnamed hook, a Stop gate) and four mutants, each caught by its intended fixture; on the real tree it examines 7 gates, and on the tree before this change it reports 7 findings. Our own design; no framework claim beyond the one the rails-flow entry verifies. - The misdescribed-agents rule reads each plugin's own manifest as well —
scripts/lint_self_consistency.py(#1945). It read only.claude-plugin/marketplace.json, so the class #653 was written for (a description that names some agents but not all, or a wrong stated count) stayed invisible inplugins/<name>/.claude-plugin/plugin.json, where it found two instances at once (design-flow naming 3 of 5, rails-flow claiming eleven of thirteen). Five selftest scenarios cover the manifest (some, all, none, a wrong count, and valid JSON that is not an object, which crashed the siblingmarketplace-version-duplicaterule and is fixed there too, along with itslstrip("./")of the source path) andscripts/mutations/lint_self_consistency.pyhas two mutants: one stops reading the manifest, one stops comparing the stated count. Our own design; no framework claim. - Audit evidence: rails-flow commands and agents, claims against enforcement —
docs/evidence/audits/2026-10-12-rails-flow-commands-agents-claims.md(#1948 for the remainder). All 52 distinct scripts the 37 files name exist. All 57 script-and-flag pairs (across 29 scripts) are accepted by the real--help; the first draft's 27 and 52 were measured on a stale checkout and corrected in review. Every guarantee that names its mechanism held.lint_self_consistency.pyhas no findings. The same-day addendum (#1948) read the 28 sentences asserting system behaviour with no named mechanism: 26 held and 2 are advice to the model. It also compared all 13 agents' tool lists with their bodies, and all agree. No findings, end to end. - qa-flow audit recorded: four findings filed, the consistency checks that held listed —
docs/evidence/audits/2026-10-12-qa-flow-audit.md(#1952, #1954, #1955, #1979, #1980). The audit read the 11 agents, 8 commands, both hooks and the scripts they name againstorigin/dev: the release gate does not answer a command of about 500 KB containing a push to main (#1952), the "never production" sentences for k6 and ZAP have no mechanism (#1954), the SessionStart banner says "cleared for main" on weaker evidence than the gate asks (#1955), and the runner behind six scaffold guards has no guard of its own (#1979, found in review). One more came from the same-class timing:guard-worktree.shwith python3 missing is quadratic (#1978), and so areguard-worktree.shandguard-pr-ready.shon a command of plain lines (#1980). No behaviour changes in this entry; each finding is fixed in its own PR. scripts/linux_check.shinstalls the host tools a selftest probes and asserts them present before any guard runs —scripts/linux_check.sh,scripts/linux_check_selftest.py,scripts/mutations/linux_check.py(#1964, from the v1.156.0 release run 38297902322). The container held python3, git and bash only, soscripts/linux_check.sh test_preflightreported GREEN while the runner, which has/usr/bin/pg_isready, failed the same guard as INERT; a Linux check that cannot see a tool the runner has cannot fail on that class of defect. The container now installspostgresql-client,lsofandprocps(HOST_PACKAGES, the toolstest_preflight.pyresolves withtrusted_which) and runs a canary,linux_check.sh --check-tools pg_isready lsof ps, which exits 3 naming every missing tool and exits 2 on no names (zero tools checked is not a pass). The canary runs without docker, so its refusal is a selftest row, not a claim. Measured: with the pre-fixtest_preflight.pyfrom release dev 59ec631 swapped in, the newlinux_check.sh test_preflightfails with the runner's exactINERT ... no pg_isready on PATH fails open: silent; with the fixed filelinux_check.sh test_preflight wip_commit linux_checkpasses. Six new mutants (the package dropped,pg_isreadydropped from the canary, the canary not run, its failure ignored, a missing tool exiting 0, no names passing), each caught by its intended row; 21 mutants in all. node, ruby and zsh are deliberately not installed: a guard that needs them is proven by CI, as the script's header says. Our own design; no framework claim.- The Linux check installs zsh and asserts it, and
git_shim_selftest.pysays when its zsh row did not run —scripts/linux_check.sh,scripts/linux_check_selftest.py,scripts/mutations/linux_check.py,plugins/rails-flow/scripts/git_shim_selftest.py,plugins/rails-flow/scripts/mutations/git_shim_selftest_skip.py(#1971, the host-tools audit after #1964). I ran every selftest that reaches anode,ruby,perl,zsh,shasumorghlookup in the container and on macOS. One read green when it should not:git_shim_selftest.pypassed 313 checks in the container against 314 on macOS, because its zsh row ran onlyif shutil.which("zsh")and the container had none. zsh joinsHOST_PACKAGESandCANARY_TOOLS, so the container runs the row (314). Where zsh is absent anyway, the row prints that it did NOT run and is not counted: the row is nowzsh_row()with an injectablewhich, and a new case ("zsh absent: the zsh row says it did NOT run, and counts nothing") asserts the skip text and that the skipped row counts nothing. A new guard,plugins/rails-flow/scripts/mutations/git_shim_selftest_skip.py, catches the skip line being dropped and the skipped row counting as a pass (9f's review of #1972). Two mutants (zsh not installed, the canary not asking for it) are caught. Every other lookup fails loudly, prints an explicit skip, or reads the same in both places (the table is on the PR). Our own design: the coordinator's assignment on #1971. - The gates job prints whether the runner has
zsh,perlandshasum—.github/workflows/gates.yml(#1973). This is reported, not asserted: onecommand -vline in the "Interpreters the gates shell out to" step. The Linux check installs zsh (#1971), and selftests reach perl and shasum, but whetherubuntu-latestships them was never measured. A selftest that skips a row without them reads the same as a pass, so the CI log now says which is true. The coordinator's call. - CI installs zsh, so
git_shim_selftest.py's zsh row runs on the hosted runner too —.github/workflows/gates.yml(#1973, a follow-up). PR #1974's run measuredhost tool zsh: ABSENTonubuntu-latest, so the row ran only on a maintainer's machine and in the Linux check; on CI it was skipped (said, not counted). Thegatesjob (the sweep) and eachmutationshard (thegit_shimguards) nowapt-get installzsh and assert it is on PATH, failing the step if the install silently did not happen.release.ymlcalls this workflow (workflow_call), so the release sweep gets it with no second copy. The gates job then runs the hook case alone (git_shim_selftest.py --match), prints its result, and fails if it says it skipped its zsh row, because the sweep prints only a passing gate's verdict and so could not show the row running. The install is retried once after 5 s, so a mirror blip cannot turn a release red. zsh leaves thehost toolreport line, which runs before the install and would read ABSENT on every run; that line keeps perl and shasum (8b's review). The coordinator's call. - Twelve mutants and fixtures hold the narrowed
git addrule, the in-repository absolute path and theGIT_CONFIG_*reading —scripts/mutations/hook_guard_bash.py,plugins/rails-flow/scripts/mutations/git_shim.py(#1982).hook_guard_bashgains five mutants (the taint read from the whole command again, the marker view dropped, an absolute path refused again, "inside" as a string prefix, no physical resolution) and its two old mutants on the taint and the absolute path are re-anchored to the new lines;git_shimgains seven (everyGIT_CONFIG_*refused on sight, aGIT_CONFIG_KEY_npair not checked, anyGIT_CONFIG_GLOBALfile,GIT_CONFIG_PARAMETERSand unknown names, a non-numeric count, a string-prefix "inside", no physical resolution) and six for the allowlist (a prefix match, the-c,--config-env=and pair forms unchecked, a denylist of two keys again, an allowlist that admits every key, one that dropscommit.gpgsign); nine more hold decision (b) (the exemption never consulted, GIT_DIR and the work tree not strictly inside TMPDIR in two forms and as a string prefix in two, an unset TMPDIR widened, TMPDIR as HOME or its ancestor, the project or an ancestor of it, an unset project, logical instead of physical paths) andgit_shim_hookfour for the recorded toplevel; its four ...
v1.156.0
Each change is listed by its headline: the full notes are over GitHub's 125,000-character limit for a release body. Every bullet in full: https://github.com/fmanimashaun/claude-skills/blob/v1.156.0/CHANGELOG.md
2026-10-11
- Two guards fixed for Linux and one narrowed to its budget —
scripts/mutations/hook_session_start_stable.py,scripts/mutations/hook_normalize_cmd.py - The
--merge-shardsargument row reads an empty directory of its own —scripts/mutation_check_selftest.py - Three
hook_normalize_cmdmutants name the fixture that really catches them —scripts/mutations/hook_normalize_cmd.py - The hook-gates harness runs as four doctor gates; guard_bash is its own part —
plugins/rails-flow/scripts/check_hook_gates.py,scripts/maintainer_doctor.py - doctrine map: the
git add -Arow is a guarantee now that its two layers have merged —scripts/doctrine_map.py,CLAUDE.md - A bullet added straight to
### Unreleasedis refused, and the finding names the fragment to write —scripts/changelog_fragments.py,scripts/maintainer_doctor.py,scripts/mutations/changelog_fragments.py - #1821 is answered with a threat model, and neither removed feature is built —
docs/evidence/audits/2026-10-12-test-preflight-threat-model-1821.md - This repository's own form of the rule: every fix, feature, gap or bug names the
--selftestfixture that fails without it and the mutant that breaks it —.github/pull_request_template.md,.claude/commands/maintainer-work.md - New doctor gate: every exit 3 a shipped check can give has a selftest row saying why it is not applicable —
scripts/check_exit3_rows.py - A ratchet on what each shipped plugin costs every session before anything is invoked —
scripts/check_always_on_cost.py,scripts/always_on_baseline.json - A report of what third-party SessionStart hooks add to every session and compaction —
scripts/report_third_party_hooks.py - Four mutation guards the v1.156 sweep reported inert or surviving now prove their code —
scripts/mutations/rebuild_generated.py,plugins/rails-flow/scripts/test_preflight.py,plugins/qa-flow/scripts/remote_evidence.py,plugins/rails-flow/scripts/triage_failures.py - The mutation harness keeps the mode of a staged
needsfile, so thegit_shimandgit_shim_hookguards are no longer INERT —scripts/mutation_check.py,scripts/mutation_check_selftest.py,scripts/mutations/mutation_check_harness.py - The hostile-environment group, the
hook-start-hardenedlint and their guards enforce #1850 —plugins/rails-flow/scripts/check_hook_gates.py,scripts/lint_self_consistency.py,scripts/mutations/hook_trusted_env.py,scripts/mutations/hook_start_hardened.py - A gate keeps the two registry readers answering the same —
scripts/check_registry_reader_parity.py,scripts/mutations/check_registry_reader_parity.py,scripts/maintainer_doctor.py claude plugin validate --strict --jsonis a doctor gate, and/gauntletsays how to try a changed plugin in a real session —scripts/check_plugin_validate.py,scripts/mutations/check_plugin_validate.py,scripts/maintainer_doctor.py,.claude/commands/gauntlet.md,docs/evidence/upstream/claude-code.json- A PR adds
changelog.d/<issue>-<slug>.mdinstead of editingCHANGELOG.md, and the arm folds the fragments in —scripts/changelog_fragments.py,changelog.d/README.md,scripts/extract_release_notes.py,scripts/check_arm_window.py,scripts/maintainer_doctor.py CLAUDE.mdand the harness doctrine now say who a hook guarantee holds against —CLAUDE.md,docs/doctrine/harness-doctrine.md,docs/evidence/audits/2026-10-11-hook-environment-1843.md/gauntlet's attack agent runs on Fable, and every gauntlet agent's model is pinned by its selftest —.claude/agents/shell-adversary.md,.claude/commands/gauntlet.md,scripts/gauntlet_core.py,scripts/mutations/gauntlet_core.py,docs/wiki/Agents-And-Gates.md- A rerun that is pending, or that reports an error outside of examples, no longer counts as a pass in the failure triage —
plugins/rails-flow/scripts/triage_failures.py,plugins/rails-flow/scripts/mutations/triage_failures.py - A failing RSpec run is classified NEW, PASSED ALONE or PREEXISTING against a recorded dev baseline, and
test-runnerreports the classes —plugins/rails-flow/scripts/dev_baseline.py,plugins/rails-flow/scripts/triage_failures.py,plugins/rails-flow/scripts/mutations/dev_baseline.py,plugins/rails-flow/scripts/mutations/triage_failures.py,plugins/rails-flow/agents/test-runner.md - The Mission Control recipe now admits your admins, and says what
filter_argumentsandadaptersdo —skills/rails-8/references/ecosystem-gems.md,skills/rails-8/references/jobs-and-realtime.md,dist/rails-8.skill,docs/evidence/audits/2026-10-11-mission-control-1816.md - rails-8
observability.mdcovers the in-house OpenTelemetry path, and corrects what Rails reports on its own —skills/rails-8/references/observability.md,dist/rails-8.skill,docs/evidence/audits/2026-10-11-observability-otel-1694.md - The directory-symlink selftest row reports an error as a failed row —
scripts/mutation_incremental_selftest.py - The doctrine map no longer lists guard-bash as a guarantee for
git add -A—scripts/doctrine_map.py,docs/architecture/doctrine-map.html mutation coverageskips a guard unchanged since a trusted full run, records costs only from the runner, warns on cost growth in the release, and runs weekly on Linux and macOS —scripts/mutation_incremental.py,scripts/mutation_check.py,scripts/maintainer_doctor.py,.github/workflows/mutation-weekly.yml,scripts/linux_check.sh- The full mutation sweep runs as four cost-balanced shard jobs and a
mutation coveragesummary —scripts/mutation_check.py,scripts/mutation_incremental.py,.github/workflows/gates.yml,scripts/sweep_proof.py
1.59.0
- Two selftest rows no longer depend on the host they run on, so their mutation guards are not inert on the Linux runner —
plugins/rails-flow/scripts/test_preflight.py,plugins/rails-flow/scripts/wip_commit.py - A row that tells a batch from one text on Linux's awk too —
plugins/rails-flow/scripts/check_hook_gates.py - gh shim selftest: a fixture for
--undo=false, and a two-shims fixture that no longer reads a loaded machine as a loop —plugins/rails-flow/scripts/gh_shim_selftest.py - The hook-gates harness gains a three-deep nested-shell row so the nesting-depth mutant has a fixture that needs it —
plugins/rails-flow/scripts/check_hook_gates.py guard_bash'sNEGATIVES_1706namedgit add -utwice, so the CONTROL checkgit add -u passesran and counted twice —plugins/rails-flow/scripts/check_hook_gates.py- The WIP commit's skip reason counts secret-looking files and never names them —
plugins/rails-flow/scripts/wip_commit.py guard-claims.shno longer blocks a command that only NAMESgh pr create, and accepts the evidence its own refusal asks for —plugins/rails-flow/hooks/scripts/guard-claims.sh,plugins/rails-flow/scripts/check_hook_gates.py,scripts/mutations/hook_guard_claims_scope.py,CLAUDE.md- The harness guard's #1810 mutant is caught —
plugins/rails-flow/scripts/check_hook_gates.py - The release gate's degraded-PATH fixture tests a PATH again —
plugins/rails-flow/scripts/check_hook_gates.py - The hook-gates harness masks its own scratch-directory prefix, so
--matchworks again for labels that embed a fixture directory —plugins/rails-flow/scripts/check_hook_gates.py,scripts/mutations/check_hook_gates_harness.py - A work order can record how far a run got,
resume_lanes.pylists the lanes a cut-off left unfinished, and a Stop hook commits a lane's tracked changes as WIP —plugins/rails-flow/scripts/check_handoff.py,plugins/rails-flow/scripts/resume_lanes.py,plugins/rails-flow/scripts/wip_commit.py,plugins/rails-flow/hooks/scripts/wip-commit.sh,plugins/rails-flow/hooks/hooks.json,plugins/rails-flow/commands/handoff.md,CLAUDE.md gh pr readyis gated where argv is final: aghshim beside the git shim refuses it unless the sweep record for HEAD is green with zero skips —plugins/rails-flow/git-shim/gh,plugins/rails-flow/hooks/scripts/lib/pr_ready_guard.py,plugins/rails-flow/scripts/gh_shim_selftest.py- A change that closes an issue brings its QA case, and a fix the spec that fails without it —
plugins/rails-flow/scripts/check_case_in_diff.py,plugins/rails-flow/scripts/mutations/check_case_in_diff.py,plugins/rails-flow/commands/fix.md,plugins/rails-flow/commands/feature.md,plugins/rails-flow/reference/case-per-change.md - A gate that every MCP tool declares
read_only_hintandopen_world_hint—plugins/rails-flow/scripts/check_mcp_annotations.py /rails-flow:toolchain-auditand/rails-flow:wrapleave the always-on skills listing —plugins/rails-flow/commands/toolchain-audit.md,plugins/rails-flow/commands/wrap.md- The context-nudge status line shows the prompt-cache hit rate —
plugins/rails-flow/hooks/context-nudge.mjs - The text SessionStart injects no longer ticks:
brain-review due since <date>replaceslast swept Nd ago, and the where-stopped pointer drops its write time —plugins/rails-flow/hooks/scripts/session-start.sh,plugins/rails-flow/hooks/scripts/lib/where_stopped.py,scripts/check_hook_output_budget.py - The
gh pr readyhook's guards prove their mutants again: 13 of 18 problems to 0 —plugins/rails-flow/scripts/check_hook_gates.py,scripts/mutations/hook_guard_pr_ready.py - **The Stop and SessionStart hooks no longer run a submodule's own clean filter —
plugins/rails-flow/hooks/scripts/lib/where_stopped.py, `plugins/rails-flow/hooks/scripts/lib/worktree_...