# ============================================================================
# Generalized Notation Notation (GNN) - Git Ignore Configuration
# ============================================================================
# This file contains comprehensive ignore patterns for the GNN project
# including Python, scientific computing, and pipeline-specific artifacts
# ============================================================================

# ============================================================================
# PYTHON VIRTUAL ENVIRONMENTS
# ============================================================================
/src/.venv
.venv/
venv/
env/
ENV/
.pytest_cache/
.import_linter_cache/
src/.pytest_cache/
*/.pytest_cache/
*.pytest_cache/

# ============================================================================
# ENVIRONMENT AND CONFIGURATION FILES
# ============================================================================
# Environment variables (NEVER commit these!)
.env
.env*
*.env
.env.local
.env.production
.env.development
# Ship only the tracked placeholder template; real environment files stay ignored.
!/src/gnn/llm/.env.example

# Configuration files with secrets
config.local.json
config.local.yaml
secrets.json
secrets.yaml
credentials.json

# ============================================================================
# PYTHON ARTIFACTS
# ============================================================================
# Python bytecode and cache (never `git add` these; if tracked historically, `git rm -r --cached **/__pycache__`)
__pycache__/
*.py[cod]
*$py.class
*.pyo
*.pyd
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
# Negate scripts/lib/ so shared utilities are tracked
!scripts/lib/
!/scripts/lib/*
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Specific module cache directories
/src/export/__pycache__/
/src/setup/__pycache__/
/src/utils/__pycache__/
/src/*/activeinference_jl/.julia
/src/execute/activeinference_jl/.julia

# ============================================================================
# GENERATED ARTIFACT TREES (NOT MAINTAINED SOURCE)
# ============================================================================
# Root pipeline output/ follows a curated-vs-volatile tracking boundary —
# decision note: docs/development/output_tracking.md.
#
# CURATED published artifacts stay TRACKED (not ignored; manuscript gates read them):
#   output/manuscript/  manuscript sections + config
#   output/pdf/         combined manuscript PDF + LaTeX evidence (.aux/.bbl/.log/.toc/...)
#   output/figures/     figure_registry.json + the PNGs it references
#   output/data/        manuscript_variables.json (manuscript variable gate input)
#   output/slides/      beamer slide bundles (FLAGGED: no in-repo writer found; kept tracked)
#   output/web/         manuscript HTML site (FLAGGED: no in-repo writer found; kept tracked)
#   output/reports/     manuscript_composition.json (FLAGGED: no in-repo writer found; kept tracked)
#
# VOLATILE step/run outputs are regenerated on every pipeline run — ignored here
# and untracked from the index, so a full-suite run never dirties `git status`:
output/[0-9]*_*_output/
output/00_pipeline_summary/
output/00_pipeline_logs/
output/PIPELINE_REPORT.md
output/semantic_fidelity/
output/cross_framework/
output/model_family_acceptance/
output/v3_run_manifest/
output/.gnn_run.lock
/out/

# Historical or redirected pipeline output under src/ may be generated as well, but should be ignored.
/src/output/*

# Contract-test scratch written by tests/api/test_api_endpoints.py
output/api_contract_test/
output/job_contract_test/
output/api_pull_test/

# Timestamped or run-specific documentation execution outputs are regenerated
# from examples; curated docs and source examples remain tracked outside these
# generated directories.
doc/**/activeinference_outputs_*/
doc/**/pomdp_gridworld_outputs/
doc/**/*_outputs_*/
doc/**/test_output/

# Optional fixture copies under tests are generated scratch unless explicitly
# moved into a documented fixture directory.
src/tests/output/

# ============================================================================
# TESTING AND COVERAGE
# ============================================================================
# Coverage reports (allow output/coverage.json)
htmlcov/
.coverage
coverage.xml
*.cover
*.log
nosetests.xml
coverage.json
/junit/*.xml
/junit/*.json
src/tests/htmlcov/
*/htmlcov/

# Testing artifacts
.pytest_cache/
.tox/
.coverage.*
.cache
.pytest_cache/
pytest.ini.local
# Local Bandit JSON from CI-parity runs (see .github/workflows/ci.yml artifact name)
bandit-results.json
# PyMDP scaling preflight (last resource_gate payload)
scripts/experiments/pymdp_scaling_last_resource_gate.json

# ============================================================================
# DOCUMENTATION BUILD ARTIFACTS
# ============================================================================
docs/_build/
docs/build/
target/
site/
_build/
build/

# Sphinx documentation
docs/_build/
*.doctrees

# Jekyll
_site/
.jekyll-cache/

# ============================================================================
# IDE AND EDITOR FILES
# ============================================================================
# VSCode
.vscode/
*.code-workspace

# PyCharm / IntelliJ
.idea/
*.iml
*.ipr
*.iws

# Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Atom
.atom/

# ============================================================================
# OPERATING SYSTEM FILES
# ============================================================================
# macOS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
*~

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk

# Linux
*~
.fuse_hidden*
.directory
.Trash-*

# ============================================================================
# SCIENTIFIC COMPUTING FRAMEWORKS
# ============================================================================
# Julia
*.jl.cov
*.jl.mem
.julia/
.jl/

# JAX / TensorFlow
*.pb
*.pbtxt
*.ckpt
*.index
*.data-*
*.meta

# Julia package manager
/Manifest.toml
/LocalPreferences.toml

# ============================================================================
# AUDIO AND MEDIA FILES
# ============================================================================
# Audio processing artifacts
*.wav
*.mp3
*.flac
*.ogg
*.m4a
*.wma
*.aac

# Generated audio from pipeline
output/*/audio/
cache/audio/
temp_audio_*


# ============================================================================
# PIPELINE OUTPUTS
# ============================================================================
# Root output/ follows the curated-vs-volatile boundary above (see
# docs/development/output_tracking.md). The patterns below cover historical
# nested scratch directories in case output paths are redirected under tracked
# folders.

# Ignore temporary and intermediate files
output/*/temp/
output/*/tmp/
output/*/cache/
output/*/*_temp_*
output/*/*_tmp_*

# Debug and development outputs
output/*/debug/
output/*/dev/

# ============================================================================
# LOGS AND DEBUGGING
# ============================================================================
# Log files
*.log
logs/
log/
*.log.*

# Exception: the manuscript's LaTeX log is evidence, not scratch.
# src/tests/test_manuscript_latex_log.py pins the diagnostics the shipped PDF
# carries, and every sibling artifact from the same render (.aux/.bbl/.blg/.toc/
# .tex) is already tracked under the "Keep it committed!" policy above. Tracking
# it is what lets that test fail explicitly on a clean checkout instead of
# skipping, which the zero-skip contract forbids.
!output/pdf/_combined_manuscript.log

# Debug files
debug/
debug_*
*_debug.*

# Profiling outputs
*.prof
*.pstat
profiling/

# ============================================================================
# TEMPORARY AND CACHE FILES
# ============================================================================
# Temporary files
*.tmp
*.temp
tmp/
temp/
.tmp/
.temp/

# Cache directories
.cache/
*/cache/
cache/
*.cache
*.cache.*

# Backup files
*.bak
*.backup
*~

# ============================================================================
# LARGE DATA FILES (Optional - uncomment if needed)
# ============================================================================
# Uncomment these if you want to ignore large data files
# *.csv
# *.jsonl
# *.parquet
# *.hdf5
# *.h5
# *.nc
# data/
# datasets/

# ============================================================================
# DEVELOPMENT AND DEPLOYMENT
# ============================================================================
# Docker
.docker/
docker-compose.override.yml

# Deployment artifacts
deploy/
deployment/
!docs/deployment/
dist/
build/

# Package build artifacts
*.whl
*.tar.gz
*.zip

# ============================================================================
# MISCELLANEOUS
# ============================================================================
# Lock files (keep uv.lock, ignore others)
poetry.lock
Pipfile.lock
requirements.txt.lock
constraints.txt.lock

# Node.js (if used for documentation)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# R (if used for statistics)
*.RData
*.rda
*.rds
.Rhistory
.Rproj.user/

*.timelock.*
*.jl.mem

# ============================================================================
# GITKEEP FILES (Always keep these)
# ============================================================================
# Important directories that should be tracked but may be empty
!output/.gitkeep
!cache/.gitkeep
!logs/.gitkeep

# ============================================================================
# CUSTOM PATTERNS
# ============================================================================
# Add any project-specific patterns below this line

# Local Cursor IDE state (not project source)
.cursor/hooks/state/

# Unused devcontainer config
.devcontainer/

# Generated CI report artifacts (see .github/workflows/ci.yml)
bandit-results/
pytest-junit-*/

# ============================================================================
# SETUP AND MAINTENANCE NOTES
# ============================================================================
#
# To clean ignored files: git clean -fdx
# To see what would be cleaned: git clean -fdxn
# To update this file: Review and test patterns before committing
#
# Last updated: March 23, 2026
# ============================================================================
/.desloppify
/.claude
/.desloppify
/src/.desloppify

# MCP audit reports are regenerated on demand; never track them
mcp_audit_report.json
/tests/mcp_audit_report.json
/tests/mcp/mcp_audit_report.json

# Local agent-context note (never shipped)
CONTEXT.md

# ============================================================================
# META-AWARE-2 GENERATED RUN ARTIFACTS (GROMA #7, 2026-09-27)
# ============================================================================
# The meta-aware-2 subtree mixes tracked sources (.md/.py/.toml doc-stub dirs,
# code, config) with generated run artifacts. Run logs are already covered by
# the global `*.log` rule and the meta-aware-2/logs/ directory by the global
# `logs/` rule above; the patterns here pin the remaining generated classes
# (top-level verification report, results pickles+json, figure rasters) so
# they cannot silently return as tracked files.
docs/cognitive_phenomena/meta-aware-2/verification_report.json
docs/cognitive_phenomena/meta-aware-2/results/*.pkl
docs/cognitive_phenomena/meta-aware-2/results/*.json
docs/cognitive_phenomena/meta-aware-2/figures/*.png

# ============================================================================
# META-AWARENESS GENERATED PAPER-FIGURE RASTERS (GROMA sibling hygiene, 2026-09-28)
# ============================================================================
# The meta-awareness subtree mixes tracked sources (.md/.py doc-stub dirs, code,
# config) with generated figure rasters: in-repo reproductions of Sandved-Smith
# et al. (2021) figures computed by run_paper_simulations.py / sandved_smith_2021.py
# / visualizations.py (fixed seeds), not rasters extracted from the published
# paper. The pattern here pins the figure-raster class under the figures_fig*
# doc-stub dirs so they cannot silently return as tracked files.
docs/cognitive_phenomena/meta-awareness/figures_fig*/*.png

# Private agent plans, captures and isolated task environments
/.omo/
