Daily allocation of constrained product across channels
Prepared for Jane Doe · Specialty pharmaceuticals · December 3, 2026
Sample data for illustration.Targets
| Target | Days on hand | Open order | Existing patients | Status |
|---|---|---|---|---|
| Pharmacy A (Northeast) | 5.2 days | 1,200 units | 840 | Active |
| Pharmacy B (Southeast) | 9.8 days | 900 units | 610 | Active |
| Distributor C (National) | 14.5 days | 3,000 units | n/a | Watching |
| Pharmacy D (Midwest) | 7.1 days | 700 units | 420 | Active |
Target detail
Pharmacy A dispense and stock (7 days)
| Date | Dispensed | On hand | Days on hand | New starts |
|---|---|---|---|---|
| Nov 20 | 310 | 1,610 | 5.2 | 14 |
| Nov 19 | 295 | 1,780 | 5.9 | 12 |
| Nov 18 | 305 | 1,950 | 6.4 | 15 |
| Nov 17 | 288 | 2,120 | 7.2 | 11 |
| Nov 16 | 300 | 2,330 | 7.8 | 13 |
| Nov 13 | 292 | 2,500 | 8.6 | 10 |
| Nov 12 | 284 | 2,690 | 9.4 | 12 |
Supply and policy position
Alerts: what the system watches for
Edit alert
Configured alerts
Decision logic: alerts, conditions, plays and rules
Play: Allocate to channels at risk of stockout
- Days on hand under 7
- Open order past due date
- Dispense up 15% in 7 days
- New starts above regional average
- Production lot delayed
Rules
Policy gate
Live feed
Allocate (1)
Allocate 900 units; covers 840 existing patients first
Reallocate (1)
Reallocate 600 units toward Pharmacy D (Midwest)
Hold (1)
Stock adequate; recheck after Nov 26 lot arrives
Audit trail: one recommendation, start to finish
Data received
Play evaluated → rule fired
Decision
Outcome
Daily flags
ROI scoring and baseline
| Target | Decisions | Existing-patient fill rate % | Baseline | Best possible | Captured | Result vs baseline |
|---|---|---|---|---|---|---|
| Pharmacy A (Northeast) | 18 | 97.4 | 91.2 | 99.1 | 78% | +6.2 pts |
| Pharmacy B (Southeast) | 14 | 96.8 | 93.5 | 98.9 | 61% | +3.3 pts |
| Pharmacy D (Midwest) | 12 | 95.9 | 92.0 | 98.2 | 63% | +3.9 pts |
| Distributor C (National) | 11 | 95.2 | 94.0 | 97.0 | 40% | +1.2 pts |
Baseline: Last quarter's share of volume. Best possible: Best split with hindsight. Sample figures; in a live installation, these come from the organization’s own decisions and data.
AI Agent Decision Data
Reads dispense, channel and supply data each morning and recommends Allocate, Hold or Reallocate for each channel partner.
When it acts: Before the supply allocation committee meets; the committee decides.
Agent feed: sample records
| Time | Target | Recommendation | Model | Agent’s reason |
|---|---|---|---|---|
| 11/20 07:28 AM | Pharmacy A (Northeast) | Allocate | v1.4 | 5.2 days on hand; 840 existing patients |
| 11/20 07:28 AM | Distributor C (National) | Reallocate | v1.4 | 24 days of stock on hand |
| 11/20 07:28 AM | Pharmacy D (Midwest) | Hold | v1.4 | Stock adequate until the next lot |
| 11/19 07:30 AM | Pharmacy B (Southeast) | Allocate | v1.4 | Allocate 30% of supply to cover new starts |
Policy breaches flagged
Checked against the policy gate the moment each output arrives.
Agent's call against the rules' call, last 30 days
| Agent | Allocate | Hold | Reallocate |
|---|---|---|---|
| Allocate | 19 | 4 | 0 |
| Hold | 2 | 30 | 1 |
| Reallocate | 0 | 1 | 3 |
Rows are the agent's call, columns the rules' call. The agent allocates earlier than the rules when a channel's stock is falling fast. Shaded cells are agreement.
Disagreements, graded on the outcome
| Target | Agent | Rules | Decision makers | What followed | Better call |
|---|---|---|---|---|---|
| Pharmacy B (Southeast) | Allocate | Hold | Hold | Two existing patients missed fills that week | Agent |
| Pharmacy D (Midwest) | Allocate | Hold | Hold | Stock lasted until the next lot arrived | Rules |
Drift
| Period | Model | Agreement |
|---|---|---|
| Aug | v1.3 | 85% |
| Sep | v1.3 | 86% |
| Oct | v1.4new | 88% |
| Nov | v1.4 | 87% |
Steady since v1.4. A sudden drop would matter here, since allocation errors reach patients within days.
Fit and next steps
What we’d check first
- Same daily decision, clear data feeds and a written policy to build rules around
- Existing-patient fill rate gives a measurable way to judge each recommendation
- How current 852 and dispense data are, and by channel
- Compliance sign-off on rules matching the fair-allocation policy
- Who must approve each recommendation
- Demand forecasts by region and rules for new product constraints
Next step: a formal proposal
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.
- It runs entirely in the organization’s own AWS account, and all data stays there.
- Every recommendation is stored with the full data behind it: labeled records data teams can use to train and test models.
- Built with AI in mind, making maintenance and extension simple for a single technical resource.
Design prototype prepared by Stockurai · Sample data for illustration only · stockurai.com