889. The tree's gates stop depending on the fleet tooling
(Promoted 2026-10-12 (UTC) by lane milestone/889-the-trees-gates-stop-depending-on-the-fleet-tooling
from the proposal the-trees-gates-stop-depending-on-the-fleet-tooling, at the next free number.
The number is provisional until the merge queue lands it; the title, the slug and every new name
below are drafts for calef's naming pass.)
Raised 2026-10-12 (UTC) by lane maintainer/tooling-inventory. It is the first step calef ruled
on pull request #1976: Fork 4 of
nife's tooling, sorted by who needs it, answered
"A" on 2026-10-12 (UTC). The
edges are cut in place, in one nife lane, before any fleet tooling leaves. The title, the slug and
every new name below are provisional, for calef's naming pass.
Reuse: nothing new is written beyond a split of existing files. toolchain-bump.yml already skips
its App token step when the App is absent, and the other four workflows take that pattern as it is.
Why
The inventory found six places where a build, proof or standards item cannot run without the
agent-fleet tooling (class 3). Until they are cut, moving class 3 to its own repository (Fork 2,
ruled A) is a rewrite rather than a move. Cutting them also gives a stranger a script/lint and a
pre-push that never touch the merge queue or GitHub.
The work
Each item is one edge from the inventory. Nothing moves to another repository in this milestone.
script/lintstops running class-3 checks. The 22 checks (19 selftests of the queue, label and identity machinery, rules 4 and 4b, and the agent-instruction index) move into a new entry point, provisionallyscript/lint-fleet. A newci.ymljob runs it on every pull request and merge group, so no check stops gating.script/claimkeeps callinghelpers/branch-name-check.sh..githooks/pre-pushrunshelpers/push-queued-check.shonly on a checkout that opts in, provisionally withgit config nife.fleet true.script/bootstrapsets it where it already installs the hooks for a lane. A stranger's push then asks GitHub nothing.falsifications,mutation,vendor-watchandverify-shard-refreshgate theircreate-github-app-tokenstep on the App's id being present, astoolchain-bump.ymldoes. They fall back toGITHUB_TOKEN, so a fork runs them without thenife-smelterApp.metrics.ymlsplits in two. Its method collectors,merge_queue_share.pyanddebt_paydown_share.py, move to a new scheduled workflow, provisionallyfleet-metrics.yml, that writes the same CSV files. Everything else, CI and proof times included, stays.script/metricsalready reads those files and needs no change.script/cadence-checkstops callingscript/effort --checkandhelpers/watcher_watch.pyitself. Both checks move intofleet-metrics.yml.notes/scripts.mdlists the fleet entry points in their own section.AGENTS.md's skills index is left alone: it is calef's to edit, and the lane proposes the wording in its report.
Two edges are kept on purpose, and the lane records why where a reader meets each:
ci.yml's draft gate. Skipping CI on a draft costs a contributor nothing and saves runner time, so it is a sensible default for any repository, not a fleet dependency.helpers/scope-merge-base.shandhelpers/job-budget.py. Both are class-1 CI plumbing that the fleet also reads. A fleet item reading a class-1 one is the normal direction and needs no cut.
Exit
- A throwaway copy of the tree with every class-3 helper, script and workflow deleted passes
script/lint --no-cargo. The appendix of the inventory lists which files those are. script/lint-fleetruns green in CI on the same commit, and each of its 22 checks fails when the file it tests is broken, as each did insidescript/lint.git pushfrom a checkout withoutnife.fleetruns noghcommand, checked with a stubghonPATHthat fails if called.- Each of the four workflows runs to completion on a dispatch with the App secrets unset.
fleet-metrics.ymlwrites byte-identical CSV rows tometrics.yml's last run for the same week.
Where it stands, 2026-10-21 (UTC)
BUILT. Every cut is made and all five exit checks were run and pass. calef ruled on the fifth (below): with the App absent, a workflow completes through its push, and all four do. Each tie from the inventory, checked against the code first:
| Tie | What the code did | What happened |
|---|---|---|
| 1, lint | 22 fleet checks ran inside script/lint, about 170 lines |
Moved whole to script/lint-fleet, a step of CI's lint job |
| 2, pre-push | Every push asked GitHub twice, queued and ready | Behind nife.fleet, in helpers/pre-push-fleet.sh |
| 3, App token | Four workflows could not run without the App | Token step skipped without it; github.token falls back |
| 4, draft gate | Reads GitHub's own draft flag only | Kept; the reason is written in ci.yml |
| 5, metrics | metrics.yml ran two fleet collectors |
Moved to fleet-metrics.yml, same CSV files |
| 5, cadence | cadence-check called script/effort and watcher_watch.py |
Both asked by helpers/trunk-health.sh instead |
| 6, shared helpers | ci_job_times.py's selftest read two fleet files |
That check moved to the fleet's selftest; the rest kept |
Four places differ from the text above, each for a reason found in the code:
- The fleet checks run as a step of the
lintjob, not a new job. A new job gates nothing until the ruleset requires it, andlint's verdict is already required. script/claimsetsnife.fleet, notscript/bootstrap. Bootstrap runs on every clone, a stranger's included, and the hooks are installed byscript/setup.- The effort and watcher checks went to
helpers/trunk-health.sh, notfleet-metrics.yml. The watcher rule promises a stop is reported within three five-minute intervals, and a daily workflow would break that. script/lint-fleethas 27 checks. The 23rd tests the hook's fleet half, which is new. The last four test the trunk watcher,helpers/trunk-health.sh.
Exit checks, as run on 2026-10-19 (UTC) against 42836328b plus this block's commits:
- Stranger clone. With all 72 class-3 helpers, scripts and workflows deleted (79 files, fixture
directories counted whole), 72 of the 74 sections of
script/lint --no-cargopass, with aghthat logs and fails onPATHand no token:ghwas called 0 times. The two that fail are record checks.script/roadmap --checkfails onRecorded.paths in old blocks that name class-3 files. The prose environment-name check fails on names that only class-3 notes and briefs mention. Both are records citing tooling that has not moved yet, which is ยง201 (one roadmap until a citation has to cross)'s event, not a gate calling the fleet. - The checks still fire.
script/lint-fleetran green in CI'slintjob on42836328b(merge-group run 39267144306, step "The fleet tooling's checks"). The 39-break sweep of 2026-10-12 covers the first 23 checks. For the four trunk-watcher checks, replacinghelpers/trunk-health.shorhelpers/repeat_issue.pywithexit 3turnsscript/lint-fleetred. - No token. A fresh clone with
nife.fleetunset, the hooks installed, noGH_TOKENand the same failinggh: a realgit pushof a non-empty commit to a local bare remote ranscript/fmt --checkandscript/lint --no-cargo, passed, and calledgh0 times. - Same CSV rows. Both collectors, run locally on 2026-10-12, wrote rows byte-identical to
metrics.yml's last run before the split (2026-10-11 12:25 UTC) for every finished day.fleet-metrics.ymlis now the only writer of both files and has run green daily through 2026-10-19 (run 39241978532). - App absent, dispatched on a fork. On nife the secrets sit in the
automationenvironment, whose deployment branches aremainonly, so a dispatch on a branch is refused and one onmainmints the App's token. The forkcalef/nifehas no secrets and no environments. Itsmainwas fast-forwarded to nife's01be10059, which registered its workflows, and all four were dispatched there on 2026-10-20 at 03:32 UTC. Referencingautomationcreated an empty environment with no protection rules. On every job that has the token step, the step was skipped.
| Workflow | Run on calef/nife |
Exit, measured |
|---|---|---|
vendor-watch |
39364813031 | Green. Upstream had moved, but the report was unchanged, so the job exited before gh pr create. The pull request path did not run. |
verify-shard-refresh |
39364815886 | Red at its last step. The branch metrics/verify-shards pushed on github.token, then gh pr create was refused: "GitHub Actions is not permitted to create or approve pull requests". |
mutation |
39364805264 | Red at its last step. All eight shards, the baseline report and the inflow check passed. The record job pushed mutation/census on github.token, then gh pr create was refused the same way. |
falsifications |
39364802502 | Red. The seeded system call driver and the arm64 replay passed. The confined fuzzer failed on its own finding (BUGS). The replay job was cancelled at its two-hour limit (05:32 UTC), so the record job was skipped and never reached gh pr create. |
calef, 2026-10-20 14:30 (UTC), on the fallback: "a". With the App absent, a workflow that has
something to record measures, writes and pushes, ends green, and puts the compare link in its run
summary. No repository is asked to let Actions open pull requests, and the exit is read as "the run
completes through the push". All four workflows now call helpers/pull-request-by-hand.sh
(provisional) after their push when no App token was minted. The fork's main was fast-forwarded
to the branch carrying that change and the other three were dispatched again:
| Workflow | Run on calef/nife |
Exit, measured |
|---|---|---|
verify-shard-refresh |
39441127380 | Green. It pushed metrics/verify-shards, opened no pull request, and wrote the compare link to its summary. |
mutation |
39442048323 | Green. All eight shards passed; it pushed mutation/census, opened no pull request, and wrote the compare link to its summary. |
falsifications |
39515487551 | Green. Five shards, the KVM job and the three other replays passed; the record job read 355 record times, pushed falsification/times, opened no pull request, and wrote the compare link to its summary. |
falsifications reaches its push because its replay is sharded. script/falsifications --plan-sweep packs every replayable record into shards of at most 40 minutes by measured replay
time, which run as a matrix on arm64. The swish-check records with an x86_64 leg replay in their
own job under KVM, as ci.yml runs that leg. On the same commit in nife (run 39501631197) the five
shards took 12.6 to 53.6 minutes and the KVM job 8.5.
BUGS
- A gate split in two can lose a check in the gap. A new selftest of a class-3 file that is added
to
script/lintmakes a stranger's lint read the fleet, and only rerunning the stranger clone catches it. - Without the App, nobody is told a record is waiting. The run is green and the compare link is in its summary, so a person has to look at the run to find it.
- The sweep packs by the times its own transcripts write back, so a record that grows a lot between sweeps lands in a shard planned too light. Each shard's 120-minute limit is three times its 40-minute target; a shard that outgrows that is cancelled, and its records go unswept that week.
- The opt-in is per clone. A fleet machine that never ran
script/claimpushes without the queued check untilgit config nife.fleet trueis set. - Four current-tense statements say a fleet check runs in
script/lint, in files a lane may not edit. Three are the "script/lint4b" mentions indesign/naming.md,design/tenets/roles-and-the-queue.mdandnotes/skills/developer-lane/SKILL.md. The fourth is milestone 495 (a cadence that says "due" reaches nobody), whose block sayshelpers/trunk-health-cadence-selftest.sh"runs inscript/lint". All four now meanscript/lint-fleet. - The new names are provisional:
script/lint-fleet,nife.fleet,fleet-metrics.yml,helpers/pre-push-fleet.shand its two selftests.
Follow-on
- Done.
falsifications' replay is sharded so the workflow reaches its push with the App absent: pull request #2462 (milestone/889-replay-limit). - Done. The confined fuzzer's false failure on seed
0x2f2e76cb02: pull request #2457 (milestone/779-slice-oracle). - Milestone 902. Milestone 902 (nife's tooling, sorted by who needs it, before any of it moves).
Moving class 3 as a unit, with the
Recorded.paths and the class-3 notes that make the stranger clone's two record checks fail, is the inventory's next step:design/roadmap/0902-tooling-sorted-by-who-needs-it.md. - Recorded. The four stale "runs in
script/lint" statements, in BUGS above.
Index row
The tree's own gates stop calling the agent-fleet tooling. script/lint's 22 fleet checks move to script/lint-fleet, which CI's lint job still runs. The pre-push hook asks GitHub nothing unless a clone opts in, four scheduled workflows run without the automation App, and the method-metric collectors leave metrics.yml. It is the first step of calef's Fork 4 ruling on #1976, and what makes moving the fleet tooling to its own repository a move rather than a rewrite.