You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(skillgym): require adjacency for freshness-sensitive ref/coordinate steps
assertSequentialCommandSteps only required each matcher at a later
line, so a plan could snapshot -i (minting @e30), run an unrelated
state-changing command like home, and still press the now-stale @e30
and pass. Same gap between screenshot and its raw-coordinate fallback.
Add a requireAdjacent flag to SequentialCommandStep and mark the four
freshness-sensitive pairs (snapshot -> press @e30, snapshot -> fill
@e31, screenshot -> raw-coordinate press, snapshot -> press @e35) as
adjacent, so an intervening state-changing command fails the case.
Split assertSequentialCommandSteps into findStepMatchIndex/
describeStepPosition to keep it under the Fallow Code Quality
complexity gate.
Verified locally with `npx fallow audit --base origin/main` (clean)
and eight synthetic finalOutput plans, including the reviewer's two
described staleness scenarios (stale ref after an intervening `home`,
stale coordinate after an intervening press between screenshot and
tap), which now fail as expected; the two valid orderings still pass.
0 commit comments