.DS_Store
__pycache__/
*.pyc
node_modules/

# npm pack smoke tests (sdk/node)
sdk/node/*.tgz
.build/
DerivedData/
*.log
*.tmp

# D16 canonical artifact (generated by scripts/determinism/)
canonical_replay.json

# Optional local decision replay frames (TG_CAPTURE_FRAMES / decision_log)
decision_log/

# Xcode / Swift
DerivedData/
.build/
app/build/
*.xcworkspace
*.code-workspace
*.xcuserstate
*.xcuserdata
*.dSYM
*.dSYM.zip

# Swift compiler caches
*.pcm
*.swiftdoc
*.swiftmodule
*.swiftsourceinfo

# macOS
.DS_Store

# Firebase
.firebase/
site/SITE/TrigGuardAI-Web.zip
docs/governance/COMPLETION_STATUS.md
docs/governance/PR_INSTRUCTIONS.md

# --- Local regulator & filing artifacts ---
HANDOVER_*.md
TrigGuard_Regulator_Submission_Pack.zip
_regulator_pack/

# --- Patent PDFs and drawings (outputs, not source) ---
docs/patent/*.pdf
docs/patent/*.PNG
docs/patent/Division_Drawings.md

# --- Patent process helpers (local only) ---
docs/patent/CHATGPT_REVIEW_PROMPT.md
docs/patent/DIVISIONAL_FILING_PACK_LOCAL.md
docs/patent/FALLBACK_AMENDMENTS_READY.md
docs/patent/NEW_MATTER_MITIGATION_*.md

docs/patent/Description.md
app/trigGuard AI/Sources/TrigGuardCore/_Quarantine/

# Remote-eval audit store (runtime logs; keep directory via .gitkeep only)
remote-eval-stub/audit_store/*
!remote-eval-stub/audit_store/.gitkeep

# Local / staging env (template committed as .env.staging.example)
.env
.env.staging
.env.*.local

# Local tooling — ignore .cursor contents, not the dir itself, so negation can un-ignore paths
# (Git does not re-include children if the parent .cursor/ entry is ignored.)
.cursor/*
# Track shared Cursor rules for the monorepo (agents must follow them in CI and locally).
!.cursor/rules/
!.cursor/rules/**
!.cursor/commands/
!.cursor/commands/**
!.cursor/tasks.json
!.cursor/config.json
!.cursor/plugins/
!.cursor/plugins/trigguard-determinism-guardian/
!.cursor/plugins/trigguard-determinism-guardian/**
!.cursor/plugins/trigguard-team-notes/
!.cursor/plugins/trigguard-team-notes/**

# Local PR drafts
.pr_body_*.md

# Local virtual environment (never commit venvs)
.venv/
.venv-ip/
.venv-*/
.pytest_cache/
# Python local builds (sdist/egg; never commit)
**/*.egg-info/
.eggs/

*.xcresult
tmp/
coverage/
.agent-site-work/

# Meeting Vault local data (privacy — never commit)
TrigGuardMeetingVault/

# Brand assets live in https://github.com/TrigGuard-AI/Brand (see docs/BRAND_REFERENCE.md)
Brand/*
# Allow deterministic logo pipeline (SVG source + exporter) in-repo
!Brand/TrigGuardProductLogos/

trigguard_private_key.pem
trigguard_public_key.pem
test/fixtures/valid_receipt_authority_public.pem
# TrigGuard Cloud — local Ed25519 key for npm run sign-bundle (never commit)
packages/trigguard-cloud/.bundle-signing-private.pem
receipt.json
# Deterministic conformance replay fixtures (tracked; must not match generic ignore above)
!conformance/fixtures/evidence-replay/**/receipt.json

# Next.js (prevent partial commits)
.next/
.next/*
!.next/README.md
# App packages (e.g. apps/console) — never commit build output (triggers false secret alerts)
apps/**/.next/

# Build outputs (prevent partial commits)
dist/
dist/*
!dist/README.md
generated/*
!generated/README.md
# Ship ncc bundle for GitHub JavaScript action (node20; see trigguard-github-action/decision-gate/README.md)
!trigguard-github-action/decision-gate/dist/
!trigguard-github-action/decision-gate/dist/**
!integrations/github-action/dist/
!integrations/github-action/dist/**
!.github/actions/trigguard-gate/dist/
!.github/actions/trigguard-gate/dist/**
build/

# Cache
.cache/
**/cache/
*.pack

# Release manifest (generate with scripts/generate_release_manifest.sh; see release/release_manifest.example.json)
release/release_manifest.json
release_manifest.json

# TypeScript incremental (composite / tsc -b)
*.tsbuildinfo

# make demo / run_local_demo.sh PIDs
.tg_demo_core.pid
.tg_demo_stub.pid

# Large binary assets (use LFS or external hosting; repo hygiene enforces 10MB limit)
core/client/attached_assets/*.mp4
.trigguard/*
!.trigguard/execution_surface.yaml
*.tsbuildinfo

# Execution integrity audit outputs (generated)
scripts/audit/execution_paths.json
reports/execution_integrity_report.json
Reports/execution_integrity_report.json
Reports/evidence/generated-trust-graph-records.json

# Ephemeral reality probe state (may contain tg_live_* — never commit)
Reports/reality/*-state.json
Reports/reality/restart-durability-state.json

# Console verification reports (generated — do not commit)
apps/console/Reports/

# Autonomous validation k6 outputs (local/CI)
infra/autonomous-validation/.runs/

# Local git worktrees (never commit)
.worktrees/

# Cloud endurance local plans, state, credentials, and generated evidence
infra/benchmarks/cloud-endurance/.terraform/
infra/benchmarks/cloud-endurance/*.tfstate*
infra/benchmarks/cloud-endurance/tfplan*
infra/benchmarks/cloud-endurance/terraform-plan.txt
infra/benchmarks/cloud-endurance/source-*.bundle
infra/benchmarks/cloud-endurance/*.auto.tfvars
infra/benchmarks/cloud-endurance/terraform.tfvars
runtime/endurance/

# Developer playground + Docusaurus hub (install artifacts only)
playground/node_modules/
docs-site/node_modules/
docs-site/.docusaurus/
docs-site/build/

# Final dirty-tree settlement 2026-08-12 — local evidence vaults (do not bulk-commit)
.tmp-gcloud/
runtime/cloud-endurance/profile/
runtime/cloud-endurance/evidence/
runtime/cloud-endurance/recovered/
runtime/cloud-endurance/frozen-images/
runtime/benchmarks/checkpoints/
/Reports/isambard-compute-efficiency/
/Reports/github-artifact-cleanup/
/Reports/repository-governance/
/Reports/model-quality-execution-safety/
/Reports/workspace-governance/robotics-reconciliation-2026-08-12/
# Research substrate: ignore bulk; track only frozen product packs + live authority
/research/*
!/research/CANONICAL_DIRECTORY_AUTHORITY.md
!/research/datasets/
/research/datasets/*
!/research/datasets/CANONICAL_DATASET_REGISTRY.md
!/research/datasets/frozen/
/research/datasets/frozen/*
!/research/datasets/frozen/TG_SAFE_ADAPTATION_DATASET_V1/
!/research/datasets/frozen/TG_SAFE_ADAPTATION_DATASET_V1/**
!/research/datasets/frozen/TG_EXECUTION_BINDING_DATASET_V1/
!/research/datasets/frozen/TG_EXECUTION_BINDING_DATASET_V1/**
!/research/program/
/research/program/*
!/research/program/state/
/research/program/state/*
!/research/program/state/CURRENT_RESEARCH_STATE.json

# Track external dataset acquisition policy (not bulk payloads)
!/research/external_datasets/
/research/external_datasets/**
!/research/external_datasets/DATASET_ACQUISITION_POLICY.md
