Skip to content

fix(loop): allow verify step to claim when loop step is running in verify_each mode#294

Open
paralizeer wants to merge 2 commits intosnarktank:mainfrom
paralizeer:auto/fix/verify-each-claim-block-20260308_014751
Open

fix(loop): allow verify step to claim when loop step is running in verify_each mode#294
paralizeer wants to merge 2 commits intosnarktank:mainfrom
paralizeer:auto/fix/verify-each-claim-block-20260308_014751

Conversation

@paralizeer
Copy link

Summary

The claimStep dependency check was blocking verify steps from being claimed when the loop step was in 'running' status, even though this is the expected flow for verify_each:

  1. Loop (fixer) completes → sets verify step to 'pending', loop stays 'running'
  2. Verify step should be able to claim → but dependency check blocked it!

This caused verify_each loops to stall after the first story completion (issue #293).

Fix

Modified the claimStep SQL query to add an exception: when a previous step is a loop with verify_each enabled that's currently 'running', allow subsequent pending steps (like verify steps) to be claimed.

Testing

  • All 162 tests pass
  • TypeScript type check passes
  • Build passes

Risk

Low - this only affects the dependency check logic for verify_each patterns, which was already broken


Auto-generated by Openclaw AutoDev

These scripts are required by the CI workflow (PR #9) but were missing
from main. Without them, CI fails with 'Missing script' errors.

- test: runs node --test on all test files
- typecheck: runs tsc --noEmit for TypeScript type checking

All 162 tests pass. TypeScript compiles without errors.

Auto-generated by Openclaw AutoDev
…rify_each mode

The claimStep dependency check was blocking verify steps from being claimed
when the loop step was in 'running' status, even though this is the
expected flow for verify_each: loop completes fixer → verify step runs.

The fix adds an exception to the NOT EXISTS clause: when a previous step
is a loop with verify_each enabled that's currently 'running', allow
subsequent pending steps (like verify steps) to be claimed.

This fixes issue snarktank#293 where verify_each loop stalls after first story
completion because the verifier cannot claim the verify step.

Tests: 162/162 pass
Typecheck: passes
@vercel
Copy link

vercel bot commented Mar 8, 2026

@paralizeer is attempting to deploy a commit to the Ryan Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant