Skip to content

[Data-integrity] GitHub dashboard cache never expires — stats frozen forever (also feeds stale data to AI) #302

Description

@vedant7007

Problem (Med — data integrity, perpetually stale)

server/modules/github/service.js:239-249 (getDashboard) — if a GithubData doc exists it's returned unconditionally with no TTL/staleness check; the only refresh path is a manual POST /sync (rate-limited 1/15min). A user who never manually syncs sees GitHub stats frozen at first-fetch forever.

Worse, apexContextCompiler.js:123 feeds this same stale GithubData into the AI system prompt, so APEX reasons on outdated data.

Suggested fix (small)

Compare lastSyncedAt against a max-age (e.g. re-fetch if older than N hours) in getDashboard.

Happy to fix under GSSoC '26 if assigned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions