FarmBot assertion steps fixed to run when the step runs
A contributor used Claude Code to fix FarmBot OS evaluating assertion Lua at compile time, which made assertions see state from before earlier steps had run.
Credits
- Source byline tencur Source ↗
Earliest dated source:
The full story
In FarmBot OS, the software for the open-source farming robot, assertion steps ran their Lua when a sequence was compiled rather than when the step ran. Because every step is compiled before the first executes, assertions saw stale state: a pin read after mounting a tool returned the value from before the mount.
A contributor used Claude Code to move the evaluation into the compiled step. They couldn't run the test suite locally and asked for CI confirmation.
How it was done
Tools
Themes
Loading themes…
Sources
From the maker's own write-up or code. We summarise what they report; we haven't tested it ourselves.
- FarmBot on GitHub: Evaluate Assertion Lua when the step runs, not at sequence compile time (fixes #1328)Source byline: tencurPublished
The pull request on GitHub.