Pan release

From eltmon/overdeck · View interactive version

Pan release is an AI agent skill from the GitHub repository eltmon/overdeck. Overdeck-specific stable vs canary release workflow from main

How to use this skill

Skill file

Overdeck Release Workflow

Use this skill when the user asks how to release Overdeck, whether they should use a develop branch, or how stable vs canary publishing works.

Core policy

Overdeck develops directly on main.

main is the active development branch, not the stable channel by itself. A release only happens when someone intentionally cuts and pushes a tag.

Do not recommend GitFlow or a long-lived develop branch unless the user explicitly asks for a different workflow.

Release channels

Stable

Canary

Preferred operator flow

Every stable release checks the pending changelog entries and ends with a

clean-install check. Neither step is optional, though the public changelog

itself is left unchanged when there are no pending entries or the target

version's block already exists (a retag).

  1. Check the pending entries. Run ls changelog.d and fix any wording you

want to change, in a normal commit, before releasing. pan release stable

folds every entry file into a dated <Update> block at the top of

changelog.mdx and deletes the entry files in the release commit, unless

there are no entries or a block for the target version already exists, in

which case it leaves changelog.mdx unchanged and still releases; it

refuses to proceed on a malformed entry, a misnamed file, or a leftover

Upcoming block, and pan release canary never folds. Details:

docs/RELEASING.md, "Update the public changelog". Both `pan release

stable and pan release canary also stamp the @overdeck/core` pins

under integrations/.

  1. Run:

```bash

pan release check

```

  1. Create a stable or canary release:

```bash

pan release stable --version 0.7.1

pan release canary --version 0.8.0-canary.1

```

  1. Push intentionally:

```bash

git push origin main

git push origin v0.7.1

```

  1. Verify a clean install after npm shows the new version. Run the advertised

launch command with an empty cache and an empty global prefix, so a global

install on this machine can't hide a broken package:

```bash

T=$(mktemp -d); cd "$T"

npm_config_prefix="$T/prefix" npx --yes --cache "$T/cache" @overdeck/core@X.Y.Z --version

```

It must print X.Y.Z. If npm fails (for example reading 'edgesOut' or

EUNSUPPORTEDPROTOCOL), the release is broken for every new user: fix it and

ship a patch release the same day.

If the npm job instead failed with `::error::<pkg>@<version> is not

visible on npm`, the version is most likely staged (PAN-5595): npm

accepted it but holds it back until a maintainer approves it. Confirm it

with npx --yes npm@11 stage list <pkg> and

npx --yes npm@11 stage view <stage-id>, and approve only the stage id

whose output shows that exact package and version, with

npx --yes npm@11 stage approve <stage-id> (2FA, npm 11.15 or later). You

can also approve under Staged Packages in your npmjs.com account settings.

If no staged entry for that version exists, check registry visibility

instead of approving. Then re-run the failed npm job. Never publish the

same version again. See docs/RELEASING.md for details.

What the CLI does

pan release stable and pan release canary:

Publishing (how a pushed tag actually ships)

Pushing a vX.Y.Z tag triggers .github/workflows/release.yml, which **publishes

@overdeck/core, @overdeck/contracts, and @overdeck/desktop to npm and cuts

the GitHub Release with desktop binaries — automatically. There is no manual

npm publish, no token, and no OTP**:

id-token: write plus a Trusted Publisher configured on each package. The

publish steps are retry-safe (skip a package if that version already exists)

and wait up to 20 minutes for the version to become visible on npm, failing

with approval instructions if npm holds it as staged (PAN-5595).

setup-node.** registry-url writes a dummy _authToken into .npmrc that

shadows OIDC and makes npm publish fail with a 404. (This broke the

v0.30.0/v0.30.1 publishes; removing it was the fix.)

Prerequisites that must stay true or publishing breaks:

(GitHub Actions · eltmon/overdeck · release.yml).

(e.g. @overdeck/contracts) belong in devDependencies, or consumers'

npm install fails with EUNSUPPORTEDPROTOCOL.

@vitest/*, jest, @playwright/test). 0.60.0–0.62.0 shipped @effect/vitest

there, and its peer graph crashed npx @overdeck/core with reading 'edgesOut'.

scripts/lint-dist-externals.mjs fails the build on this.

First-time setup for a brand-new package (npm org creation, the one-time

bootstrap publish, configuring the Trusted Publisher) and full publish

troubleshooting live in docs/RELEASING.md.

Releasing as an agent (guards you will hit)

An agent cutting a release trips guards a human operator never sees. All three

have sanctioned levers — never reach for --no-verify, which is a one-way

door.

1. The commit path guard. scripts/guard-flywheel-orchestrator-commit.sh

(via .husky/pre-commit) refuses a flywheel-orchestrator commit that touches

anything outside docs/FLYWHEEL-STATE.md and the state paths — and a release

commit necessarily touches three package.json files. The guard's own

operator-directed escape hatch is:

OVERDECK_OPERATOR_COMMIT=1 pan release stable --version X.Y.Z

It mirrors OVERDECK_OPERATOR_PUSH=1 for the push guard. Use it only when the

operator has actually directed the release.

2. The push guard. scripts/guard-agent-main-push.sh exempts conv-

prefixed agent ids except conv-flywheel, and never pipeline roles, so pushing main and the tag needs:

OVERDECK_OPERATOR_PUSH=1 git push origin main
OVERDECK_OPERATOR_PUSH=1 git push origin vX.Y.Z

3. Preflight tests failing for the wrong reason (PAN-3081 / PAN-3189). The

per-agent ~/.overdeck/agents/<id>/git-guard shim used to intercept

git reset --hard and git rebase *inside test fixtures that legitimately run

them against their own temp repos*, so preflight reported failures that did not

exist — 10 failures with the shim on PATH, 0 without.

PAN-3189 fixed both halves at the source: the guard now fires only for git

commands targeting the agent's own worktree, and each launcher strips any

inherited guard directory from PATH before installing its own. A session

spawned since that landed needs no workaround.

A session started before it — or any shell that inherited an old shim — can

still see the artifact. Check first, and only reach for the workaround if the

shim is actually there:

echo $PATH | tr ':' '\n' | grep git-guard    # expect: your own agent's dir, or nothing
CLEAN=$(echo $PATH | tr ':' '\n' | grep -v git-guard | paste -sd:)
PATH="$CLEAN" npm test          # must be genuinely green
pan release stable --version X.Y.Z --skip-tests

--skip-tests is legitimate only when you have run the suite clean and seen

it pass. It skips a corrupted measurement, not the verification itself.

Ordering note. If git push origin main is rejected because the remote moved

ahead, merge rather than rebase (git rebase is blocked by the agent git guard)

and push again. Push the tag even if main is momentarily behind — the tag is

its own ref and triggers the publish workflow independently.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.