Manifest schema (full)
The complete agent-manifest.v3.json JSON Schema, inlined. Every field,
every type, every allowed value, every default. An LLM reading only this
page can produce a valid manifest without consulting the repo.
For a higher-level overview with examples, see Manifest reference.
At a glance#
Every top-level key, what it decides about your agent, and where it's documented below.
| Key | Required | What it decides | Jump to |
|---|---|---|---|
$schema, id, version, name, input | yes | Schema version, identity, accepted payload | Required fields |
runtime | yes | How the kernel executes the agent | runtime |
autonomy | yes | Decision policy at result time | autonomy |
capabilities.needs[] | — | Canonical capabilities the operator must or may bind | capabilities.needs[] |
contextRequirements | — | Glossary terms, skills and ontology entities the agent reads | contextRequirements |
eval | — | Scenarios the kernel runs on upload, nightly and on demand | eval |
output, config | — | Declared return shape; tenant-set instance config | input / output / config |
schedules | — | Cron-triggered invocations | schedules[] |
webhooks | — | HMAC-verified inbound triggers | webhooks[] |
retryPolicy | — | Exponential backoff on failure | retryPolicy |
llmRequirements | — | LLM purposes, rendered as per-instance "LLM bindings" | llmRequirements[] |
description, icon, license, groupName, author, resources | — | Catalog metadata and resource limits | Top-level |
Schema source of truth#
- Current version: v3.1
- Repo:
schemas/agent-manifest.v3.jsonon github.com/Konstera/sdk - Platform validates on upload. Validation errors use the
[VAL-*]codes documented in Error catalog.
Top-level#
{
"$schema": "https://schemas.konstera.ai/agent-manifest.v3.json",
"id": "io.konstera.my-agent",
"version": "0.1.0",
"name": "My Agent",
"description": "What this agent does.",
"icon": "🎧",
"license": "MIT",
"groupName": "Customer Success",
"author": { "name": "Konstera", "email": "hello@konstera.example" },
"runtime": { "kind": "container", "image": "ghcr.io/you/my-agent:0.1.0", "port": 8080, "healthPath": "/health" },
"llmRequirements": [...],
"capabilities": { "needs": [...] },
"contextRequirements": { "glossary": [...], "skills": [...], "ontologyEntities": [...] },
"eval": { "endpoint": "/eval", "scenarios": [...] },
"autonomy": "autonomous",
"input": { "type": "object", "properties": {...} },
"output": { "type": "object", "properties": {...} },
"schedules": [...],
"webhooks": [...],
"config": { "type": "object", "properties": {...} },
"retryPolicy": { "maxAttempts": 3, "backoffSeconds": 10 },
"resources": { "memoryMi": 512, "cpuMillis": 500, "timeoutSeconds": 240 }
}
Required fields#
| Field | Type | Constraints | Notes |
|---|---|---|---|
$schema | string | URL to the schema version | Determines which validation rules apply. v3 = https://schemas.konstera.ai/agent-manifest.v3.json |
id | string | ^[a-z0-9][a-z0-9.\-]*[a-z0-9]$, 3-120 chars | Globally unique within tenant. Convention: io.konstera.<name> or reverse-DNS. |
version | string | Semver 2.0 | Immutable per upload. New version = new upload. |
name | string | 1-120 chars | Shown in catalog + inbox. |
runtime | object | See runtime block below | How the kernel executes the agent. |
input | JSON Schema | Valid draft-07 schema | Accepted invocation payload shape. |
autonomy | enum | See autonomy block | Decision policy at result time. |
runtime#
Three variants (kind discriminator):
runtime.kind = "container" (default)#
"runtime": {
"kind": "container",
"image": "ghcr.io/you/my-agent:0.1.0",
"port": 8080,
"healthPath": "/health",
"timeoutSeconds": 240,
"memoryMi": 512,
"cpuMillis": 500,
"env": { "FOO": "bar" },
"command": ["python", "-u", "main.py"]
}
| Field | Type | Default | Notes |
|---|---|---|---|
kind | "container" | required | — |
image | string | required | OCI image reference. Public or in a registry the kernel can pull from. |
port | integer | 8080 | Container's HTTP listen port. Kernel maps internally. |
healthPath | string | /health | Liveness check endpoint. |
timeoutSeconds | integer | 60 | Max duration for one handle() call. See [KERN-004] in errors. |
memoryMi | integer | 256 | Memory limit in MiB. See [KERN-005]. |
cpuMillis | integer | 500 | CPU limit in millicores. 1000 = 1 vCPU. |
env | object | {} | Extra env vars to inject into the container. The kernel ALWAYS injects the KONSTERA_* set — see env-vars. |
command | string[] | from image | Container entrypoint override. |
runtime.kind = "mcp-stdio" (local dev)#
"runtime": {
"kind": "mcp-stdio",
"command": "python",
"args": ["-u", "main.py"]
}
Launches an MCP process over stdio. Local-dev shortcut — not used in production.
runtime.kind = "mcp-http" (dev + integration tests)#
"runtime": {
"kind": "mcp-http",
"url": "http://my-agent.local:8080",
"auth": { "kind": "bearer", "token": "..." }
}
Agent runs anywhere reachable by HTTP. Used for integration tests where you want to run the agent in your IDE's debugger.
autonomy#
Enum with three values. Scope-stacked — the tenant admin can override the manifest-declared autonomy at deploy time without redeploying.
| Value | Meaning |
|---|---|
autonomous | Handler result applied directly. Still logged for audit + replay. |
require_review | Handler result lands in the reviewer inbox. Reviewer picks send / edit / redraft / reject. |
require_approval | Stronger: approval must come from a named reviewer role (configurable per binding). |
For tier-based autonomy (small → autonomous, large → approval), don't encode in the manifest — use autonomy bindings at deploy time.
capabilities.needs[] (v3)#
Each entry is an object:
"capabilities": {
"needs": [
{
"name": "orders.lookup_by_email",
"required": false,
"reason": "Retail installs bind this to cite order status in replies"
}
]
}
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | Canonical capability name from the catalogue. Install validates — see [VAL-002]. |
required | boolean | no (default false) | true = install fails if operator doesn't bind this. Agent is guaranteed ctx.capability.call() succeeds. false = optional; agent must available() first. |
reason | string | no | Shown in the portal binding UI. Explains why the agent needs it. |
contextRequirements (v3.1 — Context Service, ADR-037)#
"contextRequirements": {
"glossary": [
{ "term": "refund_window_days", "required": false }
],
"skills": [
{ "name": "evaluate_refund_eligibility", "required": true }
],
"ontologyEntities": [
{ "entity": "customer", "required": true },
{ "entity": "order", "required": false }
]
}
| Section | Field | Required | Notes |
|---|---|---|---|
glossary[] | term, required | — | Glossary term the agent references. Install validates term exists in tenant Context Service. |
skills[] | name, required | — | Skill the agent runs via ctx.semantic.skills_get(). Install validates skill is active. |
ontologyEntities[] | entity, required | — | Ontology entity the agent reads via ctx.semantic.ontology_lookup(). |
Omit the whole block if the agent doesn't use Context Service.
eval (v3.1 — ADR-044)#
Evaluation contract — the kernel runs scenarios against the agent on upload + nightly + on-demand.
"eval": {
"endpoint": "/eval",
"timeout_seconds": 60,
"scenarios": [
{
"id": "refund-eligible-vip",
"cluster_tag": "refund-eligible",
"input": {...},
"expected": {...}
}
]
}
| Field | Type | Required | Notes |
|---|---|---|---|
endpoint | string | no (default /eval) | HTTP path the kernel POSTs scenario inputs to. |
timeout_seconds | integer | no (default 60) | Per-scenario timeout. |
scenarios[] | object[] | — | Inline scenarios. Each has id, optional cluster_tag, input, expected. Full shape per ADR-044. |
input / output / config (JSON Schema)#
Standard JSON Schema draft-07. Example:
"input": {
"type": "object",
"required": ["ticket_id"],
"properties": {
"ticket_id": {
"type": "string",
"pattern": "^[A-Z0-9\\-]+$",
"description": "The ticket to triage."
},
"priority_hint": {
"type": "string",
"enum": ["low", "normal", "high"],
"default": "normal"
}
}
}
output is validated at response time if present. config is instance-level
tenant-set config visible at req.config.
Operators set config values per instance on the agent's Configuration tab, which is generated from your schema — defaults, ranges and descriptions included:
schedules[]#
"schedules": [
{
"name": "every-hour",
"cron": "0 * * * *",
"timezone": "UTC",
"input": { "mode": "poll" }
}
]
Standard cron (5-field). Timezone follows IANA names. input is the
AgentRequest.payload for scheduled invocations.
webhooks[]#
"webhooks": [
{
"name": "stripe-events",
"path": "/webhooks/stripe-events",
"hmac_secret_credential": "stripe-webhook-secret",
"signature_header": "Stripe-Signature"
}
]
| Field | Required | Notes |
|---|---|---|
name | yes | Logical name shown in the portal. |
path | yes | Public path. Kernel exposes at https://api.konstera.ai/wh/<tenant>/<path>. |
hmac_secret_credential | no | Credential key for the HMAC secret. Omit for unauthenticated webhooks (not recommended). |
signature_header | no | Name of the header carrying the HMAC signature. Default varies by vendor. |
retryPolicy#
"retryPolicy": {
"maxAttempts": 3,
"backoffSeconds": 10,
"backoffMultiplier": 2.0,
"maxBackoffSeconds": 300
}
Standard exponential backoff. Platform defaults are usually fine — omit the whole block to inherit them.
llmRequirements[]#
Declares which LLM purposes the agent uses. The portal uses this to render the "LLM bindings" page per instance.
"llmRequirements": [
{
"purpose": "drafter",
"suggestedModel": "claude-haiku-4-5-20251001",
"maxTokens": 2048,
"description": "Drafts a human-tone reply to the customer."
}
]
Agent must await ctx.llm.complete(purpose="drafter", ...) to use the binding.