Bonsite architecture
The target architecture separates creating a site from viewing it: AI prepares versions, while visitors receive finished files.
An agent failure must not take an already published site offline.
This is an architecture design for the “request → microsite → edits” journey. The product journey is accepted; the proposed job storage, build execution and hosting still need implementation and verification. The current foundation is described separately.
How a request travels
Author → editor → API → saved job → worker
│ │
PostgreSQL AI → build → checks
│ │
└─ version/status ← finished files
│
author preview
│ publish
Visitor → domain → published version delivery → site filesThe editor shows the result and history. The API checks permissions and accepts commands. A worker performs long-running work outside the HTTP request. Publishing connects a permanent link to a ready version. Viewing the page does not invoke AI.
Initial shape
We propose keeping one repository and a modular API, with job execution and customer content delivery in separate processes with different permissions. This is not a service per site. One publishing system serves many projects; a new microsite adds data and files, not another application deployment.
PostgreSQL stores owners, states and relationships. Object storage holds materials and site versions. We do not propose Kubernetes, a separate database per customer or an agent swarm to start. This is a choice for discussion, not a description of an already deployed system.
Read next
- Component boundaries — responsibility for each part.
- What exists in code — reusable foundation and limits.
- Jobs and versions — failures, retries and publication.
- Agent and build — from materials to a result.
- Access and isolation — trust boundaries.
- DevOps — environments, releases and recovery.