Pattern miner: Add backlog-drip archetype for the All You Can Eat scheduling pattern - #297
Draft
github-actions[bot] wants to merge 1 commit into
Draft
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Mined from githubnext/agentics workflows/issue-monster.md (skip-if-match on open PR/issue, every-30m schedule, one item served at a time) and github/gh-aw .github/aw/workflow-patterns.md, which documents this as the named "All You Can Eat Pattern" with a full recommended shape and a learn-from-the-closed-output guidance section. The existing library had no archetype for this recurring shape: a schedule-triggered workflow that self-throttles to at most one open, unconsumed item and reads closed-item feedback to avoid re-proposing rejected ideas. It is distinct from community-digest (periodic report tied to a time window) and from the generic skip-if-match tip already present elsewhere in the library. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
.github/copilot-instructions.mdMined upstream sources for recurring workflow shapes not yet captured in the pattern library.
Upstream evidence
githubnext-agentics/files/workflows/issue-monster.md— scheduleevery 30m,skip-if-matchonis:pr is:open is:draft author:app/copilot-swe-agentcombined withskip-if-no-match: "is:issue is:open", serving one assignment at a time from a bounded backlog (issues labeledcookie).github-gh-aw/files/.github/aw/workflow-patterns.md— a dedicated, named section, "All You Can Eat Pattern" (lines 88-134), that documents the exact same shape as a recommended, reusable pattern: a scheduled workflow capped to one unconsumed open item (max: 1+skip-if-match), with an explicit "Shape" YAML example, rules for stable-identity matching and starvation prevention viaexpires, and a "Learn from the closed output" section describing how the agent should read the previous item's close reason/comments to avoid re-proposing rejected work.Two independent upstream demonstrations (one workflow example plus a full documented, named pattern) satisfy the "at least two upstream workflows, or one workflow plus explicit upstream documentation describing it as a recommended pattern" bar from the mining process.
Why the existing library did not already cover it
The current library already has
skip-if-match/skip-if-no-matchas tracked trigger-combo terms and generic dedupe tips scattered across several archetypes (daily-test-improver,code-improvement,performance-nut, etc.), but none of those describe the specific self-throttling "one unconsumed item at a time, learn from how the last one was closed" shape — a schedule that reactivates only once its own last output is consumed, with feedback-driven backlog curation viacache-memory/repo-memory. This is distinct fromcommunity-digest(periodic report tied to a fixed time window, not gated on consumption of the previous output) and from the generic pre-activation "too many open PRs" checks used by several other curated archetypes.What changed in
patterns/patterns/archetypes/backlog-drip.json— a new curated archetype (success_rate: null,count: 0) describing the "All You Can Eat" shape:scheduletrigger,create-issuesafe output/tool, tips coveringmax: 1+skip-if-matchon a stable identity marker,expiresto prevent starvation, and reading closed-item history fromcache-memory/repo-memorybefore proposing the next item."backlog-drip"toarchetypesinpatterns/manifest.json.backlog-dripruntime rendering entry topatterns/workflow-generation.json(icon, capabilities, role-steps-style prompt body with process/constraints)..github/copilot-instructions.mdarchetype counts (30 → 31 user-facing archetypes) and the curated-archetypes list to includebacklog-drip, and updated the matching assertion intest/copilot-instructions.test.js(curated count 21 → 22) so the existing sync test continues to pass.No other files were touched;
metadata,anti_patterns,trigger_combos,research_findings,degraded_workflows, andtop_reposwere left untouched.Validation
npm test— 326 passed, 1 pre-existing failure unrelated to this change (describes the committed pattern-library corpus, not stale scan datafails on baselinemaintoo, because the manifest'sgenerated_atmetadata has drifted past the date hard-coded in.github/copilot-instructions.md; reproduced by stashing this change and re-running the same test).npm run build— succeeds;dist/patterns/archetypes/backlog-drip.jsonis emitted anddist/patterns/manifest.json/dist/patterns/workflow-generation.jsoninclude the new entry.Candidates deliberately left out
agentic-wiki-coder.md/agentic-wiki-writer.md,gollumtrigger +repo-memorywiki backend): only one upstream workflow pair from a single repo demonstrates thegollumtrigger, and no separate upstream doc recommends it as a standalone pattern (thewiki:checkout option andrepo-memorywiki backend are documented as a memory-storage choice, not a workflow archetype) — did not meet the two-workflow/one-workflow-plus-doc bar.archie.md): a single upstream workflow with no corroborating pattern documentation elsewhere.issue-monster.md,duplicate-code-detector.md,large-file-simplifier.mdusingassignees: copilot/assign-to-agent): already implicit in existingcode-health-auditortips ("Assign findings to copilot") and not a distinct enough archetype shape to warrant a new entry.hide-older-commentsonadd-comment: a small safe-output refinement seen across 5 upstream workflows, but it only affects an existing tip's wording on already-covered archetypes (performance-nut,daily-test-improver) and ranked below the "All You Can Eat" pattern for this run's single-archetype budget.