swarm stage 1: instance identity, PSK, hive registry, announce loop
- navi/identity.py: adjective-animal names + uuid in instance.json
  (generated at install, renameable by hand)
- navi/swarm.py: HiveAnnouncer - periodic POST /announce to the hive
  with non-blocking reachability tracking (transitional logs, /health
  export, hive_status context provider reports outages to the agent)
- hive/: standalone FastAPI address book (SQLite, port 8087, PSK via
  X-Swarm-Key with .swarm-key.previous rotation window, TTL online
  status, host from client IP, port from payload). Not installed or
  started by default - run manually on the main server.
- ports moved to 8099 (API) / 8098 (UI MCP)
- install.sh: PYTHONIOENCODING=utf-8 in the systemd unit, generates
  instance.json and .swarm-key on fresh installs
1 parent a0aeae5 commit ad56550caa54f81caf7ca72cbd61dc4cedb165d9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 11 hours ago
Showing 21 changed files
View
.env.example
View
.gitignore
View
deploy/env.template
View
deploy/install.sh
View
docs/config.md
View
docs/index.md
View
hive/README.md 0 → 100644
View
hive/__init__.py 0 → 100644
View
hive/app.py 0 → 100644
View
hive/db.py 0 → 100644
View
hive/hive.service 0 → 100644
View
navi/api/routes/health.py
View
navi/config.py
View
navi/context_providers/hive_status.py 0 → 100644
View
navi/core/context_builder.py
View
navi/identity.py 0 → 100644
View
navi/main.py
View
navi/swarm.py 0 → 100644
View
tests/unit/test_hive.py 0 → 100644
View
tests/unit/test_identity.py 0 → 100644
View
tests/unit/test_swarm.py 0 → 100644