Repository navigation
fix(toolchain): count only tracked lockfiles when the ladder picks a package manager - #17692
Conversation
…package manager An unattended run infers a package.json script's package manager from its lockfile. Lockfiles that appear in the working tree at run time and were never committed tied the pick and left test-cmd unresolved. A lockfile now counts only when it is present and git ls-files lists it. Outside a git repository, or when git cannot list files, every lockfile present counts, as before. Refs: #16097 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17692No security issues found. Scope. I read both changed files in full in
Neither file matches a trusted-path glob. Analysis.
Prior findings. This lane had not reviewed an earlier head, so this was a full review, not blocking only. critical-findings: 0 |
|
claude-review reviewed Code review: #17692This PR changes documentation only. It adds one sentence to the "Inferred" source in The wording holds up:
One advisory finding (inline): no eval case plants an untracked lockfile. The new rule is exercised only by accident, when the CI sandbox happens to leave lockfiles in the workspace. If the rule broke, nothing would reliably fail. Closing issue #16097. The PR says No embedded instructions were found in the PR context or prior-findings files. This is the first review of this PR, so it is not limited to blocking findings. Loosened checks: none. The change edits a resolution rule in docs, not a test, threshold or CI check. The prompt carried no No plugin manifest changed. No Verifier dropped 0 of 1 candidates. |
|
The pr-verify verifier failed head What it wrote (26 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Refs: #16097
Summary
The toolchain resolution ladder now counts only lockfiles git tracks when an unattended run picks the package manager for a
package.jsonscript.In run 44803901363,
ck-unattended-inferred-runslost. Lockfiles appeared in the workspace at run time (package-lock.json,pnpm-lock.yaml,yarn.lock), were never committed, and tied the package manager. The ladder reports a tie as unresolved, sotypescript.test-cmddid not run (record).Owner decision, 2026-11-20, typed in the owning session: "go w/ recommendations" on Q114, option A: the ladder counts only lockfiles
git ls-fileslists when it picks a repository's package manager.Fix
plugins/toolchain/reference/resolution-ladder.md, "Unattended runs", Inferred source: a lockfile counts only when it is present andgit ls-fileslists it, so an untracked lockfile names no package manager./toolchain:check's install sentence ("Install only from the committed lockfile ...") is unchanged..changes/toolchain/fix-16097-tracked-lockfiles-92425d59.md(patch).Verification
scripts/check-affected.sh: 17 passed, 3 skipped (no shell, Python or skill file changed).resolution-ladder.mdby line number, so the added lines move no citation.ck-unattended-tie-unresolvedscaffold tiespackage.jsonagainst aMakefiletarget and holds no lockfile, so its expected answer is unchanged.Remaining
ck-unattended-inferred-runsonce onpr-run-plugin-evals.ymlon main, as a new registration (one case, same pass rule).Related
🤖 Generated with Claude Code