Keywords / when … (transitions)
when … (transitions)
Rules evaluated after each observe. Control & transitions
Syntax
when it passes and the goal is met: stop
when it fails: reflect, then plan again
when blocked: ask a human
What it does
when … rules run after each observe. Conditions: it passes · it passes and the goal is met · it fails · blocked. Actions: stop · stop and warn · reflect · plan · act · observe · ask a human. Precedence is fixed: blocked > attempts > pass > fail.
Example
when it passes and the goal is met: stop
when it fails: reflect on which layer broke, then plan again
when blocked: ask a humantransition rules