Skip to content

Add verification types, compliance policy, X-API-Key auth (TEC-177, TEC-179, TEC-182)#6

Merged
vvillait88 merged 3 commits into
mainfrom
chore/v1.4-api-surface-reduction
Apr 7, 2026
Merged

Add verification types, compliance policy, X-API-Key auth (TEC-177, TEC-179, TEC-182)#6
vvillait88 merged 3 commits into
mainfrom
chore/v1.4-api-surface-reduction

Conversation

@vvillait88
Copy link
Copy Markdown
Contributor

@vvillait88 vvillait88 commented Apr 5, 2026

Summary

  • Add verification types (VerificationLevel, OperatorVerification)
  • Add compliance policy fields (require_kyc, require_sanctions_clear, min_age, blocked_jurisdictions, require_entity_type)
  • Add operator_verification, verify_url, resolved_operator to assess response
  • Add verification_level to reputation response
  • Standardize auth to X-API-Key header (remove Authorization: Bearer)
  • Add dotenv setup for integration test env loading
  • Update README with compliance gating examples

Tickets

TEC-177, TEC-179, TEC-182

Test plan

  • All unit tests pass
  • Integration tests pass with API key in .env
  • Types match API response shapes

🤖 Generated with Claude Code

vvillait88 and others added 2 commits April 5, 2026 05:03
- Remove getStats() and getAgents() methods (endpoints dropped from API)
- Fix EvidenceSummary to match actual API fields (8 fields, not 25)
- Make ChainEntry identity/activity/evidence_summary optional (free tier redaction)
- Make OperatorScore agent_count/chains_active optional (free tier)
- Add RedactedClassification type for free tier chain entries
- Fix ReputationStatus to match API values (scored/stale/known_unscored)
- Make chains required in ReputationResponse and AssessResponse
- Bump to v1.4.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…-177, TEC-179, TEC-182)

- Add VerificationLevel type and OperatorVerification interface
- Add verification_level to ReputationResponse
- Add operator_verification, verify_url, resolved_operator to AssessResponse
- Add compliance policy fields to DecisionPolicy (require_kyc, require_sanctions_clear, min_age, blocked_jurisdictions, require_entity_type)
- Switch auth header from Authorization: Bearer to X-API-Key
- Add dotenv for integration test env loading
- Update tests for new types and auth header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vvillait88 vvillait88 changed the title Remove stats/agents, fix types for API parity (v1.4.0) Add verification types, compliance policy, X-API-Key auth (TEC-177, TEC-179, TEC-182) Apr 6, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vvillait88 vvillait88 merged commit 69e59db into main Apr 7, 2026
5 checks passed
@vvillait88 vvillait88 deleted the chore/v1.4-api-surface-reduction branch April 7, 2026 15:04
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