Constraints → choices → consequences
Architecture decisions
The choices behind Ask Habib, the alternatives considered, and the conditions that would make me revisit them.
Architecture decision
ADR-009: Evaluate relevance before rank fusion
Use raw semantic and lexical evidence to decide acceptance, then fuse accepted rankings.
Architecture decision
ADR-018: Keep lexical search a first-class feature
Make published evidence discoverable without an AI provider, with its own bounded API and operational checks.
Architecture decision
ADR-019: Start with exact vector search
Measure retrieval correctness on the small corpus before introducing approximate vector indexes.
Architecture decision
ADR-004: PostgreSQL with pgvector
Keep portfolio metadata and future vector retrieval in one transactional database.
Architecture decision
ADR-005: sqlc with explicit SQL
Generate typed Go queries while keeping schema and transaction behavior visible in SQL.
Architecture decision
ADR-003: Cloudflare Tunnel for production ingress
An outbound tunnel keeps application ports private and makes the intended public route explicit.
Architecture decision
ADR-016: Start on one VPS
An intentionally small deployment topology, with explicit availability and recovery limits.
Architecture decision
ADR-017: Docker Compose on the VPS
Use a fixed Compose runtime with pinned images and a restricted deployment gateway.