Skip to content

test(registry): fail closed on revoked-list HTTP non-OK - #36

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/test-coverage-automation-93ad
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/test-coverage-automation-93ad

Conversation

@cursor

@cursor cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Adds a unit test for the registry fail-closed path when the revoked-agents fetch returns a non-OK HTTP response (e.g. 503), while the registry itself succeeds.

Risky behavior now covered

  • Marketplace listing must return no agents and a security error when revocation cannot be verified via HTTP status (not only network exceptions).

Test files added/updated

  • tests/lib/registry.test.ts

Why these tests materially reduce regression risk

Existing coverage handled network rejection and malformed JSON, but not ok: false on the revoked list. A regression there could list agents without a verified revocation check.

Validation

  • pnpm exec vitest run tests/lib/registry.test.ts (17 passed)
Open in Web View Automation 

Cover the HTTP 503 path so marketplace listing cannot leak agents
when revocation verification is unavailable.

Co-authored-by: esadrianno <esadrianno@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant