# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
/lib/
/lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual environments
venv/
.venv/
ENV/
env/

# IDE
.idea/
.vscode/
*.swp
*.swo
*~

# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/
.nox/
backend/backend/

# Generated test results and runtime data
detector_test_results_*.json
backend/data/fix_feedback.jsonl
backend/data/progress_log.jsonl
backend/data/mast_test_results*.json
backend/data/otel_test_results.json
backend/data/calibration_history.jsonl
backend/data/calibration_report.json
backend/data/baselines/
backend/data/error_analysis_*.json
backend/app/data/

# Claude Code worktrees (transient agent workspaces)
.claude/worktrees/

# Playwright
frontend/tests/auth/storage-state.json
frontend/test-results/
frontend/playwright-report/
frontend/playwright/.cache/

# Environment
.env
.env.*
!.env.example
!.env.test

# Vercel
.vercel

# Scraped traces (large data files) - only at root level
/traces/

# macOS
.DS_Store

# Secrets - never commit
deployment-env-vars.md
frontend/.env.local

# Secrets and credentials
*.pem
*.key
*.crt
credentials.json
*.secret

# Node (frontend)
node_modules/
.next/
out/

# Logs
*.log
logs/

# Local config
*.local
models/
# Exception: ship the small trained MAST-v4 artifacts. Git can't re-include
# a file whose parent dir is ignored, so un-ignore each parent first. The
# 1.3GB embedder/ and 73MB adaptive_thresholder.pkl stay on the Modal volume
# (pull with `modal volume get pisama-ml-v4-model / backend/data/models`).
!backend/data/models/
!backend/data/models/mast_v4/
backend/data/models/mast_v4/*
!backend/data/models/mast_v4/config.json
!backend/data/models/mast_v4/model.pt
!backend/data/models/mast_v4/scaler.pkl
!backend/data/models/mast_v4/thresholds.json
!backend/data/models/mast_v4/training_report.json
_archived/

# Sensitive environment files (never commit)
frontend/.env.local
frontend/.env.vercel.production
.env.local

# Confidential docs (strategy, pricing, competitive intel)
docs-internal/

# Terraform
.terraform/
*.tfstate
*.tfstate.*
.terraform.lock.hcl
backend/models/
.deck-drive-id
backend/.synth-state.json
packages/pisama-synth-agents/.synth-state.json

# External benchmark datasets (too large for git; download separately)
backend/data/trail/

# Gemini code review reports
reviews/
