Repository navigation
feat(deliver)!: deliver to a level the repo's workflows define, resumably - #98
Merged
Merged
Conversation
…ably deliver now stops at `ready` unless the owner clicks a Deliver button. The PR's one ask offers a button per level read from the repo's .github/workflows triggers (else its AGENTS.md/README, else `merged`), capped by the clicker's GitHub permission. `--pr N --to <level>` carries out the click: it skips every step whose proof (this session, GitHub CI and QA evidence, review-loop's state) still matches the PR's patch-id, stops on hard-stop labels, others' requested changes and open human threads, applies `qa-approved` when QA evidence is on the head, merges, and promotes the merge commit up to that level. kickoff, pickup and overnight end with that Deliver ask instead of a merge ask; overnight's merge train becomes a Deliver ask for the train. BREAKING CHANGE: deliver no longer auto-merges small changes, and the `ownerCanSelfMerge` profile key is ignored. `--merge-only` and `--expect-head` remain as deprecated aliases for one release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
@maxidragon could you review this as part of the delivery redesign (SPEC-051)? The spec is at https://app.notion.com/p/4254d59f776b813ea176f58107e69059 (Notion, FSH Internal) and explains why. The four PRs are the implementation and its end-to-end proof: #98, fullstackhouse/paseo-asks#104, fullstackhouse/paseo-asks#106 and fullstackhouse/paseo#297. paseo-asks#104 narrows your #85 check to buttons that cannot work, so your view there matters most (spec open question 3). |
…moves deliver no longer drives a host's asks tool. It ends its report with a Next moves block (one move per level, with the exact instruction); a host such as Paseo's asks plugin turns the moves into buttons and owns subscription and lifecycle. kickoff, pickup and overnight follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every run's final message ends with it, even with no moves (blocked, waiting, or at the top level), and a blocked block never asks the owner to do what a move does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rt and Next moves The run-to-a-level path ended on hard stops and step 9 without pointing back at the Next moves block, so agents ended with prose. Every exit now goes to step 10, which ends with the block, with filled-in examples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s no moves Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Update since the review request, for @maxidragon:
Head is |
# Conflicts: # .claude-plugin/plugin.json
jtomaszewski
marked this pull request as ready for review
November 28, 2026 23:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements step 1 of the spec in fullstackhouse/fsh-monorepo#622 (the
skillspart; the skills-internal parts are separate).🎯 Too many layers decide whether an agent may merge, and they disagree
deliverauto-merged "small" changes with no label check, gated--adminon a per-repoownerCanSelfMergeknob, and had a separate--merge-onlymode for owner approvals. Callers (kickoff, pickup, overnight) each ended with their own merge asks. The result was double clicks: an owner's one decision ("ship it") routinely took two or three asks, plus re-approvals after rebases.🔧 One Deliver click per level, resumable, read from the repo
Without a click, deliver stops at
ready. That means checks, review loop, QA evidence when the PR needs it, and CI green, with nothing merged. Small changes no longer auto-merge.Levels are read from the repo. Sources, in order:
.github/workflowstriggers: a push to the default branch is the merge level; aworkflow_runof a level's workflow follows it; a dispatch-only workflow with a commit/ref input is a dispatched level.merged.Every ask lists the levels it read and where each came from.
One ask per PR, with one
Deliver to <level>button per level. The buttons are capped by the clicker's GitHub permission. There are no "when green" variants.--pr N --to <level>carries out the click. It is resumable: each step is skipped when its proof still matches the PR'sgit patch-id. Proof comes from:state.json.No state file is added.
It stops on hard stops:
do-not-merge,blockedandqa-failedlabels, aCHANGES_REQUESTEDreview by anyone but the clicker, and unresolved human threads. Onneeds-qawith evidence on the head, it appliesqa-approved(the click is the sign-off). An admin's click merges with--adminonly after the base's required checks passed on the head. A non-admin's click requests a review fromreviewersand continues once approved. It then promotes the merge commit up to the clicked level and updates the same ask.Rebases keep the approval. Same patch-id (or same-change with docs tolerance), or a non-material follow-up (under ~100 lines, no new files), keeps the click valid. Anything else re-asks.
Repos with their own delivery skills (the Open Mercato
om-*pipeline) are not merged or promoted through deliver.kickoff, pickup and overnight end with deliver's Deliver ask. overnight's merge train becomes one Deliver ask for the train.
ownerCanSelfMergeis removed from deliver and the README profile keys, and a leftover key is ignored.--merge-only/--expect-headremain as deprecated aliases for one release. Version 2.24.0 → 3.0.0 (breaking: no auto-merge, profile knob removed).🧩 How the pieces fit
🔍 Spec section → diff
## Levelsand## The Deliver asksections indeliver/SKILL.md.--merge-onlyfolded into a rerun; own-skills repos) →## Deliver to a levelreplaces## Merge-only mode, keeping its rebase-and-prove and same-change. Also a Project-specifics bullet and hard rule 14.## Proofsection, "skip on proof" lines in Phases 2–4, step 5 of Deliver to a level, and the newscripts/patch-id.sh.ready→ Phase 7 rewritten as "Ready — and the Deliver ask", and hard rule 12.--pr N [--to <level>], aliases).ownerCanSelfMergeremoved) → Project specifics and README.skills-internal, not here, so it is untouched by this PR. ItsownerCanSelfMergeline needs a separate change there, alongside fleet-process-change.paths/paths-ignoreexcludes every file in the PR's diff is left out of that PR's merge level. Levels are therefore per PR, not per repo. Without this, a side-service deploy to prod on push would name the merge levelprodfor every PR.name:/file (dev, staging, prod/production, released/release), then from environment names, then the file name. Environment names are often credential scopes (e.g.*-previewon a dev deploy), so they rank second. A merge level of several workflows takes the farthest stage.workflow_callcallees (e.g. a demo deploy called by a release workflow) belong to their caller and are not separate levels. A dispatch whose input is a release tag (not a commit/ref) is not a level.headShais the branch it started on, not the input. So only a run this session dispatched, or one whosedisplayTitlenames a commit containing the merge, counts as proof. Otherwise deliver dispatches again.Deliver PR #N to <level> (offered at <sha>)). Without that, the session's own ask is used; for an instruction the owner typed bare, the head at the click is used.readyrequires a QA evidence comment naming the head only when the PR carriesneeds-qa; otherwise QA is not a condition.__typenameis notBot. Unresolved bot threads are worked by Phase 6b, not hard-stopped.read/triageget no buttons;write/maintainget every level (a merge on a REVIEW_REQUIRED PR requests review);admincan bypass. A dispatched level whose environment has required reviewers excluding the clicker caps the buttons below it.--parent <P> --parent-head <psha>. A click before the parent lands waits for it, like waiting for CI.--merge-onlymaps to--to <first level above ready>, which now also waits for that level's deploy and may push small CI fixes.--no-mergeis kept as an accepted no-op (the default), so docs-audit and blacksmith, which still saydeliver --no-merge, keep working without edits.--match-head-commit, remote branch deleted withgit push --delete) instead of--delete-branch.✅ Testing
scripts/patch-id.sh: shellcheck clean. In a scratch repo, a rebased head keeps the patch-id, an added change alters it, a bad ref exits 2, and no arguments prints usage and exits 2.same-change.shis untouched.plugin.jsonwas bumped to 3.0.0. The repo has no other lint or tests.gh api). Repos are anonymized here because this repo is public.dev→staging→prod, matching the spec.apps/<app>/**path filter), so it is the merge level,dev.workflow_runof the dev deploy, so it follows asstaging.shainput, so it is the dispatched levelprod.workflow_call), preview and cleanup workflows, scheduled jobs, and a DDL-install dispatch whose only input is an environment choice.prod, which is the truth: merging deploys that service to prod.released, matching the spec.workflow_runof CI on main, so it is reached by the merge.workflow_call), and its dispatch takes a tag, not a commit.om-*skills, so deliver doesn't merge there.dev, matching the spec. The dev deploy runs on push (paths-ignore**.md). A dispatch-only seed workflow has no inputs, so it is not a level.prod, matching the spec. Dev and prod deploys both run on push, so they form one level named after the farthest. A docs-only PR misses the dev deploy (paths-ignore) but still reachesprod.[bot]suffix);readyconditions;gh prcalls in a detached worktree.--pr N --to <level>against a real PR: no promotion, dispatch, admin merge or review request was exercised.qa-approvedon a click (spec open question 2). This needs an interactive session.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.