Pattern miner: Add pre-activation PR-cap tip to link-checker, linter-applier, dependency-monitor - #292
Merged
pelikhan merged 1 commit intoSep 23, 2026
Conversation
…ency-monitor Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
pelikhan
marked this pull request as ready for review
September 23, 2026 11:57
pelikhan
deleted the
pattern-mining/pre-activation-pr-cap-refinement-f42f8f1c9bd5281a
branch
September 23, 2026 11:57
Contributor
Author
There was a problem hiding this comment.
Reviewer kind: auto → data-integrity review (JSON-only pattern-library change; no TS/UI surface touched by either persona).
Reviewed the diff: three tips array appends across patterns/archetypes/{dependency-monitor,link-checker,linter-applier}.json, using the exact tip string already present verbatim on code-improvement, daily-test-improver, documentation-updater, and performance-nut. Verified:
- All three JSON files remain valid and parse correctly.
- No duplicate tips introduced within any file.
- No changes to
success_rate,count,metadata,anti_patterns,trigger_combos, orpatterns/manifest.json/workflow-generation.json, consistent with a tips-only refinement for archetypes with measured data (dependency-monitor). - PR description's claim that 4 other archetypes already carry this tip checks out.
No blocking issues found. Small, well-scoped, low-risk data refinement.
Generated by Specialist PR Review for #292 · copilot · auto · 17.2 AIC · ⌖ 4.85 AIC · ⊞ 6.8K
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.
Upstream evidence
Mined
githubnext-agenticsandgithub-gh-aw(declared indata/import-sources.json) at/tmp/gh-aw/data/upstream/.Recurring shape: a
pre_activationgate that counts currently-open PRs (or issues) matching this workflow's title-prefix and skips the scheduled run once a cap is reached, to avoid spamming maintainers with too many open items from one automation.11 upstream
githubnext-agenticsworkflows demonstrate this shape with the identicalMAX_OPEN_PRScheck-step pattern:workflows/agentic-wiki-coder.md,workflows/ci-coach.md,workflows/doc-updater.md,workflows/efficiency-improver.md,workflows/glossary-maintainer.md,workflows/issue-monster.md,workflows/perf-improver.md,workflows/repo-assist.md,workflows/tech-content-editorial-board.md,workflows/test-improver.md,workflows/unbloat-docs.mdIt is also documented explicitly in upstream docs as a first-class recommended pattern:
github-gh-aw/files/.github/aw/workflow-patterns.md— "All You Can Eat Pattern" section: "Skipped runs are cheap. The check runs in thepre_activationjob, so the agent never starts and no tokens are spent on a skipped tick." It also describes theskip-if-matchcap shape (max: 1/max: N) for both issues and pull requests.Why the existing library did not already cover this for these archetypes
The wizard's pattern library already carries this exact tip verbatim on
code-improvement,documentation-updater,daily-test-improver, andperformance-nut("Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers"), confirming it is a known, valued tip. However it was missing from three other curated/measured archetypes that share the identical schedule → create-pull-request (or create-issue/create-pull-request) shape and are equally exposed to the same PR/issue pile-up risk:link-checker(schedule → pull-requests)linter-applier(schedule → pull-requests)dependency-monitor(schedule → issues, pull-requests)What changed
Refinement only — appended the existing tip string to the
tipsarray of:patterns/archetypes/link-checker.jsonpatterns/archetypes/linter-applier.jsonpatterns/archetypes/dependency-monitor.jsonNo changes to
metadata,success_rate,count,top_repos,anti_patterns,trigger_combos,research_findings,degraded_workflows,recommended_triggers,recommended_safe_outputs,recommended_tools, orpatterns/manifest.json/patterns/workflow-generation.json, per the change rules for a tips-only refinement.dependency-monitorhas a measuredsuccess_rate/count, so only itstipsarray was touched, consistent with the rule to leave measured metadata untouched.Validation
npm test: 326/327 tests pass. The one failing test (test/copilot-instructions.test.js) asserts the committed.github/copilot-instructions.md"generated on" date matchesmanifest.metadata.generated_at; it fails identically onmainbefore this change (verified withgit stash), so it is pre-existing and unrelated to this diff.npm run build: succeeds, all three edited archetype JSON files build intodist/patterns/archetypes/.Candidates deliberately left out
wiki-syncarchetype (gollum-triggered wiki↔code sync, seen inagentic-wiki-coder.md/agentic-wiki-writer.md): only 2 upstream examples and no corroborating "recommended pattern" documentation beyond the generalmemory.mdwiki-backend note — did not meet the two-source-plus-doc-or-two-source bar strongly enough to justify a new archetype in this run, andgollumtrigger has no existing wizard trigger-rendering support to extend safely within scope.weekly-issue-activity.md,repo-chronicle.md,weekly-research.mdusingcreate-discussion+close-older-discussions): already fully covered by the existingcommunity-digestarchetype and its tips.code-health-auditor,link-checker, and others (skip-if-match,expires, close-older variants); adding more would duplicate existing guidance rather than fill a gap.