Fix Module 11 Part C hard-coded task index 1, which breaks on a carried-forward tasks.json #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Part C step 4 hard-codes
python cli.py done 1to mark "trash" done, then verifies "keeper remains, trash is gone."cli.py doneis 0-indexed (tlist.complete(int(argv[1]))), so this only works on a fresh two-item list. The lab uses the carried-forwardtasks-app, which has accumulated tasks since Module 1 (andtasks.jsonis local-only, not reset). With pre-existing tasks,done 1marks an OLD task, leaving "trash" pending, so clear-done removes the wrong task and the inline verification silently fails with no explanation.Evidence
modules/11-collaboration-humans-and-agents/README.md, Part C (~lines 323-325):cli.pydoneis 0-indexed viaint(argv[1])→self.tasks[index].Why it matters
A flagship synthesis lab asserts a fixed expected output against state that varies, making a correct implementation look broken.
Proposed change
python cli.py listfirst and use the index it shows for "trash" (do not assert a fixed index), ORPrefer option 1 (list-then-use-shown-index) — it is robust to carried-forward state.
Acceptance criteria
Affected files
modules/11-collaboration-humans-and-agents/README.mdReferences
Source finding F25 (realVotes 3/3).
Filed from an adversarial multi-agent course review (217 raw findings → 54 adversarially-verified survivors). Scoped for manual review; intentionally not auto-assigned to an agent.