Repository navigation
Conversation
The warning for a product with several targets and the render command's entry checks were inline in two services. They become rules on two stage types, AuthoredBundle and BundleToRender, so a bundle a loader reads is not held to rules it never had. Output is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
The warning for a product listed with several targets and the render command's entry checks move out of two services into rules on two stage types. Output is unchanged. This is PR 10b of the release-notes stack.
Affects: Release notes, Configuration
Stack: 2 of 3 of the release-notes area of #4530, on top of #4929 (10a, configuration), which is on the wave-1 integration branch
split/integration-wave1(foundation #4888; wave 1: #4907, #4900, #4905, #4906, #4903, #4901, #4899, #4902, #4904). Next: 10c (entries and services).Why
#4530 splits into one pull request per aggregate root. Bundle rules live as
collector.EmitWarningandEmitErrorcalls insideBundleBuilderandBundleValidationService, away from the domain.What
Stage types
AuthoredBundleis the bundlechangelog bundleassembles. Its rule reports a product listed with several targets (warning, no file).BundleToRenderis the bundlechangelog renderreceives with amend files merged. Its rule walks the entries once and reports, entry by entry, a repeated file name (warning), an entry without title and type, and an entry without products (errors). It is one rule so the report keeps today's interleaved order. A bundle read byBundleLoaderis neither stage: the loader skips what it cannot render and says so, and keeps that text. No caller dispatches between the two stages, so there is nounion.Services
BundleBuilderappliesAuthoredBundle.WithProductsthroughAuthoredBundle.Constraints.ApplyDetailedand writes the findings.BundleValidationServicetakes its findings fromBundleLoader.CheckForRender, a thin public wrapper over the internalCheck(services cannot run a set; the loader project can). The across-bundle tracking stays in the service and reusesBundledEntry.HasInlineContentandHasProductsso a PR is tracked under the same condition as before.Why not
Loader.ForBundles are read by
BundleLoader, which reports through a warning callback and skips entries. The S7 bundle-loading snapshots lock that, andLoader.Forreturns no value for an unreadable file where today's callers continue. The bundle read path is unchanged.Deferred behaviour changes
ApplyAmends): order-independence, idempotence and a canonical merge order. Main does not sort amends.BundleAmendMergerstays in the Configuration project.--forceand the skip logic inChangelogBundleAmendService.BundleValidationService: they read dictionaries built during the loop and emit after it.bundle-has-one-product, release-date text rule (R82), and theLoadedBundlemerge changes: each adds a finding or changes order.LoadedBundleconstraints andBundle.Operationsare not added: no rule applies today.Verify
No verified file is modified. Mutation: changing the product group threshold and disabling the repeated-file check turned
BundleStageConstraintsTestsand two existing Changelog snapshot tests red; both were reverted. The AutoTest axes run onAuthoredBundle;BundleToRenderhas no operation, so only its rule axis runs.🤖 Generated with Claude Code
Golden compare
Local builds of the isolated docs, the prod assembler site and the codex example site, this branch's head against the wave-1 integration branch (
split/integration-wave1: currentmainplus the nine wave-1 PRs); aggregate counts, the output stays local.4 paths differ across the three sites. All also differ between two captures of that baseline taken hours apart (159 paths: live OpenAPI specs, the release-notes CDN and the generated
llmsfiles), so none of these can be attributed to this change.Limit: golden cannot show a real change inside those drifting pages.