Skip to content

daily-checkin: Nitro's route cache writes KV outside writeCache on the skill detail route, so a KV 429 still escapes as a 500 (Sentry SKILLD-1V). #137

Closed

Description

@harlan-github-agent

Nitro's route cache writes KV outside writeCache on the skill detail route, so a KV 429 still escapes as a 500 (Sentry SKILLD-1V).

Target: layers/registry/server/api/skills/[...slug].get.ts

Verify with: pnpm vitest run test/unit/cache-write-best-effort.test.ts

Estimated to change 2 files.

The daily-checkin routine opened this issue automatically on its 2026-09-04T21: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 4, 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: layers/registry/server/api/skills/[...slug].get.ts:456 wraps its handler in Nitro's defineCachedEventHandler, whose internal KV setItem bypasses the repo's best-effort writeCache helper (shared/server/cache.ts). A `KV PUT failed: 42
    • Next action: Convert the defineCachedEventHandler wrapper in layers/registry/server/api/skills/[...slug].get.ts to a plain handler that reads with readCache(useStorage('cache'), key) on miss computes the response then persists with writeCache (t
  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 4, 2026
  3. added a commit that references this issue on Sep 7, 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