Building blocks
The building blocks of Amaru, namely the Platform, Workers, clients and versioned contracts, and how its repository of docs and code is laid out.
Amaru separates one Platform that owns all state from the Workers that run Steps and the clients that show them. The full proposal, including what is not built yet, is in docs/architecture/ARCHITECTURE.md, with a diagram at docs/architecture/architecture.png. Significant decisions are recorded as ADRs in docs/architecture/adr/.
The blocks
- Platform. The deployable system: domain model, API contracts, policies and execution coordination. Cloud and Self-hosted are deployments of this same Platform.
- Workers. Run Steps in local or remote Execution Environments.
- Clients. Amaru Web, and later Amaru Desktop. Clients never own execution state.
- Contracts. The versioned, UI-agnostic contract between the Platform and its clients, Workers and plugins. See Contracts and SDK.
Repository layout
| Path | Content |
|---|---|
docs/product/ | PRD, feature catalog, non-functional requirements, glossary |
docs/architecture/ | Architecture hub and views, roadmap, work packages, decisions (adr/), open questions |
docs/engineering/ | Conventions, repository layout, validation, agent instructions |
docs/legal/ | Contributor License Agreement signatures |
docs/security/ | Security model |
docs/validation/ | Recorded validation evidence per milestone |
packages/contracts/ | Versioned API, event, Provider and Worker contracts (OpenAPI, JSON Schema, Protobuf) |
packages/sdk/ | TypeScript SDK generated from the OpenAPI contract, with an event-stream client |
services/platform/ | The partial Platform core (Go) |
spikes/ | M1 validation spikes |
tools/doccheck/ | Offline documentation checker (Go, standard library only) |
Based on README.md.
Next steps
- Platform core: what
services/platformholds today. - Contracts and SDK: the interfaces between the blocks.
Architecture
How Amaru is designed and how its repository is organized, from the Platform and Workers to the Go Platform core, the contracts and the TypeScript SDK.
Platform core
The Go packages of the Amaru Platform core in services/platform, what each one holds today, how it is tested, and what is still missing on main.