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
10 changes: 7 additions & 3 deletions .agents/skills/backlog-burndown/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ for, and it binds harder than any throughput target.
has already opened a pull request, say whether it closes or waits, since one left open on an
abandoned branch reads to every later round as a live claim. **Update the claim comment whenever
the adjudication changes what a group holds**, in either direction, or the durable record drifts
from the real claim it exists to report.
from the real claim it exists to report. A group told to abandon its branch keeps its claim
comment unchanged, since cleanup decides whether that claim is released, per "Cleanup Is the
Orchestrator's".
- **Cap the round at four workers**, whatever the grouping allows.

## Bounding a Prose Group
Expand Down Expand Up @@ -260,6 +262,8 @@ Brief on `AGENTS.md` "Context and Delegation Discipline"'s subagent shape.
it before dispatch. The worker still creates its own worktree, on that named branch rather than
one of its choosing, since a claim naming a branch nobody used points at nothing.
A brief dispatching an issue returned to the ranking names a new branch.
A branch a claim comment names for the first time is one no pull request on the repository has
used as its head, checked with `gh pr list --head <name> --state all` before that comment is written.
- **The brief requires the `Closes on promotion:` line** in the pull request body, listing exactly
the issues this group fixes. A worker never reads this skill, and `drive-pr` does not ask for the
line, so a brief that omits it produces a pull request nothing can derive a closing set from.
Expand Down Expand Up @@ -299,7 +303,7 @@ one for the other is how a removal that discards nothing gets routed to the main
removal that discards commits gets waved through. Retiring a worktree alone, the branch left
standing, risks only what is uncommitted in it: a clean tree is the whole test, the branch's own
contents do not enter it, and a tree that is not clean is left exactly as it stands while the
group goes to the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
group is stopped for the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
whichever branch check the group's state calls for, `repo-worktree`'s verify-before-removing for a
group whose pull request merged and the no-merge substitute below for one whose has not. Which
check that is matters: a squash merge never makes the feature tip an ancestor of develop, so the
Expand Down Expand Up @@ -364,7 +368,7 @@ no commit that is not already on develop before anything is removed. A worker th
fix and then died leaves a clean tree standing over commits develop has never seen, so that check
is what separates the two. It holds, and the issue returns to the next round's ranking to be
dispatched on a new branch, its claim comment released with the worktree. It fails, and cleanup stops there
and the group goes to the maintainer, since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", naming the worktree
and what is uncommitted in it. The orchestrator does not commit that work, hand the tree to a
replacement to commit, or remove it, per `GOVERNANCE.md` "Repository Boundaries and Write Safety".
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
280498eae1aa1f5b
aac3800c3f96ce19
10 changes: 7 additions & 3 deletions .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ for, and it binds harder than any throughput target.
has already opened a pull request, say whether it closes or waits, since one left open on an
abandoned branch reads to every later round as a live claim. **Update the claim comment whenever
the adjudication changes what a group holds**, in either direction, or the durable record drifts
from the real claim it exists to report.
from the real claim it exists to report. A group told to abandon its branch keeps its claim
comment unchanged, since cleanup decides whether that claim is released, per "Cleanup Is the
Orchestrator's".
- **Cap the round at four workers**, whatever the grouping allows.

