Repository navigation
Follow elastic-docs-skills#153: move skill imports to frontmatter skills: - #354
Conversation
elastic/elastic-docs-skills#153 renames the skill directories whose folder name disagreed with their frontmatter name. APM package paths are directory paths, so these two workflows have to follow. These references carry no @ref and resolve from the catalog's default branch at runtime, so they cannot be pinned ahead of the rename — gh-aw passes the dependency list straight to apm-action with no lockfile. The mitigation is ordering, not pinning: merge the rename first, then this. A stale path fails loudly rather than silently degrading the review: the agent job needs the apm job, and the bundle guard exits 1 when no bundle is produced. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
elastic/elastic-docs-skills#153 renamed the skill directories whose folder disagreed with their frontmatter name. APM package references are directory paths, so five workflows pointed at directories that no longer exist. Renaming the paths in place would have fixed the instance and left the class: APM package refs carry no @ref, gh-aw passes them to apm-action without a lockfile, and they resolve from the catalog default branch on every run. That is what made this breakage possible and silent to review. The frontmatter skills: key is resolved at compile time and pinned into actions-lock.json, so a future catalog rename cannot reach these workflows until someone recompiles deliberately. All five skills now pin to 4d8ad27, the rename commit. Removing the APM import also drops the apm job and the apm-action dependency from these workflows. apm-action remains in the repo for gh-aw-docs-review, which #352 converts separately. Security review: this compilation removes the microsoft/apm-action dependency from the affected workflows and adds no new actions, secrets, or network destinations. The only additions to actions-lock.json are five SHA-pinned skill paths in elastic/elastic-docs-skills, a repository these workflows already consumed unpinned. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
There was a problem hiding this comment.
No blocking issues found in this change.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
# Conflicts: # .github/workflows/docs-agent-experimental.lock.yml # .github/workflows/gh-aw-docs-applies-to-sweep.lock.yml # .github/workflows/gh-aw-docs-frontmatter-sweep.lock.yml # .github/workflows/gh-aw-docs-openings-sweep.lock.yml # .github/workflows/gh-aw-docs-style-sweep.lock.yml
.github/aw/logs/run-30910942575 is local agent-run output that was untracked in the working tree and is not on main. A broad git add during the merge resolution swept it in. Removed from the index; the files stay on disk. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
There was a problem hiding this comment.
Requesting changes due to one blocking workflow-resolution issue in the inline comment.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
| jobs: | ||
| run-docs-review: | ||
| name: Test docs review (branch) | ||
| uses: elastic/docs-actions/.github/workflows/gh-aw-docs-review.lock.yml@scope-quality-and-docs-impact |
There was a problem hiding this comment.
[HIGH] Reusable workflow ref currently cannot resolve
uses: elastic/docs-actions/.github/workflows/gh-aw-docs-review.lock.yml@scope-quality-and-docs-impact points to a branch ref that is not present on this repository, so manual dispatches of this test workflow will fail before jobs start when Actions cannot resolve the called workflow revision.
Please pin this to an existing ref (ideally a commit SHA, or at least an existing branch/tag).
Summary
elastic/elastic-docs-skills#153 renamed the 13 skill directories whose folder name disagreed with their frontmatter
name. Skill references are directory paths, so this repo had to follow — and the blast radius was wider than the two workflows I first identified.Six workflows referenced renamed directories. Five imported skills through APM; the sixth is
gh-aw-docs-review, which #352 had just moved to the frontmatterskills:key but still using the old paths.docs-agent-experimentalskills:, 4 pinnedgh-aw-docs-applies-to-sweepskills:, 1 pinnedgh-aw-docs-frontmatter-sweepskills:, 2 pinnedgh-aw-docs-openings-sweepskills:, 4 pinnedgh-aw-docs-style-sweepskills:, 2 pinnedgh-aw-docs-reviewskills:with old pathsreview-criteria.mdimport updatedWhy convert rather than rename in place
Renaming the paths would have fixed the instance and left the class. APM package references carry no
@ref, and gh-aw passes them straight toapm-actionwith no lockfile, so they resolve from the catalog's default branch on every run. That is precisely what let a rename in another repository break five workflows silently, with nothing in this repo to review.The frontmatter
skills:key resolves at compile time and records the SHA inactions-lock.json. All nine distinct skills now pin to4d8ad27, the rename commit, so the next catalog rename cannot reach these workflows until someone recompiles deliberately.Things worth a reviewer's attention
gh-aw-docs-reviewneeded more than a path change. Its prompt invoked skills by directory name — correct before the rename, wrong after. Now that each directory matches its frontmatter name, both collapse to one name, so the "Invoke as / Skill" table became two identical columns and is now a single column. Theimports:entry forreview-criteria.mdalso moved withreview-pr→docs-review-pr; the compiler caught that one, which is the only reason I found it.Security review. This compilation removes the
microsoft/apm-actiondependency from the five converted workflows and adds no new actions, secrets, or network destinations.apm-actionremains in the repo where other workflows still use it. The only additions toactions-lock.jsonare SHA-pinned skill paths inelastic/elastic-docs-skills, a repository these workflows already consumed — previously unpinned.Verified
gh aw compileacross all 13 workflows, 0 warnings4d8ad27skills:is supported on the copilot engine: the compiler emitsGH_AW_GH_SKILL_AGENT_NAME: "github-copilot"withGH_AW_SKILL_DIR: ".github/skills"Not verified
The
skills:mechanism is proven at runtime under the claude engine only (four sandbox runs on docs-review). These six are copilot, so the install path is compile-verified but not run-verified. A skill that fails to install is loud rather than silent —agentdeclaresneeds: activationand the install failure count gates the run — but a first real run is still worth watching.🤖 Generated with Claude Code
https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
Related to #402