# =============================================================================
# Section 1: GitHub canonical Python template
# Source: https://github.com/github/gitignore/blob/main/Python.gitignore
# Vendored 2026-04-25; refresh from upstream periodically.
# =============================================================================

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[codz]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
# The Python `lib/` ignore above is too broad — exempt the dashboard's
# JS source dir which lives at cloud/dashboard/lib/.
!cloud/dashboard/lib/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
coverage.json
*.cover
*.py.cover
*.lcov
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff
instance/
.webassets-cache

# Scrapy stuff
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pdm
.pdm-python
.pdm-build/

# pixi
.pixi/*
!.pixi/config.toml

# PEP 582
__pypackages__/

# Celery
celerybeat-schedule*
celerybeat.pid

# Redis
*.rdb
*.aof
*.pid

# SageMath
*.sage.py

# Environments
.env
.envrc
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder
.spyderproject
.spyproject

# Rope
.ropeproject

# mkdocs
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre
.pyre/

# pytype
.pytype/

# Cython
cython_debug/

# Abstra
.abstra/

# Ruff
.ruff_cache/

# PyPI configuration
.pypirc

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/

# Streamlit
.streamlit/secrets.toml

# =============================================================================
# Section 2: OS / editor noise (the Python template doesn't cover these)
# =============================================================================

# macOS
.DS_Store
.AppleDouble
.LSOverride
._*

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini

# Linux backup files
*~

# Editor swap files
*.swp
*.swo

# IDEs
.vscode/
.idea/
.pyright/
*.code-workspace

# AI coding assistants — local config / runtime state, never committed
.claude/
.cursor/
.aider*/

# Logs
*.log

# Node (only if a docs/landing page is colocated)
node_modules/
_site/

# =============================================================================
# Section 3: Postrule-specific
# =============================================================================

# Default FileStorage base + outcome logs.
runtime/

# Patent provenance snapshots — distributed separately, never committed.
provenance-*.tar.gz
provenance-*/

# Patent filing packet — regenerated from .md sources by build-packet.sh.
docs/working/patent/packet/
docs/working/patent/postrule-ppa.pdf
docs/working/patent/drawings/*.pdf
docs/working/patent/drawings/*.tex
docs/working/patent/drawings/*-raw.pdf

# Model artifacts — keep large binaries out of git.
*.onnx
*.joblib
*.pkl
*.pt
*.pth
*.h5
*.gguf
*.safetensors

# Local secrets scaffolding (the .env / .envrc rules above cover most cases).
.secrets
.secrets.baseline.local

# Private sidequest / thinking docs.
notes/sidequest-*.md

# -----------------------------------------------------------------------------
# Internal scratch — kept on disk, never in the public repo.
#
# Launch tactics, IP / legal / license strategy, internal audits,
# revenue projections, design-discussion docs, draft launch copy,
# session writeups. Conservative default: nothing in here ships
# publicly unless the public benefit is absolutely clear; if a doc
# graduates to user- or contributor-grade, move it out of these
# directories into a public docs/ path before committing.
# -----------------------------------------------------------------------------
docs/working/
docs/marketing/
.wrangler/

# =============================================================================
# Section: Paper drafts and authoring artifacts
# Convention: finished PDFs / bibliographies / results stay in docs/papers/;
# drafts and review notes live in docs/working/ (already ignored).
# Unannounced papers (no public PDF yet) are ignored entirely.
# =============================================================================

# Unannounced paper — verifier-selection (companion #2)
docs/papers/2026-verifier-selection/

# Authoring artifacts in any paper dir
docs/papers/**/paper-draft.md
docs/papers/**/body.typ
docs/papers/**/paper.typ
docs/papers/**/ACCURACY_REVIEW-*.md
docs/papers/**/outline.md

# macOS Finder quarantine / sync artifacts
.!*

# Internal design explorations (working documents, not normative)
docs/design/

# =============================================================================
# Section: Internal strategy / brand / governance — never public
# =============================================================================

# Brand strategy + voice + governance + sub-brand planning
brand/messaging.md
brand/voice.md
brand/governance.md
brand/sub-brands.md
brand/logo/_preview.html

# Internal notes
notes/

# Internal repo-metadata documentation
.github/REPO_METADATA.md

# Pre-launch concept exploration (not shipped art)
landing/assets/concepts/

# Methodology framing (internal positioning)
docs/methodology/

# Internal security audits
cloud/api/test/SECURITY_AUDIT-*.md

# macOS Finder droppings (catch-all)
**/.DS_Store
