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
Tag profile cache expires after 60s with no stale serving #185
The tag profile handler caches for 60 seconds with swr disabled on a heavy FTS query plus per-row subqueries, so crawler sweeps recompute it continuously (SKILLD-19, SKILLD-1C, SKILLD-1H).
Verify with:pnpm vitest run test/unit/tag-profile-cache.test.ts
Estimated to change 2 files.
The sentry-checkin routine opened this issue automatically on its 2026-09-08T20:20:00.000Z run. It is not Harlan's own report. Close it to reject the proposal, and the reason you give stops it being offered again.
Summary: Confirmed in layers/registry/server/api/tags/[slug].get.ts:209-216: defineCachedEventHandler uses maxAge: 60 with swr: false while the handler runs a heavy FTS query plus per-row subqueries (derivedTagCount, tagDecisionKeep, getGeneratedBat
Next action: In layers/registry/server/api/tags/[slug].get.ts change the cache options to swr: true with a longer maxAge, add test/unit/tag-profile-cache.test.ts asserting stale-while-revalidate serving, and run pnpm vitest run test/unit/tag-profile-cache.test.ts.
Activity
harlan-github-agent commentedon Sep 8, 2026
🤖 ISSUE TRIAGE