Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/agent-conduct/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Where a lesson lands, when it earns a mechanical hook, and where work blocked on
- **A blocker filed in another repository is recorded in the repository whose work it blocks.** The binding moment is when the upstream issue is filed or, where it already exists, found. That is because the session filing or finding it is the one that knows what stopped and why. It owes a second issue in the repository that is waiting rather than only the first. Where the upstream issue already exists, the local issue names that one and no second upstream issue is filed. The local issue states what this repository cannot do and why, in its own terms rather than as a pointer to read elsewhere. That is because a reader who has to open the upstream issue to learn whether it affects them opens every one of them. The local issue names the upstream one as its blocker, carries the `blocked` label, and carries whatever labels its own work would carry anyway. A comment on the upstream issue then names the local one in return. It is a comment rather than an edit to the body because a second repository may join the same blocker later. It is also because the body is often not this session's to rewrite. That order is the upstream issue, then the local issue, then the backlink comment. It leaves a partial failure as a record naming its blocker rather than as a blocker naming a record nobody wrote. **A handoff does not do this job.** It carries the blockers a round met, but it belongs to one track and closes when that track's work is done. The wait can outlive that track, so it belongs in the backlog the whole repository reads.
- **The blocker record is written under the ordinary write rules, and the label on it is taken off deliberately.** Filing an issue and commenting on another are state-changing calls. So "Repository Boundaries and Write Safety" binds each of them exactly as it binds any other write. That keeps the upstream issue inside this owner. That binding also makes a blocker under a different owner a matter of explicit permission rather than of this rule. The `blocked` label is what every reader of this record selects on. So a repository not carrying it cannot host one until the fleet label set is applied there. That is a change to that repository's configuration rather than anything this rule writes. A session that finds it missing reports that. The label comes off when the blocker clears. The session closing the upstream issue is best placed to take it off. That is because the backlink comments naming every waiting repository are on the issue it is closing. Any later session that finds it cleared takes it off instead. A fix can land well before either of those, so the label lags the fix rather than tracking it. That is why a session meeting a `blocked` issue reads the state of the issue that issue's body names rather than the label. The local issue stays open when the label comes off. That is because the work it records still has to be done and is ordinary backlog from that moment on.
- **A handoff parked on a maintainer decision carries the `blocked` label too.** Its blocker is a `decision` issue in this same repository rather than an issue elsewhere, and the parking comment on the handoff names it. A reader reads the named issue rather than the label, and the blocker clears when that issue loses its `decision` label. Unlike a cross-repository blocker, a session finding it cleared does not take the label off. It comes off only once a session writes the next round and leaves no `decision` issue on that work unanswered, whichever session filed it. So a running loop never takes a handoff a present maintainer is still working, or one it could only park again.
- **A durable rule earns a mechanical hook only where a hook can actually decide it, otherwise it stays prose.** The conditions below must hold together, not any one alone. The failure recurs even after the governing prose was demonstrably read and understood. So it is not a discovery or loading problem that a structural fix would already solve. A structural fix here means getting the rule into context at all. The triggering shape is decidable from the tool call's own text, arguments, and working directory alone, with no semantic or contextual judgment required. And the failure is destructive or hard to reverse rather than a quality miss. A worktree-isolation lapse met all of them, so it was promoted to a `gh-write-guard` hook rule. It recurred under prose the agent had already read. The question "is this command's target a primary checkout" is a plain directory comparison. And the harm is another task's swept or reverted work. A skill's own trigger going unread by the session at all, by contrast, is a loading problem. It is fixed by getting the rule into context (the `CLAUDE.md` importing `AGENTS.md`), not by a hook. And "was this review finding actually evidence-backed" fails the second condition outright. A hook sees only the command text, never the judgment call itself, so it can only ever nag, not decide. That class of rule stays prose and a chained Skill trigger. Those conditions gate promotion to a **host** hook. That is the involuntary layer that fires in every session under the maintainer's own credentials, and only the maintainer can grant an exemption from it. That is why the bar there is destructive harm. A **committed** hook in the repository's own tree is a third layer between prose and that one, and it is earned on weaker grounds. It is opt-in per clone, visible in the tree, and bypassable by design. It therefore fits a rule whose harm is a quality miss rather than a destruction. The second condition still binds it, since a hook that cannot decide its own trigger is a hook that nags. So what earns the layer is finding the decidable half of a rule whose other half is judgment. The local-review rule under `GOVERNANCE.md` "Verification Discipline" is the worked example. Whether a review's findings were rightly disposed of is judgment no hook can decide, and it stays prose. Whether a review pass ran over exactly the content being pushed is a receipt comparison, which the hub's own `.husky/pre-push` decides.
- **A durable rule earns a mechanical hook only where a hook can actually decide it, otherwise it stays prose.** The conditions below must hold together, not any one alone. The failure recurs even after the governing prose was demonstrably read and understood. So it is not a discovery or loading problem that a structural fix would already solve. A structural fix here means getting the rule into context at all. The triggering shape is decidable from the tool call's own text, arguments, and working directory alone, with no semantic or contextual judgment required. And the failure is destructive or hard to reverse rather than a quality miss. A worktree-isolation lapse met all of them, so it was promoted to a `gh-write-guard` hook rule. It recurred under prose the agent had already read. The question "is this command's target a primary checkout" is a plain directory comparison. And the harm is another task's swept or reverted work. A skill's own trigger going unread by the session at all, by contrast, is a loading problem. It is fixed by getting the rule into context (the session loading `AGENTS.md` at start), not by a hook. And "was this review finding actually evidence-backed" fails the second condition outright. A hook sees only the command text, never the judgment call itself, so it can only ever nag, not decide. That class of rule stays prose and a chained Skill trigger. Those conditions gate promotion to a **host** hook. That is the involuntary layer that fires in every session under the maintainer's own credentials, and only the maintainer can grant an exemption from it. That is why the bar there is destructive harm. A **committed** hook in the repository's own tree is a third layer between prose and that one, and it is earned on weaker grounds. It is opt-in per clone, visible in the tree, and bypassable by design. It therefore fits a rule whose harm is a quality miss rather than a destruction. The second condition still binds it, since a hook that cannot decide its own trigger is a hook that nags. So what earns the layer is finding the decidable half of a rule whose other half is judgment. The local-review rule under `GOVERNANCE.md` "Verification Discipline" is the worked example. Whether a review's findings were rightly disposed of is judgment no hook can decide, and it stays prose. Whether a review pass ran over exactly the content being pushed is a receipt comparison, which the hub's own `.husky/pre-push` decides.

