AI agent audit prototype · Built on Stockurai

Copay assistance funding by payer plan

Prepared for Jane Doe · Specialty pharmaceuticals · December 3, 2026

Sample data for illustration.
DecisionEach month, how to fund copay assistance for each commercial payer plan
OptionsFund · Review · Cap
Data sourcesCopay program claims and refill data, Benefits verification and plan design file, Finance program budget by product
PolicyCommercial plans only, never government; term changes need legal review
Deploying an AI agent for a decision like this? Request a formal proposal, or describe the agent’s decision to create a custom AI agent audit prototype.
STEP 01

Targets

Targets are what the system watches. Here, they are the commercial payer plans the copay program supports, with spend, plan design and adherence from the claims data.
TargetSpend this quarterPlan designAdherenceStatus
Regional PPO$1,240,000Accumulator71%Active
National HMO$860,000None86%Active
Large PBM maximizer plan$1,010,000Maximizer74%Watching
Employer self-funded$540,000None82%Active
Medicaid managed careExcludedGovernmentn/aPaused
STEP 02

Target detail

Where the feeds meet: the claims (what the program pays and whether patients stay on therapy) and the plan design data (accumulators and maximizers). Every recommendation weighs both.

Regional PPO program history (7 months)

MonthClaims paidAvg per claimAdherenceAccumulator hit
Oct$412,000$61071%Yes
Sep$398,000$58572%Yes
Aug$376,000$56074%Yes
Jul$351,000$52077%Yes
Jun$318,000$47080%No
May$302,000$45582%No
Apr$295,000$45083%No

Plan design and budget

AccumulatorActive since Jul 1; card exhausted in 4 months
Cost per retained patient$5,940 (product target $4,500)
Product budget used68% with 2 months left
PopulationCommercially insured only
Feeds
ClaimsSpend, claims and adherence by plan · Weekly
Plan designAccumulator and maximizer status by plan · Monthly
BudgetAnnual budget, spend to date, remaining · Quarterly
STEP 03

Alerts: what the system watches for

Alerts are code-free. Pick a field, an operator and a value. Each alert watches one thing, such as refill gaps or an accumulator flag, and fires when it happens.

Edit alert

Cost per patient below target
Cost per retained patient
Below
Product target ($4,500)
1 Month
PreviewCost per retained patient below product target

Configured alerts

Adherence above 80%Claims
Refill gap under 15 daysClaims
Cost per patient below targetClaims
Plan has no accumulatorPlan design
Plan has no maximizerPlan design
Budget under 80% usedBudget
STEP 04

Decision logic: alerts, conditions, plays and rules

Alerts evaluate data in real time. Conditions add triggered alerts up to a score, and plays organize the conditions. Rules turn a play’s score into a real-time recommendation on the live feed. The policy gate keeps every recommendation to commercially insured patients and sends any change to program terms to legal and compliance review. Rules drive the recommendations, not AI.

Play: Fund plans where assistance keeps patients on therapy

+15Patients stay on therapy
  • Adherence above 80%
  • Refill gap under 15 days
+10Plan design is clean
  • Plan has no accumulator
  • Plan has no maximizer
+10Cost per patient on target
  • Cost per patient below target
+5Budget room
  • Budget under 80% used

Rules

Score ≥ 30FUND
Score 15–29REVIEW
Accumulator drain > 25% of spendCAP

Policy gate

PopulationCommercially insured only, never government
Max change per decision10% of product budget
Term changesLegal and compliance review
ApprovalProgram finance lead
STEP 05

Live feed

This is the screen the decision team watches. Each card is a monthly recommendation on one payer plan, posted when its rule is met, with the score and time it fired.

Fund (1)

National HMO  Score 40 · Adherence 86%
Fund at current terms; no accumulator, budget 68% used
11/03 09:15 AM

Cap (1)

Regional PPO  Score 5 · Drain 34% of spend
Propose a per-patient cap; accumulator exhausts card early
11/03 09:22 AM

Review (1)

Large PBM maximizer plan  Score 20 · Maximizer flagged
Adherence 74%; send to legal and compliance review
11/03 09:40 AM
STEP 06

Audit trail: one recommendation, start to finish

Every recommendation is logged and traceable. Anyone can see which claims and plan design data arrived, which conditions were met, who approved the recommendation and what it did to cost per retained patient.
National HMO — Audit trail

Data received

Claims feed$860,000 paid this quarter, adherence 86%, refill gaps 6%
Plan design feedNo accumulator or maximizer, verified Oct 28
Budget feed68% of product budget used

Play evaluated → rule fired

