Skip to content

docs(changelog): state the raised token default the migration note announces - #576

Merged
Smana merged 1 commit into
mainfrom
fix/changelog-token-default-raised
Sep 22, 2026
Merged

Smana merged 1 commit into
mainfrom
fix/changelog-token-default-raised

Conversation

@Smana

@Smana Smana commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Why

The 0.15.0 section of CHANGELOG.md carries two breaking-change bullets for investigation.max_tokens_per_investigation, one under investigate: and a duplicate under eval:. Both say the default is unchanged at 400000, so the same number binds far earlier than it used to. That sentence was originally "unchanged at 100000"; a later fix patched the number so internal/docsguard stops failing, but the claim itself is still false: the default was raised, from 100000 to 400000, precisely because the old value now binds far earlier. Both docs/configuration and docs/operations/upgrade-uninstall already say so.

The duplicate came from a squash body that carried two BREAKING CHANGE: footers; release-please picked the superseded one and emitted it twice (once under a spurious eval: scope inherited from a stacked branch).

What

  • Delete the eval: bullet: it was never a breaking change, only an inherited footer.
  • Rewrite the investigate: bullet to the wording already pinned to the code in upgrade-uninstall.md: the raised default, the per-request quarter, what happens to an explicitly set value, 0 vs -1, the ~1.25x overshoot, and the migration link.
  • gitops: is untouched.

This is the parked commit from fix/release-changelog-migration-note, cherry-picked onto current main (one context conflict resolved by keeping only the corrected line).

Verified

go test ./internal/docsguard/... passes on this branch, and CI is green.

…nounces

release-please generated two breaking-change bullets saying "The default is
unchanged at 100000". ApplyDefaults ships 400000, and internal/docsguard's
TestNoShippedDocClaimsTheTokenDefaultIsUnchanged fails the release PR on it —
which is the guard doing its job, since an operator sizes their spend against
the number the migration note gives them.

Two mechanical causes, both on main and unrewritable. The squash body of
8d26929 carries TWO `BREAKING CHANGE:` footers, and release-please keeps a
single breaking.text filled by the first body-level node — so the superseded
footer won, and the correct paragraph (400000, the derived quarter, the
compaction trigger, the measured overshoot) never reached the file. 0ef4507
inherited that footer from its stacked branch without a `!` in its subject, so
the same wrong paragraph was emitted a second time under `eval:`.

The `eval:` bullet is deleted rather than corrected: it is not a breaking
change, and it only ever appeared because of the inherited footer. The
`investigate:` bullet now states the raised default, what still bounds a single
request, what happens to an explicitly-set value, that `0` applies the default
while `-1` opts out, and the ~1.25x overshoot — and links the full migration.

The prose is the one already pinned to the code in upgrade-uninstall.md, so
the two cannot drift. `gitops:` was correct and is untouched.

This file is regenerated whenever main moves, so this edit is applied last and
must be re-applied if it regenerates again.
@Smana
Smana merged commit 7c25bec into main Sep 22, 2026
2 checks passed
@Smana
Smana deleted the fix/changelog-token-default-raised branch September 22, 2026 05:45
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.

1 participant