Accept a Metronome optimization candidate
POST
/v1/optimization-candidates/metronomes/{resourceId}/{candidateId}/acceptRe-verifies the exact worker-attested candidate Evaluation and a passed Assurance decision over that same evidence, then appends an immutable acceptance proof. This operation does not publish or activate the Metronome.
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 |
|---|---|---|---|---|
| resourceId | path | string | Yes | — |
| candidateId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| evaluationRunId | string | Yes | — |
| assuranceRunId | string | Yes | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Idempotent replay of the same accepted evidenceapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | optimization_candidate.acceptance | Yes | — |
| candidate | object | Yes | — |
| candidate.id | string | Yes | Unique identifier. |
| candidate.object | optimization_candidate | Yes | — |
| candidate.targetKind | function | metronome | Yes | — |
| candidate.targetResourceId | string | Yes | — |
| candidate.baseVersionId | string | Yes | — |
| candidate.baseFingerprint | string | Yes | — |
| candidate.candidateVersionId | string | Yes | — |
| candidate.candidateFingerprint | string | Yes | — |
| candidate.objectiveFingerprint | string | Yes | — |
| candidate.proposalFingerprint | string | Yes | — |
| candidate.idempotencyKey | string | Yes | — |
| candidate.status | materialized | validated | accepted | rejected | published | superseded | Yes | Current lifecycle status. |
| candidate.proposal | object | Yes | — |
| candidate.proposal.schemaVersion | computer_agents_optimization_candidate_v1 | Yes | — |
| candidate.proposal.target | object | Yes | — |
| candidate.proposal.target.kind | function | metronome | Yes | — |
| candidate.proposal.target.resourceId | string | Yes | — |
| candidate.proposal.target.baseVersionId | string | Yes | — |
| candidate.proposal.target.baseFingerprint | string | Yes | — |
| candidate.proposal.objectiveFingerprint | string | Yes | — |
| candidate.proposal.candidate | object | Yes | — |
| candidate.proposal.candidate.fingerprint | string | Yes | — |
| candidate.proposal.candidate.label | string | Yes | — |
| candidate.proposal.candidate.description | string | No | Human-readable description. |
| candidate.proposal.candidate.snapshot | object | Yes | — |
| candidate.proposal.candidate.snapshot.name | string | No | Human-readable name. |
| candidate.proposal.candidate.snapshot.description | string | No | Human-readable description. |
| candidate.proposal.candidate.snapshot.kind | function | Yes | — |
| candidate.proposal.candidate.snapshot.sourceType | manual | computer | git | No | — |
| candidate.proposal.candidate.snapshot.sourceEnvironmentId | string | No | — |
| candidate.proposal.candidate.snapshot.sourcePath | string | No | Workspace-relative file path. |
| candidate.proposal.candidate.snapshot.region | string | No | — |
| candidate.proposal.candidate.snapshot.runtime | string | No | — |
| candidate.proposal.candidate.snapshot.authMode | public | private | No | — |
| candidate.proposal.candidate.snapshot.customDomain | string | No | — |
| candidate.proposal.candidate.snapshot.metadata | object | No | Versionable Function metadata. Deployment identity and credentials are rejected. |
| candidate.proposal.candidate.snapshot.sourceFiles | object[] | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFiles[].path | string | Yes | Safe relative versioned source path. |
| candidate.proposal.candidate.snapshot.sourceFiles[].name | string | Yes | Human-readable name. |
| candidate.proposal.candidate.snapshot.sourceFiles[].isFolder | boolean | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFiles[].size | integer | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFileContents | object | Yes | Complete contents for every non-folder sourceFiles entry. |
| candidate.proposal.producer | object | Yes | — |
| candidate.proposal.producer.kind | agent | human | deterministic | external | Yes | — |
| candidate.proposal.producer.id | string | Yes | Unique identifier. |
| candidate.proposal.producer.versionId | string | No | — |
| candidate.proposal.producer.runId | string | No | — |
| candidate.proposal.evidence | object | No | — |
| candidate.proposal.evidence.evaluationRunIds | string[] | No | — |
| candidate.proposal.evidence.testRunIds | string[] | No | — |
| candidate.proposal.evidence.assuranceRunIds | string[] | No | — |
| candidate.proposal.evidence.repairEpisodeId | string | No | — |
| candidate.proposal.evidence.diagnosticFingerprint | string | No | — |
| candidate.proposal.idempotencyKey | string | Yes | — |
| candidate.producer | object | Yes | — |
| candidate.producer.kind | agent | human | deterministic | external | Yes | — |
| candidate.producer.id | string | Yes | Unique identifier. |
| candidate.producer.versionId | string | No | — |
| candidate.producer.runId | string | No | — |
| candidate.evidence | object | Yes | — |
| candidate.evidence.evaluationRunIds | string[] | No | — |
| candidate.evidence.testRunIds | string[] | No | — |
| candidate.evidence.assuranceRunIds | string[] | No | — |
| candidate.evidence.repairEpisodeId | string | No | — |
| candidate.evidence.diagnosticFingerprint | string | No | — |
| candidate.organizationId | string | No | — |
| candidate.createdByUserId | string | No | — |
| candidate.createdAt | string | Yes | ISO 8601 timestamp. |
| candidate.updatedAt | string | Yes | ISO 8601 timestamp. |
| acceptance | object | Yes | — |
| acceptance.schemaVersion | computer_agents_optimization_candidate_acceptance_v1 | Yes | — |
| acceptance.candidate | object | Yes | — |
| acceptance.candidate.id | string | Yes | Unique identifier. |
| acceptance.candidate.targetKind | function | metronome | Yes | — |
| acceptance.candidate.targetResourceId | string | Yes | — |
| acceptance.candidate.baseVersionId | string | Yes | — |
| acceptance.candidate.baseFingerprint | string | Yes | — |
| acceptance.candidate.candidateVersionId | string | Yes | — |
| acceptance.candidate.candidateFingerprint | string | Yes | — |
| acceptance.candidate.objectiveFingerprint | string | Yes | — |
| acceptance.evaluation | object | Yes | — |
| acceptance.evaluation.runId | string | Yes | — |
| acceptance.evaluation.evaluationId | string | Yes | — |
| acceptance.evaluation.evaluationVersionId | string | Yes | — |
| acceptance.evaluation.evidenceFingerprint | string | Yes | — |
| acceptance.evaluation.targetFingerprint | string | Yes | — |
| acceptance.evaluation.attestationId | string | Yes | — |
| acceptance.evaluation.completedAt | string | Yes | ISO 8601 timestamp. |
| acceptance.assurance | object | Yes | — |
| acceptance.assurance.runId | string | Yes | — |
| acceptance.assurance.policyId | string | Yes | — |
| acceptance.assurance.policyVersionId | string | Yes | — |
| acceptance.assurance.evidenceFingerprint | string | Yes | — |
| acceptance.assurance.decisionFingerprint | string | Yes | — |
| acceptance.assurance.completedAt | string | Yes | ISO 8601 timestamp. |
| acceptance.acceptedAt | string | Yes | — |
| acceptance.acceptedByUserId | string | Yes | — |
| acceptance.acceptanceFingerprint | string | Yes | — |
| alreadyAccepted | boolean | Yes | — |
| publicationTriggered | false | Yes | — |
| deploymentTriggered | false | Yes | — |
201Candidate accepted against immutable evidenceapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | optimization_candidate.acceptance | Yes | — |
| candidate | object | Yes | — |
| candidate.id | string | Yes | Unique identifier. |
| candidate.object | optimization_candidate | Yes | — |
| candidate.targetKind | function | metronome | Yes | — |
| candidate.targetResourceId | string | Yes | — |
| candidate.baseVersionId | string | Yes | — |
| candidate.baseFingerprint | string | Yes | — |
| candidate.candidateVersionId | string | Yes | — |
| candidate.candidateFingerprint | string | Yes | — |
| candidate.objectiveFingerprint | string | Yes | — |
| candidate.proposalFingerprint | string | Yes | — |
| candidate.idempotencyKey | string | Yes | — |
| candidate.status | materialized | validated | accepted | rejected | published | superseded | Yes | Current lifecycle status. |
| candidate.proposal | object | Yes | — |
| candidate.proposal.schemaVersion | computer_agents_optimization_candidate_v1 | Yes | — |
| candidate.proposal.target | object | Yes | — |
| candidate.proposal.target.kind | function | metronome | Yes | — |
| candidate.proposal.target.resourceId | string | Yes | — |
| candidate.proposal.target.baseVersionId | string | Yes | — |
| candidate.proposal.target.baseFingerprint | string | Yes | — |
| candidate.proposal.objectiveFingerprint | string | Yes | — |
| candidate.proposal.candidate | object | Yes | — |
| candidate.proposal.candidate.fingerprint | string | Yes | — |
| candidate.proposal.candidate.label | string | Yes | — |
| candidate.proposal.candidate.description | string | No | Human-readable description. |
| candidate.proposal.candidate.snapshot | object | Yes | — |
| candidate.proposal.candidate.snapshot.name | string | No | Human-readable name. |
| candidate.proposal.candidate.snapshot.description | string | No | Human-readable description. |
| candidate.proposal.candidate.snapshot.kind | function | Yes | — |
| candidate.proposal.candidate.snapshot.sourceType | manual | computer | git | No | — |
| candidate.proposal.candidate.snapshot.sourceEnvironmentId | string | No | — |
| candidate.proposal.candidate.snapshot.sourcePath | string | No | Workspace-relative file path. |
| candidate.proposal.candidate.snapshot.region | string | No | — |
| candidate.proposal.candidate.snapshot.runtime | string | No | — |
| candidate.proposal.candidate.snapshot.authMode | public | private | No | — |
| candidate.proposal.candidate.snapshot.customDomain | string | No | — |
| candidate.proposal.candidate.snapshot.metadata | object | No | Versionable Function metadata. Deployment identity and credentials are rejected. |
| candidate.proposal.candidate.snapshot.sourceFiles | object[] | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFiles[].path | string | Yes | Safe relative versioned source path. |
| candidate.proposal.candidate.snapshot.sourceFiles[].name | string | Yes | Human-readable name. |
| candidate.proposal.candidate.snapshot.sourceFiles[].isFolder | boolean | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFiles[].size | integer | Yes | — |
| candidate.proposal.candidate.snapshot.sourceFileContents | object | Yes | Complete contents for every non-folder sourceFiles entry. |
| candidate.proposal.producer | object | Yes | — |
| candidate.proposal.producer.kind | agent | human | deterministic | external | Yes | — |
| candidate.proposal.producer.id | string | Yes | Unique identifier. |
| candidate.proposal.producer.versionId | string | No | — |
| candidate.proposal.producer.runId | string | No | — |
| candidate.proposal.evidence | object | No | — |
| candidate.proposal.evidence.evaluationRunIds | string[] | No | — |
| candidate.proposal.evidence.testRunIds | string[] | No | — |
| candidate.proposal.evidence.assuranceRunIds | string[] | No | — |
| candidate.proposal.evidence.repairEpisodeId | string | No | — |
| candidate.proposal.evidence.diagnosticFingerprint | string | No | — |
| candidate.proposal.idempotencyKey | string | Yes | — |
| candidate.producer | object | Yes | — |
| candidate.producer.kind | agent | human | deterministic | external | Yes | — |
| candidate.producer.id | string | Yes | Unique identifier. |
| candidate.producer.versionId | string | No | — |
| candidate.producer.runId | string | No | — |
| candidate.evidence | object | Yes | — |
| candidate.evidence.evaluationRunIds | string[] | No | — |
| candidate.evidence.testRunIds | string[] | No | — |
| candidate.evidence.assuranceRunIds | string[] | No | — |
| candidate.evidence.repairEpisodeId | string | No | — |
| candidate.evidence.diagnosticFingerprint | string | No | — |
| candidate.organizationId | string | No | — |
| candidate.createdByUserId | string | No | — |
| candidate.createdAt | string | Yes | ISO 8601 timestamp. |
| candidate.updatedAt | string | Yes | ISO 8601 timestamp. |
| acceptance | object | Yes | — |
| acceptance.schemaVersion | computer_agents_optimization_candidate_acceptance_v1 | Yes | — |
| acceptance.candidate | object | Yes | — |
| acceptance.candidate.id | string | Yes | Unique identifier. |
| acceptance.candidate.targetKind | function | metronome | Yes | — |
| acceptance.candidate.targetResourceId | string | Yes | — |
| acceptance.candidate.baseVersionId | string | Yes | — |
| acceptance.candidate.baseFingerprint | string | Yes | — |
| acceptance.candidate.candidateVersionId | string | Yes | — |
| acceptance.candidate.candidateFingerprint | string | Yes | — |
| acceptance.candidate.objectiveFingerprint | string | Yes | — |
| acceptance.evaluation | object | Yes | — |
| acceptance.evaluation.runId | string | Yes | — |
| acceptance.evaluation.evaluationId | string | Yes | — |
| acceptance.evaluation.evaluationVersionId | string | Yes | — |
| acceptance.evaluation.evidenceFingerprint | string | Yes | — |
| acceptance.evaluation.targetFingerprint | string | Yes | — |
| acceptance.evaluation.attestationId | string | Yes | — |
| acceptance.evaluation.completedAt | string | Yes | ISO 8601 timestamp. |
| acceptance.assurance | object | Yes | — |
| acceptance.assurance.runId | string | Yes | — |
| acceptance.assurance.policyId | string | Yes | — |
| acceptance.assurance.policyVersionId | string | Yes | — |
| acceptance.assurance.evidenceFingerprint | string | Yes | — |
| acceptance.assurance.decisionFingerprint | string | Yes | — |
| acceptance.assurance.completedAt | string | Yes | ISO 8601 timestamp. |
| acceptance.acceptedAt | string | Yes | — |
| acceptance.acceptedByUserId | string | Yes | — |
| acceptance.acceptanceFingerprint | string | Yes | — |
| alreadyAccepted | boolean | Yes | — |
| publicationTriggered | false | Yes | — |
| deploymentTriggered | false | Yes | — |
409Candidate
None.
Accept a Metronome optimization candidate
Loading...
Response 200
Loading...