You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent bug-fix PRs left behind block comments that narrate the defect
they fixed -- four to seven lines of "it used to do X, which caused Y"
sitting above a one-line change. That history belongs in the PR
description and the commit, not in the source, where it has to be read
past on every future visit.
Each block is reduced to a single line that keeps the operative reason
and drops the archaeology:
- # Add completion percentage if loops are running.
- #
- # current_loop is 1-based and set at the *top* of each
- # iteration (hiearchical_swarm.py calls
- # update_loop(current_loop + 1)), so dividing by max_loops
- # reported 100% before the final loop's agents had run.
- # Count loops finished instead: the loop in progress is
- # current_loop, so current_loop - 1 are done.
+ # current_loop is 1-based, so count current_loop - 1 as finished.
17 blocks across 6 files, -72/+17 lines. Scope was picked by blaming
every run of three or more consecutive comment lines under swarms/ and
keeping only those authored by the last 25 commits on master.
Comments only -- no code, control flow, or behaviour is touched.
black and ruff clean; test_conversation.py and test_cron_job.py pass
(89 passed).
0 commit comments