GitHub Issue to PR

Implement one scafld-governed repository issue with normal host tools, prove the tested change through its finalize wall, and optionally publish the exact pull request through scoped provider authority with readback.

You’re reading version sha-67272da3d6e9. Go to the current version

Overview

Turn one issue into a tested change and, when authorized, a verified pull request. Use the repository's normal development workflow. Runx owns evidence continuity and the consequential publication boundary; it does not replace the host agent's editor, shell, Git, tests, or repository judgment.

In the manual

Runners

  • finalize-local
  • from-evidence
  • github-issue-to-pr
  • host
  • publish
  • pull-request
  • resume
  • verify

Declared by its execution profile. Read the profile

SKILL.md

GitHub Issue to PR

Turn one issue into a tested change and, when authorized, a verified pull request. Use the repository's normal development workflow. Runx owns evidence continuity and the consequential publication boundary; it does not replace the host agent's editor, shell, Git, tests, or repository judgment.

Scope

Use this runner for work the repository actually governs with scafld: essential architecture, execution, security, persistence or cross-package contract changes, or work explicitly placed under that lifecycle by the operator. Read the repository's current instructions before choosing it. The receipt-verification wall is part of this skill's executable contract.

For ordinary UI, copy, documentation and routine fixes, use normal host editing and focused checks, then the selected GitHub operation for publication. Do not create a scafld lifecycle merely to satisfy this package, and do not invent a finalization receipt. Task size or file count alone does not make work governed.

Direct operator flow

  1. Name the repository as an exact owner/name. Never infer the target from an available grant.
  2. Read through the GitHub instance selected here: the signed-in gh session (runx connector use github --session) or a stored token.
  3. Run one preflight before work: issue identity, repository permission, branch state, required tools, requested outcome, and publication authority.
  4. Investigate, edit, and test with the host agent's ordinary tools. Do not manufacture Runx answer files between normal coding steps.
  5. Complete the repository-required independent review and call scafld finalize exactly once after the change and tests are ready. Preserve its workspace-scoped receipt path, exact target commit, and contract digest in host_result. Runx verifies that receipt with the scafld CLI on this host (scafld/receipt.verify) and checks its verdict, commit, contract and open blockers; host-authored status strings are not proof.
  6. If PR publication is not authorized, return the tested/finalized result and stop. Do not silently downgrade the work to a plan.
  7. If publication is authorized, pass the exact host_result to publish. Runx pushes the exact commit to the requested branch (github/branch.push, never forced, read back from GitHub), reuses the one open pull request for that branch or opens one (github/pullrequest.open, read back), and completes only when the pull request's head is the tested commit. Notifications, feeds, issue comments, and documentation sync are optional downstream skills.

Reuse in chains

  • from-evidence accepts runx.issue_to_pr.issue_evidence.v1 and skips GitHub discovery and issue read.
  • resume accepts both prior issue evidence and a completed runx.issue_to_pr.host_result.v1; it does not repeat host work or finalize.
  • verify verifies the signed scafld receipt against the exact commit and contract without publishing anything.
  • finalize-local verifies the completed host result and returns it without a remote mutation.
  • publish verifies the completed host result, publishes its exact Git ref, and creates or recovers the authorized PR with readback.
  • Preserve the same idempotency key across pause, retry, and resume. An uncertain PR creation never gets a new key.

Host work contract

The github-issue-to-pr-host-work act performs normal repository work and returns:

yaml
host_result:
  schema: runx.issue_to_pr.host_result.v1
  status: completed | blocked | failed
  repository: owner/name
  issue_number: string
  repo_root: workspace-relative-or-absolute-path
  branch: string
  commit: full-git-object-id
  files: [relative/path]
  tests:
    - command: string
      status: passed | failed
      evidence: string
  finalization:
    receipt_path: workspace-relative-path
    contract_digest: sha256:...
  publication:
    decision: hold | ready
    title: string
    body: string
    head: string
    base: string
    draft: boolean
    idempotency_key: string
  errors: [string]

