Skip to content

Remove the reputation lookup - #93

Open
dmatlock96 wants to merge 2 commits into
mainfrom
teardown/remove-reputation
Open

dmatlock96 wants to merge 2 commits into
mainfrom
teardown/remove-reputation

Conversation

@dmatlock96

Copy link
Copy Markdown

Summary

The AgentScore API no longer serves GET /v1/reputation, and the endpoint returns 404. This removes getReputation, its options and response types, the README examples, and the reputation package keyword. The request path tests that used the lookup now use assess. The version goes to 3.0.0.

Type of change

  • Bug fix (no breaking change)
  • New feature (no breaking change)
  • Breaking change (existing callers must update)
  • Docs, tests, or internal maintenance only

Public API

Removed: AgentScore.getReputation(address, options?), GetReputationOptions, ReputationResponse, and the types that only it used: Grade, EntityType, ReputationStatus, Subject, Classification, Score, ChainScore, Identity, Activity, EvidenceSummary, Reputation, OperatorScore, AgentSummary, RedactedClassification, ChainEntry. VerificationLevel stays, as OperatorVerification uses it.

Migration: call assess(address, options) and read decision and decision_reasons. There is no replacement for the score.

Test plan

  • Deleted the lookup tests: the GET URL, the chain query, the fixture shape, and verification_level.
  • Moved the request path tests (error bodies, invalid JSON, timeout, network errors, 429 retries, Retry-After parsing, concurrency, User-Agent, base URL) to assess with the ASSESS_RESPONSE fixture.
  • Deleted the live integration tests for the lookup.
  • Ran bun run lint, bun run typecheck, bun run test (158 passed, 2 skipped), and bun run knip. All pass.

Checklist

  • Tests cover the new behavior, and the suite passes locally
  • Lint, format, and type checks pass
  • Docs and README examples updated if the public surface changed
  • No secrets, credentials, or personal data in the diff or the tests

🤖 Generated with Claude Code

dmatlock96 and others added 2 commits September 30, 2026 22:14
The AgentScore API no longer serves GET /v1/reputation, and the
endpoint returns 404. Drop getReputation, its options and response
types, the README examples, and the package keyword. The request path
tests that used the lookup now use assess. Bump to 3.0.0, as the public
API loses a method.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The wallet resolution paragraph still named the removed method.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@dmatlock96
dmatlock96 enabled auto-merge (squash) October 1, 2026 05:46
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