Skip to content

#76: Re-queue failed sandboxes: handle SandboxFailed with bounded retry#77

Open
lsfera wants to merge 1 commit into
mainfrom
agent/issue-76
Open

#76: Re-queue failed sandboxes: handle SandboxFailed with bounded retry#77
lsfera wants to merge 1 commit into
mainfrom
agent/issue-76

Conversation

@lsfera

@lsfera lsfera commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Closes #76

Implemented autonomously by the AFK orchestrator in an isolated, git-isolated sandbox.

Commits: d12f623

SandboxFailed events (sandbox throw or 0-commit outcome) are now handled
by the reducer instead of silently dropping the issue. The reducer re-labels
the issue ready-for-agent up to Policy.maxRetries times (default 2) per run,
then emits a Comment action so the orchestrator posts an exhaustion comment
and leaves the issue unlabelled for a human — never an infinite retry loop.

State gains failedAttempts (per-issue failure count, optional, default {}).
Policy gains maxRetries (optional, default 2). Action gains Comment.
main.ts dispatches SandboxFailed on both the throw path and the 0-commit
path, increments failedAttempts, and executes the resulting Relabel or
Comment action. The 0-commit comment previously in processIssue is removed
in favour of the reducer-driven exhaustion comment.

Adds 6 new reducer tests; all 152 tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-queue failed sandboxes: handle SandboxFailed with bounded retry

1 participant