Do not claim completed without a real edit/test outcome and one successful finalize result. Do not claim published from a branch push, API acknowledgement, or draft packet; only independent PR readback closes that state.

Stop conditions

  • Wrong or ambiguous repository: stop with one target-resolution blocker.
  • No GitHub instance selected: return the exact runx connector use github --session or runx connector use github --credential token handoff; do not cycle through unrelated skills.
  • Dirty or conflicting branch state: stop before mutation and preserve the evidence already gathered.
  • Failed tests or failed/stale finalize: return blocked or failed, never succeeded.
  • Missing publication authority: retain the tested finalized change locally and stop before PR creation.
  • Provider failure after admission: preserve the grant reference, idempotency key, finalization evidence, and mutation recovery state. Resume at publication; do not repeat issue discovery, coding, tests, or finalize.

Published execution profile

The execution profile published with sha-67272da3d6e9, shown as its exact bytes.

Runners
  • finalize-local
  • from-evidence
  • github-issue-to-pr
  • host
  • publish
  • pull-request
  • resume
  • verify
Profile digestsha256:f869c5a6aef55a20f3b1e080ab011cce719b1692af0421e647dadf7adf2159e6
skill: github-issue-to-pr
version: "0.4.11"

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

harness:
  files:
    - fixtures/bin/gh
    - fixtures/bin/git
    - fixtures/bin/scafld
    - fixtures/scafld-pass.json
    - fixtures/support/composed.graph
  cases: []

input_definitions:
  repository:
    type: string
    required: true
    description: Exact GitHub repository as owner/name.
    schema:
      pattern: '^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$'
  issue_number:
    type: string
    required: true
    description: Positive GitHub issue number.
    schema: { pattern: '^[1-9][0-9]*$' }
  objective:
    type: string
    required: false
    description: Bounded desired outcome; the issue remains the source evidence.
  issue_evidence:
    type: json
    packet: runx.issue_to_pr.issue_evidence.v1
    required: true
    description: Prior typed issue evidence; supplying it skips provider discovery and read.
  host_result:
    type: json
    packet: runx.issue_to_pr.host_result.v1
    required: true
    description: Tested host change, exact commit, and the workspace-scoped signed receipt produced by one scafld finalize call.

connectors:
  github:
    operations: [issue.read, branch.push, pullrequests.list, pullrequest.open]
  scafld:
    operations: [receipt.verify]
