Repository navigation
Failure limit: Pickup counts agent-failed issues, not Claims - #1585
Merged
Merged
Conversation
A Failed ticket run or Failed spec run that keeps its Claim labels its issue agent-failed, whatever started it; a held Self-merge, a Stop, a released Claim and a needs-info ending add nothing. A Pickup run counts open agent-failed issues against pickup.failure_limit (default 3), after taking the label off issues the Day shift handed back or took over; the Sweep clears it from closed issues and the next Claim takes it off. Pull requests waiting for review no longer hold Pickup back. An old pickup.limit is accepted and ignored, with a warning on stderr naming pickup.failure_limit, recorded in the Activity log once per change. ADR 0026 records the decision. Closes #1569
- Quiet skips still print a User config warning, such as an ignored pickup.limit, on stderr, once. - Every Claim ending goes through Claim::end; HeldClaim ends with an Ending, and a bug not reproduced ends with needs-info even after a Stop. - Share labels::joined, name pickup's clear_and_count_failures, and bind the Claim-stays result where it is read. - ADR 0026 and the glossary: taking over leaves no needs-triage, and a failed release gets no agent-failed. The guide notes Custom processes (#1583).
Brings in #1570: Pickup moves on to the next Ready issue when it loses a reservation. Resolved against the Failure limit: - src/pickup.rs: the module doc keeps both the agent-failed clearing and the search past unreservable issues; AtFailureLimit uses the shared write_numbers helper; #1570's tests expect the Failure limit gate's calls (CLOSED, CLOSED_FAILED, FAILED) in place of the Claim limit's. - docs/guide.md, site/docs/index.html: the skip paragraph takes #1570's wording for reserved or stale selections, with the Failure limit.
Brings in the Command limit (#1571, pass.command_limit) alongside this branch's Failure limit. Conflicts kept both: UserConfig carries pickup_failure_limit and command_limit, the ignored pickup.limit warning sits beside the pass.command_limit parser, and each side's tests stay. The guide, code navigation and generated site docs now say a Pass takes a slot at the Command limit, then counts agent-failed issues against the Failure limit, with no Claim limit left.
This was referenced Oct 29, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1569
Summary
A Pickup run no longer counts Claims. It counts the issues the factory failed on, up to the Failure limit (
pickup.failure_limit, default 3). A pull request waiting for review never counts. See ADR 0026.agent-failedoff.pickup.limitis accepted and ignored, with a warning namingpickup.failure_limit:User config warning: ….site/docs/index.html), README, GLOSSARY,docs/code-navigation.md, and the hand-written pages (site/index.html,site/how-it-works/,site/architecture/) now say Failure limit.Decisions:
Claim::end. This is open for triage in Failure limit: should a failed Custom process run label its issue agent-failed? #1583.Evidence
at the Claim limit. A failed run left onlyin-progress.After: a CLI test against the fake
gh, intests/pickup_run.rs:agent-failedtaken off and is not counted.tests/failed_run.rs:["in-progress", "agent-failed"], even when interrupted;architect_run,continuation,process,security_runandpickup_runto includeagent-failed.warning: pickup.limit is ignored…once. Tests:an_ignored_pickup_limit_is_warned_of_on_stderr_even_by_a_quiet_skipandwith_quiet_skips_a_pass_that_works_prints_an_ignored_pickup_limit_once_and_logs_it.claim,pickup,run,labels,logs,processesanddeliverypass (286).cargo clippy --all-targetsis clean.npm run docs:check --prefix siteexits 0.scripts/affected-tests mainstopped at its first step, the site browser tests (see below), so its Rust steps were run by hand on the final head:share_card,site_deploy,prompts_pageandcargo build --lockedpass.cargo test --no-fail-fastpasses everything except environment failures outside this change:socat is not on PATH, which voids every sandboxed Trial (sandbox::tests,trial,experiments,scoring, and abug_originsCodex limit test);tomllib(bug_originssettlement);consolescoring test that fails on lock timing under load and passes alone./opt/playwrightisn't writable. CI runs them.Merge Danger
Door: two-way
There is no data migration. The only GitHub change is a new
agent-failedlabel, which is created on first use and is harmless to leave.Blast Radius: scheduling
pickup.limitkeep working, with a warning.agent-failed, so they don't count until they fail again.Unaddressed findings
Standards
acted_onreturns strings (Primitive Obsession)": declined.acted_oninsrc/pickup.rshas one call site, and its two strings are the step wording that tests assert. An enum would add a type without removing any duplication.FailedRun::heldandfailed_run::is_holdname one predicate twice": declined.run.rsholds aFailedRunand asksheld(), anddelivery.rsholds ananyhow::Errorand asksis_hold. The first half, the full-path call, is fixed.Spec
agent-failed": declined because the Spec or the Day shift must decide it. Filed as Failure limit: should a failed Custom process run label its issue agent-failed? #1583 (needs-triage).src/processes.rs,HeldClaim::end(claim::Ending::Failed), and thetests/process.rsexpectation["in-progress", "agent-failed"].All other findings (S1–S5, S7, S9, P1, P3) were fixed.
Security review outcome
No unaddressed introduced findings.
Review coverage
site/docs/index.html.docs/guide.md. Generator:site/generate-docs.mjs, unchanged.npm run docs:check --prefix siteexits 0. Both reviewers confirmed the exclusion.src/labels.rs: the new helperlabels::joined, for S4.tests/stop.rsandtests/merge_run.rs: comments only, for P3.Built with claude 2.1.312 · claude-opus-5-5 · high