Repository navigation
Conversation
stephanos
force-pushed
the
api-next-stephanos
branch
4 times, most recently
from
November 20, 2026 15:12
c698c02 to
29b45c5
Compare
stephanos
force-pushed
the
api-next-stephanos
branch
2 times, most recently
from
November 20, 2026 16:16
d1f7fcb to
463aa28
Compare
stephanos
force-pushed
the
api-next-stephanos
branch
from
November 21, 2026 00:35
f16d39c to
5864be6
Compare
What Marks the generated `temporal/api/` tree as generated in `.gitattributes`. Why GitHub collapses the generated diffs so reviewers can focus on changes to the source schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Adds `stable-api` as an order-only prerequisite for targets that read `temporal/api/`. Why Parallel builds need the generated schema to be ready before linting, checking compatibility, or generating downstream artifacts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Moves the draft `Response.user` field to tag 3 and clarifies the comments on both draft user fields. Why The examples need usable tags and a clear description of the user who triggered the update before any draft bindings are published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Documents where to edit the source schema, how to regenerate the stable tree, and what the draft annotations do. Why Contributors need a valid path and regeneration workflow when changing the protobuf schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Passes a caller-supplied context into `stableProtosGenerator`. Why Tests and other callers can control the lifetime of generator work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Lists each draft option on its own line in the extendee table. Why Adding or removing an option becomes a one-line diff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Extracts schema loading and annotation validation into `loadAPINext`. Why Tests can load and validate a tree without generating stable files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Rephrases generator comments as full sentences and uses declaration names in Go doc comments. Why Consistent comment style makes the generator easier to read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Removes stale opener caller names and documents file indexing and the legacy formatter. Why The comments should explain the current implementation and its constraints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Derives sorted paths from the projected proto map in stripDrafts and reuses that order for import organization and comment validation. Why Both passes process the same files, so the generator can sort them once and give callers the complete order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Renames the verification error slice from `jErr` to `errs`. Why The name reflects that the slice holds individual errors until they are joined. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Runs generator tests and subtests in parallel. Why The tests use independent temporary directories, so they can run concurrently. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Collects accepted draft annotations and compares their declarations and feature names against the fixtures. Why A validator can accept valid input while still classifying a declaration under the wrong feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Runs projection, classification, and rejection fixtures through one test runner. Why Every fixture gets the same checks for expected annotations, deterministic output, and failure behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Installs `protoc` in the stable generator CI job using the same setup action as the main CI job. Why The descriptor oracle and breaking-change tests compile protos with `protoc`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Extracts comment token normalization into `commentTokenWords`. Why Import pruning can reuse the same word parsing when it matches source comments to imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Preserves the original quote style when rewriting temporal import paths. Why The printer sorts by the raw import token, so preserving quotes keeps repeated generation from changing import order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What Documents compiling one schema tree at a time and checks that each Buf module lists only its own tree. Why The stable and draft trees share protobuf package names, so compiling both produces duplicate symbols. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stephanos
force-pushed
the
api-next-stephanos
branch
2 times, most recently
from
November 23, 2026 15:42
b7e48eb to
34991b4
Compare
stephanos
force-pushed
the
api-next-stephanos
branch
10 times, most recently
from
November 24, 2026 19:30
4a0a814 to
7c79b3d
Compare
stephanos
force-pushed
the
api-next-stephanos
branch
from
November 24, 2026 20:51
7c79b3d to
5504bbc
Compare
stephanos
marked this pull request as ready for review
November 24, 2026 20:56
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.
Small refactors, fixture cleanup, and build safeguards for draft-to-stable proto generation.
The remaining draft API changes are in #921.
e89b89d7Marks the stable proto tree as generated in GitHub. This collapses regenerated diffs so reviewers can focus on source changes.ed9a2a9eMakes stable-tree readers wait for thestable-apitarget. Parallel builds can then lint and compile the freshly projected schemas.2f347111Moves the demo response user field to tag 3 and clarifies both demo comments. The draft response can use its next available tag without changing the stable schema.33f185a4Documents where to edit, annotate, and regenerate the schemas. Contributors need to know which tree owns the source.f93b9502Passes the caller's context into the projection generator. Tests and callers can now control cancellation.7bc8f17dPuts each draft option extendee on its own line. Each supported placement is easier to review in a diff.1d19a9ecExtracts loading and validation from draft stripping. Tests can validate source schemas without generating output.dd7bd5caRephrases generator comments as full sentences and uses declaration names in Go doc comments. Consistent comment style makes the generator easier to read.5d0850dcRemoves stale opener caller names and documents file indexing and the legacy formatter. The comments should explain the current implementation and its constraints.75d047ffReturns sorted paths fromstripDraftsfor import organization and comment validation. Both passes process the same files, so the generator only needs to sort them once.088ad8b7RenamesjErrtoerrsin output verification. The new name identifies the accumulated errors.06e19078Runs isolated generator tests and subtests in parallel. Their temporary directories allow concurrent execution.1b691f3dCompares accepted annotations with each fixture's expected classification. The tests can now catch a declaration classified under the wrong feature.ee227281Consolidates fixture validation, output, and golden checks inTestFixtures. Every fixture runs through the same assertions.5af8d3e3Installs protoc in the stable-generation CI job. The descriptor oracle and compatibility tests invoke protoc.90633b1bExtracts token-level comment splitting fromcommentWords. Import pruning can reuse the same tokenization.19e603fbPreserves the original quote style when rewriting imports. Changing the quotes can change import order on the next generation pass.5504bbccDocuments the separate proto trees and checks that each Buf module excludes the other. Compiling both trees together produces duplicate declarations.