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

# agent.ticket@1 · OpenVibe.Services

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

# AgentTicket `agent.ticket@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: actor
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/agent/ticket.v1.json`](/docs/contracts/agent.ticket.json)

Authorized work with an immutable mandate. Policy changes notify, never cancel. Revalidate before resuming an ended ticket; bots and CI cannot resume it. Stage applies to open tickets.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `minLength 1` |
| `trigger_id` | string | yes |  | - `minLength 1` |
| `mandate` | object | yes |  | - `no other fields` |
| `mandate.policy_version` | string | yes |  | - `minLength 1` |
| `mandate.scope` | string | yes |  | - `minLength 1` |
| `mandate.strength` | enum | yes |  | - `one of "explicit", "inferred"` |
| `mandate.matched_rules` | array of string | yes |  | - `unique items`<br>- `items: minLength 1` |
| `mandate.actor` | object | yes |  | - `no other fields` |
| `mandate.actor.source` | string | yes |  | - `minLength 1` |
| `mandate.actor.id` | string | yes |  | - `minLength 1` |
| `mandate.actor.kind` | enum | yes |  | - `one of "person", "bot", "system"` |
| `mandate.source_scope` | string | yes |  | - `minLength 1` |
| `mandate.budget` | object | yes |  | - `no other fields` |
| `mandate.budget.usd` | number | yes |  | - `minimum 0` |
| `mandate.budget.tokens` | integer | yes |  | - `minimum 0` |
| `mandate.budget.wall_minutes` | number | yes |  | - `minimum 0` |
| `state` | enum | yes |  | - `one of "open", "ended"` |
| `stage` | [agent.stage](/docs/contracts/agent.stage) | yes |  |  |
| `threads` | array of string | yes |  | - `minItems 1`<br>- `unique items`<br>- `items: minLength 1` |

## Examples

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

 Valid: example

~~~~
{
  "id": "tkt_1",
  "trigger_id": "trg_1",
  "mandate": {
    "policy_version": "1",
    "scope": "Fix issue 1",
    "strength": "explicit",
    "matched_rules": [],
    "actor": {
      "source": "github",
      "id": "owner",
      "kind": "person"
    },
    "source_scope": "issues",
    "budget": {
      "usd": 2,
      "tokens": 100000,
      "wall_minutes": 30
    }
  },
  "state": "open",
  "stage": "working",
  "threads": [
    "issue:1"
  ]
}
~~~~

Rejected: budget

~~~~
{
  "id": "tkt_1",
  "trigger_id": "trg_1",
  "mandate": {
    "policy_version": "1",
    "scope": "Fix issue 1",
    "strength": "explicit",
    "matched_rules": [],
    "actor": {
      "source": "github",
      "id": "owner",
      "kind": "person"
    },
    "source_scope": "issues",
    "budget": {
      "usd": -1,
      "tokens": 100000,
      "wall_minutes": 30
    }
  },
  "state": "open",
  "stage": "working",
  "threads": [
    "issue:1"
  ]
}
~~~~

Rejected: unknown

~~~~
{
  "id": "tkt_1",
  "trigger_id": "trg_1",
  "mandate": {
    "policy_version": "1",
    "scope": "Fix issue 1",
    "strength": "explicit",
    "matched_rules": [],
    "actor": {
      "source": "github",
      "id": "owner",
      "kind": "person"
    },
    "source_scope": "issues",
    "budget": {
      "usd": 2,
      "tokens": 100000,
      "wall_minutes": 30
    }
  },
  "state": "open",
  "stage": "working",
  "threads": [
    "issue:1"
  ],
  "unexpected": true
}
~~~~

## Validate

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