Skip to content

Commit 7db4f89

Browse files
committed
chore(scripts): exempt generated changelogs from the legacy-name guard
The guard already skips .changeset/ because a changeset legitimately records the kaos to pyaos rename and its deprecated alias. The CHANGELOG.md files are generated from those changesets, so they carried the same text and failed the check with no fix available: renaming the entry would falsify a published release record.
1 parent abc820a commit 7db4f89

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/upstream-sync/check-managed.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ const kimiHostPattern = /\b(?:[a-z0-9-]+\.)*kimi\.com\b/gi;
6666
// kaos→pyaos rename guard: the only tracked files allowed to mention the old
6767
// name are the deprecated-alias surfaces (config `executor: 'kaos'`, SDK
6868
// `{kaos, persistenceKaos}` session params) and their tests. pnpm-lock.yaml is
69-
// excluded for its unrelated base64 `...kAOs...` integrity hash.
69+
// excluded for its unrelated base64 `...kAOs...` integrity hash. Changesets and
70+
// the CHANGELOG.md files generated from them are excluded for the same reason:
71+
// they are a release record of the rename, and rewriting a published entry
72+
// would falsify history rather than remove residue.
7073
const kaosAliasAllowlist = new Set([
7174
'packages/agent-core/src/config/schema.ts',
7275
'packages/agent-core-v2/src/mcpCore/config-schema.ts',
@@ -101,6 +104,7 @@ for (const file of trackedFiles) {
101104
if (
102105
file !== 'pnpm-lock.yaml' &&
103106
!file.startsWith('.changeset/') &&
107+
!file.endsWith('CHANGELOG.md') &&
104108
!kaosAliasAllowlist.has(file) &&
105109
kaosPattern.test(text)
106110
) {

0 commit comments

Comments
 (0)