[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0CEJHJZY0435V3KC9ZX7F":3,"skill-same:01M6X0CEJHJZY0435V3KC9ZX7F":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6X0CEJHJZY0435V3KC9ZX7F","release-ahp",null,"Cut a coordinated AHP release (spec + all 6 clients) — bumps manifests, dates CHANGELOGs, promotes website docs alongside the development bump in one PR, and pushes seven release tags before merging. Use when the user says \"release AHP X.Y.Z\", \"publish AHP\", \"cut a release\", \"tag the release\", or similar. Includes recovery for missing publish triggers.","microsoft\u002Fagent-host-protocol","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6X0BCPTDPXJBHT607YWT2G4",453,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fskills\u002Frelease-ahp\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"release","release ahp","user","clients","spec","cut","merge","recovery","artifact","with","publish","tags","workflow","manifest","when","use","auto","dates","for","pr","2026-11-10 10:12:30",false,"---\nname: release-ahp\ndescription: Cut a coordinated AHP release (spec + all 6 clients) — bumps manifests, dates CHANGELOGs, promotes website docs alongside the development bump in one PR, and pushes seven release tags before merging. Use when the user says \"release AHP X.Y.Z\", \"publish AHP\", \"cut a release\", \"tag the release\", or similar. Includes recovery for missing publish triggers.\n---\n\n# Releasing AHP\n\nThis skill is the operational counterpart to [`RELEASING.md`](..\u002F..\u002FRELEASING.md)\nand the cross-cutting [`AGENTS.md`](..\u002F..\u002FAGENTS.md). `RELEASING.md` is the\ncanonical reference for **what** to do per artifact; this skill captures the\n**order of operations** and the foot-guns that bite during a multi-artifact\nrelease.\n\nThe repo ships seven independently-versioned artifacts but they are released\ntogether by convention — pin the same `X.Y.Z` across all six client\nmanifests and the spec on every release unless the user explicitly asks\notherwise.\n\n## When to use this skill\n\nThe user wants to release AHP. Typical asks:\n\n- \"release AHP 0.3.0\"\n- \"tag the release\", \"push the release tags\", \"run the publish workflows\"\n- \"the next release will be X.Y.Z\" (implies post-release bump)\n- \"the publish workflow didn't fire on tag T, can you re-trigger it\"\n\nIf the user asks for a **single-client** release (e.g. \"just bump Rust\"),\nprefer the `.github\u002Fprompts\u002Fpublish-*.prompt.md` files instead — this skill\nis for coordinated cross-artifact releases.\n\n## Mental model\n\nA release is **two commits in one PR**, plus **seven tags pushed at the first\ncommit's SHA after CI and review approval but before merge**:\n\n1. **Release commit** — consumes `docs\u002F.changes\u002F*.json` fragments into\n   dated `## [X.Y.Z]` CHANGELOG sections, bumps every client manifest from\n   the previous version → `X.Y.Z`, and regenerates `release-metadata.json`\n   for every client. **All seven tags must point at this commit's SHA.**\n2. **Post-release commit** — bumps `PROTOCOL_VERSION` in\n   `types\u002Fversion\u002Fregistry.ts` to the next planned version, regenerates native\n   version constants, adds an Unreleased spec changelog placeholder, and\n   prepends the **released** version to `STABLE_DOC_VERSIONS` in\n   `docs\u002F.vitepress\u002Fversions.ts`. Keep the released compatibility baselines in\n   `SUPPORTED_PROTOCOL_VERSIONS` unchanged unless intentionally revising policy.\n\nCreate the bare Swift\u002Fdocs tag locally before validating commit 2. Push tags\nonly after the PR is approved and CI passes, then enable merge. Publishing\ntherefore starts before merge, and the documentation deployment triggered by\nmerge can resolve the new stable tag. **No follow-up docs PR is needed.**\n\n## Step-by-step\n\n### 0. Capture the inputs\n\nBefore touching anything, confirm with the user:\n\n- **Release version** (`X.Y.Z`) — the version to use when consuming\n  `docs\u002F.changes\u002F*.json` into the seven changelogs.\n- **Next development version** (default: bump minor, i.e. `X.(Y+1).0`).\n- **Release scope** (default: all seven artifacts; rare to release one in\n  isolation).\n\n### 1. Branch + commit 1 (release commit)\n\nCreate `release\u002Fahp-\u003Cversion>` off `main`. Then in a single commit:\n\n- **CHANGELOGs** — run\n  `npm run changelog:release -- --version X.Y.Z --date \u003Ctoday YYYY-MM-DD>`\n  to collapse `docs\u002F.changes\u002F*.json` into the seven changelogs. This creates\n  or replaces each `## [X.Y.Z] — \u003Ctoday YYYY-MM-DD>` section and adds the\n  `Spec version` \u002F `Implements AHP X.Y.Z.` line automatically.\n- **Manifests** — bump every native version file to `X.Y.Z`:\n  - `clients\u002Frust\u002FCargo.toml` `[workspace.package].version` **and** the\n    `version = \"X.Y.Z\"` pins on `ahp-types`\u002F`ahp` inside\n    `[workspace.dependencies]`.\n  - `clients\u002Fkotlin\u002Fgradle.properties` `VERSION_NAME`.\n  - `clients\u002Ftypescript\u002Fpackage.json` `version`.\n  - `clients\u002Fswift\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n  - `clients\u002Fgo\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n  - `clients\u002Fdotnet\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n- **Lockfiles** — refresh after the manifest bump:\n  - In `clients\u002Ftypescript\u002F`: `npm install --no-audit --no-fund` (no-op if\n    already up to date but writes the version into `package-lock.json`).\n  - In `clients\u002Frust\u002F`: `cargo update -w` (rewrites only the workspace\n    crates in `Cargo.lock` — outside crates stay pinned).\n- **Metadata** — at repo root: `npm run generate:metadata`.\n- **Verify** — at repo root: `npm test`. This runs\n  `verify:change-fragments`, `verify:release-metadata`, and\n  `verify:changelog`, which together gate the release: malformed fragments,\n  a metadata drift, or a missing CHANGELOG heading will fail here and not at\n  tag-push time.\n\n> **Do not** bump `PROTOCOL_VERSION` in this commit. The tag-push\n> workflows validate that the registry version matches the tag's version,\n> so commit 1 must still have `PROTOCOL_VERSION = X.Y.Z`.\n\nCommit message:\n\n```\nrelease: AHP X.Y.Z\n```\n\n**Record this commit's SHA and create the bare Swift\u002Fdocs tag locally.**\nEvery release tag points at this SHA. Do not push tags yet.\n\n```sh\nRELEASE_SHA=$(git rev-parse HEAD)\ngit tag vX.Y.Z \"$RELEASE_SHA\"\n```\n\n### 2. Commit 2 (post-release bump and docs promotion)\n\nOn the same branch, in a second commit:\n\n- `types\u002Fversion\u002Fregistry.ts`:\n  - `PROTOCOL_VERSION = 'X.(Y+1).0'`.\n  - Leave `SUPPORTED_PROTOCOL_VERSIONS` unchanged: it contains released\n    compatibility baselines, not every release or development version.\n- In `docs\u002F.vitepress\u002Fversions.ts`, prepend `X.Y.Z` to\n  `STABLE_DOC_VERSIONS`, keeping older entries. For example, releasing `1.1.0`\n  and starting `1.2.0` sets `PROTOCOL_VERSION = '1.2.0'` and\n  `STABLE_DOC_VERSIONS = ['1.1.0', '1.0.0']` in this same commit.\n  Both the homepage specification label and the default docs use the first\n  stable entry; only the draft label follows `PROTOCOL_VERSION`.\n- Run `npm run generate` at repo root — this regenerates every client's\n  `Version.generated.*` and every `release-metadata.json`.\n- In the root spec `CHANGELOG.md`, add a\n  `## [X.(Y+1).0] — Unreleased` placeholder (with a\n  `Spec version: \\`X.(Y+1).0\\`` line) below the existing\n  `## [Unreleased]` section. Per-client changelogs already keep their\n  empty `## [Unreleased]` section after fragment consumption.\n- Run `npm test` and `npm run docs:build`. The local `vX.Y.Z` tag from step 1\n  supplies the new stable snapshot. Verify the default release pages, older\n  version routes, and next-development draft label.\n\nCommit message:\n\n```\nchore: bump PROTOCOL_VERSION to X.(Y+1).0 for ongoing development\n```\n\n### 3. Open the PR and obtain approval (do not enable auto-merge yet)\n\n```sh\ngit push -u origin release\u002Fahp-X.Y.Z\ngh pr create --base main --head release\u002Fahp-X.Y.Z \\\n  --title \"release: AHP X.Y.Z\" \\\n  --body-file \u003C(...)\n```\n\nWait for all required CI checks and collaborator approvals. Confirm merge\ncommits are allowed; otherwise stop and agree on a release strategy before\npublishing tags. Do not push release tags while the PR still needs changes.\nIf either commit changes, revalidate the release SHA and docs build before\ncontinuing; never move an already-published tag.\n\nThe PR body should include:\n\n- The release SHA in a copy-pastable variable assignment.\n- The seven tag-push commands (see step 4 below), noting that they must run\n  before auto-merge is enabled.\n- The docs promotion and successful `npm run docs:build` validation.\n- A note that Kotlin, TypeScript, and .NET publish via Azure DevOps pipelines\n  (they appear under [agent-host-protocol pipelines in\n  vscode-engineering](https:\u002F\u002Fdev.azure.com\u002Fvscode\u002FVSCode\u002F_build)), not\n  GitHub Actions.\n\n### 4. Push the seven tags before merge\n\nThe PR must be approved and CI green before this step: pushing these tags\nstarts publishing from the validated release commit before it reaches `main`.\nThe bare `vX.Y.Z` tag was already created locally in step 1.\n\n```sh\nRELEASE_SHA=\u003Csha from step 1>\ngit tag spec\u002FvX.Y.Z       \"$RELEASE_SHA\"\ngit tag rust\u002FvX.Y.Z       \"$RELEASE_SHA\"\ngit tag kotlin\u002FvX.Y.Z     \"$RELEASE_SHA\"\ngit tag typescript\u002FvX.Y.Z \"$RELEASE_SHA\"\ngit tag clients\u002Fgo\u002FvX.Y.Z \"$RELEASE_SHA\"\ngit tag dotnet\u002FvX.Y.Z     \"$RELEASE_SHA\"\ngit push origin spec\u002FvX.Y.Z\ngit push origin rust\u002FvX.Y.Z\ngit push origin kotlin\u002FvX.Y.Z\ngit push origin typescript\u002FvX.Y.Z\ngit push origin vX.Y.Z\ngit push origin clients\u002Fgo\u002FvX.Y.Z\ngit push origin dotnet\u002FvX.Y.Z\ngit ls-remote --tags origin '*\u002FvX.Y.Z' 'vX.Y.Z'\n```\n\nVerify all seven remote tags point at `RELEASE_SHA` before enabling merge.\nPush tags separately so each emits its own publish event.\n\nThe seven tag schemes are deliberate and not interchangeable. Bare\n`vX.Y.Z` is reserved for Swift (SwiftPM only resolves root-level tags);\n`clients\u002Fgo\u002FvX.Y.Z` is required by the Go module proxy's sub-module\nresolution.\n\n### 5. Confirm publish runs started\n\nFor each tag, verify the corresponding workflow run is queued or in\nprogress:\n\n```sh\nGH_PAGER=cat gh run list --limit 10 \\\n  --json databaseId,event,headBranch,status,conclusion,workflowName,displayTitle\n```\n\nExpect to see four GH Actions runs (one per tag below) within seconds:\n\n| Tag                  | Workflow              | Publishes to |\n| -------------------- | --------------------- | ------------ |\n| `spec\u002FvX.Y.Z`        | `Publish Spec`        | GitHub Release (schema assets) |\n| `rust\u002FvX.Y.Z`        | `Publish Rust Crates` | crates.io (`ahp-types`, `ahp`, `ahp-ws`) |\n| `vX.Y.Z`             | `Publish Swift Package` | SwiftPM (tag-resolved) |\n| `clients\u002Fgo\u002FvX.Y.Z`  | `Publish Go Module`   | Go module proxy (tag-resolved) |\n\nThe remaining three tags trigger Azure DevOps pipelines that don't appear\nin `gh run list`:\n\n| Tag                  | ADO Pipeline                         | Publishes to |\n| -------------------- | ------------------------------------ | ------------ |\n| `kotlin\u002FvX.Y.Z`      | `clients\u002Fkotlin\u002Fpipeline.yml`        | Maven Central via ESRP |\n| `typescript\u002FvX.Y.Z`  | `clients\u002Ftypescript\u002Fpipeline.yml`    | npm via ESRP |\n| `dotnet\u002FvX.Y.Z`      | `clients\u002Fdotnet\u002Fpipeline.yml`        | NuGet.org via ESRP (approval required) |\n\nFor Kotlin\u002FTypeScript\u002F.NET, link the user to the AHP pipelines in ADO\n(`vscode-engineering` tenant) to confirm the runs started. These\npipelines can also be triggered manually from the ADO UI as a hotfix\nescape hatch — the validation steps inside each pipeline are identical\nto the tag-triggered path.\n\n### 6. Merge the combined PR and verify the deployed website\n\nOnly after all remote tags are verified and publish runs have started:\n\n```sh\ngh pr merge \u003Cnum> --auto --merge\n```\n\n**Use `--merge`, not `--squash` or rebase-and-merge**, to keep the tagged release\nSHA reachable from `main`.\n\nAfter merge:\n\n```sh\ngit fetch origin main\ngit merge-base --is-ancestor \"$RELEASE_SHA\" origin\u002Fmain\n```\n\nDo not tag the post-release commit: its registry is already on the next\ndevelopment version. Wait for `Deploy Documentation` to succeed, then verify\nthe live homepage shows `vX.Y.Z`, default docs use `X.Y.Z`, the version selector\nincludes older stable releases, and only the next development version is\nlabelled `(draft)`. Track publish approvals\u002Ffailures explicitly. Do not mark the\nrelease complete based only on package publication or a local docs build.\n\n## Recovery — tag pushed but no publish run fired\n\nThis has happened. Symptom: tag exists on `origin` but `gh run list`\nshows no corresponding workflow run.\n\nNone of the four GH Actions publish workflows currently declare\n`workflow_dispatch`, so manual dispatch is not available. The recovery\nis to **delete the remote tag and re-push it** at the same SHA — this\nemits a fresh push event without changing the tagged commit:\n\n```sh\ngit push origin --delete \u003Ctag>\ngit push origin \u003Ctag>\n```\n\nDo **not** include the `--delete`d tag in the same `git push` command as\nthe re-push — push them in separate `git push` invocations so each tag\nemits its own push event. Re-pushing several tags in a single command\nsometimes coalesces into a single event and only one workflow fires.\n\nOnce recovery is verified, suggest a follow-up PR adding\n`workflow_dispatch:` to the four publish workflows so the next missed\ntrigger can be re-run from the Actions UI without tag thrash.\n\n## Common foot-guns\n\n- **Deferring docs promotion or merging before tags exist** — update\n  `STABLE_DOC_VERSIONS` alongside the development bump in the same PR. Create\n  the bare tag locally for validation, push it after CI\u002Freview approval, and\n  only then enable merge. Otherwise the website stays on the old release or\n  its build cannot resolve the new snapshot.\n- **GPG signing lock during `git commit`** — if you see\n  `gpg: keydb_search failed: Operation timed out`, run\n  `gpgconf --kill all && rm -f ~\u002F.gnupg\u002Fpublic-keys.d\u002Fpubring.db.lock`\n  and retry the commit.\n- **Bumping `PROTOCOL_VERSION` in commit 1** — the publish workflows\n  re-validate the tag against the tagged commit's `PROTOCOL_VERSION`,\n  so a release tag pointing at the post-release commit fails the \"Verify\n  tag matches\" step. Always keep the bump in commit 2.\n- **Forgetting the Rust `[workspace.dependencies]` pins** — bumping just\n  `[workspace.package].version` leaves the cross-crate `ahp-types`\u002F`ahp`\n  pins on the old version. `verify-release-metadata` does not catch this\n  but `cargo publish --dry-run` will.\n- **Forgetting `cargo update -w`** — without it, `Cargo.lock` keeps the\n  old version for ahp-types\u002Fahp\u002Fahp-ws and the resulting commit is\n  partially-bumped. CI's per-language drift check catches it.\n- **Forgetting the Swift\u002FGo trailing newline in `VERSION`** — the\n  `read*PackageVersion` helpers trim, so functionally it's fine, but\n  the convention is `0.3.0\\n`.\n- **Mixing up the Swift tag namespace** — Swift uses **bare** `vX.Y.Z`\n  (no prefix). Every other artifact has a prefix. Putting `swift\u002FvX.Y.Z`\n  on Swift's tag silently breaks SwiftPM resolution.\n","# Releasing AHP\n\nThis skill is the operational counterpart to [`RELEASING.md`](..\u002F..\u002FRELEASING.md)\nand the cross-cutting [`AGENTS.md`](..\u002F..\u002FAGENTS.md). `RELEASING.md` is the\ncanonical reference for **what** to do per artifact; this skill captures the\n**order of operations** and the foot-guns that bite during a multi-artifact\nrelease.\n\nThe repo ships seven independently-versioned artifacts but they are released\ntogether by convention — pin the same `X.Y.Z` across all six client\nmanifests and the spec on every release unless the user explicitly asks\notherwise.\n\n## When to use this skill\n\nThe user wants to release AHP. Typical asks:\n\n- \"release AHP 0.3.0\"\n- \"tag the release\", \"push the release tags\", \"run the publish workflows\"\n- \"the next release will be X.Y.Z\" (implies post-release bump)\n- \"the publish workflow didn't fire on tag T, can you re-trigger it\"\n\nIf the user asks for a **single-client** release (e.g. \"just bump Rust\"),\nprefer the `.github\u002Fprompts\u002Fpublish-*.prompt.md` files instead — this skill\nis for coordinated cross-artifact releases.\n\n## Mental model\n\nA release is **two commits in one PR**, plus **seven tags pushed at the first\ncommit's SHA after CI and review approval but before merge**:\n\n1. **Release commit** — consumes `docs\u002F.changes\u002F*.json` fragments into\n   dated `## [X.Y.Z]` CHANGELOG sections, bumps every client manifest from\n   the previous version → `X.Y.Z`, and regenerates `release-metadata.json`\n   for every client. **All seven tags must point at this commit's SHA.**\n2. **Post-release commit** — bumps `PROTOCOL_VERSION` in\n   `types\u002Fversion\u002Fregistry.ts` to the next planned version, regenerates native\n   version constants, adds an Unreleased spec changelog placeholder, and\n   prepends the **released** version to `STABLE_DOC_VERSIONS` in\n   `docs\u002F.vitepress\u002Fversions.ts`. Keep the released compatibility baselines in\n   `SUPPORTED_PROTOCOL_VERSIONS` unchanged unless intentionally revising policy.\n\nCreate the bare Swift\u002Fdocs tag locally before validating commit 2. Push tags\nonly after the PR is approved and CI passes, then enable merge. Publishing\ntherefore starts before merge, and the documentation deployment triggered by\nmerge can resolve the new stable tag. **No follow-up docs PR is needed.**\n\n## Step-by-step\n\n### 0. Capture the inputs\n\nBefore touching anything, confirm with the user:\n\n- **Release version** (`X.Y.Z`) — the version to use when consuming\n  `docs\u002F.changes\u002F*.json` into the seven changelogs.\n- **Next development version** (default: bump minor, i.e. `X.(Y+1).0`).\n- **Release scope** (default: all seven artifacts; rare to release one in\n  isolation).\n\n### 1. Branch + commit 1 (release commit)\n\nCreate `release\u002Fahp-\u003Cversion>` off `main`. Then in a single commit:\n\n- **CHANGELOGs** — run\n  `npm run changelog:release -- --version X.Y.Z --date \u003Ctoday YYYY-MM-DD>`\n  to collapse `docs\u002F.changes\u002F*.json` into the seven changelogs. This creates\n  or replaces each `## [X.Y.Z] — \u003Ctoday YYYY-MM-DD>` section and adds the\n  `Spec version` \u002F `Implements AHP X.Y.Z.` line automatically.\n- **Manifests** — bump every native version file to `X.Y.Z`:\n  - `clients\u002Frust\u002FCargo.toml` `[workspace.package].version` **and** the\n    `version = \"X.Y.Z\"` pins on `ahp-types`\u002F`ahp` inside\n    `[workspace.dependencies]`.\n  - `clients\u002Fkotlin\u002Fgradle.properties` `VERSION_NAME`.\n  - `clients\u002Ftypescript\u002Fpackage.json` `version`.\n  - `clients\u002Fswift\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n  - `clients\u002Fgo\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n  - `clients\u002Fdotnet\u002FVERSION` (bare semver, no `v` prefix, trailing newline).\n- **Lockfiles** — refresh after the manifest bump:\n  - In `clients\u002Ftypescript\u002F`: `npm install --no-audit --no-fund` (no-op if\n    already up to date but writes the version into `package-lock.json`).\n  - In `clients\u002Frust\u002F`: `cargo update -w` (rewrites only the workspace\n    crates in `Cargo.lock` — outside crates stay pinned).\n- **Metadata** — at repo root: `npm run generate:metadata`.\n- **Verify** — at repo root: `npm test`. This runs\n  `verify:change-fragments`, `verify:release-metadata`, and\n  `verify:changelog`, which together gate the release: malformed fragments,\n  a metadata drift, or a missing CHANGELOG heading will fail here and not at\n  tag-push time.\n\n> **Do not** bump `PROTOCOL_VERSION` in this commit. The tag-push\n> workflows validate that the registry version matches the tag's version,\n> so commit 1 must still have `PROTOCOL_VERSION = X.Y.Z`.\n\nCommit message:\n\n```\nrelease: AHP X.Y.Z\n```\n\n**Record this commit's SHA and create the bare Swift\u002Fdocs tag locally.**\nEvery release tag points at this SHA. Do not push tags yet.\n\n```sh\nRELEASE_SHA=$(git rev-parse HEAD)\ngit tag vX.Y.Z \"$RELEASE_SHA\"\n```\n\n### 2. Commit 2 (post-release bump and docs promotion)\n\nOn the same branch, in a second commit:\n\n- `types\u002Fversion\u002Fregistry.ts`:\n  - `PROTOCOL_VERSION = 'X.(Y+1).0'`.\n  - Leave `SUPPORTED_PROTOCOL_VERSIONS` unchanged: it contains released\n    compatibility baselines, not every release or development version.\n- In `docs\u002F.vitepress\u002Fversions.ts`, prepend `X.Y.Z` to\n  `STABLE_DOC_VERSIONS`, keeping older entries. For example, releasing `1.1.0`\n  and starting `1.2.0` sets `PROTOCOL_VERSION = '1.2.0'` and\n  `STABLE_DOC_VERSIONS = ['1.1.0', '1.0.0']` in this same commit.\n  Both the homepage specification label and the default docs use the first\n  stable entry; only the draft label follows `PROTOCOL_VERSION`.\n- Run `npm run generate` at repo root — this regenerates every client's\n  `Version.generated.*` and every `release-metadata.json`.\n- In the root spec `CHANGELOG.md`, add a\n  `## [X.(Y+1).0] — Unreleased` placeholder (with a\n  `Spec version: \\`X.(Y+1).0\\`` line) below the existing\n  `## [Unreleased]` section. Per-client changelogs already keep their\n  empty `## [Unreleased]` section after fragment consumption.\n- Run `npm test` and `npm run docs:build`. The local `vX.Y.Z` tag from step 1\n  supplies the new stable snapshot. Verify the default release pages, older\n  version routes, and next-development draft label.\n\nCommit message:\n\n```\nchore: bump PROTOCOL_VERSION to X.(Y+1).0 for ongoing development\n```\n\n### 3. Open the PR and obtain approval (do not enable auto-merge yet)\n\n```sh\ngit push -u origin release\u002Fahp-X.Y.Z\ngh pr create --base main --head release\u002Fahp-X.Y.Z \\\n  --title \"release: AHP X.Y.Z\" \\\n  --body-file \u003C(...)\n```\n\nWait for all required CI checks and collaborator approvals. Confirm merge\ncommits are allowed; otherwise stop and agree on a release strategy before\npublishing tags. Do not push release tags while the PR still needs changes.\nIf either commit changes, revalidate the release SHA and docs build before\ncontinuing; never move an already-published tag.\n\nThe PR body should include:\n\n- The release SHA in a copy-pastable variable assignment.\n- The seven tag-push commands (see step 4 below), noting that they must run\n  before auto-merge is enabled.\n- The docs promotion and successful `npm run docs:build` validation.\n- A note that Kotlin, TypeScript, and .NET publish via Azure DevOps pipelines\n  (they appear under [agent-host-protocol pipelines in\n  vscode-engineering](https:\u002F\u002Fdev.azure.com\u002Fvscode\u002FVSCode\u002F_build)), not\n  GitHub Actions.\n\n### 4. Push the seven tags before merge\n\nThe PR must be approved and CI green before this step: pushing these tags\nstarts publishing from the validated release commit before it reaches `main`.\nThe bare `vX.Y.Z` tag was already created locally in step 1.\n\n```sh\nRELEASE_SHA=\u003Csha from step 1>\ngit tag spec\u002FvX.Y.Z       \"$RELEASE_SHA\"\ngit tag rust\u002FvX.Y.Z       \"$RELEASE_SHA\"\ngit tag kotlin\u002FvX.Y.Z     \"$RELEASE_SHA\"\ngit tag typescript\u002FvX.Y.Z \"$RELEASE_SHA\"\ngit tag clients\u002Fgo\u002FvX.Y.Z \"$RELEASE_SHA\"\ngit tag dotnet\u002FvX.Y.Z     \"$RELEASE_SHA\"\ngit push origin spec\u002FvX.Y.Z\ngit push origin rust\u002FvX.Y.Z\ngit push origin kotlin\u002FvX.Y.Z\ngit push origin typescript\u002FvX.Y.Z\ngit push origin vX.Y.Z\ngit push origin clients\u002Fgo\u002FvX.Y.Z\ngit push origin dotnet\u002FvX.Y.Z\ngit ls-remote --tags origin '*\u002FvX.Y.Z' 'vX.Y.Z'\n```\n\nVerify all seven remote tags point at `RELEASE_SHA` before enabling merge.\nPush tags separately so each emits its own publish event.\n\nThe seven tag schemes are deliberate and not interchangeable. Bare\n`vX.Y.Z` is reserved for Swift (SwiftPM only resolves root-level tags);\n`clients\u002Fgo\u002FvX.Y.Z` is required by the Go module proxy's sub-module\nresolution.\n\n### 5. Confirm publish runs started\n\nFor each tag, verify the corresponding workflow run is queued or in\nprogress:\n\n```sh\nGH_PAGER=cat gh run list --limit 10 \\\n  --json databaseId,event,headBranch,status,conclusion,workflowName,displayTitle\n```\n\nExpect to see four GH Actions runs (one per tag below) within seconds:\n\n| Tag                  | Workflow              | Publishes to |\n| -------------------- | --------------------- | ------------ |\n| `spec\u002FvX.Y.Z`        | `Publish Spec`        | GitHub Release (schema assets) |\n| `rust\u002FvX.Y.Z`        | `Publish Rust Crates` | crates.io (`ahp-types`, `ahp`, `ahp-ws`) |\n| `vX.Y.Z`             | `Publish Swift Package` | SwiftPM (tag-resolved) |\n| `clients\u002Fgo\u002FvX.Y.Z`  | `Publish Go Module`   | Go module proxy (tag-resolved) |\n\nThe remaining three tags trigger Azure DevOps pipelines that don't appear\nin `gh run list`:\n\n| Tag                  | ADO Pipeline                         | Publishes to |\n| -------------------- | ------------------------------------ | ------------ |\n| `kotlin\u002FvX.Y.Z`      | `clients\u002Fkotlin\u002Fpipeline.yml`        | Maven Central via ESRP |\n| `typescript\u002FvX.Y.Z`  | `clients\u002Ftypescript\u002Fpipeline.yml`    | npm via ESRP |\n| `dotnet\u002FvX.Y.Z`      | `clients\u002Fdotnet\u002Fpipeline.yml`        | NuGet.org via ESRP (approval required) |\n\nFor Kotlin\u002FTypeScript\u002F.NET, link the user to the AHP pipelines in ADO\n(`vscode-engineering` tenant) to confirm the runs started. These\npipelines can also be triggered manually from the ADO UI as a hotfix\nescape hatch — the validation steps inside each pipeline are identical\nto the tag-triggered path.\n\n### 6. Merge the combined PR and verify the deployed website\n\nOnly after all remote tags are verified and publish runs have started:\n\n```sh\ngh pr merge \u003Cnum> --auto --merge\n```\n\n**Use `--merge`, not `--squash` or rebase-and-merge**, to keep the tagged release\nSHA reachable from `main`.\n\nAfter merge:\n\n```sh\ngit fetch origin main\ngit merge-base --is-ancestor \"$RELEASE_SHA\" origin\u002Fmain\n```\n\nDo not tag the post-release commit: its registry is already on the next\ndevelopment version. Wait for `Deploy Documentation` to succeed, then verify\nthe live homepage shows `vX.Y.Z`, default docs use `X.Y.Z`, the version selector\nincludes older stable releases, and only the next development version is\nlabelled `(draft)`. Track publish approvals\u002Ffailures explicitly. Do not mark the\nrelease complete based only on package publication or a local docs build.\n\n## Recovery — tag pushed but no publish run fired\n\nThis has happened. Symptom: tag exists on `origin` but `gh run list`\nshows no corresponding workflow run.\n\nNone of the four GH Actions publish workflows currently declare\n`workflow_dispatch`, so manual dispatch is not available. The recovery\nis to **delete the remote tag and re-push it** at the same SHA — this\nemits a fresh push event without changing the tagged commit:\n\n```sh\ngit push origin --delete \u003Ctag>\ngit push origin \u003Ctag>\n```\n\nDo **not** include the `--delete`d tag in the same `git push` command as\nthe re-push — push them in separate `git push` invocations so each tag\nemits its own push event. Re-pushing several tags in a single command\nsometimes coalesces into a single event and only one workflow fires.\n\nOnce recovery is verified, suggest a follow-up PR adding\n`workflow_dispatch:` to the four publish workflows so the next missed\ntrigger can be re-run from the Actions UI without tag thrash.\n\n## Common foot-guns\n\n- **Deferring docs promotion or merging before tags exist** — update\n  `STABLE_DOC_VERSIONS` alongside the development bump in the same PR. Create\n  the bare tag locally for validation, push it after CI\u002Freview approval, and\n  only then enable merge. Otherwise the website stays on the old release or\n  its build cannot resolve the new snapshot.\n- **GPG signing lock during `git commit`** — if you see\n  `gpg: keydb_search failed: Operation timed out`, run\n  `gpgconf --kill all && rm -f ~\u002F.gnupg\u002Fpublic-keys.d\u002Fpubring.db.lock`\n  and retry the commit.\n- **Bumping `PROTOCOL_VERSION` in commit 1** — the publish workflows\n  re-validate the tag against the tagged commit's `PROTOCOL_VERSION`,\n  so a release tag pointing at the post-release commit fails the \"Verify\n  tag matches\" step. Always keep the bump in commit 2.\n- **Forgetting the Rust `[workspace.dependencies]` pins** — bumping just\n  `[workspace.package].version` leaves the cross-crate `ahp-types`\u002F`ahp`\n  pins on the old version. `verify-release-metadata` does not catch this\n  but `cargo publish --dry-run` will.\n- **Forgetting `cargo update -w`** — without it, `Cargo.lock` keeps the\n  old version for ahp-types\u002Fahp\u002Fahp-ws and the resulting commit is\n  partially-bumped. CI's per-language drift check catches it.\n- **Forgetting the Swift\u002FGo trailing newline in `VERSION`** — the\n  `read*PackageVersion` helpers trim, so functionally it's fine, but\n  the convention is `0.3.0\\n`.\n- **Mixing up the Swift tag namespace** — Swift uses **bare** `vX.Y.Z`\n  (no prefix). Every other artifact has a prefix. Putting `swift\u002FvX.Y.Z`\n  on Swift's tag silently breaks SwiftPM resolution.\n",{"name":5,"description":7},"main","f1f4d4ac49d1a172cfc947fd5ac3c5fa00f4bd59","skills\u002Frelease-ahp",163,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol","https:\u002F\u002Fmicrosoft.github.io\u002Fagent-host-protocol\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 06:36:49",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add microsoft\u002Fagent-host-protocol --skill release-ahp",{"tool":65,"command":66},"bunx","bunx skills add microsoft\u002Fagent-host-protocol --skill release-ahp",{"tool":68,"command":69},"pnpm","pnpm dlx skills add microsoft\u002Fagent-host-protocol --skill release-ahp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fskills\u002Frelease-ahp\u002FSKILL.md",true,[],[74,100,125,139],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":44},"01M6X0C79Z6CYD3ZKP7441E6MT","groom-backlog","Audits recently closed PRs in agent-host-protocol (AHP) to make sure any future work they promised has a tracking issue (filing new ones or linking PRs to existing ones), then triages every open issue into implementable-now \u002F no-longer-relevant \u002F blocked-on-a-dependency, closing or annotating each accordingly, and finally prioritizes and implements the ready issues. Validates every follow-up and issue against the current state of this repo — the canonical `types\u002F`, the generated client mirrors, the conformance fixtures, and the published versioned artifacts — before acting. Use when asked to triage or groom the issue backlog, file follow-up issues from merged PRs, audit closed PRs for un-tracked work, or work through the open issues.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fskills\u002Fgroom-backlog\u002FSKILL.md",[],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,38,98,99],"backlog","groom backlog","groom","work","host","linking","sure","closing","relevant","types","filing","now","issues","up","ready","dependency","generated","open","audit",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":107,"publishedAt":44},"01M6X0BWF1YVDX6T9XQ9W20DQ2","session-metadata-migration","Migrate code that talks to or implements the Agent Host Protocol to the flattened SessionState model. Use when asked to upgrade an AHP client\u002Fserver\u002Fbinding and you see a `summary` sub-object on `SessionState` (e.g. `state.summary.title`, `session.summary.modifiedAt`), `model` \u002F `agent` on `SessionState` \u002F `SessionSummary` \u002F `ChatState` \u002F `ChatSummary`, the `session\u002FmodelChanged` or `session\u002FagentChanged` actions, numeric `createdAt` \u002F `modifiedAt`, or `model` \u002F `agent` arguments to `createSession` \u002F `createChat`.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-metadata-migration-plugin\u002Fskills\u002Fsession-metadata-migration\u002FSKILL.md",[106],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[108,109,110,111,85,112,113,114,39,115,116,38,117,118,119,120,121,122,123,124],"session metadata migration","migration","metadata","session","upgrade","binding","you","object","title","ahp client","model","migrate","code","state","protocol","server","actions",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":132,"publishedAt":44},"01M6X0BR7E8HSADCKTWFXY4VX7","ahp-client","Interact with an Agent Host Protocol (AHP) server via WebSocket. Use when asked to connect to, message, or control an AHP server.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fplugins\u002Fcopilot-plugin\u002Fskills\u002Fahp-client\u002FSKILL.md",[131],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[133,117,134,122,123,135,39,136,137,85,138,33,38],"client","connect","websocket","message","control","via",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":44},"01M6X0BH6S6KG4X661THM9N9EH","channels-migration","Migrate code that talks to or implements the Agent Host Protocol from the pre-channels model to the current channel-based model. Use when asked to upgrade an AHP client\u002Fserver, when seeing references to `agenthost:\u002Froot`, `\u003Cprovider>:\u002F\u003Cuuid>` session URIs, a `notification` wrapper method, an `envelope` field inside `action` params, a `resource` field on subscribe\u002Funsubscribe\u002Fsnapshot results, or `session` \u002F `terminal` \u002F `changeset` fields on command params or action payloads.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagent-host-protocol\u002Fblob\u002Fmain\u002Fplugins\u002Fchannels-migration-plugin\u002Fskills\u002Fchannels-migration\u002FSKILL.md",[],[109,146,147,148,149,38,150,85,112,151,152,39,111,153,154,155,118,119,123,120],"channels migration","channels","terminal","payloads","notification","references","provider","results","command","changeset"]