Repository navigation
fix(install): honor CLAUDE_CONFIG_DIR in always-on CLAUDE.md registration (#2694) - #2753
AromalBiju1 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Formal verification. No changes could be formally verified in this run.
Graphify review — findings
This PR modifies the CLAUDE.md registration logic in the install function within graphify/install.py. For the global (non-project) install case, it now checks for a CLAUDE_CONFIG_DIR environment variable and, when set, derives both the CLAUDE.md path and the skill reference path from that directory instead of always using ~/.claude. The project-scoped path and the default home-directory fallback are preserved, with the branching refactored from an inline conditional into an if/elif/else block.
No blocking issues surfaced. 2 lower-confidence candidates did not survive cross-model review.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 365 functions depend on the 139 functions this change touches.
Health — grade B; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):
dispatch_command()— 2 callers, 117 callees (high)codebuddy_install()— 20 callers, 5 callees (high)claude_install()— 19 callers, 4 callees (high)gemini_install()— 10 callers, 7 callees (high)claude_uninstall()— 17 callers, 4 callees (high)_project_uninstall()— 5 callers, 13 callees (high)dispatch_install_cli()— 2 callers, 31 callees (high)codebuddy_uninstall()— 14 callers, 4 callees (high)- …and 2 more
Verification — 365 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 241 function(s) in the blast radius were not formally verified this run
Formal verification
Could not verify: Could not verify install.
The verifier did not have enough to check install, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly SystemExit — names the real obstacle, not a sampling gap)
|
Landed in v0.9.44, just published to PyPI, cherry-picked onto |
…talled (#2694) install() called _refresh_all_version_stamps(), which stamped every installed platform's .graphify_version with the current version WITHOUT rewriting that platform's skill content — so a genuinely stale platform was stamped current and its staleness warning was suppressed. Removes that bogus refresh; each platform's stamp now advances only when its own content is (re)written via _copy_skill_file, so a not-reinstalled stale platform correctly still warns. Completes #2694 (part 1 shipped in 0.9.44 via #2753). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Fixes #2694
The always-on CLAUDE.md registration path resolved
Path.home()unconditionally,ignoring CLAUDE_CONFIG_DIR — the same issue #527 fixed for the skill-copy path,
but that fix didn't cover this always-on registration path (as noted by @yotamleo
in the issue).
This mirrors the existing CLAUDE_CONFIG_DIR check from
_platform_skill_destinationinto the CLAUDE.md registration block.Tested locally on all three scopes:
--project→ writes to project-local.claude/CLAUDE.md, ignores CLAUDE_CONFIG_DIR (unchanged)CLAUDE_CONFIG_DIRset → now correctly writes to$CLAUDE_CONFIG_DIR/CLAUDE.md~/.claude/CLAUDE.mdFull test suite: 289 passed, 1 unrelated pre-existing failure (missing
builddev dependency in local env, unrelated to this change).