---
title: "platform.workload-requirements@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/platform.workload-requirements"
updated: null
---

# platform.workload-requirements@1 · OpenVibe.Services

HTML: [platform.workload-requirements@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/platform.workload-requirements)

# WorkloadRequirements `platform.workload-requirements@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.1.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/platform/workload-requirements.v1.json`](/docs/contracts/platform.workload-requirements.json)

What a workload needs, so the platform can place it (roadmap WS-Z9). Hard constraints are filtered before any objective is scored; a cheaper candidate that misses one is never chosen.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `kind` | string | yes | what runs, e.g. watch.browser, media.transcode, ai.run, events.deliver |  |
| `mobility` | enum | yes |  | - `one of "request", "job", "session", "stateful-partition"` |
| `latency_class` | enum | yes |  | - `one of "realtime", "interactive", "background", "bulk", "critical"` |
| `objective` | enum | yes |  | - `one of "cheapest", "lowest-latency", "balanced", "private", "local-only", "first-party-only", "high-reliability", "correctness"` |
| `max_latency_ms` | number |  |  | - `minimum 0` |
| `deadline_ms` | number |  |  | - `minimum 0` |
| `max_cost_usd` | number |  |  | - `minimum 0` |
| `durability` | enum |  |  | - `one of "none", "at-least-once", "authoritative"` |
| `residency` | string |  | region or jurisdiction the work and its data must stay in |  |
| `trust` | array of enum |  | trust classes allowed to run it (ADR-046); when absent, first-party, partner, community and external. user-owned is never a default: a user-owned offer is eligible only when this list names it | - `minItems 1`<br>- `items: one of "first-party", "user-owned", "partner", "community", "external"` |
| `region` | string |  | a region, or 'nearest' |  |
| `capabilities` | array of string |  | capabilities a candidate must offer (worker:browser, …) |  |
| `resources` | object |  |  | - `no other fields` |
| `resources.cpu` | number |  |  | - `minimum 0` |
| `resources.memory_mb` | number |  |  | - `minimum 0` |
| `resources.gpu` | boolean |  |  |  |
| `resources.scratch_gb` | number |  |  | - `minimum 0` |
| `resources.egress` | enum |  |  | - `one of "none", "public", "openvibe-only"` |
| `project_id` | string |  |  | - `pattern ^prj_[0-9A-HJKMNP-TV-Z]{26}$` |
| `partition_key` | string |  | stable key for rendezvous placement (room, stream, session) |  |

## Examples

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

 Valid: browser-watch

~~~~
{
  "kind": "watch.browser",
  "mobility": "job",
  "latency_class": "interactive",
  "objective": "balanced",
  "max_latency_ms": 1000,
  "max_cost_usd": 0.002,
  "durability": "at-least-once",
  "trust": [
    "first-party",
    "partner"
  ],
  "region": "nearest",
  "capabilities": [
    "worker:browser"
  ],
  "resources": {
    "cpu": 2,
    "memory_mb": 1024,
    "egress": "public"
  }
}
~~~~

Valid: ledger

~~~~
{
  "kind": "billing.post",
  "mobility": "stateful-partition",
  "latency_class": "critical",
  "objective": "correctness",
  "durability": "authoritative"
}
~~~~

Valid: user-owned-only

~~~~
{
  "kind": "ai.run",
  "mobility": "job",
  "latency_class": "background",
  "objective": "private",
  "trust": [
    "user-owned"
  ]
}
~~~~

Rejected: no-mobility

~~~~
{
  "kind": "x",
  "latency_class": "background",
  "objective": "cheapest"
}
~~~~

Rejected: unknown-objective

~~~~
{
  "kind": "x",
  "mobility": "job",
  "latency_class": "background",
  "objective": "free"
}
~~~~

## Validate

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