RFCs
Ratified architectural decisions across the Koder Stack.
-
README
README -
Generative UI via KVG (Koder Vector Graphics)
draft
ai-RFC-001-generative-ui-via-kvg -
Apidocs (AI API Docs Portal): foundations
accepted
apidocs-RFC-001-foundations -
Billing (Usage Tracking): foundations
superseded
billing-RFC-001-foundations -
brand-RFC-001 — Brand site architecture
ratified
mandatory
Brand assets (logo, color, typography, icon, downloads, press, legal) live as subpages of the existing `brand.koder.dev` Jet vhost, which is the Area-9-of-9 hub of the Koder ecosystem ("How the ecosystem shows itself to the world. Marketing sites, brand assets, public documentation"). The Area-9 hero stays at `/`; the brand-assets pages land at `/logo/`, `/color/`, `/typography/`, `/icon/`, `/downloads/`, `/press/`, `/legal/`. Path C of three reconciliation paths considered; preserves the 9-Area URL symmetry, implements the textual promise of the Area-9 hub, zero migration. KDS at `kds.koder.dev` remains the dev reference.
brand-RFC-001-brand-site-architecture -
Cache (Inference Cache): foundations
accepted
cache-RFC-001-foundations -
Canvas RFC 001 a2ui
canvas-RFC-001-a2ui -
Classify (Classification/NLU): foundations
accepted
classify-RFC-001-foundations -
Crdt RFC 001 crdt runtime
crdt-RFC-001-crdt-runtime -
Dataset (Data Pipeline): foundations
accepted
dataset-RFC-001-foundations -
Koder Design: intentional shape of the Stack (5 facets) + kds.koder.dev landing
accepted (revised 2026-05-10 — expanded scope)
design-RFC-001-koder-design-system -
Extract responsive primitives from per-app implementations into koder_web_kit + koder_kit
accepted
design-RFC-002-responsiveness-sdk-extraction -
Koder Design: facets as cross-cutting tags, not single-membership content trees
proposed
design-RFC-003-facets-as-cross-cutting-tags -
design-RFC-004 — Component preview tooling (Storybook-equivalent)
draft
Evaluates 3 options for shipping a live, interactive component preview alongside the KDS site — Storybook proper, Ladle / Histoire (lighter alternatives), or a Koder-native HTMX-driven sandbox using the existing design-gen + templ pipeline. Recommendation: Koder-native v0; promote to external tooling later if breadth justifies.
design-RFC-004-component-preview-tooling -
design-RFC-005 — Figma kit + token sync pipeline
draft
Evaluates 3 mechanisms for keeping a Koder Design Figma kit in lockstep with ratified Verge tokens (Tokens Studio plugin vs Specify CLI vs custom Figma plugin reading from `dist/tokens/tokens.json`). Recommendation: custom plugin v0 consuming the already-emitted `tokens.json` (per design-gen #059).
design-RFC-005-figma-kit-and-token-sync -
design-RFC-006 — Cross-language token distribution
draft
Decides how koder_kit (Flutter / Dart) and koder_web_kit (JS) and future native consumers (Kotlin Android, Swift iOS, Rust embedded) receive the canonical Verge tokens. Evaluates copy-on-build vs publish-and-import. Recommendation: copy-on-build via CI workflow for v0; promote to a published koder_design_tokens package per language when consumer count crosses 3.
design-RFC-006-cross-language-token-distribution -
design-RFC-007 — Token hierarchy (seed / map / alias)
draft
Surveys whether Verge should evolve from its current FLAT token model (`bg`, `surface`, `text`, `accent`, `border`, `focus` declared directly per preset) to a 3-tier hierarchy modeled on Ant Design — **seed tokens** (small input set), **map tokens** (derived by algorithm: light / dark / compact), **alias tokens** (semantic names consumed by components). Owner sign-off required to ratify; this RFC LAYS OUT the three options and trade-offs without picking one.
design-RFC-007-token-hierarchy-seed-map-alias -
design-RFC-008 — Pro opinionated wrappers over primitives
ratified
Evaluated whether KDS should introduce a **Pro layer** above its primitive components — pre-bundled toolbars, saved views, density toggles, column visibility menus, export hooks — to spare every Koder admin tool (Forge, Kdrive admin, Hub publisher, …) from re-wiring the same boilerplate. **Ratified Option C (recipe doc only)** on 2026-05-23 — see `specs/patterns/admin-data-table.kmd`. Re-evaluation trigger documented in R5: when a third admin tool re-derives the same toolbar, re-open this RFC.
design-RFC-008-pro-opinionated-wrappers -
design-RFC-009 — Incremental build for design-gen
draft
Today `make gen` in `tools/design-gen` always full-renders the entire KDS site — ~480 pages × ~3 locales + tokens + OG images + JSON APIs + sitemap + llms.txt. Observed wall-clock: ~10m27s for 226 specs (2026-05-24 timing). Dev iteration cost grows linearly with the corpus. This RFC ratifies the **content-hash + manifest** incremental-build approach (Option A) before implementation begins, with the file-watcher dev mode (Option B) layered on top, and the Bazel-style dependency graph (Option C) deferred until KDS exceeds 1000 pages.
design-RFC-009-incremental-build -
Dns RFC 001 koder dns platform
dns-RFC-001-koder-dns-platform -
Dns RFC 002 phase1 first pop network
dns-RFC-002-phase1-first-pop-network -
Dns RFC 003 phase2 hyperscale
dns-RFC-003-phase2-hyperscale -
Embed (Embeddings): foundations
accepted
embed-RFC-001-foundations -
Erp RFC 000 architecture overview
erp-RFC-000-architecture-overview -
Erp RFC 001 licitacao vertical engine
erp-RFC-001-licitacao-vertical-engine -
Erp RFC 002 bpm workflow engine
erp-RFC-002-bpm-workflow-engine -
Erp RFC 003 travel expense engine
erp-RFC-003-travel-expense-engine -
Erp RFC 004 fiscal brazilian engine
erp-RFC-004-fiscal-brazilian-engine -
Erp RFC 005 legal vertical engine
erp-RFC-005-legal-vertical-engine -
Extract (Structured Extraction): foundations
accepted
extract-RFC-001-foundations -
Gate RFC 001 multi channel notifications
gate-RFC-001-multi-channel-notifications -
Hub RFC 001 delta delivery
hub-RFC-001-delta-delivery -
Hub RFC 002 federation protocol
hub-RFC-002-federation-protocol -
Hub RFC 003 build attestation
hub-RFC-003-build-attestation -
Hub RFC 004 upgrade chains
hub-RFC-004-upgrade-chains -
Hub RFC 005 migration manifests
hub-RFC-005-migration-manifests -
Hub RFC 006 unification and rename
hub-RFC-006-unification-and-rename -
Hub RFC-007 — apt/deb surface + Termux as first-class consumer
Accepted
mandatory
Estender o Koder Hub pra hospedar pacotes `.deb` arm64-Bionic (formato Termux) expondo uma fachada `apt`-compatible em `hub.koder.dev/apt/`. Posicionar o KTermux (fork do termux-app — RFC adjacente) como cliente primário desse surface: `pkg install <slug>` resolve via Hub apt repo. `khub` CLI ganha resolver multi-formato (apk/deb/kpkg/...). Mantém-se `.kpkg` como envelope canônico Koder; `.deb` é export target conforme `specs/kpkg/format.kmd §1`.
hub-RFC-007-apt-deb-surface-and-termux-consumer -
Id RFC 001 architecture overview
id-RFC-001-architecture-overview -
Id RFC 002 data model
id-RFC-002-data-model -
Id RFC 003 authentication service
id-RFC-003-authentication-service -
Id RFC 004 oauth2 oidc service
id-RFC-004-oauth2-oidc-service -
Id RFC 005 session service
id-RFC-005-session-service -
Id RFC 006 identity service
id-RFC-006-identity-service -
Id RFC 007 admin service and cli
id-RFC-007-admin-service-and-cli -
Id RFC 008 api gateway
id-RFC-008-api-gateway -
Id RFC 009 migration from zitadel
id-RFC-009-migration-from-zitadel -
Id RFC 010 cutover runbook
id-RFC-010-cutover-runbook -
Id RFC 011 storage on kdb next
id-RFC-011-storage-on-kdb-next -
Id RFC 012 account models
id-RFC-012-account-models -
Id RFC 013 invite chain
id-RFC-013-invite-chain -
Id RFC 014 vault service
id-RFC-014-vault-service -
Id RFC 014a emergency kit recovery
id-RFC-014a-emergency-kit-recovery -
Id app RFC 001 stack portal consolidation
id-app-RFC-001-stack-portal-consolidation -
Imaging: foundations
accepted
imaging-RFC-001-foundations -
Koder Runtime Strategy — kbox as the universal runtime
draft
infra-RFC-001-koder-runtime-strategy -
Self-hosted CI runner pool — move CI off the dev laptop
draft
infra-RFC-002-self-hosted-runner-pool -
Kdb RFC 001 kdb next hyperscale architecture
kdb-RFC-001-kdb-next-hyperscale-architecture -
Kdb RFC 002 opentelemetry instrumentation
kdb-RFC-002-opentelemetry-instrumentation -
Kdb RFC 003 fingerprint history
kdb-RFC-003-fingerprint-history -
Kdb RFC 004 sql planner and executor
kdb-RFC-004-sql-planner-and-executor -
Kdb RFC 005 catalog adapter
kdb-RFC-005-catalog-adapter -
Kdb RFC 006 explicit er modeling
kdb-RFC-006-explicit-er-modeling -
Kdb RFC 007 timeseries storage
kdb-RFC-007-timeseries-storage -
Kdb RFC 008 multi region replication
kdb-RFC-008-multi-region-replication -
Kdb RFC 009 active active multi primary
kdb-RFC-009-active-active-multi-primary -
Kdb RFC 010 wal streaming replication
kdb-RFC-010-wal-streaming-replication -
Kdb RFC 011 standby read replicas
kdb-RFC-011-standby-read-replicas -
Kicon RFC 002 design generation pipeline
kicon-RFC-002-design-generation-pipeline -
Multi-Tenant Desktop — Koder Linux Workspaces
Architectural direction for layering a workspace abstraction over the single-user Koder Linux desktop, so a single installed system can host multiple isolated user contexts (work / personal / per-client) switchable from the kolide-shell panel — without falling back to the much heavier "second Linux user account + relogin" pattern. Each workspace owns its own per-user storage tree, Koder ID binding, apps catalogue, and kolide-shell settings. Apps stay multi-tenant by default (`policies/multi-tenant-by-default.kmd`) so this RFC is the desktop-side surface that finally makes the policy visible to the end user.
klinux-RFC-001-multi-tenant-desktop -
OS Update Mechanism — koder-os-update
Direction for OS-level updates on installed Koder Linux: how a running system discovers, downloads, applies, and (eventually) rolls back updates to its base system + the koder-suite packages that came from hook 0060. Today the only way to "update" a Koder Linux install is to re-flash the ISO or run `apt upgrade` per-package; this RFC defines the user-facing CLI (`koder-os-update`), the underlying transport, and the trade-offs between three candidate mechanisms (ostree, apt-only, delta packs). Recommended path: **apt-only over Koder Hub** for v0 (ships in weeks, reuses #012/#116/#117), with A/B partition / ostree evaluated for v1+ once #018's CLI is live.
klinux-RFC-002-os-update-mechanism -
Kodec RFC 001 cine workspace architecture
kodec-RFC-001-cine-workspace-architecture -
Kodec RFC 002 phase3 decoders
kodec-RFC-002-phase3-decoders -
koder_exec_kit: pluggable execution backends for agent tools
accepted
koder-exec-kit-RFC-001-execution-backends -
Koder pair RFC 001 architecture
koder-pair-RFC-001-architecture -
Kompass RFC 001 identity and org unification
kompass-RFC-001-identity-and-org-unification -
RFC 001 — Kortex Ecosystem Map
Approved
kortex-001-ecosystem-map -
RFC 002 — Kortex Architecture
Approved
kortex-002-architecture -
RFC 003 — Common Event Schema
Approved
kortex-003-common-event-schema -
RFC 004 — Common Control Plane
Approved
kortex-004-common-control-plane -
RFC 005 — LLM Provider Abstraction + Chat Tool Use
Approved
kortex-005-llm-provider-abstraction -
RFC 006 — Auto-Remediation Rules Engine
Approved
kortex-006-auto-remediation-rules-engine -
RFC 007 — ChatOps Pipeline
Approved
kortex-007-chatops-pipeline -
RFC 015 — Browser Event Source for ChatOps
Approved
kortex-015-browser-event-source -
Koder Personal Computer (KPC) — persistent per-user VM for Kode agents 24/7
ratified
kpc-RFC-001-foundations -
RFC 017 — Koder Koda Compiler Decomposition
Draft
lang-RFC-017-compiler-decomposition -
Mcp registry RFC 001
mcp-registry-RFC-001 -
Memory (Agent Long-term Memory): foundations
accepted
memory-RFC-001-foundations -
Modelreg (Model Registry): foundations
accepted
modelreg-RFC-001-foundations -
Monorepo RFC 001 area first directory structure
monorepo-RFC-001-area-first-directory-structure -
Monorepo RFC 002 directory nomenclature
monorepo-RFC-002-directory-nomenclature -
Monorepo RFC 003 l1 domain taxonomy
monorepo-RFC-003-l1-domain-taxonomy -
Monorepo RFC 004 l2 area definition
monorepo-RFC-004-l2-area-definition -
Monorepo RFC 005 l3 sector definition
monorepo-RFC-005-l3-sector-definition -
Monorepo RFC 006 l4 distribution forms
monorepo-RFC-006-l4-distribution-forms -
Monorepo RFC 007 l2 audience model nomenclature
monorepo-RFC-007-l2-audience-model-nomenclature -
Monorepo RFC 008 l5 language conventions
monorepo-RFC-008-l5-language-conventions -
Monorepo RFC 009 meta internal split
monorepo-RFC-009-meta-internal-split -
Monorepo RFC 010 component frameworks
monorepo-RFC-010-component-frameworks -
Nimbus RFC 001 multi cloud management platform
nimbus-RFC-001-multi-cloud-management-platform -
Playground (Prompt/Agent Playground): foundations
accepted
playground-RFC-001-foundations -
Reuse-First policy hierarchy
Accepted
policies-RFC-001-reuse-first-hierarchy -
Self-Hosted First policy
Implemented
policies-RFC-002-self-hosted-first -
RFC 003 — Component Policies Hierarchy
Draft
policies-RFC-003-component-policies-hierarchy -
RFC Phase Pickup (auto-open backlog tickets for pending phases)
Accepted
policies-RFC-003-rfc-phase-pickup -
Prompt (Prompt Registry): foundations
accepted
prompt-RFC-001-foundations -
Sandbox RFC 001 architecture
sandbox-RFC-001-architecture -
Sandbox (Code Execution): foundations
accepted
sandbox-RFC-001-foundations -
Scene3D (3D Generation): foundations
accepted
scene3d-RFC-001-foundations -
Scheduler RFC 001
scheduler-RFC-001 -
RFC 001 — Koder Krep (search engine & CLI)
Draft
search-RFC-001-engine-and-cli -
Search (Web Search/Scrape): foundations
accepted
search-RFC-001-foundations -
Koder Signer — multi-jurisdiction architecture (BR / EU / US)
accepted
signing-RFC-001-multi-jurisdiction -
Signs RFC 001 architecture overview
signs-RFC-001-architecture-overview -
Snapshots RFC 001 architecture
snapshots-RFC-001-architecture -
kdb as unified data plane
draft
stack-RFC-001-kdb-as-unified-data-plane -
MCP integration across the Koder Stack
draft
stack-RFC-002-mcp-integration -
Koder Icons — curated shared UI icon library + KDS surface
draft
stack-RFC-003-koder-icons-shared-ui-library -
Verge scope expansion — align with Material's 5-layer scope (foundations + styles + components + patterns + accessibility)
draft
stack-RFC-004-verge-scope-expansion -
Full Headless Testability — every Koder UI is automatable/observable/reproducible without a display
draft
stack-RFC-005-full-headless-testability -
Synth (Audio Synthesis): foundations
accepted
synth-RFC-001-foundations -
Take RFC 001 architecture overview
take-RFC-001-architecture-overview -
Talk RFC 001 quic transport
talk-RFC-001-quic-transport -
Tools (Tool Registry): foundations
accepted
tools-RFC-001-foundations -
Trace (AI Tracing/Observability): foundations
accepted
trace-RFC-001-foundations -
Training (Fine-tuning Service): foundations
accepted
training-RFC-001-foundations -
Translate (Translation): foundations
accepted
translate-RFC-001-foundations -
Tune RFC 001 koder tune smarttv app
tune-RFC-001-koder-tune-smarttv-app -
Video: foundations
accepted
video-RFC-001-foundations -
Vision: foundations
accepted
vision-RFC-001-foundations -
Workflow (Agent DAG/State Machine): foundations
accepted
workflow-RFC-001-foundations