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
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The required behaviors, organized by domain. Each is a **MUST**, and its `Output

### D8 - Bots / Automation

- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. A head on which no check but the merge-bot's own has posted never counts as passing. So a bot pull request that nothing else checks fails at the bound rather than merging. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.2 CodeGen and Dependabot.** Output: codegen runs as a matrix over both branches and is deterministic from an external source. `.github/dependabot.yml` targets both branches, and security PRs go to the default branch.
- **D8.3 Upstream-version tracker.** Output: a scheduled resolver prints a JSON `name -> version` object to a committed state file. It opens a rolling per-branch bump PR naming only the moved keys, and the merge-bot auto-merges it. The `main` pin push the merge-bot makes publishes via the release gate, while a `develop` pin does not auto-publish. It ships via a `develop` dispatch (prerelease) or the next promotion to `main`. The tracker's `bump-branch-prefix` + `branches` MUST match a merge-bot rule, or auto-merge silently never fires. That rule is one of the built-in `<prefix>-<base>` head/base pairs or a `rules` entry the caller passes. A tracker whose bump needs a human decision instead sets `auto-merge: false`, which prefixes the head so no merge-bot rule matches it, whatever `bump-branch-prefix` names. A `main` pin it carries then lands by a human merge, which never auto-publishes (D4.1), so it ships on the next publish.
- **D8.4 An identity allowlist used as a gate fails loud.** Where a gate compares `github.actor` (or a PR author) against hard-coded bot identities, the non-matching branch **emits a `::warning::`** on an otherwise-legitimate trigger. There it does not fall through silently. Output: a run that declines to act on an unrecognized identity is visibly annotated. *Prevents: the App being renamed, replaced, or reinstalled under a new slug, after which the comparison quietly evaluates false and the gate stops firing. The result is a green and silent run that looks identical to a healthy one.* The masking matters most where a second path hides the loss. One such path is a weekly schedule that keeps publishing, so the only symptom is release *timeliness*, easily missed for months. Where the failure is self-announcing instead (the merge-bot simply stops merging, so bot PRs visibly pile up) an annotation is optional. The delete job compares the same `user.login` as the merge jobs, so a renamed App already shows as piled-up bot PRs. Resolving the identity at run time (mint an App token, read `GET /app`) removes the hard-coded string entirely. Run-time resolution is the escalation if an allowlist proves fragile in practice.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0bb5b4b7ba9010a2
08afc11d47e1cb4f
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The required behaviors, organized by domain. Each is a **MUST**, and its `Output

### D8 - Bots / Automation

- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. A head on which no check but the merge-bot's own has posted never counts as passing. So a bot pull request that nothing else checks fails at the bound rather than merging. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.2 CodeGen and Dependabot.** Output: codegen runs as a matrix over both branches and is deterministic from an external source. `.github/dependabot.yml` targets both branches, and security PRs go to the default branch.
- **D8.3 Upstream-version tracker.** Output: a scheduled resolver prints a JSON `name -> version` object to a committed state file. It opens a rolling per-branch bump PR naming only the moved keys, and the merge-bot auto-merges it. The `main` pin push the merge-bot makes publishes via the release gate, while a `develop` pin does not auto-publish. It ships via a `develop` dispatch (prerelease) or the next promotion to `main`. The tracker's `bump-branch-prefix` + `branches` MUST match a merge-bot rule, or auto-merge silently never fires. That rule is one of the built-in `<prefix>-<base>` head/base pairs or a `rules` entry the caller passes. A tracker whose bump needs a human decision instead sets `auto-merge: false`, which prefixes the head so no merge-bot rule matches it, whatever `bump-branch-prefix` names. A `main` pin it carries then lands by a human merge, which never auto-publishes (D4.1), so it ships on the next publish.
- **D8.4 An identity allowlist used as a gate fails loud.** Where a gate compares `github.actor` (or a PR author) against hard-coded bot identities, the non-matching branch **emits a `::warning::`** on an otherwise-legitimate trigger. There it does not fall through silently. Output: a run that declines to act on an unrecognized identity is visibly annotated. *Prevents: the App being renamed, replaced, or reinstalled under a new slug, after which the comparison quietly evaluates false and the gate stops firing. The result is a green and silent run that looks identical to a healthy one.* The masking matters most where a second path hides the loss. One such path is a weekly schedule that keeps publishing, so the only symptom is release *timeliness*, easily missed for months. Where the failure is self-announcing instead (the merge-bot simply stops merging, so bot PRs visibly pile up) an annotation is optional. The delete job compares the same `user.login` as the merge jobs, so a renamed App already shows as piled-up bot PRs. Resolving the identity at run time (mint an App token, read `GET /app`) removes the hard-coded string entirely. Run-time resolution is the escalation if an allowlist proves fragile in practice.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The required behaviors, organized by domain. Each is a **MUST**, and its `Output

### D8 - Bots / Automation

- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.1 Merge-bot.** Output: the merge-bot enables auto-merge on `opened`/`reopened` for **every** Dependabot tier including semver-major. The required checks are the gate, not the bump magnitude. GitHub arms auto-merge only on a base whose rules require status checks. On a base whose rules require none, the merge-bot instead waits for every check run and commit status on the pinned head. It leaves out its own jobs, and it waits for at most twenty minutes, then merges the pull request directly. A failed check, a moved head, or the bound fails the job instead. A head on which no check but the merge-bot's own has posted never counts as passing. So a bot pull request that nothing else checks fails at the bound rather than merging. The merge-bot dispatches `--squash`/`--merge` by the PR's base ref, and disables on a maintainer-pushed `synchronize`. GitHub can disable an armed auto-merge with every check green, as for a merge that would write workflow content the App may not write. So the caller also triggers on `auto_merge_disabled`. A short job then answers a disable recorded under the App on a pull request the merge-bot arms. It waits for the base branch to settle, for at most five minutes, then re-arms once, pinned to the head it read. Where every check is already green, `gh` merges at once rather than arming, so a refused merge fails that job. That is visibility, not recovery. A second such disable on the same head fails the job too. A disable a person made stays in place. So does the maintainer-push disable, since the head is then not the bot's own push. So unless a person pushed to it or disabled its auto-merge, a pull request the merge-bot armed either merges or fails visibly. Its concurrency is keyed on the **PR number**, not `github.ref`. On `closed` it deletes a merged in-repo bot head when the caller opts in. The push leases the branch tip to the merged head, so a moved branch survives. *Prevents: two PRs colliding in auto-merge, and a bot pull request sitting open and green after GitHub disabled its auto-merge.*
- **D8.2 CodeGen and Dependabot.** Output: codegen runs as a matrix over both branches and is deterministic from an external source. `.github/dependabot.yml` targets both branches, and security PRs go to the default branch.
- **D8.3 Upstream-version tracker.** Output: a scheduled resolver prints a JSON `name -> version` object to a committed state file. It opens a rolling per-branch bump PR naming only the moved keys, and the merge-bot auto-merges it. The `main` pin push the merge-bot makes publishes via the release gate, while a `develop` pin does not auto-publish. It ships via a `develop` dispatch (prerelease) or the next promotion to `main`. The tracker's `bump-branch-prefix` + `branches` MUST match a merge-bot rule, or auto-merge silently never fires. That rule is one of the built-in `<prefix>-<base>` head/base pairs or a `rules` entry the caller passes. A tracker whose bump needs a human decision instead sets `auto-merge: false`, which prefixes the head so no merge-bot rule matches it, whatever `bump-branch-prefix` names. A `main` pin it carries then lands by a human merge, which never auto-publishes (D4.1), so it ships on the next publish.
- **D8.4 An identity allowlist used as a gate fails loud.** Where a gate compares `github.actor` (or a PR author) against hard-coded bot identities, the non-matching branch **emits a `::warning::`** on an otherwise-legitimate trigger. There it does not fall through silently. Output: a run that declines to act on an unrecognized identity is visibly annotated. *Prevents: the App being renamed, replaced, or reinstalled under a new slug, after which the comparison quietly evaluates false and the gate stops firing. The result is a green and silent run that looks identical to a healthy one.* The masking matters most where a second path hides the loss. One such path is a weekly schedule that keeps publishing, so the only symptom is release *timeliness*, easily missed for months. Where the failure is self-announcing instead (the merge-bot simply stops merging, so bot PRs visibly pile up) an annotation is optional. The delete job compares the same `user.login` as the merge jobs, so a renamed App already shows as piled-up bot PRs. Resolving the identity at run time (mint an App token, read `GET /app`) removes the hard-coded string entirely. Run-time resolution is the escalation if an allowlist proves fragile in practice.
Expand Down
Loading
Loading