Report test-run progress, results, evidence, and artifacts
PATCH
/v1/test-plans/runs/{runId}Active leased runs require the current opaque execution lease credentials.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| runId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| status | queued | running | passed | failed | completed_with_errors | cancelled | No | Current lifecycle status. |
| results | object[] | No | — |
| results[].id | string | No | Unique identifier. |
| results[].caseId | string | Yes | — |
| results[].name | string | No | Human-readable name. |
| results[].kind | command | contract | integration | browser | agent | security | custom | No | — |
| results[].status | queued | running | passed | failed | skipped | error | Yes | Current lifecycle status. |
| results[].attempt | integer | No | — |
| results[].durationMs | integer | No | — |
| results[].exitCode | integer | No | — |
| results[].summary | string | No | — |
| results[].diagnostics | object | No | — |
| results[].evidence | object | No | — |
| results[].startedAt | string | No | ISO 8601 timestamp. |
| results[].completedAt | string | No | ISO 8601 timestamp. |
| artifacts | object[] | No | — |
| artifacts[].id | string | No | Unique identifier. |
| artifacts[].testCaseResultId | string | No | — |
| artifacts[].type | string | No | — |
| artifacts[].name | string | Yes | Human-readable name. |
| artifacts[].uri | string | Yes | — |
| artifacts[].contentType | string | No | — |
| artifacts[].sizeBytes | integer | No | — |
| artifacts[].sha256 | string | No | — |
| artifacts[].metadata | object | No | Free-form metadata object. |
| evidence | object | No | — |
| metadata | object | No | Free-form metadata object. |
| durationMs | integer | No | — |
| startedAt | string | No | ISO 8601 timestamp. |
| completedAt | string | No | ISO 8601 timestamp. |
| executionLease | object | No | — |
| executionLease.owner | string | Yes | — |
| executionLease.token | string | Yes | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Updated test run with server-issued terminal evidenceapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| testRun | object | Yes | — |
| testRun.id | string | Yes | Unique identifier. |
| testRun.testPlanId | string | Yes | — |
| testRun.versionId | string | Yes | — |
| testRun.projectId | string | Yes | Project ID. |
| testRun.taskId | string | Yes | — |
| testRun.releaseId | string | Yes | — |
| testRun.environmentId | string | Yes | Computer ID. |
| testRun.agentId | string | Yes | Agent ID. |
| testRun.triggerType | manual | mission_control | task | release | pull_request | schedule | api | Yes | — |
| testRun.commitSha | string | Yes | — |
| testRun.status | queued | running | passed | failed | completed_with_errors | cancelled | Yes | Current lifecycle status. |
| testRun.totalCount | integer | Yes | — |
| testRun.passedCount | integer | Yes | — |
| testRun.failedCount | integer | Yes | — |
| testRun.skippedCount | integer | Yes | — |
| testRun.errorCount | integer | Yes | — |
| testRun.durationMs | integer | Yes | — |
| testRun.evidence | object | Yes | — |
| testRun.evidence.schemaVersion | computer_agents_test_run_evidence_v2 | Yes | — |
| testRun.evidence.runId | string | Yes | — |
| testRun.evidence.planId | string | Yes | — |
| testRun.evidence.planVersionId | string | Yes | — |
| testRun.evidence.planFingerprint | string | Yes | — |
| testRun.evidence.commitSha | string | Yes | — |
| testRun.evidence.status | queued | running | passed | failed | completed_with_errors | cancelled | Yes | Current lifecycle status. |
| testRun.evidence.expectedCaseIds | string[] | Yes | — |
| testRun.evidence.counts | object | Yes | — |
| testRun.evidence.counts.total | integer | Yes | — |
| testRun.evidence.counts.passed | integer | Yes | — |
| testRun.evidence.counts.failed | integer | Yes | — |
| testRun.evidence.counts.skipped | integer | Yes | — |
| testRun.evidence.counts.error | integer | Yes | — |
| testRun.evidence.executionContext | object | Yes | — |
| testRun.evidence.executionContext.environmentId | string | Yes | Computer ID. |
| testRun.evidence.executionContext.agentId | string | Yes | Agent ID. |
| testRun.evidence.executionContext.projectId | string | Yes | Project ID. |
| testRun.evidence.executionContext.taskId | string | Yes | — |
| testRun.evidence.executionContext.releaseId | string | Yes | — |
| testRun.evidence.generatedAt | string | Yes | — |
| testRun.evidence.resultSetFingerprint | string | Yes | — |
| testRun.evidence.artifactSetFingerprint | string | Yes | — |
| testRun.evidence.provenance | object | Yes | Self-reported provenance must be unverified with no attestation. Verified-worker provenance is accepted only when the server-verified attestation binds every canonical evidence identity and digest. |
| testRun.evidence.provenance.schemaVersion | computer_agents_test_run_evidence_provenance_v1 | Yes | — |
| testRun.evidence.provenance.source | computer_agents_thread | execution_worker | api_client | legacy_import | Yes | — |
| testRun.evidence.provenance.trustLevel | self_reported | verified_worker | Yes | — |
| testRun.evidence.provenance.verificationStatus | unverified | verified | Yes | — |
| testRun.evidence.provenance.executor | object | Yes | — |
| testRun.evidence.provenance.executor.kind | string | Yes | — |
| testRun.evidence.provenance.executor.id | string | Yes | Unique identifier. |
| testRun.evidence.provenance.attestation | object | Yes | — |
| testRun.evidence.provenance.attestation.schemaVersion | computer_agents_test_execution_attestation_v1 | Yes | — |
| testRun.evidence.provenance.attestation.attestationId | string | Yes | — |
| testRun.evidence.provenance.attestation.workerId | string | Yes | — |
| testRun.evidence.provenance.attestation.dispatchId | string | Yes | — |
| testRun.evidence.provenance.attestation.workerAssertionId | string | Yes | — |
| testRun.evidence.provenance.attestation.runId | string | Yes | — |
| testRun.evidence.provenance.attestation.planId | string | Yes | — |
| testRun.evidence.provenance.attestation.planVersionId | string | Yes | — |
| testRun.evidence.provenance.attestation.planFingerprint | string | Yes | — |
| testRun.evidence.provenance.attestation.commitSha | string | Yes | — |
| testRun.evidence.provenance.attestation.environmentId | string | Yes | Computer ID. |
| testRun.evidence.provenance.attestation.resultSetFingerprint | string | Yes | — |
| testRun.evidence.provenance.attestation.artifactSetFingerprint | string | Yes | — |
| testRun.evidence.provenance.attestation.issuedAt | string | Yes | — |
| testRun.evidence.provenance.attestation.verifiedAt | string | Yes | — |
| testRun.evidence.results | object[] | Yes | — |
| testRun.evidence.results[].id | string | Yes | Unique identifier. |
| testRun.evidence.results[].testRunId | string | Yes | — |
| testRun.evidence.results[].caseId | string | Yes | — |
| testRun.evidence.results[].name | string | Yes | Human-readable name. |
| testRun.evidence.results[].kind | command | contract | integration | browser | agent | security | custom | Yes | — |
| testRun.evidence.results[].status | queued | running | passed | failed | skipped | error | Yes | Current lifecycle status. |
| testRun.evidence.results[].attempt | integer | Yes | — |
| testRun.evidence.results[].durationMs | integer | Yes | — |
| testRun.evidence.results[].exitCode | integer | Yes | — |
| testRun.evidence.results[].summary | string | Yes | — |
| testRun.evidence.results[].diagnostics | object | Yes | — |
| testRun.evidence.results[].evidence | object | Yes | — |
| testRun.evidence.results[].startedAt | string | Yes | ISO 8601 timestamp. |
| testRun.evidence.results[].completedAt | string | Yes | ISO 8601 timestamp. |
| testRun.evidence.results[].createdAt | string | Yes | ISO 8601 timestamp. |
| testRun.evidence.results[].updatedAt | string | Yes | ISO 8601 timestamp. |
| testRun.evidence.artifacts | object[] | Yes | — |
| testRun.evidence.artifacts[].id | string | Yes | Unique identifier. |
| testRun.evidence.artifacts[].testRunId | string | Yes | — |
| testRun.evidence.artifacts[].testCaseResultId | string | Yes | — |
| testRun.evidence.artifacts[].type | string | Yes | — |
| testRun.evidence.artifacts[].name | string | Yes | Human-readable name. |
| testRun.evidence.artifacts[].uri | string | Yes | — |
| testRun.evidence.artifacts[].contentType | string | Yes | — |
| testRun.evidence.artifacts[].sizeBytes | integer | Yes | — |
| testRun.evidence.artifacts[].sha256 | string | Yes | — |
| testRun.evidence.artifacts[].metadata | object | Yes | Free-form metadata object. |
| testRun.evidence.artifacts[].createdAt | string | Yes | ISO 8601 timestamp. |
| testRun.evidence.fingerprint | string | Yes | — |
| testRun.metadata | object | Yes | Free-form metadata object. |
| testRun.execution | object | Yes | — |
| testRun.execution.owner | string | Yes | — |
| testRun.execution.attempt | integer | Yes | — |
| testRun.execution.leaseExpiresAt | string | Yes | — |
| testRun.execution.heartbeatAt | string | Yes | — |
| testRun.createdAt | string | Yes | ISO 8601 timestamp. |
| testRun.updatedAt | string | Yes | ISO 8601 timestamp. |
| testRun.startedAt | string | Yes | ISO 8601 timestamp. |
| testRun.completedAt | string | Yes | ISO 8601 timestamp. |
| testRun.results | object[] | No | — |
| testRun.results[].id | string | Yes | Unique identifier. |
| testRun.results[].testRunId | string | Yes | — |
| testRun.results[].caseId | string | Yes | — |
| testRun.results[].name | string | Yes | Human-readable name. |
| testRun.results[].kind | command | contract | integration | browser | agent | security | custom | Yes | — |
| testRun.results[].status | queued | running | passed | failed | skipped | error | Yes | Current lifecycle status. |
| testRun.results[].attempt | integer | Yes | — |
| testRun.results[].durationMs | integer | Yes | — |
| testRun.results[].exitCode | integer | Yes | — |
| testRun.results[].summary | string | Yes | — |
| testRun.results[].diagnostics | object | Yes | — |
| testRun.results[].evidence | object | Yes | — |
| testRun.results[].startedAt | string | Yes | ISO 8601 timestamp. |
| testRun.results[].completedAt | string | Yes | ISO 8601 timestamp. |
| testRun.results[].createdAt | string | Yes | ISO 8601 timestamp. |
| testRun.results[].updatedAt | string | Yes | ISO 8601 timestamp. |
| testRun.artifacts | object[] | No | — |
| testRun.artifacts[].id | string | Yes | Unique identifier. |
| testRun.artifacts[].testRunId | string | Yes | — |
| testRun.artifacts[].testCaseResultId | string | Yes | — |
| testRun.artifacts[].type | string | Yes | — |
| testRun.artifacts[].name | string | Yes | Human-readable name. |
| testRun.artifacts[].uri | string | Yes | — |
| testRun.artifacts[].contentType | string | Yes | — |
| testRun.artifacts[].sizeBytes | integer | Yes | — |
| testRun.artifacts[].sha256 | string | Yes | — |
| testRun.artifacts[].metadata | object | Yes | Free-form metadata object. |
| testRun.artifacts[].createdAt | string | Yes | ISO 8601 timestamp. |
409Terminal run or stale execution lease
None.
Report test-run progress, results, evidence, and artifacts
Loading...
Response 200
Loading...