[Cleanup] Delete the remaining 527 lines of various_alt_swarms.py — dead duplicate of swarming_architectures.py
#1,831 opened on Aug 9, 2026
Repository metrics
- Stars
- (7,040 stars)
- PR merge metrics
- (Avg merge 3d 5h) (17 merged PRs in 30d)
Description
What
Delete the rest of swarms/structs/various_alt_swarms.py (527 lines remaining).
Background
The file originally held 1,103 lines. PR #1825 removed 576 of them (the 10 math-sequence classes: FibonacciSwarm, PrimeSwarm, PowerSwarm, LogSwarm, ExponentialSwarm, GeometricSwarm, HarmonicSwarm, StaircaseSwarm, SigmoidSwarm, SinusoidalSwarm). This issue tracks deleting the remainder.
What still remains (all dead)
- A second, colliding
BaseSwarmatvarious_alt_swarms.py:15-67, entirely unrelated toswarms/structs/base_swarm.py CircularSwarm,StarSwarm,MeshSwarm,PyramidSwarmOneToOne,Broadcast,OneToThree
Why it should go
-
Zero references repo-wide. Verified across
.pyand.mdinswarms/,tests/, andexamples/— module name and every exported class name. The module is not imported inswarms/structs/__init__.py, so it is unreachable through the public API. -
It is a worse duplicate of live code.
swarms/structs/swarming_architectures.py(360 lines) implementscircular_swarm,star_swarm,mesh_swarm,pyramid_swarm,one_to_one, andbroadcast— and that module is exported fromswarms/structs/__init__.pyand covered by tests. Every remaining class here re-implements one of those functions, worse. -
The
run()methods are broken. Each builds aresponses = []accumulator, appends to it throughout, and then never returns it — the caller receives whatever_format_return()produces and the accumulated list is discarded. -
The colliding
BaseSwarmname is a footgun. Two unrelated classes with the same name in the same package invite a wrong import.
Scope
- Delete
swarms/structs/various_alt_swarms.py - Confirm no
__init__.pyreferences need removing (there are none today) - Run the test suite
Context
From the code-waste audit (experimental/CODE_WASTE_AUDIT.md, section 1.1). Pure deletion, zero call-site changes.
🤖 Generated with Claude Code