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
Repository purpose job retries five times on a permanent 404 #584
Since the #581 deploy, registry/repository-purpose throws "Repository purpose source unavailable: 404" for permanently gone upstream repos, so each exhausts five attempts (amnadtaowsoam/cerebraskills, demerzels-lab/elsamultiskillagent, duclm1x1/dive-ai, housegarofalo/claude-code-base today) and, with broken_since NULL, re-enqueues daily, driving 4 of the 5 nightly failed-job RED faults.
Target:layers/registry/server/utils/repository-purpose-effect.ts plus server/jobs/registry/repository-purpose.ts
Verify with:pnpm exec wrangler d1 execute skilld-db --remote --command "SELECT attempts, COUNT(*) n FROM failed_jobs WHERE job_type='registry/repository-purpose' GROUP BY attempts" --json returns only attempts=1 rows after a 404 repo passes through, and pnpm vitest run test/unit/repository-purpose-effect.test.ts passes
Estimated to change 2 files.
The daily-checkin routine opened this issue automatically on its 2026-10-08T20: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.
Summary: Confirmed in code: readRepositoryPurposeEvidence throws on a permanent 404 (repository-purpose-effect.ts:51), the job's tries:5 exhausts every attempt before dead-lettering (server/jobs/registry/repository-purpose.ts:13), and because nothin
Next action: Implement: give readRepositoryPurposeEvidence a typed 404/410 missing outcome instead of throwing, have server/jobs/registry/repository-purpose.ts mark the repo missing (broken_since, mirroring markRepoMissing semantics) and call ctx.fail once, extend test/unit/repository-purpose-effect.test.ts with a regression test, then verify per the issue: pnpm vitest run test/unit/repository-purpose-effect.test.ts and the failed_jobs attempts query showing only attempts=1 rows.
Activity
harlan-github-agent commentedon Oct 8, 2026
🤖 ISSUE TRIAGE