# Python
#
# ⚠️ This file is ALSO the exclusion list for packaging/build_deb.sh
#    (rsync --exclude-from=.gitignore). Do NOT add '!negation' lines: gitignore reads them
#    as "un-ignore", rsync reads them as "clear every rule so far" -- which would silently
#    disable all exclusions above it and ship host state in the .deb. The build refuses
#    such lines outright (peer_review round 3 #5).
.venv/
__pycache__/
*.pyc
*.egg-info/
dist/
build/
packaging/stage/
packaging/stage-macos/

# ────────────────────────────────────────────────────────────────────────
# Host-specific operations do NOT live in this repo.
# This repo is the portable AGENT software — it should make sense on any
# server. Everything that is only meaningful on one particular host (its
# ops scripts, user systemd units, dashboards, fix packages, dashboards,
# host SSH keys) lives in the separate host repo instead:
#
#     poseidon (this dev host) -> tea.ratsch.org/hugh/poseidon-ops (~/poseidon-ops)
#
# When adding a file, ask: "would a fresh server understand and want this?"
#   yes -> keep it here.   no -> it belongs in that host's ops repo.
# ────────────────────────────────────────────────────────────────────────

# Secrets — per-host, never shared
.env

# ── SSH / TLS private keys & credentials — NEVER commit. ────────────────
# Ignored explicitly AND by pattern so a stray `git add -A` can't leak them.
_ssh_key
_ssh_key.pub
*_ssh_key
*_ssh_key.pub
id_rsa*
id_ed25519*
id_ecdsa*
id_dsa*
*.pem
*.key
*.ppk
known_hosts
.netrc
.git-credentials

# ── Per-host agent memory & state — NEVER commit these. ─────────────────
# Each server keeps its own local copies of memory/knowledge/tooling;
# sharing them would leak one server's context to the other agents (and
# overwrite their own memory).
memory.md
session-log.md
.memory_index.sqlite3
.memory_index.sqlite3.tmp
.chat_history.sqlite3
.chat_history.sqlite3-wal
.chat_history.sqlite3-shm
*.bak-*
continuation.md
continuation.log
conversations.md
docker-services.md
knowledge/
desync_watch.sh
.desync_watch_state
desync_events*.log
resume_watch.sh
resume_watch.py
resume_events.log
.resume_watch_state
.resume_watch_seen
knowledge_staleness_check.sh
systemd/knowledge-staleness-check.service
systemd/knowledge-staleness-check.timer

# ── Loose per-host outputs (kept locally, not shared) ───────────────────
stress_test_results.json
swarm_stress_test*

# Per-Pi config backups (contain wpa_supplicant PSK + authorized_keys - local only)
pi-backup*/

# ── Runtime state / transcripts — regenerated locally, never shared ─────
last_run.log
last_run.log.*
.sh_known_hosts
.ssh_known_hosts*
hey_hugh.log
hey_hugh.py

# ── Agent runtime state (peer-review hardening, 2026-10-12) ─────────────
# Capped tool outputs spilled to disk, and the cost/monitor bookkeeping files.
.tool_output/
.cost_state.json
.monitor_state.json


# Temp scratch files (commit messages, plans) — never commit
.*.tmp

# One-off scratch / landing-page prototypes (not portable agent software)
tmp/
tmp-opal-radio-check.sh
memory_patch_block.txt
store-coming-soon/
store-demo/
