Commit 3392a3b
fix(runner): allow WorkflowRunner to use an explicit interpreter
The per-claim verifier runs verifier scripts under the interpreter running
Mimosa (sys.executable), where the verifier helper packages were installed.
It did so by overriding runner._python_cmd AFTER constructing WorkflowRunner.
But WorkflowRunner.__init__ validates that a pythonX.Y matching
RuntimeConfig.python_version (default "3.12") exists on PATH and raises
*before* that override runs. On any host without python3.12 on PATH
(e.g. a uv-managed 3.12 that isn't symlinked, with Mimosa itself on 3.13),
evaluation crashed with "Python 3.12 not available" — aborting the whole run
after claim extraction and verifier-spec generation had already completed.
Add RuntimeConfig.python_executable: when set, it short-circuits the
PATH/version resolver (after a --version smoke check), so the construction
check uses the chosen interpreter too. The verifier now passes
python_executable=sys.executable via the config instead of mutating
_python_cmd post-construction. PATH/version resolution is unchanged when
python_executable is unset.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 01e640f commit 3392a3b
2 files changed
Lines changed: 46 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
651 | 658 | | |
| 659 | + | |
652 | 660 | | |
653 | 661 | | |
654 | 662 | | |
655 | 663 | | |
656 | 664 | | |
657 | 665 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | 666 | | |
663 | 667 | | |
664 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
123 | | - | |
| 132 | + | |
124 | 133 | | |
125 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
126 | 139 | | |
127 | 140 | | |
128 | 141 | | |
129 | 142 | | |
130 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
131 | 151 | | |
132 | 152 | | |
133 | 153 | | |
| |||
144 | 164 | | |
145 | 165 | | |
146 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
147 | 182 | | |
148 | 183 | | |
149 | 184 | | |
| |||
0 commit comments