Add a .gitignore so Module 25 propose_pr's git add -A doesn't sweep __pycache__/scaffolding into the review diff
#25
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
propose_pr()runsgit add -Athen commits, so in the simulated path it commitsagent_demo.py,test_agent_demo.py, the copied orchestrator/issue files, AND__pycache__/*.pyc. The lab then tells the learner to review this "clean agent diff" with the Module 10 checklist, but it's polluted with binary.pycnoise and unrelated scaffolding (agent_runner.py,issue-delete-command.md) — undermining the central point of reviewing a clean agent contribution.Evidence
modules/25-autonomous-agents/lab/agent_runner.py(~line 162):subprocess.run(['git','add','-A']). README Part B (~lines 257-258) tells the learner to review this diff with the Module 10 checklist.Reproduced: Part B output includes
create mode 100644 __pycache__/agent_demo.cpython-XYZ.pycplus the lab scaffolding committed alongside the ~8-line real change.Why it matters
The "review a clean agent contribution" lesson is undermined by binary/scaffolding noise, contradicting the course's own Module 2 git-hygiene exemplar.
Proposed change
Add a
.gitignoreto the lab repo (__pycache__/,.pytest_cache/,.ruff_cache/, and the copied lab scaffolding such asagent_runner.pyandissue-delete-command.md), and KEEPgit add -A.Do NOT narrow staging to specific files: the Part D real-agent path can touch unknown files, where
git add -Ais the correct behavior. The.gitignorekeeps the diff clean while preserving Part D and reinforcing Module 2 discipline.Acceptance criteria
.pyc, no scaffolding).git add -Ais retained so Part D's real-agent path still works.Affected files
modules/25-autonomous-agents/lab/(add.gitignore),modules/25-autonomous-agents/README.md(optional note)References
Source finding F39 (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.