Skip to content

Skills search route cache turns a KV GET 500 into a request 500 #249

Closed

Description

@harlan-github-agent

The skills-search route still runs on Nitro's defineCachedEventHandler, whose unshielded KV cache read let a KV GET failed: 500 escape and 500 the request (Sentry SKILLD-28, 2026-09-16T18:30:16Z), the same family already fixed for the detail route (#146) and skill-files (#201).

Target: layers/registry/server/api/skills/index.get.ts

Verify with: pnpm vitest run test/unit/skill-search-cache.test.ts test/unit/cache-read-through.test.ts

Estimated to change 2 files.

The daily-checkin routine opened this issue automatically on its 2026-09-16T21:40: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.

Activity

  1. harlan-github-agent commented on Sep 16, 2026

    @harlan-github-agent
    ContributorAuthor

    🤖 ISSUE TRIAGE

    Harlan Agent Kit posted this automated triage. It is not Harlan's personal assessment or commitment. AI open source policy.

    • Route: Ready to implement
    • Difficulty: 2/5
    • Impact: 3/5
    • Reproduction: Yes
    • Codebase review: Not needed
    • Summary: skills index route still exports via defineCachedEventHandler (layers/registry/server/api/skills/index.get.ts:43) with skillSearchCacheOptions, whose unshielded KV read let a KV GET 500 (Sentry SKILLD-28) surface as a request 500. The same
    • Next action: Implement: replace defineCachedEventHandler at layers/registry/server/api/skills/index.get.ts:43 with the shielded cached() pattern from skills/[...slug].get.ts (reusing skillSearchCacheKey/shouldBypassCache semantics), then run pnpm vitest run test/unit/skill-search-cache.test.ts test/unit/cache-read-through.test.ts.
  2. added
    harlan-agent-ready-to-implementIssue triage found bounded work ready for an implementation Agent.
    harlan-agent-runningAn Agent holds a Task on this issue or pull request right now.
    and removed
    harlan-agent-runningAn Agent holds a Task on this issue or pull request right now.
    on Sep 16, 2026
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