docs: replace hardcoded runner paths with repo-relative paths in prompts - #1693
Draft
github-actions[bot] wants to merge 1 commit into
Draft
docs: replace hardcoded runner paths with repo-relative paths in prompts#1693github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
All three workflow-authoring prompts referenced prompt-contract.md and doc pages using absolute paths tied to the GitHub Actions runner workspace (/home/runner/work/ado-aw/ado-aw/...). These paths break for any agent consuming the prompts via the published GitHub raw URLs in a consumer repository. Switch to repo-relative paths (e.g. `prompts/prompt-contract.md`, `docs/front-matter.md`) which work in any clone of the repository and serve as stable references for agents looking up files via GitHub API. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
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.
Agent Documentation Update
Findings
/home/runner/work/ado-aw/ado-aw/...). These paths break for any agent consuming the prompts via the published GitHub raw URLs in a consumer repository.prompts/create-ado-agentic-workflow.md,prompts/update-ado-agentic-workflow.md,prompts/debug-ado-agentic-workflow.mdApplied Fixes
Apply /home/runner/work/ado-aw/ado-aw/prompts/prompt-contract.md→Apply prompts/prompt-contract.mdin all three prompts/home/runner/work/ado-aw/ado-aw/docs/...reference entries with repo-relativedocs/...paths in all three promptsNotes
The SKILL.md template (both
src/data/init-skill.mdandagency/plugins/ado-aw/skills/*/SKILL.md) instruct agents to fetch these prompts from versioned GitHub raw URLs. Once fetched, a consumer agent has no access to/home/runner/work/ado-aw/ado-aw/paths. Repo-relative paths (prompts/prompt-contract.md,docs/front-matter.md, etc.) work in any clone of the repository and serve as stable references for agents looking up files via GitHub API.Verified:
grep -rn "home/runner" prompts/returns no matches after this change.Created by the agent-documentation maintainer workflow.