Repository navigation
Make docs agent workflows autonomous - #137
Merged
Merged
Conversation
Every APM-importing reusable workflow in this repo currently caches its
skill bundle under the constant key `apm-copilot-` when called from
elastic/docs-content. The cache key formula
`apm-${engine}-${hashFiles('.github/workflows/*.lock.yml')}` is evaluated
in the caller's workspace, which has no lock files — so the hash segment
is empty for every workflow.
While only docs-review used APM this was benign. Once the sweeps landed
(#123-#125), every additional workflow with a different `packages:` list
started overwriting the same cache slot. The next workflow to run hit
the previous one's bundle and got `Skill not found` for the skills it
actually imports — with the agent ultimately falling back to manual
analysis ("All skills are unavailable. I'll review the changes using my
own judgment now.").
Workaround: align every APM-importing workflow's `packages:` to the
union of all skills used across the repo, so all five workflows pack
the same bundle and cache collisions are no-ops. Adds a small per-run
download cost (each workflow pulls all seven skills, uses one or two)
but restores correctness.
Filed upstream as github/gh-aw#30365 — when fixed there, we can revert
each workflow's `packages:` back to its minimum set.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Embed the docs review and sweep rules directly in the agent prompts so the workflows no longer depend on runtime Elastic Docs Skills, while keeping Elastic docs MCP as the bounded source for published-doc verification. Co-authored-by: OpenAI GPT-5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
Add deterministic Vale output to the docs-review workflow so style findings are grounded in elastic/vale-rules instead of runtime skills or model-only judgment. Co-authored-by: OpenAI GPT-5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
Embed the high-value style, jargon, frontmatter, content-type, applies_to, and page-opening guidance from Elastic Docs Skills into the autonomous workflow prompts while keeping Vale and MCP as evidence sources. Co-authored-by: OpenAI GPT-5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
Resolve workflow conflicts by keeping the autonomous prompt imports and regenerating gh-aw lock files against the current main branch. Co-authored-by: OpenAI GPT-5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
3 tasks
theletterf
added a commit
that referenced
this pull request
May 8, 2026
When the docs-review workflow is triggered by an issue_comment event (which is how the PR-menu /docs-review slash command fires), gh-aw's submit_pull_request_review handler cannot resolve the PR — its resolveTarget path treats only pull_request* events as PR context, so body-only reviews silently drop with "No review context available". The handler for create_pull_request_review_comment, by contrast, reads context.payload.issue.pull_request and works fine on the same trigger. Before #137 the agent always emitted at least one inline comment via the docs skills, which set the review context as a side effect. The autonomous Vale-only flow now produces zero inline comments on clean PRs, exposing the latent gh-aw asymmetry. Tracked upstream at github/gh-aw#30964. Switch the no-findings path to add_comment, which correctly handles issue_comment payloads, so the summary always posts. submit_pull_request_review remains the path when there are inline review comments to attach. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
theletterf
added a commit
that referenced
this pull request
May 8, 2026
* Post docs-review summary as PR comment when no inline findings When the docs-review workflow is triggered by an issue_comment event (which is how the PR-menu /docs-review slash command fires), gh-aw's submit_pull_request_review handler cannot resolve the PR — its resolveTarget path treats only pull_request* events as PR context, so body-only reviews silently drop with "No review context available". The handler for create_pull_request_review_comment, by contrast, reads context.payload.issue.pull_request and works fine on the same trigger. Before #137 the agent always emitted at least one inline comment via the docs skills, which set the review context as a side effect. The autonomous Vale-only flow now produces zero inline comments on clean PRs, exposing the latent gh-aw asymmetry. Tracked upstream at github/gh-aw#30964. Switch the no-findings path to add_comment, which correctly handles issue_comment payloads, so the summary always posts. submit_pull_request_review remains the path when there are inline review comments to attach. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * Clarify docs-review scope and suggestion handling. Document repo-wide markdown review for repos like docs-content, keep Vale advisory instead of review-gating, and drop the obsolete gh-aw suggestion-block workaround for escaped curly braces. Co-authored-by: GPT-5.4 <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Co-authored-by: GPT-5.4 <[email protected]> Co-authored-by: Cursor <[email protected]>
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
elastic/vale-rules, and keep bounded Elastic docs MCP use for published-doc verification.Test plan
make compile.make lint.