AI agent audit prototype · Built on Stockurai

Weekly clinical trial site decisions

Prepared for Jane Doe · Biotechnology · December 3, 2026

Sample data for illustration.
DecisionWhich trial sites get extra support, which we watch, and which we consider closing
OptionsSupport · Watch · Close
Data sourcesEDC / CTMS export, Monitoring visit and deviation reports, Site cost tracking
PolicyClose only with medical monitor and sponsor approval; never affect patient safety
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 clinical trial sites, with enrollment against plan, screen-fail rate and cost per patient from the EDC/CTMS and cost records.
TargetEnrolled vs planScreen-failCost per patientStatus
Site 10118 of 2058%$21,500Active
Site 10410 of 2377%$29,800Active
Site 10712 of 1560%$24,900Watching
Site 1122 of 1282%$41,300Active
Site 1150 of 4——Paused
STEP 02

Target detail

Where the feeds meet: the enrollment and screen-failure data (what patients are doing) and the site records (visits, deviations, cost). Every signal is weighed against both.

Site 104 weekly enrollment (7 weeks)

Week endingScreenedEnrolledScreen-failTotal vs plan
Nov 204175%10 of 23
Nov 1330100%9 of 22
Nov 64175%9 of 20
Oct 303167%8 of 19
Oct 2320100%7 of 17
Oct 163167%7 of 16
Oct 93167%6 of 14

Site 104 profile

ActivatedMar 2, 2026
Last monitoring visitOct 27 · 1 open finding
Protocol deviations1 minor in 90 days
Cost per patient$29,800 · study average $26,000
Feeds
EnrollmentScreened, enrolled and screen-fail by site · Weekly
MonitoringOpen findings, protocol deviations, activation dates · Weekly sync
BudgetCost per site and per patient enrolled · Monthly
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 enrollment against plan or screen-fail rate, and fires when it happens.

Edit alert

Site enrollment behind plan
Enrollment vs plan
Below
75% of plan to date
1 Week
PreviewEnrollment vs plan below 75% of plan to date

Configured alerts

Enrollment below 75% of planEnrollment
No enrollment in 4 weeksEnrollment
Screen-fail rate above 70%Enrollment
Major deviation in 90 daysMonitoring
More than 2 open findingsMonitoring
Cost per patient over 1.3x averageBudget
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 stops any closure without medical monitor and sponsor approval, and any change that affects patient safety, however low enrollment looks. Rules drive the recommendations, not AI.

Play: Support lagging sites first, close only as a last step

+15Enrollment lagging
  • Enrollment below 75% of plan
  • No enrollment in 4 weeks
+10Screening is the barrier
  • Screen-fail rate above 70%
+10High cost per patient
  • Cost per patient over 1.3x average
+10Site issues
  • Major deviation in 90 days
  • More than 2 open findings

Rules

Score ≥ 20, not yet supportedSUPPORT
Score below 20WATCH
Score ≥ 35 after supportCLOSE

Policy gate

Closure approvalMedical monitor and sponsor
Patient safetyNo change that affects patient safety
Support approvalClinical operations lead
STEP 05

Live feed

This is the screen the decision team watches. Each card is a recommendation on one site, printed the moment its rule is met, with the score and time it fired.

Support (1)

Site 104  10 of 23 enrolled · Score 25
Add pre-screening help and an extra monitoring visit; 77% screen-fail
11/20 02:05 PM

Close (1)

Site 112  2 of 12 enrolled · Score 35
Propose closure after support; awaiting medical monitor and sponsor
11/20 02:12 PM

Watch (1)

Site 107  12 of 15 enrolled · Score 10
Enrollment near plan; 1 major deviation under review
11/20 01:48 PM
STEP 06

Audit trail: one recommendation, start to finish

Every recommendation is logged and traceable. Anyone can see which enrollment and monitoring data arrived, which conditions were met, who approved the recommendation and how it compares with the monthly review.
Site 104 — Audit trail

Data received

