# Dependencies
node_modules/
.pnp
.pnp.js
venv/
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
.mypy_cache/
env/
build/
dist/
*.egg-info/

# Testing
coverage/
*.lcov
.nyc_output
.coverage
.coverage.*
htmlcov/
.pytest_cache/

# Production
/build
/dist
*/dist
*/build

# Logs and output files
logs
*.log
*.out

# Backup files
*.bak
*.backup
*.old
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Environment
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.staging.local
.env.protected_backup
*.env

# IDE
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json.example
.idea
*.swp
*.swo
*~
.DS_Store

# Turborepo
.turbo

# Changesets
.changeset/

# Temporary
tmp/
temp/
*.tmp

# Production PostgreSQL configuration
.env.production.postgresql
.mypy_baseline.json

# Test artifacts and reports
test_artifacts/
test-results/
test_results/
test_reports/
reports/memory/
reports/fagan/
reports/performance/
test*.db
dump.rdb

# SSL private material (never commit secrets)
ssl/*.key
ssl/*.srl
ssl/*.csr

# Temporary test files
test-*.html
test-*.js
test_*.html
test_*.js

# Report files in root (should be in reports/)
*_report*.json
*_report*.md
fagan*.json
memory_leak*.json
smart_memory*.json
security-scan*.json
# Environment files should NEVER be committed
*.env
.env*
.env.backup.*
!.env.example
!.env.template
!.env.staging.example
config/*.env
superego-frontend/.env*
!superego-frontend/.env.example
data/sessions/superego.db
docs/UVC_CSM_EMOJI_DUMP.md
*.db
*.db-shm
*.db-wal


# GPG keyring (contains private key)
data/keys/.gnupg/
.venv
.venv_check/

# Coverage reports
coverage.xml

# Test artifacts in registry
data/constitutions/registry/test_safety_*.json

# ML Model Cache
.cache/
# Hypothesis database (property-based testing)
.hypothesis/*
!.hypothesis/examples/
.mcp.json

# Flash Review Cache
.flash_findings.json
.flash_full_review_checkpoint.json
.review_for_claude.diff
reports/flash_full_review_*.json
reports/flash_full_review_*.md
reports/red_team_audit/
data/deployment_snapshots/snapshot_*/
archives/reports/untracked/

# Runtime audit logs (regenerated, can contain sensitive session metadata)
data/audit/*.jsonl

# Security audit reports (regenerable, large files)
archives/docs/security/security_audit_*.json
archives/docs/security/security_audit_*.txt
archives/docs/security/type_safety_report.json
**/security_audit_*.json
**/security_audit_*.txt

# Gitleaks and security scan reports (regenerable)
gitleaks-report.json
bandit_report.json

# UVC debug dumps (keep UVC_CSM_EMOJI_COMPLETE_DUMP.json - it's conversation history)

# Claude Code agent execution logs
.code/agents/*/exec-call_*.txt
.flash_costs.json

# Large benchmark results (use Git LFS or external storage)
benchmarks/results/*.jsonl
logs/flash_review.log

# Archived audit logs (local reference only)
archives/audit_logs/

# Mutation Testing
reports/mutation/*.html
reports/mutation/*.json
reports/mutation/*.sqlite
reports/mutation/*.toml
superego-frontend/mutation-report/
superego-frontend/mutation-report.json
superego-frontend/.stryker-tmp/
.stryker-tmp/

# Performance benchmark baselines
.benchmarks/
# Rust build artifacts
crates/*/target/

# Session diaries and retrospectives (PRIVATE - never commit)
memory/diary/
memory/retrospective/
scripts/test_api_keys.py

# Vector stores (too large for GitHub)
memory/vector_stores/

# Session transcript backups (local only)
memory/transcript_backups/
