Repository navigation
fix(codebase-health): keep audit config and view lookups inside the session home - #13807
Conversation
…ession home
The audit's user-global layer line let the model spell out a guessed home
directory or Glob for the file, which eval runs denied outside the sandbox.
It now reads the literal ~/.claude/codebase-health.md once. The resolver
command takes "<option>" instead of the ${user_config.medium} token, and the
rendered-views files are never read or audited in any phase.
Refs: #7296
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-review reviewed Code review: PR #13807, incremental (since 1f7c118), no findingsScope: I read every hunk of the 8 files changed in this push. Each one is the Review mode: this lane already reviewed an earlier head ( Citation check: I checked every new line citation against
The unchanged citations also still hold: L46-51 (read-only default and Other checks:
|
|
claude-security-review reviewed Security review: PR #13807, incremental since
|
…KILL.md lines Main inserted a 9-line paragraph after SKILL.md line 239; each cited line past it moved down 9. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #7296
Summary
/codebase-health:auditdrew out-of-sandbox lookups in eval runs (cutoff rows c48hr, c48hrb, c48hwe): the model wrote the user-global config path with a guessed home directory, or Globbed the home tree for it. Read-only cases audit-cost-gate, audit-unscoped-cost-gate and audit-zero-findings were INVALID twice on that denial.Fix
plugins/codebase-health/skills/audit/SKILL.md, line count unchanged so the cases' line citations hold:~/.claude/codebase-health.md,~kept; never a Glob, a spelled-out home directory or a search of the home tree. A host probe (Claude Code 2.1.319, HOME set to a seeded directory) showed Read of the literal~/...path returned the seeded file, while Glob with a~pattern returned no files, so the old Glob route also missed a real user's file. The layer stays: real users keep their user-global config.--option "<option>", and the prose names${user_config.medium}and says never to put a${user_config.*}string in a shell command, as fix(visualization): keep the medium option placeholder out of the resolver command #13502 did for visualization. This removes the c48hb denial of a command carrying the raw token.no-convention-readin 3 of 3 with-arm runs because discovery Readdocs/conventions/rendered-views.yaml.The audit-view-* losses (c48hbb) were not caused by the token: all 6 with-arm runs passed
--option "", and every resolver call failed becausenoderesolved to a mise shim that refused its untrusted config. The before/after runs put a real node on the eval PATH on both sides.Verification
validate-cases.py plugins/codebase-health: 0 FAIL.scripts/check-changelog-fragments.sh --check: pass. Pre-pushcheck-affected: pass.origin/main999b26c (no codebase-health change since base); after = head a9811f8. Scores are with-arm / without-arm. Both arms ran with a real node 24.21.0 and jq 1.8.2 first on PATH, because the mise node shim refuses its config under the eval HOME.Read ~/.claude/codebase-health.md. cost-gate 1/0.67/1 vs 0.67x3; unscoped-cost-gate 1/1/0.75 vs 0.5x3; zero-findings 1x3 vs 0.5x3.${user_config.medium}token in the resolver call. After VALID: retired 0.8x3 vs 0.6x3; team 0.75/1/1 vs 0.5x3.Globfor the home config in audit-fix-delegates, so the pair is read on the other 4 cases and audit-fix-delegates is reported alone. After VALID on the one allowed re-run; the first after run was INVALID on one plugin-tree Glob in settings-schema-routes-out (1 of 3 runs), a call this PR did not add. boundary-uncovered 1x3 vs 0.83x3; infers-and-offers-setup 1x3 vs 0.5x3; review-only-stops 1x3 vs 0.875x3; settings-schema-routes-out 1/0.86/1 vs 0.71x3; fix-delegates 0.75/0.875/0.625 vs 0.5/0.375/0.5. On the 4 shared cases, no after score is below the before side.Remaining on #7296
auditneeds a VALID run on both arms for every case after this merges.Related
🤖 Generated with Claude Code