chore(hygiene): gitignore regenerable 141 sidecar + Python bytecode (#415 align) - #858
Merged
Merged
Conversation
…415 align) Housekeeping micro-PR, ai-01-directed (Re: ASK tick 90, msg-7d6ioe). 1. docs/taxonomy/141-aif-candidates-fullscale.json (1.3 MB) = regenerable derived data. VERIFIED code=truth: 141-aif-fullscale.py (committed, #623) writes it; `python docs/taxonomy/141-aif-fullscale.py --finalize` regenerates from checkpoint (no API calls). 141-aif-fullscale-report.md ALREADY documents it as "tmp/ - regenerable via --finalize" (lines 11/118) + the regen command, so no report edit needed (note present, no pendulum). Aligns #415 (reduce .git weight): regenerable artifact does not belong in git. Keep local, never commit. 2. __pycache__/ + *.py[cod] + *$py.class = standard Python hygiene. The repo ships Python tooling (tools/, docs/taxonomy/, docs/investigations/scripts/) but had NO bytecode ignore pattern — 2 untracked __pycache__ dirs present today (real accidental-commit risk). Machine-specific, churns. Included in the same hygiene commit (not scope creep: same single-purpose). Verification: git check-ignore confirms the 141 JSON + __pycache__ + *.pyc now matched; 847-*.csv/md + 141-aif-fullscale-report.md + acompte NOT ignored (false-positive guard). git status: 141 JSON + __pycache__ gone from untracked. 0 prod CSV. 0 code. docs/config-only, reversible. Co-Authored-By: Claude-Code <noreply@anthropic.com>
jsboige
added a commit
that referenced
this pull request
Jul 25, 2026
Root `tmp/` was untracked-but-not-ignored, risking accidental commit of ~1.3 MB of regenerable local working files (AIF #141 full-scale candidate sidecars, #498 phase2/3 datasets, run logs, audit samples). Flagged by po-2023 as an accidental-commit hazard (web.config lives in the adjacent working tree on the DNN host; the same discipline applies here). The .gitignore already documents these as "tmp/regenerable" (L262 comment) and handles the largest sidecar per-file (`docs/taxonomy/141-aif-candidates-fullscale.json`), but the `tmp/` directory itself was not covered. Adds a root-anchored `/tmp/` entry so only the root scratch dir is ignored — a legitimate nested `tmp/` elsewhere in the tree is unaffected. All content under tmp/ is regenerable from committed scripts (docs/taxonomy/141-aif-fullscale.py, tools/498-*.py) — no source lost. Aligns with #858 (reduce accidental-commit surface, #415 git-weight hygiene). Co-authored-by: Your <your.email@example.com> Co-authored-by: Claude-Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Housekeeping micro-PR, ai-01-directed (Re: ASK tick 90,
msg-7d6ioe). Gitignores the untrackeddocs/taxonomy/141-aif-candidates-fullscale.json(regenerable derived data) + adds standard Python bytecode hygiene. 0 prod CSV, 0 code, docs/config-only, reversible.(1) 141 sidecar — regenerable, not source
docs/taxonomy/141-aif-candidates-fullscale.json(1.3 MB) is regenerable derived data. Verified code=truth:docs/taxonomy/141-aif-fullscale.py(committed, docs(taxonomy): #141 AIF Stage-1 full-scale generator — checkpoint/resume, anti-fab closed-set #623).python docs/taxonomy/141-aif-fullscale.py --finalizeregenerates from checkpoint (no API calls).141-aif-fullscale-report.mdalready documents it as❌ tmp/ — regenerable via --finalize(lines 11, 118) + gives the regen command → no report edit needed (note present, no pendulum).Referenced by 7 committed docs/scripts (all document the regen path). Aligns #415 (reduce
.gitweight): a regenerable 1.3 MB artifact does not belong in git. Keep local, never commit.(2) Python bytecode hygiene (included, same commit)
The repo ships Python tooling (
tools/,docs/taxonomy/,docs/investigations/scripts/) but had no__pycache__/*.pycignore pattern — 2 untracked__pycache__dirs present today (real accidental-commit risk as the Python tooling grows). Added standard__pycache__/+*.py[cod]+*$py.class. Not scope creep — same single-purpose hygiene commit.Verification
False-positive guard:
847-*.csv/md,141-aif-fullscale-report.md, acompte — all NOT ignored (source, must stay tracked). ✓git statusafter: 141 JSON +__pycache__gone from untracked; only.gitignore(this change) +.mcp.json/tmp/(out of scope, not my lane) remain.Governance
Refs
ai-01
msg-7d6ioe(Re: ASK tick 90). #415 (reduce .git weight). #623 (141-aif-fullscale.py). #141 (AIF chantier). Base master18d16962.🤖 Generated with Claude Code