Maintainer release runbook¶
The core package and VS Code extension have independent release lines.
| Line | Tag | Version sources |
|---|---|---|
| Core | vX.Y.Z |
Python package, Copilot plugin, and plugin marketplace metadata |
| VS Code extension | vscode-vX.Y.Z |
Extension package and lock metadata |
Do not make one line wait for, inherit, or publish the other line.
Required credentials and configuration¶
| Target | Requirement |
|---|---|
| GitHub core release | The Release workflow needs contents: write and actions: write for GITHUB_TOKEN. |
| PyPI | The pypi GitHub environment must be a trusted publisher for the agent-strace project. No long-lived PyPI token is used. |
| MCP Registry | None. The mcp-registry job uses GitHub OIDC (id-token: write) for the io.github.Siddhant-K-code namespace. |
| VS Code Marketplace | None. A Marketplace Trusted Publishing policy for publisher Siddhant-K-code trusts the vscode-publish environment of publish-vscode.yml. See extension trusted publishing setup. |
| Open VSX | None. An Open VSX trusted publisher registration for Siddhant-K-code.agent-strace trusts the same workflow and environment. See extension trusted publishing setup. |
Protect production credentials with environment approvals or repository secret access controls where appropriate.
Runners¶
Every Linux job runs on GitHub-hosted ubuntu-latest. The windows test job
runs on windows-latest.
Core releases¶
Version parity¶
Set the same X.Y.Z value in:
src/agent_trace/__init__.pyplugin.json.github/plugin/marketplace.jsonatmetadata.version.github/plugin/marketplace.jsonatplugins[0].versionplugins/agent-strace/plugin.json.claude-plugin/plugin.json.claude-plugin/marketplace.jsonatplugins[0].versionplugins/agent-strace-codex/.codex-plugin/plugin.jsonserver.jsonat the top level and atpackages[0].version- every
Siddhant-K-code/agent-trace@vX.Y.ZAction pin inREADME.md,docs/, andexamples/(todayREADME.md,docs/commands.md,docs/review.md, andexamples/ci/agent-eval.yml). The pinned tag decides the CLI version the Action installs. - the
versioninput default intemplates/agent-review.yml, the GitLab CI/CD component, and everySiddhant-K-code/agent-trace/vX.Y.Z/include URL for it inREADME.md,docs/, andexamples/(todaydocs/review.md). The component installs the version its default names.
The core tag and GitHub release use vX.Y.Z. PyPI reports X.Y.Z.
The generated Gemini extension reads the same Python __version__ value and is
checked during release validation.
Release order¶
- Update all core version sources and release notes in one pull request.
- Run the Python suite.
- Run
python scripts/check_capture_matrix_freshness.py. A stale capture matrix entry does not block the release: re-verify it first, or release knowing that the entry describes an older provider release. See capture matrix freshness. - Merge the release pull request to
main. - The
Releaseworkflow checks core parity, createsvX.Y.Z, and creates the GitHub release at the triggering commit. Core changelog generation ignores extension tags. - The same workflow dispatches
Publish to PyPIat the exact core tag. This explicit dispatch is required because a release created byGITHUB_TOKENdoes not start arelease: publishedworkflow. - Confirm the GitHub release includes the interoperability schema and Agent Evidence Corpus ZIP.
- After the PyPI upload, the
mcp-registryjob publishesserver.jsonto the MCP Registry. See MCP Registry publishing. - Confirm the GitHub release, PyPI, and the MCP Registry all report the intended version.
- When
replay,healthorreviewoutput changed, refresh the README demo from the published release in a follow-up pull request. See README demo image.
Publish to PyPI also retains its release trigger for core releases created
outside the automated workflow and a manual dispatch with a required core tag.
Extension release tags are explicitly ignored.
README demo image¶
assets/demo.svg is rendered from a real GitHub Copilot CLI session recorded
with the published release. Before a launch or announcement, it must come from
the release being announced. Regenerate it from the repo root on main:
scripts/demo/record-session.sh
python3 scripts/demo/render_svg.py \
--agent-strace /tmp/demo-tools/venv/bin/agent-strace \
--repo /tmp/demo -o assets/demo.svg
record-session.sh installs agent-strace==__version__ from PyPI into
/tmp/demo-tools/venv, creates a throwaway repo in /tmp/demo with one
failing test, registers Copilot CLI hooks in a private COPILOT_HOME, and runs
one copilot -p session that fixes the bug. It needs uv, copilot, and a
GitHub token with Copilot access (COPILOT_GITHUB_TOKEN, else
gh auth token). It does not touch ~/.copilot or your installed
agent-strace. Set AGENT_STRACE_VERSION to record with another release.
render_svg.py runs replay, health and review in that repo and writes a
static SVG. It only drops or cuts lines: the session summary box, Source:
lines in review, the matrix version, and all but three provider limitations.
Long lines wrap or end in …. It refuses to write the file if the output
contains your home directory, user name, host name, or a token. The session
is a real model run, so the output differs between runs. Check the image in a
browser, and update the README alt text if what it shows changed.
Core recovery¶
- If parity validation fails, correct every core version source and merge the fix. The release workflow retries because no release exists yet.
- If GitHub release creation fails, rerun the failed
Releaseworkflow job. - If PyPI dispatch or publishing fails, fix the environment or trusted
publisher configuration, then manually run
Publish to PyPIwith the existingvX.Y.Ztag. - PyPI recovery is duplicate-safe because the publisher checks for an existing distribution.
- If only the
mcp-registryjob fails, rerun that job. It skips a version the Registry already lists. Manual fallback from the repo root at the release tag:mcp-publisher login githubthenmcp-publisher publish.
VS Code extension releases¶
Version parity¶
Set the same X.Y.Z value in:
vscode-extension/package.jsonvscode-extension/package-lock.jsonat the top levelvscode-extension/package-lock.jsonatpackages[""].version
The extension tag uses vscode-vX.Y.Z. VS Code Marketplace and Open VSX report
X.Y.Z. Extension versions do not need to match core versions.
Release order¶
- Update only the extension version sources in one pull request.
- Run
cd vscode-extension && npm ci && npm test. - Merge the extension release pull request to
main. - Create
vscode-vX.Y.Zat the merge commit and push the tag. - The tag starts
Publish VS Code Extension. Itsbuildjob checks out that exact tag, verifies extension parity, tests, and packages one VSIX. Itspublishjob, the only job withid-token: write, runs in thevscode-publishenvironment. It checks out only.github/vscode-publish-toolsat the commit the build job verified, installsvsceandovsxfrom that lockfile with install scripts off, and publishes that VSIX to both registries with OIDC trusted publishing. - Create or update the GitHub release for the same extension tag.
- Confirm VS Code Marketplace and Open VSX both report
X.Y.Z.
The extension publisher also retains manual dispatch with a required
vscode-vX.Y.Z tag. Core vX.Y.Z tags and core releases never start extension
publishing.
Publishing tools¶
.github/vscode-publish-tools/package.json pins exact @vscode/vsce and
ovsx versions, and its package-lock.json pins every dependency by
integrity hash. Both workflows run npm ci --ignore-scripts there. The
vscode-extension job in Tests packages the extension with these tools on
every pull request, so a tool update that breaks packaging fails before a
release. Dependabot proposes updates weekly. To update by hand, edit the
versions and run npm install --package-lock-only --ignore-scripts in that
directory.
vsce still asks for minimatch 10, which has no fix for
GHSA-g3hv-75wg-m249.
The overrides entry moves it to minimatch 11. Drop the override once a
vsce release depends on 11.
Extension recovery¶
- If the tag or parity check fails, do not move an existing published tag. Correct the release commit before creating a new tag.
- If publishing fails before either registry accepts the version, fix the credential or registry configuration and rerun the workflow with the same extension tag.
- If one registry succeeds and the other fails, rerun with the same tag. Both publishers skip an already published version and retry the missing one.
-
If automatic tag dispatch does not start, manually run
Publish VS Code Extensionwith the existingvscode-vX.Y.Ztag. -
Marketplace OIDC token exchange failedorNo trusted publisher matches the presented tokenmeans a registry policy does not match the workflow. Check the owner, repository, workflow filename, and environment name against the values below, then rerun with the same tag.
Never rebuild from a branch after a tag exists. Recovery runs must use the original tag so each registry receives artifacts from the same commit.
Extension trusted publishing setup¶
Both registries publish with short-lived credentials exchanged from the GitHub
Actions OIDC token. No Azure subscription, Microsoft Entra app registration,
managed identity, or repository variable is needed: Marketplace Trusted
Publishing is the Microsoft-documented path for GitHub Actions. The Entra
workload identity path (vsce publish --azure-credential with a service
connection) is documented for Azure Pipelines.
Global Azure DevOps personal access tokens, the only PAT type that can publish to the Marketplace, stop working on January 27, 2027. The VS Code publishing guide still states December 1, 2026, so finish this setup before December 1, 2026.
One-time setup, done once by the publisher owner before the next
vscode-vX.Y.Z tag:
- GitHub environment. In repository Settings > Environments, create
vscode-publish. Under Deployment branches and tags, choose Selected branches and tags and add the tag rulevscode-v*and the branch rulemain(manual dispatch runs frommain). Optionally add required reviewers. - VS Code Marketplace. Sign in to
https://marketplace.visualstudio.com/manage, open publisher
Siddhant-K-code, select Trusted Publishing, expand Create, and enter:
| Field | Value |
|---|---|
| Policy name | publish-vscode |
| Repository owner | Siddhant-K-code |
| Repository | agent-trace |
| Workflow | publish-vscode.yml |
| Environment | vscode-publish |
The resulting OIDC token has audience marketplace.visualstudio.com,
repository Siddhant-K-code/agent-trace, workflow
.github/workflows/publish-vscode.yml, and environment vscode-publish.
3. Open VSX. Sign in to https://open-vsx.org as the owner of the verified
Siddhant-K-code namespace, open Settings > Trusted Publishers, pick
the namespace and extension agent-strace, choose GitHub Actions, and
enter owner Siddhant-K-code, repository agent-trace, workflow
publish-vscode.yml, and environment vscode-publish. The extension must
keep at least one active version.
4. After the first extension release publishes to both registries through the
workflow, delete the repository secrets VSCE_PAT and OVSX_PAT, then
revoke the matching tokens in Azure DevOps (User settings > Personal
access tokens) and Open VSX (Settings > Access Tokens). An OVSX_PAT
value takes precedence over trusted publishing in ovsx, so it must not be
reintroduced in the workflow.
Sources: