Commit 78632c7
committed
[bugf][swarm-router][drop "auto" from SwarmType, which had no factory entry (kyegomez#2057)]
"auto" was a member of the SwarmType Literal but absent from
_initialize_swarm_factory, so reliability_check accepted it at construction and
the first run() raised. A caller reading the type hint, or an IDE completing
it, saw a legitimate option that always failed later.
Removed rather than implemented: the class docstring's supported list and its
factory-backed list both already exclude it, and there is no auto-selection
anywhere in the file. Construction now rejects it with the same message that
lists the valid types, which is what "AutoSwarmBuilder" already does.
CLAUDE.md advertised it in the swarm_type table and the choosing-a-structure
table; both now point at AutoSwarmBuilder.
test_run_with_auto asserted the old behaviour and failed on master. It now
pins that the value is absent from the Literal and rejected at construction.1 parent 7243327 commit 78632c7
3 files changed
Lines changed: 16 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
514 | 513 | | |
515 | 514 | | |
516 | 515 | | |
| |||
938 | 937 | | |
939 | 938 | | |
940 | 939 | | |
941 | | - | |
| 940 | + | |
942 | 941 | | |
943 | 942 | | |
944 | 943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
303 | 302 | | |
304 | 303 | | |
305 | 304 | | |
306 | | - | |
| 305 | + | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
485 | 481 | | |
486 | 482 | | |
487 | | - | |
488 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
| |||
0 commit comments