> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Business objectives and release bindings

> Define what an AI system must achieve, bind it to the prompts, models and other artifacts a release ships, and record the outcomes that let a release that changes them pass.

A business objective states what an AI system has to achieve, for example
"refund requests end in the correct resolution". Each objective has
immutable, versioned success contracts and is bound to the things that can
change its outcome: an AI system, an evaluation, or an artifact a release
ships, such as a prompt or a model binding.

The AI release gate uses those bindings. When a release changes an artifact,
the gate looks up the objectives bound to it:

* A changed artifact that no objective is bound to blocks the release with
  `UNKNOWN_DEPENDENCIES`.
* A changed artifact that is bound adds its objective to the release plan.
  The release must declare the objective in its manifest
  (`IMPACTED_OBJECTIVE_NOT_DECLARED_*` otherwise) and have measured outcomes
  for it (`OBJECTIVE_NO_EVIDENCE_*` otherwise).

EvalGate works out which artifacts a release changes by comparing its manifest
with the release that is serving. A release cannot mark an artifact
"unchanged" to skip its objectives.

> [!NOTE]
>
> This is available through the REST API, the generated clients and the
> `evalgate objectives` command. There is no web page for objectives yet.

## Permissions

Reading needs `objectives:read`. Creating objectives, versions, bindings and
outcome records needs `objectives:write`, which members, admins and owners
hold. Removing a binding, starting an instance and recording an outcome also
need `objectives:read`, because their answers carry the binding's subject, the
stored instance on a replay, and the instance's decision. Creating and removing bindings is recorded in the audit
log.

Another organization's objective, binding, release or artifact answers `404`,
exactly like one that does not exist.

## Bind a prompt to an objective

The example uses the CLI. The same steps are available as
`createBusinessObjective`, `createBusinessObjectiveVersion` and
`createBusinessObjectiveBinding` in the TypeScript and Python clients, or as
`POST /api/business-objectives`, `.../versions` and `.../bindings`.

**1. Define the objective**

```bash theme={null}
evalgate objectives create --key refunds-resolved \
  --name "Refunds resolved correctly" --owner support-quality \
  --type case_resolution --criticality high
```

**2. Add and activate a success contract**

Write the contract to a file, then add it as the active version.

```json contract.json theme={null}
{
  "unitOfWork": {
    "entityType": "refund_case",
    "correlationKey": "caseId",
    "startEventTypes": ["case.opened"],
    "terminalEventTypes": ["refund.issued"]
  },
  "successContract": {
    "requiredOutcomes": [
      {
        "id": "refund-issued",
        "description": "Billing shows the refund issued",
        "source": "system_of_record",
        "path": "refund.status",
        "operator": "equals",
        "expected": "issued",
        "hard": false
      }
    ],
    "acceptablePartialOutcomes": [],
    "failureOutcomes": [],
    "reversalOutcomes": []
  },
  "hardConstraints": [],
  "supportingMetrics": [],
  "evidencePolicy": {
    "authoritativeSources": ["billing"],
    "allowedSemanticEvaluators": [],
    "conflictResolution": "authoritative_wins",
    "minimumCoverage": 1
  },
  "outcomeWindow": { "finalAfterMs": 0 },
  "attributionPolicy": { "mode": "release_cohort", "requiredKeys": [] },
  "privacyPolicyId": "default-privacy"
}
```

```bash theme={null}
evalgate objectives add-version <objective-id> --file contract.json --activate
```

A version cannot be changed. Each list in a contract holds at most 100
entries.

**3. Bind the artifact**

```bash theme={null}
evalgate objectives bind <objective-id> --version-id <version-id> \
  --subject-type prompt --subject-id refund-prompt
```

The subject type is the artifact kind (`prompt`, `model_binding`,
`tool_contract`, `retrieval_index` and the other kinds a release manifest
accepts) and the subject id is the artifact's own id. The artifact must
already be known to your organization: a release manifest of yours ships
it, or your deployable-asset registry holds it. Entities are bound by
numeric id with the subject types `ai_system`, `evaluation`, `workflow`,
`monitor`, `agent_fleet`, `runtime_version` and `repository`.

`evalgate objectives unbind <objective-id> <binding-id> --yes` removes a
binding. It stays in the history and the subject can be bound again.

## Record the outcomes that measure a release

A release that changes a bound artifact needs measured outcomes for the
objective. Start an instance for each unit of work (a case, a ticket, a
transaction) with the release's id, then record its outcome events:

```bash theme={null}
evalgate objectives start-instance <objective-id> --key case-1042 --release-id <release-id>
evalgate objectives record-event <objective-id> <instance-id> --file event.json
```

```json event.json theme={null}
{
  "eventKey": "refund-1042",
  "eventType": "refund.issued",
  "source": { "system": "billing", "authoritative": true },
  "payloadProtected": { "refund": { "status": "issued" } },
  "occurredAt": "2026-11-24T10:00:00.000Z",
  "privacyManifestId": "default-privacy",
  "idempotencyKey": "refund-1042"
}
```

Each event is decided against the instance's pinned objective version and
the decision is returned. Decisions are append-only revisions. After the
outcomes are recorded, plan the release again and ask for its decision.

* The payload is scrubbed of credentials and personal data under your
  organization's data policy before it is stored and evaluated. The response
  returns its hash, never the payload.
* `source.authoritative` is what the reporter says about the event. EvalGate
  records it as reported and does not verify it.
* Recording is idempotent by `idempotencyKey`. A request holds at most
  64 KiB, and an instance at most 1,000 events.
* The same instance key with a different release or cohort is refused with
  `409`.

## API reference

| Operation | Method and path |
| - | - |
| `listBusinessObjectives` | `GET /api/business-objectives` |
| `createBusinessObjective` | `POST /api/business-objectives` |
| `getBusinessObjective` | `GET /api/business-objectives/{objectiveId}` |
| `listBusinessObjectiveVersions` | `GET /api/business-objectives/{objectiveId}/versions` |
| `createBusinessObjectiveVersion` | `POST /api/business-objectives/{objectiveId}/versions` |
| `listBusinessObjectiveBindings` | `GET /api/business-objectives/{objectiveId}/bindings` |
| `createBusinessObjectiveBinding` | `POST /api/business-objectives/{objectiveId}/bindings` |
| `removeBusinessObjectiveBinding` | `DELETE /api/business-objectives/{objectiveId}/bindings/{bindingId}` |
| `startBusinessObjectiveInstance` | `POST /api/business-objectives/{objectiveId}/instances` |
| `getBusinessObjectiveInstance` | `GET /api/business-objectives/{objectiveId}/instances/{instanceId}` |
| `recordBusinessObjectiveOutcomeEvent` | `POST /api/business-objectives/{objectiveId}/instances/{instanceId}/events` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.