# Evolve a Protobuf API across mixed versions

Check a schema change against binary, named-format, generated-client and persisted-message consumers before choosing a rollout order.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- Old and proposed schema revisions, descriptor baselines, released field/enum history and the proposed contract change.

- An inventory of binary, ProtoJSON and text-format consumers, generated languages, compiler/runtime versions and independently deployed clients.

- Sanitised historical message fixtures and a map of message persistence in queues, caches, databases and exports.

- The project's existing schema/compiler checks, isolated old/new client harnesses, intended reader/writer sequence and required rollback window.

## Reviewed resources

### Protobuf gRPC API Review

Structure a symbol-level review across compatibility dimensions and mixed-version paths using the declared consumer and persistence envelope.
https://undominated.ai/skills/github-protobuf-grpc-api-review/

Reviewed: 2026-10-15; revision: 3a685010a7afdc0dbd4c83b7fbda6c316aa516e5
Definition SHA-256: no redistributable definition attached
Source: https://github.com/github/awesome-copilot/tree/3a685010a7afdc0dbd4c83b7fbda6c316aa516e5/skills/protobuf-grpc-api-review

Permissions: Read .proto files, generated code and call sites; Run the repo's descriptor compilers and breaking-change checks where available; Review output only; schema edits stay a human decision
Cost boundary: The skill is MIT-licensed; agent calls and build tooling remain separate.
Licence: MIT — https://github.com/github/awesome-copilot/blob/3a685010a7afdc0dbd4c83b7fbda6c316aa516e5/LICENSE

#### Component limitations

- Verdicts are only as good as the declared compatibility envelope; the skill itself requires lowering confidence when encodings, consumers or deployment order are unknown.

- It directs the use of the repo's own protoc, Buf or breaking-change checks but runs none itself; an unverified checklist item stays a risk, not a pass.

#### Not runtime-verified

- No .proto change was reviewed with this skill.

- Descriptor compilation and breaking-change checks were not executed.

- Not executed: it was not installed or run.

## Independent research tasks

- Symbol compatibility review: Compare shipped and proposed definitions by qualified symbol, recording field numbers, names, presence, cardinality and enum changes. Return symbol-delta.md with separate compatibility dimensions; do not infer deployment safety from parseability.

- Consumer and persistence review: Independently trace consumer releases, serialisation paths and retained messages. Return consumer-window.md identifying old readers, name-based encodings and read-modify-write paths that must survive the stated rollback window.

## Sequence and verification

1. Write compatibility-envelope.md from the supplied schemas, encodings, runtimes and release history. Give both reviewers the same envelope. Unknown external consumers or missing old descriptors force an insufficient-context verdict for those paths.

2. Join symbol-delta.md and consumer-window.md into compatibility-matrix.md. Assign each changed symbol proving fixtures, including absent/default values, boundary values, unknown enum values and stored historical payloads where relevant.

3. Use the project's authorised local tooling to compile/check old and proposed schemas and exercise generated consumers. Hand schema-check-receipts.md to the reviewer with exact versions and failures; a clean descriptor check does not establish JSON or source compatibility.

4. Run old-writer/new-reader and new-writer/old-reader cases, then have an old reader modify and reserialise a new message. Compare values, presence and required unknown-field retention in mixed-version-receipts.md; test each declared encoding separately.

5. Rehearse the proposed reader-first or otherwise justified sequence in isolation, including rollback after new writers emit and reads of historical persisted data. Record writer restrictions, migration prerequisites and the last reversible stage in rollout-rehearsal.md.

6. Issue api-evolution-handoff.md with compatible, rollout-dependent, breaking or insufficient-context findings per scope. Include a minimal schema revision where needed, a staged playbook and explicit release gates. Do not publish schemas or retire old consumers from this review.

## Boundaries

- The reviewed Protobuf skill is a review method, not a compiler or compatibility harness. It requires its reference material and the project's tool mapping; unavailable checks remain unverified. No bundled redistributable definition is attached in this catalogue.

- Keep binary, named-format, generated API and behavioural conclusions distinct. Current official Protobuf guidance was consulted for schema-evolution concepts; no compiler command, generated API syntax or universal rollout order is prescribed here.

- The packet uses synthetic or sanitised messages only. Schema publication, consumer deployment and data rewriting need separate approval; this suggested workflow has not been executed during authoring.

## Expected output

A symbol-level compatibility verdict, mixed-version fixture results and a reader/writer migration plan that names when rollback ceases to be supported.

## Deliverables

- Qualified-symbol delta and compatibility matrix across declared formats and consumers.

- Old/new compilation and generated-client evidence with tool versions and retained failures.

- Mixed-version and persisted-message fixture receipts, including read-modify-write and rollback.

- API evolution handoff with staged writer constraints, removal gates and a scoped verdict.

## Acceptance checks

- [ ] Compare tags and enum numbers against released history; reuse of a shipped identifier or an unexplained renumbering blocks the proposed evolution.

- [ ] Parse old and new named-format fixtures independently of binary tests; renamed fields, enum names or unknown-key rejection must not be hidden by a passing binary result.

- [ ] Round-trip a new message through an old modifying consumer; lost fields or changed oneof/presence meaning fails any claim that depends on preserving that information.

- [ ] Exercise numeric boundaries and absent versus explicit-default values; truncation, reinterpretation or an unintended update is a compatibility failure even if parsing succeeds.

- [ ] Compile and exercise the declared generated-language consumers, including enum handling; a source break or unsupported runtime is not waived by descriptor compatibility.

- [ ] Read retained historical messages and roll back after new values have been emitted; failure requires a writer restriction or a non-reversible-stage warning, not a blanket safe verdict.

- [ ] Inspect consumer coverage against the inventory; an unknown external client, encoding or deployment order keeps that part of the verdict insufficient-context.

Workflow: https://undominated.ai/workflows/#evolve-a-protobuf-api
