oliver-zehentleitner / maity
runner tools: a version that failed its version answer makes a later check report rolled_back without any rollback
tsk-8kc15abe8rzm Proposed
Found while writing #2117's §15.16 contract text (tsk-b7441vw8w4tt). The problem predates that PR; it is the same on main.
What happens. ToolState.skipped holds two kinds of version:
- the versions a rollback left;
- the versions that failed their version answer after an install (cli/src/maity/runner/tools.py,
_take).
A later check that takes no version reports rolled_back when its target is in skipped and is newer than the version in use. So a runner that never rolled back can report rolled_back, because its target once failed the version answer. docs/api.md §15.16 says rolled_back comes "after a rollback", and that is not strictly true in this case.
To decide. Choose one:
- Keep the two kinds apart, for example a separate
failedlist, or a reason per skipped version, so that only a version a rollback left givesrolled_back. A failed answer then givesfailedwith its reason, orcurrentwith a note. - Or state the second case in §15.16. That is a contract change, with its own handling.
Scope. cli/src/maity/runner/tools.py, its tests, and possibly §15.16. Not urgent; outside the launch scope.