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 0.4.13. 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-localfrom-evidencegithub-issue-to-prhostpublishpull-requestresumeverify
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
- Name the repository as an exact
owner/name. Never infer the target from an available grant. - Read through the GitHub instance selected here: the signed-in
ghsession (runx connector use github --session) or a stored token. - Run one preflight before work: issue identity, repository permission, branch state, required tools, requested outcome, and publication authority.
- Investigate, edit, and test with the host agent's ordinary tools. Do not manufacture Runx answer files between normal coding steps.
- Complete the repository-required independent review and call
scafld finalizeexactly once after the change and tests are ready. Preserve its workspace-scoped receipt path, exact target commit, and contract digest inhost_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. - If PR publication is not authorized, return the tested/finalized result and stop. Do not silently downgrade the work to a plan.
- If publication is authorized, pass the exact
host_resulttopublish. 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-evidenceacceptsrunx/github-issue-to-pr.issue_evidence.v1and skips GitHub discovery and issue read.resumeaccepts both prior issue evidence and a completedrunx/github-issue-to-pr.host_result.v1; it does not repeat host work or finalize.verifyverifies the signed scafld receipt against the exact commit and contract without publishing anything.finalize-localverifies the completed host result and returns it without a remote mutation.publishverifies 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:
host_result:
schema: runx/github-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 --sessionorrunx connector use github --credential tokenhandoff; 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 0.4.13, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:d6c1183611d6e0d47d8ed28b20c51dbaba12544d3c4ad24383b4c809a4386c1d |
skill: github-issue-to-pr
version: "0.4.13"
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/github-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/github-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:
description: Read one issue, implement and test the change with your own tools, prove it through scafld's finalize, and publish the pull request when that is authorized.
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/github-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:
description: Implement an issue from issue evidence you already hold, skipping the GitHub read.
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:
description: The implementation turn on its own, doing the work, verifying the finalize receipt, then publishing or holding. The default and from-evidence runners call it.
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/github-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/github-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/github-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/github-issue-to-pr.result.v1 }
resume:
description: Continue from a completed host result and its issue evidence, verifying and publishing without repeating the work.
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/github-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/github-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/github-issue-to-pr.result.v1 }
verify:
description: Verify a scafld finalize receipt against its exact commit and contract, publishing nothing.
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:
description: Verify a completed host result and return it, changing nothing on GitHub.
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/github-issue-to-pr.result.v1 }
publish:
description: Verify a completed host result, push its exact commit, and open or reuse its pull request, read back.
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/github-issue-to-pr.result.v1 }
pull-request:
description: Push an exact commit to a branch and open, or reuse, the one pull request for it, read back until its head is that commit.
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 result | Passed |
|---|---|
| Tested version | 0.4.13 |
| Recorded result | 6 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:921c948dbff3b950a8ac4270052ca6d2feb645a2de066236de6b498c46722ec9sha256:4855fe0c596295fb74ad46c14c9fb825c07c40ba4a92e70d0a86afc37621aabcsha256:8c6f81dfe218e86f6e9319cb7d69f6f48f6ece7bd8299ef9e5a5cd841a72c06dsha256:8d5b8badca2806e9a7e25be948fcb072a3c164888171e3b8b036bd5d375b2772sha256:d1545f9872a6d8891f6b5b7878955684901b28a538c29fdc151f341e1b70e62dsha256:5c95b79e6b7a7025af6b38940548cb192f9887d22f9041ff971d59128873ded9Package identity
| Published revision | 0.4.13 |
|---|---|
| Content digest | sha256:06013dabfe61e4b947e3f01d86661a9e68c428503a481f3f2051ea9cc739aa80 |
| SKILL.md digest | sha256:dbd7d22e110ed7eae8ed2c7ffbb03110954cf61ba85dafe0a070dfcf8587f920 |
| Execution profile digest | sha256:d6c1183611d6e0d47d8ed28b20c51dbaba12544d3c4ad24383b4c809a4386c1d |
| 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.13ViewingContent digest sha256:06013dabfe61e4b947e3f01d86661a9e68c428503a481f3f2051ea9cc739aa80sha-67272da3d6e9Content digest sha256:67272da3d6e99834e0f0956d90c08be84c4a35f0faf86726bf17a213464a9bf8