# Rust build outputs
target/

# Rust/Tooling local backups
**/*.rs.bk

# Local logs / installers
*.log
*.msi

# Root-local generated files
/package-lock.json
/package.json

# Editor / IDE
.vscode/
.idea/

# OS cruft
Thumbs.db
.DS_Store

# Environment secrets
.env

# Local scratch/work dirs
/.memory/
/-p/

# Python cache (for scripts)
__pycache__/
*.pyc

# MCP server local artifacts
mcp_server/node_modules/
mcp_server/dist/
mcp_server/.tsbuildinfo
mcp_server/*.bak
mcp_server/config.json

# Local MCP / tool state
.mcp_*

# Dependencies
node_modules/

# Test artifacts
path/

# Paper living-doc (DAC draft — never pushed)
paper/living-doc/

# Paper WASM build artifacts (CI-built, not committed)
# Source files (index.html, paper.css, paper.js) ARE tracked

# Archived internal docs (not for public, preserved locally)
docs/_archive/

# Private campaign planning (never pushed)
.campaigns-private.md
.lra-roadmap-private.md

# Campaign proposals (private — never pushed)
proposals/

# Claude Code agent config and project intelligence
.claude/
CLAUDE.md

# Agent skill definitions — internal workflow automation
.github/skills/

# Agent prompt files — internal workflow automation
.github/prompts/

# Copilot instructions — internal workflow
.github/copilot-instructions.md

# Research artifacts and experiment data
artifacts/

# Internal scripts (CI helpers, research, stress generators)
# scripts/  # tracked for CI workflow

# Self-hosting / bootstrap scripts — reference internal binary names
build_selfhost.sh
build_selfhost.ps1
run-mirr.ps1

# Frozen DAC paper LaTeX source (double-blind)
paper/dac2027-mirr.tex

# Coq scratch files
proofs/width/scratch.v
*.vo
*.vok
*.vos
*.glob
.lia.cache

# Catch-all for future private planning documents
*-private*

# LaTeX build artifacts (global — covers any stray .aux/.log/.out)
*.pdf
*.aux
*.out
*.synctex.gz

# WASM build outputs (CI-built, not committed)
demos/*.wasm
demos/*.js
demos/*.d.ts
demos/package.json
!demos/.gitkeep

# ─── AI Agent & Internal Tooling ──────────────────────────────────────────────
# These files are exclusively for local AI-assisted development workflows.
# They contain internal binary references, audit data, and agent instructions.
AGENT.md
GEMINI.md
.mirr_brain.json
.presidential_journal.json
.gemini/
memories/
scratch/
mirr-ci-optimization.skill
mirr-debt-remediation.skill
# run_wave_gates.sh
# run_wave_gates.bat
# run_wave_gates.ps1

# ─── Python Scripts (project rule: no Python) ─────────────────────────────────
*.py

# ─── PowerShell Scripts (internal CI helpers) ─────────────────────────────────
scripts/*.ps1
scripts/*.py

# ─── Knowledge Base Stores (local build artifacts, can be regenerated) ────────
.kb/
.kb-data/

# ─── Debug Binary Artifacts & Bug Hunt Snapshots ─────────────────────────────
bug_hunt_*
!tests/stress_audit/
!tests/stress_audit/bug_hunt_*
debug_proc
debug_proc.rs
test_replace
test_replace.rs

# Large Log & Audit Files (internal only, not useful to contributors) ──────
# Note: *.log is already covered above; these are .txt variants that slip through
cargo_tests_output.txt
diff_output.txt
ubuntu_test_log.txt

clippy_err.txt
clippy_log.txt
audit_results.txt
audit_summary.txt
audit_report.json
audit_report_full.txt
CODE_AUDIT_SUMMARY.txt
ARCHITECTURAL_AUDIT.md
AUDIT_INDEX.md
CODE_LEVEL_AUDIT.md
DAMAGE_ASSESSMENT.md
debt_report.txt
system_audit.json
kb_audit.txt
kb_audit_truth.json
kb_ecs_queries.json
tensor_keys.txt
repo_map_results.json
compilation_log.txt
ergonomic_log.txt
ergonomic_log.txt

# ─── Root-Level Temp/Scratch MIRR & Verilog Files ────────────────────────────
# Actual examples belong in examples/, not root
crossbar_ergonomic.mirr
crossbar_good.mirr
crossbar_good.v
out.v
test_macro.rs
test_parser_grammar.mirr
test_parser_grammar.v
test_parser_grammar_fail.mirr
parser_patch.diff

# ─── LanceDB & crates test DBs ───────────────────────────────────────────────
crates/**/.kb-test-*/

# Coq/Rocq build artifacts
*.vo
*.vok
*.vos
*.glob
*.aux
.coq-native/
.lia.cache
.nia.cache

# Skills dev directory
.skills-dev/
