PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

Design efficient batch processing strategies

Correlate asynchronous results, budget every elapsed stage, and recover selected failures.

Design batches for latency-tolerant independent work with stable request identities and item-level validation. An explicit scheduling example distinguishes submission cadence from admission delay and a terminal-outcome bound from a successful-result guarantee.

Knowledge domain
Prompt Engineering & Structured Output
Topics & tags
Published
Author
LearningPathX Editorial TeamContent version 1.0
Resources

Design efficient batch processing strategies

Learning objectives

Match asynchronous processing to latency requirements, correlate unordered results, calculate a submission schedule with explicit overhead, and retry only the work that needs recovery. Refine a prompt before applying it to a large workload.

Choose the latency model first

A synchronous request is useful when the next workflow step needs the response promptly, such as an interactive exchange or a blocking pre-merge decision. A batch decouples submission from retrieval and suits latency-tolerant work such as overnight analysis, weekly reports, or large offline evaluations. Batching is a poor fit when the consumer cannot tolerate its completion window.

The supplied materials describe a Message Batches offer with a 50% processing discount relative to corresponding standard requests, a processing window of up to 24 hours, a limit of 100,000 requests or 256 MB per batch, and results retrievable for 29 days from creation. Treat these as parameters of the supplied scenario, not independently checked current product terms. Inspect the deployed service's supported models, limits, pricing, and retention before production use.

A maximum processing window is not a guarantee that every item succeeds. Unprocessed items can expire. Nor does a typical duration establish a latency SLA. Keep successful completion, terminal batch state, and item expiry distinct. Here SLA means Service Level Agreement. The source SLA entry anchors both the absence of a guaranteed latency agreement and the conditional cadence example; neither 24-hour expiry nor a four-hour submission schedule proves successful 30-hour delivery.

Model the batch lifecycle

Prepare independently processable requests, validate their parameters, submit the batch, retain its identifier and request manifest, monitor its state, and retrieve available terminal results. Store results and provenance within the applicable retention window. Record the owning workspace and the credential identity or approved secret reference so the next worker can distinguish an access failure from a missing batch. Keep the secret value out of that record.

A completed batch can contain successful, errored, expired, or canceled items. Inspect every item's result type; do not infer that all items succeeded because batch processing ended. Preserve successful items while recovering failed ones. A rejected submission, such as an oversized batch envelope, is different from one accepted item failing during processing.

Prompt caching may affect eligible workload cost, but cache hits and discounts are separate conditions. Do not budget an unobserved cache hit as guaranteed savings. Include sample runs, failed attempts, result retrieval, application processing, and retries in the full workflow's cost accounting where relevant.

Understand tool-call boundaries

A batch request can contain an existing conversation and tool definitions under the supported API contract. It does not provide an interactive callback that executes an external tool halfway through that individual request and then supplies its result within the same running request.

If a response proposes a tool call, the application must collect it, validate and execute it under authority, and submit the resulting continuation as another request or stage. Preserve the assistant call and matching result IDs. Do not assume a batch service automatically becomes a multi-turn agent harness.

Likewise, synchronous streaming flags or provider-specific session parameters are not automatically valid in a batch request. Validate supported parameters before submission rather than discovering the same permanent configuration error across thousands of items.

Correlate results by identity

Give each request a unique custom_id and keep a manifest that maps it to the source document, input revision, prompt version, schema version, and attempt. Returned order may differ from submission order, so never join by array position.

These application-level result summaries illustrate an unordered return:

[
  {"custom_id":"doc-B-v1-a1","outcome":"errored","error":"input_exceeds_context"},
  {"custom_id":"doc-A-v1-a1","outcome":"succeeded","result":{"document_id":"A","label":"memo"}},
  {"custom_id":"doc-C-v1-a1","outcome":"expired"}
]

The manifest, not the first result's position, determines that B needs input repair, A has a usable candidate, and C needs a retry or fallback decision. Validate A's payload before accepting it as final. Unknown IDs, duplicate IDs, and missing expected results are integrity issues to resolve rather than silently dropping them.

For a new attempt, retain the original document linkage and assign an unambiguous attempt identity. In this example, a repaired B request can use doc-B-v1-a2. Its relationship to the failed attempt remains in the manifest; the failure and consumed resources are not erased.

Calculate a schedule with explicit boundaries

