Skip to content

fix(toolchain): count only tracked lockfiles when the ladder picks a package manager - #17692

Merged
kyle-sexton merged 1 commit into
mainfrom
fix-16097-tracked-lockfiles
Nov 20, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix-16097-tracked-lockfiles

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Refs: #16097

Summary

The toolchain resolution ladder now counts only lockfiles git tracks when an unattended run picks the package manager for a package.json script.

In run 44803901363, ck-unattended-inferred-runs lost. 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, so typescript.test-cmd did 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-files lists 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 and git ls-files lists it, so an untracked lockfile names no package manager.
  • Design choice for the no-git case: outside a git repository, or when git cannot list the files, every lockfile present counts, as today. This keeps today's behaviour where tracking cannot be known.
  • Two tracked lockfiles still tie under the existing tie rule, which is unchanged.
  • /toolchain:check's install sentence ("Install only from the committed lockfile ...") is unchanged.
  • No script implements the pick, so no test changes. The eval cases and graders are unchanged.
  • Changelog fragment: .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).
  • No tracked file cites resolution-ladder.md by line number, so the added lines move no citation.
  • The ck-unattended-tie-unresolved scaffold ties package.json against a Makefile target and holds no lockfile, so its expected answer is unchanged.

Remaining

  • After merge, re-run ck-unattended-inferred-runs once on pr-run-plugin-evals.yml on main, as a new registration (one case, same pass rule).
  • If that re-run passes, the issue's last done-when item (AC5, every unattended case passes) is met and the issue can be closed; this PR delivers only the ladder rule.

Related

🤖 Generated with Claude Code

…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 20, 2026 21:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T21:06:44.980387Z 9925f9c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44817225872

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9925f9cf1f710c793e358ee8cf1fc5466467246c: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17692

No security issues found.

Scope. I read both changed files in full in .claude-lane/pr.diff:

  • .changes/toolchain/fix-16097-tracked-lockfiles-92425d59.md: a new changelog fragment, prose only.
  • plugins/toolchain/reference/resolution-ladder.md: one rule added to the "Unattended runs" section, inferred source. A lockfile now names a package.json script's package manager only when git ls-files lists it. Outside a git repository, or when git cannot list files, every lockfile present still counts, as before.

Neither file matches a trusted-path glob.

Analysis.

  • What the unattended run may do. The change narrows the inputs that pick a package manager. An untracked lockfile, such as one an outside process drops into the workspace at run time, can no longer choose the manager or force a tie. The set of commands an unattended run may execute is unchanged: running a manifest script through a package manager was already allowed. The rest of the section is unchanged: never ask, never run a bundled default, copy no command out of a CI workflow, install nothing, and report a tie as unresolved.
  • Fallback. When git cannot list files, the rule falls back to today's behaviour. That keeps the current state and adds no new path.
  • Standing instructions. No guardrail is deleted, narrowed or softened. This is an added rule, not a removal.
  • Other surfaces. No trust control, token scope, kill switch, merge hold, workflow, plugin manifest or userConfig key is touched.
  • Embedded instructions. The PR context contains no text directed at this review lane.

Prior findings. This lane had not reviewed an earlier head, so this was a full review, not blocking only.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 9925f9cf1f710c793e358ee8cf1fc5466467246c; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 9925f9cf1f710c793e358ee8cf1fc5466467246c: read 2 of 2 changed file(s); 1 finding(s), 1 as inline comments.

Code review: #17692

This PR changes documentation only. It adds one sentence to the "Inferred" source in plugins/toolchain/reference/resolution-ladder.md: an unattended run counts a lockfile only when it is present and git ls-files lists it. Outside a git repository, or when git can't list the files, every lockfile present still counts. It also adds a patch changelog fragment.

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 Refs: #16097, not "Closes", and its "Remaining" section keeps the issue open until ck-unattended-inferred-runs is re-run after merge. AC5 ("every unattended case's verdict is pass in the compare record") is not shown to be met by this change. That matches what the PR says, so I'm not counting it as a finding. The verification claims in the PR (check-affected.sh 17 passed / 3 skipped, no line-number citations moved) come from the author; I didn't run anything to confirm them. The other two done-when items aren't touched here.

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 loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines, so I used fail with no consumer entries and did not check the citation requirement.
Loosened checks would be marked: fail (bundled default); patterns: 0

No plugin manifest changed. No .claude/rules/ file applies, and no paved-path row was checked against this change.

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 9925f9cf1f710c793e358ee8cf1fc5466467246c. What it wrote, as data:

What it wrote (26 lines)
Summary: Issue #16097 is the spec. spec-text.json lists it with spec_kind `closes`, so the diff is
  judged against the whole issue, and no person_checks or credited_siblings excuse anything. The
  diff makes a coherent docs-only change. In `plugins/toolchain/reference/resolution-ladder.md`, a
  lockfile now names a package manager only when `git ls-files` lists it, and every lockfile present
  still counts outside git. A patch changelog fragment comes with it. The change is consistent with
  the tie rule and leaves the check skill's install allowlist sentence alone. CI checks passed
  (Check Skills
  https://github.com/melodic-software/claude-code-plugins/actions/runs/44817165319/job/136568712281,
  Lint Repo
  https://github.com/melodic-software/claude-code-plugins/actions/runs/44817165319/job/136568712273).
  Test Bash/Python/Node were skipped, which is correct for a markdown-only change. I found no safety
  or takeover-set issue. What blocks: AC5's last clause, "every unattended case's verdict is pass",
  is still unmet. The PR body says ck-unattended-inferred-runs must be rerun after merge and that
  #16097 should close only if it passes. Its body also uses `Refs: #16097`, yet the issue is linked
  as one this PR closes, so merging would close it before AC5 is met. The owner decision the change
  relies on (Q114, "go w/ recommendations") appears only in the PR body, not in any trusted issue
  text. I note it here for a human but it does not block. I saw no text trying to steer the
  reviewer.
- PR body: #16097 is linked as an issue this PR closes (spec_kind `closes`), but the body uses
  `Refs: #16097` and says the rerun and the issue's closing come after merge. Remove the closing
  link, including any Development-sidebar link, so merging does not close #16097 while AC5 is still
  open. Keep only the `Refs: #16097` line and say which part this PR delivers.
- plugins/toolchain/reference/resolution-ladder.md:123: this rule change does not deliver AC5's
  final clause, "every unattended case's verdict is pass in the compare record".
  ck-unattended-inferred-runs has not passed with the new rule. As a closing PR it needs that
  evidence; otherwise it should be relinked as a partial (`Refs:`) delivery.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. and removed pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. labels Nov 20, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit f67ad7e Nov 20, 2026
95 checks passed
@kyle-sexton
kyle-sexton deleted the fix-16097-tracked-lockfiles branch November 20, 2026 21:42
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant