# -----------------------------------------------------------------------------
# Myco .gitignore
#
# Originally authored for the v0.4.0 greenfield rewrite. The pre-rewrite
# legacy_v0_3/ quarantine was excreted by the v0.7.0 Major Autolysis pass;
# the literal directory no longer exists on disk.
# -----------------------------------------------------------------------------

# Python
__pycache__/
*.py[cod]
*.pyo
*.egg-info/
*.egg

# Build artifacts (`python -m build --outdir .dist` per v0.8.4).
.dist/
build/
*.whl

# Virtual environments
.venv/
venv/
env/

# Test / tooling caches
.pytest_cache/
.coverage
.coverage.*
# v0.5.10: coverage.json was tracked by accident in v0.5.x. Re-
# ignoring it here so ``coverage run --format=json`` output cannot
# re-enter the tree.
coverage.json
coverage.xml
htmlcov/
.mypy_cache/
.ruff_cache/

# OS files
.DS_Store
Thumbs.db

# Editor files
.vscode/
.idea/
*.swp
*.swo
*~

# Misc
*.orig

# Release ephemerals. gh release --notes-file, twine upload logs, and
# other scratch artifacts produced during the release playbook
# (documented in docs/primordia/agent_handoff_v0_4_1_2026-04-15.md §7)
# must never get committed or shipped in sdist.
.release_notes_*.md
upload*.log

# Environment secrets
.env
.env.*

# Claude Code / Cowork session-local settings.
# Stage C.2 (re-)introduced the tracked `.claude/hooks/` and
# `.claude/settings.local.json` subtree — those wire the SessionStart
# + PreCompact hooks to the v0.4.0 CLI.
# v0.6.11 added `.claude/agents/` and `.claude/commands/` for the
# 5 fungal-named subagents + 5 myco-* slash commands (project-level
# mirror of the plugin-bundle scope at <repo>/agents/ + <repo>/commands/).
# See docs/architecture/L2_DOCTRINE/boundary.md
# § "Subagents and slash commands (v0.6.11+)" for the surface contract.
# Everything else under .claude/ remains session-local and untracked.
/.claude/*
!/.claude/hooks/
!/.claude/settings.local.json
!/.claude/agents/
!/.claude/commands/
# Myco runtime substrate state — generated at runtime, not SSoT.
# (graph.json cache, shim_hits.json MB8 telemetry, autoseeded.txt
# skeleton marker, etc — every state file ends up here.)
.myco/state/**

# Graph-builder benchmark cache. Generating a 10 K-file synthetic
# substrate is expensive (~minutes wall-time, ~150 MB on disk) so
# .tests/benchmark/test_graph_scale.py caches it locally and reuses
# across runs. The cache is per-developer-machine; never commit it.
# Path corrected at v0.8.6 — `tests/` → `.tests/` per the v0.8.4
# root-cleanup hidden-prefix layout.
.tests/benchmark/.cache/

# Local worktrees (Claude Code spawns these for parallel-agent runs).
# Cleanup is automatic when the agent exits cleanly, but stale empty
# dirs accumulate after abrupt terminations; never commit them.
.claude/worktrees/