`GOVERNANCE.md` "Durable Knowledge and Self-Improvement" keeps the full rules. The `agent-conduct` Skill at `.agents/skills/agent-conduct/SKILL.md` in the hub carries it whole as a generated include and surfaces it at its decision moments. That path is not a repo-relative link, since it is hub-local and not carried into every fleet repo.

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/audit-a-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ The audit is the fleet's measurement procedure. The failure shapes it guards aga

Measuring and fixing are separate phases. Converging is `AUDIT.md` section 10. In that section, fixes ship as pull requests on the target repo, one focused pull request per drift class. In that section too, the Copilot loop is driven to green per the `pr-review-conduct` skill, and the maintainer merges. For a repo already stood up, `RESYNC.md` sequences the findings, since order matters (a deletion lands before the re-vendor that would refresh it). Its section 6 states the one grouping. Systemic drift shared by many repos is fixed in the hub spec, not hand-patched per repo. Spec questions are escalated rather than resolved silently. Both are in `AUDIT.md` section 9.

An audit leaves no checkout behind it, since one left standing is what a later sweep has to tell apart from live work. Each is removed when the run ends, per `repo-worktree` "Listing and Cleanup". The report's pull request is cleaned up once it merges, with `uv run --no-project --script scripts/pr_review.py cleanup <number> --repo ptr727/ProjectTemplate --checkout <hub-base-clone>`. A detached checkout at `main` that only read the hub is removed by hand once it is clean.
An audit leaves no checkout behind it, since one left standing is what a later sweep has to tell apart from live work. Each is removed when the run ends, per `repo-worktree` "Listing and Cleanup". The report's pull request is cleaned up once it merges, with `uv run --no-project --script scripts/pr_review.py cleanup <number> --repo ptr727/ProjectTemplate --checkout <hub-base-clone>`. Spell every `scripts/pr_review.py` call this skill prints as `pr-review-conduct` "Expected review loop" says. A detached checkout at `main` that only read the hub is removed by hand once it is clean.
4 changes: 2 additions & 2 deletions .agents/skills/backlog-burndown/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ It runs the procedure against the base clone as each group's worker ends, per "T
It runs it while no worker is live in a tree it touches.
It carries the remote half of `drive-pr`'s post-merge cleanup too.
For a merged group both halves are one command, `uv run --no-project --script scripts/pr_review.py cleanup <number> --repo <owner>/<repo> --checkout <base-clone>`.
Spell it as `pr-review-conduct` "Expected review loop" says.
It is run from a hub checkout once for each merged group, `<base-clone>` being the repository's primary clone.
Spell every `scripts/pr_review.py` call this skill prints as `pr-review-conduct` "Expected review loop" says.
The command is run from a hub checkout once for each merged group, `<base-clone>` being the repository's primary clone.
It deletes the remote branch, then removes the group's worktree and local branch, per `repo-worktree` "Listing and Cleanup", which also says what its exit leaves to do.
Taking that step from the worker without naming a new owner would leave a live remote branch behind every group.
`cleanup` holds the delete's checks, among them the tip against the pull request's `headRefOid`.
Expand Down
11 changes: 4 additions & 7 deletions .agents/skills/drive-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR
4. Merge the feature PR into
develop with `uv run --no-project --script scripts/pr_review.py merge <number> --repo <owner>/<repo> --cleanup --checkout <base-clone>`,
run from a hub checkout outside the task's worktree, `<base-clone>` being the repository's
primary clone. Spell it as `pr-review-conduct` "Expected review loop" says, or on Claude Code the auto-mode
classifier judges the merge and refuses it. It reads the Merge Gate's mechanically readable items in code, through `wait`'s
primary clone. Spell every `scripts/pr_review.py` call this skill prints as `pr-review-conduct`
"Expected review loop" says. `merge` reads the Merge Gate's mechanically readable items in code, through `wait`'s
own decision and a fresh read after it. It merges nothing while one reads unmet. The items no
code reads stay this seat's per pr-review-conduct's Merge Gate. A finding the pull request's
body lists is one. A no-thread finding on an earlier round is one too, since `FINDINGS WITH NO
Expand Down Expand Up @@ -178,11 +178,8 @@ this skill exists to prevent. So is forgetting to loop back to the promotion PR
ran. Exit `0` is done, the branch deleted or already gone. Any other exit stops and reports rather
than deleting by hand. `1` is a refusal, a moved tip among them. `2` is a read that did not
answer or a delete it could not confirm. `64` is a target under an owner other than the hub
checkout's own `origin`, or that `origin` unreadable. A registry refusal is a `1`. It runs
under the host-safety installer's `Bash(uv run --no-project --script scripts/pr_review.py:*)` allow rule,
which is what lets auto mode complete it. That holds where the call is
spelled as `pr-review-conduct` "Expected review loop" says.
It also refuses while another open pull request in the repository has the branch as its head or base.
checkout's own `origin`, or that `origin` unreadable. A registry refusal is a `1`.
`cleanup` also refuses while another open pull request in the repository has the branch as its head or base.
It names each, since the delete would close or retarget it.
Where this seat cannot run `cleanup`, report the delete to the maintainer instead of deleting by hand.
Name the pull request number and `--repo` so the maintainer runs the same command.
Expand Down
12 changes: 5 additions & 7 deletions .agents/skills/merge-and-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
2. Record the promotion's live head, `gh pr view [number] --repo owner/repo --json headRefOid
--jq .headRefOid`. Then, from a hub checkout, `scripts/` is not carried into downstream repos,
run `uv run --no-project --script scripts/pr_review.py status [number] --repo owner/repo` on it and confirm the
pr-review-conduct Merge Gate. Stop and report exactly what is missing rather than merging on a
partial gate. A digest carrying `state=MERGED` is a promotion merged since step 1 found it
pr-review-conduct Merge Gate. Spell every `scripts/pr_review.py` call this skill prints as
`pr-review-conduct` "Expected review loop" says. Where the gate is not met, stop and report exactly what is missing rather than
merging on a partial gate. A digest carrying `state=MERGED` is a promotion merged since step 1 found it
open, whose `merge=UNKNOWN` never clears, so stop re-reading it. Confirm its `merge_commit=` per
step 4, run the ready-report comparison below against its `head=`, and report both. Dispatch
nothing on the chosen scope alone, since whoever merged it may have released it already. Where
Expand Down Expand Up @@ -233,11 +234,8 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
says what a refusal after it and a `base=kept` line each leave to do. Exit `0` is done, and
any other exit stops and reports. `1` is a refusal, and `2` is an unanswered read or an unconfirmed
delete. `64` is a target under an owner other than the hub checkout's own `origin`, or an
unreadable `origin`. A registry refusal is a `1`. It runs under the host-safety
installer's `Bash(uv run --no-project --script scripts/pr_review.py:*)` allow rule, which is what lets auto mode
complete it. That holds where the call, or the `--sweep` call below, is
spelled as `pr-review-conduct` "Expected review loop" says.
It also refuses while another open pull request in the repository has the branch as its head or base, naming each.
unreadable `origin`. A registry refusal is a `1`.
`cleanup` also refuses while another open pull request in the repository has the branch as its head or base, naming each.
Where this seat cannot run `cleanup`, report the cleanup to the maintainer instead of running its steps by hand. That report names the pull request number and `--repo`.
No direct `git push origin --delete`, ref API delete, `git worktree remove`, or `git branch -D` runs on a feature branch from this skill. That is because `cleanup` is the one place holding the checks.
Never apply this sweep to `develop` or `main`
Expand Down
Loading
Loading