Agent reference
This section is the spec — for Agents. Field-by-field schemas, error codes, audit-trail formats, OIDC details, rate limits, build-path resolution algorithms. Everything an Agent needs to operate ERun without guessing.
The rest of the docs is for Operators. Operators get the concepts and the workflow; they don't need to read field tables, because the Agent handles those details. If you find yourself reaching for the field reference as an Operator, that's usually a signal the Agent should be doing the work — see Agent patterns.
Inside
- Concepts — the platform's mental model. Tenants, environments, types, what's inside the runtime pod, networking, observability, security, conventions, cloud contexts. The Operator sees the high-level summary in the intro; the Concepts pages explain how it works.
- Glossary — canonical terminology.
- Tenants and environments — the two organising ideas.
- Environment types — local-agent / remote-agent / runtime.
- Inside an environment — what lives in the namespace.
- Networking, Observability, Security, Conventions, Cloud contexts.
- MCP protocol + tools — the typed-tool surface for an environment. Three categories (inspection / action / escape) and the full tool schemas.
- Agent patterns — ten patterns Agents converge on: orient first, doctor before raw, skill before hand-writing, build-verify-deploy, etc.
- erun API
- API protocol — OIDC sign-in, tenant-issuers, rate limits, pagination.
- Audit log format — event shape, retention, security events.
- Reviews, Comments, Builds — resource schemas + state machines.
- Platform spec
- Conventions spec — resolution algorithms (project root, Dockerfile, VERSION, command overrides, fingerprint cache).
- Idle-stop policy — eligibility predicate, working-hours semantics, resume mechanics.
- Configuration spec
- Configuration — every per-user / per-project / per-pod config field.
- Build path resolution — the exact algorithm
erun build/push/deployuse to resolve project root, env, build context, version, and final image tag. - Config locations — exact filesystem paths per OS.
- Environment variables — every
ERUN_*variable.
What the Agent is responsible for
Per the Operator/Agent split, an Agent is responsible for the following classes of detail the Operator shouldn't have to think about:
- Picking the right MCP tool for the task — inspection before action, action before raw.
- Reading error responses from the erun API and choosing the right retry or correction.
- Looking up configuration field semantics when scaffolding or editing config.
- Following the build-path resolution algorithm when explaining why a build resolved to a particular image tag.
- Loading the right skill before writing a service, migration, or ingress — and writing conformant code by hand from the skill's guidance.
- Recording structured audit events so the Operator can replay the session.
- Respecting the rate limits — backing off when hit, not hammering the API.
What stays in the Operator's hands
- Approving and merging — every transition to
MERGEand the merge-queue advance is an Operator action. - Reviewing audit-trail events and security events.
- Tenant-issuer trust changes (planned admin-only endpoint).
- Granting Agent autonomy progressions (Workflow · Agent maturity stages).
The Operator should not need to memorise the field tables. The Agent should be able to look any of them up without bothering the Operator.