Add an issue-to-PR runner with reproduction and verification gates

Aperta
#57 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cli, git, github, rust
Ambito
cli, devtools

Direzione di ricerca

The payload names no source files. Start by finding how the existing bash, test, verify, review and todo tools and sessions are wired together, then decide where an lh issue entry point would sit. Design the reproduction gate and the refusal logic first, since the work is mostly orchestration. Done means the acceptance criteria in the issue hold, including refusing to open a PR when reproduction was never seen failing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: git area: workflows enhancement priority: P2

Problem

"Fix issue #123" is the most common real task, and the harness has no first-class path for it. The model may not fetch the issue or its comments, may skip reproduction, and may open a PR that claims a fix without a failing-then-passing test.

SWE-agent's loop and Codex's issue workflows both make reproduction and verification explicit. The harness already has the pieces (bash, test, verify, review, sessions), but not the orchestration or the refusal points.

Inspiration

  • SWE-agent architecture (ACI, reproduce, edit, verify).
  • OpenHands issue resolution.
  • Codex CLI and Claude Code issue-to-PR flows.
  • GitHub CLI for fetching the issue and opening the draft PR.

Proposal

Add lh issue <number|url> (or a workflow that uses the same steps):

  1. Fetch the issue body and comments; record the acceptance criteria verbatim.
  2. Reproduce with a test or command; store the failing output as evidence.
  3. Plan in todo; require the plan before the first edit.
  4. Implement in a branch or worktree.
  5. Run the reproduction again; it must pass. Run the surrounding suite.
  6. Self-review the diff with the code-review skill.
  7. Draft a PR with the issue link, root cause, fix, tests and residual risk.

Refuse to open the PR if reproduction was never observed failing or the reproduction still fails. Allow an explicit --no-repro override with a recorded reason.

Acceptance criteria

  • The issue body and comments are fetched and the acceptance criteria are quoted.
  • A missing reproduction blocks the PR unless overridden.
  • The reproduction is re-run after the fix and its result is recorded.
  • The draft PR links the issue and lists tests run.
  • Work happens on a branch or worktree, never the default branch.
  • A failed suite blocks the PR.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.