fix(ai-moderator): stop false cache-miss alarms when spam-log.json is absent#28610
Merged
fix(ai-moderator): stop false cache-miss alarms when spam-log.json is absent#28610
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/4ba16a8e-9ce2-4d25-b765-e27ea1fec306 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…in AI Moderator Agent-Logs-Url: https://github.com/github/gh-aw/sessions/4ba16a8e-9ce2-4d25-b765-e27ea1fec306 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix AI Moderator workflow cache miss issue
fix(ai-moderator): stop false cache-miss alarms when spam-log.json is absent
Apr 26, 2026
Closed
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the AI Moderator workflow instructions to treat a missing spam-log.json as a normal cache-expiry condition (avoiding repeated “Cache Configuration Problem” warnings), and refreshes embedded action pin metadata.
Changes:
- Clarify in
ai-moderator.mdthatspam-log.jsonmay be absent after cache expiry and should be treated as an empty log without callingmissing_data. - Update several pinned GitHub Action versions/SHAs in the embedded
action_pins.json.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/data/action_pins.json |
Refreshes embedded action pin entries (versions/SHAs) used for deterministic workflow compilation. |
.github/workflows/ai-moderator.md |
Adjusts spam-log read guidance to avoid false cache-miss alarms when the cache has expired. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Comment on lines
+86
to
90
| "actions/setup-node@v6.4.0": { | ||
| "repo": "actions/setup-node", | ||
| "version": "v6.3.0", | ||
| "sha": "53b83947a5a98c8d113130e565377fae1a50d02f" | ||
| "version": "v6.4.0", | ||
| "sha": "48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" | ||
| }, |
There was a problem hiding this comment.
The PR description lists only the ai-moderator.md wording change, but this file also updates several pinned action versions/SHAs (and removes a pin). Please confirm these pin updates are intentional and either mention them explicitly in the PR description or split them into a separate PR to keep the change focused.
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.
The AI Moderator was triggering "Cache Configuration Problem" warnings on every run after cache expiry. The system-level
cache_memory_prompt.mdinstructs agents to callmissing_data(reason: cache_memory_miss)when expected cache data is absent, but a missingspam-log.jsonis entirely normal — the cache hasretention-days: 1and the file won't exist on first run or after daily expiry.Changes
ai-moderator.md: Sharpens the spam-log reading instruction to explicitly say the file may be absent due to cache expiry (not just "first run") and to proceed with an empty array without callingmissing_data.The lock file was recompiled after the change.