# Virtual environment and interpreter caches
.venv/
__pycache__/
*.py[cod]

# Tool caches
.pytest_cache/
.mypy_cache/
.ruff_cache/

# Coverage output
.coverage
.coverage.*
coverage.xml
/htmlcov/

# Build artefacts. Anchored with a leading slash: without it, a trailing-slash
# pattern matches a directory of that name at any depth, and `build/` silently
# excluded src/commissura/build/ from version control for three commits.
# Every plain directory name below is anchored for the same reason.
/dist/
/build/
*.egg-info/

# Pseudonymisation keys. Never commit one: the whole design rests on the key
# staying outside the dataset, and a key in a repository is a key in every
# clone, every fork and every mirror, permanently.
*.key
*.pem

# Generated corpora and datasets. Reproducible from a seed, so committing them
# adds weight without adding information — and a raw corpus deliberately
# contains synthetic identifiers, which do not belong in version control even
# when they are fake.
/raw/
/dataset/
/corpus/

# Downloaded reference material (specifications, authority lists). Someone
# else's documents, fetched on demand and recorded by URL in CLAUDE.md.
/reference/

# Editor and OS noise
.vscode/
.idea/
*.swp
.DS_Store
Thumbs.db

# The brief, kept out of the repository on purpose. It is an instruction
# document as much as a project memory, and the author does not want it
# available to be copied as one. It stays on disk and is still the project's
# memory; it is simply not versioned here. The consequence is recorded in its
# own decision log: the command list it carries is no longer mechanically
# checked, and that guard moved to the README's command table, which is in the
# repository and is what a stranger reads.
/CLAUDE.md

# Audit and remediation paperwork, kept out of the repository on purpose.
# Internal working documents, not part of what a stranger reads in order to use
# the tool -- the same reason CLAUDE.md is excluded above. The decisions they
# recorded live in that file's log, which is where this project keeps decisions.
#
# The first version of this comment gave a security reason instead, and it did
# not hold: it called the reproduction steps "a recipe against any dataset built
# before they were fixed", when the findings were already closed, no release
# exists, no dataset was ever built outside one machine, and the documents remain
# readable in the history at cf57232 and 282bd91 regardless. A rule whose stated
# reason does not survive reading is worse than no rule, because the next person
# to weigh it has to work out that the justification was wrong before they can
# decide whether the rule is.
#
# Listed here rather than merely deleted because `git add -A` is how two of them
# got committed, in a commit whose message did not mention them.
/SECURITY_AUDIT.md
/ENGINEERING_REVIEW.md
/REMEDIATION_REPORT.md
/IDENTITY_RESOLUTION.md
/HARDENING_CHANGELOG.md

# The TEHDAS2 analysis set, excluded for the same reason as the five above:
# internal working documents, not part of what a stranger reads in order to use
# the tool. The gap matrix, the risk register, the target architecture, the
# remediation plan, the traceability matrix and the implementation report are
# how this project decided what to build; they are not how anybody uses it.
#
# They were committed in e45e704 before that was decided, so `git show
# e45e704:docs/TEHDAS2_GAP_ANALYSIS.md` still prints one in any clone. That is
# deliberate and not an oversight: the decision of 2026-11-16 settled that this
# project does not rewrite its history to remove internal paperwork, because the
# cost -- every commit SHA changed, every clone invalidated -- is certain while
# the risk is nil. A `git rm --cached` changes what HEAD carries and nothing
# else, and nobody should read the current tree and conclude otherwise.
#
# Not a security measure, and saying so matters: the comment above records what
# happened the last time a reason that merely sounded like one went unexamined.
/docs/
