Skip to content

synthetic-usage-on-tool-result expectations (manually calculated, synthetic)

tool_result line 3 contains usageMetadata, permitted only on assistant records. Clear the assistant event already parsed from line 2. Reject the whole file with usage_on_unexpected_record_type.

Expectations

  • files[0].status=“pending”; no imported events or cursor advancement; no checkpoint.
  • One diagnostic per scan; a second scan remains pending. Diagnostic code=usage_on_unexpected_record_type.