Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).
日本語の概要は準備中です。原文の説明を表示しています。
Use to run a GHI-driven patch release, or to publish a minor release handed over by gz closeout.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Orchestrate the GHI-driven patch release ceremony by drafting narrative release notes, presenting them to the operator for approval, and executing the release pipeline.
Authority: docs/governance/GovZero/releases/patch-release.md
Layer 2 — Ledger Consumption: This skill orchestrates operator attestation using GHI evidence and CLI outputs.
gz patch release CLI)gz patch release --dry-run)0.0.x) reached
Validated status with all OBPIs Validated and a Gate-5 validated
receipt in the ledger since the last tag (auto-discovered by
gz patch release --dry-run)gz closeout has
already bumped (§ Hand-over from closeout)gz closeout bumps it, then hands over heregz patch release --dry-run since the last tagsync_project_versionFoundation ADRs codify app/system invariants and identity-shaping semantics.
Per the hexagonal port/adapter doctrine (docs/governance/hexagonal-architecture.md),
ports (foundation ADRs) and adapters (feature ADRs) are equal code surfaces —
both ship validators, runtime engines, and schemas, and both participate in
the patch-release cadence on the same footing. A foundation closeout
(Validated, all OBPIs Validated, Gate-5 validated receipt in the ledger) is a
release-worthy event in its own right — the operator does not need to bundle it
into an unrelated behavior-level GHI to ship it, and the CLI enumerates it
mechanically rather than leaving it to operator memory.
| Qualifier | Source of truth | Discovery |
|---|---|---|
| Behavior-level GHIs | gh issue list + commit cross-validation | gz patch release --dry-run |
| Foundation-ADR closeout | Ledger Gate-5 validated receipt (audit_receipt_emitted), scoped to the release range by receipt timestamp | gz patch release --dry-run (mechanically enumerated — GHI #490) |
When the qualifier is a foundation-ADR closeout, the Step 2 narrative references the ADR ID and its decision rather than listing GHIs. The release flow (Steps 4a–4e) is identical regardless of which qualifier fired.
This skill owns the notes, the changelog and the publication of every release
(operator ruling 2026-10-11; .gzkit/rules/changelog-release-notes.md,
release-notes rule 3). When gz closeout has bumped the version for an ADR,
run Step 1 for the GHIs closed since the last tag and draft the entry around
the ADR's delivered value. Step 4a runs as usual: gz patch release sees a
version ahead of its tag, leaves it alone, and writes the manifest and the
ledger record. The same holds when an earlier run bumped and then stopped.
ONCE THE OPERATOR APPROVES, THE CEREMONY FLOWS TO COMPLETION.
After the operator approves the release notes in Step 3, the agent executes Steps 4a through 4e without pauses, summaries, or requests for additional confirmation. The operator made their decision. The agent carries it out.
| Thought | Reality |
|---|---|
| "Let me confirm before creating the GitHub release" | The operator already approved. Execute. |
| "I'll summarize what was done so far" | Summary is for after Step 4e, not between sub-steps. |
| "The git-sync failed, let me ask what to do" | Diagnose and fix. Only escalate if truly blocked. |
| "Let me show the RELEASE_NOTES diff first" | The operator approved the narrative. Write it. |
Run the dry-run discovery to show the operator what qualifies for this release:
uv run gz patch release --dry-run
Present the output to the operator. This shows:
If neither qualifier fires — no GHI qualifies and no foundation closeout is enumerated — inform the operator and stop. There is no release to make.
diff_only GHIs surface)diff_only means a closed GHI's commits touched src/gzkit/ but the GHI
itself lacks the runtime label — the strict qualifier (runtime ∩ src
diff) drops it, and substantive runtime fixes silently fall out of the
release narrative. This is an authoring-side labeling-discipline defect
canonized in ghi-author § Step 1 (secondary labels) — the GHI #402
mechanism. The recovery is binding before the ceremony proceeds:
Enumerate diff_only GHIs:
uv run gz patch release --dry-run --json > /tmp/patch-release.json
jq -r '.qualifications[] | select(.status == "diff_only") | .ghi.number' /tmp/patch-release.json
For each enumerated GHI, read the body to confirm the runtime
predicate fires per ghi-author § Step 1 — body cites src/gzkit/,
symptom is gz <verb> runtime, or remedy shape is fix(...). Confirm
case-by-case; do not blanket-apply.
Backfill the label with operator confirmation per GHI batch:
gh issue edit <N> --add-label runtime
Re-run uv run gz patch release --dry-run and verify the previously
diff_only GHIs now report qualified.
Proceed to Step 2.
If a diff_only GHI's body does NOT cite a runtime surface (e.g. the
commit happened to brush src/gzkit/ cosmetically while the GHI was a
docs-only change), do not backfill — the excluded bucket is the right
home and the operator should re-classify with --remove-label runtime
on any erroneous prior label. The labeling-recovery is not a license to
silence warnings; it is a corrective for the authoring-discipline defect.
When diff_only is a chronic pattern across consecutive releases, file
a defect-labeled GHI against ghi-author discipline rather than
absorbing the recovery cost every cycle (canonical home: GHI #402).
open_upstream GHIs surface)open_upstream means a GHI carries the runtime label AND has commits
touching src/gzkit/ in the release range — it would otherwise qualify —
but is still OPEN on GitHub. Discovery cannot resolve this alone: the
project-canonical subject form fix(<scope>): <summary> (GHI #N) is what
AGENTS.md § Defect-fix routing prescribes for any GHI-tracked repair,
so it attributes work without declaring closure. A locally-committed fix
awaiting push and an incremental cut under a deliberately-open tracker
produce the identical commit (GHI #714).
The operator adjudicates, per GHI:
Enumerate them:
uv run gz patch release --dry-run --json > /tmp/patch-release.json
jq -r '.qualifications[] | select(.status == "open_upstream") | .ghi.number' /tmp/patch-release.json
For each, determine which case it is:
| Case | Signal | Action |
|---|---|---|
| Fix landed; close pending push | The range contains the complete remedy; nothing is held back | Close the GHI through ghi-close (it verifies the commit and writes the citation comment), re-run discovery, and it reports qualified |
| Work under a still-open tracker | Part of the scope landed; the GHI intentionally remains open | Leave open. Describe only what actually landed in Step 2 — never the GHI's full scope — and do not count it in the Stats line |
Re-run uv run gz patch release --dry-run after any closures.
Proceed to Step 2.
Do not close a GHI merely to clear the bucket. The bucket exists so the release narrative stops asserting closures that did not happen; closing an open tracker to make the warning disappear reintroduces the exact defect (canonical instances: GHI #533 and #615 during the v0.33.2 ceremony).
unclassified_reference GHIs surface)unclassified_reference means a GHI is cited in the release range by a
commit whose Conventional-Commits type is not a closure type
(fix/feat/perf/refactor/revert), and no closure commit in the
range claims it. Discovery cannot decide this alone: chore and docs
are excluded from the closure types on the premise that such commits
ceremonialize work closed by a separate code-change commit, and when no
such commit exists the premise is false.
The bucket is disclosure, not qualification — it exists because the prior state was silence. Every other bucket is computed from the closure ref set, so a GHI absent from that set rendered as a shorter list rather than a warning, and there was no "referenced but unclassifiable" state to render (GHI #794).
Enumerate them:
uv run gz patch release --dry-run --json > /tmp/patch-release.json
jq -r '.qualifications[] | select(.status == "unclassified_reference") | .ghi.number' /tmp/patch-release.json
For each, determine which case it is:
| Case | Signal | Action |
|---|---|---|
| The citing commit IS the remedy | A dependency or toolchain upgrade, a generated-surface regeneration — chore(deps): … (GHI #N) with no separate code commit. has_runtime_label and has_src_diff are usually both true | Treat as release content. Write it into the Step 2 narrative and the changelog by hand; the enumeration will not do it for you |
| The GHI was routed, not shipped | docs(adr): … (GHI #N) authoring a pool ADR the finding was closed superseded against, per ghi-author § Doctrine | Not release content. Leave it out of the narrative |
| The citing commit is context only | The GHI's real remedy shipped in a prior tag; this commit merely references it | Not release content |
Record the adjudication in the release notes' ### Gate Evidence,
naming which case fired. The bucket surfaces the question every
release; a decision made and not written down gets re-made next
release from scratch.
Proceed to Step 2.
Do not suppress a report by re-typing the commit. Rewriting
chore(deps): as fix(deps): to clear the bucket makes the symptom
vanish and leaves the next non-code-typed remedy exposed — the same shape
§ Step 1a refuses for diff_only. If the closure-type set itself should
change, that is an operator ruling against GHI #794, not a commit-message
edit.
Draft narrative release notes from GHI titles AND descriptions. This is the core value of the ceremony — the agent transforms raw issue data into operator-facing release communication.
Rules for narrative drafting:
.gzkit/templates/release_notes.md, GHI #685) prescribes — Highlights /
New features / Improvements / Bug fixes / Known issues / Deprecated — ordered
by reader impact. Functional-area / subsystem grouping is CHANGELOG altitude;
it does not belong in the curated release notes..gzkit/rules/changelog-release-notes.md: the two artifacts never
collapse into each other). Release notes headline reader-facing impact.- **#42** — Fixed version drift between pyproject.toml and __init__.py.Draft format (Good Docs shape; omit any section with no content, but
### Gate Evidence is RETAINED per .gzkit/templates/release_notes.md):
## vX.Y.Z (YYYY-MM-DD)
<One-to-two-sentence highlights summary of the release scope.>
### New features
- **#NN** — Reader-facing capability, present tense.
### Improvements
- **#NN** — Reader-facing enhancement, present tense.
### Bug fixes
- **#NN** — Reader-facing effect of the fix, past tense; no mechanism.
### Gate Evidence
<Qualifiers, version sync, operator approval, git-sync gates.>
### Stats
- N GHIs closed
Present the drafted release notes to the operator and wait for explicit approval.
This is the human gate. Do not proceed until the operator says "approved", "looks good", "go ahead", or equivalent affirmative.
The operator may:
Iron Law applies. Once the operator approves, execute all sub-steps without pauses.
gz patch releaseuv run gz patch release
This atomically:
sync_project_version (pyproject.toml,
__init__.py, README badge), unless the version is already ahead of its tagdocs/releases/PATCH-vX.Y.Z.mdInsert the approved narrative release notes at the top of RELEASE_NOTES.md,
below the document header and above the most recent existing entry. Conform to
.gzkit/templates/release_notes.md — the curated, reader-facing narrative,
retaining the ### Gate Evidence provenance section
(.gzkit/rules/changelog-release-notes.md).
Stamp the accumulated ## [Unreleased] block in CHANGELOG.md with
## vX.Y.Z (YYYY-MM-DD) and open a fresh empty ## [Unreleased]. The changelog
is the exhaustive, developer-facing projection of the closed-since-tag GHIs,
conforming to .gzkit/templates/changelog.md, one GHI #N per entry.
Run the hermetic structural check on the stamped file:
uv run gz validate --changelog
Coverage cross-check (release-time teeth): every closed-since-tag user-visible
GHI surfaced by gz patch release --dry-run MUST appear as a changelog entry
before publish. A discovered GHI with no changelog entry blocks the release — this
is the networked half of the enforcement the hermetic gz validate --changelog
structural check cannot perform.
git add -A
uv run gz check --full
uv run gz git-sync --apply
The full sweep is the release's QC (GHI #1191); a failure stops the release.
Sync MUST run immediately before gh release create, as in the closeout ceremony.
A Foundation (0.0.x) release skips this step. The skip keys on the release's own version: it applies only when the project version being released is itself 0.0.x. A foundation-ADR closeout qualifier does not trigger it (§ Qualifier Doctrine: the release flow is identical regardless of which qualifier fired).
For non-Foundation releases, publish ONLY the newest version block as the
release body — RELEASE_NOTES.md is cumulative, so --notes-file on the whole
file would dump every historical version into the release (GHI #710). Slice the
top block (a new release is always prepended, so the newest entry is the first
## v… block):
BODY="$(mktemp)"
awk '/^## v/{c++} c==2{exit} c==1' RELEASE_NOTES.md > "$BODY"
gh release create vX.Y.Z --target main --latest --title "vX.Y.Z" --notes-file "$BODY"
For Foundation releases, log:
Skipping GitHub release: Foundation ADR (0.0.x) — release artifacts are
RELEASE_NOTES.md entry and git tag only.
Present the final status to the operator:
Patch release vX.Y.Z complete.
Version synced: pyproject.toml, __init__.py, README badge
Manifest: docs/releases/PATCH-vX.Y.Z.md
RELEASE_NOTES.md: updated
CHANGELOG.md: [Unreleased] stamped vX.Y.Z
Git-sync: committed and pushed
GitHub release: created / skipped (Foundation)
A release whose own version is 0.0.x does everything except Step 4d: version
sync, manifest, RELEASE_NOTES.md, CHANGELOG.md and git-sync all run; the GitHub
release is skipped. This mirrors FOUNDATION_SKIP_STEPS in the closeout
ceremony. A foundation-ADR closeout qualifying an ordinary patch release is
not a Foundation release.
| Command | Purpose |
|---|---|
gz patch release --dry-run | Discovery: show qualifying GHIs and proposed version |
gz patch release --dry-run --json | Discovery: machine-readable output |
gz patch release | Execute: version sync + manifest generation |
gz patch release --json | Execute: machine-readable output |
gz git-sync --apply | Pre-release sync with quality gates |
gh release create vX.Y.Z ... | GitHub release (non-Foundation only) |
src/gzkit/commands/patch_release.pysrc/gzkit/commands/version_sync.py (sync_project_version).gzkit/skills/gz-adr-closeout-ceremony/SKILL.mddocs/design/adr/foundation/ADR-0.0.15-ghi-driven-patch-release-ceremony/ADR-0.0.15-ghi-driven-patch-release-ceremony.mddocs/user/manpages/patch-release.mddocs/governance/GovZero/releases/patch-release.mdまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).
日本語の概要は準備中です。原文の説明を表示しています。
Use to file a GitHub issue when a finding needs its own work order or the operator asks; OBPI corrections stay in its change log.
日本語の概要は準備中です。原文の説明を表示しています。
Use to do the work a GHI describes, verify it and close the issue with evidence in one sweep.
日本語の概要は準備中です。原文の説明を表示しています。
Use to triage the open GHI queue before planning or choosing what to pull; produces a ranked deliverable.
日本語の概要は準備中です。原文の説明を表示しています。
Run the guarded repository sync ritual; commit-time hooks enforce the cheap gates and the pre-push hook runs gz check.
日本語の概要は準備中です。原文の説明を表示しています。
Run the guarded repository sync ritual; the hooks your pre-commit config declares enforce the quality gates.
日本語の概要は準備中です。原文の説明を表示しています。