Skip to main content

Architecture Decision Records (ADRs)

This section captures significant architectural decisions for RiskFlow. ADRs are short, durable records of what we decided and why, so future contributors do not re-litigate settled choices.

Index​

ADRTitleStatus
003 — Vendor identityVendors are not Users; per-org links via VendorOrgLinkAccepted
004 — 404 over 403Return 404 for cross-tenant resource missesAccepted
005 — Unified signaturesSingle polymorphic Signature table for PnP and BAA; SHA-256 hash + DocumentVersionAccepted
006 — Audit log retention12 months in Postgres, then a monthly cron moves rows to a locked R2 bucket for 6 yearsAccepted

Format​

Each ADR follows a lightweight template:

  1. Status — Proposed, Accepted, Deprecated, or Superseded
  2. Context — The problem or forces at play
  3. Decision — What we chose
  4. Consequences — Trade-offs, follow-ups, and things to avoid

Related domain vocabulary lives in CONTEXT.md at the repo root.