hostd/types.ts: derive SOCKET_PATH and PID_FILE from AGENT_NAME env
hostd/daemon.ts: read socket group name from AGENT_NAME env
setup-db-jail.sh: read DB_JAIL_NAME and DB_JAIL_IP from .env with fallbacks,
support JAIL_SUBNET_BASE alongside AGENT_SUBNET_BASE
Default throughout: 'clawdie' (unchanged behavior when AGENT_NAME unset).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---
Build: pass | Tests: pass — Tests 431 passed (431)
Allows Strapi (and any future app) to connect to the same PostgreSQL
instance without needing additional pg_hba entries.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---
Build: pass | Tests: pass — Tests 431 passed (431)
Creates the db jail via bastille, installs postgresql16 + pgvector,
configures listen/auth for the host subnet, creates the ai_brain DB
and user, applies all three schema migrations, and enables the jail
on boot. Reads all values from .env. Idempotent — safe to re-run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---
Build: pass | Tests: pass — Tests 431 passed (431)