AmaruArchitecture
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.
services/platform is the Go module of the Platform core. Its components are unit-tested, on Linux
only so far. It is part of milestone M3 and incomplete.
Current limits
- No Provider exists. Workflow agent Steps are refused at Submit, and no Step gets an Agent snapshot.
- The embedded Worker's Runner has only test fakes. No process execution runs through it yet.
- The composed public API is not implemented.
amaru serveruns a compact subset, and Steps accepted over the API stay queued; see Build from source. - No remote Worker transport.
Packages
| Package | Content |
|---|---|
internal/domain | Execution and Step state machines, the Capability catalog, Agents, Workflows, Work Packages and Work Items, Projects, Policy and Grants, Skills, context assembly, retention and redaction |
internal/ports | Storage and Worker interfaces, with fakes and port tests |
internal/coordinator | Execution coordination, restart reconciliation, approvals, policy, project trust |
internal/store/postgres, internal/store/migrations | PostgreSQL storage and forward-only migrations |
internal/store/fsblob, internal/artifact | Artifact storage |
internal/worker/embedded, internal/worker/inproc, internal/worker/osproc | The embedded Worker, and the OS process layer with write confinement |
internal/provider/worktree | Worktree isolation: one Git worktree per Work Item |
internal/provider/remotejob | Remote job Providers |
internal/adapter/* | HTTP API, local authentication, discovery, operational logging and project files |
internal/evidence, internal/attach, internal/agentdef, internal/workflowdef, internal/egress | Evidence bundles, attaching a Project, agent and workflow definitions, egress consent |
internal/platform | Process resource owners: PostgreSQL pool, schema application, reconciliation |
internal/arch | Architecture test |
Checks
make platform-test # part of make check; no real agents, network or paid APIs
AMARU_TEST_PG='postgres://user:pass@127.0.0.1:5432/postgres?sslmode=disable' make platform-test-pgThe pg-tagged tests need a PostgreSQL role that may create databases.
Based on services/platform/README.md.
Next steps
- Contracts and SDK: the API this core must serve.
- Status and roadmap: when the missing parts are planned.
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.
Contracts and SDK
The versioned Amaru contracts, covering the OpenAPI HTTP API, JSON Schema events, the Provider and Worker protocols, and the generated TypeScript SDK.