Release — the DOS kernel
Semver: major.minor.patch. Patch = bug fix, minor = new feature, major = breaking.
DOS is a substrate, not an app. This skill is the DOS-context adaptation of
the
jobrelease skill. It is deliberately thinner: DOS single-sources its
version from
pyproject.toml(one marker, not four), ships no release-asset
zip archive, screenshots, versioned-install snapshot, plan-state regeneration,
apply-loop gate, or fanout/dispatch manifest. The dist artifacts — one wheel per
OS/arch, each embedding its native
dos-hookfast-path binary atdos/_bin/
(docs/286), plus a pure-source sdist — are built by CI (
publish.ymlvia
scripts/build_wheels.py), never by this skill locally. The verification
step is the kernel test suite + the truth syscall, not an apply pipeline. If you
find yourself reaching for any of those job-only ceremonies, you're in the wrong
repo's skill.
One exception — the plugin's native hook binaries. The Claude Code plugin
(
claude-plugin/) bundles the compileddos-hookfast-path binaries (docs/125
GHF4), committed into
claude-plugin/bin/so a marketplace install (a git clone)
is a direct install. They are NOT a release asset and NOT in the wheel — they live
in the git tree. Step 5.5 rebuilds them so a release never ships a stale binary
against changed Go source.
Trunk is master (there is no main branch in DOS). Every git push in
this skill targets master. Master-direct is the deliberate branching model for
now (a trunk+lane-branch PR cutover is planned, evidence-triggered — not a dev
branch); this skill assumes it.
This repo is PUBLIC and the tag is a publish trigger (the 2026-06-10 cutover).
Three consequences every release run must respect:
- A push IS publication.
originis the publicanthony-chaudhary/dos-kernel.
The machine-local pre-push hook (.git/hooks/pre-push) runs the leak scanner
(scripts/leak_scan.py, a gitignored sync of the canonical
../dos-private/tools/leak_scan.py) and is fail-closed: a hit — or a
missing scanner — refuses the push. On a refusal: scrub and amend, never
--no-verify ("a leak is a refusal, not a warning"). Details in the runbook's
Public-repo push gates section.
- Pushing the
vX.Y.Ztag starts the PyPI publish pipeline.publish.yml
fires on every v* tag: it builds the per-platform wheels + sdist, asserts
tag == pyproject.toml version, refuses to upload any SHA without a green
ci.yml run on it (the ci-green witness gate — it polls while CI
finishes), then pauses at the protected pypi environment for the operator's
approval before the OIDC Trusted-Publishing upload. So Step 6's tag push is
also the publish request, and Step 7.4 is "surface/approve the pipeline,"
not "run twine."
- Release notes are public documents.
docs/releases/vX.Y.Z.mdships to the
world (and into the GH release body). No dev-machine absolute paths, hostnames,
or personal identifiers; private-SUBJECT prose (operator process, fleet audits,
launch mechanics) is born in dos-private, never here — the CLAUDE.md
route-privacy-at-authoring-time rule, applied to the notes you draft in Step 3.
Cadence — two channels, one rule
- Rolling
vX.Y.Z(this skill): ship whenever the gates are green. A
coherent, user-visible unit of work + a green suite is enough to cut a tag —
several per week is healthy, not churn. The cost is low by design: every hard
gate is mechanical and already wired (pre-push leak scan, ci.yml on the push,
the publish ci-green witness, one human approval click for PyPI). Don't batch
work waiting for a "big enough" release — the oracle reads git, and unshipped
work is NOT_SHIPPED.
- Stable
stable/<codename>(/stable-release): promote deliberately. The
infrequent counterweight — a promotion of an already-soaked rolling tag (green
suite + green third-party CI + clean truth syscall + soak window), producing
the evidence file + the tag consumers pin in production
(pip install dos-kernel==<underlying>). Rolling moves fast because stable
exists; stable can afford its soak window because rolling carries the urgency.
- **Semver carries the compatibility promise; the channel carries the trust
promise.** Major = breaking ABI (verdict vocabulary, syscall signature,
SubstrateConfig shape). A major bump deserves a stable promotion soon after
it soaks, so consumers get a provably-good anchor on the new ABI.
Git authorization. Invoking this skill is the user's explicit authorization
to run git add, git commit, git tag, and git push origin master/vX.Y.Z
as specified in Steps 5–6. The "never commit/push unless asked" default does NOT
apply here — committing and pushing IS the skill's job, and stopping mid-flow to
re-confirm each git mutation is the wrong behavior. Confirmation is still
required for anything destructive the steps don't list (force-push, history
rewrites, branch deletion, git reset --hard).
The kernel-vs-tooling boundary. The release scripts (scripts/release_*.py)
and this skill are dev/release tooling that operates ON the package — they
are never imported BY dos.*. Editing them never touches the kernel's import
graph, so the "kernel imports no host, no scripts/" litmus in CLAUDE.md
stays intact. Keep release logic here, not in src/dos/.
Fast path (most releases): Steps 1–7.5 below. Edge cases (racing agents,