Skip to content

ci: the version gate reads package.json's files as an allowlist - #2039

Merged
swapnilpaliwal-sd merged 1 commit into
AxiomCodeAI:devfrom
sukuna-in-tech:ci/version-gate-allowlist
Dec 1, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
AxiomCodeAI:devfrom
sukuna-in-tech:ci/version-gate-allowlist

Conversation

@sukuna-in-tech

Copy link
Copy Markdown
Contributor

Closes #1981.

Problem. The version gate counted every changed path as shipped unless a files negation or .github/ excluded it. So once a version is tagged, a PR touching only tests/ was refused for "reaching a user", although npm never packs tests/.

Change. .github/scripts/version-gate.sh now decides the way npm does: a path reaches a user when a positive files entry names it and no negation drops it, plus package.json and the README/LICENSE/CHANGELOG beside every packed package.json.

Tests

Check Result
Gate's list vs npm pack --dry-run, over every tracked file identical, 385 files
tests/run.py only, base v0.2.4 before: refused · after: passes
.github/workflows/ci.yml, graph/test/ passes (control)
engine script, README.md, parser/README.md still refused (control)

…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
sukuna-in-tech force-pushed the ci/version-gate-allowlist branch from c2031cd to fcf9c89 Compare December 1, 2026 09:28
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 0fa6e1d into AxiomCodeAI:dev Dec 1, 2026
12 checks passed
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.

ci: a change to a shipped file with no version bump passes CI but never reaches a user

2 participants