Skip to content

feat: add policy simulation SDK methods (#1062)#116

Merged
saurabhjain1592 merged 3 commits into
mainfrom
feat/policy-simulation-sdk
Mar 25, 2026
Merged

feat: add policy simulation SDK methods (#1062)#116
saurabhjain1592 merged 3 commits into
mainfrom
feat/policy-simulation-sdk

Conversation

@saurabhjain1592

Copy link
Copy Markdown
Member

Summary

  • simulatePolicies() / simulatePoliciesAsync(), getPolicyImpactReport() / getPolicyImpactReportAsync(), detectPolicyConflicts() / detectPolicyConflictsAsync()
  • 10 new type classes in com.getaxonflow.sdk.simulation package
  • 26 new WireMock-based tests

Test plan

  • mvn test passes
  • E2E: Java example passes against running platform

New methods: simulatePolicies(), getPolicyImpactReport(),
detectPolicyConflicts() with sync and async variants.
Requires Evaluation tier or above.
P1: PolicyConflict now has policy_a, policy_b, conflict_type, description,
severity, overlapping_field matching the API response. PolicyConflictRef
uses id, name, type fields.

P2: detectPolicyConflicts() now accepts null to scan all policies.
Added no-arg overload detectPolicyConflicts().
Review fixes:
- ImpactReportResult: replaced query/action (wrong) with input_index/actions
  matching the server response shape
- ImpactReportResponse: added policy_name field
- SimulationDailyUsage: removed resets_at (not in API contract)
@saurabhjain1592 saurabhjain1592 force-pushed the feat/policy-simulation-sdk branch from b34eb0f to 5be1de8 Compare March 25, 2026 09:42
@saurabhjain1592 saurabhjain1592 merged commit f5739ae into main Mar 25, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the feat/policy-simulation-sdk branch April 7, 2026 10:36
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