Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7d911af
fix(changelog): Preserve useful and complete AI release summaries
MathurAditya724 Oct 24, 2026
a16796c
fix(changelog): Retain explicit migration actions in summaries
MathurAditya724 Oct 24, 2026
324eebe
fix(changelog): Qualify breaking-change upgrade instructions
MathurAditya724 Oct 24, 2026
ca7aa1d
fix(changelog): Require one complete critical fact per source
MathurAditya724 Oct 24, 2026
cad501d
fix(changelog): Accept standalone body directives without blank lines
MathurAditya724 Oct 24, 2026
8b5d125
fix(changelog): Guard optional Markdown token metadata
MathurAditya724 Oct 24, 2026
6308a8b
fix(changelog): Separate summary roles and enforce parent compression
MathurAditya724 Oct 24, 2026
d9b4da7
fix(changelog): Separate critical guidance from brief category batches
MathurAditya724 Oct 24, 2026
64a76be
fix(changelog): Preserve source migration context in category guidance
MathurAditya724 Oct 24, 2026
0dc47f5
fix(changelog): Validate source-stated operational terms in guidance
MathurAditya724 Oct 24, 2026
8b900fc
fix(changelog): Keep migration constraints scoped through reductions
MathurAditya724 Oct 24, 2026
1a3ce48
fix(changelog): Reserve detailed guidance for lower summary levels
MathurAditya724 Oct 24, 2026
177fe14
test(changelog): Check migration conditions without expanding parent …
MathurAditya724 Oct 24, 2026
a7cd92f
fix(changelog): Keep factual claims tied to their source components
MathurAditya724 Oct 24, 2026
35e7377
fix(changelog): Classify guidance from source entries, not model facts
MathurAditya724 Oct 24, 2026
7411e3c
fix(changelog): Plan prose within budgets and reject incomplete overv…
MathurAditya724 Oct 24, 2026
47cdb4f
fix(changelog): Leave room for complete small-release overviews
MathurAditya724 Oct 24, 2026
b8b22fb
fix(changelog): Cap ordinary category prose at 22 words
MathurAditya724 Oct 24, 2026
ae7f603
test(changelog): Accept equivalent external-versioning guidance
MathurAditya724 Oct 24, 2026
60a4465
fix(changelog): Use fixed budgets for concise release stories
MathurAditya724 Oct 24, 2026
daf323f
fix(changelog): Prioritize entry coverage before supporting context
MathurAditya724 Oct 24, 2026
afba272
test(changelog): Use general offline E2E coverage in CI
MathurAditya724 Oct 24, 2026
e4a7db2
chore: Merge master and preserve summary validation
MathurAditya724 Oct 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/ai-summary-check.yml

This file was deleted.

51 changes: 42 additions & 9 deletions docs/src/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,46 @@ changelog:
| `llm.model` | `gpt-5.4-nano` | Model ID supported by the endpoint and credential. |
| `llm.apiKeyEnv` | `GITHUB_TOKEN` | Name of the environment variable containing the token. Never put the token in configuration or CLI arguments. |

For short changelogs, keep the default `levels: [release]` and `minItems: 5`
to add an overview while leaving the original entries expanded. Selecting all
levels with `minItems: 0` explicitly summarizes even one-entry groups.

Lower-level digests are reused for parent summaries even when hidden. Each
parent makes an AI synthesis call over its child digests. The release overview
is one or two short sentences covering the themes across every category, rather
than joined category summaries. Category and scope summaries name the concrete
features, targets and options that changed, and breaking-change summaries say
what users must change when the source data states it. Besides each changelog
entry, the model receives the Markdown text of its PR description (without
code, HTML, images or emoji, capped at 600 characters) as context only; it is
never rendered. Visible prose is capped at 400
characters for the release, 600 for each category and 1200 for each scope.
Source-linked critical facts are carried and validated internally without
appending their text to every displayed summary. All original entries remain
than joined category summaries. Scopes explain concrete changes and options;
categories synthesize their useful outcomes in a brief sentence, even when a
category has only one scope. Ordinary category prose is limited to 55% of its
children's combined prose length, with an 80-character floor, subject to the
absolute limits below. Release overviews use their fixed word/character limits
so already brief categories do not force incomplete sentences. Copying eight
consecutive child words triggers a bounded repair.
Categories with explicit breaking/security source entries or migration settings
are generated in separate guidance batches. Model-inferred fact metadata alone
does not select this display role or disable compression. These guidance categories
are exempt from these compression and phrase-copy limits so migration actions,
risks and applicability conditions can stay precise. These category calls also
receive bounded original PR context for critical entries, since a child digest
can omit migration details. Context excerpts do not increase entry counts.
Recognized explicit migration settings (such as an empty-string opt-out) and
required CLI flags must survive in detailed guidance, including intermediate
reduction rounds; missing operational terms trigger the same bounded
repair/fallback. Ordinary test-setup instructions do not impose these constraints.
Release overviews still condense those categories; critical facts remain in the
internal ledger. Besides each changelog entry, the model receives the Markdown
text of its PR description (without code blocks, HTML, images or prose emoji,
capped at 1200 characters with breaking-change and migration paragraphs
prioritized) as context only; it is never rendered. Visible prose is capped at
400 characters and 35 words for the release, 600 characters and 22 words for ordinary
categories, 900 for breaking/security guidance and 1200 for each scope. Critical
guidance has extra room to preserve complete migration conditions.
The model also receives each node's character budget as planning context.
Overviews with an incomplete ending or malformed control text are rejected.
Invalid structured model output gets one repair attempt within the same
64-request and 120-second budgets. Transport and authentication failures do not
trigger retries or provider switching. Source-linked critical facts are carried
and validated internally without appending their text to every displayed summary.
All original entries remain
intact. Category and scope summaries preserve originals in expandable blocks,
including links and nested content. Category prose and
scope headings stay expanded; each original entry is folded only once. Scope
Expand Down Expand Up @@ -467,6 +495,11 @@ changelog:

### Custom Changelog Entries from PR Descriptions

The legacy `#body-in-changelog` opt-in must be a standalone, top-level line in
the PR or commit body. Surrounding blank lines are optional.
Mentions inside prose, inline or fenced code, blockquotes and HTML comments do
not opt in. Prefer a curated "Changelog Entry" section to including a full body.

By default, the changelog entry for a PR is generated from its title. However,
PR authors can override this by adding a "Changelog Entry" section to the PR
description. This allows for more detailed, user-facing changelog entries without
Expand Down
164 changes: 0 additions & 164 deletions src/__tests__/ai-summary-live.test.ts

This file was deleted.

Loading
Loading