Resources · Documentation

Documentation

Concepts and conventions for Corelia AgentOS. The product is in development, so these pages describe the V1 design. Each topic is labelled with its status, and full reference pages will be published with the developer preview.

Getting started

Conceptual

The intended path from nothing to a first trace. It will work once the developer preview opens; until then it describes the design.

  1. Create a workspace. Three environments are created with it.
  2. Create an API key scoped to development. It is shown once.
  3. Install the Python SDK and set CORELIA_API_KEY.
  4. Describe the agent, wrap each tool with its side effect, and run it once.
  5. Open the execution in the dashboard and read its events.

Code for each step: Developers › Agent registration.

Core concepts

In development
Core concepts
AgentA stable identity such as incident-triage.
VersionAn immutable manifest: model settings, declared tools, limits, code reference.
ToolA function the agent may call, declared as read, write, external or destructive, and idempotent or not.
PolicyOrdered rules that decide allow, deny or require approval. Saved as immutable versions and bound per agent and environment.
ExecutionOne run of an agent on one task, with a pinned version, a state and one or more attempts.
EventAn ordered fact inside an execution: a model call, a tool call, a decision, an approval, an error.

Agent registration

In development
  • The SDK builds a manifest from your code and sends it on first run.
  • Manifests are hashed. An identical manifest reuses the existing version; any change creates the next number.
  • New versions auto-deploy to development only. Staging and production need an explicit promotion.
  • New agents start with a least-privilege default: reads allowed, writes and external calls need approval, destructive calls denied.

Execution lifecycle

In development

Executions move through created, queued, leased, running, awaiting_approval and retry_scheduled, and end as succeeded, failed, cancelled or timed_out.

  • Failure reasons: policy_denied, approval_rejected_unhandled, approval_expired, tool_error, tool_timeout, model_error, limit_exceeded, agent_exception, runner_lost, cancelled_by_user.
  • Runner leases last 60 s and are renewed by heartbeat. Two missed heartbeats mean runner_lost.
  • Cancellation is observed at the next step or heartbeat.

State table: Platform › Execution lifecycle.

Tool integrations

In development
  • Wrap any Python function with @agent.tool(side_effect=…, idempotent=…, timeout_s=…).
  • Declare an argument schema to enable argument conditions in policies.
  • Choose summary fields so that only what you approve leaves your process.
  • Framework adapters are planned. Until then, wrap the functions your framework calls.

Policies and approvals

In development

Rules are evaluated in order; the first match wins; the policy default applies otherwise. Conditions are limited to equality, in / not in, numeric comparison and prefix on declared argument fields, which keeps decisions deterministic.

  • A require-approval decision creates a request with an expiry (for example 30 minutes).
  • Rejection reasons are required. Decisions cannot be changed.
  • In code, rejection raises ApprovalRejected, so your agent decides how to continue.

Try the evaluator: Security › Test a call.

Tracing and debugging

In development
  • Events are ordered by attempt and sequence number. Gaps are shown as “events missing” until late batches arrive.
  • Every value is captured, estimated (marked ≈) or agent output (labelled, not verified).
  • Failure groups cluster executions by reason, step type, tool and error class.
  • Walk through a full trace in the interactive demo.

API reference

Conceptual

The REST API is designed but not live. Its conventions:

  • Bearer API keys scoped per environment; approvals require a human session.
  • Idempotency-Key on every POST, kept for 24 hours; reuse with a different body returns 409.
  • Cursor pagination with limit and next_cursor.
  • Errors in RFC 9457 problem-details format with a stable code and request_id.
  • URL major version (/v1) plus a dated version header for additive changes.
Conceptual endpoints
OperationConceptual endpoint
Register a versionPOST /v1/agents/{name}/versions
Create an executionPOST /v1/executions
Execution statusGET /v1/executions/{id}
Execution eventsGET /v1/executions/{id}/events
CancelPOST /v1/executions/{id}:cancel
Authorise a tool callPOST /v1/executions/{id}/tool-calls:authorize
ApprovalsGET /v1/approvals · POST /v1/approvals/{id}:decide
UsageGET /v1/usage

SDK information

In development
  • Python 3.10+, sync and asyncio with matching APIs.
  • Events are buffered and sent in batches; if the buffer fills, payloads are dropped before event skeletons, and the execution is marked telemetry_degraded.
  • The policy check is the only blocking network call in the tool path.
  • A TypeScript SDK is planned after Python.

Errors and troubleshooting

Conceptual
  • idempotency_key_reused (409): same key, different body. Use a new key for a new task.
  • tool_not_declared: the agent called a tool missing from its version’s manifest. Declare it, then promote the new version.
  • approval_expired: no one decided in time. Check approver notifications and expiry length.
  • runner_lost: heartbeats stopped. Check runner health; the execution retries only if it is safe.

Exception table: Developers › Error handling.

Deployment and environments

In development
  • Three fixed environments in V1: development, staging, production. Custom environments are planned.
  • Promotion runs validation: side effects declared, write tools explicitly covered by policy, limits set, prices configured.
  • Rollback is a new deployment of an earlier version. Running executions keep their pinned version.

Security model

In development

Tool credentials stay in your runtime. Capture mode defaults to summaries, and redaction runs in the SDK before anything is sent. Every security property is a design requirement until it is built and tested.

Full status by control: Security.