## Bounding a Prose Group
Expand Down Expand Up @@ -260,6 +262,8 @@ Brief on `AGENTS.md` "Context and Delegation Discipline"'s subagent shape.
it before dispatch. The worker still creates its own worktree, on that named branch rather than
one of its choosing, since a claim naming a branch nobody used points at nothing.
A brief dispatching an issue returned to the ranking names a new branch.
A branch a claim comment names for the first time is one no pull request on the repository has
used as its head, checked with `gh pr list --head <name> --state all` before that comment is written.
- **The brief requires the `Closes on promotion:` line** in the pull request body, listing exactly
the issues this group fixes. A worker never reads this skill, and `drive-pr` does not ask for the
line, so a brief that omits it produces a pull request nothing can derive a closing set from.
Expand Down Expand Up @@ -299,7 +303,7 @@ one for the other is how a removal that discards nothing gets routed to the main
removal that discards commits gets waved through. Retiring a worktree alone, the branch left
standing, risks only what is uncommitted in it: a clean tree is the whole test, the branch's own
contents do not enter it, and a tree that is not clean is left exactly as it stands while the
group goes to the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
group is stopped for the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
whichever branch check the group's state calls for, `repo-worktree`'s verify-before-removing for a
group whose pull request merged and the no-merge substitute below for one whose has not. Which
check that is matters: a squash merge never makes the feature tip an ancestor of develop, so the
Expand Down Expand Up @@ -364,7 +368,7 @@ no commit that is not already on develop before anything is removed. A worker th
fix and then died leaves a clean tree standing over commits develop has never seen, so that check
is what separates the two. It holds, and the issue returns to the next round's ranking to be
dispatched on a new branch, its claim comment released with the worktree. It fails, and cleanup stops there
and the group goes to the maintainer, since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", naming the worktree
and what is uncommitted in it. The orchestrator does not commit that work, hand the tree to a
replacement to commit, or remove it, per `GOVERNANCE.md` "Repository Boundaries and Write Safety".
Expand Down
10 changes: 7 additions & 3 deletions .github/skills/backlog-burndown/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ for, and it binds harder than any throughput target.
has already opened a pull request, say whether it closes or waits, since one left open on an
abandoned branch reads to every later round as a live claim. **Update the claim comment whenever
the adjudication changes what a group holds**, in either direction, or the durable record drifts
from the real claim it exists to report.
from the real claim it exists to report. A group told to abandon its branch keeps its claim
comment unchanged, since cleanup decides whether that claim is released, per "Cleanup Is the
Orchestrator's".
- **Cap the round at four workers**, whatever the grouping allows.

## Bounding a Prose Group
Expand Down Expand Up @@ -260,6 +262,8 @@ Brief on `AGENTS.md` "Context and Delegation Discipline"'s subagent shape.
it before dispatch. The worker still creates its own worktree, on that named branch rather than
one of its choosing, since a claim naming a branch nobody used points at nothing.
A brief dispatching an issue returned to the ranking names a new branch.
A branch a claim comment names for the first time is one no pull request on the repository has
used as its head, checked with `gh pr list --head <name> --state all` before that comment is written.
- **The brief requires the `Closes on promotion:` line** in the pull request body, listing exactly
the issues this group fixes. A worker never reads this skill, and `drive-pr` does not ask for the
line, so a brief that omits it produces a pull request nothing can derive a closing set from.
Expand Down Expand Up @@ -299,7 +303,7 @@ one for the other is how a removal that discards nothing gets routed to the main
removal that discards commits gets waved through. Retiring a worktree alone, the branch left
standing, risks only what is uncommitted in it: a clean tree is the whole test, the branch's own
contents do not enter it, and a tree that is not clean is left exactly as it stands while the
group goes to the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
group is stopped for the maintainer per "Raising a Blocked Question". Deleting the branch as well risks what is committed, so it carries
whichever branch check the group's state calls for, `repo-worktree`'s verify-before-removing for a
group whose pull request merged and the no-merge substitute below for one whose has not. Which
check that is matters: a squash merge never makes the feature tip an ancestor of develop, so the
Expand Down Expand Up @@ -364,7 +368,7 @@ no commit that is not already on develop before anything is removed. A worker th
fix and then died leaves a clean tree standing over commits develop has never seen, so that check
is what separates the two. It holds, and the issue returns to the next round's ranking to be
dispatched on a new branch, its claim comment released with the worktree. It fails, and cleanup stops there
and the group goes to the maintainer, since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", since past that point removal discards work. **A dirty one is left exactly as it stands**
and the group is stopped for the maintainer per "Raising a Blocked Question", naming the worktree
and what is uncommitted in it. The orchestrator does not commit that work, hand the tree to a
replacement to commit, or remove it, per `GOVERNANCE.md` "Repository Boundaries and Write Safety".
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-upstream-version-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# App token so the merge commit fires downstream workflows and the PR is signed.
- name: Generate GitHub App token step
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge-bot-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Generate GitHub App token step
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Generate GitHub App token step
if: ${{ steps.rule.outputs.matched == 'true' }}
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- name: Generate GitHub App token step
# App token because a Dependabot PR's GITHUB_TOKEN is read-only regardless of who triggered the event.
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:

- name: Generate GitHub App token step
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-codegen-pull-request-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# A GITHUB_TOKEN open does not.
- name: Generate GitHub App token step
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.CODEGEN_APP_CLIENT_ID }}
private-key: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }}
Expand Down
32 changes: 26 additions & 6 deletions host-setup/agent-safety/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,30 @@ text says, because the harm it covers was never in the text.
parses, a wrapper shell's body and a command substitution's body among them. `--admin` is also read inside a quoted `eval` argument, as the command it runs. A quoted `"--admin"` is read too where the shell passes it to gh as a flag. The other flags are not read inside a quoted `eval` argument. Judge branch-rule cases against that branch's *live* rules, so a
code-style `develop` denies and a config-style `develop` allows with no per-repo configuration.
Each refspec's operation is judged on its own, so a `+src` or a `:dst` refspec forces or
deletes only its own branch. A push's force, delete, all, and mirror options are read as git
reads them. A short-option cluster such as `-uf` or `-ud` forces or deletes. A long option cut short, such as `--del`,
deletes only its own branch. A push's force, delete, all, mirror, and prune options are read as
git reads them. A short-option cluster such as `-uf` or `-ud` forces or deletes. A long option cut short, such as `--del`,
`--al`, or `--mirr`, is the option it starts, and `--branches` is `--all`. A refspec pattern
whose destination can match under `refs/heads/`, such as `refs/*:refs/*`, is read as pushing
every branch protected by default. A force-push and a delete each write the branch too, so a branch
every branch protected by default. Beside such a pattern, a lone `:`
refspec, `--all`, or a bare push, a `--prune` is read as deleting every branch protected by
default. A `--mirror` push with no refspec is read as forcing and deleting every branch
protected by default. So is a push with no refspec whose remote has a persisted
`remote.<name>.mirror` set true. So is one whose setting the hook cannot read where the push
runs. A push naming no remote reads every remote's setting. Git reads every word after a push's
first `--` or `--end-of-options` as the remote or a refspec, and so does the hook. A refspec
there that starts with a dash is then checked. Git may complete a destination outside `refs/` that starts `heads/` under
`refs/`, as in `HEAD:heads/develop` or `:heads/develop`. So such a destination is read as the
branch after `heads/` as well as by its literal name. A force-push and a delete each write the branch too, so a branch
whose rules require a pull request denies them as it denies a direct push.
**This one fails closed, but only for a branch protected by default** (`main`, `master`,
`develop`): when that branch's rules cannot be determined at all (network unreachable, origin
unresolvable), deny rather than allow, because the harm is a silent success under the
maintainer's own admin bypass. A push to any other branch whose rules cannot be determined
passes this requirement instead, since there is nothing yet on record to bypass. Apart from
passes this requirement instead, since there is nothing yet on record to bypass. A push that
`-C` or a leading `cd` runs in another checkout is judged against that checkout's origin as well
as the session's. The hook may not name the checkout a push runs in or that checkout's origin.
That holds under `sudo -D` or `env -C`, in a wrapper shell, and in a directory that does not
exist. That push's rules then count as undetermined. Apart from
that case, a push whose target the hook cannot read at all is denied whatever branch it names.
That covers a push in text the hook does not parse and a push carrying a `-c`/`--config-env`
override. It covers a git command under an `include.path`/`includeIf` override too, where git
Expand All @@ -83,8 +96,15 @@ text says, because the harm it covers was never in the text.
argument holding an include key is read as the command it runs. It also covers a bare push or a
`HEAD`/`@` refspec whose directory or branch may change before it runs. Such a push's local
branch is checked under its whole name, such as `release/1.0`. It is also checked with its first
segment dropped. A remote-tracking push target such as `origin/feature/x` is checked with its
remote dropped. A word the shell rewrites or drops before git reads it is denied where it can
segment dropped. A bare push's configured push target is read by its full name, such as
`refs/remotes/up/stream/x`. Where the text after `refs/remotes/` starts with a remote name
`git remote` lists and a `/`, that name and its `/` are stripped. The text after `refs/remotes/` is
also checked whole and with its first segment dropped. A bare push whose push target resolves while `git remote` cannot list the
remotes is denied. A bare push's destination is also read from the branch's own configuration.
That is its own name under a `push.default` of `current` or `simple`, and each
`branch.<name>.merge` branch under `upstream`. An unset `push.default` is read as `simple`. Both are
read where `push.default` holds a value git does not define, or where its read exits with any other error. A bare push is denied
where any read of its branch, its push target, or `push.default` times out or cannot run. A word the shell rewrites or drops before git reads it is denied where it can
change what git runs. Such a word is a `$`, backtick, or brace-expansion word. It is denied
where any git command's subcommand goes, and among a push's words or a commit's. On any git
command it is denied among the global options where word splitting may split it. A
Expand Down
Loading
Loading