Repository navigation
fix(engine): every lock-resolved version reports resolution: lockfile - #254
Merged
Merged
Conversation
`resolution.kind` named `lockfile` for npm and Cargo alone, so a version Bun, Bundler, Composer, Pyproject, Go or Terraform resolved from its committed lockfile reported `declared`. Derive the kind from `movable_lockfile` — the descriptor fact naming each declaration its lockfile records a resolved version for — and keep an explicit list for npm, Bun and Terraform, whose parsers fill `resolved` from a committed lock without a movable-lock fact. Report JSON's `resolution.kind` changes for those managers. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | e2a3ecd | Commit Preview URL Branch Preview URL |
Nov 11 2026, 07:32 AM |
A gem with no committed Gemfile.lock records no resolved version, so the report carries no `resolution` for it at all — `lockfile` can never appear. And `packageManager`, a tool whose `resolved` is the value the manifest names, stays `declared` under the kind exclusion. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Merged
This was referenced Nov 11, 2026
Merged
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.
Bug 4 from design consult 4.
crates/engine/src/report.rsreportedresolution.kind = lockfileonly for npm and Cargo. Lock-resolved versions from Bun, Bundler, Composer, Pyproject, Go and Terraform providers reporteddeclared.Lockfilenow applies to any non-tool, non-toolchain dependency whose resolved version came from a lockfile:movable_lockfile()covers Cargo.lock, uv.lock and poetry.lock, Gemfile.lock, composer.lock, and go.modrequireversions;resolvedonly from a committed lockfile (package-lock.json, bun.lock or aube-lock.yaml, .terraform.lock.hcl) without a movable-lock fact.Report JSON change:
resolution.kindbecomeslockfileinstead ofdeclaredfor those managers' lock-resolved dependencies. Tool and toolchain dependencies, and Go'sgodirective, keep their kinds.Tests (
engine/tests/resolution.rs): the Composer test now expectslockfile, and there are new cases for Bun, Bundler, Pyproject, Go (asserting thegodirective staysdeclared) and Terraform.Docs: the
resolutionrow inreference/report.md.The corpus proposal snapshot is unchanged; resolution kind is report output, not a lookup fact.
Follow-up, not in this PR:
pnpm-lock.yaml,yarn.lockandnpm-shrinkwrap.jsonare lockfiles in the role taxonomy, but nothing reads them for resolution (onlypackage-lock.json,bun.lockandaube-lock.yaml). NuGetpackages.lock.jsonis selected but parsed as MSBuild XML, so it yields nothing. Those dependencies correctly reportdeclaredtoday. Reading these lockfiles would be a feature; theNpmarm here would then already cover pnpm and yarn, and NuGet would need amovable_lockfilefact.