.gitignore holds no Python bytecode rule #249
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Defect
.gitignoreholds no Python bytecode rule, sogit add -Acommitscompiled bytecode of the eval readers.
Location
.gitignore, repository root. It ignores.worktrees/,.plans/,local instruction files, and
.env, and holds no__pycache__/entry.
Evidence
grep __pycache__ .gitignorefinds nothing. Anything that imports orcompiles
evals/evidence.py—python3 -m py_compile, a toolimporting it as a module — leaves
evals/__pycache__/evidence.cpython-*.pyc,and the next
git add -Atracks it. This happened while preparing#248: its first draft commit
dbe3dbdtracked a 27,716-byteevals/__pycache__/evidence.cpython-314.pyc; the reviewers caught itand the fold removed it, so the pushed branch is clean. Seen at main
09e9524, where the gap is the same.Scenario
A maintainer checks
evidence.pycompiles, stages everything, andcommits a stale bytecode copy of a security-boundary reader. The
graders run it as a script, which ignores
__pycache__, so nothingcatches it; a tool that imports it as a module would silently use the
stale copy wherever the recorded source mtime and size are preserved
alongside it, as tar and image copies do.
Smallest fix
One
__pycache__/line in.gitignore.