Skip to content

fix(registry): 404 garbage owners before loading GitHub profile - #262

Merged
harlan-zw merged 1 commit into
mainfrom
fix/issue-260
Sep 21, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/issue-260

Conversation

@harlan-github-agent

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Closes #260

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Crawler-invented owner paths were costing two things on every hit: one unauthenticated GitHub users API call, and a permanent owners row with sync_status='404'. The daily-checkin routine that opened #260 counted 2,941 junk rows in 24 hours (6,775 since ~2026-09-17, 9,868 owners with no repos row), and every one of them was paid for with an API call.

The org profile route loaded the registry skills and the GitHub owner profile in parallel, so the 404 thrown for an empty registry still let the owner load finish its write. The registry query now runs first and the route 404s on an empty result before the owner load runs, so a path with no skills never reaches the GitHub users API or the owners table. The HTTP response is unchanged; the write and the upstream call behind it are gone.

A new regression test pins this: on the old ordering it fails with githubFetch called for https://api.github.com/users/not-a-real-owner-xyz, and with the fix the same request 404s with no fetch and no owners row.

One path still writes sync_status='404': an owner with skills in the registry whose GitHub account is gone. That write doubles as the negative cache keeping repeat requests off the API for those, so I left it in place rather than moving to a storage-based cache.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Sep 20, 2026
@harlan-github-agent

harlan-github-agent Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-09-21 15:14 UTC.

GitHub merged this pull request.

No material findings were recorded.

4b770da5-4088-43df-941e-e61fbb9f85c7

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Sep 20, 2026
@harlan-zw
harlan-zw merged commit 8490b0f into main Sep 21, 2026
6 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Garbage owner URLs write permanent owners rows on 404

1 participant