test(atlas): tripwire the bundled @synsci/atlas dependency against drift#115
Merged
Merged
Conversation
The agent shells out to the bundled `atlas` CLI to populate the graph (atlas doctor, nodes:create, evidence:add). node_modules had drifted to 0.5.12 while package.json pins ^0.13.2 — a silent skew that runs a different CLI surface than we ship, degrading graph population even when `openscience project init` succeeds. Add a tripwire (mirroring the model-pin delisting test) asserting the installed atlas satisfies the declared range and exposes its `atlas` bin. Gracefully skips when atlas isn't installed (a standalone-compiled build has no node_modules).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Aayam Bansal (aayambansal)
added a commit
that referenced
this pull request
Jul 8, 2026
…ift (#115) The agent shells out to the bundled `atlas` CLI to populate the graph (atlas doctor, nodes:create, evidence:add). node_modules had drifted to 0.5.12 while package.json pins ^0.13.2 — a silent skew that runs a different CLI surface than we ship, degrading graph population even when `openscience project init` succeeds. Add a tripwire (mirroring the model-pin delisting test) asserting the installed atlas satisfies the declared range and exposes its `atlas` bin. Gracefully skips when atlas isn't installed (a standalone-compiled build has no node_modules).
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.
The agent shells out to the bundled
atlasCLI to populate the graph (atlas doctor,nodes:create,evidence:add) — so even whenopenscience project initcreates the root, a wrong/missingatlasbinary leaves it bare.node_moduleshad silently drifted to 0.5.12 whilepackage.jsonpins ^0.13.2, meaning the agent could run a different CLI surface than we ship.Adds a tripwire (mirroring the model-pin delisting test from #91) that asserts:
@synsci/atlasis declared with a concrete version range.Bun.semver.satisfies) — catches drift.atlasbin entry.Since
@synsci/atlasis anoptionalDependency(absent in the standalone-compiled build with nonode_modules), tests 2–3 skip gracefully when it isn't installed. In CI the frozen-lockfile install resolves 0.13.2, so all three pass.