Architecture note
What is built, and what is left
The engine changes, the workspace, library and run objects, and the console are built; what is left is deployment.
Engine changes: all four built
The orchestrator work this page originally planned is done. One of the four ships switched off.
C0 — Pipeline entry
doneA pipeline topic takes a shipped template name or an inline plan, and validates it before anything runs. It works over Kafka, or over ConfigMap queues when a cluster has no broker.
C1 — Per-step parameters
doneA step's with: options are translated through the plugin catalogue and merged into that step's payload. This is what made the recipe DSL possible.
C2 — Lazy plugin warm-up
donePods no longer warm the whole catalogue at boot. A plugin's worker starts on first use and is stopped after an idle TTL; a short list can still be pre-warmed.
C3 — Distributed step leasing
built · off by defaultPipeline state lives in the bucket and pods lease ready steps, so one pipeline can spread across pods and a pod that dies loses one step instead of the run. Enabled with DAG_STEP_LEASING=true; rollout awaits a real multi-pod environment.
The objects that were missing
All three now exist in Cloud.Api, stored in the processing bucket with compare-and-swap writes — no database, no locks.
| Object | What it is now |
|---|---|
| Workspace | One personal workspace per user, derived from the same identity as documentize.app and .ai (OIDC token or dmk_ key). Tier sets quotas. |
| Library | Workspace-owned files with presigned direct upload, path claims, quotas and an upload sweeper. Library files are kept in a durable bucket; engine task folders live in the processing bucket, which is cleared every 24 hours. |
| Run | A frozen recipe over a set of files, with one item per file. A background advancer on every replica submits items, polls for completion, copies outputs back into the library and streams progress. |
Milestones
Backend and console are built. What is left is getting it running somewhere shared.
Engine reachable
Build fixed, streaming sketches moved out of the shipped set, catalogue published as JSON, format routing wired in, pipeline entry and per-step options, recipe grammar v1.
catalog.json · /routes · Cloud.RecipesWorkspace and library
Auth, workspaces, quotas, library CRUD with presigned upload. Two replicas give no lost updates.
Cloud.Api · ICloudStore (S3 + filesystem)Runs and the live view
Fan-out over a file selection, the run advancer, outputs promoted into the library, server-sent events for progress, cancel.
/runs · /runs/{id}/eventsRecipes, serverless surface, MCP
Recipe CRUD and save-as-recipe, linear recipes chained over Cloud.Serverless, and MCP tools for agents.
/recipes · surface: serverless · /mcpEngine efficiency
Lazy warm-up and step leasing behind a flag.
C2 · C3The console
Sign-in and overview, library, runs list and live run view, run builder with generated forms, recipe editor with live validation, plugin catalogue, API and MCP page. Runs in local mode against a simulated engine with no deployment.
Cloud.UI/wwwroot/cloud-www/consoleWhat is still open
Nothing here is an architecture question; it is operations and polish.
| Item | State |
|---|---|
| Deployment | Images are built by CI; the Argo CD apps for Cloud.Api and Cloud.Serverless are not written. Multi-replica safety is verified in-process, not on real pods, and the end-to-end QA job has not been run. |
| Sign-in | The console signs in with a dmk_ key today. Dynabic OIDC needs a client id and redirect URIs to be issued. |
| Browser uploads | The storage bucket needs a CORS rule allowing PUT and GET from the console origin. |
| Quotas and retention | Per-tier numbers are placeholders until pricing is set; blob retention per tier is undecided. Engine cost (plugin cost × time) is not metered yet — only runs and files per day. |
| Serverless coverage | 29 plugins have a serverless equivalent. Merge, split, esign and search are not available there, and AI workers need a configured LLM endpoint. |
| Large-document splitting | The split / fan-out-by-page / merge plan builder exists but is not used by the orchestrator. |
| Plugin packaging | Published into one folder, a shared dependency version breaks PDF/A conversion on some builds; each plugin should publish into its own folder or versions should be aligned. |
| Shared document logic | Still duplicated between the plugin tree and the serverless workers — see Three SKUs. |
The plugin catalogue
Four plugins joined the tree most recently: ask-pdf, pdf-kb, cheat-sheet and unwatermark.
Plugins now ship as signed release builds. A plugin applies its built-in document-library licence only when a valid paid key is present and its files match the signed manifest; otherwise it runs in evaluation mode and says why. Release builds also send one anonymous usage report per run, which can be turned off with DOCUMENTIZE_TELEMETRY_OPTOUT=1. Cluster plugins are built in Debug and are licensed from the environment instead.