Assume a teaching workflow requires a terminal reviewed result within 30 elapsed hours of a document arriving. Use a worst-case 24-hour batch processing window and reserve two hours after processing for polling delay, downloading, validation, and handoff. For this calculation, assume every arriving document can be prepared and admitted by the next submission slot. Its arrival-to-accepted-submission delay, including preparation and queueing before submission, is therefore at most four hours. Processing and postprocessing follow sequentially without overlap, and the two-hour postprocessing allowance is an assumed upper bound for this teaching calculation. A four-hour submission period alone does not establish those conditions. A document arriving just after a submission can then wait almost four hours:

maximum scheduling wait + processing window + postprocessing reserve = 4 + 24 + 2 = 30 hours.

Under those assumptions, six-hour submission intervals leave no two-hour postprocessing reserve: 6 + 24 + 2 = 32 hours. Four-hour submission is the largest interval permitted by this simplified bound. Additional queueing or preparation time must be included rather than hidden inside a different stage. For a counterexample, suppose preparation misses the next slot and the actual arrival-to-accepted-submission delay is eight hours despite four-hourly submissions. The bound becomes 8 + 24 + 2 = 34 hours, which exceeds the target. The submission period has not changed; the assumed admission-delay bound no longer holds.

The same bound yields explicit scheduling decisions under the stated 24-hour processing and two-hour postprocessing assumptions:

Maximum submission interval Calculated elapsed bound Expected decision for the 30-hour terminal-outcome target
3 hours 29 hours Within the target
4 hours 30 hours At the included boundary
5 hours 31 hours Exceeds the target
Missing Unknown Clarify the interval before claiming the target can be met

The calculation bounds time to a terminal outcome only under the stated service-window assumptions. It does not guarantee a successful extraction: an item can expire at 24 hours, and another full batch retry would exceed the budget. A successful-result SLA therefore needs an adequately reserved fallback, earlier submission, or a different processing model. Describe which outcome the SLA actually promises.

Recover selected items after repairing the cause

Retry transient or expired items under a bounded policy. Correct invalid parameters before resubmitting. If a single document exceeds model context, split it into meaningful chunks with source locations and a later reconciliation step. Merely reducing the batch's item count does not shrink that document's context. Conversely, splitting a document does not automatically solve an oversized batch envelope.

Chunking must preserve the task's needed relationships. If totals depend on facts across chunks, perform a separate integration check. Do not assume inline text is automatically chunked in a way that preserves meaning. Avoid rerunning already accepted items solely because another item failed; that increases cost and can create duplicate downstream actions.

An ambiguous side-effect outcome requires state inspection or idempotent handling before replay. A lost result is not proof that no action occurred. Preserve accepted outputs locally according to the data policy so a retention deadline does not unnecessarily force complete reprocessing.

Refine on a representative sample

Run a small, diverse sample before scaling. Include different layouts, long inputs, missing values, and known error cases. Compare outputs with independently specified expected results, repair the prompt or schema, and retain the evaluation version. A random ten-item sample may be a useful trial, but cannot establish that rare failures are absent.

Use held-out cases to check that refinement generalizes. Once the sample meets the agreed criteria, freeze the prompt and schema versions for the batch and retain their fingerprints. Inspect failures by version and input type after the run. A valid sample output does not guarantee every future item is valid, so keep item-level validation active.

Keep the source-specific service constraints together

The supplied snapshot describes typical completion in under an hour, not a latency guarantee. It distinguishes the 24-hour expiry of still-unprocessed items from creation-based 29-day result downloads; later blanket claims that expiry loses all results conflict with that partial-outcome rule. Metadata may remain visible after downloadable results expire. None of these terms establishes ZDR/privacy compliance or proves a local download occurred; required policy compatibility remains to be checked. For the source API route, access uses an API key associated with the intended Workspace; the source Console route instead requires explicit permission to view that Workspace's batches. Check the actual deployed access path and user/key identity. These source access conditions do not establish protection from every exposure or a verified privacy/compliance outcome.

Validate both actual serialized submission bytes and item count against the source-described caps. Management HTTP rates and queued-item rates are separate constraints. The snapshot requires max_tokens >= 1 and excludes max_tokens:0 cache prewarming; it also warns that concurrent processing can exceed a configured workspace spend limit slightly. A valid per-batch envelope is not unlimited throughput or an exact spend ceiling. Record the intended workspace, authorized access identity and approved secret reference, never the secret itself.

