Skip to content

fix(ci): trigger check-doc-sync on changes to the skill-evals tree - #1302

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-doc-sync-gate-eval-tree
Sep 20, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-doc-sync-gate-eval-tree

Conversation

@potiuk

@potiuk potiuk commented Sep 20, 2026

Copy link
Copy Markdown
Member

Summary

  • 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.
  • Adds tools/skill-evals/.* to the gate.

Observed on #1299: a prek run --files <new eval fixture> skipped the hook locally, and CI then reported family 'pr-management-code-review' says 117 cases across 27 suites, disk has 118 across 27.

Type of change

  • CI / dev loop (prek, workflows, validators)

Test plan

  • prek run --all-files passes (32 hooks, 0 failures)

  • Negative test. Introduced a deliberate count mismatch in tools/skill-evals/README.md and ran prek 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:

    check-doc-sync (spec indexes + declared skill counts)....Failed
      tools/skill-evals/README.md: family 'pr-management-code-review' says 999 cases
      across 27 suites, disk has 117 across 27
    
  • 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: true would also fix it, and is more robust against a future path the gate forgets. It was not taken: tools/dev/check-doc-sync.py takes ~6.2s, that cost would land on every prek invocation, and no hook in this config currently uses always_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, no Co-Authored-By:.

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
@potiuk potiuk added family:ci .github workflows, prek, validators capability:fix Implement code change to resolve an issue labels Sep 20, 2026
@potiuk
potiuk merged commit 41cedf5 into apache:main Sep 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:fix Implement code change to resolve an issue family:ci .github workflows, prek, validators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant