# Byte-compiled / optimized / DLL
.serena/
__pycache__/
*.py[cod]
*$py.class

.claude/worktrees
.claude/scheduled_tasks.lock
.claude/projects
.claude/policy-scan-state.json
.claude/tilion/sidekick/
.claude/tilion/audit/
# a command's own checkout-scoped state — the tier's convention (spine.md → A command's own state)
.claude/run/

/.probe-screenshots/

/test-results

/feature-analysis

# Compiled Go binaries at the repo root. `go build ./cmd/<name>` without -o drops
# a binary named <name> into the CURRENT directory, so every cmd/ package has a
# stray-artifact name at the top level. Every entry is anchored to / so it matches
# only the root-level binary, never a same-named directory or file elsewhere
# (cmd/demoseed/, internal/tools/policylint/, packages/cli/…). Build via the
# Makefile instead, which writes to bin/.
#
# ENG-9464: this used to be four partial lists in four places and
# cmd/jurisdictioncodegen was in none of them — its 15.8 MB build output sat
# tracked at the repo root from #8f21d1b until a repo-wide text substitution
# (SL-173 module rename) rewrote bytes inside the compiled artifact. One list,
# covering every cmd/ package: extend it when you add a cmd/ package.
/_vaultdump
/agentd-mock
/agentidentitygen
/appctl
/auditloggen
/auditlogredact
/auditlogworkspacebackfill
/classificationcodegen
/clear-dev-org
/companion-walk-evidence
/connectorctl
/connectord
/consumersurfacegen
/demoseed
/devdb
/devenv
/e2e-roundrobin-proxy
/fieldlimitsgen
/genconfigref
/jurisdictioncodegen
/migrate
/ontology-import
/paginationgen
/permissiongategen
/policylint
/rendergen
/routesurfacegen
/substrate-verify
/tilionfilesworkspacebackfill
/validatorgen
/writeerrgen
/zetify
/zetify-git
/zetify-input-shim
/zetify-server
/zetifyd
/zetifyctl

# Root-level binaries whose build target no longer has a cmd/ package (retired or
# renamed); kept so an old artifact left in a long-lived checkout stays ignored.
/_generate
/demo-bootstrap
/dispatchgatelint
/execd
/tilion
/tilion-api
/tilionctl
/tiliond
/visibilitylint

IDFILE

/*.test
/seed
TPoV/
node_modules/
node_modules
/seed/
/*.out
*coverage-final.json
/*.png
/*.log
/*.txt
/*snapshot.md
*.tmp/
/.cache/

.cursor/debug-*
docker-compose.worktree.yml

/server.test
/db.test
/e2e.test
/web/tilion-api

/tilion-api
/bin/
.tilion
.npm-install.sentinel

# Virtual environments
.venv/
venv/
ENV/
env/

# Distribution / packaging
# Ignore build artifacts but allow descent (no trailing-slash directory prune)
# so the curated exec-sandbox OCI image source can be re-included below.
build/*
# …the curated exec-sandbox OCI image source IS tracked (PRD 0076 Task B7).
!build/exec-sandbox/
dist/
*.egg-info/
*.egg

# PyInstaller
*.manifest
*.spec

.tilion/coverage.json

# Installer
*.msi

# Testing / coverage
.coverage
.coverage.*
coverage-go.out
coverage-unit.out
coverage-db.out
coverage-db-parallel.out
coverage-db-serial.out
coverage-analysis.out
htmlcov/
.pytest_cache/
.tox/
.nox/

# Type checkers / linters
.mypy_cache/
.ruff_cache/
.pytype/

# IDE / editor
.idea/
.vscode/
*.swp
*.swo
*~

# Environment
.env
.env.*
*.env
!.env.example
!.env.defaults

# OS
.DS_Store
Thumbs.db

# SQLite databases
*.db
*.db-wal
*.db-shm

# Generated tilion artifacts
.tilion/topology.yaml
.tilion/coverage.json

# uv
.uv/

# Air (Go hot-reload)
tmp/
tmp_connectord/
# Per-demo-org connectord build dirs + generated air configs (scripts/dev-connectord.sh)
tmp_connectord_demo_*/
build-errors.log

# Dev logs (tee'd from make dev)
logs/

# Worktree artifacts
.worktree-slots

# One-off prototypes / planning docs
feature-builder.html
future-features/
web/coverage/

# Playwright MCP logs
.playwright-mcp/

