AgentGoal agent.goal@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- codes
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/agent/goal.v1.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 |
| |
check | object | yes |
| |
check.kind | enum | yes |
| |
check.value | string | yes |
| |
budget | object |
| ||
budget.tokens | integer |
| ||
budget.turns | integer |
| ||
budget.active_minutes | integer |
| ||
no_progress_limit | integer |
| ||
proposal | string |
| ||
evidence | string |
| ||
verdict | object |
| ||
verdict.status | enum | yes |
| |
verdict.reason | string | yes |
| |
verdict.check_output | string |
|
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 }] }