# BT configuration file (personal settings)
.bt/*
!.bt/claude/
!.bt/hooks/
# Retained CI failure logs (14d TTL, see cilog.RetainFailureLogs) — evidence, not history
.bt/claude/ci/logs/
# Pre-deploy gate run entries (see cilog.DeployNotesSubdir) — machine-local, because
# a deploy commits nothing and a dirty tree aborts the next deploy's clean-worktree check
.bt/claude/ci/deploy/
# /digest per-run working artifacts (activity.md, drafts) — scratch, not the durable archive
.bt/claude/digest/work/
# Pipeline monitor snapshot (bti monitor) — machine-local for the same reason as
# the deploy entries above: it is rewritten on an hourly cadence, so tracking it
# would mean ~24 state-only commits a day and a commit on cycle paths that
# otherwise commit nothing. Sharing it across clones would buy nothing — the
# scheduler cadence and the operator's review are the same single-clone serial
# roster (.claude/loops/operator.yaml), so the writer and the reader are colocated
# by construction. A clone that has never ticked simply reports its window as
# "(no review recorded yet)" rather than reporting a wrong one.
.bt/claude/pipeline-monitor/

# BT temp files. NOT synced to remote workers — mutagen.go's ignoreFlags()
# carries `--ignore=.tmp` (this comment claimed the opposite until bt-N2u9Qz;
# the exclusion has been there all along, and result manifests come back via
# the stderr trailer protocol rather than sync).
.tmp

# Scratch: transient session notes untracked; retained design refs tracked
.scratch/*
!.scratch/retained/
!.scratch/retained/**

coverage.out

.DS_Store
test-logs
.env*

# bt log output (test artifacts, xcresults, command logs)
.logs/

# Xcode user data (window state, breakpoints, etc.)
xcuserdata/
# Build output directories (esbuild, tailwind, Xcode)
# Keep .dist placeholder for Go embed (directories must exist at compile time)
# Logos are copied from static/ directories during build (Static config)
**/.build/*
**/.dist/*
!**/.dist/placeholder
**/build/
!project/cmd/bt/build/

# Node modules
node_modules/

# Python cache
__pycache__/
*.pyc

# OCaml local opam switch (created by bt setup)
_opam/
/.playwright-mcp/

# TypeScript compiled output (regenerated by bt build)
# Ignore compiled JS in dist/ but keep placeholder.js for Go embed
**/dist/**/*.js
!**/dist/**/placeholder.js

# Service console intermediate JS files (esbuild bundles from .ts directly)
project/console/admin/**/*.js
!project/console/admin/**/*.min.js

# Phosphor icons are tracked in git (needed for Cloud Build deploys)
# They're synced from node_modules by `bt generate`

# Worktree directories (auto-generated for work sessions)
worktree-*/
bin/
!.claude/bin/

# Claude Code harness runtime lock
.claude/scheduled_tasks.lock

# bt cmd binary (built from bt/cmd/)
/cmd

# btar cmd binary (built from `go build btar/cmd/btar` at repo root)
/btar

# BTAR test artifacts
btar/btar
btar/test.btar
btar/test-output/

# OpenAPI intermediate files (ephemeral build artifacts)
# JSON schemas in schema/dist/ are committed for distribution
schema/dist/**/*.openapi.yaml

# Deploy staging directory (generated from schema/dist/)
_site/

# Large ML models - downloaded on demand, not committed
*.mlpackage
.dev-models/
project/app/sidequest/ODRResources/

# Gemma 3N test fixtures - downloaded by bt setup from GCS
project/pkg/gemma3n/Gemma3nKit/fixtures/

# Gemma 3N model weights - generated by fixturegen. NOT synced to workers:
# mutagen ignores this path (ignoreFlags in internal/worker/mutagen.go), and
# model resolution is machine-wide via ~/.bt/cc/models/gemma3n.
project/pkg/gemma3n/models/

# Model eval HTML reports - generated locally, not committed
project/pkg/gemma3n/Gemma3nKit/model-eval-report.html

# Distribution reports - generated locally during test runs, not committed
project/pkg/gemma3n/Gemma3nKit/distribution-reports/

# Pulumi binary (appears if `go build` is run in this directory)
project/cmd/bt/internal/setup/pulumi/pulumi

*.btar
# ...but the committed test fixtures are deliverables, not build artifacts.
# Git only ignores UNTRACKED files, so the fixtures already in these
# directories survive the rule above by accident of having been added before
# it. A NEW fixture dropped into one of them is silently ignored — it passes
# every local test, then is simply absent for everyone else. These negations
# make that impossible (bt-TBHZ9N).
!project/pkg/btar/testdata/conformance/*.btar
!project/pkg/btar/cmd/btar/testdata/*.btar
!project/pkg/btar/BtarKit/Tests/BtarKitTests/Resources/*.btar

# Credentials — defense-in-depth; real secrets live in GCP Secret Manager
*.pem
*.key
*.crt
*.cer
*.p12
*.pfx
*.jks
id_rsa
id_rsa.pub
id_ed25519
id_ed25519.pub
!project/pkg/auth/apple_app_attestation_root_ca.pem
