Skip to content

Architecture decision records

Each ADR records one decision: Status · Context · Decision · Consequences. Statuses: Proposed (not decided yet), Accepted, Superseded by ADR-XXXX.

# Decision Status
0001 Single Go binary; the runtime is a GitOps controller hosting N bots × M servers Accepted
0002 Self-hosted first, SaaS-ready design Accepted
0003 Reconciliation state in the runtime DB, stable keys, drift via gateway Accepted
0004 UI changes become git commits; config in git, data in DB Accepted
0005 Plugins in TypeScript, bundled by esbuild-in-Go (engine: superseded by 0018) Accepted, engine superseded by ADR-0018
0006 Capability-based plugin permissions, granted explicitly Accepted
0007 Generic admin UI generated from JSON Schemas Accepted
0008 Community portal as layered SDKs + forkable template Accepted
0009 “Server”, never “guild”, outside the Discord adapter Accepted
0010 One plugin instance per (bot, server) Accepted
0011 Git-based plugin registry + cicord.lock Accepted
0012 In-process Discord simulator behind the discord interfaces Accepted
0013 Apache-2.0 for everything Accepted
0014 disgo (rest + gateway only) as the Discord library Accepted
0015 Kubernetes-style YAML resources Accepted
0016 Community portal runnable as a Discord Activity Proposed
0017 cicord dev --sim: local runtime on the simulator, loopback-only Accepted
0018 Plugins run on QuickJS-ng compiled to WebAssembly (wazero): hard memory cap, killable CPU Accepted