Skip to content

Documentation Index

Migrated from root technical docs.

This is the canonical entrypoint for all repository documentation.

Start here. Architecture, runbooks, ADRs, active plans, and archives are all organized below. See PLACEMENT-GUIDE.md for where to add new documents.


Authoritative architecture docs for the monorepo. These are the source of truth for code placement, package categories, dependency rules, and structural patterns.

DocPurpose
00-repo-map.mdFull repo layout and ownership map
01-code-placement.mdWhere code belongs
02-package-categories.mdPackage taxonomy
03-dependency-rules.mdCross-package dependency constraints
04-dashboard-structure.mdDashboard app internals
05-worker-structure.mdWorker app internals
06-current-gaps.mdKnown architecture gaps (living backlog)
07-feature-source-of-truth.mdFeature ownership source-of-truth
08-feature-internals.mdFeature package internals
09-tanstack-query-patterns.mdTanStack Query patterns
10-domain-packages.mdDomain package design
11-cloudflare-runtime-boundary.mdCloudflare runtime constraints
12-generated-artifacts.mdGenerated artifact rules
13-naming-conventions.mdNaming standards (canonical)
14-barrel-rules.mdBarrel export rules
15-architecture-checks.mdCI architecture checks — how to run, what they enforce, and what to do when they fail
16-contributing-and-templates.mdContributor workflow, guardrails, and scaffold entrypoints

Template examples live in architecture/templates/README.md.


Start here if you are new to the repo.

DocPurpose
onboarding/new-contributors.mdFirst-day workflow, common commands, repo mental model

Architectural Decision Records for durable decisions that affect the repo.

DocPurpose
0002-dashboard-route-composition.mdHistorical route composition decision (superseded)

New ADRs follow NNNN-short-slug.md naming in docs/adr/.


Operational procedures, rollout guides, incident playbooks, and troubleshooting docs. Everything needed to operate and release the system.

DocPurpose
glitchtip-monitoring.mdGlitchTip / Sentry monitoring setup
slow-db-query-runbook.mdSlow DB query detection and response
integrations-api-rollout.mdIntegrations API rollout and rollback
workspace-modules-rollout.mdWorkspace module gating rollout
eventbus/backfill-runbook.mdEvent bus historical backfill procedure
eventbus/incident-playbook.mdEvent bus incident response playbook
eventbus/phase-2-rollout-checklist.mdEvent bus phase 2 rollout checklist
eventbus/operations-slo.mdEvent bus SLO targets

Active future implementation plans and tracked initiatives.

DocPurpose
sentrydbqueries/README.mdSlow DB query observability plan

Stable technical reference for system components and subsystems.

DocPurpose
workspace-api-key-management.mdWorkspace API key system reference

Some documentation lives near the code it describes. These are explicitly maintained as local exceptions and linked here for discoverability.

LocationContentsWhy local
apps/dashboard/AGENTS.mdDashboard-specific agent operational guidanceTightly coupled to dashboard internals
apps/dashboard/ARCHITECTURE.mdDashboard app architecture detailApp-local architecture supplement
apps/dashboard/docs/CSRF_PROTECTION.mdCSRF protection detailsImplementation detail for dashboard only
apps/dashboard/docs/ENABLING_DEBUG_IN_PRODUCTION.mdDebug flag usageDashboard-specific operational note
tests/AGENTS.mdE2E test harness guideTightly coupled to test runner internals

These areas exist but are not authoritative documentation:

AreaStatusNotes
thoughts/Non-canonical working notesInformal scratch area only
plans/ (root)DeprecatedActive plans live in docs/plans/; root plans/ is legacy and should not receive edits

See PLACEMENT-GUIDE.md for where to add new documents. See architecture/16-contributing-and-templates.md for how to add new code.