Release

Prepare, approve, execute, and independently verify a versioned release through a project-owned exact-command profile.

You’re reading version sha-42a278bb03df. Go to the current version

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.

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_ref must name a JSON file inside that directory:

json
{
  "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_ref, 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 ready JSON 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 submitted provider 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 sha-42a278bb03df, shown as its exact bytes.

Runners
  • prepare
  • release
Profile digestsha256:130422c8a3f15bd7471a87613f26e93500a2186abd0a941237e9f261e7eb35b4
skill: release
version: "0.4.8"

catalog:
  kind: graph
  audience: public
  visibility: public
  role: canonical
  execution: execute
  completion: provider_readback
  approval: required
  category: code

runners:
  prepare:
    inputs:
      project_root: { type: string, required: true, description: Existing project directory relative to the Runx workspace. }
      profile_ref: { 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_ref
          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
            schema:
              required: [schema, profile_id, profile_ref, profile_digest, project_root, channel, version, last_tag, operator_context, commands]
              additionalProperties: false
              properties:
                schema: { const: runx.release.context.v1 }
                profile_id: { type: string, minLength: 1, maxLength: 256 }
                profile_ref: { type: string, minLength: 1, maxLength: 2000 }
                profile_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
                project_root: { type: string, minLength: 1, maxLength: 4000 }
                channel: { type: string, pattern: '^[a-z0-9][a-z0-9._-]*$', maxLength: 128 }
                version: { type: string, minLength: 1, maxLength: 128 }
                last_tag: { type: string, maxLength: 256 }
                operator_context: { type: string, maxLength: 2000 }
                commands:
                  type: object
                  required: [prepare, publish, verify]
                  additionalProperties: false
                  propertyNames: { enum: [prepare, publish, verify] }
                  patternProperties:
                    '^(prepare|publish|verify)$':
                      type: object
                      required: [command, args, cwd, timeout_ms, env]
                      additionalProperties: false
                      properties:
                        command: { type: string, minLength: 1, maxLength: 2000 }
                        args: { type: array, maxItems: 63, items: { type: string, minLength: 1, maxLength: 2000 } }
                        cwd: { type: string, minLength: 1, maxLength: 512 }
                        timeout_ms: { type: integer, minimum: 1000, maximum: 3600000 }
                        env:
                          type: object
                          required: [RUNX_RELEASE_PHASE, RUNX_RELEASE_VERSION, RUNX_RELEASE_CHANNEL, RUNX_RELEASE_PROFILE_ID]
                          additionalProperties: false
                          properties:
                            RUNX_RELEASE_PHASE: { type: string, enum: [prepare, publish, verify] }
                            RUNX_RELEASE_VERSION: { type: string, minLength: 1, maxLength: 128 }
                            RUNX_RELEASE_CHANNEL: { type: string, minLength: 1, maxLength: 128 }
                            RUNX_RELEASE_PROFILE_ID: { type: string, minLength: 1, maxLength: 256 }
                        command_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
        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
            schema:
              required: [schema, phase, status, profile_id, profile_digest, command_digest, channel, version, observed, evidence, errors]
              additionalProperties: false
              properties:
                schema: { const: runx.release.phase_result.v1 }
                phase: { type: string, enum: [prepare, publish, verify] }
                status: { type: string, enum: [ready, command_completed, verified, failed] }
                profile_id: { type: string, minLength: 1, maxLength: 256 }
                profile_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
                command_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
                channel: { type: string, minLength: 1, maxLength: 128 }
                version: { type: string, minLength: 1, maxLength: 128 }
                observed:
                  type: object
                  required: [status, version, channel, release_id, commit_ref, locators, checks]
                  additionalProperties: false
                  properties:
                    status: { type: string, maxLength: 64 }
                    version: { type: string, maxLength: 128 }
                    channel: { type: string, maxLength: 128 }
                    release_id: { type: string, maxLength: 512 }
                    commit_ref: { type: string, maxLength: 512 }
                    locators: { type: array, maxItems: 50, uniqueItems: true, items: { type: string, minLength: 1, maxLength: 2000 } }
                    checks:
                      type: object
                      maxProperties: 100
                      propertyNames: { minLength: 1, maxLength: 128 }
                      additionalProperties: { type: [string, boolean], maxLength: 500 }
                evidence:
                  type: object
                  required: [stdout_digest, stderr_digest, exit_code, timed_out, duration_ms, stdout_truncated, stderr_truncated]
                  additionalProperties: false
                  properties:
                    stdout_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
                    stderr_digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
                    exit_code: { type: integer }
                    timed_out: { type: boolean }
                    duration_ms: { type: integer, minimum: 0 }
                    stdout_truncated: { type: boolean }
                    stderr_truncated: { type: boolean }
                errors: { type: array, maxItems: 20, items: { type: object, maxProperties: 20 } }
        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_ref: $input.profile_ref
          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:
    default: true
    inputs:
      project_root: { type: string, required: true, description: Existing project directory relative to the Runx workspace. }
      profile_ref: { 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_ref: $input.profile_ref
          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_ref: $input.profile_ref
          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 resultPassed
Tested versionsha-42a278bb03df
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:ffcef1490c09198241f6628e32fc1b0e879213e882c83d8efab865fe1c593c28sha256:a93a1f2d998e9dbaa24d6121cd7b959c43ecbffb808321007a30277026eb898c

Package identity

Published revisionsha-42a278bb03df
Content digestsha256:42a278bb03df7787b45898100f787374a893964b1f1320641584416b640d20c1
SKILL.md digestsha256:1fa7978a5f4f426d2727fbe65c0f0ded1df99060b089ed1e4af625e2db099f31
Execution profile digestsha256:130422c8a3f15bd7471a87613f26e93500a2186abd0a941237e9f261e7eb35b4
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.4.12Content digest sha256:1e945f37da09d9474512dcfad3708eaf5c8997868af736701a0d1f152fbede25
  2. sha-264e40304896Content digest sha256:264e4030489679a2829696fae38992ff29ff8328c42c991e9ebe2e756966d210
  3. sha-83cb3cb21f17Content digest sha256:83cb3cb21f17d0b669f97311e41017da8f44c7afd91bc260aeae6d75f9ce0bc8
  4. sha-42a278bb03dfViewingContent digest sha256:42a278bb03df7787b45898100f787374a893964b1f1320641584416b640d20c1
  5. sha-8101daa3cb7aContent digest sha256:ac8a8dc87d2ac944246cb9d8f07fc0e9c62383eaa12141507ce3935d540d7d4e