Habib Ali Machpud

Constraints → choices → consequences

Architecture decisions

The choices behind Ask Habib, the alternatives considered, and the conditions that would make me revisit them.

  1. Architecture decision

    ADR-009: Evaluate relevance before rank fusion

    Use raw semantic and lexical evidence to decide acceptance, then fuse accepted rankings.

  2. 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.

  3. Architecture decision

    ADR-019: Start with exact vector search

    Measure retrieval correctness on the small corpus before introducing approximate vector indexes.

  4. Architecture decision

    ADR-004: PostgreSQL with pgvector

    Keep portfolio metadata and future vector retrieval in one transactional database.

  5. Architecture decision

    ADR-005: sqlc with explicit SQL

    Generate typed Go queries while keeping schema and transaction behavior visible in SQL.

  6. Architecture decision

    ADR-003: Cloudflare Tunnel for production ingress

    An outbound tunnel keeps application ports private and makes the intended public route explicit.

  7. Architecture decision

    ADR-016: Start on one VPS

    An intentionally small deployment topology, with explicit availability and recovery limits.

  8. Architecture decision

    ADR-017: Docker Compose on the VPS

    Use a fixed Compose runtime with pinned images and a restricted deployment gateway.