Prove that the Message Batch reached its terminal processing status. Every request of the batch succeeded, errored, was canceled, or expired. The level proves that the work stopped. It proves no result of any request.

Contract identity.
FactValue
Contract idanthropic.message_batch.ended
Version1.0.0
Hashf27638d43eea769c
Completion levelended
PublisherBuilt and signed by Provely.
CertificationProvisional
SkillAnthropic Claude API 0.1.0
Valid for provider API versions2023-06-01

What is the intent?

Submit the message requests as one batch and let the batch finish.

What is the subject and the action?

MemberValue
Subject typeanthropic.message_batch
Subject identitymessage_batch_id = $action.result.id
Canonical effectai.message_batch_start
Provider operationPOST /v1/messages/batches
Idempotencynone, retry is not safe

How does the evidence correlate with this operation?

StrategyAssuranceKeysRequired
resource_idstrongmessage_batch_id from $action.result.idyes

Which evidence does the contract require?

Minimum evidence level E2. An independent channel is required. Minimum channels: 1.

ChannelLevelIndependenceVerifierDescription
message_batch_readbackE2provider readbackhttpRead the Message Batch from the provider. A condition path is $observed.message_batch_readback.request_counts.succeeded. The read states no provider API version, because Anthropic returns no version header.

Which conditions must all hold for VERIFIED?

ConditionMeaningPathOperatorExpectedEvidence
batch_presentThe provider holds the Message Batch with the returned identifier.$observed.message_batch_readback.ideq$action.result.idmessage_batch_readback
batch_no_request_still_processingThe member request_counts.processing is zero. Processing ends when every request has either succeeded, errored, canceled, or expired.$observed.message_batch_readback.request_counts.processingeq0message_batch_readback
batch_ended_in_windowThe provider ended the batch after the operation started.$observed.message_batch_readback.ended_attime_after$operation.created_atmessage_batch_readback
batch_created_in_windowThe provider created the batch after the operation started.$observed.message_batch_readback.created_attime_after$operation.created_atmessage_batch_readback

Which conditions give CONTRADICTED?

ConditionClassReasonPathOperatorExpected
batch_predates_operationpre existing stateThe Message Batch is older than the operation. It proves nothing.$observed.message_batch_readback.created_attime_before$operation.created_at
batch_completed_more_requests_than_intentwrong subjectThe batch completed more requests than the intent named. It is not the batch that the intent described.$observed.message_batch_readback.request_counts.succeededgt$input.request_count
batch_processing_count_exceeds_intentduplicate side effectThe batch holds more requests than the intent named. Anthropic bills each of them. Do not retry.$observed.message_batch_readback.request_counts.processinggt$input.request_count

Which observed states map to a verdict before completion?

RuleMatchVerdictReason
still_processing$observed.message_batch_readback.processing_status in ["in_progress","canceling"]PENDINGThe Message Batch has not ended. The runtime observes again later.

How long does the runtime observe?

Timing memberValue
Initial delay1000 ms
Poll interval5000 ms
Backoffexponential factor 2, max 60000 ms
Maximum attempts40
Timeout90000000 ms
Stale read window20000 ms
On timeoutUNVERIFIABLE (evidence_unavailable_before_timeout), escalated to a person

Where do these rules come from?

Can anthropic.message_batch.ended return VERIFIED from the action response alone?

No. The minimum evidence level is E2. The action response is E1. The completion conditions read message_batch_readback.

What happens after the timeout?

The verdict is UNVERIFIABLE with the reason evidence_unavailable_before_timeout. The operation goes to a person for review.