Releasing @kigenka/shokai
Status: v0.7.10 is published (@kigenka/shokai@0.7.10, dist-tag latest, 2026-12-03T18:37:04.101Z / 10:37:04 AM PT on 3 December 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 b4c1347f417f318418c4a191b9375d4f06bdd9cb8bc110c0bca287cdabe91fe5, registry integrity sha512-iEpPm5GioTTtQwtH2sAHTHpgUtDVTf7pzOLCJiYiZXfLsQ+OKnNfNPzAH+dfwLTEaRcr7la14a9ra5mhHVAuDA==, the committed release/kigenka-shokai-0.7.10.tgz, byte for byte. The specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.7.9 is published (@kigenka/shokai@0.7.9, then dist-tag latest, 2026-12-03T06:32:34.130Z / 10:32:34 PM PT on 2 December 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 5a29fa9060099b7da9c03d29f6a50af8b14c4ffcc16cc8d27e99e61823d4f26c, registry integrity sha512-JCeCBYppxpt3C0oD6TZQ7793TOKIoKbyGGdHO62frPOMCN9nCF5ok29+NGZvS9fAUfEbAH4F/dEock+9+rCJJw==, the committed release/kigenka-shokai-0.7.9.tgz, byte for byte. The specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.7.8 is published (@kigenka/shokai@0.7.8, then dist-tag latest, 2026-12-02T08:31:31.072Z / 12:31:31 AM PT on 2 December 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 5600cef44aaad788044456e659c072c9e49e547d0fb9fa1bfd1ff3c0672799f5, registry integrity sha512-NwxHRSPrecQeKGVYvRmFvKROwVhJ/+LGKc24YJH4mDIsky+2wO0OgquKrTu2Cq3bWw4T73eC7lSHKABjbhQ05Q==, the committed release/kigenka-shokai-0.7.8.tgz, byte for byte. The specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.7.6 is published (@kigenka/shokai@0.7.6, then dist-tag latest, 2026-12-01T10:19:28.943Z / 2:19:28 AM PT on 1 December 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 1e5e0c65051d41d9a5e04304d24d51ea10d5d9bf8b9ba30831b0d4f7ed39d6a1, registry integrity sha512-celLDvxyKCxfEKC2CUg4Wd2lskBdd9hXGr/T9X46wTgabdH/IpqwrP/FVqOGLfZTaAXtWVc3Vs6xXo6X3yiXew==. The specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.6.1 is published (@kigenka/shokai@0.6.1, then dist-tag latest, 2026-11-26T03:50:18.852Z / 7:50:18 PM PT on 25 November 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 47607771a09162564304071176138a91df1b7bc4d2f9fc663d81eeea3eae3eb1, registry integrity sha512-krrqgit8WwzYS31hF97iWpQMF/ebFOOypUOWB7EVFaKohKwSt5X8cTE5wAsxw/PJaiSGXMtTZdQCJ/vHWw+u6w==, the committed release/kigenka-shokai-0.6.1.tgz, byte for byte. The specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.6.0 is published (@kigenka/shokai@0.6.0, dist-tag latest, 2026-11-19T04:34:56.461Z / 8:34:56 PM PT on 18 November 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 bd885f9c1f2f76b50fab3e5040967b663d4f6292da6e7e98e2bb7d659f2b6c4f, the committed release/kigenka-shokai-0.6.0.tgz, byte for byte. 0.6.0 does not change the SDK's compiled code from 0.5.1; the specification stays v0.5.0, wire tag shokai/0.5. Earlier: v0.5.1 is published (@kigenka/shokai@0.5.1, then dist-tag latest, 2026-11-11T22:01:49.096Z / 2:01:49 PM PT on 11 November 2026, America/Los_Angeles), by the editor from a laptop, without provenance. Its tarball: sha256 e8a407fc2431464103eae23fc14eae64da1ffe6c704c300259a3fd538255dfa4, the committed release/kigenka-shokai-0.5.1.tgz, byte for byte. Earlier: v0.5.0 is published (@kigenka/shokai@0.5.0, then dist-tag latest, 2026-11-11T03:26:30.293Z / 7:26:30 PM PT on 10 November 2026, America/Los_Angeles), by the editor from a laptop, without provenance (--provenance=false --tag latest). Its tarball: sha256 259b414dfe78beb5a50a5b87a5c66c505dca73e2f34d6889622600904c22143b, npm shasum 5575c9588a5144442e8f53b2fad74e2890d86e26. v0.3.0 remains on the registry (published October 28, 2026, 11:59 AM PDT; sha256 f4b12f8dc722db2fcaf9110ab9eb372478311b5c5e3f4086d6ae883ebfc0d515). Every publish is taken only with the editor's explicit approval.
The 0.7.12 package is prepared locally. npm latest remains @kigenka/shokai@0.7.11.
The package
packages/shokai/package.json: name@kigenka/shokai, version0.7.12, author the editor, Apache-2.0.files:dist/src,src(the TypeScript sources ship),dist/examples,conformance-data,agent-install(the agent install guide and manifest ship),spec,README.md,LICENSE,NOTICE. Bins:shokai(demo,visit,conformance,detect,house,init,host-card,--version) andshokai-conformance.publishConfig:{ access: public, provenance: true, tag: latest }.- One source of truth for publish-day facts:
release/release-status.jsonholds the version, wire tag, dist-tag, npm status (unpublishedorpublished), the latest version on npm and the tarball's sha256.tools/pack-release.shwrites the version and sha256; the site build reads the file for its status strings and digest;tools/check-links-versions.mjs(CI and the release job) fails if any repository Markdown file, the package README, the agent install guide, the site pages (when the site is checked out;SHOKAI_REQUIRE_SITE=1makes their absence a failure), the sidecar.sha256,publishConfig.tagor the CHANGELOG disagree with it. repository,homepageandbugspoint togithub.com/Kigenka/shokai. npm comparesrepository.urlwith the publishing workflow's repository, case-sensitively: keepKigenkacapitalized.- Markdown links in the package's
spec/that point at repository files the package doesn't ship are rewritten byscripts/sync-core.mjsto the same file at this version's tag (https://github.com/Kigenka/shokai/blob/v<version>/…). Push the tag with the release. "private": truestays in the repository'spackage.jsonas the safety catch.tools/pack-release.shremoves it (and theprepackscript) in a temporary copy beforenpm pack; the release job never editspackage.json, it only asserts that the tarball it publishes has noprivateand the right version.prepack(in the repository copy) checks the core is in sync with the reference and builds.npm testinpackages/shokairuns only inside this repository:scripts/sync-core.mjsreadsreference/engawa/src, andscripts/test-total.mjsrunsexamples/traces/university.mjs. From the installed package, runnpx --no-install shokai-conformance --self-testinstead.tools/pack-release.shgives 195 files (0.6.0) (TypeScript sources included), with no dependencies (the MCP SDK is an optional peer). The packed file installs in an empty folder andnpx --no-install shokai demoruns in about two seconds.
The first publish (done): from a laptop, without provenance
The repository was private, and npm provenance needs a public repository and a cloud CI runner, so the first publish of v0.3.0 was made by the editor from a laptop with --provenance=false. publishConfig.provenance stays true for later publishes from CI. Kept here as the record, and as the fallback if CI is unavailable.
- Confirm the npm scope
@kigenkabelongs to Kigenka (The editor's account owns the organization), with two-factor auth on every owner account. npm login(The editor, in their own terminal; npm asks for the second factor).- From a clean checkout of the release commit:
cd packages/shokai
npm ci && npm test # sync check, typecheck, every SDK test, conformance self-test
npm pkg delete private # the safety catch, in this working copy only; don't commit it
npm publish --provenance=false --access public --tag latest # npm asks for the one-time code
git checkout package.json # put the safety catch backLater publishes: from CI, with provenance
- The repository
github.com/Kigenka/shokaiis public. npm provenance is only generated for packages published from a public repository, by a cloud-hosted CI runner. The v0.5.0 package was published from a laptop without provenance; later publishes can use CI. - The release job publishes the committed tarball, which
tools/pack-release.shalready packed without"private"; the job only asserts that (it never editspackage.json). - Confirm the npm scope
@kigenkabelongs to Kigenka, with two-factor auth on every owner account. repository,homepageandbugsare inpackage.json(done).- On npm, add a trusted publisher for the package: GitHub Actions, organization
Kigenka, repositoryshokai, workflowrelease.yml, environmentnpm-publish. - In the repository settings, create the
npm-publishenvironment with a required reviewer (The editor), so a pushed tag still waits for a person.
.github/workflows/release.yml publishes on a version tag. It checks the tag matches the package version, runs every suite and the quickstart, runs shokai demo from the packed file in an empty folder, then checks that release/kigenka-shokai-<version>.tgz matches its committed .sha256 (the same file the site hosts), runs shokai demo from it, runs tools/check-links-versions.mjs, and publishes that exact file with npm publish <tgz> --provenance --access public --tag <dist-tag>. The dist-tag is dist_tag in release/release-status.json (latest for 0.5.0), or the dist_tag input when the workflow is run by hand on a tag; the job refuses anything but latest, next, beta or rc. A version that is already on npm (such as 0.5.0, when its tag is pushed) is skipped, so pushing v0.5.0 after the laptop publish republishes nothing. It needs Node 22 and npm 11.5.1 or later for trusted publishing.
git tag v0.3.1 && git push origin v0.3.1 # for example; then approve the npm-publish environment in GitHubOne artifact. The release tarball is packed once, by tools/pack-release.sh (a copy of the package without "private"), committed under release/ with its sha256, and hosted unchanged on the site. CI never repacks it for publishing, so the npm tarball and the site tarball are byte-identical. Provenance therefore attests who published it and from which commit, not that CI built it; the build itself is checked by the full test run and the demo from that file; npm view @kigenka/shokai@<v> dist.integrity can be checked against the file.
Check after publishing
cd "$(mktemp -d)" && npm install @kigenka/shokai@0.5.1 && npx --no-install shokai --version && npx --no-install shokai demo && npm view @kigenka/shokai dist-tags # expect latest: 0.5.1Publish-day checklist for 0.5.0 (run only when the editor says go)
Editor decisions H1–H3 are accepted (CHANGELOG). Record the 0.5.0 release date; the
shokai/0.3window runs at least 90 days from it and is never shortened (H2).bash tools/pack-release.shonce more if anything in the package changed; commitrelease/(tarball,.sha256,release-status.json).npm test,SHOKAI_QUICKSTART_TGZ=release/kigenka-shokai-0.5.0.tgz bash tools/verify-quickstart.sh(the walkthrough against the committed file) and, with the site checked out and built,SHOKAI_REQUIRE_SITE=1 node tools/check-links-versions.mjspass. The release job runs the walkthrough against the committed tarball too, but it has no site checkout: site identity is checked by the site build's tarball gate and by this local run, not by the release job.Publish a clean history, never the private one as-is. The private history contains unlabeled workshop/test key files (
workshop/desk/*.json, PKCS#8) that were later removed from the tree and gitignored; publishing that history unchanged would ship them. Before the repository is made public, either push a fresh history (git checkout --orphan public-v0.5.0 && git add -A && git commit, or a freshgit initof the release tree) or rewrite it (git filter-repo --path workshop --path-glob '**/desk/*.json' --path-glob '*.pkcs8' --invert-paths). Then check the history you will push is clean, and stop if either command prints anything:bashgit log --all --name-only --format= | grep -E '(^|/)workshop/|/desk/[^/]*\.json$|\.pkcs8$' | sort -u git grep -nE 'BEGIN (ENCRYPTED )?PRIVATE KEY|"pkcs8"|privateKeyPkcs8' $(git rev-list --all) -- . | headDist-tag:
release-status.jsonsays"dist_tag": "latest". v0.5.0 was published from a laptop under that tag. Make the public repository match this tree (from the clean history of step 3), then tagv0.5.0for the GitHub Release; the release workflow will skip republishing a version that is already on npm.Check the registry has the same bytes:
curl -fsSL "$(npm view @kigenka/shokai@0.5.0 dist.tarball)" | sha256summust printrelease-status.json's sha256; record it andnpm view @kigenka/shokai@0.5.0 dist.integrityon the Releases page. Read the release date fromnpm view @kigenka/shokai time --json, the"0.5.0"entry (authoritative, H2;time.0.5.0as a key path prints nothing) and mirror it, with the window's end date (+90 days), in CHANGELOG.md, the GitHub Release notes and the Releases page.Flip the status in one place: set
"npm_status": "published"inrelease/release-status.json, rebuild the site (its nav, hero and release pages read the file) and runnode tools/check-links-versions.mjs: it fails on any repository Markdown file (CHANGELOG.md and docs/review-history.md, the history, aside), package doc or site page still saying 0.5.0 is pending.Run the Quickstart from the public path on a clean machine (Linux and macOS):
npm install @kigenka/shokai@0.5.0, thenQUICKSTART.mdsteps 1–6 as written, andbash tools/verify-quickstart.shonline. This is the first run from the public path (v0.5.0's earlier runs used the package file); record the result on the Releases page.0.5.0 was published directly under
latest("latest_on_npm": "0.5.0","dist_tag": "latest"). For a later 0.5.x, keeppublishConfig.tagin agreement withrelease-status.json.
Publish-day checklist for 0.6.1 (run only when the editor says go)
0.6.1 is a package patch release. The specification stays v0.5.0: spec_ref.version is still "0.5.0", and the wire tag is still shokai/0.5. It adds visitor safety against trap places (SPEC-DETAIL §12.5, C302–C310), a domain-and-certificate rule for doors (§11.1, C311–C314), the optional take_home member of the owner's visit report (a new schema file, schema/v0.6.1/schema.json), a 1 MiB reply cap in the SDK, and a real spec_ref.url. Core Door is 166 checks and Core Visitor 132. See CHANGELOG.md, v0.6.1.
bash tools/pack-release.shonce more if anything in the package changed (it writesrelease/kigenka-shokai-0.6.1.tgz, its.sha256andrelease-status.json), and commitrelease/. Runnpm test,bash tools/verify.sh,SHOKAI_QUICKSTART_TGZ=release/kigenka-shokai-0.6.1.tgz bash tools/verify-quickstart.shand, with the site built,SHOKAI_REQUIRE_SITE=1 node tools/check-links-versions.mjs. Check the packed contents withnpm pack --dry-runin a copy without"private"(whattools/pack-release.shdoes).- Push
mainto the public repository (a new commit, never a force push). Do not push until the editor says go. - Publish from the laptop, as for 0.6.0:
npm publish ./release/kigenka-shokai-0.6.1.tgz --provenance=false --access public --tag latest(npm asks for the one-time code). - Check the registry has the same bytes:
curl -fsSL "$(npm view @kigenka/shokai@0.6.1 dist.tarball)" | sha256summust printrelease-status.json's sha256, andnpm view @kigenka/shokai@0.6.1 dist.integritymust match the file. Read the publish time fromnpm view @kigenka/shokai time --json(the"0.7.6"entry). - Flip the status in one place: in
release/release-status.jsonset"npm_status": "published","latest_on_npm": "0.6.1"and"published_at", then runnode tools/check-links-versions.mjs. - Update what the release candidate left on 0.6.0 because 0.6.1 did not exist yet:
SECURITY.md(the latest release and the supported-versions table), this file's status line, and the skills that pin the package (drafts/package-0.6/**,docs/skills,docs/platforms,docs/build-a-visitor.md,docs/the-shokai-lounge.md:@kigenka/shokai@0.6.0to0.6.1, and the pinned tarball sha256 to the one inrelease-status.json). The hosted skill copies on the site change with the site deploy. - Push that status commit to
main, then push the tagv0.6.1. The release workflow skips a version that is already on npm, so the tag only anchors the GitHub Release and theblob/v0.6.1/…links in the package'sspec/. Attach the tarball and its.sha256to the GitHub Release. - Deploy the site (the spec, threat-model, schema and what's-new pages, the search index, and the hosted
kigenka-shokai-0.6.1.tgz, keeping the earlier tarballs), with a diff against live production first and only when no visit or order is in progress. - Run the Quickstart from the public path:
npm install @kigenka/shokai@0.6.1in an empty folder, thenQUICKSTART.mdas written. Also:cd "$(mktemp -d)" && npm install @kigenka/shokai@0.6.1 && npx --no-install shokai --version && npx --no-install shokai demo && npm view @kigenka/shokai dist-tags(expectlatest: 0.7.6).
Publish-day checklist for 0.6.0 (run only when the editor says go)
0.6.0 is a package and documentation release. The specification stays v0.5.0: spec_ref.version is still "0.5.0", and the wire tag is still shokai/0.5. 0.6.0 does not change the SDK's compiled code from 0.5.1. What is new lives in the live Lounge door, the site, and the skills. See CHANGELOG.md, v0.6.0.
bash tools/pack-release.shonce more if anything in the package changed, and commitrelease/(tarball,.sha256,release-status.json). Runbash tools/verify.sh,SHOKAI_QUICKSTART_TGZ=release/kigenka-shokai-0.6.0.tgz bash tools/verify-quickstart.shand, with the site built,SHOKAI_REQUIRE_SITE=1 node tools/check-links-versions.mjs.- Merge the draft branch into
mainif it is not already there. Pushmainto the public repository (a new commit, never a force push). Do not push until the editor says go. - Publish from the laptop first, the same way as 0.5.1:
npm publish ./release/kigenka-shokai-0.6.0.tgz --provenance=false --access public --tag latest(npm asks for the one-time code). This publishes the committed file, byte for byte. - Check the registry has the same bytes:
curl -fsSL "$(npm view @kigenka/shokai@0.6.0 dist.tarball)" | sha256summust printrelease-status.json's sha256, andnpm view @kigenka/shokai@0.6.0 dist.integritymust match the file. Read the publish time fromnpm view @kigenka/shokai time --json(the"0.6.0"entry).npm view @kigenka/shokai time.0.6.0prints nothing, because the dots in the version break the key path. - Flip the status in one place: in
release/release-status.jsonset"npm_status": "published","latest_on_npm": "0.6.0"and"published_at", then runnode tools/check-links-versions.mjs. - Push that status commit to
main, then push the tagv0.6.0. The release workflow skips a version that is already on npm, so the tag only anchors the GitHub Release and theblob/v0.6.0/…links in the package'sspec/. Attach the tarball and its.sha256to the GitHub Release. - Deploy the site, which should host
kigenka-shokai-0.6.0.tgzand keep the earlier 0.5.1 and 0.5.0 tarballs, and check the hosted files' sha256. The what's-new page body in this repository is already worded for the published package; promote that wording with the site deploy, and do not call 0.6.0 an unpublished draft once it is on npm. - Run the Quickstart from the public path:
npm install @kigenka/shokai@0.6.0in an empty folder, thenQUICKSTART.mdas written. Also:cd "$(mktemp -d)" && npm install @kigenka/shokai@0.6.0 && npx --no-install shokai --version && npx --no-install shokai demo && npm view @kigenka/shokai dist-tags(expectlatest: 0.6.0).
Publish-day checklist for 0.5.1 (run only when the editor says go)
0.5.1 is a package patch release. The specification stays v0.5.0: spec_ref.version is still "0.5.0", the wire tag is still shokai/0.5, and the JSON Schema keeps its id. The package adds the optional retry.until and retry.appeal members on a binding never, and one MUST rule (SPEC-DETAIL §6.12). See CHANGELOG.md, v0.5.1.
bash tools/pack-release.shonce more if anything in the package changed, and commitrelease/(tarball,.sha256,release-status.json). Runbash tools/verify.sh,SHOKAI_QUICKSTART_TGZ=release/kigenka-shokai-0.5.1.tgz bash tools/verify-quickstart.shand, with the site built,SHOKAI_REQUIRE_SITE=1 node tools/check-links-versions.mjs.- Publish from the laptop first, the same way as 0.5.0:
npm publish ./release/kigenka-shokai-0.5.1.tgz --provenance=false --access public --tag latest(npm asks for the one-time code). This publishes the committed file, byte for byte. - Check the registry has the same bytes:
curl -fsSL "$(npm view @kigenka/shokai@0.5.1 dist.tarball)" | sha256summust printrelease-status.json's sha256, andnpm view @kigenka/shokai@0.5.1 dist.integritymust match the file. Read the publish time fromnpm view @kigenka/shokai time --json(the"0.5.1"entry).npm view @kigenka/shokai time.0.5.1prints nothing, because the dots in the version break the key path. - Flip the status in one place: in
release/release-status.jsonset"npm_status": "published","latest_on_npm": "0.5.1"and"published_at", then runnode tools/check-links-versions.mjs. - Push
mainto the public repository (a new commit, never a force push), then push the tagv0.5.1. The release workflow skips a version that is already on npm, so the tag only anchors the GitHub Release and theblob/v0.5.1/…links in the package'sspec/. Attach the tarball and its.sha256to the GitHub Release. - Deploy the site, which hosts both
kigenka-shokai-0.5.1.tgzand the earlierkigenka-shokai-0.5.0.tgz(sha256259b414d…), and check the hosted files' sha256. - Run the Quickstart from the public path:
npm install @kigenka/shokai@0.5.1in an empty folder, thenQUICKSTART.mdas written.