API versioning changes agents should not invent
Agents should not invent API versions casually. Versioning and deprecation timelines are product contracts.
Agents should not invent API versions casually. Versioning and deprecation timelines are product contracts. The common trap is spinning up /v2 because additive design is harder, or silently breaking v1 because “only we use it”.
Give agents compatibility rules and forbid surprise version sprawl.
Additive change, or a real version bump?

Compat
Stay on the current version when the change is additive: new optional fields, tolerant readers, stable error codes, no rename or type break. Clients can ignore the new bits.
Require a human decision when the change looks breaking: field rename or type change, removing a required path, auth semantics change, error contract breaks, or a new /vN without an approved decision record.
Not every API needs versions in the path. Header-based or additive evolution can work. Internal RPCs still need compatibility discipline if services deploy independently.
Workflow: classify → decide → dual support
- Publish compatibility rules in the repo. Field adds, renames, type changes, error code stability.
- Human decision for breaks. Additive redesign, version bump, or justified break with timeline. Agents implement within that policy.
- Specify migration guides and sunset dates before implementation when versioning.
- Implement dual support when required. Tests for both old and new clients during overlap.
- Instrument deprecated path usage so removal is evidence-based.
- Reject agent PRs that introduce new versions without an approved decision record.
Document the additive patterns you prefer (nullable new fields, tolerant readers) so agents have a legal way to evolve without breaking clients.
Stop gates
- Creating
/v2for naming preferences. - Breaking v1 without notices.
- Forever-deprecated endpoints with no removal plan.
- Timelines ops and support never saw.
Checklist before merge
- Compatibility rules documented.
- Breaking changes have an explicit decision (ADR or equivalent).
- Deprecation timeline and metrics in place when needed.
- Tests cover old and new clients during overlap.
- No surprise versions in the agent diff.
Three traps that outlive the PR

Failure modes to catch early
- Casual /v2. New version for naming taste. Fix: require ADR; prefer additive patterns.
- Silent break. v1 shape changes with no notice. Fix: reject the PR; “only we use it” is usually wrong.
- Forever deprecate. Deprecated path with no sunset, metric, or owner. Fix: set a date, track traffic, name who deletes it.
Agents can draft migration guides. API owners verify accuracy against real client impact.
Bottom line

When this fits vs when it does not
Compatibility is a product decision, not an agent convenience. Classify, decide, dual-support, then ship. Pair this with backend API contract-first work so the public surface moves intentionally, and with feature flags when you need a staged rollout without inventing a version.
Share