E0059: task_stale_read
E0059 task_stale_read — a [task] handler uses a value read before a think().
A compile-time error of soma check, the checker of the Soma programming language (soma explain E0059).
The rule
A [task] handler that reads a slot before a think(), vote() or await and writes it after may write a stale value, because other requests can change the slot while the task waits. soma check 3.1.0 reports this as the warning W0014 rather than under E0059. Read the slot again (and re-check it) after the wait, before writing.
When you see it
This [task] lint is raised with its habit flag set, so soma check 3.1.0 always reports it as the warning W0014 (habit_warning), never under this code — in edition 2026 and in edition 2027 alike. No program makes soma check print it.