Files
fez5587andClaude Fable 5 c8bfa0c0ab Slice 1: engine core — compose stack, db layer, company/employee API
- docker-compose.yml: Postgres 16 (schema auto-applied) + Redis, nonstandard
  host ports 5433/6380.
- engine/db.py: async psycopg pool, append_event in caller's transaction.
- engine/souls.py: versioned role charters (manager/engineer/qa) + reporting
  protocol appended to every soul.
- engine/main.py: POST/GET companies, employee hire with Hermes profile
  creation (outside tx, retryable; DB authoritative), event feed, archive
  with profile cleanup, global pause/resume in Redis.
- Verified live end-to-end: create -> 4 events + 3 real Hermes profiles;
  pause flips health; archive 204 removes profiles, keeps rows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 00:36:36 -05:00

29 lines
579 B
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: farmhouse
POSTGRES_PASSWORD: farmhouse
POSTGRES_DB: farmhouse
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U farmhouse"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6380:6379"
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata: