# ============================================================================
# Build Directories
# ============================================================================
build/
build-*/
cmake-build-*/
out/
bin/
lib/
# infra/{lib,bin} are CDK SOURCE, not build output — re-include past the broad lib//bin/ rules
!infra/lib/
!infra/lib/**
!infra/bin/
!infra/bin/**
# market_data/ build artifacts (test runner has its own .gitignore for job_data/market_data/)
**/job_data/**
# ============================================================================
# CMake Generated
# ============================================================================
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
*.cmake.in
compile_commands.json

# ============================================================================
# IDE & Editors
# ============================================================================
.idea/
.vscode/
*.swp
*.swo
*~
*.png
.project
.cproject
.settings/
*.code-workspace
.epoch_storage

# ============================================================================
# OS Generated
# ============================================================================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# ============================================================================
# Dependencies
# ============================================================================
_deps/
vcpkg_installed/
conan/
node_modules/

# ============================================================================
# Python (if any scripts)
# ============================================================================
__pycache__/
*.py[cod]
*$py.class
.Python
*.egg-info/
.eggs/
venv/
.venv/

# ============================================================================
# Testing & Coverage
# ============================================================================
Testing/
build-coverage/
coverage-report
*.gcno
*.gcda
*.gcov

# ============================================================================
# Documentation
# ============================================================================
docs/_build/
docs/html/
doxygen/

# ============================================================================
# Secrets & Environment
# ============================================================================
.env
.env.local
.env.*.local
*.pem
*.key
secrets/

# ============================================================================
# Docker
# ============================================================================
.docker/

# ============================================================================
# Logs
# ============================================================================
*.log
logs/

# ============================================================================
# Temporary Files
# ============================================================================
tmp/
temp/
*.tmp
*.temp
*.bak
*.backup

# ============================================================================
# Package specific ignores
# ============================================================================
# Data files (too large for git)
*.parquet
*.arrow
*.csv
!**/test/**/*.csv

# Large binary files
*.o
*.a
*.so
*.dylib
*.dll

# Reference implementations
references/

# Generated/build files
.cache/
.clangd

# Generated StratifyX audit state. The scripts and source definitions are
# tracked; these files contain environment-specific IDs or expanded configs.
/services/stratifyx/docs/plans/data/event_trail_audit.json
/services/stratifyx/docs/plans/data/shape_defs.json
/services/stratifyx/docs/plans/data/shapes/

# Fern: OpenAPI spec staged from the build dir by scripts/generate_sdk.sh
fern/openapi/

test_output*
sprints/*

#.epoch_storage/
coverage_report/
coverage_html/

# Vendored vendor SDKs (cloned for porting reference; not part of the build).
packages/epoch-datasdk/ref/

# Generated grammar/EBNF artifacts (source of truth lives in
# packages/epoch-script/src/core/grammar/ and packages/epoch-script/grammars/).
grammars/lezer-epochscript/src/epochscript.grammar
grammars/tree-sitter-epochscript/grammar.js
/epochscript.ebnf

# Claude Code agent working dir — worktrees (embedded git repos), memory,
# projects, local settings, scratch. None of it belongs in the repo, and a bare
# `git add -A` would otherwise stage the agent worktrees as broken gitlinks.
.claude/
**/.claude/scheduled_tasks.lock

# Playwright MCP scratch snapshots
.playwright-mcp/

# ClangBuildAnalyzer capture blob (459M, regenerable via run_timetrace.sh)
docs/build_perf/measurements/*.capture

# Stray clang -ftime-trace artifact (accidental "-o -" output)
/-.json

# Local EpochAI working dir (not part of the backend repo)
/EpochAI/

# Isolated SDK packaging and verification output
.sdk-dist*/
.sdk-stage-*/
sdk/.venv/
sdk/node_modules
sdk/.venv312/
.sdk-installed/

# Generated local reports and acceptance artifacts
/output/

# FileModelArtifactStore creates this runtime coordination lock during validation.
/.locks/models/.lock
