Autorun
End-to-end behavior of `roark auto`, including issue selection, claiming, gates, and PR publishing.
Last updated
roark auto --repo owner/repo --limit 1#Flow
- List open GitHub issues.
- Select issues with the ready label and no skip labels.
- Claim one issue by assigning the actor, applying the in-progress label, and posting a claim comment.
- Prepare the managed workspace and issue branch.
- Fetch issue context and dependency metadata.
- Run triage, planning, implementation, review, fix passes, and readiness.
- Apply the readiness gate.
- Run the verification gate.
- If verification fails and
maxFixPasseshas budget, repair through a fix pass, code refinement, numbered Review A/B, and readiness, then rerun verification. - On success, commit code changes and push the branch.
- A PR authoring agent submits a schema-validated draft from canonical workflow artifacts, the Git-derived changed-file list, and the authoritative verification result. Roark persists
pr-draft.json, deterministically renders the Markdown, and opens the PR withgh. - Reviewer-generated follow-up issue drafts are submitted as structured data. Roark renders and publishes them, then rerenders the PR body from
pr-draft.jsonwith their links and updates it directly. - On exhausted-budget or non-repairable failure, leave work uncommitted and post recovery information.
#Recommended posture
Keep --limit 1 while building trust. Roark is intentionally one-shot; use an external scheduler if you want periodic execution.
#Selection labels
The default ready label is ready-for-agent. The default skip set includes intake, paused, terminal, and lifecycle states such as needs-triage, needs-human, agent-in-progress, agent-failed, and agent-pr-opened.
See Label semantics for the full label reference.
#Safety boundaries
Autorun never merges PRs or closes issues. A human reviewer remains responsible for reviewing PRs and merging them.
#Useful commands
Preview selection:
roark auto --repo owner/repo --limit 1 --dry-runTarget one issue through the autorun path:
roark auto 123 --repo owner/repoInspect status after a background run:
roark status 123 --repo owner/repo#Next steps
- Use Quickstart before the first autorun.
- Use Scheduling and Operations runbook before repeated runs.
- Use Troubleshooting when selection is surprising.