runners:
  github-issue-to-pr:
    default: true
    inputs:
      repository: { definition: repository }
      issue_number: { definition: issue_number }
      objective: { definition: objective }
    result_from: [host]
    steps:
      - id: read-issue
        operation: github/issue.read
        input:
          repository: $input.repository
          number: $input.issue_number

      - id: bind-issue-evidence
        inputs:
          requested_repository: $input.repository
          requested_issue_number: $input.issue_number
          provider_operation: $steps.read-issue.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: normalizeIssueEvidence }
        outputs:
          issue_evidence: object
        artifacts:
          named_emits: { issue_evidence: issue_evidence }
          packets: { issue_evidence: runx.issue_to_pr.issue_evidence.v1 }

      - id: host
        skill: .
        runner: host
        inputs:
          objective: $input.objective
          issue_evidence: $steps.bind-issue-evidence.issue_evidence

  from-evidence:
    inputs:
      issue_evidence: { definition: issue_evidence }
      objective: { definition: objective }
    result_from: [host]
    steps:
      - id: host
        skill: .
        runner: host
        inputs:
          objective: $input.objective
          issue_evidence: $input.issue_evidence

  host:
    inputs:
      issue_evidence: { definition: issue_evidence }
      objective: { definition: objective }
    result_from: [finalize-published, finalize-local, finalize-blocked]
    steps:
      - id: host-work
        inputs:
          objective: $input.objective
          issue_evidence: $input.issue_evidence
        agent: { role: builder, task: github-issue-to-pr-host-work }
        outputs:
          host_result: object
        artifacts:
          named_emits: { host_result: host_result }
          packets: { host_result: runx.issue_to_pr.host_result.v1 }

      - id: admit-host-result
        inputs:
          issue_evidence: $input.issue_evidence
          host_result: $steps.host-work.host_result
        tool: { module: github-issue-to-pr.mjs, export: admitHostResult }
        outputs:
          host_admission: object

      - id: verify-publication
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        operation: scafld/receipt.verify
        input:
          receipt_path: $steps.host-work.host_result.finalization.receipt_path
          target: $steps.host-work.host_result.commit
          repo_root: $steps.host-work.host_result.repo_root

      - id: publish-pr
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        skill: .
        runner: pull-request
        inputs:
          host_result: $steps.host-work.host_result
      - id: finalize-published
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        inputs:
          host_result: $steps.host-work.host_result
          receipt_verification: $steps.verify-publication.provider_operation
          publication_result: $steps.publish-pr.publication
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

      - id: verify-local
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: finalized_local
        operation: scafld/receipt.verify
        input:
          receipt_path: $steps.host-work.host_result.finalization.receipt_path
          target: $steps.host-work.host_result.commit
          repo_root: $steps.host-work.host_result.repo_root

      - id: finalize-local
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: finalized_local
        inputs:
          host_admission:
            path: finalized_local
            errors: []
          host_result: $steps.host-work.host_result
          receipt_verification: $steps.verify-local.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

      - id: finalize-blocked
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: blocked
        inputs:
          host_result: $steps.host-work.host_result
          host_admission: $steps.admit-host-result.host_admission
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

  resume:
    inputs:
      issue_evidence: { definition: issue_evidence }
      host_result: { definition: host_result }
    result_from: [finalize-published, finalize-local, finalize-blocked]
    steps:
      - id: admit-host-result
        inputs:
          host_result: $input.host_result
          issue_evidence: $input.issue_evidence
        tool: { module: github-issue-to-pr.mjs, export: admitHostResult }
        outputs:
          host_admission: object

      - id: verify-publication
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        operation: scafld/receipt.verify
        input:
          receipt_path: $input.host_result.finalization.receipt_path
          target: $input.host_result.commit
          repo_root: $input.host_result.repo_root

      - id: publish-pr
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        skill: .
        runner: pull-request
        inputs:
          host_result: $input.host_result
      - id: finalize-published
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: publish
        inputs:
          host_result: $input.host_result
          receipt_verification: $steps.verify-publication.provider_operation
          publication_result: $steps.publish-pr.publication
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

      - id: verify-local
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: finalized_local
        operation: scafld/receipt.verify
        input:
          receipt_path: $input.host_result.finalization.receipt_path
          target: $input.host_result.commit
          repo_root: $input.host_result.repo_root

      - id: finalize-local
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: finalized_local
        inputs:
          host_result: $input.host_result
          host_admission:
            path: finalized_local
            errors: []
          receipt_verification: $steps.verify-local.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

      - id: finalize-blocked
        when:
          value: $steps.admit-host-result.host_admission.path
          equals: blocked
        inputs:
          host_result: $input.host_result
          host_admission: $steps.admit-host-result.host_admission
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

  verify:
    inputs:
      host_result: { definition: host_result }
    result_from: [verify-finalization]
    steps:
      - id: verify-finalization
        operation: scafld/receipt.verify
        input:
          receipt_path: $input.host_result.finalization.receipt_path
          target: $input.host_result.commit
          repo_root: $input.host_result.repo_root

  finalize-local:
    inputs:
      host_result: { definition: host_result }
    result_from: [finalize]
    steps:
      - id: verify
        skill: .
        runner: verify
        inputs:
          host_result: $input.host_result

      - id: finalize
        inputs:
          host_result: $input.host_result
          host_admission:
            path: finalized_local
            errors: []
          receipt_verification: $steps.verify.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

  publish:
    inputs:
      host_result: { definition: host_result }
    result_from: [finalize]
    steps:
      - id: verify
        skill: .
        runner: verify
        inputs:
          host_result: $input.host_result

      - id: publish-pr
        skill: .
        runner: pull-request
        inputs:
          host_result: $input.host_result
      - id: finalize
        inputs:
          host_result: $input.host_result
          receipt_verification: $steps.verify.provider_operation
          publication_result: $steps.publish-pr.publication
        tool: { module: github-issue-to-pr.mjs, export: finalizeIssueToPr }
        outputs:
          issue_to_pr_result: object
        artifacts:
          named_emits: { issue_to_pr_result: issue_to_pr_result }
          packets: { issue_to_pr_result: runx.issue_to_pr.result.v1 }

  pull-request:
    inputs:
      host_result: { definition: host_result }
    result_from: [settle-opened, settle-existing]
    steps:
      - id: push
        operation: github/branch.push
        idempotency_key: $input.host_result.publication.idempotency_key
        input:
          repository: $input.host_result.repository
          branch: $input.host_result.publication.head
          commit: $input.host_result.commit

      - id: plan
        inputs:
          host_result: $input.host_result
        tool: { module: github-issue-to-pr.mjs, export: planPullRequest }
        outputs:
          pull_request_plan: object

      - id: find
        operation: github/pullrequests.list
        input: $steps.plan.pull_request_plan.find

      - id: choose
        inputs:
          host_result: $input.host_result
          found: $steps.find.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: choosePullRequest }
        outputs:
          pull_request_choice: object

      - id: open
        when:
          value: $steps.choose.pull_request_choice.action
          equals: open
        operation: github/pullrequest.open
        idempotency_key: $input.host_result.publication.idempotency_key
        input: $steps.choose.pull_request_choice.open

      - id: settle-opened
        when:
          value: $steps.choose.pull_request_choice.action
          equals: open
        inputs:
          host_result: $input.host_result
          pushed: $steps.push.provider_operation
          choice: $steps.choose.pull_request_choice
          opened: $steps.open.provider_operation
        tool: { module: github-issue-to-pr.mjs, export: settlePullRequest }
        outputs:
          publication: object
        artifacts:
          named_emits: { publication: publication }

      - id: settle-existing
        when:
          value: $steps.choose.pull_request_choice.action
          not_equals: open
        inputs:
          host_result: $input.host_result
          pushed: $steps.push.provider_operation
          choice: $steps.choose.pull_request_choice
        tool: { module: github-issue-to-pr.mjs, export: settlePullRequest }
        outputs:
          publication: object
        artifacts:
          named_emits: { publication: publication }