The source excludes stream:true, speed/Fast mode and Threads parameters store/previous_thread_event_id from its described batch interface. A later Fast-mode recommendation contradicts that exclusion and must remain unresolved rather than advertised as support. The rough 32k long-thinking networking advice and source model-specific manual-to-adaptive thinking example are snapshot observations requiring actual compatibility/error evidence, not universal thresholds or current facts established here. Supported provider/server tools differ from client tools that the application must execute; pre-supplied history is not a future interactive callback. Tool lists, models and betas require actual interface support. The specific source claim is that thinking:{"type":"enabled"} on “Claude 4.7 and later” returns HTTP400 invalid_request_error and requires adaptive thinking. That model/version/mode assertion is retained as an unverified local-snapshot claim, not a current compatibility guarantee; inspect actual supported parameters and error evidence before changing a production request.

The 50% comparison applies to eligible corresponding processing charges on a comparable model/token/workload basis. The source separately describes code-execution tool charges as unchanged. Include sample/refinement/retry and other tool charges before describing total savings. Caching requires actual shared eligible content as well as appropriate controls. Its reported five-minute lifetime and 30–98% hit range are local snapshot descriptions, not this workload's guaranteed TTL, hit rate or measured saving. Asynchronous scheduling can miss the cache even with steady arrivals.

Work through identity, lifecycle and selective recovery

Let the submitted teaching manifest be:

[
  {"custom_id":"doc-A-v1-a1","logical_item":"A","input_revision":"v1","text":"Type: memo","prompt_version":"p1","schema_version":"s1","attempt":1},
  {"custom_id":"doc-B-v1-a1","logical_item":"B","input_revision":"v1","text_ref":"local B sections1-2","prompt_version":"p1","schema_version":"s1","attempt":1},
  {"custom_id":"doc-C-v1-a1","logical_item":"C","input_revision":"v1","text":"Type: invoice","prompt_version":"p1","schema_version":"s1","attempt":1}
]

These IDs are distinct from a service-assigned batch ID or message ID and from a business customer ID. Unique sequential IDs also work if an unambiguous manifest maps them; descriptive names are a debugging preference.

For this example, submission acceptance returns a teaching batch identity, and polling reports nonfinal processing before later reporting ended. Retain pending status until the actual supported final-state and result availability checks pass. A missing results URL might reflect access, retention, retrieval failure or nonfinal state; inspect evidence rather than infer just one cause. Downloading ended results line by line as JSONL is file transfer, not stream:true generation. A concrete teaching lifecycle record is [{"batch_id":"teaching-batch-1","state":"accepted_nonfinal","results_available":false},{"batch_id":"teaching-batch-1","state":"processing_nonfinal","results_available":false},{"batch_id":"teaching-batch-1","state":"ended","results_available":true,"result_artifact":"teaching-result-1.jsonl"}]. These application-state labels and identifiers are invented, not vendor API enum definitions or evidence of a real accepted request. All three use the same retained batch identity and the A/B/C manifest; ended still requires item reconciliation.

The unordered B-error/A-success/C-expired summaries above reconcile by ID. Validate A's document_id:A,label:memo against its source and schema before accepting it. For B, suppose the actual detailed error establishes that the original combined input exceeded context, and both supplied sections independently say Type: report. A teaching repair creates only B chunk requests doc-B-v1-s1-a2 with exact text Type: report; section:1 and doc-B-v1-s2-a2 with Type: report; section:2, retaining the original B linkage and section locations. Their expected outputs are {"document_id":"B","section":1,"label":"report"} and {"document_id":"B","section":2,"label":"report"}. Reconcile both sections to logical B only after validating coverage and any cross-section conditions.

C's expiry retains original input and unknown result. Under a declared time budget permitting one later attempt, retry only C as doc-C-v1-a2 with the unchanged complete text Type: invoice; its expected successful payload is {"document_id":"C","label":"invoice"}. If that attempt still lacks a valid final result, keep C pending/expired rather than synthesize success. A is not rerun. The expected merged original population remains three logical items: A accepted from a1, B accepted only after both corrected sections and integration checks, C accepted only if a2 actually validates, otherwise unresolved. All failed attempts, costs and chunk identities remain recorded. These are planned example outcomes, not an executed service run. The complete selected new-batch teaching manifest for teaching-batch-2 is [{"custom_id":"doc-B-v1-s1-a2","logical_item":"B","source_location":"local B section1","input_revision":"v1","text":"Type: report; section:1","prompt_version":"p1","schema_version":"s1","attempt":2},{"custom_id":"doc-B-v1-s2-a2","logical_item":"B","source_location":"local B section2","input_revision":"v1","text":"Type: report; section:2","prompt_version":"p1","schema_version":"s1","attempt":2},{"custom_id":"doc-C-v1-a2","logical_item":"C","source_location":"complete local C","input_revision":"v1","text":"Type: invoice","prompt_version":"p1","schema_version":"s1","attempt":2}]. Create that later batch only through the actual supported service interface and authorized remaining budget; this is a declared fixture, not an API call. A is absent from this retry set, both B sections remain required for logical B, and C retains unresolved status until a real valid result exists.

