Commit d5364ba
committed
chore: pre-PR cleanup sweep — strip archeology, tighten comments, drop dead narrative
Net delta across 61 files: -1629 LOC (1069 added, 2698 deleted). No
behavioral changes, no test count delta — 4789 tests passing before
and after.
Three parallel cleanup lanes worked the branch diff against main:
Dataplane substrate (~-1500 LOC across coordinator, engine_startup,
permissions, models, codec, scripts, transitions, lattices, ids,
errors, crash, connection, the Lua scripts, and the co-located
tests). Stripped multi-paragraph rationales describing the design,
shrunk module docstrings, removed historical narrative ("previously",
"we now", "before this"), collapsed multi-line in-body comment
blocks to one-liners. The genuinely load-bearing WHY comments
stayed (the cjson directive fallback, the NOSCRIPT coalescing note,
the asyncio-only contract on OneShotFlag, etc.).
Migrated callers (~-570 LOC across redis_program_storage, locking,
state_manager, archive_storage, bandit, fetcher, stats, sync,
mutation_operator, dag_runner, selectors, strict_chat_openai). One
real code smell fixed in coevolution/stats.py: replaced
`for idx, (db, prefix) in enumerate(...)` with a stale dangling
`del db, prefix` that referenced no log line. Dual-path narration
("when wired, route through dp; when None, fall back...") collapsed
across the storage / archive / bandit dispatch sites. The
backwards-compat-shim apology comments tightened to one line each.
Tests + entry-point + configs (~-340 LOC across the test tree,
run.py, pyproject.toml, .gitignore). Test docstrings collapsed,
internal-slug "covers C3" / "T-A4" references stripped, narrative
about prior bypass behaviour replaced with what-the-test-asserts-now.
pyproject.toml banned-import policy block tightened; every TID251
per-file-ignore verified live (zero stale entries). .gitignore left
alone (no narrative to strip).
Code-smell pattern surfaced across 5 files (NOT fixed in this
sweep; flagged for a follow-up): the `if self._dataplane is not
None: return await self._<op>_via_dataplane(...)` dispatch shape
duplicates in redis_program_storage.atomic_state_transition,
fast_state_transition, batch_transition_state, batch_transition_by_ids,
and archive_storage.add_elite. A small dispatch_if_dataplane helper
or a coordinator-mixin would centralise the branch + assert. A
sibling pattern across prompts/fetcher.py, coevolution/stats.py,
coevolution/sync.py for lazy-init owned/borrowed DataPlane could
deduplicate via an OwnedDataPlane container.
Out-of-lane finding (not fixed): errors.all_error_types() omits
EliteInvalidError from its tuple but the test only checks subclassing,
not exhaustiveness. One-line fix; counted as behavior change; left
for a follow-up.1 parent cfee628 commit d5364ba
61 files changed
Lines changed: 1069 additions & 2698 deletions
File tree
- gigaevo
- database
- redis
- dataplane
- scripts
- tests
- evolution
- bus
- engine
- mutation
- storage
- strategies
- llm
- programs
- prompts
- coevolution
- runner
- tests
- config
- database
- entrypoint
- evolution
- bus
- integration
- llm
- prompts
- stages
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
279 | 276 | | |
280 | 277 | | |
281 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
26 | 15 | | |
27 | 16 | | |
28 | 17 | | |
| |||
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 71 | + | |
| 72 | + | |
86 | 73 | | |
87 | 74 | | |
88 | 75 | | |
| |||
91 | 78 | | |
92 | 79 | | |
93 | 80 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 81 | + | |
| 82 | + | |
100 | 83 | | |
101 | 84 | | |
102 | 85 | | |
| |||
114 | 97 | | |
115 | 98 | | |
116 | 99 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
126 | 106 | | |
127 | 107 | | |
128 | 108 | | |
| |||
149 | 129 | | |
150 | 130 | | |
151 | 131 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
159 | 135 | | |
160 | 136 | | |
161 | 137 | | |
| |||
176 | 152 | | |
177 | 153 | | |
178 | 154 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
190 | 159 | | |
191 | 160 | | |
192 | 161 | | |
| |||
247 | 216 | | |
248 | 217 | | |
249 | 218 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 219 | | |
256 | 220 | | |
257 | 221 | | |
| |||
271 | 235 | | |
272 | 236 | | |
273 | 237 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
281 | 241 | | |
282 | 242 | | |
283 | 243 | | |
| |||
355 | 315 | | |
356 | 316 | | |
357 | 317 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
368 | 322 | | |
369 | 323 | | |
370 | 324 | | |
| |||
374 | 328 | | |
375 | 329 | | |
376 | 330 | | |
377 | | - | |
378 | | - | |
379 | 331 | | |
380 | 332 | | |
381 | 333 | | |
| |||
0 commit comments