Skip to content

fix(changelog): Keep AI summaries concise, distinct, and complete - #929

Merged
BYK merged 23 commits into
masterfrom
codex/fix-ai-summary-release-quality
Oct 24, 2026
Merged

BYK merged 23 commits into
masterfrom
codex/fix-ai-summary-release-quality

Conversation

@MathurAditya724

@MathurAditya724 MathurAditya724 commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Craft’s AI changelog could repeat the same explanation across levels, drop migration details, or fall back after duplicate summary IDs. The 3.0.0 release also included full PR bodies from incidental references to the legacy opt-in directive. This gives each level a distinct job while preserving every original entry and version-bump result.

  • Scopes explain concrete changes. Ordinary categories synthesize brief outcomes (at most 22 words), and releases give an overall story (at most 35 words). Ordinary categories also use a shared character budget of 55% of their children, with an 80-character floor and 600-character ceiling. Release overviews retain a fixed 400-character ceiling so already brief categories do not force incomplete sentences. Eight-word copied phrases trigger bounded repair. Compact entry headlines prioritize coverage of every change before supporting context. Models receive their actual character/word budgets as planning data; incomplete release endings and malformed control prose are rejected.
  • Detailed breaking/security guidance is selected from explicit source entries or migration settings, independently of inferred model metadata. It runs in separate batches with up to 900 characters, bounded original critical PR context, and exact recognized migration settings/flags retained through reduction rounds. The overview stays concise; source-linked critical facts remain internal.
  • Structured responses use required node-ID properties instead of duplicate-prone arrays, validated with Valibot strict objects and non-array records to match the current configuration stack. Invalid output gets one repair within the same 64-request/120-second limits; persistent failure preserves the original changelog. Transport/authentication failures do not cause retries or provider switching.
  • PR context preserves inline-code values, prioritizes migration paragraphs, and is capped at 1200 characters. Full-body inclusion requires a standalone top-level #body-in-changelog line; code, quoted examples, comments and prose mentions do not opt in. Surrounding blank lines remain optional.

All three levels remain independently selectable, hidden lower-level digests are reused, original entries are folded only once, and configuration defaults remain unchanged. No dependencies, distribution machinery or planning documents are added.

Normal CI uses a general standalone CLI/Actions E2E with a temporary Git repository and loopback HTTP fixtures. It checks all three summary levels, preserves every entry exactly once and the version-bump result, exercises one bounded structured-output repair, verifies fallback after persistent invalid output, and rejects transport retries. Both HTTP formats, configuration precedence, disabled summaries, missing credentials, and dry-run zero-call behavior remain covered. External HTTP is blocked in the fixture, and no model credentials or Copilot organization policy are needed for CI.

The permanent live workflow and historical release replay test are removed. Future provider investigations can add temporary live tests and remove them after validation.

Refs getsentry/publish#9985

The one-off live Copilot replay at daf323fe validated the summary behavior against exact 3.0.0 inputs before the replay machinery was removed. The subsequent upstream Valibot integration is covered by the generic E2E and strict-response regression tests. Unedited AI/no-AI Markdown and manifests retain all ten original entries and the major bump. This live evidence is separate from the deterministic CI fixtures.

Require one structured response key per summary group and allow one bounded repair of invalid model output. Prioritize migration context and require explicit body-in-changelog directives to prevent accidental PR body inclusion.
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-24 20:07 UTC

@MathurAditya724 MathurAditya724 changed the title fix(changelog): Preserve useful and complete AI release summaries fix(changelog): Keep AI summaries concise, distinct, and complete Oct 24, 2026
@MathurAditya724
MathurAditya724 marked this pull request as ready for review October 24, 2026 16:33
@MathurAditya724
MathurAditya724 requested a review from BYK October 24, 2026 16:35
@BYK
BYK enabled auto-merge (squash) October 24, 2026 19:48
Resolve Valibot migration conflicts without restoring historical live tests.
@BYK
BYK merged commit 0728af7 into master Oct 24, 2026
20 checks passed
@BYK
BYK deleted the codex/fix-ai-summary-release-quality branch October 24, 2026 20:06

This branch was previously deployed

1 inactive deployment
false — e4a7db2e Deployed Oct 24, 2026 by MathurAditya724 via Build #3203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants