batch-adapter-dogfooding

Validates Batch API adapters against live provider parity with evidence-based verdict reports.

7|12|Updated Mar 26, 2026
Ready to run
npx skills add https://github.com/OpenRouterTeam/docs --skill batch-adapter-dogfooding-openrouterteam
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: batch-adapter-dogfooding
Source: https://github.com/OpenRouterTeam/docs/tree/main/.agents/skills/batch-adapter-dogfooding
Command: npx skills add https://github.com/OpenRouterTeam/docs --skill batch-adapter-dogfooding-openrouterteam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Shipping a Batch API adapter based only on fixtures, fakes, and unit tests leaves provider-parity bugs, billing errors, and lifecycle gaps undetected until customers hit them. This Skill runs a fixed live dogfooding matrix against both the provider's native batch API and OpenRouter, producing an evidence-backed certification report. ## Core Features & Use Cases - Provider-Parity Test Matrix: Runs isolation/errors, tools, structured outputs, multimodal, billing/BYOK/reasoning/search/caching, operational tracing, and failure-injection cases both natively and through OpenRouter. - Evidence-Based Verdicts: Classifies every case as PASS, BUG, EXPECTED LIMITATION, COVERAGE GAP, or UNTESTED, and derives a per-provider SAFE / SAFE WITH KNOWN LIMITS / NOT SAFE verdict. - Lifecycle-Health Checks: Encodes recurring incident classes (silent stalls, sweep starvation, result cross-contamination, serving/billing divergence) as mandatory checks. - Use Case: After finishing a new Vertex Gemini batch adapter, run this Skill to re-verify research-note claims live, confirm billing rows match published batch pricing, and commit a redacted report under tests/manual/ before certifying the provider. ## Quick Start Run the batch adapter dogfooding matrix for the xAI provider and produce an evidence report with per-case verdicts.

Frequently Asked Questions about batch-adapter-dogfooding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I certify a new Batch API adapter before shipping?▼

Run the dogfooding matrix live: execute each case directly against the provider's native batch API and through OpenRouter, then record per-case verdicts. A provider is SAFE only when every applicable case has live PASS evidence or a cited EXPECTED LIMITATION.

How do I verify batch billing correctness for a provider?▼

Pull actual generation rows and usage records, not adapter logs. Confirm emit_generations.done accounts for every line and finalize.completed reports is_usage_complete true with finalized_cost matching independently computed pricing from the :batch row.

Can a batch adapter be certified from fixtures or unit tests alone?▼

No. Fixtures and fakes never substitute for a live run; any case without live evidence is marked UNTESTED, and an all-UNTESTED report is always NOT SAFE. Certification requires live evidence for the core lifecycle.

Why does my local batch test stay stuck in validating status?▼

The local Pub/Sub emulator only pre-creates topics, not subscriptions. Create the E2E pull subscriptions with ensureSubmitSubscription and ensureFinalizeSubscription before submitting, or messages are lost and batches never progress.

What are the limitations of OpenRouter batch cancel and expiry testing?▼

There is no public POST /batches/:id/cancel route, so cancel cases run natively or via BYOK upstream cancellation. The expired status needs the full completion window and is recorded as UNTESTED rather than unreachable.