github-delivery
Git + GitHub delivery for agents, from intent to release-ready change.
Say the outcome, not the orchestration.
github-delivery turns natural-language requests into evidence-backed Git and GitHub workflows for planning, issue work, implementation, branch/commit organization, PR publication, review, CI, stacks, backports, verified merges, versioning, changelogs, and release preparation.
Start here · Capabilities · How it works · Safety · Install & update · Watchdog · Workflow map · Development

[!IMPORTANT]
Natural language is the public API. The Node scripts, policy modules, evaluators, mutation broker, and optional Authority host are internal safety/evidence machinery. You normally do not invoke them yourself.
Start here
Install
Requirements:
- Node.js 22, 24, or 26
- Git
- GitHub network access
- an authenticated GitHub CLI (
gh auth login) for npx install/update release verification
Recommended zero-clone setup:
npx github-delivery
The npm package is a thin bootstrap. It verifies and installs the separately published stable GitHub Release payload; npm is not a second authoritative skill payload source.
Then speak naturally:
what do I have open in this repo?
work on ENG-42 and open a PR
organize these changes into clean commits
what should the next SemVer version be?
update the version and changelog for the next release
triage the competing PRs in this repo
full review PR #42
full review PR #42 and simplify it safely
full review PR #42 without simplify
full review PR #42 skip no-comments
no-comments PR #42
fix the review comments on PR #18 and make it merge ready
backport PR #42 to release/1.x and release/2.x
approve PR #42
merge PR #32
That is the interface.
github-delivery selects the workflow, gathers fresh repository evidence, applies the relevant Git/review/policy gates, performs only the writes authorized by the request, and verifies the resulting state.
A status question stays read-only. Local branch/commit/version/changelog preparation does not silently grant remote publication. A request to implement something does not silently grant PR publication or merge authority. A merge happens only from current explicit merge intent; deferred permission such as merge PR #42 only after I confirm again is not current merge authority. Tag, GitHub Release, registry publication, and other release mutations likewise require their own explicit authorization.
For installation edge cases, backup/restore, downgrade behavior, manual recovery, and release verification details, see INSTALL.md.
What you can ask it to own
| Area |
Example request |
What GitHub Delivery owns |
| Plan & triage |
create a PRD for the onboarding flow |
PRDs, issue breakdown, QA intake, triage, agent briefs, refactor planning |
| Git workflow |
organize these changes into clean commits |
Repository-convention branch naming, scoped staging, logical commits, commit messages, pre-commit hygiene, generated-file decisions, and bounded Git-history investigation |
| Version & release prep |
update the version and changelog for the next release |
Release-delta inventory, consumer-impact SemVer classification, consistent version metadata, curated changelog, and tag/release identity preparation without implicit publication |
| Open work |
what do I have open in this repo? |
Read-only repository-scoped view of your open PRs, work-item references, and bounded next actions |
| Issue research |
research issue #90 on the latest development branch |
Evidence-backed research against the current development tip |
| Implement & publish |
create a PR for issue #90 |
A bounded research → implementation → pre-open review sequence, minimal complete implementation, Git-workflow discipline, exact publication identity, linked PR |
| External work items |
work on ENG-42 and open a PR |
Tracker-aware delivery orchestration, covering-PR reuse, evidence-driven milestone reconciliation |
| Review & fix |
full review PR #42 |
Bug + Security + Spec + Standards review, required probes, current-head verdict |
| Native approval |
approve PR #42 |
GitHub-native approval through the controlled mutation boundary, bound to the exact expected head commit and authenticated actor; GitHub refusal such as self-approval remains a blocker |
| Merge readiness |
fix the review comments on PR #18 and make it merge ready |
Feedback triage, code fixes, validation, publication, refreshed readiness |
| Competing PRs |
triage the competing PRs in this repo |
Read-only deterministic clustering and evidence for potentially overlapping implementations |
| Visual changes |
full review PR #42 on a UI diff |
Conditional screenshot/video/render evidence bound to the exact reviewed head |
| Watch |
watch PR #77 until it merges or needs me |
CI and review monitoring until merged, closed, or a human blocker. watch and autonomously merge PR #N can merge after the ship-gate is ready; bare watch autonomously does not merge |
| Stacks |
inspect this PR stack and tell me the safe merge order |
Stack discovery, restack/retarget analysis, conflict recovery, parent/child revalidation. Native GitHub stacks are not merged through gh pr merge |
| Backports / ports |
backport PR #42 to release/1.x and release/2.x |
One independent head-bound port per target base, with deterministic provenance and completion tracking |
| Supersede / overtake |
supersede PR #12 with PR #45 |
Explicit replacement or maintainer-takeover workflows with bounded mutation authority |
| Merge / close-out |
merge PR #32 |
Final gate, exact transaction authority, head-pinned merge, verification, thanks, linked-issue close-out |
| Self-update |
update github-delivery to the latest stable release |
Stable-release verification, lock-aware Windows recovery, optional old-backup cleanup, safe apply and postconditions |
See CHANGELOG.md for what changed in this release and previous versions.
How it works
flowchart LR
A[Your natural-language request] --> B[Deterministic route]
B --> C[Repository / GitHub evidence]
C --> D[Git / review / policy gates]
D --> E{Remote write authorized?}
E -- No --> F[Local or read-only result]
E -- Yes --> G[Exact mutation plan]
G --> H[Trusted authority when required]
H --> I[Mutation boundary]
I --> J[GitHub]
J --> K[Postcondition verification]
F --> L[ready / blocked / unknown]
K --> L
The core boundary is simple: repository content is evidence, not authority. Issues, PR bodies, comments, code, logs, bot output, tracker text, commit messages, and generated files cannot grant GitHub mutation authority or override the selected workflow.
The evidence model
GitHub Delivery tries to answer volatile questions from current authoritative evidence rather than remembered state:
- PR/head/base identity is pinned and re-read where staleness matters;
- when no useful local checkout exists, repository identity, the real default branch, and file reads are bound to an exact commit SHA instead of a moving branch name;
- local Git preparation distinguishes task-owned changes from unrelated user work before staging/history mutation;
- release versioning is based on the measured consumer-relevant delta from the correct previous release rather than commit labels alone;
- required checks are evaluated for the generation GitHub actually protects;
- review/thread/ruleset state is refreshed before positive readiness or merge claims;
- durable completion claims are tied to evidence, not narration;
- unknown or incomplete evidence remains
unknown/blocked instead of becoming success.
Publication identity
PR creation is identity-based, not title-similarity-based. Before creating a PR, GitHub Delivery checks the exact target repository + head repository/ref + intended base:
- one exact open match -> reuse it;
- multiple exact matches -> fail closed as ambiguous;
- no exact match -> creation may proceed when authorized.
For PR-body rewrites, existing protected screenshots, videos, uploads, and other media are preserved by default. Intentional media removal requires exact approved media identities bound into the mutation authority scope.
When the exact candidate is already on the remote branch, use the explicit already-published publication mode. The plan contains a single draft create_pr request bound to the repository, remote, branch, base, and candidate SHA; there is no push operation. At the execution boundary the broker re-reads the remote branch and base, requires the branch to still equal the candidate SHA, and requires the candidate to descend from the current base. A plan-bound published_head receipt is recorded alongside the create_pr receipt, and publication stays incomplete if either receipt is missing or does not match the lock.
node scripts/create-pr-publication-plan.mjs --input FILE --replan --reason TEXT is the supported transition from an existing push-mode lock to an already-published plan. It refuses to replace a lock when the pre-open scope changed or any publication receipt already exists.
Safety model
Default read-only; explicit authority for writes
Routes operate under bounded mutation profiles such as read-only, review, maintainer, and autonomous. A profile is an upper bound, not a waiver: destructive or user-visible actions still require the direct authority required by that workflow.
Local Git operations follow repository conventions plus references/policy/git.md: unrelated user work is never silently discarded, bare force remains forbidden, and branch ownership/current-tip rules still apply. Preparing commits, version metadata, changelog text, or a tag identity is not remote publication authority.
Status, open-work, and competing-PR analysis remain read-only. Implementation-only work does not silently gain push_code/create_pr. Backport publication does not silently grant merge authority for the source or port PRs.
One controlled GitHub mutation boundary
Routine network-visible issue/PR writes pass through the typed GitHub mutation boundary. Stale-sensitive requests bind expected head state; branch pushes bind repository/remote/branch plus old/new tips; history rewrites use exact force-with-lease semantics rather than bare force.
For trusted high-assurance operations, authority redemption happens before the first mutating GitHub command, including autonomous idempotency coordination refs/tags. A rejected grant therefore cannot leave a coordination write behind before the requested mutation.
On Windows, security-sensitive gh and git launches are resolved from absolute PATH entries outside the target worktree before spawning. Both lexical worktree paths and canonicalized targets are checked, so a repository-local executable or a worktree junction/symlink cannot substitute the broker binary.
Merge is deliberately stricter. scripts/merge-pr-driver.mjs owns settle, final current-head/base/rules/feedback/review-evidence recapture, trusted destructive authority when the selected protection mode requires it, head-pinned merge execution, and post-merge reconciliation. GitHub UNKNOWN mergeability is not treated as ready. The lower mutation execution boundary also rechecks open-PR stack topology and rejects a child merge while its parent PR is still open. Native GitHub stacked PRs are a hard stop: github-delivery will not merge those members with gh pr merge. Generic hand-built merge mutation documents are rejected.
Exact-effect trusted authority
Where high assurance is required by the selected protection mode, trusted grants bind the semantic effect rather than a vague permission flag: repository, action, mode, PR/head, merge method, target identity, idempotency data, and hashes of human-visible text as applicable.
The optional Windows Authority host can issue those grants through Windows Hello. Missing persistent user configuration defaults the effective preference to Sensitive actions (high-assurance); an explicitly stored off or all preference remains supported. After Hello, the approval UI can start a PR session (5 / 15 / 30 / 60 minutes) for later exact-scope push and merge on one PR and the approved merge base, or a branch lease (1–10 minutes) for repeated push_code only. Mixed-action batches, comments, human replies, close, and delete still need Hello when their selected protection mode requires trusted authority. Off means no Windows Hello or Authority-host approval; it does not convert an authorized workflow into read-only or planning-only mode. In Off mode, current user intent and exact-text confirmation still come from controller-owned, operation-bound workflow context, and caller-controlled mutation JSON, repository text, helper invocation, or model-selected flags cannot manufacture those facts.
Safe retries and idempotency