Release
Prepare, approve, execute, and independently verify a versioned release through a project-owned exact-command profile.
Overview
A release is a project-owned operation, not a universal shell recipe. This skill gives Runx one common governance sequence—prepare, describe, approve, publish, and independently verify—while leaving the actual build and provider commands in a versioned profile owned by the project.
Use it when a package or project already knows how to prepare, publish, and verify itself but needs one digest-bound approval and receipt chain around those commands. Do not use it to invent a release process for an unconfigured project or to replace the project's tests, packaging, or registry tooling.
A release profile is the project adapter. It declares exact argv commands that the project already owns; this skill validates their release semantics but does not recreate the project's release implementation.
Runx core owns bounded profile reads, path and symlink containment, command-plan digests, sanitized child environments, process-tree supervision, timeouts, credential redaction, and output evidence. Package JavaScript only validates the release profile and interprets the three release-specific provider states.
Use prepare to execute the profile's preparation command and produce an
evidence-bound release brief. Use the default release runner to approve the
exact publish plan, execute it without a shell, then run a separate verification
command. The publish command is refused if its normalized argv plan drifts after
approval. Publication is never inferred from an agent answer or a zero exit code.
In the manual
Runners
preparerelease
Declared by its execution profile. Read the profile
SKILL.md
Release
A release is a project-owned operation, not a universal shell recipe. This skill gives Runx one common governance sequence—prepare, describe, approve, publish, and independently verify—while leaving the actual build and provider commands in a versioned profile owned by the project.
Use it when a package or project already knows how to prepare, publish, and verify itself but needs one digest-bound approval and receipt chain around those commands. Do not use it to invent a release process for an unconfigured project or to replace the project's tests, packaging, or registry tooling.
A release profile is the project adapter. It declares exact argv commands that the project already owns; this skill validates their release semantics but does not recreate the project's release implementation.
Runx core owns bounded profile reads, path and symlink containment, command-plan digests, sanitized child environments, process-tree supervision, timeouts, credential redaction, and output evidence. Package JavaScript only validates the release profile and interprets the three release-specific provider states.
Use prepare to execute the profile's preparation command and produce an
evidence-bound release brief. Use the default release runner to approve the
exact publish plan, execute it without a shell, then run a separate verification
command. The publish command is refused if its normalized argv plan drifts after
approval. Publication is never inferred from an agent answer or a zero exit code.
Project profile
project_root is resolved inside the current Runx workspace and must be a
relative directory (normally . when Runx is invoked from the project root).
profile_path must name a JSON file inside that directory:
{
"schema": "runx/release.profile.v1",
"id": "my-project/npm",
"channel": "npm",
"commands": {
"prepare": { "argv": ["pnpm", "release:check"], "cwd": ".", "timeout_ms": 300000 },
"publish": { "argv": ["gh", "workflow", "run", "release.yml"], "cwd": "." },
"verify": { "argv": ["pnpm", "release:check:live"], "cwd": "." }
}
}Commands are argv arrays, never shell strings. Paths cannot escape the project. These commands are trusted host processes: Runx fixes and digests their argv, working directory, admitted environment, and timeout, but does not claim to confine their filesystem, network, or syscalls. Keep profiles project-owned, versioned, and narrowly scoped; the publish command still requires the exact digest-bound approval before execution. Credential-shaped arguments and inline environment values are rejected; commands receive credentials only through Runx credential delivery or existing local CLI profiles. The release profile is context and topology, not authority.
Every command must print one bounded JSON object. Preparation returns
status: ready; publish returns status: submitted or published;
verification returns status: verified, the exact version and channel,
and at least one stable locator. Optional fields are release_id,
commit, checks, and locators. Raw stdout and stderr are not copied
into release artifacts; only parsed bounded fields and runtime evidence digests
are sealed.
Authority and closure
Preparation and note drafting do not require human approval. The one approval
gate binds the profile digest, version, channel, and native publish command-plan
digest. Only publish crosses the consequential external boundary. Verification
is independent readback and is the only path to verified. Failed commands,
identity drift, plan drift, invalid JSON, or missing locators never produce a
success claim.
Stop conditions and recovery
- Stop when the profile escapes the project root, follows an unsafe symlink, uses shell strings, embeds credential-shaped arguments or environment values, or omits one of the three command roles.
- Stop when preparation does not return bounded
readyJSON or when the requested version and channel differ from the profile evidence. - Approval binds the exact publish argv plan. Any normalized plan drift requires a new preparation and approval rather than opportunistic execution.
- A zero exit code or
submittedprovider response is not verification. The independent verify command must return the exact version, channel, and stable locator. - Preserve a failed or ambiguous publish as recovery evidence; do not rerun a potentially consequential command under a different identity without inspecting provider state.
Example
An npm project profile runs a local release check, dispatches a GitHub release workflow, and verifies the exact version from the registry. Runx can prepare a brief and notes, bind approval to the workflow-dispatch argv, execute it, and seal only after registry readback names the requested version. If the publish command changes between preparation and approval or verification cannot find the version, the run does not claim a successful release.
Agent task contracts
release-notes
Draft only consumer-facing release notes from the admitted profile, exact version, preparation checks, last tag, and operator context. Return headline, summary, changelog with added/fixed/changed/removed/ breaking arrays, upgrade_guidance, and risks. Do not claim a tag, registry version, deployment, publication, verification, provider acknowledgement, URL, or side effect.
Published execution profile
The execution profile published with 0.4.12, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:c9b11860d2d978c49d9224607e7b232acb02ba031d15c55c872e0ac5a6111e59 |
skill: release
version: "0.4.12"
catalog:
kind: graph
audience: public
visibility: public
role: canonical
execution: execute
completion: provider_readback
approval: required
category: code
runners:
prepare:
description: Run the release profile's preparation command and produce an evidence-bound release brief.
inputs:
project_root: { type: string, required: true, description: Existing project directory relative to the Runx workspace. }
profile_path: { type: string, required: true, description: JSON release profile inside project_root. }
channel: { type: string, required: true, description: Release channel declared by the profile. }
version: { type: string, required: true, description: Exact SemVer release version. }
last_tag: { type: string, required: false, description: Previous release anchor for notes. }
operator_context: { type: string, required: false, description: "Bounded release context, never authority." }
result_from: [finalize-ready-brief, finalize-blocked-brief]
steps:
- id: read-profile
tool: fs.read
scopes: [fs.read]
inputs:
repo_root: $input.project_root
path: $input.profile_path
max_bytes: 65536
- id: inspect-profile
inputs:
project_root: $input.project_root
channel: $input.channel
version: $input.version
last_tag: $input.last_tag
operator_context: $input.operator_context
profile_file: $steps.read-profile.file_read
tool: { module: release.mjs, export: inspectProfile }
outputs:
release_context:
type: object
artifacts:
named_emits: { release_context: release_context }
packets: { release_context: runx/release.context.v1 }
- id: plan-prepare
tool: command.plan
inputs:
output_mode: json
repo_root: $steps.inspect-profile.release_context.project_root
command: $steps.inspect-profile.release_context.commands.prepare.command
args: $steps.inspect-profile.release_context.commands.prepare.args
cwd: $steps.inspect-profile.release_context.commands.prepare.cwd
env: $steps.inspect-profile.release_context.commands.prepare.env
timeout_ms: $steps.inspect-profile.release_context.commands.prepare.timeout_ms
- id: plan-publish
tool: command.plan
inputs:
output_mode: json
repo_root: $steps.inspect-profile.release_context.project_root
command: $steps.inspect-profile.release_context.commands.publish.command
args: $steps.inspect-profile.release_context.commands.publish.args
cwd: $steps.inspect-profile.release_context.commands.publish.cwd
env: $steps.inspect-profile.release_context.commands.publish.env
timeout_ms: $steps.inspect-profile.release_context.commands.publish.timeout_ms
- id: plan-verify
tool: command.plan
inputs:
output_mode: json
repo_root: $steps.inspect-profile.release_context.project_root
command: $steps.inspect-profile.release_context.commands.verify.command
args: $steps.inspect-profile.release_context.commands.verify.args
cwd: $steps.inspect-profile.release_context.commands.verify.cwd
env: $steps.inspect-profile.release_context.commands.verify.env
timeout_ms: $steps.inspect-profile.release_context.commands.verify.timeout_ms
- id: execute-prepare
tool: command.execute
scopes: [process.exec, runx:release:prepare]
inputs:
output_mode: json
repo_root: $steps.inspect-profile.release_context.project_root
command: $steps.inspect-profile.release_context.commands.prepare.command
args: $steps.inspect-profile.release_context.commands.prepare.args
cwd: $steps.inspect-profile.release_context.commands.prepare.cwd
env: $steps.inspect-profile.release_context.commands.prepare.env
timeout_ms: $steps.inspect-profile.release_context.commands.prepare.timeout_ms
expected_command_digest: $steps.plan-prepare.command_plan.command_digest
- id: interpret-prepare
inputs:
phase: prepare
release_context: $steps.inspect-profile.release_context
command_execution: $steps.execute-prepare.command_execution
command_plan: $steps.plan-prepare.command_plan
tool: { module: release.mjs, export: interpretPhase }
outputs:
preparation:
type: object
artifacts:
named_emits: { preparation: preparation }
packets: { preparation: runx/release.phase_result.v1 }
- id: draft-notes
when:
value: $steps.interpret-prepare.preparation.status
equals: ready
agent: { role: builder, task: release-notes }
outputs: { release_notes: object }
inputs:
release_context: $steps.inspect-profile.release_context
preparation: $steps.interpret-prepare.preparation
project_root: $input.project_root
profile_path: $input.profile_path
channel: $input.channel
version: $input.version
last_tag: $input.last_tag
operator_context: $input.operator_context
artifacts:
named_emits: { release_notes: release_notes }
- id: finalize-ready-brief
when:
value: $steps.interpret-prepare.preparation.status
equals: ready
inputs:
release_context: $steps.inspect-profile.release_context
preparation: $steps.interpret-prepare.preparation
release_notes: $steps.draft-notes.release_notes
prepare_plan: $steps.plan-prepare.command_plan
publish_plan: $steps.plan-publish.command_plan
verify_plan: $steps.plan-verify.command_plan
tool: { module: release.mjs, export: finalizeBrief }
outputs: { release_context: object, release_brief: object }
artifacts:
named_emits: { release_context: release_context, release_brief: release_brief }
packets: { release_context: runx/release.context.v1, release_brief: runx/release.brief.v1 }
- id: finalize-blocked-brief
when:
value: $steps.interpret-prepare.preparation.status
equals: failed
inputs:
release_context: $steps.inspect-profile.release_context
preparation: $steps.interpret-prepare.preparation
prepare_plan: $steps.plan-prepare.command_plan
publish_plan: $steps.plan-publish.command_plan
verify_plan: $steps.plan-verify.command_plan
tool: { module: release.mjs, export: finalizeBrief }
outputs: { release_context: object, release_brief: object }
artifacts:
named_emits: { release_context: release_context, release_brief: release_brief }
packets: { release_context: runx/release.context.v1, release_brief: runx/release.brief.v1 }
release:
description: Approve a release's exact publish plan, run it without a shell, then verify it with a separate command.
default: true
inputs:
project_root: { type: string, required: true, description: Existing project directory relative to the Runx workspace. }
profile_path: { type: string, required: true, description: JSON release profile inside project_root. }
channel: { type: string, required: true, description: Release channel declared by the profile. }
version: { type: string, required: true, description: Exact SemVer release version. }
last_tag: { type: string, required: false, description: Previous release anchor for notes. }
operator_context: { type: string, required: false, description: "Bounded release context, never authority." }
result_from: [interpret-verify]
steps:
- id: prepare
skill: .
runner: prepare
inputs:
project_root: $input.project_root
profile_path: $input.profile_path
channel: $input.channel
version: $input.version
last_tag: $input.last_tag
operator_context: $input.operator_context
- id: approve-publish
ask: { gate: release.publish.approval, reason: "Approve this exact version, channel, profile digest, and native command-plan digest." }
inputs:
release_brief: $steps.prepare.release_brief
project_root: $input.project_root
profile_path: $input.profile_path
channel: $input.channel
version: $input.version
last_tag: $input.last_tag
operator_context: $input.operator_context
- id: execute-publish
tool: command.execute
scopes: [process.exec, runx:release:publish]
inputs:
output_mode: json
repo_root: $steps.prepare.release_context.project_root
command: $steps.prepare.release_context.commands.publish.command
args: $steps.prepare.release_context.commands.publish.args
cwd: $steps.prepare.release_context.commands.publish.cwd
env: $steps.prepare.release_context.commands.publish.env
timeout_ms: $steps.prepare.release_context.commands.publish.timeout_ms
expected_command_digest: $steps.prepare.release_context.commands.publish.command_digest
- id: interpret-publish
inputs:
phase: publish
release_context: $steps.prepare.release_context
command_execution: $steps.execute-publish.command_execution
tool: { module: release.mjs, export: interpretPhase }
outputs: { publication: object }
artifacts:
named_emits: { publication: publication }
packets: { publication: runx/release.phase_result.v1 }
- id: execute-verify
tool: command.execute
scopes: [process.exec, runx:release:verify]
inputs:
output_mode: json
repo_root: $steps.prepare.release_context.project_root
command: $steps.prepare.release_context.commands.verify.command
args: $steps.prepare.release_context.commands.verify.args
cwd: $steps.prepare.release_context.commands.verify.cwd
env: $steps.prepare.release_context.commands.verify.env
timeout_ms: $steps.prepare.release_context.commands.verify.timeout_ms
expected_command_digest: $steps.prepare.release_context.commands.verify.command_digest
- id: interpret-verify
inputs:
phase: verify
release_context: $steps.prepare.release_context
command_execution: $steps.execute-verify.command_execution
tool: { module: release.mjs, export: interpretPhase }
outputs: { verification: object }
artifacts:
named_emits: { verification: verification }
packets: { verification: runx/release.phase_result.v1 }
policy:
guards:
- { step: approve-publish, value: $steps.prepare.release_brief.decision, equals: ready_for_approval }
- { step: execute-publish, value: $steps.prepare.release_brief.decision, equals: ready_for_approval }
- { step: execute-publish, value: $steps.approve-publish.approval_decision.approved, equals: true }
- { step: interpret-publish, value: $steps.approve-publish.approval_decision.approved, equals: true }
- { step: execute-verify, value: $steps.interpret-publish.publication.status, equals: command_completed }
- { step: execute-verify, value: $steps.approve-publish.approval_decision.approved, equals: true }
- { step: interpret-verify, value: $steps.interpret-publish.publication.status, equals: command_completed }
harness:
files: [fixtures/support/release-blocked-fixture.graph, fixtures/support/release-fixture.graph, fixtures/support/setup_release_fixture.mjs]
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 2 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | 0.4.12 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Run by the Runx registry at publication |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:ae49aee8613d21ffb65ff6418e0703c2c997dc2f80c3beafb5a433cea60ff70esha256:dc6fc3b61a9bce637d08925821eb8241d4b225ef57be0b64449b498c38fa8c88Package identity
| Published revision | 0.4.12 |
|---|---|
| Content digest | sha256:1e945f37da09d9474512dcfad3708eaf5c8997868af736701a0d1f152fbede25 |
| SKILL.md digest | sha256:088103a00516e3029f8853cee6c5a4a1b693beffa7651f4026ceaeb0e17f2487 |
| Execution profile digest | sha256:c9b11860d2d978c49d9224607e7b232acb02ba031d15c55c872e0ac5a6111e59 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.4.12ViewingContent digest sha256:1e945f37da09d9474512dcfad3708eaf5c8997868af736701a0d1f152fbede25sha-264e40304896Content digest sha256:264e4030489679a2829696fae38992ff29ff8328c42c991e9ebe2e756966d210sha-83cb3cb21f17Content digest sha256:83cb3cb21f17d0b669f97311e41017da8f44c7afd91bc260aeae6d75f9ce0bc8sha-42a278bb03dfContent digest sha256:42a278bb03df7787b45898100f787374a893964b1f1320641584416b640d20c1sha-8101daa3cb7aContent digest sha256:ac8a8dc87d2ac944246cb9d8f07fc0e9c62383eaa12141507ce3935d540d7d4e