For an unknown returned ID, quarantine the row; for a duplicate expected ID, retain both rows and flag the conflict instead of overwriting one; for a missing expected ID, leave that item unresolved. A canceled item likewise needs its actual terminal/partial evidence inspected. A whole-submission HTTP413 without acceptance is a different case: no accepted per-item result is established, so reduce actual envelope bytes/count. Splitting one over-context item addresses a different layer. The source's direct-API proxy and model-specific error details require actual matching evidence; invalid_request_error alone does not diagnose size. Lost results, cancellation and elapsed retention do not automatically justify re-executing settled successes or uncertain side effects. The source specifically attributes pre-server HTTP413 on the direct API to Cloudflare; that attribution is a local-source claim, not a diagnosis of every provider, proxy or deployment.

Exercise arrival cutoffs and unfinished outcomes

For a teaching schedule with submission slots at UTC 00:00,04:00,08:00 and an included 30-hour terminal-outcome target, an admitted item arriving immediately before 04:00 can use that slot, one arriving exactly 04:00 uses it only if the declared cutoff includes that instant and preparation is complete, and one arriving immediately after waits almost four hours for 08:00. The assumed arrival-to-accepted-submission bound must include preparation and queueing. A delayed admission by eight hours gives the existing 34-hour counterexample. An expired item can satisfy a terminal-status timing target while failing a successful-result target; a missing result yields no successful completion time. No retry allowance exists in 4+24+2. A successful-result commitment therefore needs a separately justified success/fallback budget and an escalation path, not merely these metadata deadlines. All times here are teaching assumptions, not measured SLA evidence.

Make the sample and submission contract concrete

For an illustrative classification fixture, source text is exactly Type: memo. The full application output schema is {"type":"object","properties":{"classification_code":{"type":"string","enum":["memo","invoice","report","unknown"]},"confidence_score":{"type":"number","minimum":0,"maximum":1},"review_status":{"type":"string","enum":["candidate","review"]}},"required":["classification_code","confidence_score","review_status"],"additionalProperties":false}. The expected payload is {"classification_code":"memo","confidence_score":0.9,"review_status":"candidate"}. The numeric score must also be finite and is a self-rating whose empirical calibration requires labels, not proof of correctness. For Type: unknown, the expected payload is {"classification_code":"unknown","confidence_score":0,"review_status":"review"}; this teaching zero denotes no supported known label, not a measured probability. A semantic rule requires unknown labels to remain in review. Missing, nonnumeric, nonfinite or out-of-range confidence fails validation. Source comparison, schema validation and business rules remain distinct. This is a complete output contract for a teaching fixture, not a vendor request or claim that the service ran.

Supply the complete actual text, supported model, output interface and full schema to the chosen SDK/API. Named tool_choice alone is not strict:true or a guarantee that the deployment supports strict generation; use only the actually supported strict configuration and inspect real results. Refinement should compare actual fixture outputs with these expected values, retain failures, correct the prompt/schema, then regress ordinary, boundary, missing and diverse-format cases before freezing final fingerprints. A five-to-ten/random-ten pilot is starter advice, not corpus-wide proof. The original source sample names claude-3-5-sonnet-20241022, max_tokens:1024, tool extract_batch_data and tool_choice:{"type":"tool","name":"extract_batch_data"}, yet includes no strict:true and only an ellipsis log. Retain that exact defect and dated identity: naming this tool/model is not deployment verification or a guarantee that adding a strict flag is supported. The complete teaching input and output schema above replace the placeholder text; the real model and strict-generation mechanism remain prerequisites to verify before submission. For the source's separate validateEmail verification fixture, the exact expected pairs are [{"input":"[email protected]","expected":true},{"input":"[email protected]","expected":false}]. They specify these two source-provided acceptance cases only, not a complete email-standard validator or an executed function test; a build, linter, fixture diff or screenshot comparison likewise requires its actual observed result before claiming success.