Published package and test evidence.

This exact version passed its recorded harness run: 6 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-67272da3d6e9
Recorded result6 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:b875a6e2a911556ee6345d6aecaa1c94b065042cc67097d2c49d28dab0c6be17sha256:bac3cf34a5873d19198a2242e6f3ba945f8f4081a452224b410d6335623c7549sha256:1d7773399e753b696b5cdd2918585b1e7916b08c36abe50c3690b360476bf494sha256:26c4289445156b34516701ccb0e6a54529937639aed51b94d98dd196323b5d9csha256:d55a0ce4d27cf0d8c39999c0a6386729fbadda7d28117bbc9c4f065ee7c638d2sha256:a8c1aadcf83ad169ca0d0b561725a8d8777b375b9ee74771398ef9202bacc3b5

Package identity

Published revisionsha-67272da3d6e9
Content digestsha256:67272da3d6e99834e0f0956d90c08be84c4a35f0faf86726bf17a213464a9bf8
SKILL.md digestsha256:1e2d15f4580a18b5698e77334638ac990cc9937d998ed83fb17a8d296bc1210b
Execution profile digestsha256:f869c5a6aef55a20f3b1e080ab011cce719b1692af0421e647dadf7adf2159e6
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 18 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.4.13Content digest sha256:06013dabfe61e4b947e3f01d86661a9e68c428503a481f3f2051ea9cc739aa80
  2. sha-67272da3d6e9ViewingContent digest sha256:67272da3d6e99834e0f0956d90c08be84c4a35f0faf86726bf17a213464a9bf8