Repository navigation
Description
Deferred until lane PRs can be attributed and one stacking episode is observed (see Trigger). Do not pick this up before then.
Problem
/work-items:work-loop bounds work per item and per cycle, but not in total. Nothing stops the lane from opening more PRs while earlier ones still wait on a human. Kyle Mistele's control-loop talk describes loops that stacked up PRs while the team was away, duplicating work and conflicting. His fix: before any setup, a run checks for an open PR carrying its loop's label and shuts down if one exists ("No human reviewed the last output, so there's no reason to stack up even more work").
Current state:
userConfig(plugins/work-items/.claude-plugin/plugin.json:20-72) has the decompose-publish, dispatch-concurrency, lane-instance, item-cap, no-progress-threshold and in-flight-stale-days keys. None counts open PRs or review state.- Per-item exclusion of candidates with an open closing PR:
work-loop/SKILL.md:346-369. - The adaptive per-cycle cap adapts on machine verdicts, not on human review:
work-loop/SKILL.md:398-422.
The trigger cannot be observed today
On 2026-10-10 the repository had 43 open PRs (27 drafts, 16 ready; read-only gh pr list). None carries a lane label, no body names the work loop, and lane branches use the same <type>/<N>-<slug> shape as interactive work (work/SKILL.md:187). Lane PRs cannot be told apart from the maintainer's own, so an episode would go unseen.
Related, not a duplicate: #4588's Impact paragraph says that while the promotion seam returns no qualified read, the merge lane runs --merge human-only, "so lane output accumulates as open PRs". That is the condition this ceiling targets.
Evidence
- Source: the video digest of Dexter Horthy's "Fighting Code Slop" (menu item 17), drawing on Mistele's "Loop Engineering from First Principles" (talk 15:05-16:15; upstream
design-control-loopSKILL.mdPhase G;workflow-template.yml:55-63). Talk-only practice (T2), no outcome data. - Digest record (private repository): menu item 17, questions Q7, control-loop companion, "Flow control" row, stress test, HIGH finding on item 17.
Trigger
Two steps, the second gated on the first:
- Can run now (questions Q7): a one-time read-only check of the open PRs. Match their closing issues against items the lane claimed, and find which sat as C4/C5 or held across several cycles. This attributes lane PRs and may show that the episode has already happened.
- Ship gate: one observed episode of lane PRs stacking up unreviewed, the same evidence rule as other standing additions (
docs/plugin-philosophy.md:956).
Suggested change (once triggered)
- An attribution rule first: for example, open PRs whose closing issue this lane claimed. The in-flight precondition already queries those (
work-loop/SKILL.md:346-369). - A
/work-items:work-loopuserConfigceiling. When the count of the lane's open PRs awaiting human review reaches it, the cycle becomes a held cycle that neither claims nor dispatches, and the no-progress counter holds, as it already does under the rate-limit hold (docs/conventions/loop-lane/README.md:664-674). - Define "awaiting human review" by merge rung. Under an effective
c3-autonomousrung it is the lane's open PRs the merge lane cannot merge (C4/C5 and held PRs). Under--merge human-onlyit is all of them.
Open design question for whoever picks this up: does the ceiling belong in the loop-lane convention's invariants, or in the worker lane alone?
- Effort / risk: medium / low.
Acceptance criteria
- Lane PRs are attributable by a stated rule.
- The issue cites the observed stacking episode.
- Reaching the ceiling produces a held cycle that does not advance the no-progress counter.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Activity
github-actions commentedon Oct 10, 2026
Thanks for the report. Automated triage handed this issue to a maintainer.
Automated triage. A maintainer reviews it.
kyle-sexton commentedon Oct 13, 2026
Decision recorded. The owner approved applying independently verified recommendations on 2026-10-12.
Basis: feat(work-items): cap the work loop's open PRs awaiting human review (deferred until lane PRs are attributable) #6801 body 'Can run now (questions Q7)'; PR chore(source-control): lower babysit_loop_merge to c2-mechanical #7305 body ('every loop-lane copy-block already passes --merge human-only'); babysit-loop: wire inline promotion evidence into the CI pr-merge lane #4588 still OPEN (promotion seam); plugins/work-items/skills/work-loop/SKILL.md:346-369 (in-flight precondition queries closing PRs)
Wants a userConfig ceiling that holds a /work-items:work-loop cycle while the lane's open PRs await human review, gated on attributing lane PRs and one observed stacking episode. Step 1 (a read-only attribution check of open PRs) can run now; nothing on main attributes lane PRs or caps them yet.
Verification notes:
Verified by an independent fresh-context check (confirmed, risk low): gh issue view 6801 Trigger section: step 1 'Can run now (questions Q7)' read-only check; origin/main plugins/work-items/skills/work-loop/SKILL.md:346-369 (in-flight precondition, open closing PR exclusion); PR #7305 body: 'every loop-lane copy-block already passes --merge human-only'; #4588 OPEN (REOPENED); PR #7338 merged, adds lane write identity; git grep merge: in docs/conventions/pr-pipeline.yaml on origin/main: none
Admission to an agent lane stays with the work-class rules and owner ratification.
kyle-sexton commentedon Oct 13, 2026
Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: read-only. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.
kyle-sexton commentedon Oct 17, 2026
Admitted in owner batch A1 (mechanical).
1 remaining item
melodic-automation-lanes commentedon Oct 17, 2026
The work-resolve-issue lane did not start this issue: it needs a person to make it clearer first.
Why, in the run's own words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/39043277488
To retry, answer the question here, remove
needs-humanand addagent-readyagain.kyle-sexton commentedon Oct 17, 2026
Owner decision 2026-10-17: parked. The lane's hand-back was correct; this stays needs-human until the owner takes it up.
kyle-sexton commentedon Oct 26, 2026
This was generated by AI.
Closing as superseded by merged work. The issue lane now pauses once held lane pull requests (needs-human, do-not-merge, or a human-merge hold) reach
wip.held-cap: 10(docs/conventions/pr-pipeline.yamllines 806-816 on main), delivered by #8211 and #8967; the owner set that cap on 2026-10-21. That is the stacking this issue guards against, for the lane that runs here. The local/work-items:work-loopskill has no such cap: reopen if a local loop lane is seen stacking pull requests, which was this issue's own ship trigger.kyle-sexton commentedon Oct 31, 2026
Reopening into the After zero milestone. This was closed completed as superseded, but the local work-loop still has no open-PR cap; the CI cap covers only the lanes. The owner parked this on 2026-10-17, which is not a close.
kyle-sexton commentedon Nov 2, 2026
Gate check 2026-11-01: still gated. The issue's ship trigger has not been observed: one episode of a local
/work-items:work-looprun stacking unreviewed pull requests. The CI lanes are capped bywip.held-cap: 10indocs/conventions/pr-pipeline.yaml. The local work-loop skill still has no open-PR ceiling. This stays in After zero, parked per the owner's 2026-10-17 decision. Pick it up when a local loop run is seen stacking pull requests, and cite that episode here (acceptance criterion 2).This was generated by AI.
kyle-sexton commentedon Nov 5, 2026
Closed at the owner's direction (2026-11-05, hub session): deferred After zero work closes now and is rediscovered and reopened when it is needed.