Skip to content

Documentation Registry

This file is the canonical catalog of documentation files.
Agents and contributors must read this file first before creating or editing docs.

Usage Rules

  • Reuse existing docs when possible.
  • Update this registry in the same change whenever docs are created, renamed, superseded, or deleted.
  • Keep one active source of truth per topic.

Status Legend

  • active: current source of truth.
  • draft: work in progress.
  • superseded: replaced by a newer document.
  • archived: historical reference only.

Catalog

Core

PathTypeStatusOwnerNotes
apps/docs/index.mdHomeactiveplatform-engineeringDocs portal
apps/docs/registry.mdRegistryactiveplatform-engineeringCanonical docs index

Architecture

PathTypeStatusOwnerNotes
apps/docs/architecture/overview.mdArchitectureactiveapi-teamHigh-level architecture map
apps/docs/architecture/api-module-architecture.mdArchitectureactiveapi-teamAPI module dependency graph and DDD layers

ADR

PathTypeStatusOwnerNotes
apps/docs/adr/index.mdADR Indexactiveapi-teamEntry point for ADRs
apps/docs/adr/001-mapproperties-rounding-token-cost-precision.mdADRactiveapi-teamToken cost precision
apps/docs/adr/002-token-usage-pessimistic-locking.mdADRactiveapi-teamLocking strategy
apps/docs/adr/003-full-response-storage-strategy.mdADRactiveapi-teamResponse storage strategy
apps/docs/adr/004-module-self-containment-architecture.mdADRactiveapi-teamModule self-containment
apps/docs/adr/005-integration-events-publisher-consumer.mdADRactiveapi-teamIntegration events publisher/consumer pattern

Features - API

PathTypeStatusOwnerNotes
apps/docs/features/api/index.mdFeature Indexactiveapi-teamAPI feature map
apps/docs/features/api/ai/agent-brain-fallback-model.mdFeatureactiveapi-teamAI fallback model
apps/docs/features/api/ai/agent-limits-config.mdFeatureactiveapi-teamAI limits configuration
apps/docs/features/api/ai/chat-interaction-cache.mdFeatureactiveapi-teamChat caching behavior
apps/docs/features/api/ai/rag-knowledge-system.mdFeatureactiveapi-teamRAG knowledge flow
apps/docs/features/api/ai/token-consumption-tracking.mdFeatureactiveapi-teamToken accounting
apps/docs/features/api/ai/sql/agent-stats-maintenance.mdFeature Supportactiveapi-teamSQL maintenance process
apps/docs/features/api/ai/sql/rebuild-agent-stats.sqlSQL Assetactiveapi-teamRebuild script
apps/docs/features/api/auth/abac-explanation.mdFeatureactiveapi-teamABAC behavior
apps/docs/features/api/auth/agency-access-breaking-changes.mdFeatureactiveapi-teamAccess behavior changes
apps/docs/features/api/auth/email-verification-activation-flow.mdFeatureactiveapi-teamActivation rules for email/password vs Google login
apps/docs/features/api/auth/identity-auth-service-ports.mdFeatureactiveapi-teamApplication-layer service contracts for identity auth services
apps/docs/features/api/auth/result-pattern-error-handling.mdFeatureactiveapi-teamResult pattern with structured bilingual errors
apps/docs/features/api/auth/typed-app-config-service.mdFeatureactiveapi-teamTyped env access and startup validation
apps/docs/features/api/file-gateway/claim-token-upload.mdFeatureactiveapi-teamUpload claim tokens
apps/docs/features/api/file-gateway/file-upload-rpc-auth.mdFeatureactiveapi-teamFile gateway auth

Features - Other Apps

PathTypeStatusOwnerNotes
apps/docs/features/panel/index.mdFeature Indexdraftpanel-teamPanel docs placeholder
apps/docs/features/infra/index.mdFeature Indexdraftplatform-engineeringInfra feature placeholder

Workflows

PathTypeStatusOwnerNotes
apps/docs/workflows/engineering/overview.mdWorkflow Indexactiveplatform-engineeringEngineering workflows
apps/docs/workflows/engineering/api-import-aliases.mdWorkflowactiveapi-teamAPI internal import alias conventions
apps/docs/workflows/engineering/api-zod-request-validation.mdWorkflowactiveapi-teamAPI body validation pattern with shared Zod schemas
apps/docs/workflows/engineering/documentation-guidelines.mdWorkflowactiveplatform-engineeringDocs writing conventions
apps/docs/workflows/engineering/deploy-workflow.mdWorkflowactiveplatform-engineeringCI/CD pipeline: Docker Hub + Dokploy
apps/docs/workflows/engineering/how-to-run-tests.mdWorkflowactiveapi-teamTest execution workflow
apps/docs/workflows/engineering/local-development-traefik.mdWorkflowactiveplatform-engineeringTraefik local setup
apps/docs/workflows/operations/overview.mdWorkflow Indexdraftplatform-engineeringOperations workflows placeholder

Runbooks

PathTypeStatusOwnerNotes
apps/docs/runbooks/infra/overview.mdRunbook Indexdraftplatform-engineeringInfra runbooks placeholder
apps/docs/runbooks/observability/index.mdRunbook Indexactiveplatform-engineeringObservability baseline
apps/docs/runbooks/observability/container-metrics.mdRunbookactiveplatform-engineeringContainer metrics
apps/docs/runbooks/observability/grafana.mdRunbookactiveplatform-engineeringGrafana operations
apps/docs/runbooks/observability/ia-integration.mdRunbookactiveplatform-engineeringIA service telemetry integration
apps/docs/runbooks/observability/local-setup.mdRunbookactiveplatform-engineeringLocal observability stack
apps/docs/runbooks/observability/loki-tempo-prometheus.mdRunbookactiveplatform-engineeringLGTM integration
apps/docs/runbooks/observability/wide-logs.mdRunbookactiveplatform-engineeringWide log strategy

Domains

PathTypeStatusOwnerNotes
apps/docs/domains/api/domain-entity-lifecycle.mdDomain Docactiveapi-teamEntity encapsulation and mutation patterns
apps/docs/domains/api/transactions/concurrency-and-locking.mdDomain Docactiveapi-teamConcurrency strategy
apps/docs/domains/api/transactions/transaction-quick-reference.mdDomain Docactiveapi-teamQuick reference
apps/docs/domains/api/transactions/transaction-system.mdDomain Docactiveapi-teamTransaction model
apps/docs/domains/api/transactions/understanding-transaction-system.mdDomain Docactiveapi-teamDeep dive
apps/docs/domains/api/crm/company-socials/insta-face-whatsapp.txtDomain Assetactiveapi-teamCRM reference data
apps/docs/domains/api/crm/company-socials/socials-objects.txtDomain Assetactiveapi-teamCRM reference data
apps/docs/domains/panel/overview.mdDomain Overviewdraftpanel-teamPanel domain placeholder
apps/docs/domains/packages/overview.mdDomain Overviewdraftplatform-engineeringShared packages placeholder
apps/docs/domains/infra/overview.mdDomain Overviewactiveplatform-engineeringInfra domain map
apps/docs/domains/infra/dokploy-platform.mdDomain Docactiveplatform-engineeringDokploy project structure and configuration

Legacy / Superseded

PathTypeStatusOwnerNotes
apps/docs/legacy/superseded/overview.mdLegacy Indexsupersededplatform-engineeringLegacy map
apps/docs/legacy/superseded/api-examples.mdLegacy Docsupersededplatform-engineeringReplaced by typed feature docs
apps/docs/legacy/superseded/markdown-examples.mdLegacy Docsupersededplatform-engineeringVitePress sample content
apps/docs/legacy/superseded/discount-buy-x-get-y.mdLegacy Docsupersededapi-teamHistorical behavior
apps/docs/legacy/superseded/discount-category-or-product.mdLegacy Docsupersededapi-teamHistorical behavior
apps/docs/legacy/superseded/discount-shipping.mdLegacy Docsupersededapi-teamHistorical behavior
apps/docs/legacy/superseded/discounts-architecture.mdLegacy Docsupersededapi-teamHistorical architecture
apps/docs/legacy/superseded/discounts.mdLegacy Docsupersededapi-teamHistorical behavior
apps/docs/legacy/superseded/elavon.mdLegacy Docsupersededapi-teamHistorical integration
apps/docs/legacy/superseded/nmi.mdLegacy Docsupersededapi-teamHistorical integration
apps/docs/legacy/superseded/microservices/Dead Letter Queues.mdLegacy Docsupersededplatform-engineeringHistorical microservice pattern
apps/docs/legacy/superseded/recharges/queue-based-processing-implementation.mdLegacy Docsupersededapi-teamHistorical queue implementation
apps/docs/legacy/superseded/shops/cart-orders-flow.mdLegacy Docsupersededapi-teamHistorical flow
apps/docs/legacy/superseded/shops/cart-resume.mdLegacy Docsupersededapi-teamHistorical flow

Templates

PathTypeStatusOwnerNotes
apps/docs/templates/adr-template.mdTemplateactiveplatform-engineeringNew ADR template
apps/docs/templates/feature-template.mdTemplateactiveplatform-engineeringNew feature doc template
apps/docs/templates/workflow-template.mdTemplateactiveplatform-engineeringNew workflow template
apps/docs/templates/runbook-template.mdTemplateactiveplatform-engineeringNew runbook template

Recently Changed Docs

  • 2026-02-26: Added domain entity lifecycle documentation with encapsulation and mutation patterns.
  • 2026-02-26: Added identity email verification activation flow rules for users and clients.
  • 2026-02-26: Added API Zod request validation workflow and indexed it under engineering workflows.
  • 2026-02-26: Added API import aliases workflow and indexed it under engineering workflows.
  • 2026-02-26: Restructured docs into architecture, features, workflows, runbooks, domains, and legacy/superseded.
  • 2026-02-26: Added root AGENTS.md with mandatory docs update workflow.
  • 2026-02-26: Added templates for ADR, feature, workflow, and runbook docs.
  • 2026-02-26: Added identity auth service port documentation and registry entry.
  • 2026-02-26: Added Result pattern and structured error handling feature doc.
  • 2026-02-27: Added ADR 004 — Module self-containment architecture (CoreModule, SharedModule, feature-owned data sources).
  • 2026-02-27: Added API module architecture doc with mermaid dependency graphs and data flow diagrams.
  • 2026-02-27: Created missing index files for features/api/ and runbooks/observability/ (fixed pre-existing dead links).
  • 2026-02-27: Added ADR 005 — Integration events publisher/consumer pattern (removed cross-module identity→notifications coupling).
  • 2026-02-28: Added deployment workflow doc (CI/CD pipeline with Docker Hub and Dokploy).
  • 2026-03-01: Updated deploy-workflow Dockerfile snippets to match actual infra/apps/ Dockerfiles (global turbo, corepack-only pnpm, git for docs, no NODE_ENV).
  • 2026-03-01: Updated deploy workflow to support two environments (Production from main, Development from develop) with environment-scoped secrets and dynamic tag prefixes.
  • 2026-03-01: Added Dokploy platform setup doc (project structure, resource types, manual configuration).

Known Documentation Gaps

  • Panel feature documentation is still placeholder-level.
  • Infra runbooks beyond observability are not yet documented.
  • Some legacy docs are preserved without explicit replacement docs and should be migrated gradually.