From 48315cf79b7c08c922abb236015ff62900ca878d Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:01:40 -0800 Subject: [PATCH 01/11] Close Five Review Gaps in repo-worktree, drive-pr, pr-review-conduct, and backlog-burndown - repo-worktree: a shared pre-commit hook counts only when it carries the framework's own header, and a missing one is asked through the prompt and installed once in the base clone on the maintainer's yes. - drive-pr: open findings on a peer-merged feature PR still get an outcome. - pr-review-conduct and copilot-instructions: say why the carried-table bound is the file set rather than file recency. - backlog-burndown: a displaced group's fresh worker dispatches once the freeze lifts. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/backlog-burndown/SKILL.md | 4 ++-- .agents/skills/drive-pr/SKILL.md | 2 ++ .agents/skills/pr-review-conduct/SKILL.md | 2 ++ .agents/skills/repo-worktree/SKILL.md | 17 ++++++++++++----- .../.source-digests/backlog-burndown | 2 +- .../fleet-skills/.source-digests/drive-pr | 2 +- .../.source-digests/pr-review-conduct | 2 +- .../fleet-skills/.source-digests/repo-worktree | 2 +- .../skills/backlog-burndown/SKILL.md | 4 ++-- .../fleet-skills/skills/drive-pr/SKILL.md | 2 ++ .../skills/pr-review-conduct/SKILL.md | 2 ++ .../fleet-skills/skills/repo-worktree/SKILL.md | 17 ++++++++++++----- .github/copilot-instructions.md | 2 +- .github/skills/backlog-burndown/SKILL.md | 4 ++-- .github/skills/drive-pr/SKILL.md | 2 ++ .github/skills/pr-review-conduct/SKILL.md | 2 ++ .github/skills/repo-worktree/SKILL.md | 17 ++++++++++++----- 17 files changed, 59 insertions(+), 26 deletions(-) diff --git a/.agents/skills/backlog-burndown/SKILL.md b/.agents/skills/backlog-burndown/SKILL.md index 9d765b65a..08b86db82 100644 --- a/.agents/skills/backlog-burndown/SKILL.md +++ b/.agents/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. The orchestrator then - dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the + orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.agents/skills/drive-pr/SKILL.md b/.agents/skills/drive-pr/SKILL.md index da552e797..eea654f54 100644 --- a/.agents/skills/drive-pr/SKILL.md +++ b/.agents/skills/drive-pr/SKILL.md @@ -103,6 +103,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. + A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. On such a PR `state=` decides the next step over any exit code `wait` or `status` returns. A promotion re-reviews content its feature PRs already carried. diff --git a/.agents/skills/pr-review-conduct/SKILL.md b/.agents/skills/pr-review-conduct/SKILL.md index 3a394ce7d..b5a37da4c 100644 --- a/.agents/skills/pr-review-conduct/SKILL.md +++ b/.agents/skills/pr-review-conduct/SKILL.md @@ -54,6 +54,8 @@ visible comments, routinely still carries a finding nobody has answered. Treatin whose own file table names exactly the changed files covers it, `coverage=table`. That is the reading a Copilot round at Balanced review effort gives. Where no round covering the head carries a table of its own, the newest round that does stands in as `coverage=carried:table`. Its table has to name exactly the changed files. + The bound is that file set rather than file recency. The carry exists for a later head that + changed those files and drew a round with no table of its own. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. On a develop -> main promotion, a file that only green Dependabot bumps changed is taken out of that comparison. The head reads diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index ef600d48c..a91c51cda 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -208,9 +208,11 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root, with - `test -x "$(git rev-parse --git-path hooks)/pre-commit"`. In a linked worktree with no - `core.hooksPath` set, that path is the base clone's shared hooks directory. So a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked + will run before installing anything, from the worktree root. That hook is + `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it + and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any + other executable there is not the gate this bullet is about. In a linked worktree with no + `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then `pre-commit install` there. `pre-commit` is never a project dependency, so this is the same @@ -222,8 +224,13 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from - the worktree. + chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to + the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the + User". A line in a handoff or a summary does not discharge that. The prompt names the + repository's documented install command and whether the hooks pass on this platform. An install + that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that + command against the base clone by absolute path. One install there covers every linked worktree + where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown index df9b40127..78f5fe667 100644 --- a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown +++ b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown @@ -1 +1 @@ -a47580ef48a9077e +c8274752c3d17b28 diff --git a/.claude-plugin/fleet-skills/.source-digests/drive-pr b/.claude-plugin/fleet-skills/.source-digests/drive-pr index ac6461832..a7518442e 100644 --- a/.claude-plugin/fleet-skills/.source-digests/drive-pr +++ b/.claude-plugin/fleet-skills/.source-digests/drive-pr @@ -1 +1 @@ -44df8bd17327ff1d +f45fbf54f4419d2e diff --git a/.claude-plugin/fleet-skills/.source-digests/pr-review-conduct b/.claude-plugin/fleet-skills/.source-digests/pr-review-conduct index 534823253..da1309a08 100644 --- a/.claude-plugin/fleet-skills/.source-digests/pr-review-conduct +++ b/.claude-plugin/fleet-skills/.source-digests/pr-review-conduct @@ -1 +1 @@ -d30ac47c54c4e9a1 +0eeaadb384f5001a diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 8a4cf979a..7e176a381 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -522d6174bf964ef9 +5aeabf42bc0188c3 diff --git a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md index 9d765b65a..08b86db82 100644 --- a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. The orchestrator then - dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the + orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md index da552e797..eea654f54 100644 --- a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md @@ -103,6 +103,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. + A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. On such a PR `state=` decides the next step over any exit code `wait` or `status` returns. A promotion re-reviews content its feature PRs already carried. diff --git a/.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md b/.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md index 3a394ce7d..b5a37da4c 100644 --- a/.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md @@ -54,6 +54,8 @@ visible comments, routinely still carries a finding nobody has answered. Treatin whose own file table names exactly the changed files covers it, `coverage=table`. That is the reading a Copilot round at Balanced review effort gives. Where no round covering the head carries a table of its own, the newest round that does stands in as `coverage=carried:table`. Its table has to name exactly the changed files. + The bound is that file set rather than file recency. The carry exists for a later head that + changed those files and drew a round with no table of its own. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. On a develop -> main promotion, a file that only green Dependabot bumps changed is taken out of that comparison. The head reads diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index ef600d48c..a91c51cda 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -208,9 +208,11 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root, with - `test -x "$(git rev-parse --git-path hooks)/pre-commit"`. In a linked worktree with no - `core.hooksPath` set, that path is the base clone's shared hooks directory. So a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked + will run before installing anything, from the worktree root. That hook is + `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it + and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any + other executable there is not the gate this bullet is about. In a linked worktree with no + `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then `pre-commit install` there. `pre-commit` is never a project dependency, so this is the same @@ -222,8 +224,13 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from - the worktree. + chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to + the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the + User". A line in a handoff or a summary does not discharge that. The prompt names the + repository's documented install command and whether the hooks pass on this platform. An install + that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that + command against the base clone by absolute path. One install there covers every linked worktree + where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ae235f75e..f34ea7898 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -27,7 +27,7 @@ For every review: The review automation is `scripts/pr_review.py`, run from a hub checkout. Use its `status`, `wait`, `attest`, `comment`, and `reply --resolve` commands instead of reconstructing GraphQL queries or copying review identifiers by hand. Use `comment` for a suppressed-finding answer in the pull request conversation. Its status gate verifies the current head, diff coverage, output shape, inline threads, body-only findings, and required checks. -A formal review with no findings is complete only when it covers the current head. It also needs full diff coverage of the change set that head has, stated or read from a file table as below. A round covering the head states it. Where none does, a round covering the head whose own file table names exactly the changed files covers it. That is the reading a round at Balanced review effort gives. Where no round covering the head carries its own table, the newest round that does stands in where its table names exactly the changed files. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. A table stands in only where no Copilot round on the pull request, on any commit, states partial coverage. So a pull request that ever had a partial round goes to the maintainer. A round reporting partial coverage of the diff blocks the merge, and so does a refusal. So does a head that no coverage statement, file table, or attested local pass covers. So does an output shape the digest notes and nobody has read by hand, an unresolved thread, or a body-only finding. The `pr-review-conduct` Skill's Merge Gate states the promotion cases outside these. Where the review policy hands the head to a local pass, an attested local pass covers it, `coverage=local` in the digest. By default that is a pull request into a branch other than the default. A partial round, a truncated review history, or a refusal on the head still blocks that reading. A refusal saying every changed file is in Copilot's default review exclusions is the exception. So is a policy that waits on no Copilot round, Copilot being off, ungated, or past its cap. There none of them blocks the reading, since no round is coming to settle them. Under the hub's default review policy, a pull request into the default branch, a promotion among them, always carries a Copilot round on its head. A repository's own `.github/agent-policy.json` can move or cap that round, and the digest reports what it decided. Re-run the loop after every fix push. Never infer review completion from `mergeStateStatus: CLEAN`. +A formal review with no findings is complete only when it covers the current head. It also needs full diff coverage of the change set that head has, stated or read from a file table as below. A round covering the head states it. Where none does, a round covering the head whose own file table names exactly the changed files covers it. That is the reading a round at Balanced review effort gives. Where no round covering the head carries its own table, the newest round that does stands in where its table names exactly the changed files. The bound is that file set rather than file recency. The carry exists for a later head that changed those files and drew a round with no table of its own. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. A table stands in only where no Copilot round on the pull request, on any commit, states partial coverage. So a pull request that ever had a partial round goes to the maintainer. A round reporting partial coverage of the diff blocks the merge, and so does a refusal. So does a head that no coverage statement, file table, or attested local pass covers. So does an output shape the digest notes and nobody has read by hand, an unresolved thread, or a body-only finding. The `pr-review-conduct` Skill's Merge Gate states the promotion cases outside these. Where the review policy hands the head to a local pass, an attested local pass covers it, `coverage=local` in the digest. By default that is a pull request into a branch other than the default. A partial round, a truncated review history, or a refusal on the head still blocks that reading. A refusal saying every changed file is in Copilot's default review exclusions is the exception. So is a policy that waits on no Copilot round, Copilot being off, ungated, or past its cap. There none of them blocks the reading, since no round is coming to settle them. Under the hub's default review policy, a pull request into the default branch, a promotion among them, always carries a Copilot round on its head. A repository's own `.github/agent-policy.json` can move or cap that round, and the digest reports what it decided. Re-run the loop after every fix push. Never infer review completion from `mergeStateStatus: CLEAN`. Review effort is user-controlled. The automation observes `Lite`, `Balanced`, or `Max`, including an inherited `Default ()`, and never selects or changes the setting. Effort does not determine coverage or completion. A request can complete without a `copilot_work_started` event, so absence of that event is not a stalled-review verdict. When `wait` returns `PENDING` with `requested=yes`, report the state and rerun `wait` for another bounded interval by default. Read that field as acceptance of the request rather than as delivery of a round. Do not clear the request on that first timeout, because it may still be active. Where a second bounded wait times out as well, read the pending set. In that case, clear it only where no human or team reviewer is requested alongside the bot, and rerun `wait`. That rerun then has nothing outstanding to defer to and requests afresh. Where it finds no reviewer node id to request with, it polls instead and says so on its own auto-request line. The clear replaces that set rather than adding to it, and nothing restores a request it drops. So a stall on a pull request that has a human or team reviewer requested goes to the maintainer. So does one still pending after the wait that follows a clear. That clear is a recovery step the script does not implement, and `docs/pr-reviewer-reference.md`, in the hub checkout the script is run from, carries it. This recovery replaces only the review request and never changes the effort setting. A `wait` ending `REQUEST_NOT_RECORDED`, exit 40, is a different state and takes none of this recovery. The request returned success and left neither a pending reviewer nor a review-request event. That is how an exhausted Copilot allowance has shown itself. So clearing and requesting again does not clear this state, and it goes to the maintainer. diff --git a/.github/skills/backlog-burndown/SKILL.md b/.github/skills/backlog-burndown/SKILL.md index 9d765b65a..08b86db82 100644 --- a/.github/skills/backlog-burndown/SKILL.md +++ b/.github/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. The orchestrator then - dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the + orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.github/skills/drive-pr/SKILL.md b/.github/skills/drive-pr/SKILL.md index da552e797..eea654f54 100644 --- a/.github/skills/drive-pr/SKILL.md +++ b/.github/skills/drive-pr/SKILL.md @@ -103,6 +103,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. + A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. On such a PR `state=` decides the next step over any exit code `wait` or `status` returns. A promotion re-reviews content its feature PRs already carried. diff --git a/.github/skills/pr-review-conduct/SKILL.md b/.github/skills/pr-review-conduct/SKILL.md index 3a394ce7d..b5a37da4c 100644 --- a/.github/skills/pr-review-conduct/SKILL.md +++ b/.github/skills/pr-review-conduct/SKILL.md @@ -54,6 +54,8 @@ visible comments, routinely still carries a finding nobody has answered. Treatin whose own file table names exactly the changed files covers it, `coverage=table`. That is the reading a Copilot round at Balanced review effort gives. Where no round covering the head carries a table of its own, the newest round that does stands in as `coverage=carried:table`. Its table has to name exactly the changed files. + The bound is that file set rather than file recency. The carry exists for a later head that + changed those files and drew a round with no table of its own. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. On a develop -> main promotion, a file that only green Dependabot bumps changed is taken out of that comparison. The head reads diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index ef600d48c..a91c51cda 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -208,9 +208,11 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root, with - `test -x "$(git rev-parse --git-path hooks)/pre-commit"`. In a linked worktree with no - `core.hooksPath` set, that path is the base clone's shared hooks directory. So a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked + will run before installing anything, from the worktree root. That hook is + `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it + and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any + other executable there is not the gate this bullet is about. In a linked worktree with no + `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then `pre-commit install` there. `pre-commit` is never a project dependency, so this is the same @@ -222,8 +224,13 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from - the worktree. + chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to + the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the + User". A line in a handoff or a summary does not discharge that. The prompt names the + repository's documented install command and whether the hooks pass on this platform. An install + that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that + command against the base clone by absolute path. One install there covers every linked worktree + where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. From b31491ae691a899209916b5ae3f9428846c6a30e Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:05:38 -0800 Subject: [PATCH 02/11] Route a Dispatched Seat's Hook Question and Cover Every Open Finding Kind After a Peer Merge Co-Authored-By: Claude Opus 5.5 --- .agents/skills/drive-pr/SKILL.md | 2 +- .agents/skills/repo-worktree/SKILL.md | 4 +++- .claude-plugin/fleet-skills/.source-digests/drive-pr | 2 +- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md | 2 +- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 4 +++- .github/skills/drive-pr/SKILL.md | 2 +- .github/skills/repo-worktree/SKILL.md | 4 +++- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.agents/skills/drive-pr/SKILL.md b/.agents/skills/drive-pr/SKILL.md index eea654f54..d1343f060 100644 --- a/.agents/skills/drive-pr/SKILL.md +++ b/.agents/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index a91c51cda..77b8730c5 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -226,7 +226,9 @@ in the new tree. installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff or a summary does not discharge that. The prompt names the + User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched + one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer + when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree diff --git a/.claude-plugin/fleet-skills/.source-digests/drive-pr b/.claude-plugin/fleet-skills/.source-digests/drive-pr index a7518442e..8839561ea 100644 --- a/.claude-plugin/fleet-skills/.source-digests/drive-pr +++ b/.claude-plugin/fleet-skills/.source-digests/drive-pr @@ -1 +1 @@ -f45fbf54f4419d2e +016c338bad2e54b4 diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 7e176a381..39a3058da 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -5aeabf42bc0188c3 +abe9fe2cd49a3e55 diff --git a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md index eea654f54..d1343f060 100644 --- a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index a91c51cda..77b8730c5 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -226,7 +226,9 @@ in the new tree. installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff or a summary does not discharge that. The prompt names the + User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched + one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer + when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree diff --git a/.github/skills/drive-pr/SKILL.md b/.github/skills/drive-pr/SKILL.md index eea654f54..d1343f060 100644 --- a/.github/skills/drive-pr/SKILL.md +++ b/.github/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed, a thread `unresolved=` lists and an `introduced` finding step 2 left in the body alike. + A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index a91c51cda..77b8730c5 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -226,7 +226,9 @@ in the new tree. installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff or a summary does not discharge that. The prompt names the + User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched + one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer + when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree From da1f61645126338b1b4ca355b8a895eaa8bd3f17 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:09:56 -0800 Subject: [PATCH 03/11] Route the Hook Question by Reach and Name Every Step 4 Finding After a Peer Merge Co-Authored-By: Claude Opus 5.5 --- .agents/skills/drive-pr/SKILL.md | 2 +- .agents/skills/repo-worktree/SKILL.md | 8 ++++---- .claude-plugin/fleet-skills/.source-digests/drive-pr | 2 +- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md | 2 +- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 8 ++++---- .github/skills/drive-pr/SKILL.md | 2 +- .github/skills/repo-worktree/SKILL.md | 8 ++++---- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.agents/skills/drive-pr/SKILL.md b/.agents/skills/drive-pr/SKILL.md index d1343f060..064901a0c 100644 --- a/.agents/skills/drive-pr/SKILL.md +++ b/.agents/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. + A finding still open there keeps its outcome owed. That covers an unresolved thread and every finding step 4 names, whether or not `merge` would refuse on it. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index 77b8730c5..da1aca8aa 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -225,10 +225,10 @@ in the new tree. already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched - one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer - when". The question names the + the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt + where there is one. A line in a handoff does not discharge that. A seat that cannot reach the + maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to + the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree diff --git a/.claude-plugin/fleet-skills/.source-digests/drive-pr b/.claude-plugin/fleet-skills/.source-digests/drive-pr index 8839561ea..0f572112f 100644 --- a/.claude-plugin/fleet-skills/.source-digests/drive-pr +++ b/.claude-plugin/fleet-skills/.source-digests/drive-pr @@ -1 +1 @@ -016c338bad2e54b4 +11b4cdc2c6eb59e6 diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 39a3058da..5795a2666 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -abe9fe2cd49a3e55 +733dc65f5a01bbd0 diff --git a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md index d1343f060..064901a0c 100644 --- a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. + A finding still open there keeps its outcome owed. That covers an unresolved thread and every finding step 4 names, whether or not `merge` would refuse on it. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index 77b8730c5..da1aca8aa 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -225,10 +225,10 @@ in the new tree. already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched - one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer - when". The question names the + the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt + where there is one. A line in a handoff does not discharge that. A seat that cannot reach the + maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to + the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree diff --git a/.github/skills/drive-pr/SKILL.md b/.github/skills/drive-pr/SKILL.md index d1343f060..064901a0c 100644 --- a/.github/skills/drive-pr/SKILL.md +++ b/.github/skills/drive-pr/SKILL.md @@ -103,7 +103,7 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR one per "Disposing of Every Finding" and wait again. Read `state=` in every digest `wait` or `status` prints. A peer can merge or close the pull request mid-drive. A digest carrying `state=MERGED` on a feature PR into develop means the merge has landed. Skip the merge in step 4 and go on to its post-merge path. - A finding still open there keeps its outcome owed. That covers an unresolved thread, a finding the body lists, and every other finding step 4 says `merge` refuses on. + A finding still open there keeps its outcome owed. That covers an unresolved thread and every finding step 4 names, whether or not `merge` would refuse on it. Give each one per "Disposing of Every Finding" before that path's cleanup, a fix landing as a fresh feature -> develop pass. On a promotion PR it means the drive's end state is passed, so stop and report it merged. A digest carrying `state=CLOSED` is a stop to report, with its `closed_at=`. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index 77b8730c5..da1aca8aa 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -225,10 +225,10 @@ in the new tree. already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer through the interface's prompt, per `GOVERNANCE.md` "Communicating with the - User". A line in a handoff does not discharge that. A seat with no prompt, such as a dispatched - one, escalates it to whoever dispatched it, per `pr-review-conduct` "Escalate to the maintainer - when". The question names the + the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt + where there is one. A line in a handoff does not discharge that. A seat that cannot reach the + maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to + the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree From 7ce786c0b9d26c6ed02994a2c977a5b1e8a48ba5 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:15:36 -0800 Subject: [PATCH 04/11] Give the Shared-Hook Question an Outcome for the Maintainer's No Co-Authored-By: Claude Opus 5.5 --- .agents/skills/repo-worktree/SKILL.md | 5 +++-- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 5 +++-- .github/skills/repo-worktree/SKILL.md | 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index da1aca8aa..4648060f5 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -231,8 +231,9 @@ in the new tree. the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. One install there covers every linked worktree - where `core.hooksPath` is unset. + command against the base clone by absolute path. On a no, the task continues without the hook, + since that answer settles the setup the paragraph below says to fix. One install there covers + every linked worktree where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 5795a2666..d4bdb1099 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -733dc65f5a01bbd0 +9afd52ffdf384baf diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index da1aca8aa..4648060f5 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -231,8 +231,9 @@ in the new tree. the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. One install there covers every linked worktree - where `core.hooksPath` is unset. + command against the base clone by absolute path. On a no, the task continues without the hook, + since that answer settles the setup the paragraph below says to fix. One install there covers + every linked worktree where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index da1aca8aa..4648060f5 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -231,8 +231,9 @@ in the new tree. the maintainer when". The question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. One install there covers every linked worktree - where `core.hooksPath` is unset. + command against the base clone by absolute path. On a no, the task continues without the hook, + since that answer settles the setup the paragraph below says to fix. One install there covers + every linked worktree where `core.hooksPath` is unset. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. From 735dd309d5854211ef72026474c857cc1a6145e2 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:20:34 -0800 Subject: [PATCH 05/11] Leave a Wrong Shared Hook to the Maintainer and Owe Outcomes on a Peer Merge Seen at Merge Time Co-Authored-By: Claude Opus 5.5 --- .agents/skills/drive-pr/SKILL.md | 3 ++- .agents/skills/repo-worktree/SKILL.md | 13 +++++++------ .../fleet-skills/.source-digests/drive-pr | 2 +- .../fleet-skills/.source-digests/repo-worktree | 2 +- .../fleet-skills/skills/drive-pr/SKILL.md | 3 ++- .../fleet-skills/skills/repo-worktree/SKILL.md | 13 +++++++------ .github/skills/drive-pr/SKILL.md | 3 ++- .github/skills/repo-worktree/SKILL.md | 13 +++++++------ 8 files changed, 29 insertions(+), 23 deletions(-) diff --git a/.agents/skills/drive-pr/SKILL.md b/.agents/skills/drive-pr/SKILL.md index 064901a0c..68b39d361 100644 --- a/.agents/skills/drive-pr/SKILL.md +++ b/.agents/skills/drive-pr/SKILL.md @@ -134,7 +134,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR - `next=done` is merged and cleaned up. - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. + head that merged may be one the gate never read. Its open findings keep the outcome step 3 + owes after a peer merge. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index 4648060f5..64e13733f 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -228,12 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". The question names the - repository's documented install command and whether the hooks pass on this platform. An install - that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. On a no, the task continues without the hook, - since that answer settles the setup the paragraph below says to fix. One install there covers - every linked worktree where `core.hooksPath` is unset. + the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + question names the repository's documented install command and whether the hooks pass on this + platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the agent runs that command against the base clone by absolute path. It then prepares the + worktree's hooks again by the bullets above. One install there covers every linked worktree + where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.claude-plugin/fleet-skills/.source-digests/drive-pr b/.claude-plugin/fleet-skills/.source-digests/drive-pr index 0f572112f..db0f0170a 100644 --- a/.claude-plugin/fleet-skills/.source-digests/drive-pr +++ b/.claude-plugin/fleet-skills/.source-digests/drive-pr @@ -1 +1 @@ -11b4cdc2c6eb59e6 +3ae201ec9ae3ed62 diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index d4bdb1099..2bbe8471f 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -9afd52ffdf384baf +2996257a8c46b360 diff --git a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md index 064901a0c..68b39d361 100644 --- a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md @@ -134,7 +134,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR - `next=done` is merged and cleaned up. - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. + head that merged may be one the gate never read. Its open findings keep the outcome step 3 + owes after a peer merge. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index 4648060f5..64e13733f 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -228,12 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". The question names the - repository's documented install command and whether the hooks pass on this platform. An install - that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. On a no, the task continues without the hook, - since that answer settles the setup the paragraph below says to fix. One install there covers - every linked worktree where `core.hooksPath` is unset. + the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + question names the repository's documented install command and whether the hooks pass on this + platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the agent runs that command against the base clone by absolute path. It then prepares the + worktree's hooks again by the bullets above. One install there covers every linked worktree + where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.github/skills/drive-pr/SKILL.md b/.github/skills/drive-pr/SKILL.md index 064901a0c..68b39d361 100644 --- a/.github/skills/drive-pr/SKILL.md +++ b/.github/skills/drive-pr/SKILL.md @@ -134,7 +134,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR - `next=done` is merged and cleaned up. - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. + head that merged may be one the gate never read. Its open findings keep the outcome step 3 + owes after a peer merge. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index 4648060f5..64e13733f 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -228,12 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". The question names the - repository's documented install command and whether the hooks pass on this platform. An install - that fails every commit is a cost it must name. On the maintainer's yes, the agent runs that - command against the base clone by absolute path. On a no, the task continues without the hook, - since that answer settles the setup the paragraph below says to fix. One install there covers - every linked worktree where `core.hooksPath` is unset. + the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + question names the repository's documented install command and whether the hooks pass on this + platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the agent runs that command against the base clone by absolute path. It then prepares the + worktree's hooks again by the bullets above. One install there covers every linked worktree + where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. From a967110d51f6747352183a9a96f4f871705eeb24 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:20:49 -0800 Subject: [PATCH 06/11] Give the Carried-Table Bound's Reason in GOVERNANCE.md Too Co-Authored-By: Claude Opus 5.5 --- GOVERNANCE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 0aeaa255e..6271c53d8 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -252,7 +252,7 @@ Hardening is spent where a failure can actually occur. A defense against a case ## PR Review Etiquette -The provider-agnostic review-loop contract every fleet repo follows starts when a pull request opens. Open every fleet-owned pull request ready for review. Draft state is reserved for the separately documented upstream contribution workflow while a third-party contribution is still being prepared. Creating the pull request is not a terminal handoff. Run the review status once in the foreground. Then start the bounded review wait in a background process. Which bots review which pull requests, when, and how often is the repository's review policy. That policy is the `review` section of `.github/agent-policy.json`, or the hub's `spec/agent-policy.default.json` where the repository states none. The review wait reads that policy from the pull request's base branch. It sends each request the policy asks it to send. A bot the policy marks automatic is left to start on its own, except a gated Copilot, whose missed start it fills. So the loop below runs the same whether a repository's reviews arrive automatically or on request, and nothing here names which. Under the hub default, a Copilot review is requested at one defined moment rather than on every push. That moment is the head of a pull request into the default branch, a promotion among them. The review wait also requests one on any other pull request where a partial round or a truncated review history is on record. On a pull request into any other branch, every head is covered instead by the recorded local pass the push already owes. That pass is published to the pull request so the review status can read it. The `pr-review-conduct` Skill's Merge Gate states when that published pass counts as coverage. Confirm that the current head SHA is covered by a review or, on such a pull request, by that published pass. Also confirm that a review covers the full diff rather than only part of it. Where no round covering the head states coverage, a round covering it whose own file table names exactly the changed files covers it. That is the reading a Copilot round at Balanced review effort gives. Where no round covering the head carries its own table, the newest round that does stands in where its table names exactly the changed files. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. A table stands in only where no Copilot round on the pull request, on any commit, states partial coverage. So a pull request that ever had a partial round goes to the maintainer. A develop -> main promotion whose head round states no coverage has further ways to be covered, which the `pr-review-conduct` Skill's Merge Gate states. Triage every finding, including low-confidence findings collapsed into the review body rather than threads. Reply to and resolve every addressed finding. Repeat after every fix until the checks are green, the current head is covered, and no finding is left open. Only an explicit maintainer instruction may stop, defer, or alter this default. Silence or a request that says only "open a PR" is not such an instruction. Never merge on a green or CLEAN merge state alone. That state does not prove the review covered the current head SHA and full diff. It also does not expose unanswered low-confidence findings that opened no thread. +The provider-agnostic review-loop contract every fleet repo follows starts when a pull request opens. Open every fleet-owned pull request ready for review. Draft state is reserved for the separately documented upstream contribution workflow while a third-party contribution is still being prepared. Creating the pull request is not a terminal handoff. Run the review status once in the foreground. Then start the bounded review wait in a background process. Which bots review which pull requests, when, and how often is the repository's review policy. That policy is the `review` section of `.github/agent-policy.json`, or the hub's `spec/agent-policy.default.json` where the repository states none. The review wait reads that policy from the pull request's base branch. It sends each request the policy asks it to send. A bot the policy marks automatic is left to start on its own, except a gated Copilot, whose missed start it fills. So the loop below runs the same whether a repository's reviews arrive automatically or on request, and nothing here names which. Under the hub default, a Copilot review is requested at one defined moment rather than on every push. That moment is the head of a pull request into the default branch, a promotion among them. The review wait also requests one on any other pull request where a partial round or a truncated review history is on record. On a pull request into any other branch, every head is covered instead by the recorded local pass the push already owes. That pass is published to the pull request so the review status can read it. The `pr-review-conduct` Skill's Merge Gate states when that published pass counts as coverage. Confirm that the current head SHA is covered by a review or, on such a pull request, by that published pass. Also confirm that a review covers the full diff rather than only part of it. Where no round covering the head states coverage, a round covering it whose own file table names exactly the changed files covers it. That is the reading a Copilot round at Balanced review effort gives. Where no round covering the head carries its own table, the newest round that does stands in where its table names exactly the changed files. The bound is that file set rather than file recency. The carry exists for a later head that changed those files and drew a round with no table of its own. Either table may leave out an added, modified, renamed, or deleted file with no changed line, such as a binary. That holds while some changed file has one. A table stands in only where no Copilot round on the pull request, on any commit, states partial coverage. So a pull request that ever had a partial round goes to the maintainer. A develop -> main promotion whose head round states no coverage has further ways to be covered, which the `pr-review-conduct` Skill's Merge Gate states. Triage every finding, including low-confidence findings collapsed into the review body rather than threads. Reply to and resolve every addressed finding. Repeat after every fix until the checks are green, the current head is covered, and no finding is left open. Only an explicit maintainer instruction may stop, defer, or alter this default. Silence or a request that says only "open a PR" is not such an instruction. Never merge on a green or CLEAN merge state alone. That state does not prove the review covered the current head SHA and full diff. It also does not expose unanswered low-confidence findings that opened no thread. This is packaged as the `pr-review-conduct` Skill at `.agents/skills/pr-review-conduct/SKILL.md` in the hub. That path is not a repo-relative link, since it is hub-local and not carried into every fleet repo. The summary above sketches the contract. Read the skill for the merge gate, the expected loop, and how a finding is closed. From 3dd0999f922fa8f04936a7c8e74b8bbf623a1071 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:27:02 -0800 Subject: [PATCH 07/11] Scope the Hook Install to a Missing pre-commit Hook and Order Outcomes Before Cleanup Co-Authored-By: Claude Opus 5.5 --- .agents/skills/drive-pr/SKILL.md | 8 ++++---- .agents/skills/repo-worktree/SKILL.md | 10 +++++----- .claude-plugin/fleet-skills/.source-digests/drive-pr | 2 +- .../fleet-skills/.source-digests/repo-worktree | 2 +- .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md | 8 ++++---- .../fleet-skills/skills/repo-worktree/SKILL.md | 10 +++++----- .github/skills/drive-pr/SKILL.md | 8 ++++---- .github/skills/repo-worktree/SKILL.md | 10 +++++----- 8 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.agents/skills/drive-pr/SKILL.md b/.agents/skills/drive-pr/SKILL.md index 68b39d361..a8329b6b6 100644 --- a/.agents/skills/drive-pr/SKILL.md +++ b/.agents/skills/drive-pr/SKILL.md @@ -132,10 +132,10 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR line's route here. The hub's `scripts/README.md` "`pr_merge.py`" gives each route in full. - `next=done` is merged and cleaned up. - - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command - below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. Its open findings keep the outcome step 3 - owes after a peer merge. + - `next=cleanup` is a merge that landed with its cleanup still owed. Give its open findings the + outcome step 3 owes after a peer merge, then run the `cleanup` command below. Report a pull + request another hand merged as a merge this run cannot vouch for. The head that merged may be + one the gate never read. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index 64e13733f..def37aea2 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -228,13 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + the maintainer when". For a missing pre-commit framework hook, the question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. It then prepares the - worktree's hooks again by the bullets above. One install there covers every linked worktree - where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. + the agent runs that command against the base clone by absolute path. One install there covers + every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, + and the task follows the answer. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.claude-plugin/fleet-skills/.source-digests/drive-pr b/.claude-plugin/fleet-skills/.source-digests/drive-pr index db0f0170a..545f7d65f 100644 --- a/.claude-plugin/fleet-skills/.source-digests/drive-pr +++ b/.claude-plugin/fleet-skills/.source-digests/drive-pr @@ -1 +1 @@ -3ae201ec9ae3ed62 +1a29af0b64a1bc42 diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 2bbe8471f..b77d9082a 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -2996257a8c46b360 +18250bfaa9f754af diff --git a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md index 68b39d361..a8329b6b6 100644 --- a/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md @@ -132,10 +132,10 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR line's route here. The hub's `scripts/README.md` "`pr_merge.py`" gives each route in full. - `next=done` is merged and cleaned up. - - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command - below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. Its open findings keep the outcome step 3 - owes after a peer merge. + - `next=cleanup` is a merge that landed with its cleanup still owed. Give its open findings the + outcome step 3 owes after a peer merge, then run the `cleanup` command below. Report a pull + request another hand merged as a merge this run cannot vouch for. The head that merged may be + one the gate never read. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index 64e13733f..def37aea2 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -228,13 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + the maintainer when". For a missing pre-commit framework hook, the question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. It then prepares the - worktree's hooks again by the bullets above. One install there covers every linked worktree - where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. + the agent runs that command against the base clone by absolute path. One install there covers + every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, + and the task follows the answer. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.github/skills/drive-pr/SKILL.md b/.github/skills/drive-pr/SKILL.md index 68b39d361..a8329b6b6 100644 --- a/.github/skills/drive-pr/SKILL.md +++ b/.github/skills/drive-pr/SKILL.md @@ -132,10 +132,10 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR line's route here. The hub's `scripts/README.md` "`pr_merge.py`" gives each route in full. - `next=done` is merged and cleaned up. - - `next=cleanup` is a merge that landed with its cleanup still owed. Run the `cleanup` command - below. Report a pull request another hand merged as a merge this run cannot vouch for. The - head that merged may be one the gate never read. Its open findings keep the outcome step 3 - owes after a peer merge. + - `next=cleanup` is a merge that landed with its cleanup still owed. Give its open findings the + outcome step 3 owes after a peer merge, then run the `cleanup` command below. Report a pull + request another hand merged as a merge this run cannot vouch for. The head that merged may be + one the gate never read. - `next=readback` is a merge that may have landed. Read it back with `gh pr view --repo / --json state`. `MERGED` means run `cleanup`, and `OPEN` means treat it as `redrive`. Only a read that still cannot answer is reported, saying the merge may have landed. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index 64e13733f..def37aea2 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -228,13 +228,13 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". A wrong hook is the maintainer's to repair. For a missing one, the + the maintainer when". For a missing pre-commit framework hook, the question names the repository's documented install command and whether the hooks pass on this platform. An install that fails every commit is a cost it must name. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. It then prepares the - worktree's hooks again by the bullets above. One install there covers every linked worktree - where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. + the agent runs that command against the base clone by absolute path. One install there covers + every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer + settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, + and the task follows the answer. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. From fa16074770c1199478d7a07791ced7d3357d47e7 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:31:14 -0800 Subject: [PATCH 08/11] Name Every Answer's Cost, Keep a Foreign Hook Out of the Install Path, and Give Away Mode Its Re-dispatch Trigger Co-Authored-By: Claude Opus 5.5 --- .agents/skills/backlog-burndown/SKILL.md | 4 ++-- .agents/skills/repo-worktree/SKILL.md | 7 ++++--- .../fleet-skills/.source-digests/backlog-burndown | 2 +- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .../fleet-skills/skills/backlog-burndown/SKILL.md | 4 ++-- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 7 ++++--- .github/skills/backlog-burndown/SKILL.md | 4 ++-- .github/skills/repo-worktree/SKILL.md | 7 ++++--- 8 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.agents/skills/backlog-burndown/SKILL.md b/.agents/skills/backlog-burndown/SKILL.md index 08b86db82..0d60f9903 100644 --- a/.agents/skills/backlog-burndown/SKILL.md +++ b/.agents/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the - orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an + away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index def37aea2..da4d0a760 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -228,9 +228,10 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". For a missing pre-commit framework hook, the - question names the repository's documented install command and whether the hooks pass on this - platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the maintainer when". Every such question names what each answer costs, such as an install that + fails every commit or one that changes other checkouts. Where nothing executable sits at the + pre-commit framework's hook path, the question also names the repository's documented install + command. It also says whether the hooks pass on this platform. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, diff --git a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown index 78f5fe667..f4b233480 100644 --- a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown +++ b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown @@ -1 +1 @@ -c8274752c3d17b28 +e7375dfd312c0f9b diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index b77d9082a..39c7433a3 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -18250bfaa9f754af +a3ce0ff3e87c56a0 diff --git a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md index 08b86db82..0d60f9903 100644 --- a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the - orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an + away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index def37aea2..da4d0a760 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -228,9 +228,10 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". For a missing pre-commit framework hook, the - question names the repository's documented install command and whether the hooks pass on this - platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the maintainer when". Every such question names what each answer costs, such as an install that + fails every commit or one that changes other checkouts. Where nothing executable sits at the + pre-commit framework's hook path, the question also names the repository's documented install + command. It also says whether the hooks pass on this platform. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, diff --git a/.github/skills/backlog-burndown/SKILL.md b/.github/skills/backlog-burndown/SKILL.md index 08b86db82..0d60f9903 100644 --- a/.github/skills/backlog-burndown/SKILL.md +++ b/.github/skills/backlog-burndown/SKILL.md @@ -683,8 +683,8 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, the - orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an + away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index def37aea2..da4d0a760 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -228,9 +228,10 @@ in the new tree. the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". For a missing pre-commit framework hook, the - question names the repository's documented install command and whether the hooks pass on this - platform. An install that fails every commit is a cost it must name. On the maintainer's yes, + the maintainer when". Every such question names what each answer costs, such as an install that + fails every commit or one that changes other checkouts. Where nothing executable sits at the + pre-commit framework's hook path, the question also names the repository's documented install + command. It also says whether the hooks pass on this platform. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, From 4e193d6aa2770eb3085269ee20956e26a4e6a539 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:36:10 -0800 Subject: [PATCH 09/11] Let a Missing Hook Not Stop the Task and Tie the Displaced Re-dispatch to the Next Round Co-Authored-By: Claude Opus 5.5 --- .agents/skills/backlog-burndown/SKILL.md | 6 +++--- .agents/skills/repo-worktree/SKILL.md | 5 ++--- .../fleet-skills/.source-digests/backlog-burndown | 2 +- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .../fleet-skills/skills/backlog-burndown/SKILL.md | 6 +++--- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 5 ++--- .github/skills/backlog-burndown/SKILL.md | 6 +++--- .github/skills/repo-worktree/SKILL.md | 5 ++--- 8 files changed, 17 insertions(+), 20 deletions(-) diff --git a/.agents/skills/backlog-burndown/SKILL.md b/.agents/skills/backlog-burndown/SKILL.md index 0d60f9903..eb3c71667 100644 --- a/.agents/skills/backlog-burndown/SKILL.md +++ b/.agents/skills/backlog-burndown/SKILL.md @@ -679,12 +679,12 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, yields by handing the file over. A holder that already pushed and has an open pull request yields by having that pull request wait, its branch untouched. It also yields by the promotion fix taking the file, since the two must not be in flight on one file at once. Once the fix - lands, that pull request waits untouched until the freeze lifts. Reconciling its content is the + lands, that pull request waits untouched until the next round dispatches. Reconciling its content is the next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an - away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. That next round + dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index da4d0a760..60deaf1e0 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -227,11 +227,10 @@ in the new tree. chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". Every such question names what each answer costs, such as an install that + maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that fails every commit or one that changes other checkouts. Where nothing executable sits at the pre-commit framework's hook path, the question also names the repository's documented install - command. It also says whether the hooks pass on this platform. On the maintainer's yes, + command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, diff --git a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown index f4b233480..799cdd014 100644 --- a/.claude-plugin/fleet-skills/.source-digests/backlog-burndown +++ b/.claude-plugin/fleet-skills/.source-digests/backlog-burndown @@ -1 +1 @@ -e7375dfd312c0f9b +9d55ef77ca21cbcc diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 39c7433a3..325b29c7d 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -a3ce0ff3e87c56a0 +85576e06e8079560 diff --git a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md index 0d60f9903..eb3c71667 100644 --- a/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md @@ -679,12 +679,12 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, yields by handing the file over. A holder that already pushed and has an open pull request yields by having that pull request wait, its branch untouched. It also yields by the promotion fix taking the file, since the two must not be in flight on one file at once. Once the fix - lands, that pull request waits untouched until the freeze lifts. Reconciling its content is the + lands, that pull request waits untouched until the next round dispatches. Reconciling its content is the next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an - away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. That next round + dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index da4d0a760..60deaf1e0 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -227,11 +227,10 @@ in the new tree. chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". Every such question names what each answer costs, such as an install that + maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that fails every commit or one that changes other checkouts. Where nothing executable sits at the pre-commit framework's hook path, the question also names the repository's documented install - command. It also says whether the hooks pass on this platform. On the maintainer's yes, + command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, diff --git a/.github/skills/backlog-burndown/SKILL.md b/.github/skills/backlog-burndown/SKILL.md index 0d60f9903..eb3c71667 100644 --- a/.github/skills/backlog-burndown/SKILL.md +++ b/.github/skills/backlog-burndown/SKILL.md @@ -679,12 +679,12 @@ the issues it fixes in a `Closes on promotion:` line in its own commit message, yields by handing the file over. A holder that already pushed and has an open pull request yields by having that pull request wait, its branch untouched. It also yields by the promotion fix taking the file, since the two must not be in flight on one file at once. Once the fix - lands, that pull request waits untouched until the freeze lifts. Reconciling its content is the + lands, that pull request waits untouched until the next round dispatches. Reconciling its content is the next round's worker's job rather than the orchestrator's, which opens no branch and edits nothing. The orchestrator retires that group's worktree, the branch and its pull request left standing. That is the worktree-only disposition "Cleanup Is the Orchestrator's" separates out, - and the retire-then-dispatch shape "Raising a Blocked Question" uses. Once the freeze lifts, or in an - away run once the promotion fix lands, the orchestrator dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in + and the retire-then-dispatch shape "Raising a Blocked Question" uses. That next round + dispatches a fresh worker on that same branch. That worker is briefed either to merge develop in to pick the fix up, or to narrow the change to drop the file. Never rebase it, since its branch is already pushed and a rebase there needs what `GOVERNANCE.md` "Git and Commit Rules" forbids. 6. **Nothing else pushes, and nothing else is dispatched.** The promotion fix of step 4 is the one diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index da4d0a760..60deaf1e0 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -227,11 +227,10 @@ in the new tree. chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, escalates it per `pr-review-conduct` "Escalate to - the maintainer when". Every such question names what each answer costs, such as an install that + maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that fails every commit or one that changes other checkouts. Where nothing executable sits at the pre-commit framework's hook path, the question also names the repository's documented install - command. It also says whether the hooks pass on this platform. On the maintainer's yes, + command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, the agent runs that command against the base clone by absolute path. One install there covers every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, From 3185ec58f893de8bb0aedff6c1e665b791ae7659 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:42:34 -0800 Subject: [PATCH 10/11] Take the Shared-Hook Repair Path Back Out Pending a Decision Co-Authored-By: Claude Opus 5.5 --- .agents/skills/repo-worktree/SKILL.md | 13 ++----------- .../fleet-skills/.source-digests/repo-worktree | 2 +- .../fleet-skills/skills/repo-worktree/SKILL.md | 13 ++----------- .github/skills/repo-worktree/SKILL.md | 13 ++----------- 4 files changed, 7 insertions(+), 34 deletions(-) diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index 60deaf1e0..3722660ab 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -224,17 +224,8 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt - where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that - fails every commit or one that changes other checkouts. Where nothing executable sits at the - pre-commit framework's hook path, the question also names the repository's documented install - command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. One install there covers - every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, - and the task follows the answer. + chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from + the worktree. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 325b29c7d..7275caf6c 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -85576e06e8079560 +714934604d05e102 diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index 60deaf1e0..3722660ab 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -224,17 +224,8 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt - where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that - fails every commit or one that changes other checkouts. Where nothing executable sits at the - pre-commit framework's hook path, the question also names the repository's documented install - command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. One install there covers - every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, - and the task follows the answer. + chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from + the worktree. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index 60deaf1e0..3722660ab 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -224,17 +224,8 @@ in the new tree. checkout of the repository, the maintainer's own included. Rewriting a setting to the value it already holds, as the Husky.Net step above does, changes nothing and is not this case. Switching installers is the same act, since `prek install` over a pre-commit framework hook moves the original aside and chains to it. That chaining has left every commit in every checkout failing on the - chained script. A missing or wrong shared hook is not repaired from the worktree. It is put to - the maintainer per `GOVERNANCE.md` "Communicating with the User", through the interface's prompt - where there is one. A line in a handoff does not discharge that. A seat that cannot reach the - maintainer directly, such as a dispatched one, passes it to whoever dispatched it. Every such question names what each answer costs, such as an install that - fails every commit or one that changes other checkouts. Where nothing executable sits at the - pre-commit framework's hook path, the question also names the repository's documented install - command. A missing hook does not stop the task, which continues without it meanwhile. On the maintainer's yes, - the agent runs that command against the base clone by absolute path. One install there covers - every linked worktree where `core.hooksPath` is unset. On a no, the task continues without the hook, since that answer - settles the setup the paragraph below says to fix. Any other case is the maintainer's to settle, - and the task follows the answer. + chained script. A missing or wrong shared hook is reported to the maintainer, not repaired from + the worktree. - **Repository override:** Follow a repository's explicit hook-setup instructions when they differ from these standard cases. The exception is that none of them may change a shared hook or setting from a linked worktree, per the bullet above. Do not infer a replacement command from the language alone. From a1058f2f4f52238542071aa6cfbb70d98477c972 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Fri, 13 Nov 2026 10:45:58 -0800 Subject: [PATCH 11/11] Give the Hook Header Check Its File Operand Co-Authored-By: Claude Opus 5.5 --- .agents/skills/repo-worktree/SKILL.md | 8 ++++---- .claude-plugin/fleet-skills/.source-digests/repo-worktree | 2 +- .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md | 8 ++++---- .github/skills/repo-worktree/SKILL.md | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.agents/skills/repo-worktree/SKILL.md b/.agents/skills/repo-worktree/SKILL.md index 3722660ab..4befccc2f 100644 --- a/.agents/skills/repo-worktree/SKILL.md +++ b/.agents/skills/repo-worktree/SKILL.md @@ -208,10 +208,10 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root. That hook is - `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it - and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any - other executable there is not the gate this bullet is about. In a linked worktree with no + will run before installing anything, from the worktree root, with + `h="$(git rev-parse --git-path hooks)/pre-commit"; test -x "$h" && grep -q '^# File generated by pre-commit' "$h"`. + It passes only on an executable hook carrying the framework's own header. Any other executable + there is not the gate this bullet is about. In a linked worktree with no `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then diff --git a/.claude-plugin/fleet-skills/.source-digests/repo-worktree b/.claude-plugin/fleet-skills/.source-digests/repo-worktree index 7275caf6c..cc65138c0 100644 --- a/.claude-plugin/fleet-skills/.source-digests/repo-worktree +++ b/.claude-plugin/fleet-skills/.source-digests/repo-worktree @@ -1 +1 @@ -714934604d05e102 +f0e402ea54c9ef17 diff --git a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md index 3722660ab..4befccc2f 100644 --- a/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md @@ -208,10 +208,10 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root. That hook is - `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it - and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any - other executable there is not the gate this bullet is about. In a linked worktree with no + will run before installing anything, from the worktree root, with + `h="$(git rev-parse --git-path hooks)/pre-commit"; test -x "$h" && grep -q '^# File generated by pre-commit' "$h"`. + It passes only on an executable hook carrying the framework's own header. Any other executable + there is not the gate this bullet is about. In a linked worktree with no `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then diff --git a/.github/skills/repo-worktree/SKILL.md b/.github/skills/repo-worktree/SKILL.md index 3722660ab..4befccc2f 100644 --- a/.github/skills/repo-worktree/SKILL.md +++ b/.github/skills/repo-worktree/SKILL.md @@ -208,10 +208,10 @@ in the new tree. linked-worktree bullet below applies. In a standalone clone, whose config and hooks are its own, run the same commands there whatever the setting reads. - **Python pre-commit:** When `.pre-commit-config.yaml` exists, check for the hook the new tree - will run before installing anything, from the worktree root. That hook is - `"$(git rev-parse --git-path hooks)/pre-commit"`, and it counts only where `test -x` passes on it - and `grep -q '^# File generated by pre-commit'` finds the framework's own header in it. Any - other executable there is not the gate this bullet is about. In a linked worktree with no + will run before installing anything, from the worktree root, with + `h="$(git rev-parse --git-path hooks)/pre-commit"; test -x "$h" && grep -q '^# File generated by pre-commit' "$h"`. + It passes only on an executable hook carrying the framework's own header. Any other executable + there is not the gate this bullet is about. In a linked worktree with no `core.hooksPath` set, that path is the base clone's shared hooks directory. So such a hook already there is the one every checkout runs, and the step is done. Where none is present in a linked worktree, the bullet below applies. In a standalone clone the hooks directory is the clone's own, so run `uv tool install pre-commit` once per host if not already installed, then