Repository navigation
fix(harness-ops): find the session's own CLI binary in inventory - #14042
Conversation
The release lane installs Claude Code outside PATH and the install roots, so its native-drift pass read no binary, reported version unknown and filed an inventory-broken item (#14033 item 11). The inventory now reads the running CLI through CLAUDE_PID first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release lane read 2.1.319 (run 42411723819, 0 PRs); its handoffs are #14033 items 1-10 (PR #14040) and item 11 (this branch). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review: no security issues foundcritical-findings: 0 I read every hunk of all 5 changed files. None of them matches a trusted-path glob, and no trust control, merge hold, plugin manifest or standing instruction changed. What I checked
The PR description and closing issue contain no embedded directives aimed at this review lane. |
|
claude-review reviewed Code review: no findingsI read every hunk in all 5 changed files: the changelog fragment,
Closing issue #14033, "Done when"
Path-scoped rules
Not checked by me: the test run (321 OK), the lane-like lookup output and the No embedded instructions were found in the PR context or prior-findings files. No plugin manifest changes, so there are no manifest lines. |
Closes #14033
Siblings: #14040
Delivers #14033 item 11 and the done-when's marker item; #14040 delivered items 1-10.
Summary
Item 11 of #14033: the release lane's native-drift pass read no Claude Code binary, so it reported version
unknownand filednative-drift:inventory-broken:unknown:inventory. Items 1-10 are in #14040. This PR also moves the changelog marker indocs/upstream/claude-code.mdto2.1.319, which closes the release (hub option 1).Fix
inventory.pycandidate_binaries()now tries the session's own CLI first, read from/proc/$CLAUDE_PID/exe. Claude Code setsCLAUDE_PIDin the Bash and hook subprocesses it starts (env-vars). The cause:run-claude-cliinstalls the CLI under$LANE_WORK_DIR/cli/node_modules(ci-workflowslane.cjs:1237-1273), which is outside bothPATHand the install roots the old search checks. An interpreter exe (node,nodejs,bun) is skipped.PATHand the install roots stay as fallbacks.bwrap --dev-bind / /with no PID namespace (lane.cjs:782-795), so the parent's/procentry is visible to its Bash child.docs/upstream/claude-code.md: marker set to2.1.319(published 2026-11-06), read by the release lane in run 42411723819.Verification
python3 test_inventory.py: 321 tests OK, including 2 newTestCandidateBinariescases.Lane-like lookup, with
PATH=/usr/bin:/binand an emptyHOME:CLAUDE_PID:BROKEN: no claude executable found on PATH or in the usual install roots, the CI result;DEGRADED: cli 2.1.319, validated against 2.1.318.changelog-status.shreadslast-applied: 2.1.319from the moved marker.Not live-verified on CI. The next release-lane run is the proof.
Known after this fix: a baseline CI run (CI never advances the previous summary, ci-mode.md:27) still files two items on new keys:
native-drift:inventory-degraded:<version>:inventory: the version is pastVALIDATED_AGAINST, plus the acceptedbuiltin_pluginsfloors;native-drift:unresolved-description:send-to-project:inventory.Both are real extraction states, not a refile of item 11. They are reported to the hub as a separate question.
Related
🤖 Generated with Claude Code