You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python stub-cache pruning still evicts actively used entries by age #1530
Source-revalidated on main 3f2a835c78e9daba7baefc4c018c6fc9ca3c6e4a.
Publication no longer restores an old source timestamp, fixing premature eviction of freshly copied old stubs. However, existing newer cache files skip copy without touching use time, environment/view use does not refresh age, and the janitor removes files solely by mtime with no live-workspace protection.
A continuously used namespace can reach the configured max age even though analyzers keep reading its stubs; a prune pass then removes them. This is the remaining active-use part of the original finding, not a claim that publication-time handling is still broken.
Expected correction
Track last use or active namespace leases separately from source freshness, and prune only entries that are actually idle. Preserve the corrected publication behavior and verify active versus inactive aging using controlled clocks/temporary cache fixtures.
Verification limits
Read-only production/test source inspection, including the current-main acceptance-test diff (formatting changes do not alter the tested boundary). No destructive cleanup, cache mutation, benchmark, new tests, child processes or server restarts were executed. Outcomes above are source-derived, not fresh runtime results.
Activity
fix(gateway): the Python stub cache keeps stubs that are still in use (…