From ae0347292d2c69dd2d351582b5c13c0d7b3aa9a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2026 03:56:22 +0000 Subject: [PATCH] Add cache-memory rotation tip for multi-category scan archetypes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- patterns/archetypes/code-health-auditor.json | 3 ++- patterns/archetypes/code-improvement.json | 3 ++- patterns/archetypes/performance-nut.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/patterns/archetypes/code-health-auditor.json b/patterns/archetypes/code-health-auditor.json index 11e5b46..24972ba 100644 --- a/patterns/archetypes/code-health-auditor.json +++ b/patterns/archetypes/code-health-auditor.json @@ -27,7 +27,8 @@ "Scope each run to one structural dimension (file size, duplication, complexity) rather than a broad audit", "Use tracker-id and skip-if-match so a scheduled run doesn't reopen the same finding every day", "Set expires on the created issue or pull request so stale findings don't accumulate", - "Assign findings to copilot so remediation can be picked up automatically" + "Assign findings to copilot so remediation can be picked up automatically", + "Persist the history of previously-audited structural dimensions in cache-memory and weight selection toward ones not covered in recent runs, so scheduled runs rotate through file size, duplication, and complexity instead of repeating the same dimension" ], "anti_patterns": [] } diff --git a/patterns/archetypes/code-improvement.json b/patterns/archetypes/code-improvement.json index 3356f40..db34308 100644 --- a/patterns/archetypes/code-improvement.json +++ b/patterns/archetypes/code-improvement.json @@ -58,7 +58,8 @@ "Scope each run to one narrow, well-defined improvement (a single failing check or a named category of fix) rather than an open-ended \"fix anything broken\" mandate \u2014 broad, unscoped code-improvement workflows have the lowest observed success rates", "Use explicit DO NOT constraints to keep changes scoped to the requested improvement", "Use protected-files: fallback-to-issue for manifests, CI configuration, and agent instructions", - "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers" + "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers", + "When rotating across several improvement categories (e.g. code quality, testing, docs, performance), persist the history of previously-selected categories in cache-memory and weight selection toward ones not covered in recent runs, so scheduled runs don't repeatedly re-select the same category" ], "anti_patterns": [ "ci-coach", diff --git a/patterns/archetypes/performance-nut.json b/patterns/archetypes/performance-nut.json index cd932f0..5b344cb 100644 --- a/patterns/archetypes/performance-nut.json +++ b/patterns/archetypes/performance-nut.json @@ -28,7 +28,8 @@ "Make one focused change and compare before-and-after results", "Do not trade correctness or maintainability for speculative speedups", "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers", - "Constrain create-pull-request with allowed-files scoped to the changed source files, and set protected-files: fallback-to-issue for manifests, CI config, or agent instruction files" + "Constrain create-pull-request with allowed-files scoped to the changed source files, and set protected-files: fallback-to-issue for manifests, CI config, or agent instruction files", + "When scanning multiple bottleneck categories (e.g. code-level, data, network/I-O), persist previously-selected categories in cache-memory and weight toward ones not covered in recent runs so a scheduled cadence explores the full space over time" ], "anti_patterns": [] }