✓ Patients stay on therapy (+15)
✓ Plan design is clean (+10)
✓ Cost per patient on target (+10)
✓ Budget room (+5)
Score40 → FUND
Policy gatePassed: commercial plan, change under 10% of product budget

Decision

ActionFund at current terms, +6% for Q4
Approved byProgram finance lead, 11/03 10:05

Outcome

Cost per retained patient$3,520 vs $3,880 flat-budget baseline
Result$360 lower per retained patient
STEP 07

Daily flags

A short daily list of things worth a look, separate from the live feed. Accumulator or maximizer drain, adherence dropping on a plan, and budget running ahead of plan.
Plan designRegional PPO accumulator drains 34% of spend
Card exhausted in 4 months; Cap rule armed
ClaimsAdherence on Regional PPO fell 12 points
83% in April to 71% in October
Plan designNew maximizer program found on one PBM plan
Confirm status before the next funding decision
BudgetAnnual budget 68% used with 2 months left
Within the quarterly review range
STEP 08

ROI scoring and baseline

The optimization engine scores every decision. Every recommendation is measured against the flat annual budget split reviewed quarterly, and against the best allocation that could have been made in hindsight. The gap is the ROI you can measure.
TargetDecisionsCost per retained patientBaselineBest possibleCapturedResult vs baseline
Regional PPO125,2105,9404,70059%-$730 per patient
National HMO123,5203,8803,30062%-$360 per patient
Large PBM maximizer plan95,4806,1204,90052%-$640 per patient
Employer self-funded124,0104,3503,70052%-$340 per patient

Baseline: Flat annual budget split, reviewed quarterly. Best possible: Best allocation in hindsight. Sample figures; in a live installation, these come from the organization’s own decisions and data.

STEP 09

AI Agent Decision Data

The agent is one more feed. Stockurai doesn’t call or run the agent. It records every output and scores it against the rules, the decision makers and the outcome, in shadow: flags never block anything.
RecommendsProgram funding agent

Reviews claims, plan design and budget each month and recommends Fund, Review or Cap for each payer plan.

When it acts: Before the monthly program finance review; the program finance lead decides.

Recommendation:FundReviewCap
Agrees with rules82%
Agrees with decision makers79%
Policy breaches flagged1
Disagreements graded5

Agent feed: sample records

TimeTargetRecommendationModelAgent’s reason
11/03 09:12 AMNational HMOFundv0.9Adherence 86%; cost per patient on target
11/03 09:12 AMLarge PBM maximizer planCapv0.9Accumulator draining 34% of program spend
11/03 09:12 AMRegional PPOFundv0.9Adherence steady; budget room
11/03 09:12 AMMedicaid managed careFundv0.9Adherence gap after plan change

Policy breaches flagged

Medicaid managed care · Fund
Funding recommended for a government plan
11/03 09:12 AM · Flagged; excluded by policy

Checked against the policy gate the moment each output arrives.

Agent's call against the rules' call, last 6 months

AgentFundReviewCap
Fund1120
Review191
Cap013

Rows are the agent's call, columns the rules' call. Monthly decisions on five plans give a small sample, so treat these rates with care. Shaded cells are agreement.

Disagreements, graded on the outcome

TargetAgentRulesDecision makersWhat followedBetter call
Employer self-fundedReviewFundFundCost per retained patient rose 12%Agent
Regional PPOCapFundFundAdherence held at 84%Rules

Drift

PeriodModelAgreement
Augv0.880%
Sepv0.881%
Octv0.9new84%
Novv0.982%

Small monthly samples make month-to-month moves noisy; the trend matters more than any one month.

Where scoring is limited. Patients on a capped plan who stop treatment are tracked through claims, so the cost of a cap is estimated rather than observed directly. The audit produces scoring and evidence; it doesn’t certify the agent.
STEP 10

Fit and next steps

What we’d check first

Why
  • Monthly decision repeated by plan, with claims, adherence and budget data already tracked
  • Clear limits: commercial only and legal review for term changes
To verify
  • How reliably plan design data shows accumulators and maximizers
  • How soon claims and refill data arrive each month
  • How long legal and compliance review takes
Extend with AI
  • Spotting accumulator and maximizer drain from claims patterns

Next step: a formal proposal

ScopeThe decision, targets and data feeds
RulesRules and policy gate, written out
ROIHow ROI is measured against the current process
TermsSetup estimate, timeline and license terms
Where it runsThe organization’s own AWS account
Request a formal proposal Create a custom AI agent audit prototype

For IT and data teams: an AI data pipeline

Stockurai is licensed to researchers and institutions for real-time analysis of equity markets, with AI and machine learning built into the process. The same AI data pipeline can be built for this decision.

Design prototype prepared by Stockurai · Sample data for illustration only · stockurai.com