# 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/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.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
*.cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
docs/site/_build/
docs/site/gallery/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
#   For a library or package, you might want to ignore these files since the code is
#   intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don't work, or not
#   install all needed dependencies.
#Pipfile.lock

# UV
#   Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
#   This is especially recommended for binary packages to ensure reproducibility, and is more
#   commonly ignored for libraries.
#uv.lock

# poetry
#   Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
#   This is especially recommended for binary packages to ensure reproducibility, and is more
#   commonly ignored for libraries.
#   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
#poetry.toml

# pdm
#   Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#   pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
#   https://pdm-project.org/en/latest/usage/project/#working-with-version-control
#pdm.lock
#pdm.toml
.pdm-python
.pdm-build/

# pixi
#   Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
#pixi.lock
#   Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
#   in the .venv directory. It is recommended not to include this directory in version control.
.pixi

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

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

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

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

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
#  JetBrains specific template is maintained in a separate JetBrains.gitignore that can
#  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
#  and can be added to the global gitignore or merged into this file.  For a more nuclear
#  option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

# Visual Studio Code
#  Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore 
#  that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
#  and can be added to the global gitignore or merged into this file. However, if you prefer, 
#  you could uncomment the following to ignore the entire vscode folder
# .vscode/

# Ruff stuff:
.ruff_cache/

# PyPI configuration file
.pypirc

# Cursor
#  Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
#  exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
#  refer to https://docs.cursor.com/context/ignore-files
.cursorignore
.cursorindexingignore

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/
*.lst
tests/fixtures/*.txt
.opencode/
225a/
225b/

# Local outputs / reports (the nus333 GAMS reference lives in data/gtap7/nus333/)
output/
results/*.pkl
DifFile.gdx
notes/

# PEP2 generated artifacts (keep sources like .gms/.sh/.py tracked)
src/equilibria/templates/reference/pep2/data/SAM-V2_0_connect.xlsx
src/equilibria/templates/reference/pep2/data/SAM-V2_0_from_excel.gdx
src/equilibria/templates/reference/pep2/scripts/*.gdx
src/equilibria/templates/reference/pep2/scripts/dif_*.csv
src/equilibria/templates/reference/pep2/scripts/gdxdiff_*.txt
src/equilibria/templates/reference/pep2/scripts/dynamic_sets.inc

bk/*

# GTAP one-off scripts, generated docs, solver logs, editor config
.vscode/
ipopt.out
scripts/gtap/*
!scripts/gtap/run_gtap.py
!scripts/gtap/_diff_core.py
!scripts/gtap/compare_burfisher_gempack.py
!scripts/gtap/compare_gempack_levels.py
!scripts/gtap/_parity_datasets.py
!scripts/gtap/_parity_json.py
!scripts/gtap/_nl_parser.py
!scripts/gtap/diff_9x10_full.py
!scripts/gtap/diff_nus333_full.py
!scripts/gtap/bench_nus333_dual.py
!scripts/gtap/bench_nlp_timing.py
!scripts/gtap/compare_nus333_rungtap.py
!scripts/gtap/compare_9x10_rungtap.py
!scripts/gtap/nl_compare.py
!scripts/gtap/_nl_nonlinear.py
!scripts/gtap/diff_closure.py
!scripts/gtap/_closure_patches.py
!scripts/gtap/build_9x10_altertax_neos_bundle.py
!scripts/gtap/build_altertax_neos_bundle.py
!scripts/gtap/submit_9x10_altertax_neos.py
!scripts/gtap/submit_altertax_neos.py
!scripts/gtap/diff_9x10_altertax.py
!scripts/gtap/diff_nus333_altertax.py
!scripts/gtap/diff_altertax.py
!scripts/gtap/run_parity_gates.py
!scripts/gtap/perf_budget_20x41.py
!scripts/gtap/perf_baseline_20x41.json
!scripts/gtap/phase_times.py
!scripts/gtap/check_parity_gates_stamp.py
!scripts/gtap/claude_hooks/
!scripts/gtap/validate_reference.py
!scripts/gtap/diff_calibration.py
!scripts/gtap/diff_equation_form.py
!scripts/gtap/diff_mcp_pairing.py
!scripts/gtap/diff_holdfixed.py
!scripts/gtap/diff_tautology.py
!scripts/gtap/diff_causal_propagation.py
!scripts/gtap/seed_and_solve.py
!scripts/gtap/convert_gams.py
!scripts/gtap/pairing_table.py
!scripts/gtap/inheritance_table.py
!scripts/gtap/bench.py
!scripts/gtap/build_v7_processed_from_raw.py
!scripts/gtap/coverage_matrix.py
!scripts/gtap/gen_coverage_doc.py
!scripts/gtap/gen_gempack_doc.py
!scripts/gtap/gen_nlp_matrix_page.py
!scripts/gtap/gempack_reference.py
!scripts/gtap/inspect_updated_har.py
!scripts/gtap/GENERATE_MISSING_LEVELS_FIXTURES.md
!scripts/gtap/reconstruct_9x10_eflg.py
!scripts/gtap/verify_ifsub_equivalence.py
!scripts/gtap/gen_burfisher_gams.py
!scripts/gtap/gams_welfare_fixture.py
!scripts/gtap/gams/
!scripts/gtap/gen_linearization_study.py
!scripts/gtap/mk_exp_directos.py
# Phase-2 cascade orchestrator modules
!scripts/gtap/cascade_config.py
!scripts/gtap/cascade_layers.py
!scripts/gtap/cascade_classify.py
!scripts/gtap/cascade_run.py
!scripts/gtap/cascade_orchestrator.py
!scripts/gtap/cascade_kkt.py
!scripts/gtap/measure_gempack_blocks.py
!scripts/gtap/measure_nlp_vs_nlp.py
!scripts/gtap/measure_nlp_vs_nlp_altertax.py
!scripts/gtap/blocks_diag.py
!scripts/gtap/run_burfisher.py

# Salidas de corridas GEMPACK/GAMS: se ignora todo lo generado (binarios y
# consolas) y se versiona a mano la evidencia de validacion (.md, .cmf, .py,
# .json). Antes esto eran 93 patrones enumerados por subdirectorio y extension.
# phase 3a-2: what tablo compiles from data/gtap7/gempack_rungtap375_levels
runs/gempack_work/
runs/**/__pycache__/
runs/**/*.har
runs/**/*.sl4
runs/**/*.slc
runs/**/*.sti
runs/**/*.sol
runs/**/*.log
runs/**/*.lst
runs/**/*.gdx
runs/**/*.xls
runs/**/*.prm
runs/**/*.UPD
runs/**/*.GEN
runs/**/*.gss
runs/**/*.gst
runs/**/*.inf
runs/**/*.min
runs/**/*.dwk
runs/**/*.e2k
runs/**/*.exs
runs/**/*.pwk
runs/**/*.rdt
runs/**/*.swk
runs/**/*.cdk
runs/**/*_console*.txt
runs/**/sl4dump*
runs/**/sltoht*
runs/**/sl4_levels*
runs/**/sl4map.txt
runs/**/*_map.txt
runs/**/Results*.gdx
runs/**/*assert-arith-fail*
runs/**/wmiccap.tmpwmic
runs/**/tm_traj_*.cmf
runs/nus333_compare/rungtap/tm10
runs/nus333_compare/rungtap/har
runs/9x10_compare/rungtap/tm10
runs/9x10_compare/rungtap/har
runs/gempack_matrix/*/har
runs/gempack_matrix/run_study_windows.bat
runs/gempack_matrix/job_*/

# Evidencia de validacion que se versiona pese a las reglas de arriba
!runs/gempack_20x41_validation/*_console.txt
!runs/gempack_20x41_validation/tm10-assert-arith-fail.har
!runs/horridge_simple/simdata.har
!runs/horridge_simple/input.gdx

examples/gtap/
docs/GTAP_*.md

# Local agent state and in-progress plans
.claude/
.superpowers/
docs/superpowers/

# Personal dev-tools mounts (stow symlinks into ~/proyectos/dev-tools;
# not part of the published repo — see AGENTS.md/CLAUDE.md, plan logs, parity_cascade)
/.claude
/AGENTS.md
/CLAUDE.md
/parity_cascade
/submit_nl_to_neos_path.py
/[0-9][0-9][0-9][0-9]-*.md
/gtap7_status_sweep_*.md
/GTAP_VALIDATION_STATUS.md
/plan_*.md
/skills/

# GTAP scratch artifacts (accidental `con` redirect, fixed-script experiments)
data/gtap7/gams/con

# data/<model>/<dataset>/ — only commit basedata.har, sets.har, baserate.har, default.prm, v7_consolidated.gdx
data/gtap*/*/GDX/
data/gtap*/*/baseview.har
data/gtap*/*/co2.har
data/gtap*/*/gsdf*.har
data/gtap*/*/gtapSAM.har
data/gtap*/*/metadata.har
data/gtap*/*/CMFSTART
data/gtap*/*.agg
data/gtap*/*/*.agg

# Herramientas personales montadas por stow (dev-tools): viven fuera del repo,
# asi que versionarlas dejaba symlinks rotos para quien clonara.
superpowers
cgebox
parity_cascade
gempack_*.py
gtap-20x41-*.py
solve_blocks_via_neos.py
submit_nl_to_neos_path.py
verify_gempack_levels*.py
worst_rows_at_seed.py
GTAP_VALIDATION_STATUS.md
2026-*-*.md
plan_*.md
gtap7_status_sweep_*.md

# Recorded NEOS results keep the listing and log they came back with: their
# source.yaml lists them as outputs (ADR-0010), so *.lst / *.log above must
# not hide them.
!data/**/gams_*/model.lst
!data/**/gams_*/neos.log
