# Python
.venv/
__pycache__/
*.pyc
*.egg-info/
dist/
build/
packaging/stage/

# ────────────────────────────────────────────────────────────────────────
# 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
*.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