# Playwright HTML/screenshot reports
frontend/apps/web/playwright-report/
frontend/apps/web/playwright-layout-report/
frontend/apps/web/test-results/
frontend/apps/web/test-results-fidelity/
frontend/apps/web/tests/fidelity/test-results/
# PRD 0582 B10: the fidelity suite's run-artifact reports (pg13-composed-browser.json)
# are local run outputs, never committed — the dir itself is tracked via .gitkeep so
# the spec can always write its artifact (design 5a; mirrors tests/eval/results/).
frontend/apps/web/tests/fidelity/results/**
!frontend/apps/web/tests/fidelity/results/.gitkeep
# Lock-tier mockup review artifacts (design-fidelity-loop.md §1.5) — regenerated
# on every run and pasted into the approval message, never a committed baseline.
frontend/apps/web/tests/fidelity/mockup-screenshots/
# Playwright dev-session storageState (written by tests/e2e/global-setup.ts)
frontend/apps/web/tests/e2e/.auth/
frontend/apps/web/tests/playwright/screenshots/
tests/playwright/l*-out/
tests/playwright/screenshots/

# Admin app design-fidelity harness (PRD 0359 F3) — mirrors the web app entries above.
frontend/apps/admin/playwright-report/
frontend/apps/admin/test-results/
frontend/apps/admin/test-results-fidelity/
frontend/apps/admin/tests/fidelity/test-results/
frontend/apps/admin/tests/fidelity/mockup-screenshots/
# No trailing slash: with one, this pattern matches only DIRECTORIES, and the
# entry that actually got committed here was a SYMLINK (mode 120000) pointing at
# one developer's absolute home path — which git happily tracked past this rule
# and which breaks module resolution in every other checkout.
tests/playwright/node_modules

# Benchmark run results (local snapshots, not tracked)
tests/benchmark/results/

# M365 live-lane outcome marker (PRD 0637 B11): tests/e2e/results/m365_live/
# holds outcome.json, written on every exit path by the live e2e and uploaded
# as a CI artifact — never a tracked file.
tests/e2e/results/

# Retrieval-eval run reports (local snapshots, not tracked — the results/
# dir itself is tracked via results/.gitkeep so `make eval-retrieval` always
# has somewhere to write)
tests/retrieval-eval/results/*.json

# Answer-quality eval run reports (local snapshots, not tracked — mirrors
# tests/retrieval-eval/results/ above; the dir itself is tracked via
# results/.gitkeep, PRD 0360 Task B12)
tests/eval/results/*.json

# PRD 0582 Task B7 (E20): the composed lane's results subdirectory — recursive
# ignore (the *.json rule above matches only the top level) with the directory
# itself tracked via .gitkeep so the lane always has somewhere to write. The
# star-star form (NEVER the bare dir: a directory pattern stops git from
# descending, which would make any negation unreachable) keeps the parent
# descending, so the two negations below can re-include files:
# answer_payload.json is a COMMITTED fixture — Leg B's recorded-turn input,
# scope-ledger row 15 — not a run artifact, and must survive checkout in CI.
tests/eval/results/pg13_composed/**
!tests/eval/results/pg13_composed/answer_payload.json
!tests/eval/results/pg13_composed/.gitkeep

# Generated demo running configs (contain live API keys — never commit).
# Unanchored (not scoped to knowledge/demos/*/) because demoseed apply accepts
# ANY existing bundle.yaml path (resolveBundlePath, cmd/demoseed/apply.go),
# not just the knowledge/demos/<name> convention (ENG-3071).
RUNNING.md
tmp_execd/

# PRD 0090 native-Postgres dev cluster (per-clone, never committed)
.localpg/
.localpg.lock
# SEC6/SEC2: per-checkout superuser password (mode 0600) + private socket dir —
# never committed, never world-readable
.localpg.pw
.localpg-socket/
.claude/settings.local.json
audit-shots/
audit-shots*/

# accidentally-committed Go build cache (ENG-6046): a machine-local build cache
# has no place in version control and fails the end-of-file-fixer hook on every
# push. `go clean -cache` regenerates it on demand.
/.private-gocache-*/

# opencode CLI model-catalogue cache written into the harness package dir by
# tests that exercise the resident harness. Machine-local, regenerated on demand.
/internal/agentd/harness/.cache/

# PRD 0252: seed-generated launcher (machine-specific abs paths) + python caches
packages/app-document-analyzer/run.sh
# PRD 0261/ENG-985: same seed-generated/machine-specific-path shape as the
# Document Analyzer's above, for the Hello App's sayHello action.
packages/app-hello/run.sh
**/__pycache__/

# Frame-runtime build output (single-surface agent-app renderer) — built via
# `npm --prefix frontend/apps/web run build:frame-runtime`, not committed (the
# 3.4MB JS bundle exceeds the large-file guard).
#
# PRD 0517 removed everything that LOADED these bytes: the frame document, the
# GET /app-frame-runtime.{js,css} routes and internal/appframe's go:embed of
# this directory, along with the committed README that kept the embed
# non-empty. The build target, the CI steps that run it, the Dockerfile COPY
# and process-compose's frame-runtime process all survive and still write here,
# so the ignore lines stay — but nothing reads what they ignore. Completing
# that removal is the frontend half of R5 and is NOT this file's to do; see the
# note in .github/workflows/ci.yml's app-frame-runtime build step.
/internal/appframe/appframedist/app-frame-runtime.js
/internal/appframe/appframedist/app-frame-runtime.css

# Chat-widget runtime build output (PRD 0287 platform-served agent chat
# widget) — built via `npm --prefix frontend/apps/web run build:app-chat-widget`,
# not committed (same large-file guard as appframedist above).
# appchatwidgetdist/README.md keeps the go:embed directory non-empty on a
# fresh checkout.
/internal/server/appchatwidgetdist/app-chat-widget-runtime.js
/internal/server/appchatwidgetdist/app-chat-widget-runtime.css

.localfiles/

# PRD 0462: the bundled Go proxy binary for the `zetify` Python distribution,
# produced by `packages/cli/hatch_build.py` into the source tree during a
# wheel/editable build. A compiled artifact, never committed.
packages/cli/src/zetify_cli/_bin/
# PRD 0715: the generated config schema copied into the import package as wheel
# data by `packages/cli/hatch_build.py` during a wheel/editable build. Its source
# is the committed repo-root `contracts/config/zetify-config.schema.json`, so the
# in-tree copy is a build product and never committed.
packages/cli/src/zetify_cli/schema/
# Generated by the CLI release job (packages/cli/third_party_notices.py, ENG-10741).
packages/cli/THIRD_PARTY_NOTICES

# TypeScript incremental build caches — regenerated by every build, so tracking them
# churns the tree on any `tsc` run and the end-of-file-fixer rewrites them on every push.
*.tsbuildinfo

# Generated navigation indexes — derived from frontmatter, never authored.
# Deliberately NOT committed: every PR touching a tier file had to regenerate
# roadmap.md (133 commits in 14 days), so any two concurrent PRs conflicted by
# construction, on a diff carrying no information. Generate on demand:
#   python3 knowledge/scripts/gen_roadmap.py
#   python3 knowledge/scripts/gen_decision_ledger.py
# (or all of them at once: `make ledgers`)
knowledge/roadmap.md
knowledge/adr-index.md
# ENG-12971 (knowledge/decisions/2026-09-28-derived-ledgers-not-committed.md): the same
# rule, applied to the two derived files every register edit rewrote — 419 and 243
# touches on `main` in 30 days, and a conflict in 5 of 11 conflicting open PRs.
#   requirement-status.md  — rendered on demand: python3 knowledge/scripts/gen_requirement_status.py
#   .statements.lock       — retired outright; the statement guard compares against the
#                            PR base instead, so nothing is generated. Ignored so a stale
#                            tool that still writes it can never re-commit it.
knowledge/requirement-status.md
knowledge/requirements/.statements.lock

# ENG-12980 (FLT-045, the same rule): the generated knowledge TABLES are derived from
# `rows/*.json` and are rendered on demand — never committed — so two PRs adding different
# rows stop colliding on a shared file. Each has a committed hand-authored shell
# (`<name>.tmpl`) that carries the prose, headers and markers; the register/map itself is
# generated from that shell plus the fragments:
#   scripts/gen_knowledge_registers.py   slices.md, programs.md
#   scripts/gen_knowledge_fragments.py   the fragment-backed requirement registers and feature maps
# (`make ledgers` renders every derived artifact; CI renders them in-run, so a register the
# derivation cannot read still fails the build).
#
# ENG-18248: every fragment-backed requirement register leaves git (not only the three hottest
# ENG-12980 untracked). `channels.md` is the one requirement register that is still hand-authored
# as a full table (no row fragments / not a gen_knowledge_fragments TARGET) and stays tracked.
knowledge/slices.md
knowledge/programs.md
knowledge/requirements/*.md
!knowledge/requirements/channels.md
knowledge/features/agents.md
knowledge/features/connections.md

# Go build cache accidentally committed in #7071 (ENG-6002) — 3,913 files, 606 MB.
# The name carries an issue key, so match the whole family rather than one instance.
.private-gocache*/

