
.env
.env.local
.env.*
!.env.example

# macOS metadata
.DS_Store

# Local scratch directories — contain operator-only env files with real
# production admin/API tokens. Never commit.
tests_all/
integrations/abound/tests/source_env_vars.sh

# Stale insta snapshot proposals (review via `cargo insta review`)
*.snap.new

# Added by review-implementation skill
.review/

# Claude Code worktrees and lock files
.claude/worktrees/
.cr-worktrees/
.claude/scheduled_tasks.lock

# Sidecar tool data
.sidecar/
.todos/
.tmp/

target/

# Python
__pycache__/
*.pyc
/tests/e2e/.venv/

# Benchmark results (local runs, not committed)
bench-results/

# Coverage reports (local runs, not committed)
/coverage/

# Canary / E2E run outputs (per-run logs, screenshots, trace artifacts —
# CI uploads these via actions/upload-artifact; never commit local copies)
artifacts/

# WASM build artifacts (loaded from disk, not bundled)
*.wasm
!crates/extensions/packages/*/wasm/*.wasm

# Traces
trace_*.json

# Local Claude Code settings (machine-specific, should not be committed)
.claude/settings.local.json
.worktrees/
.ironclaw/

# De-slop loop ledger + local loop scratch (.claude/commands/deslop-reborn.md)
.work/
.review/

# Local-dev workspace artifacts: the WebChat v2 attachment lander writes
# uploaded files under a project workspace; when `serve` runs from the repo
# root they land in ./attachments/. These are user uploads, never source.
/attachments/

# The per-caller agent workspace. Local-dev sets `workspace_root` to the server's
# cwd, so `serve` from the repo root gives every caller
# ./tenants/<tenant>/users/<user>/, and anything the agent writes there -- a script
# it authored, a file it was asked to produce -- lands in the repo. Runtime output,
# never source: without this, a `git add -A` after a demo session commits an
# agent-written script into the tree (caught in review on #7171).
/tenants/

# Python cache
__pycache__/
*.pyc
*.pyo
*.pyd
engine_trace_*.json
tests/fixtures/llm_traces/live/github_dev_workflow_full_loop.json
tests/fixtures/llm_traces/live/github_dev_workflow_full_loop.log
# Per-test live-replay logs — generated when running `--ignored` live
# tests locally. Only the .json fixtures for each scenario are checked
# in; the .log files are local debugging artifacts.
tests/fixtures/llm_traces/live/*.log

# Local test artifacts
.anvil/
.codegraph/

# codebase-memory knowledge graph. Share only the compressed bootstrap snapshot;
# local metadata and runtime state remain per-environment.
# See CLAUDE.md -> "Code Discovery".
.codebase-memory/*
!.codebase-memory/.gitattributes
!.codebase-memory/graph.db.zst

# test-tools fixture-bundle build artifacts — regenerate with
# scripts/build-test-tools.sh; only sources/manifests/schemas/prompts are tracked.
test-tools/*.zip
test-tools/*/wasm-src/target/

# node_modules must never be committed — vendored JS deps belong to the package
# manager + lockfile, not git. A bare `node_modules/` (no leading slash) matches
# a directory of that name at ANY depth, so this catches every frontend
# (webui_v2, e2e, tooling, …) and stops the recurring accidental adds
# (#6298/#6305).
node_modules/

# Built frontend bundles. Scoped per-crate .gitignore files only cover the
# crate they live in, which let a sibling crate ship 3.5 MB of build output.
crates/*/frontend/dist/

# cargo-mutants writes its report tree (caught/missed/timeout lists, per-mutant
# logs, and a copy of each mutated diff) next to the manifest it is run from.
# It is a regenerable build artifact of a local audit, never source.
mutants.out/
mutants.out.old/

# Local TypeScript app directory — anchored to repo root so it does not
# silently exclude nested `app/` directories (e.g. crates/*/frontend/src/app/).
# Prefer .git/info/exclude for personal working directories.
/app/

# Skill bundles staged into a workspace at activation. Build output, never source.
.skills/
