Skip to content

[cache-strategy] Fix cache miss in Copilot Session Insights #56719

Description

@github-actions

Cache Strategy Problem: Copilot Session Insights

Severity: 🟠 High

Workflow: Copilot Session Insights
Analysis Date: 2026-08-28
Issue Type: Cache miss


Problem Description

The prompt requires the workflow to initialize /tmp/gh-aw/cache-memory/session-analysis/history.json and related files when they are missing, then use them to compute a historical baseline. No session-analysis/ cache directory exists after the observed runs, so the workflow is not materializing the history it depends on.

Evidence

  • Miss streak: 2 consecutive analyzed days
  • Miss rate (14d): 100%
  • Last cache hit: never
  • Observed runs: 2
  • Rebuild excess tokens (14d): 4,614
  • Log signals: Prompt defines /tmp/gh-aw/cache-memory/session-analysis/ with history.json and says If cache files don't exist, create them, but no such cache directory exists in persistent cache memory after the runs.

Recommended Fix

  1. Create the session-analysis/ directory and seed files as an explicit required step before analysis begins.
  2. Verify the files still exist before cache commit/upload so missing history becomes a run failure, not a silent miss.
  3. Log whether the historical baseline came from cache or from first-run initialization to make future audits trivial.

Expected Impact

If fixed, the workflow should accumulate real cross-run history instead of recomputing its baseline with no durable memory.


Detected by the Daily Cache Strategy Analyzer

Generated by 📊 Daily Cache Strategy Analyzer · codex · gpt54 · 164.1 AIC · ⌖ 7.9 AIC · ⊞ 13.2K ·

  • expires on Sep 4, 2026, 1:56 PM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions