SDK Quick Start — Insurance: P&C, Life & Annuity
Getting started: Insurance: P&C, Life & Annuity
Add policy checks to your application’s business actions. The core SDK checks each action before it runs and checks its result before release. An input check can stop the action or pause it for human review.
Catalog context. For a claims workflow, capture the claim stage and the reason for routing it to a reviewer. Keep the review outcome separate from the action the application later takes. Determine applicable requirements by jurisdiction, insurance line, and intended use. A recorded review or bias-test result does not establish that the process meets those requirements.
Use industry fields with the core SDK
Industry vocabularies supply typed values that the SDK sends as policy fields and evidence attributes with one governed call. Choose values that describe the actual workflow. Adding a vocabulary does not activate rules or assign regulatory requirements.
| Component | What you configure | How it is used |
|---|---|---|
| Core SDK | API key, endpoint, one client, and the governed action around each protected step | The same policy checks, typed results, and evidence used across every implementation |
| Insurance: P&C, Life & Annuity | Industry values and application facts from this catalog | Rules read them under input.snapshot.industry and input.snapshot.facts; reviewers see them in evidence |
| Review workflows | Rules, evidence packages, and internal reviewer workflows | Reviewers can inspect captured values and identify missing context |
For client setup and your first governed action, start with TypeScript core, Python core, or .NET core before continuing here.
Step 1 — Install the approved packages
In the customer portal, open Tools and SDKs. Select your language and adapters, then follow the installation instructions shown there.
The package registry instructions use VeriProof's public GitLab feeds. Installs require no GitLab account or package credential. See SDK access for workstation and CI guidance.
VeriProof packages used here: @veriproof/sdk-core (TypeScript), veriproof-sdk (Python), Veriproof.Sdk.Core (.NET).
Step 2 — Configure
Store the API key as VERIPROOF_API_KEY and create one client when the application starts. Publish the policy you want to enforce, then confirm its field contract against the facts and industry values your application supplies.
Copy the application ID and key from Set up SDK. The application ID is not its display name. Try a live demo to see a governed workflow, or request an evaluation if you need a workspace.
Step 3 — Govern the action
Put the protected business action inside govern. The SDK checks policy before it calls the action and before it releases the result. An input Deny stops the action; an input Escalate pauses it for review.
import { Veriproof } from '@veriproof/sdk-core';
import type { GovernedResult, IndustryFact, JsonValue } from '@veriproof/sdk-core';
const veriproof = Veriproof.fromEnv();
export async function runProtectedAction<TInput extends JsonValue, TValue>(
request: TInput,
action: (input: TInput, signal: AbortSignal) => Promise<TValue>,
): Promise<GovernedResult<TValue, TInput>> {
// Catalog values for this vertical. Replace them with facts from the current workflow.
const industry: IndustryFact[] = [
{ attribute: "insurance.policy.lifecycle_status", policyInput: "insurance_policy_lifecycle_status", value: "application_received" },
{ attribute: "insurance.policy.transaction_type", policyInput: "insurance_policy_transaction_type", value: "new_business" },
{ attribute: "insurance.policy.line_of_business", policyInput: "insurance_policy_line_of_business", value: "personal_auto" },
];
// Policy runs before action() and again before the result is released.
// A deny or review decision means action() never runs.
return veriproof.govern(
"insurance.pc.life.annuity.evaluate",
request,
({ input, signal }) => action(input, signal),
{ industry },
);
}Only completed, completed_with_warning, and transformed results carry a released value. Handle every other status with its safe message, reason code, and evidence reference. For review decisions, save the checkpoint and continue through the human review workflow.
Add typed industry values
Each core SDK ships this vertical's vocabulary as generated types. A typed value becomes one policy field and one evidence attribute when you pass it to the governed call. Use application facts for values that are specific to your workflow.
Find this workflow's vocabulary in the Insurance: P&C, Life & Annuity reference. Use the attribute names below and verify their policy-field mapping before using them in a rule. Sample values show the format; they are not recommended outcomes for your application.
| OTel attribute | Sample value | Category |
|---|---|---|
insurance.policy.lifecycle_status | application_received | PolicyLifecycleStatus |
insurance.policy.transaction_type | new_business | PolicyTransactionType |
insurance.policy.line_of_business | personal_auto | InsuranceLineOfBusiness |
insurance.policy.cancellation_reason | non_payment_of_premium | PolicyCancellationReasonCode |
insurance.underwriting.decision_status | accepted_standard | UnderwritingDecisionStatus |
insurance.underwriting.ai_model_type | traditional_rule_based_engine | UnderwritingAIModelType |
TypeScript
import { Industry } from '@veriproof/sdk-core';
import { PolicyLifecycleStatus, PolicyLifecycleStatusMeta, PolicyTransactionType, PolicyTransactionTypeMeta, InsuranceLineOfBusiness, InsuranceLineOfBusinessMeta } from '@veriproof/sdk-core/industries/insurance';
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
const industry = [
Industry.fact(PolicyLifecycleStatusMeta, PolicyLifecycleStatus.ApplicationReceived),
Industry.fact(PolicyTransactionTypeMeta, PolicyTransactionType.NewBusiness),
Industry.fact(InsuranceLineOfBusinessMeta, InsuranceLineOfBusiness.PersonalAuto),
];
const result = await veriproof.govern(actionName, request, runWorkflow, { industry });Python
from veriproof_sdk.verticals.insurance import PolicyLifecycleStatus, PolicyTransactionType, InsuranceLineOfBusiness
# Replace sample values with facts from the current workflow.
# Each value becomes one policy field and one evidence attribute.
industry = (
PolicyLifecycleStatus.application_received.fact(),
PolicyTransactionType.new_business.fact(),
InsuranceLineOfBusiness.personal_auto.fact(),
)
result = await vp.govern(action_name, request, run_workflow, industry=industry).NET
using Veriproof.Sdk.Core.Industries.Insurance;
// Replace sample values with facts from the current workflow.
// Each value becomes one policy field and one evidence attribute.
var options = new GovernOptions
{
Industry =
[
PolicyLifecycleStatus.ApplicationReceived.Fact(),
PolicyTransactionType.NewBusiness.Fact(),
InsuranceLineOfBusiness.PersonalAuto.Fact(),
],
};
var result = await veriproof.GovernAsync(actionName, request, RunWorkflowAsync, options);Workflow examples from the catalog
- Underwriting, Rating & Pricing: Rating Factor Category. OPA rule: deny any rating action where factor_category is prohibited_characteristic_proxy or social_media_derived until Colorado Reg 10-1-1 bias test has been completed and approved.
- Underwriting, Rating & Pricing: ECDISBias Test Outcome. OPA rule: block production deployment of any underwriting model where ecdis_bias_test_outcome is testing_not_yet_performed, material_disparity_corrective_action_pending, or model_suspended_pending_remediation.
- Underwriting, Rating & Pricing: Insurance AIModel Inventory Status. OPA rule: deny any agentic underwriting or claims decision where the dependent model status is not_in_inventory_shadow_model or third_party_vendor_model_pending_assessment.
- Claims Intake, Triage & FNOL: Claim Severity Tier. OPA rule: route all tier_7 and above claims to human adjuster, block STP. Require HITL with senior_adjuster role for tier_8 and above. Require claims_compliance_officer for tier_10.
Next steps
- Open the full Insurance: P&C, Life & Annuity governance reference for all 31 enum categories, policy patterns, and source standards.
- Review TypeScript SDK core for stop handling, human review continuation, and the OpenAI Agents adapter.
- Review Python SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Review .NET SDK core for stop handling, human review continuation, and the Microsoft Agent Framework adapter.
- Browse all industry references to compare shared fields with the fields specific to each industry.
- Compare this guide with the public industry pages for a business overview of the same workflows.
Verify your work email to create a Developer account, free for 60 days. Open your account, create a Development application and its API key, then follow Tools and SDKs to connect it.