Repository navigation
Add counted repeat and value conditions on when - #164
Merged
Merged
Conversation
bitomule
force-pushed
the
worktree-t-mav-155-flow-control
branch
from
December 2, 2026 23:49
615cd9f to
b8e9aaf
Compare
bitomule
force-pushed
the
worktree-t-mav-155-flow-control
branch
4 times, most recently
from
December 3, 2026 10:07
6f0e45b to
192612f
Compare
bitomule
force-pushed
the
worktree-t-mav-155-flow-control
branch
from
December 3, 2026 10:17
192612f to
22e3f40
Compare
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 #155.
What changes
repeat: { times: N, do: [...] }runs a block a fixed number of times, so flows no longer unroll "do this three times" by hand.timesis 1-1000, or a binding such as${params.n}(a binding may be0, which runs nothing). Out-of-range or non-numeric values fail withrepeat_times_invalid.dofollows the same rules aswhen/whileNotVisible(noopenorexecchildren). Repeats nest and can holdwhensteps.iteration,child_step,child_action. The trail records every child asrepeat.<action>with itsiteration; skipped optional children are counted inskipped_children.whenacceptsequals/notEquals(exactly two strings each) to branch on a value bound byexecorextract, e.g.when: { equals: ["${exec.item.exists}", "false"] }.exec_binding_missing/exec_json_path_missing) rather than comparing as empty.visible/text/id/value/any, both must hold.mav flow lintaccepts awhenthat only has comparisons.skills/mav/SKILL.mdand anUnreleasedCHANGELOG entry document the syntax. No release is cut.The change is local: new
flow_control.go, small hooks inflow.go,flow_lint.goandcli.go(dispatch, header substitution, one call in thewhenexecutor).Validation
make checkpasses on the rebased tree.flow_control_test.gocover parsing and refusals, lint, run-time counting, nesting, bindings astimes, first-failure behavior, skipped optional children, branching on exec values, no screen read for value-onlywhen, combined conditions and missing bindings.