Skip to content

Architecture decisions

Decisions that outlive a single feature are recorded as numbered architecture decision records (ADRs). An accepted ADR isn’t edited except to change its status; a new ADR supersedes an old one. The records will be published with the source at the open-source launch.

ADRDecisionStatus
0001Record architecture decisions. Every lasting decision gets a numbered ADR from a common template.Accepted
0002Consolidate platform services on Java, Spring Boot and Spring AI. All backend services live in one Gradle multi-module build; the earlier Python services were replaced by the knowledge indexer and the built-in tools service.Accepted
0003Document indexing is asynchronous over RabbitMQ. The knowledge base publishes jobs, the indexer is the only consumer, with retries and a dead-letter queue, and the message is a shared contract.Accepted
0004Tool API keys move out of tool documents into a vault. Tools hold a secret reference that the chat service resolves at call time; read APIs never return secret values.Accepted, pending
0005Client SDKs are generated from the services’ OpenAPI specs. Specs are exported, merged with gateway prefixes and fed to OpenAPI Generator, with a thin hand-written layer for auth and streaming.Accepted
0006Integrate through a long-lived integration branch, merged in waves. Each wave is gated by an end-to-end check on a real local stack, not only by unit tests.Accepted
0007Deploy through GitOps; cluster secrets come from an external secret store. A deploy is a reviewed commit, and no secret values live in deployment manifests.GitOps accepted; secrets proposed
0008Grounded answers are enforced on the server, keyed by agent id. The server sets the prompt, retrieval and tools for agent chats, adds a strict mode that cites or refuses, and returns a named grounding outcome.Accepted
0009Website crawling runs on StormCrawler, in its own non-Spring process. Crawl state lives in URLFrontier, business state in a separate control-plane service with its own database.Accepted
0010Tenant identity is the subscription, enforced by one shared filter. Membership is checked before any controller runs; non-members get 404 and there is no admin bypass on the data plane.Accepted
0011Pooled stores isolated by subscription id, enforced in the repository layer. Every record and vector carries the subscription, every query filters on it, and a build-time rule rejects unscoped reads; dedicated stores come from configuration.Accepted
0012The user service is the tenant directory; tenant purge is an event saga. Tenants, subscriptions and memberships live in one place, and deleting a subscription asks every service to remove its data and confirm.Accepted
0013Tenant roles, break-glass access and audit events. Two levels of roles, a read-only viewer enforced centrally, time-boxed audited operator access, and audit events for refusals and permission changes.Accepted
0014Usage metering and per-subscription quotas. Tokens, requests, chunks and storage are metered per subscription, with rate limits and budgets enforced by the tenant filter.Accepted

Accepted means the decision stands; it doesn’t mean every part has shipped. See the introduction for what is available today.