Skip to content

Remove require_entity_type, bump to v1.6.0#12

Merged
vvillait88 merged 1 commit intomainfrom
remove-entity-type-v1.6.0
Apr 18, 2026
Merged

Remove require_entity_type, bump to v1.6.0#12
vvillait88 merged 1 commit intomainfrom
remove-entity-type-v1.6.0

Conversation

@vvillait88
Copy link
Copy Markdown
Contributor

Summary

  • Remove require_entity_type from DecisionPolicy TypedDict
  • Stripe Identity doesn't support KYB — field was non-functional
  • Bump version to 1.6.0

Test plan

  • All 95 tests pass
  • Coordinate merge with agentscore/core#160

🤖 Generated with Claude Code

Stripe Identity doesn't support KYB — the entity type policy field
was non-functional. Removed from types and tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vvillait88 vvillait88 merged commit f5705e2 into main Apr 18, 2026
6 checks passed
@vvillait88 vvillait88 deleted the remove-entity-type-v1.6.0 branch April 18, 2026 23:42
vvillait88 added a commit that referenced this pull request Apr 26, 2026
Closes audit items #12, #17.

verify_webhook_signature: generic HMAC-SHA256 webhook signature verifier,
Stripe-pattern (`t=<unix>,v1=<hex>` header). Useful both when AgentScore
eventually ships outbound webhooks and as a generic helper for merchants
verifying any HMAC-signed webhook source.

Returns VerifyWebhookSignatureResult with `reason` set on failure
(no_signatures / no_timestamp / timestamp_too_old / timestamp_in_future /
signature_mismatch / malformed_header) so callers can differentiate
transient vs permanent failures. Uses hmac.compare_digest for
constant-time comparison.

AgentScoreError.status property mirrors .status_code — polyglot codebases
can use err.status regardless of which SDK raised the error. Both
attributes return the same int.

11 new tests; coverage holds at 97.30% (Tier A).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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