Skip to content

ADR index ​

Source directory: docs/decisions/ on DaPulse/brilliant-ai main. Status noted when the ADR states it. One-liners only — open the ADR for rationale.

ADR fileSummary
access-control.mdChokepoint / policy model for who may reach what
admin-secrets.mdWrite-only secret management in staging/prod admin (#184)
app-hosting-wfp.mdPublished apps on Workers for Platforms
app-template.mdBlessed generated-app template shape
app-versioning.mdContent-addressed / version records for apps
auth.mdAuth0 hosted login over plain OIDC (supersedes WorkOS/Better Auth plans)
build-plane-runtime.mdConductor DO + computer + OpenCode v2 in-isolate. Coding agent superseded by Pi Durable / PiHarness in #546 (ADR text not updated; see docs/plans/piharness-experiment.md)
capability-model.mdCapabilities minted, never ambient; shared broker for apps/workflows/agents
coding-agent-evals.mdHow coding-agent quality is evaluated
coding-agent-harness.mdAgent harness / turn protocol (agent ends the turn, undo per turn). Still says OpenCode; the harness is Pi Durable since #546
coding-agent-models.mdModel routing / allowlists
coding-agent-skills.mdSkills library for the coding agent
coding-agent-tools.mdNative tools surface
db.mdSchemaless collections engine (packages/db)
hosting-cloudflare.mdCloudflare as hosting platform
integrations.mdConnections / Composio-style integrations + approval
posthog-llm-tracing.mdPostHog LLM analytics for live tracing (replaces LangSmith; #959)
payments-credits.mdCredits / metering direction
permissions-model.mdRuntime data role plus one combined builder/manager role; one SQLite DO per collection behind a stateless gateway; hard POC cutover (landed in #516; wiki)
prod-infra.mdAccounts, Aurora, Pulumi, secrets, CD (accepted 2026-09). Amended 2026-10-09 by #697: rows 9/10 are Secrets Store + secrets Worker as source of truth (wiki: Neon plan)
system-prompt.mdSystem prompt composition
tooling-gtm.mdTooling for go-to-market
workflows-runtime.mdWorkflow DSL + CF Workflows + codemode Functions

Plans (not ADRs) ​

Open epics and contracts live under docs/plans/ (e.g. workflows-v1.md, agents/, admin.md, mcp-server.md). Finished slice docs are deleted, not archived.

  • marketing-site.md — accepted plan (grill 2026-10-02); phases tracked as #300–#304. Phases 0–2 merged in #318; staging cutover steps 1–2 merged in #360/#361; prod cleanup #304 remains — wiki: Marketing site.
  • permissions-cutover-runbook.md — staging-then-prod hard cutover for #516: confirm the five Pulumi-minted keys (#541), tear down legacy apps, reset the public schema, migrate, reseed E2E (staging), deploy, then repair any tenant created during the cutover window that lacks resource rules (#545); no data rollback. Wiki: Permissions & app data.
  • neon-migration.md — merged in #620 (2026-10-08 17:07 IDT): drop AWS entirely. Five waves (staging DB, side-env branches, prod cutover, secrets, AWS teardown); decisions recorded: Cloudflare Secrets Store for secrets, R2 for Pulumi state (no Pulumi Cloud), both Neon projects adopted via import:, Hyperdrive on Neon's direct endpoint, per-wave rollback rules, Pulumi state moved to R2 before any AWS deletion. Wiki: Drop AWS: Neon migration plan.

PostHog LLM tracing ADR (#959, merged) ​

#959 (merged 2026-10-15 14:48 IDT by yoni-monday, merge e2107120, head 28de255f) replaces langsmith-live-tracing.md with docs/decisions/posthog-llm-tracing.md on main. The index row above now points at posthog-llm-tracing.md.

Wiki design notes: PostHog — LLM analytics (#959, merged).

Amended 2026-10-17 by #1001 (merged 09:13 IDT, merge 74ecb3d0): the ADR adds turn_source and catalogue cache costs on generations, and a "Which cost is real" section (PostHog's $ai_total_cost_usd already includes cache; the catalogue is what we bill). Wiki: PostHog — cache cost and turn source.