Closed
[WIP] Fix hardcoded workspace-root paths in AI artifacts#745
Conversation
Contributor
Copilot stopped work on behalf of
katriendg due to an error
February 23, 2026 12:53
Contributor
|
Not fixed, closing |
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.
Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.
Original prompt
This section details on the original issue you should resolve
<issue_title>fix: Distributed AI artifacts reference hardcoded workspace-root paths that break in extension and peer-clone installs</issue_title>
<issue_description>## Summary
Multiple AI artifacts (agents, instructions, prompts) contain hardcoded workspace-root-relative paths in their prose body text — paths like
.github/instructions/design-thinking/dt-coaching-identity.instructions.md. These paths assume the hve-core repository IS the workspace root.When artifacts are loaded from a VS Code extension install path (
~/.vscode-server-insiders/data/User/globalStorage/ise-hve-essentials.hve-core/.github/...), a peer clone (../hve-core/.github/...), or any non-workspace-root installation, the AI follows these literal paths and fails to find the referenced files. Thehve-core-location.instructions.mdfallback guidance exists but is not reliably followed by the AI when a literal path is present.Note:
docs/templates/are correctly packaged in the VSIX extension. References to those files using file-relative paths (e.g.,../../docs/templates/brd-template.md) resolve correctly and do not need changes (both in extension packaging and plugin folder distribution).Problem
Artifacts instruct the AI to read or reference files using paths anchored at the workspace root:
When installed via extension, the file's actual disk location is something like:
The AI resolves
.github/instructions/...relative to the workspace root, not to the artifact's location on disk, so the file is not found.Affected Files
These files contain workspace-root-anchored paths in prose (e.g.,
.github/instructions/...) rather than file-relative paths. Files using correct relative paths like../../docs/templates/...or../../instructions/...are not affected..github/agents/design-thinking/dt-coach.agent.md.github/instructions/design-thinking/dt-*.instructions.md.github/agents/hve-core/doc-ops.agent.md.github/instructions/hve-core/*.instructions.md.github/agents/hve-core/rpi-agent.agent.md.github/copilot-instructions.md,.github/instructions/,.github/agents/**/researcher-subagent.agent.md.github/instructions/hve-core/prompt-builder.instructions.md.github/agents/,.github/skills/structure references.github/instructions/hve-core/commit-message.instructions.md.github/agents/,.github/prompts/, etc. as scope prefixes.github/instructions/github/community-interaction.instructions.mdCONTRIBUTING.md,GOVERNANCE.md,CODE_OF_CONDUCT.mdvia../../../.github/copilot-instructions.md.github/structure references in Project Structure sectionProposed Solution
Replace prose paths with
#file:directives. VS Code resolves#file:relative to the file's disk location, so the reference works regardless of installation method. Convert:Related Issues
.copilot-trackingfiles produce broken relative paths (symptom-level sibling)#file:directives and markdown links after collection directory reorg (related path fixes)Acceptance Criteria
.github/path in prose text where the AI is expected to resolve it as a file referencehve-core-location.instructions.mdis evaluated for strengthening or replacement</issue_description><agent_instructions>Implement the changes, ensure to run a validation step where you verify all updated links are resolvable by relative (up the tree) paths.
DO NOT update anything in
.github/instructions/github/community-interaction.instructions.mdfile - we will add a note to the issue on separate discussion for this one.</agent_instructions>Comments on the Issue (you are @copilot in this section)
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.