| name | provider-type-update |
| description | Audit, plan, implement, and verify updates to OpenAI, Anthropic, or Google generated provider types. Use when a provider specification or generated.rs diff may require capability, adapter, universal type, serializer, streaming, payload-case, or test changes. |
Provider type update
Treat a provider specification update as a semantic integration task, not a
generated-code review.
Planning phase
Do not edit tracked files during this phase.
- Read
AGENTS.md and inspect the complete provider specification diff.
- Use the four provider audit agents in parallel:
provider-spec-auditor
provider-capability-auditor
provider-semantic-auditor
provider-coverage-auditor
- Reconcile their reports yourself. Subagent reports are evidence, not final
decisions.
- Write the structured JSON plan requested by the workflow.
- Cover every changed provider field or enum value. Do not focus only on
generated Rust compilation errors.
For every change, classify these surfaces explicitly:
- generated type effect
- model and capability matching
- provider request import
- provider request export
- provider response import
- provider response export
- streaming
- universal semantics
- cross-provider behavior
Use not_affected or not_applicable only with concrete evidence. Mark an
item blocked when a non-lossy universal representation is unclear.
Implementation phase
Read the validated JSON plan before changing files. Implement one plan item at
a time.
- Add focused unit and payload cases before changing adapter behavior.
- Change generation code or typed adapters. Never edit
generated.rs
directly.
- Preserve typed boundaries and explicit errors.
- Update every serializer and streaming path identified by the plan.
- Run focused tests before broad validation.
- Do not call live provider APIs. The workflow runs planned live captures in
a separate secret-scoped step.
- Re-read the plan and inspect
git diff before finishing. Every affected
surface must have an implementation or test.
Do not add marker fields, silent coercions, raw JSON semantic inspection, broad
expected-difference exceptions, or fallback behavior.
Verification phase
Do not edit tracked files.
- Compare the final diff with every plan item.
- Inspect generated-source provenance, capability predicates, all request and
response directions, streaming completion behavior, universal semantics,
and cross-provider effects.
- Check that focused tests exercise new semantic cases rather than only
serialization shape.
- Write the structured verification report requested by the workflow.
- Fail verification for omissions, unsupported assumptions, or a plan item
without corresponding implementation and tests.