<!-- AUTO-GENERATED by task packs:render -- DO NOT EDIT MANUALLY -->
<!-- Purpose: rendered skill -->
<!-- Source of truth: packs/skills/skills-pack-0.1.json -->
<!-- Regenerate with: task packs:render -->
<!-- Edit the source, not this file. Slice instead of loading every SKILL.md: task packs:slice skills by-trigger --trigger <kw> (or list) -->
Deft Directive Release
Structured 8-phase workflow for cutting a v0.X.Y release of the deft framework. Operationalizes the task release / task release:publish / task release:rollback / task release:e2e / task release:wait-npm / task release:local-update surface introduced in #716 (safety hardening of #74; Phase 7 wait #4267; maintainer checkout closeout #5953).
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
See also: deft-directive-swarm Phase 6 Step 5 (Slack announcement template re-used by Phase 8 below) | deft-directive-review-cycle (user-gate pattern) | deft-directive-refinement (conversational phased flow).
Platform Requirements
! GitHub as the SCM platform; the GitHub CLI (gh) must be installed and authenticated. The full pipeline plus the rehearsal target (task release:e2e) all dispatch through gh.
Primary occupancy — trusted producer (#4266)
! Mutation session:start on a contended primary MUST pass --primary-claim-exception=release-cut before any state-changing preflight command (task policy:allow-direct-commits -- --confirm, reconcile, cache refresh). Occupancy already implements that exception; session:start CLI argv is the trusted producer.
deft session:start --primary-claim-exception=release-cut
or task session:start -- --primary-claim-exception=release-cut. Sibling values: policy-restore, operator-default-branch. Unknown values fail closed (exit 2). --read-only never claims.
⊗ Invent a process-wide env producer for the exception.
⊗ Name the exception in spawn JSON.
⊗ Run task policy:allow-direct-commits (or any other mutation) before mutation session:start --primary-claim-exception=release-cut on a contended primary.
Release cut-context — keep published pin (#5910)
! At release entry (Phase 1 after the version is confirmed, before Phase 4 / task release mutations that reach version bump/tag), write the cut-context marker via the named producer:
task materialize:cut-context
or node tasks/materialize.cjs --write-cut-context <checkout-root>. That writes .deft-scratch/release-cut-context.json. While the marker is present, task materialize:runtime refuses before it moves or replaces node_modules/@deftai/directive-runtime, so tip 0.0.0 cannot displace the published pin mid-cut.
! Keep cut-context active from release entry through version bump/tag. Clear after the bump/tag lands:
task materialize:clear-cut-context
! Tip dogfood materialize:runtime stays outside the cut path (#5805 keep-out). Do not remint pin-exclusive ordinary invoke.
⊗ Run task materialize:runtime on the cut worktree while cut-context is active.
⊗ Treat schedule-graph-only "never materialize" docs as a substitute for the cut-context refuse-before-replace guard.
! If a materialize overlay (.deft-scratch/materialize-runtime-overlay.json) is already present, cheapInSync fail-closes even when version strings match. Recovery is operator-terminal outside the blocked hook: pnpm install --frozen-lockfile (or equivalent exact restore), then retire the overlay before identity may pass.
Release through a PR (#6296)
! The release grant is the only human act a cut needs. Branch protection stays on, no policy switch, no direct push to the base branch, no override variables, and no hotfix label on the next PR. A stable cut runs these steps as deft release:run, which mints the grant up front (§ Stable cut runbook); the steps below are what it does and the manual path. Depth: