# Suggested .gitignore for a mirror repository that receives ai-memory
# snapshots. Copy this file into the root of your `$REPO_DIR` before the
# first `git add`.
#
# Rules of thumb:
#   - Keep the wiki (markdown source of truth) and any per-project _rules /
#     _prompts pages, since those are irreplaceable.
#   - Keep raw/ if you want the untouched observation ledger, drop it if you
#     want a small repository.
#   - Never commit derived state (db/) or downloaded weights (models/).
#   - Exclude common standalone secret files. This cannot redact credentials
#     stored inline in config.toml; omit that file or encrypt the repository.

# Common standalone secrets — belt and braces alongside SECRET_EXCLUDES.
config/*.env
config/**/*.env
config/auth.json
config/**/auth.json
config/.secrets
config/**/.secrets

# Server pidfile.
data/.serve.lock

# Bearer tokens and hook Authorization material (plaintext, mode 0600). These
# grant full access to the server; a mirror push would expose them. NEVER sync.
data/auth-tokens/
data/auth-token
data/auth-header

# Pre-delivery hook spool: transient, drained after delivery, and may hold
# un-sanitized payload text. Not durable memory (that is wiki/ and raw/).
data/hook-spool/

# Derived SQLite index (rebuildable via `ai-memory reindex`).
data/db/

# Local embedder weights (redownloadable on next boot; sha256-pinned).
data/models/

# Rotated tracing output.
data/logs/

# Any local scratch produced by the snapshot script itself.
*.tmp
*.swp
