> For the complete documentation index, see [llms.txt](https://docs.concurrence.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concurrence.com/api-reference/readme/platform/harnesses.md).

# Harnesses

## List harness releases

> The harness releases the platform may be asked to run: every release in platform-v2's \`harness\_releases.json\`, in the order they were imported, filtered by \`kind\` and \`harness\`. Each says why the platform refuses it, if it does (\`refusal\`), and whether the running agent-engine image carries it (\`baked\`, null when agent-engine could not say). A release a service may pin, or a default may name, has no \`refusal\` and is \`baked\`. Requires \`platform:harnesses\` or \`platform:admin\` scope.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Harnesses"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HarnessKind":{"type":"string","enum":["voice","text"]},"HarnessReleaseListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/src__routes__harness_platform__HarnessReleaseListResponse__Item"},"type":"array","title":"Items"},"has_more":{"type":"boolean","title":"Has More"},"continuation_token":{"title":"Continuation Token"}},"type":"object","required":["items","has_more"],"title":"HarnessReleaseListResponse"},"src__routes__harness_platform__HarnessReleaseListResponse__Item":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"type":"string","title":"Repo"},"tag":{"type":"string","title":"Tag"},"asset":{"type":"string","title":"Asset"},"sha256":{"type":"string","title":"Sha256"},"contract_version":{"type":"string","title":"Contract Version"},"harness_version":{"type":"string","title":"Harness Version"},"conformance":{"type":"string","title":"Conformance"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal","description":"Why the platform may not run it (revoked, an unsupported contract, conformance not ``pass``), or None when a\npin or a default may name it."},"baked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Baked","description":"Whether the running agent-engine image carries it, None when agent-engine could not say. A pin or a default\nnaming a release the image does not carry is refused until agent-engine's CD deploys it."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","contract_version","harness_version","conformance","refusal","baked"],"title":"Item"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/platform/harness-releases":{"get":{"tags":["Harnesses"],"summary":"List harness releases","description":"The harness releases the platform may be asked to run: every release in platform-v2's `harness_releases.json`, in the order they were imported, filtered by `kind` and `harness`. Each says why the platform refuses it, if it does (`refusal`), and whether the running agent-engine image carries it (`baked`, null when agent-engine could not say). A release a service may pin, or a default may name, has no `refusal` and is `baked`. Requires `platform:harnesses` or `platform:admin` scope.","operationId":"list-harness-releases","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/HarnessKind"},{"type":"null"}],"title":"Kind"}},{"name":"harness","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"title":"Harness"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"exclusiveMinimum":0,"default":50,"title":"Limit"}},{"name":"continuation_token","in":"query","required":false,"schema":{"title":"Continuation Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessReleaseListResponse"}}}},"403":{"description":"platform:harnesses or platform:admin scope required."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```

## List harness defaults

> The release each harness runs on every service that does not pin one, one entry per harness, and the policy release it names (\`policy\`, null for none). A default the platform may no longer run says why (\`refusal\` for its release, \`policy\_refusal\` for its policy). Read from a copy at most 30 seconds old. Requires \`platform:harnesses\` or \`platform:admin\` scope.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Harnesses"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"HarnessDefaultListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HarnessDefaultResponse"},"type":"array","title":"Items","description":"One per harness, in (kind, harness) order."}},"type":"object","required":["items"],"title":"HarnessDefaultListResponse"},"HarnessDefaultResponse":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","title":"Tag"},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal","description":"Why the platform may not run this default's release now (revoked, unregistered, an unsupported contract), so\nevery unpinned service's sessions of this harness fail closed until it is set again. None for ``in-tree`` and for\na release the platform may run."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release this default names, the values its harness runs, or None."},"policy_refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Refusal","description":"Why the platform may not run this default's policy now (revoked, unregistered, an unsupported contract), so\nevery unpinned service's sessions of this harness fail closed until it is set again. None without a policy and\nfor a policy the platform may run."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","updated_at","updated_by"],"title":"HarnessDefaultResponse"},"HarnessKind":{"type":"string","enum":["voice","text"]},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."}}},"paths":{"/v1/platform/harness-defaults":{"get":{"tags":["Harnesses"],"summary":"List harness defaults","description":"The release each harness runs on every service that does not pin one, one entry per harness, and the policy release it names (`policy`, null for none). A default the platform may no longer run says why (`refusal` for its release, `policy_refusal` for its policy). Read from a copy at most 30 seconds old. Requires `platform:harnesses` or `platform:admin` scope.","operationId":"list-harness-defaults","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessDefaultListResponse"}}}},"403":{"description":"platform:harnesses or platform:admin scope required."}}}}}}
```

## Set a harness default

> Set the release a harness runs on every service that does not pin one: \`{tag: "in-tree"}\` or a registered release named exactly, \`{repo, tag, asset, sha256}\`. A release is validated as a pin is: it matches its registry entry on repo, tag, asset and sha256, its contract is supported, it is not revoked, the entry is this kind and harness, and the running agent-engine image carries it. The body can also name a policy release, \`policy: {repo, tag, asset, sha256}\`, the values the harness runs, checked the same way against platform-v2's \`policy\_releases.json\`; \`in-tree\` can name one. The body is the whole default: a body without \`policy\` clears the default's policy. Unpinned services move on the sessions that start from 30 seconds after it. A pinned service keeps its pinned release, and its pinned policy if the pin names one; a pin without a policy runs the default's. Audited as \`harness\_default.update\`. Requires \`platform:harnesses\` or \`platform:admin\` scope.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"tags":[{"name":"Harnesses"}],"servers":[{"url":"https://platform.api-us.concurrence.com"},{"url":"https://platform.api-eu.concurrence.com","description":"Production, European Union"},{"url":"https://platform.api-au.concurrence.com","description":"Production, Australia"},{"url":"https://platform.api-ca.concurrence.com","description":"Production, Canada"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"ReleaseRef":{"properties":{"repo":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag","description":"A release tag of the harness, e.g. ``grok_voice-v1.2.0`` or ``grok_voice-v1.2.0-hotfix.1``, or ``in-tree``."},"asset":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Asset","description":"The wheel's file name on the release."},"sha256":{"anyOf":[{"$ref":"#/components/schemas/Sha256"},{"type":"null"}]},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"A policy release registered in `policy_releases.json`, named exactly by `repo`, `tag`, `asset` and `sha256`:\nthe values the harness runs. Independent of the release, so `in-tree` can name one. Left out, a pin runs the\ndefault's policy, and a default names none. Stored and audited without the key when left out."}},"type":"object","required":["tag"],"title":"ReleaseRef","description":"A registered release, named exactly, or ``{tag: \"in-tree\"}``."},"Sha256":{"type":"string"},"PolicyRef":{"properties":{"repo":{"type":"string","maxLength":128,"minLength":1,"title":"Repo"},"tag":{"type":"string","maxLength":128,"minLength":1,"title":"Tag"},"asset":{"type":"string","maxLength":256,"minLength":1,"title":"Asset"},"sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256"}},"type":"object","required":["repo","tag","asset","sha256"],"title":"PolicyRef","description":"A policy release registered in ``policy_releases.json``, named exactly: one family's values for the settings\nCore declares. The image bakes it at ``/opt/harness-policies/<sha256>.json``."},"HarnessDefaultResponse":{"properties":{"kind":{"$ref":"#/components/schemas/HarnessKind"},"harness":{"type":"string","title":"Harness"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"tag":{"type":"string","title":"Tag"},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal","description":"Why the platform may not run this default's release now (revoked, unregistered, an unsupported contract), so\nevery unpinned service's sessions of this harness fail closed until it is set again. None for ``in-tree`` and for\na release the platform may run."},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyRef"},{"type":"null"}],"description":"The policy release this default names, the values its harness runs, or None."},"policy_refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Refusal","description":"Why the platform may not run this default's policy now (revoked, unregistered, an unsupported contract), so\nevery unpinned service's sessions of this harness fail closed until it is set again. None without a policy and\nfor a policy the platform may run."}},"type":"object","required":["kind","harness","repo","tag","asset","sha256","updated_at","updated_by"],"title":"HarnessDefaultResponse"},"HarnessKind":{"type":"string","enum":["voice","text"]}}},"paths":{"/v1/platform/harness-defaults/{kind}/{harness}":{"put":{"tags":["Harnesses"],"summary":"Set a harness default","description":"Set the release a harness runs on every service that does not pin one: `{tag: \"in-tree\"}` or a registered release named exactly, `{repo, tag, asset, sha256}`. A release is validated as a pin is: it matches its registry entry on repo, tag, asset and sha256, its contract is supported, it is not revoked, the entry is this kind and harness, and the running agent-engine image carries it. The body can also name a policy release, `policy: {repo, tag, asset, sha256}`, the values the harness runs, checked the same way against platform-v2's `policy_releases.json`; `in-tree` can name one. The body is the whole default: a body without `policy` clears the default's policy. Unpinned services move on the sessions that start from 30 seconds after it. A pinned service keeps its pinned release, and its pinned policy if the pin names one; a pin without a policy runs the default's. Audited as `harness_default.update`. Requires `platform:harnesses` or `platform:admin` scope.","operationId":"set-harness-default","parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["voice","text"],"type":"string","title":"Kind"}},{"name":"harness","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Harness"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRef"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessDefaultResponse"}}}},"403":{"description":"platform:harnesses or platform:admin scope required."},"404":{"description":"No such harness."},"422":{"description":"The release or the policy is not registered as named, the platform may not run it, or it is not in the running agent-engine image (`detail.code` `harness_release_not_deployed`, `harness_policy_unregistered`, `harness_policy_not_deployed`). `detail` says why."},"503":{"description":"The harness defaults table does not exist yet, or agent-engine could not confirm which releases its image baked (`detail.code` `harness_bake_unconfirmed`). Nothing was stored."}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/api-reference/readme/platform/harnesses.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
