Repository navigation
fix(ci): trigger check-doc-sync on changes to the skill-evals tree - #1302
Merged
Merged
Conversation
check-doc-sync validates, among other things, each eval family's case and suite counts in tools/skill-evals/evals/<family>/README.md and the family line in tools/skill-evals/README.md. Its files: gate did not include that tree, so adding or removing an eval case could not fire the check that guards its count. The gate covered the SKILL.md files but not the eval READMEs, which is why this survives a normal dev loop: editing a skill and its evals in one change runs the hook while the counts are still consistent, and the follow-up run that touches only eval files skips it. CI runs --all-files and fails instead. Observed on apache#1299: a run scoped to the newly added eval fixture skipped the hook locally, and CI reported "family 'pr-management-code-review' says 117 cases across 27 suites, disk has 118 across 27". Adds tools/skill-evals/.* to the gate. Verified by introducing a count mismatch and running prek against only tools/skill-evals/README.md: the hook now fires and reports the drift, where before it was not selected. Preferred over always_run: true, which would fix it as well but adds ~6s to every prek invocation, and no hook in this config currently uses it. Generated-by: Claude Opus 5
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
check-doc-syncvalidates, among other things, each eval family's case and suite counts intools/skill-evals/evals/<family>/README.mdand the family line intools/skill-evals/README.md. Itsfiles:gate did not include that tree, so adding or removing an eval case could not fire the check that guards its count.SKILL.mdfiles but not the eval READMEs, which is why this survives a normal dev loop: editing a skill and its evals in one change runs the hook while the counts are still consistent, and the follow-up run that touches only eval files skips it. CI runs--all-filesand fails instead.tools/skill-evals/.*to the gate.Observed on #1299: a
prek run --files <new eval fixture>skipped the hook locally, and CI then reportedfamily 'pr-management-code-review' says 117 cases across 27 suites, disk has 118 across 27.Type of change
prek, workflows, validators)Test plan
prek run --all-filespasses (32 hooks, 0 failures)Negative test. Introduced a deliberate count mismatch in
tools/skill-evals/README.mdand ranprek run --files tools/skill-evals/README.md. With this change the hook is selected and fails with the drift message; before it, that path did not match the gate and the hook was never run:Verified the widened pattern matches every path the hook actually reads (
tools/skill-evals/README.md, the per-family READMEs, and the eval case files), and still matches the paths it matched before.Alternative considered
always_run: truewould also fix it, and is more robust against a future path the gate forgets. It was not taken:tools/dev/check-doc-sync.pytakes ~6.2s, that cost would land on everyprekinvocation, and no hook in this config currently usesalways_run. Widening the gate keeps the repo's existing convention and costs nothing when the eval tree is untouched. Happy to switch if maintainers prefer the stronger guarantee.RFC-AI-0004 compliance
Change and prose authored with AI assistance;
Generated-by:trailer on the commit, noCo-Authored-By:.