After hx finishes, the profile gate runs. On red, hx gets the gate output (last 8000 bytes, plus the original task on first retry only when no session id is known) as a follow-up prompt on the same session (--session). At most max_retries (profile key, default 2, 0 = none) extra attempts, then the run ends as needs-human with the best attempt on the branch and the full gate output in <state>/runs/ID.gate.log.
Budgets (turns, tokens) now count over all attempts; wall_secs stays per attempt.
Every attempt is committed on the branch (orch: TITLE (attempt N)), so nothing is lost.
New run fields: attempts, turns, spent_tokens. Old state files still load (serde defaults).
Verification: sh tests/all.sh exit 0. New e2e cases: fake hx fixes on the second attempt (marker from the gate log is proven to reach hx in the retry prompt), fake hx never fixes (3 attempts, needs-human, gate.log written), max_retries = 0, budget spanning attempts.
Skipped: gate timeout (ponytail comment in run.rs; add gate_secs when a hanging gate shows up).
Closes #3
After hx finishes, the profile gate runs. On red, hx gets the gate output (last 8000 bytes, plus the original task on first retry only when no session id is known) as a follow-up prompt on the same session (`--session`). At most `max_retries` (profile key, default 2, 0 = none) extra attempts, then the run ends as `needs-human` with the best attempt on the branch and the full gate output in `<state>/runs/ID.gate.log`.
- Budgets (turns, tokens) now count over all attempts; wall_secs stays per attempt.
- Every attempt is committed on the branch (`orch: TITLE (attempt N)`), so nothing is lost.
- New run fields: attempts, turns, spent_tokens. Old state files still load (serde defaults).
Verification: `sh tests/all.sh` exit 0. New e2e cases: fake hx fixes on the second attempt (marker from the gate log is proven to reach hx in the retry prompt), fake hx never fixes (3 attempts, needs-human, gate.log written), max_retries = 0, budget spanning attempts.
Skipped: gate timeout (ponytail comment in run.rs; add `gate_secs` when a hanging gate shows up).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #3
After hx finishes, the profile gate runs. On red, hx gets the gate output (last 8000 bytes, plus the original task on first retry only when no session id is known) as a follow-up prompt on the same session (
--session). At mostmax_retries(profile key, default 2, 0 = none) extra attempts, then the run ends asneeds-humanwith the best attempt on the branch and the full gate output in<state>/runs/ID.gate.log.orch: TITLE (attempt N)), so nothing is lost.Verification:
sh tests/all.shexit 0. New e2e cases: fake hx fixes on the second attempt (marker from the gate log is proven to reach hx in the retry prompt), fake hx never fixes (3 attempts, needs-human, gate.log written), max_retries = 0, budget spanning attempts.Skipped: gate timeout (ponytail comment in run.rs; add
gate_secswhen a hanging gate shows up).