An internal JSONL file of custom_id and complete params items is a preparation representation. Map those items into the actual supported create operation; do not assume posting raw JSONL to an endpoint is its accepted wire contract. Successful local serialization proves neither acceptance nor execution. Unsupported parameters must be rejected or repaired before scaling.

When changing context or using a refinement worker, retain the final prompt, constraints, manifest, expected/actual results and authority boundaries in the handoff. A status-line display, skill name or worker definition is not complete semantic memory or permission. Use actual supported tool/path/side-effect controls; .mcp.json, hooks, named Agent/Artifact tools or source descriptions of owner-enabled sharing do not establish general authorization to edit, destroy or publish. Actual sharing requires the relevant permission and separate authority.

Summary

Batching trades immediate feedback for asynchronous throughput and potentially lower processing cost. Keep requests independent, join by stable identity, budget all elapsed stages, and distinguish terminal processing from successful delivery. Sample first, validate every result, and repair selected failures before retrying.

Complete integrity and cutoff fixtures

For these additional static fixtures, use the retained A/B/C manifest and the application summary format above. A returned ID outside that submitted set is quarantined. More than one row for a submitted ID retains both rows and leaves that logical item unresolved. A submitted ID with no returned row is missing, not silently expired or successful. The compact independent cases below use a one-item submitted subset so every expected outcome is visible; they do not reduce the original recovery population.

Complete reconciliation input Complete expected outcome
{"submitted":["doc-A-v1-a1"],"returned":[{"custom_id":"X","outcome":"succeeded","result":{"document_id":"X","label":"memo"}}]} {"accepted":[],"quarantined":[{"custom_id":"X","reason":"unknown_id"}],"unresolved":[{"custom_id":"doc-A-v1-a1","reason":"missing_result"}],"conflicts":[]}
{"submitted":["doc-A-v1-a1"],"returned":[{"custom_id":"doc-A-v1-a1","outcome":"succeeded","result":{"document_id":"A","label":"memo"}},{"custom_id":"doc-A-v1-a1","outcome":"errored","error":"temporary_unavailable"}]} {"accepted":[],"quarantined":[],"unresolved":[{"custom_id":"doc-A-v1-a1","reason":"duplicate_result"}],"conflicts":[{"custom_id":"doc-A-v1-a1","retained_row_indices":[0,1]}]}
{"submitted":["doc-A-v1-a1"],"returned":[]} {"accepted":[],"quarantined":[],"unresolved":[{"custom_id":"doc-A-v1-a1","reason":"missing_result"}],"conflicts":[]}

If A's a1 payload and both B a2 chunk payloads actually validate but C a2 is still missing, the complete expected logical merge is {"population":3,"items":[{"logical_item":"A","status":"accepted","evidence_ids":["doc-A-v1-a1"]},{"logical_item":"B","status":"accepted","evidence_ids":["doc-B-v1-s1-a2","doc-B-v1-s2-a2"],"integration_check":"passed"},{"logical_item":"C","status":"unresolved","evidence_ids":["doc-C-v1-a1","doc-C-v1-a2"],"reason":"expired_then_missing_result"}],"accepted_count":2,"unresolved_count":1}. The integration_check value is an expected condition of this conditional fixture, not a claim it ran. With actual validated C a2 invoice output, only C changes to accepted from doc-C-v1-a2 and the counts become three accepted/zero unresolved; its old expiry remains in history. Two B chunks still count as one original logical item.

For precise scheduling fixtures, declare this teaching admission rule: an item completely prepared and admitted at or before a slot's UTC cutoff is included in that slot; otherwise it waits for the next slot. There is no additional prep/queue delay in the first three cases, and processing plus postprocessing is the assumed sequential 24 + 2 hours. Times below are offsets from the start of the teaching day, so no real calendar/date or service execution is implied.

Arrival and admission condition Expected timing and decision
03:59:59, prepared/admitted by 04:00:00 Submit at 04:00:00; wait 1 second; terminal bound 26 hours 1 second; within the 30-hour terminal target
04:00:00, prepared/admitted at 04:00:00 Included cutoff; submit at 04:00:00; wait 0; terminal bound 26 hours; within the 30-hour terminal target
04:00:01, misses the 04:00:00 cutoff, prepared/admitted for 08:00:00 Wait 3 hours 59 minutes 59 seconds; terminal bound 29 hours 59 minutes 59 seconds; within the 30-hour terminal target
Actual arrival-to-accepted-submission delay is 8 hours Terminal bound 8 + 24 + 2 = 34 hours; misses the 30-hour terminal target
Accepted item expires at 24 hours and terminal status is retrieved/checked within the reserved 2 hours Terminal status can meet its conditional bound; successful-result target is not met; no extraction is invented
Final result is still missing No successful completion time is demonstrated; unresolved even if metadata says processing ended

These are expected elapsed bounds under the declared assumptions. A failed/expired item is never an accepted business result. There is no second 24-hour retry inside the 4 + 24 + 2 budget; a successful-result commitment still needs a separately justified successful fallback, a reserved budget and escalation. Nothing in the snapshot supplies that missing success guarantee.

A saved preparation item with an explicit hold

This internal illustrative preparation item carries the dated source model identity and a complete custom output schema. It is a static teaching record, not an asserted current supported API request. All textual input is supplied. The custom confidence score is a finite bounded self-rating, not a measured probability; unknown remains review. The deliberately absent strict flag is not silently repaired: actual supported strict configuration, model availability and create-wire mapping remain prerequisites.

{
  "custom_id":"sample_validation_001",
  "params":{
    "model":"claude-3-5-sonnet-20241022",
    "max_tokens":1024,
    "tools":[{
      "name":"extract_batch_data",
      "description":"Classify only the supplied Type label; use unknown/review when unsupported.",
      "input_schema":{
        "type":"object",
        "properties":{
          "classification_code":{"type":"string","enum":["memo","invoice","report","unknown"]},
          "confidence_score":{"type":"number","minimum":0,"maximum":1},
          "review_status":{"type":"string","enum":["candidate","review"]}
        },
        "required":["classification_code","confidence_score","review_status"],
        "additionalProperties":false
      }
    }],
    "tool_choice":{"type":"tool","name":"extract_batch_data"},
    "messages":[{"role":"user","content":"Type: memo"}]
  }
}

With the explicit preparation evidence {"model_support_verified":false,"strict_configuration_verified":false,"create_wire_verified":false,"action_authorized":false}, the expected application preflight output is {"status":"hold","custom_id":"sample_validation_001","reasons":["model_support_unverified","strict_configuration_unverified","create_wire_unverified","action_not_authorized"],"submitted":false}. This hold is required by the explicit teaching contract; it is not a failed live vendor call. Do not remove a reason without actual matching evidence. A named tool, valid local JSON or accepted sample schema cannot establish any of those prerequisites. No production model/strict compatibility check or external submission was performed here.

Check complete sample-validation boundaries

These independent expected records use the already declared custom classification schema and supplied Type text. validation/reasons/submitted are application preflight observations, not a vendor response envelope. valid_candidate means this authored payload meets the displayed shape and unknown-review rule under the stated source; it is neither a calibrated probability nor an accepted/submitted batch. A known memo with score 0 or 1 remains a self-rating, not proof about the model. Source support, structural validation, business review and real submission authority remain separate.

Complete validation input Complete expected preflight output
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":0,"review_status":"candidate"}} {"validation":"valid_candidate","reasons":[],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":1,"review_status":"candidate"}} {"validation":"valid_candidate","reasons":[],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":-0.1,"review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_out_of_range"],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":1.1,"review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_out_of_range"],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":"0.9","review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_wrong_type"],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":true,"review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_wrong_type"],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","confidence_score":null,"review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_wrong_type"],"submitted":false}
{"source_text":"Type: memo","proposed_payload":{"classification_code":"memo","review_status":"candidate"}} {"validation":"invalid_payload","reasons":["confidence_missing"],"submitted":false}
{"source_text":"Type: unknown","proposed_payload":{"classification_code":"unknown","confidence_score":0,"review_status":"review"}} {"validation":"valid_candidate","reasons":[],"submitted":false}
{"source_text":"Type: unknown","proposed_payload":{"classification_code":"unknown","confidence_score":0,"review_status":"candidate"}} {"validation":"business_rule_conflict","reasons":["unknown_requires_review"],"submitted":false}

A nonfinite host numeric value such as NaN or positive/negative Infinity also fails the explicitly finite confidence rule. Those values are not JSON numbers: reject them before JSON serialization rather than encode them as null or an invented numeric value. Unknown remains review, and a type/range correction cannot establish model availability, strict-generation support, create-wire compatibility or action authority. The earlier all-false preparation evidence therefore still yields hold; no fixture runs a model or submits a batch.

PUBLIC BETA OFFER

Save 50% off on an Eligible Learning Plan

Valid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026