
adminandClaude Opus 4.8
0c6f1c119b
Initial backend: FastAPI + Postgres FTS + questionnaire engine + RBAC + OTel/HyperDX/ClickHouse
Self-hosted single-tenant backend for the Counsel Scorecard law-firm scoring platform.
- FastAPI + SQLAlchemy 2 + Alembic on PostgreSQL 16 (20 tables, native enums)
- Generic questionnaire engine (question / answer_option / questionnaire / response / response_revision history) generalizing the spec's criterion/evaluation model
- PostgreSQL FTS: generated tsvector columns + GIN indexes + pg_trgm fuzzy fallback
- RBAC (admin/legal_ops/matter_owner/viewer) with DB-backed sessions + append-only audit_log
- present_i composite scoring with immutable per-cycle score_snapshot
- Observability: OTel Collector -> ClickHouse -> HyperDX (opt-in)
- Least-privilege DB roles, Docker Compose, Caddy reverse proxy
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>