Repository navigation
Run Vale + elastic/vale-rules directly in style sweep - #135
Merged
Merged
Conversation
Drops the docs-check-style skill in favor of running Vale against the slice in a deterministic pre-step. The agent's job is now to format vale.json findings into the structured YAML schema and apply category mapping — no skill invocation involved. This matches the typos sweep pattern (deterministic codespell pre-step, agent formats findings) and avoids the failure mode where the skill runs inside the agent container without Vale on PATH. Co-Authored-By: Claude Opus 4.7 (1M context) <[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
docs-check-styleskill invocation with a deterministic pre-step that downloads Vale 3.12.0 and cloneselastic/vale-rules, then runsvale --output JSONagainst the in-scope slice.vale.jsoninto the structured YAML schema (category mapping, sort, cap) instead of running anything itself.gh-aw-docs-typos-sweep(deterministic codespell + agent formatter).Why
The skill-driven path was unreliable: the skill invokes Vale via
Shell, but the gh-aw agent container doesn't ship with Vale on PATH and can't write to a place we can install it before the agent starts. Running Vale ourselves in a workflow step (where the runner shell has full disk + network) gives us deterministic, auditable findings and removes the "Skill not found / Vale not found" failure modes seen in recent runs.elastic/vale-rules's.vale.iniresolvesStylesPath = stylesrelative to the config's directory, so the stepcds into the cloned rules repo before invoking vale.Test plan
make compileproduces 0 errors / 0 warnings (done locally).gh-aw-docs-style-sweepagainstelastic/docs-contentwith a smalltarget-batch-size, and verify a fix-issue is opened with Vale-derived findings (Check,Match,Line,Messagemapped to category/severity/evidence).noopcleanly when Vale finds nothing in the slice.🤖 Generated with Claude Code