Skip to Content
Amaru

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 serve runs a compact subset, and Steps accepted over the API stay queued; see Build from source.
  • No remote Worker transport.

Packages

PackageContent
internal/domainExecution 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/portsStorage and Worker interfaces, with fakes and port tests
internal/coordinatorExecution coordination, restart reconciliation, approvals, policy, project trust
internal/store/postgres, internal/store/migrationsPostgreSQL storage and forward-only migrations
internal/store/fsblob, internal/artifactArtifact storage
internal/worker/embedded, internal/worker/inproc, internal/worker/osprocThe embedded Worker, and the OS process layer with write confinement
internal/provider/worktreeWorktree isolation: one Git worktree per Work Item
internal/provider/remotejobRemote job Providers
internal/adapter/*HTTP API, local authentication, discovery, operational logging and project files
internal/evidence, internal/attach, internal/agentdef, internal/workflowdef, internal/egressEvidence bundles, attaching a Project, agent and workflow definitions, egress consent
internal/platformProcess resource owners: PostgreSQL pool, schema application, reconciliation
internal/archArchitecture 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-pg

The pg-tagged tests need a PostgreSQL role that may create databases.

Based on services/platform/README.md.

Next steps

On this page