Repository navigation
ci: the version gate reads package.json's files as an allowlist - #2039
Merged
swapnilpaliwal-sd merged 1 commit intoDec 1, 2026
Merged
Conversation
sukuna-in-tech
requested review from
JaredHLZhang,
Whua689,
suyashpaliwal26 and
swapnilpaliwal-sd
as code owners
December 1, 2026 09:27
…mCodeAI#1981) The gate treated every changed path as shipped unless a `files` negation or .github/ excluded it, so a change only to tests/ was refused for want of a version bump although npm never packs tests/. It now asks the question the way npm answers it: a path reaches a user when a positive `files` entry names it and no negation drops it, plus package.json and the README, LICENSE and CHANGELOG beside every packed package.json. Checked against `npm pack --dry-run`: over every tracked file the gate's list and npm's are identical (385 files). Probes on a released base: tests/run.py, .github/workflows/ci.yml and graph/test/ pass; an engine script, README.md and parser/README.md are still refused. Closes AxiomCodeAI#1981
sukuna-in-tech
force-pushed
the
ci/version-gate-allowlist
branch
from
December 1, 2026 09:28
c2031cd to
fcf9c89
Compare
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.
Closes #1981.
Problem. The version gate counted every changed path as shipped unless a
filesnegation or.github/excluded it. So once a version is tagged, a PR touching onlytests/was refused for "reaching a user", although npm never packstests/.Change.
.github/scripts/version-gate.shnow decides the way npm does: a path reaches a user when a positivefilesentry names it and no negation drops it, pluspackage.jsonand the README/LICENSE/CHANGELOG beside every packedpackage.json.Tests
npm pack --dry-run, over every tracked filetests/run.pyonly, base v0.2.4.github/workflows/ci.yml,graph/test/README.md,parser/README.md