Skip to content

Fix daily firewall report caching stale aggregated data#10492

Merged
Mossaka merged 4 commits into
mainfrom
copilot/fix-firewall-report-issue
Jan 17, 2026
Merged

Fix daily firewall report caching stale aggregated data#10492
Mossaka merged 4 commits into
mainfrom
copilot/fix-firewall-report-issue

Conversation

Copilot AI commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

Daily Firewall Report was showing the same "413 blocked calls" count every day. Step 0 cached "Aggregated blocked domains data" in repo-memory and reused it when no new runs were found, producing deterministic stale statistics.

Changes

  • Removed instruction to cache aggregated statistics (blocked/allowed counts, domain lists)
  • Only cache run IDs to track what's been processed
  • Always re-fetch fresh data from audit tool for accurate counts

Before

3. Store the following in repo memory for the next run:
   - Last analysis timestamp
   - List of run IDs analyzed
   - Aggregated blocked domains data  ❌ stale data reused

After

3. Store the following in repo memory for the next run:
   - Last analysis timestamp
   - List of run IDs analyzed

**IMPORTANT**: Never cache or reuse aggregated statistics. Always compute fresh from the audit tool.
Original prompt

Daily Firewall Report agent is lying... just watching the numbers and it says 413 blocked calls every day. it's too deterministic. Fix it


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 17, 2026 20:59
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix inaccurate daily blocked calls in firewall report Fix daily firewall report caching stale aggregated data Jan 17, 2026
Copilot AI requested a review from Mossaka January 17, 2026 21:09
@Mossaka Mossaka marked this pull request as ready for review January 17, 2026 21:14
@Mossaka Mossaka merged commit 085e057 into main Jan 17, 2026
47 checks passed
@Mossaka Mossaka deleted the copilot/fix-firewall-report-issue branch January 17, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants