Commit 596ba50
committed
fix(builder): resolve the agent builder's model against what's installed
Build Custom Agent hardcoded model_id="Qwen3.5-35B-A3B-GGUF" and fell back to
it even when nothing upstream resolved a real one — so the 35B requirement
came back by default on every machine that doesn't have it installed (no
`gaia init` profile installs it).
- BuilderAgent's registry entry now carries a real preference list
(BUILDER_PREFERRED_MODELS: 35B, then the two models actual init profiles
install) instead of models=[], so AgentRegistry.resolve_model picks up an
installed model before construction.
- Added a construction-time safety net (_select_builder_model) so the
hardcoded-35B fallback can never resurface even when a caller omits
model_id outright (CLI, tests, or the "nothing preferred is installed"
path) — it checks Lemonade's live model list and fails loudly, naming what
to install, instead of silently defaulting.
- Distinguishes "Lemonade unreachable" from "reachable but nothing usable
installed" — conflating the two was flagged as a real risk since both
previously collapsed to an empty list with no way to tell them apart.
- No "model quality may be reduced" messaging: the repo's own eval baselines
show the smaller model outperforming the 35B on tool selection, so no such
claim is substantiated.
Builds on the model-not-found (404) surfacing already on this branch.1 parent f00b174 commit 596ba50
4 files changed
Lines changed: 122 additions & 33 deletions
File tree
- src/gaia/agents
- builder
- tests/unit/agents
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
115 | 162 | | |
116 | 163 | | |
117 | 164 | | |
| |||
146 | 193 | | |
147 | 194 | | |
148 | 195 | | |
149 | | - | |
150 | 196 | | |
151 | 197 | | |
152 | 198 | | |
153 | 199 | | |
154 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
155 | 209 | | |
156 | 210 | | |
157 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
76 | 125 | | |
77 | 126 | | |
78 | 127 | | |
| |||
628 | 677 | | |
629 | 678 | | |
630 | 679 | | |
631 | | - | |
| 680 | + | |
632 | 681 | | |
633 | 682 | | |
634 | 683 | | |
| |||
1220 | 1269 | | |
1221 | 1270 | | |
1222 | 1271 | | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
| 1272 | + | |
| 1273 | + | |
1231 | 1274 | | |
1232 | | - | |
| 1275 | + | |
1233 | 1276 | | |
1234 | | - | |
| 1277 | + | |
1235 | 1278 | | |
| 1279 | + | |
1236 | 1280 | | |
1237 | 1281 | | |
1238 | | - | |
| 1282 | + | |
1239 | 1283 | | |
| 1284 | + | |
1240 | 1285 | | |
1241 | 1286 | | |
1242 | 1287 | | |
| |||
1258 | 1303 | | |
1259 | 1304 | | |
1260 | 1305 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1272 | 1311 | | |
1273 | 1312 | | |
1274 | 1313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
883 | | - | |
884 | | - | |
| 882 | + | |
885 | 883 | | |
886 | 884 | | |
887 | 885 | | |
| |||
0 commit comments