If the model behind your pilot changes silently, your treatment condition changes with it. If the API goes down, students see errors in class. You can prevent both: pin a dated model version, set a timeout of about 20 seconds with one fallback, and log every call so a deviation can be measured instead of going unnoticed.
What happens to our pilot if an LLM API changes or goes down mid-study?
What actually goes wrong, and what it does to your data
An LLM-backed study can fail in two ways. The loud way is an outage, and teachers notice it. The quiet way is a change in model behavior, and nobody notices until the analysis looks strange. The quiet failures do more damage to an efficacy study, because they mix two treatments under one label.
| Event | What students and teachers see | What it does to the study | Main defense |
|---|---|---|---|
| Provider outage or rate limiting | Spinner, error message, lost class period | Missing sessions, unequal exposure across classrooms | Timeouts, fallback, cached content |
| Alias silently points to a newer model | Nothing obvious; answers read a little differently | Treatment changes partway through the study | Pin a dated model version |
| Model version retired by the provider | Feature stops working on the retirement date | Forced switch, often mid-semester | Track retirement dates, pre-test a replacement |
| Safety filter or policy change | Some prompts refused or answered differently | Systematic missing data on certain topics | Log refusals as their own outcome |
| Latency spike | Students wait 15–40 seconds per turn | Shorter sessions, lower engagement scores | Monitoring with an alert threshold |
The checklist
1. Pin model versions
Call the dated or snapshot model identifier your provider publishes, not a floating alias like "latest". Store the prompt templates in version control with a version number, and write both into every log row. Before the pilot starts, check the provider’s deprecation schedule and confirm the pinned version will still be served on the last day of data collection.
2. Timeouts and fallbacks
Set a hard timeout, usually 15–30 seconds for a classroom interaction, and allow one retry with backoff. After that, the app does what the protocol says it does: it switches to a second provider or model, serves cached or scripted content, or shows a plain message and lets the student continue without the AI step. Never let a student sit on a spinner.
3. Cached responses
If items are fixed, such as generated problems, hints for a set item bank or worked examples, generate and review them before the pilot and serve them from your own database. That takes the API out of the live path for that content completely. Keep live generation only where the study needs it, such as open-ended tutoring dialogue.
4. Monitoring
Track error rate, p95 latency, fallback rate and refusal rate per hour. Alert someone on the team when the error rate passes about 2% or latency passes your timeout, during school hours only. A daily summary also catches slower drift, for example when average response length shifts by a third overnight.
5. A protocol for logging deviations
Every AI call writes a row with model_id, prompt_version, condition, latency_ms, fallback_used, cache_hit and error_code, tied to a pseudonymous student ID. Keep a deviation log beside it with the date, the affected classrooms and sessions, the cause and what the app did. Your analyst can then flag or exclude those sessions without guessing.
A fallback is a different condition: decide in advance
If your study compares two prompting strategies or two models, a fallback to another model breaks the comparison for those sessions. Write the rule into the analysis plan before data collection. Choose whether a fallback session counts as missing, as protocol deviation, or as an intention-to-treat observation.
For comparison studies we usually recommend a non-AI fallback, such as cached content or a skip, over a substitute model. It is easier to explain, and it keeps the two arms clean.
Worked example: a three-hour outage in week four
This example is illustrative. A pilot runs six weeks in 20 classrooms, with about 25 students each and three AI sessions per week. That makes roughly 9,000 planned sessions. A provider outage lasts three hours on a Tuesday morning and touches 6 classrooms, or 150 sessions.
- Without the checklist: 150 sessions fail partway, some teachers abandon the activity for the week, and the data team finds out from a teacher email. Nobody can say exactly which records are affected.
- With the checklist: the timeout trips after 20 seconds, cached hints are served,
fallback_usedis true on 150 rows, the alert fires within minutes, and the deviation log entry is written that afternoon. That is about 1.7% of sessions, flagged and analyzable.
For context, we took a research prototype to a district-approved classroom pilot in under 30 days, with 20 teachers in two districts. Pre-generating and reviewing more than 100 framework-compliant problems is part of what kept live API calls out of the critical path.
What to tell the IRB and the program officer
Before the study starts, describe the AI component honestly in the protocol. Name the provider, the pinned model version, what happens on failure, and what data is sent to the provider. Whether a mid-study model change counts as a modification needing approval is your IRB’s decision, not ours, so ask them up front which changes they want reported and how fast.
- IRB: report changes that alter what participants see or what data leaves your systems, such as a new provider, a new model or a new data flow. Routine outages that triggered a pre-approved fallback usually go in the deviation log, but confirm that with your IRB.
- Program officer: put material events in your next progress report with the numbers, for example sessions affected, the fallback used and the analysis impact. A forced model retirement that delays a milestone deserves an email when it happens, not a surprise at the annual review.
- Data use agreements: if a fallback sends student text to a second provider, that provider has to be covered by the agreement before the pilot, not after. Your institution’s compliance office signs off.
Program officers read a deviation log with numbers in it as evidence that you are running a controlled study. An unexplained gap in the data reads as a research project that lost control of its software.
What it costs to put in place
On an existing prototype, version pinning, timeouts, a fallback path, call-level logging and basic monitoring typically take 40–80 engineering hours. At $85 an hour that is $3,400–$6,800. The top of the range applies when content has to be pre-generated and reviewed, or when the logging schema has to be retrofitted into a data model built without it. Budget it before the pilot. Adding it after the first outage costs more and leaves the early weeks unrecoverable.
Frequently asked questions
Can we just use the latest model alias so we get improvements automatically?
Not during data collection. An alias can point to a different model partway through the study, which changes your treatment without a record of when. Use the dated version for the pilot and evaluate newer models between study phases.
What if our pinned model is retired before the study ends?
Check the provider’s deprecation schedule before launch and choose a version that will outlast your data collection. If a retirement is announced anyway, test the replacement on your prompts, document the differences, tell your IRB and program officer, and log the switch date so analysis can account for it.
Should we self-host an open-weight model to avoid API risk?
It removes version drift and provider retirement, but you take on hosting, GPU cost and uptime yourself. For a pilot of a few hundred students, a pinned API model with caching and a fallback is usually cheaper and more reliable. Self-hosting makes sense when data cannot leave your institution or the study runs for years.
Does an API outage invalidate our efficacy study?
Usually not, if the affected sessions are identified and the analysis plan says how to treat them. The real damage comes from outages and model changes nobody recorded. Call-level logs with model ID and fallback flags let the analysis exclude or adjust for those sessions.
Who should own monitoring during the pilot, the grad student or the vendor?
Whoever can respond during school hours and fix the app the same day. Alerts often go to both, with the engineering team owning the fix and the research team owning the deviation log. Agree on this in writing before the first teacher logs in.
Related answers
Running an AI-backed pilot this year?
We offer a free 30-minute review of your pilot plan or the technical section of your proposal. Bring the prototype’s repository or a demo, your pilot timeline and your funder’s requirements, and we will show you where the API risk sits and what to fix first. Start a conversation.