---
title: "agent.goal@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/agent.goal"
updated: null
---

# agent.goal@1 · OpenVibe.Services

HTML: [agent.goal@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/agent.goal)

# AgentGoal `agent.goal@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: codes
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/agent/goal.v1.json`](/docs/contracts/agent.goal.json)

A task outcome, its verifiable check, and bounded resources. A worker proposes completion; an independent verifier records the verdict.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `goal` | string | yes |  | - `minLength 1`<br>- `maxLength 4000` |
| `check` | object | yes |  | - `no other fields` |
| `check.kind` | enum | yes |  | - `one of "command", "url", "rubric"` |
| `check.value` | string | yes |  | - `minLength 1`<br>- `maxLength 4000` |
| `budget` | object |  |  | - `no other fields` |
| `budget.tokens` | integer |  |  | - `minimum 1` |
| `budget.turns` | integer |  |  | - `minimum 1` |
| `budget.active_minutes` | integer |  |  | - `minimum 1` |
| `no_progress_limit` | integer |  |  | - `minimum 1`<br>- `maximum 20` |
| `proposal` | string |  |  | - `maxLength 4000` |
| `evidence` | string |  |  | - `maxLength 262144` |
| `verdict` | object |  |  | - `no other fields` |
| `verdict.status` | enum | yes |  | - `one of "accepted", "rejected", "failed"` |
| `verdict.reason` | string | yes |  | - `minLength 1`<br>- `maxLength 4000` |
| `verdict.check_output` | string |  |  | - `maxLength 262144` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: example

~~~~
{
  "goal": "The file src/main.js exists and passes node --check.",
  "check": {
    "kind": "command",
    "value": "node --check src/main.js"
  },
  "budget": {
    "tokens": 12000,
    "turns": 12,
    "active_minutes": 30
  },
  "no_progress_limit": 3
}
~~~~

Rejected: missing-check-kind

~~~~
{
  "goal": "The file exists.",
  "check": {
    "value": "test -f src/main.js"
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('agent.goal@1', value);   // { valid, errors: [{ path, message }] }
~~~~
