# Python
__pycache__/
*.py[cod]
*.egg-info/
.ruff_cache/
dist/
build/
.venv/
*.pkl
# Exception: HMM model artifacts (1.3 MB total) ship with the repo so WSL2
# self-hosting is turnkey: no retraining required on fresh checkouts.
!packages/hmm/data/hmm_cache/*.pkl
!packages/hmm/data/hmm_cache/*.keras

# Node
node_modules/
apps/web-next/.next/
apps/web-next/out/

# Environment
.env
.env.local
apps/api/.env
apps/web-next/.env.local
apps/web-next/.env*.local

# Data cache (multi-GB, never committed)
data/cache/
# HF model weights for ts_forecast (Timestral safetensors, ~100-800MB)
data/models/
data/archive/intraday/
data/archive/options/
# xsec research panel: ~1.2 GB of parquet is already tracked and serves as the
# prod-side dataset — keep it tracked for now (untracking needs a BFG/LFS
# decision). This rule only stops NEW chunks from being snapshotted.
data/archive/xsec/
# Futures research parquet caches — regenerated by tools/futures_signal_research
tools/futures_signal_research/data/

# Scoring V3 rollout backups: keep compact JSON evidence; ignore large caches
# and binary rollback pickles (*.pkl already ignored globally).
data/backups/scoring-v3-*/etf_batch_cache.json
data/backups/scoring-v3-*/fundamentals_index.pkl
data/backups/scoring-v3-*/income_scores_index.pkl
data/backups/scoring-v4-*/etf_batch_cache.json
data/backups/scoring-v4-*/sector_valuation_cache.json

# Runtime results (written by nightly jobs, append-only files clobbered by git)
data/results/

# Runtime state on the Ubuntu host (user DB, alerts, snapshots, market cache)
state/
data/user_store.db
jobs/prescan/logs/
# Every bootstrap'd job writes $JOB_DIR/logs (log files, .warnings side
# channels, lock sentinels like .backtester_month_*) — all runtime output.
jobs/*/logs/

# OS
.DS_Store
Thumbs.db

# IDE
.vscode/
.idea/

# Agent-only scratch (audit/validation scripts, not shipped)
tmp/

# Logs
*.log
nohup.out

# Auto-sync pause sentinel (jobs/git_pull/run.sh) — local-only toggle
.git-pull-hold

.vercel

# Generated internal OpenAPI (full BFF allowlist, not served on www)
apps/api/openapi-internal.json
.env*

# Research-chat overnight autoresearch (keep/discard log; do not commit)
apps/api/evals/research_chat/results.tsv
apps/api/evals/research_chat/baselines/scorecard_autoresearch.*
data/evals/
data/archive/scoreboards/
data/archive/ticker_vintages/

# Machine-local agent/tooling config and credentials. jobs/git_pull stages
# `git add -A`; these shapes must never reach origin.
.claude/settings.local.json
.claude/launch.json
.claude/credentials.json
.claude/.credentials.json
.claude/worktrees/
.cursor/mcp.json
.impeccable/

# Job warning side-channels (live next to logs; *.log does not match them)
*.warnings

# Key/cert material and token stores at any depth
*.pem
*.key
*.p12
*.pfx
*.keystore
*.jks
id_rsa*
id_ed25519*
*.secret
secrets.json
credentials.json

# Runtime PID files — process state, never source
*.pid

# Editor/atomic-write debris — never snapshot scratch files
*.tmp
*.swp
*.swo
*.orig
*.rej
*.bak

# Ad-hoc root scratch scripts — keep repo root clean
tmp_*.py
