Architecture
Architecture decision records
The decisions that are expensive to change, with their context and consequences.
Each ADR records one decision that is expensive to change later: context, the decision, and its consequences. Status values: Proposed · Accepted · Superseded (link to successor).
| # | Title | Status |
|---|---|---|
| 0001 | TypeScript monorepo with shared packages | Accepted |
| 0002 | Implement EPICs by dependency, not number | Accepted |
| 0003 | Tenant isolation: RLS + composite foreign keys + explicit filters | Accepted |
| 0004 | Identity: EdDSA access tokens, rotating refresh tokens, machine credentials | Accepted |
| 0005 | Append-only audit via ingest table and per-org hash chain | Accepted |
| 0006 | GebSecure Policy Language (GSL) and the combining algorithm | Accepted |
| 0007 | Decision hot path: lazy transactions, one write, one Redis pipeline | Accepted |
| 0008 | PostgreSQL outbox and job tables instead of a separate broker | Accepted |
| 0009 | Credential broker and isolated connector execution | Accepted |
| 0010 | Envelope encryption with pluggable KMS | Accepted |
| 0011 | SSRF-safe outbound networking for every customer-controlled URL | Accepted |
| 0012 | Database Security Gateway: analyze, authorize per table, rewrite the AST, execute only regenerated SQL | Accepted |
| 0013 | Browser & computer-use security: gateway-driven browser, policy egress proxy, intent-escalated authorization | Accepted |
| 0014 | Usage metering and billing: durable rollups, Redis quota gate, owner-only billing state | Accepted |
| 0015 | Internal administration platform: separate service, separate identity, no silent tenant access | Accepted |
| 0016 | Reliability & scale: stateless replicas, PostgreSQL as source of truth, explicit degradation | Accepted |
| 0017 | Private deployment: one artifact set, values profiles and Terraform environments per model | Accepted |
| 0018 | Database read replicas with a write-only master password | Accepted |
| 0019 | Production email through the account that has SES production access | Superseded |
| 0020 | Universal connector onboarding: Connect → Assign → Secure → Activate → Monitor | Accepted |