# ../infra-style sibling checkouts must never be committed as gitlinks (ENG-9117:
# a wip-salvage commit captured one; the directory is a separate repo worktree).
/fleet/

# `make verify` scratch — a run log, never an artifact (ENG: committed by #10130,
# where it then modified itself under the whitespace hook and blocked every local push)
.verify-tmp/

# Per-box daemon configs (ENG-9937 / ENG-9953): a wip(salvage) commit shipped
# config.app-runtime.yaml — a dev-only containerd.image_source.app pointing at
# a loopback registry — after its own drop, three times, because the runbook
# that creates it (apps/wum-quickcheck/README.md step (d)) writes it at the
# checkout root and nothing ignored it, so every salvage snapshot re-added it.
# The pattern closes the class, not the instance; the committed exception is
# the checkout-agnostic ${env:} interpolation config.dev.yaml. Belt to the
# brace: scripts/validate_config_allowlist.py (pre-commit + CI) fails any
# tracked root-level config.*.yaml outside that allowlist, and this rule
# itself is pinned by the same guard. Unanchored: the flow creates the file
# wherever the developer happens to run it.
config.*.yaml
!config.dev.yaml

# ENG-9953: class-level belt for the committed-config allowlist. Repo-root
# `config.*.yaml` is machine-state (host-specific image_source, local registry
# addresses) unless it is the reviewed checkout-agnostic exception. Pair with
# scripts/validate_committed_config_allowlist.py — gitignore is the belt, the
# validator is the brace that cannot be SKIP'd in CI.
/config.*.yaml
!/config.dev.yaml

# Fleet-session scratch (`.tmp-<issue>-<suffix>/` — issue readers, comment posters,
# state movers, PR bodies, push logs), never artifacts. Third wip(salvage)-sweep
# incident (ENG-9954 rework, 2026-09-08): a salvage commit swept .tmp-eng9954-a3f7/
# onto the PR branch and reddened `Python` (ruff format-check) and `Pre-push Parity`
# (trailing-whitespace), so the verify gate refused the branch on red CI. Unanchored:
# sessions create it wherever they happen to run. Same remedy as /fleet/ (ENG-9117)
# and config.app-runtime.yaml (ENG-9937) before it.
.tmp-*/

# e2e-gate zetify binary (`make test-e2e-gate-build` → `go build -o zetify-check-cli
# ./cmd/zetify`, ~83 MB), never source. Fourth wip(salvage)-sweep incident
# (ENG-10028 rework, 2026-09-08): a salvage commit swept zetify-check-cli onto the
# PR branch and reddened `Knowledge Validators` (ENG-9501 large-file ceiling), so
# the verify gate refused the branch. Unanchored: the build drops it wherever the
# target happens to run. Same remedy as .tmp-*/ (ENG-9954) before it.
zetify-check-cli

# warm-runtime hop-recorder output (`go test` writes it at the CWD root, then the
# containerd-lane action copies it to logs/warmruntime/hops.jsonl), never source.
# Fifth wip(salvage)-sweep incident (PRD 0568 salvage, 2026-09-10): the salvage
# commit swept hops.jsonl onto the PR branch. Unanchored: the test drops it
# wherever it happens to run. Same remedy as .tmp-*/ (ENG-9954) before it.
hops.jsonl

# Same salvage-commit sweep class as hops.jsonl (ENG-10662 rework): CI log captures
# dropped at repo root by the salvage path must never be tracked.
.ci-logs/

# Cookie jars (curl -c / -b) hold live session / refresh JWTs (legacy wire
# cookie names included — see internal/legacywire). A jar at checkout root is one `git add -A`
# from being staged — observed as an untracked `.jar` (Netscape cookie text)
# that `git check-ignore` did not match (ENG-10842). Prefer mktemp, /tmp, or
# $RUNNER_TEMP / $LANE_TMP; if one does land in the tree, ignore it. This repo
# has no Java, so *.jar is free. Belt pinned by
# scripts/validate_cookie_jar_gitignore.py. If a token is ever committed,
# rotate it — deleting the file is not a remediation (docs/production-access.md).
.jar
*.jar
*.cookies
