Repository navigation
Conversation
What Moves draft schema validation cases into fixture directories with their own inputs and expected diagnostics. Why Each validation rule can be read and exercised directly through the common fixture runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Moves accepted and rejected draft comment placements into standalone fixtures. Why Reviewers can see the exact comment placement that produces each expected result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xture What Runs import path rewriting cases through the generator’s imports fixture. Why The test checks how real imports, comments, and option strings behave through projection and printing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Checks that regenerating a projected tree produces byte-identical output. Why A second pass should preserve the stable declarations, comments, and import order from the first pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Uses Rapid to generate small draft schemas and checks that generation is idempotent. Why Generated schemas exercise combinations that the handwritten fixtures may miss, and Rapid can shrink failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Rejects HTTP mappings and request-header templates on retained RPCs that refer to draft fields. Why Those mappings would otherwise point to fields that disappear from the stable schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… file What Resolves draft option names from the package declared in the draft schema. Why The generator can read a relocated draft schema without hard-coding its protobuf package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Adds flags for the source tree, stable tree, and draft schema paths while keeping the existing defaults. Why Alternate layouts need configurable paths for both schema discovery and import rewriting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ively What Requires an empty or nonexistent output directory and creates generated files exclusively through `os.Root`. Why The generator needs to avoid overwriting existing files or writing outside its designated output directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Documents the draft annotations, validation rules, and expected behavior across the API generator, Go bindings, and server. Why The three implementations need one shared reference for how draft declarations are gated and removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Validates the supported draft annotations across declarations, including container rules, RPC endpoint constraints, and draft references. Why The generator needs to reject schemas it cannot safely project to the stable API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Requires every proto in the draft source tree to declare `proto3` explicitly. Why The draft rules can focus on proto3 semantics while still allowing external dependencies with other syntax. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Removes comments owned by pruned imports and preserves source order until import ownership is resolved. Why Deleting an unused import should also remove its comments without disturbing the comments on retained imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Projects all supported draft placements out of the stable schema. Why Draft enums, oneofs, RPCs, and services need the same stable-output guarantees as draft fields and messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…terals What Rejects draft references in option literals on retained declarations, using validation and recompilation of the stable tree. Why A retained option needs to reference declarations that still exist after projection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ement What Expands the generated schema tests to cover every draft placement and a deliberately missing field annotation. Why The tests exercise combinations of draft declarations and verify rejection when a required annotation is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Emits a manifest with the effective draft feature gate for each classified declaration. Why Downstream generators can reuse the stable generator’s gate decisions and inheritance rules.
What Moves the draft example from workflow update user fields to `preview_note` on `DescribeNamespaceRequest`. Why A singular request field exercises draft filtering without reaching history or multi-operation collections.
…tions What Rejects retained lists and maps whose entries could need draft filtering and records the guarantee in manifest version 2. Why Go bindings can clear a draft collection under its own gate and keep retained collections without visiting their entries.
What Explains where to edit draft and stable declarations, when to remove a draft annotation, and how to regenerate both outputs. Why Contributors need a clear path from editing the source schema to committing the generated stable files.
stephanos
force-pushed
the
api-next-stephanos-followup
branch
from
November 24, 2026 20:51
4a0a814 to
29aa9ed
Compare
stephanos
force-pushed
the
api-next-stephanos-followup
branch
from
November 27, 2026 22:42
29aa9ed to
48b0766
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Defines the draft annotation contract and projects supported declarations into the stable schema.
Builds on #912. The descriptor oracle follows in #931.
a4c1b660Moves draft-schema validation cases into fixture files. Each invalid schema can document the requirement and expected diagnostic together.fa437510Moves comment-ownership cases into individual fixtures. Each rejected placement now has an isolated input and documented rationale.1664ed5aMoves import-rewrite cases into the end-to-end imports fixture. The tests now verify that rewriting works through projection and compilation.68592779Runs projection a second time on generated stable output and checks byte equality. Regeneration should converge after one pass.ff2c0caaChecks that randomly generated two-file schemas are accepted and that a second projection produces the same output. Combined schemas and comments exercise cases beyond hand-written fixtures.0e785ae3Rejects HTTP and request-header options that reference draft fields. Stable RPC options would otherwise point to fields removed during projection.16ef18beDerives the draft option package from the schema descriptor. The generator can then accept a relocated annotation schema.a900e890Makes source, stable, and annotation schema paths configurable and validates them. Tests and callers can use isolated layouts with clear path boundaries.4a2907b8Requires an empty output directory and creates files exclusively under a scoped root. Projection must avoid overwriting inputs or existing files.aee5a016Specifies all seven draft annotations and their projection and runtime rules. The proto generator, Go generator, and server need one shared contract.3b525b8eValidates supported annotations and their placement, containment, and RPC rules. Invalid schemas should fail before producing stable output.37a931b5Requires next schemas to use proto3. Proto2 defaults, groups, and extension ranges have no draft projection rules.2f3ed6cdRemoves comments that protoc attributes to pruned imports. Deleted imports should leave no orphaned comments in stable output.738e12c1Projects draft enums, enum values, oneofs, RPCs, and services alongside fields and messages. Stable descriptors should exclude every declaration gated by a draft feature.eeb69223Rejects retained option literals that refer to removed declarations. Stable schemas need all surviving option references to remain valid.096e0316Generates random valid schemas across all draft placements and adds a missing-annotation case. The property tests can catch omissions in the expanded placement rules.8fefb3b6Generates a draft manifest with the effective feature gate for each declaration alongside the stable proto tree. Downstream generators can use the same inheritance rules as the stable projection.d91ac8e7Replaces the demo workflow-update user fields with preview_note on DescribeNamespaceRequest. A singular request field exercises draft filtering without reaching history or multi-operation collections.af529227Rejects lists and maps whose retained entries could require draft filtering and records the guarantee in manifest version 2. Binders can clear a draft collection under its own gate and keep retained entries without visiting them.48b07668Explains where to edit draft and stable declarations, when to remove a draft annotation, and how to regenerate both outputs. Contributors need a clear path from editing the source schema to committing the generated stable files.