ActorTaskCreateRequest actor.task-create-request@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.0.0
- Owner
- actor
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- ADR-044
- Schema
https://openvibe.network/contracts/actor/task-create-request.v1.json
actor.task-create-request@1: the body of POST /api/v1/tasks on OpenVibe.Actor (capability actor.task.create), the creation subset of platform.task@1. TASK is the instruction in plain words. MODE is the planner objective (default balanced). BUDGET caps what this task may cost (per_task_usd) and what the caller's tasks may cost in one UTC day (per_day_usd); either may be left out for the person's free-allowance defaults, and a value above the person's tier is refused 422 actor.budget.over_tier, never silently lowered. AGENT pins one agent system by its id from GET /api/v1/agent-systems, the public catalog (routing still checks that it can take the task); AGENT_ID names one of the caller's own agent contacts from GET /api/v1/agents to run this task as (absent: Vibe, their first agent). LEVEL is the thread's approval level; the effective level is the higher of the agent's own level and this one, inherited along the person's own parent chain and never from outside work. IDEMPOTENCY_KEY: a repeat from the same requester within 24 h with an identical body answers the first task (200), with a different body 409 actor.idempotency.conflict. WEBHOOKS (at most 8): each an https URL and the state changes to deliver there (the names of platform.task@1 `state`). Actor signs every delivery with a secret it mints for the task, returned once as `webhook_secret` in the answer that created it (and in an idempotent repeat), and POSTs actor.task-webhook@1 through its egress guard: public addresses only, ports 443 or 8443, no credentials in the URL, never a redirect. A URL that cannot be delivered to is refused 422 actor.webhook.refused. A webhook may instead name a project secret (`secret_ref`, ADR-056): its deliveries are then signed by OpenVibe.Network with that secret, in the same headers, and no webhook_secret is minted when every webhook names one. A secret_ref on a task outside a project is refused 422 actor.webhook.secret_unavailable. CONVERSATION names the product conversation this task answers ({ product, id }); TOOLS names the registry tool names the run may call (an empty array answers with no tool calls; a name nothing offers is said aloud in the run, never silently dropped); MODEL names one exact model id, resolved like one the person picked themselves. All three are the one-engine slice: a product has Actor answer one turn of its own conversation. TIER is the content tier (standard or uncensored): uncensored needs the person the task is for, and OpenVibe.AI checks that person's 18+ confirmation on the account before it answers on that tier.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
task | string | yes | The instruction in plain words. |
|
mode | enum |
| ||
budget | object |
| ||
budget.per_task_usd | number |
| ||
budget.per_day_usd | number |
| ||
agent | string | An agent system id from GET /api/v1/agents. |
| |
idempotency_key | string |
| ||
webhooks | array of object | Where Actor tells the caller about this task's state changes (plan T17). |
| |
webhooks[].url | string | yes | The HTTPS endpoint Actor POSTs to. |
|
webhooks[].events | array of enum | yes | The state changes delivered; the names of platform.task@1 `state`. |
|
webhooks[].secret_ref | string | The name of a project secret (ADR-056) that signs this webhook's deliveries instead of the task's own secret. The task must be made in a project (by an app or agent token carrying project_id and env); the secret is looked up in that project and environment, and the project must have granted it to actor for sign. Actor never sees the value: OpenVibe.Network computes each signature. |
| |
agent_id | string | One of the caller's own agent contacts (actor.agent@1) the task runs as. Absent: their Vibe, created on first read. The public agent-system catalog stays in `agent`. |
| |
level | enum | The thread's approval level. The effective level is max(the agent's level, this level, the levels of the person's own parent tasks). The always-ask floor still applies. |
| |
conversation | object | The product conversation this task answers. Stored on the task so a later query can find the turn's task; the product keeps the task id beside its own conversation. |
| |
conversation.product | string | yes | The product whose conversation this task answers (exchange, chat, …). |
|
conversation.id | string | yes | That product's key for the conversation and turn. |
|
tools | array of string | The registry tool names the run may call. An empty array answers with no tool calls; a name nothing offers is said aloud in the run, never silently dropped. |
| |
model | string | One exact model id, resolved by OpenVibe.AI like one the person picked themselves. Omitted: Actor answers on its default. |
| |
tier | enum | The content tier this task answers under. STANDARD is what every request gets. UNCENSORED is only for a task that names the person it is for (a person acting for themselves, or a first-party service naming them): OpenVibe.AI checks that person's 18+ confirmation on the account and refuses the tier without it. A task with no person, or one whose person has not confirmed, is answered on the standard tier. The hard floor (nothing sexual involving a minor) holds on every tier. |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: full
{
"task": "Research five competitors of my shop and write a one-page brief with sources.",
"mode": "best",
"budget": {
"per_task_usd": 0.5,
"per_day_usd": 2
},
"agent": "openai-agent",
"idempotency_key": "brief-2026-10-08"
}Valid: minimal
{
"task": "What is the TTL of openvibe.network's MX record?"
}Valid: turn-adult
{
"task": "You are Sable.\n\nThe conversation so far:\nThe person: Do you like quiet weekends?\nThe companion: The quiet ones are the best ones.\n\nThe person now says:\nHelp me plan a quiet weekend.",
"mode": "cheapest",
"model": "deepseek/deepseek-chat@v1",
"budget": {
"per_task_usd": 0.05
},
"idempotency_key": "exchange-companion-cmp_01-turn-ext_01-v0",
"conversation": {
"product": "exchange",
"id": "companion-chat:cmp_01/turn:ext_01/v0"
},
"tools": [],
"tier": "uncensored"
}Valid: turn
{
"task": "You are Sable.\n\nThe conversation so far:\nThe person: Do you like quiet weekends?\nThe companion: The quiet ones are the best ones.\n\nThe person now says:\nHelp me plan a quiet weekend.",
"mode": "cheapest",
"model": "deepseek/deepseek-chat@v1",
"budget": {
"per_task_usd": 0.05
},
"idempotency_key": "exchange-companion-cmp_01-turn-ext_01-v0",
"conversation": {
"product": "exchange",
"id": "companion-chat:cmp_01/turn:ext_01/v0"
},
"tools": []
}Valid: webhook-secret-ref
{
"task": "Summarise this week's Node.js release notes",
"webhooks": [
{
"url": "https://hooks.example.com/actor",
"events": [
"succeeded",
"failed"
],
"secret_ref": "webhook-signing"
}
]
}Valid: with-webhooks
{
"task": "Summarize today's top three posts on openvibe.news.",
"webhooks": [
{
"url": "https://hooks.example.com/openvibe/actor",
"events": [
"succeeded",
"failed",
"cancelled"
]
}
]
}Rejected: blank-task
{
"task": " "
}Rejected: conversation-no-id
{
"task": "x",
"conversation": {
"product": "exchange"
}
}Rejected: negative-budget
{
"task": "x",
"budget": {
"per_task_usd": -1
}
}Rejected: tier-not-here
{
"task": "x",
"tier": "adult"
}Rejected: tools-not-here
{
"task": "x",
"tools": "read_page"
}Rejected: unknown-mode
{
"task": "x",
"mode": "smartest"
}Rejected: webhook-http
{
"task": "x",
"webhooks": [
{
"url": "http://hooks.example.com/x",
"events": [
"succeeded"
]
}
]
}Rejected: webhook-secret-ref-spaces
{
"task": "Summarise this week's Node.js release notes",
"webhooks": [
{
"url": "https://hooks.example.com/actor",
"events": [
"succeeded"
],
"secret_ref": "Webhook Signing"
}
]
}Rejected: webhook-secret-ref
{
"task": "x",
"webhooks": [
{
"url": "https://hooks.example.com/x",
"events": [
"succeeded"
],
"secret_ref": "HOOK_KEY"
}
]
}Rejected: webhooks-not-here
{
"task": "x",
"webhooks": []
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('actor.task-create-request@1', value); // { valid, errors: [{ path, message }] }