Skip to content

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

Merged
vvillait88 merged 6 commits intomainfrom
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 6 commits intomainfrom
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 get_stats(), get_agents() and async variants
- Fix score value types from int to float (API returns JS Number)
- Fix EvidenceSummary to match actual API fields (8 fields)
- Add RedactedClassification for free tier chain entries
- Make ChainEntry identity optional (free tier redaction)
- Make OperatorScore agent_count/chains_active optional (free tier)
- Fix ReputationStatus to match API values (scored/stale/known_unscored)
- Make AssessResponse.chains required
- Remove invalid top-level fields from ReputationResponse
- Bump to v1.4.0

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

- Add VerificationLevel literal type and OperatorVerification TypedDict
- Add verification_level to ReputationResponse
- Add operator_verification, verify_url, resolved_operator to AssessResponse
- Add compliance policy fields to DecisionPolicy
- Switch auth header from Authorization: Bearer to X-API-Key
- Add python-dotenv + conftest.py 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
vvillait88 and others added 4 commits April 6, 2026 04:31
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vvillait88 vvillait88 merged commit 4354cc9 into main Apr 7, 2026
6 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