Enrollment feed10 of 23 planned; screen-fail 77% over 7 weeks
Monitoring feedVisit Oct 27: 1 open finding, 1 minor deviation
Budget feed$29,800 per patient; study average $26,000

Play evaluated → rule fired

✓ Enrollment lagging (+15)
✓ Screening is the barrier (+10)
Score25 → SUPPORT
Policy gatePassed: no patient safety impact, within support budget

Decision

ActionAdded pre-screening help and an extra monitoring visit
Approved byClinical operations lead, 14:20

Outcome

Monthly review would have saidWatch until the Dec 8 review
ResultActed 18 days before the monthly review
STEP 07

Daily flags

A short daily list of things worth a look, separate from the live feed. Sites with stalled enrollment, new protocol deviations, rising cost per patient and slipping activation dates.
EnrollmentSite 112: no enrollment in 4 weeks
2 of 12 planned; close rule armed after support
MonitoringSite 107: major protocol deviation
Opened Nov 17; medical monitor review pending
BudgetSite 112 cost per patient $41,300
1.6x the study average of $26,000
MonitoringSite 115 activation slipped 2 weeks
First patient now expected Dec 7
STEP 08

ROI scoring and baseline

The optimization engine scores every decision. Every recommendation is measured against the monthly study team review, and against the best decision that could have been made that week. The gap is the ROI you can measure.
TargetDecisionsPatients / monthBaselineBest possibleCapturedResult vs baseline
Site 10461.91.32.646%+0.6 patients/mo
Site 10742.22.02.540%+0.2 patients/mo
Site 11250.90.61.533%+0.3 patients/mo

Baseline: Monthly study team review. Best possible: Best decision each week. 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.
GradesSite health grader

Grades each trial site Green, Amber or Red every week from enrollment, monitoring visits and budget data.

When it acts: Before the weekly study team review; the team decides on support or closure.

Site health:GreenAmberRed
Site-weeks graded195
Red sites later closed2 of 3
Policy breaches flagged1
Disagreements graded6

Agent feed: sample records

TimeTargetSite healthModelAgent’s reason
11/20 02:00 PMSite 104Redv0.9Screen-fail rate 74%; enrollment at 55% of plan
11/20 02:00 PMSite 107Amberv0.9Enrollment slowing; monitoring visit overdue
11/20 02:00 PMSite 101Greenv0.9On plan; no open queries
11/20 02:00 PMSite 112Amberv0.9Open data queries rising for 3 weeks

Policy breaches flagged

Site 115 · Red
Grade note suggested closing the site without medical monitor and sponsor review
11/13 02:00 PM · Flagged; study team chose Support

Checked against the policy gate the moment each output arrives.

Grade against what followed, last 13 weeks

GradeSite-weeksPatients / month afterLater closed
Green1261.90
Amber481.21
Red210.52

Red weeks were followed by far lower enrollment than Green weeks, so the grade is tracking something real.

Disagreements, graded on the outcome

TargetAgentRulesDecision makersWhat followedBetter call
Site 107RedWatchWatchEnrollment fell to zero for 3 weeksAgent
Site 112AmberSupportSupportEnrollment recovered after supportRules

Drift

PeriodModelAgreement
Augv0.774%
Sepv0.8new79%
Octv0.881%
Novv0.9new82%

Agreement here is the share of grades that matched the next month's enrollment. It has improved with each version.

Where scoring is limited. A closed site can't show what it would have enrolled, so Red grades on closed sites are scored on the weeks before closure. The audit produces scoring and evidence; it doesn’t certify the agent.
STEP 10

Fit and next steps

What we’d check first

Why
  • Weekly repeated decision with clear data: enrollment, screen-fail, cost per site
  • Approval limits and a monthly review baseline already exist
To verify
  • How often EDC/CTMS data can be exported, and validation needs
  • Whether enrollment plans are set per site and screen-fail reasons are coded
Extend with AI
  • Forecasting site enrollment and summarizing monitoring visit reports

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