fix(claude): inventory designated config workspaces - #50
Merged
Conversation
Treat a selected Claude config root as project-authorized evidence while keeping adjacent state and escaping Plugin roots outside the default boundary. Implements #42 using docs/specs/2026-08-01-42-claude-config-root-asset-inventory.md. Validated with npm test (1095/1095) and npm run pack:verify. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
phodal
marked this pull request as ready for review
August 1, 2026 14:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/.claudepath--include-user-homeRoot cause
The Claude provider always resolved project assets from
<workspace>/.claude/*and gated<claudeHome>/*behind user-home authority. When the selected workspace was the Claude config root itself, both rules applied in the wrong direction: project discovery looked one directory too deep while the real root assets were suppressed.Impact
Agent Customize now reports the assets physically contained by an explicitly selected Claude config workspace. The public authority remains
scope.includeUserHome: false, and ordinary project workspaces retain their existing<workspace>/.claude/*behavior.Validation
node --test test/agent-customize.test.mjs test/agent-asset-baseline.test.mjs test/agent-lint.test.mjs test/better-harness-evidence-bundle.test.mjs— 87/87node --test test/doc-link-graph.test.mjs— 6/6npm test— 1095/1095npm run pack:verify— 382 npm entries, 405 runtime ZIP entriesRisk boundaries
Regression fixtures cover an adjacent state file, an external Plugin root, a symlink-escaping Plugin root, a canonical workspace alias, and the normal Claude project layout.
Fixes #42