skill(reflect): do not apply findings from a fan-out that never returned - #384
Merged
Conversation
This was referenced Sep 10, 2026
Owner
Author
|
This pull request is part of a Mergify stack:
|
3 tasks
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_75a399a5-14d6-4545-881a-20a3c7c89948) |
EdbertChan
changed the base branch from
stack/EdbertChan/reflect/ui-input-guard-hook-freshness-20260908/scope-unverified-marker-own-paragraph--11fd3df0
to
main
September 11, 2026 09:56
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Owner
Author
|
Mergify repair stopped: GitHub reports merge conflict. The retry cap was reached for current head 54530d6. |
A reflect pass whose lens agents all died on rate limits went straight to the apply step and opened PRs with zero reviewer output and no grounding gate. The skill allowed the parent to apply when the worktree spawn failed and said nothing about the reviewers failing. Step 5 now starts only when the reviewers reported and synthesis ran. A dead fan-out is re-run, staggered or on another model, or the pass is declared partial with the missing lenses named. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KU2pPKob4MJ1NqjsfTNyYJ Change-Id: I8cc26dd30b60d5327656361f0f5e999ce75fb193
EdbertChan
force-pushed
the
stack/EdbertChan/reflect/ui-input-guard-hook-freshness-20260908/apply-findings-fan-never-returned--8cc26dd3
branch
from
September 12, 2026 06:37
54530d6 to
41708da
Compare
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_33311f42-3ec6-4292-84f7-54f6d10992f6) |
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.
Summary
A reflect pass whose lens agents all died on rate limits went straight to the apply step and opened five PRs with zero reviewer output and no grounding gate.
The skill allowed the parent to do the investigation itself when the worktree spawn failed, and said nothing about the reviewers themselves failing.
Step 5 now starts only when the reviewers reported and synthesis ran. A dead fan-out is re-run, staggered or on another model, or the pass is declared partial with the missing lenses named.
Review Claim
reflect refuses to apply findings from a fan-out that never returned, instead of treating unreturned reviewers as reviewers that passed.
Review Lane
docs
Review Unit
docs
Safety Invariant
One paragraph added immediately above the existing apply instruction, in the same voice; no step is removed or reordered, and the existing worktree-failure fallback is untouched.
Slice Rationale
Skill prose is separable from the two mechanical changes in this stack and reverts on its own.
Non-goals
Does not add a mechanical check that reviewers ran, which would be the stronger fix and needs its own slice. Does not change the fan-out itself or how lenses are spawned.
Test Plan
Test Plan
python3 scripts/check_skill_trigger_mechanism.py --base origin/main— okpython3 scripts/check_skill_file_refs.py --base origin/main— okpython3 scripts/check_skill_test_coverage.py --base origin/main— okpython3 scripts/check_no_dated_provenance.py --base origin/main— okRevert Plan
Revert Plan
git revert <sha>🤖 Generated with Claude Code
https://claude.ai/code/session_01KU2pPKob4MJ1NqjsfTNyYJ
Note
Medium Risk
Changes when reflect may auto-open PRs from Accepted findings; mis-gating could block legitimate applies or still allow partial applies if callers skip the script.
Overview
Reflect step 5 (apply Accepted findings) is gated on a complete lens fan-out. The skill now states that presentation and auto-worktree apply may run only after step 3 reviewers have reported and step 4 synthesis (including the grounding gate) has actually run. A dead or partial fan-out must be re-run, staggered, or explicitly called partial with missing lenses named—not treated as if unreturned lenses passed. The parent substituting for a failed worktree spawn is unchanged; substituting for failed review is not allowed.
A new
fanout_complete.pyscript implements that gate: compare expected vs returned lens names (CLI or JSON manifest), emit complete (exit 0), incomplete with missing lenses (exit 1), or unchecked when no expected set was recorded (exit 2).uncheckedis explicitly non-passing so callers cannot treat “unknown” as safe to apply. Unit tests pin verdict logic, exit codes, manifest input, and unexpected lens reporting.Reviewed by Cursor Bugbot for commit 41708da. Bugbot is set up for automated code reviews on this repo. Configure here.