Upstream API Drift and the Fragility of AI in Evidence Synthesis
Lessons from an implementation failure of PECO-Buddy (v0.1.1) — how unannounced commercial cloud preview modifications broke a verified, frozen toxicological problem-formulation pipeline during a 104-day institutional ethics review window.
Nilsson, J.-P., Whaley, P., & Chan, J. (2026). Upstream API Drift and the Fragility of AI in Evidence Synthesis: Lessons from an Implementation Failure of an AI-Assisted PECO Formulation Tool. Zenodo. https://doi.org/10.5281/zenodo.24396113
Each tab above opens its own self-contained analytical page inside this document.
Chapter 01 • System Design & OHAT Methodological Referent
PECO-Buddy (v0.1.1): Cognitive Scaffolding for Evidence Synthesis
Grounded in U.S. NTP OHAT systematic review guidance (U.S., 2019), PECO-Buddy assists environmental health researchers in translating unstructured hazard concepts into standardized, MeSH-anchored Population, Exposure, Comparator, Outcome (PECO) statements—keeping conceptual meaning strictly under human investigator control.
April 2026 Verification
Deterministic JSON Fidelity ✓
P • POPULATION
Target cohort, life-stage, or biological system (e.g., pediatric cohorts).
E • EXPOSURE
Chemical stressor, route, & biomarker (e.g., umbilical cord blood lead).
C • COMPARATOR
Unexposed reference or background baseline exposure level.
O • OUTCOME
Adverse biological or clinical endpoint (e.g., WISC school-age IQ).
Figure 1: PECO-Buddy (v0.1.1) System Architecture & Formulation Pipeline
Human-in-the-Loop Multi-Step Pipeline
Five Core Baseline Configurations Operationalizing Scope (Section 2.1)
CONFIG 01
PECO Schema Enforcement
response_mime_type: "application/json" bound responses to OHAT JSON keys.
CONFIG 02
Zero-Inference Persona
System prompts instructed extraction of explicit user parameters only—no extrapolated hazard data.
CONFIG 03
Iterative Scoping
Multi-turn stateful sessions retained context & low-temperature hyperparameters across refinements.
CONFIG 04
Hazard Lexicon Throughput
Unrestricted submission of standard toxicological descriptors without false-positive censorship.
Chapter 02 • The 104-Day Administrative Interval & Figure 2
Frozen Local Software, Mutating External Runtime
Because PECO-Buddy transmitted queries to external cloud servers, formal institutional ethics clearance was required prior to toxicologist onboarding. During the 104-day ethics hiatus (May 1 – August 12, 2026), local code remained frozen in version control (archived May 6), while upstream preview infrastructure silently drifted.
2026 CHRONOLOGY OF UPSTREAM DRIFT0 LOCAL COMMITS CHANGED
APRIL 2026
v0.1.1 Benchmarked
Routes to Gemini 3 Flash pool; clean deterministic JSON.
MAY 1 – MAY 6
Ethics Hiatus Begins
API calls suspended; v0.1.1 frozen in archive upload.
MAY 26 – JUNE 8
Schema Deprecation
Legacy JSON flags ignored; HTTP 200 returns raw prose.
Pre-flight audit crashes; user pilot cancelled pre-onboarding.
NEURODEVELOPMENTAL BENCHMARK (Lanphear et al., 2005)
Identical Frozen Input Query
“In children, what is the effect of elevated prenatal lead exposure (measured as umbilical cord blood lead concentration) on cognitive development and school-age IQ (assessed via the Wechsler Intelligence Scale for Children (WISC)) compared to background baseline exposure?”
Why chosen: Unambiguous MeSH indexing & extensive epidemiological documentation make any ontological drift or hallucination immediately detectable.
Certainly! Here is an evidence-based PECO formulation for your
environmental safety inquiry:
```json
{
"population": "Mammalian neonates and developing children...",
"outcome": "WISC IQ, sub-clinical δ-ALA dehydratase inhibition [FABRICATED],
renal tubular biomarkers [UNPROMPTED MeSH: D099999]..."
}
“It’s sort of doing something, but it’s just all sort of paused… I think we broke it… changed a load of stuff as well. I didn’t ask you to do that.”
— Pilot Audit Recording (Fig. 2)
“Force-fed that eligibility criteria, when I’m trying to do a systematic review… not distinguished it from other species, so it was encouraging me to do something wrong.”
— Pilot Audit Recording (Fig. 2)
Comprehensive telemetry audits in August 2026 confirmed that five non-backward-compatible modifications in commercial cloud infrastructure intersected to render PECO-Buddy functionally inoperative:
VECTOR 01Mid-2026
Dynamic Alias Rerouting
The mutable pointer gemini-flash-preview was silently reassigned from the stable Gemini 3 Flash pool to experimental conversational builds (Gemini 3.5, 3.6, 3.7), injecting narrative preambles and hallucinated MeSH terms.
VECTOR 02May 26 – Jun 8
Silent Schema Deprecation
Legacy JSON formatting flags were deprecated in favor of polymorphic response_format. Instead of throwing HTTP 400, endpoints returned HTTP 200 OK with unstructured text, causing silent parser corruption.
VECTOR 03SDK Migration
Multi-Turn Parameter Stripping
Migration to google-genai preserved chat text history but silently dropped systemInstruction personas and low randomness (temp=0.2, top_p=0.8) after Turn 1.
VECTOR 04June 19, 2026
Heuristic Botnet Mitigation
Evaluating structural chemical analogues requires batching syntactically parallel prompts. New anti-scraping heuristics misclassified parallel toxicological batches as synthetic bot traffic, triggering socket drops (block_reason: OTHER).
VECTOR 05False-Positive Bio/Chem Railguards
Safety Moderation Blocking Standard Toxicological Lexicons
Lowered biological/chemical hazard thresholds flagged routine scientific descriptors as policy violations—returning empty strings or throwing SAFETY, RECITATION, and block_reason: OTHER codes on legitimate hazard queries:
Figure 3: Contextual Parameter Stripping & Loss of Scientific Credibility
Stateful Multi-Turn Degradation Mechanism
01 • SCOPING
Iterative Dialogue
Multi-turn refinement of target organs, routes & chemical analogues.
02 • MIGRATION
SDK Revision
Provider protocol shift & transition to unified google-genai.
03 • SERIALIZATION
Silent Strip
ChatSession keeps history but drops systemInstructions & temp=0.2.
04 • REVERSION
Default Generalist
Turn 2+ discards toxicology persona, reverting to high stochasticity.
05 • DEGRADATION
Overly Narrow Scope
Outputs drift from systematic review scope toward narrow primary studies.
06 • IMPACT
Credibility Loss
Inappropriate PECO guidance undermines researcher trust in tool.
Chapter 04 • Qualifying the Model as a Controlled Scientific Instrument
Three-Layer Sovereign Architecture (Table 3)
Rather than tethering academic tools to ephemeral cloud preview aliases, dependable research software archives model weights, inference runtimes, ontologies, and validation rules as a qualified, versioned scientific instrument—scalable from institutional servers (Llama-3-70B) down to a 14B model on a 16GB RAM personal laptop.
Workstation Target
8B / 14B Open-Weight (16GB RAM)
LAYER 01 • PRE-INFERENCE
Deterministic Ontological Grounding
Never rely on LLM parametric memory for CAS numbers or biological hierarchies.
• Chemical Registry Validation: Validate chemical names, CAS registry numbers, and IUPAC identifiers via EPA CompTox Chemicals Dashboard and PubChem APIs prior to prompt assembly.
• Controlled Vocabulary Mapping: Anchor organs, pathways, and endpoints to MeSH, UMLS, and the Adverse Outcome Pathway Wiki (AOP-Wiki).
[EPA CompTox API] ✓
[PubChem CAS Check] ✓
[MeSH / UMLS / AOP-Wiki] ✓
LAYER 02 • COMPUTATION
Sovereign Open-Weight Inference
Immutable checkpoints ensure Year 3 of a review matches Year 1.
• Frozen Checkpoints: Locally archived open-weight models (Llama-3-70B institutional or 8B/14B laptop via vLLM / Ollama), updated only via explicit requalification.
• Domain Safety & Data Sovereignty: Calibrated moderation processes lethal dose, organ failure, and neurotoxic metabolite without external blocks; participant telemetry stays on-premises.
• Zero-Probability Masking: Frameworks like Outlines and Guidance assign sampling probability P = 0 to any schema-violating token at every decoding step—eliminating conversational wrappers and retry loops.
Architectural Design Trade-Off • Format Restrictions vs. Reasoning Breadth (Tam et al., 2024)
Strictly constraining token generation prevents deserialization crashes, but overly rigid schemas can truncate nuanced domain rationales needed to surface implicit variables during PECO problem formulation. Schema design must balance deterministic syntax against reasoning scratchpad breadth.
Switch between the empirical PECO-Buddy failure telemetry (Table 1) and the methodological trade-off matrix comparing commercial cloud APIs against sovereign on-premises infrastructure (Table 2).
Table 1. Technical telemetry and operational failure modes in PECO-Buddy: April baseline versus August 2026 degraded environment
Moderate to high; requires local compute resources (or workstation 8B/14B setup) and technical stewardship.
Explicit trade-off: local infrastructure overhead vs. durable methodological reliability.
Core Conclusion for Evidence-Based Toxicology (Section 5)
Traceability, reproducibility, and methodological precision are poorly aligned with rapid commercial release schedules and opaque cloud moderation heuristics (Schmidt et al., 2025; Cui & Alexander, 2026). Pairing a locally archived open-weight checkpoint with a qualified deterministic runtime (Gond et al., 2026; Nilsson, 2026) provides an auditable foundation for academic research tools.
Scientific StandardQualified Local RuntimeFrozen Weights + FSM Schema
Read the Full Article • Primary Reference
Nilsson, J.-P., Whaley, P., & Chan, J. (2026). Upstream API Drift and the Fragility of AI in Evidence Synthesis: Lessons from an Implementation Failure of an AI-Assisted PECO Formulation Tool. Zenodo.
¹ ResinTox Antivenoms Sweden • ² Evidence-Based Toxicology Collaboration (EBTC), Johns Hopkins Bloomberg School of Public Health • ³ Lancaster Environment Centre, Lancaster University, UK • ⁴ University of Maryland.
Data & Software Availability (Section 9)
Archived development source code, container configurations, and deployment files for PECO-Buddy Public Beta v0.1.1 are openly available at github.com/Jan-P-ResinTox/PECO-Buddy.
CRediT Author Contributions: Conceptualization, Investigation, & Methodology: Jan-Peter Nilsson, Paul Whaley, Joel Chan. Software: Jan-Peter Nilsson, Joel Chan. Supervision: Paul Whaley, Joel Chan. Validation & Original Draft: Jan-Peter Nilsson. Writing – Review & Editing: Paul Whaley, Joel Chan.
Management of Interests: Paul Whaley declares a potential conflict of interest as an author and Editor-in-Chief of Evidence-Based Toxicology (managed under Taylor & Francis / EBTC policies). Jan-Peter Nilsson and Joel Chan declare no competing interests. No external funding was received.
AI Disclosure: All empirical audits, telemetry collection, failure classification, and critical analyses were performed manually by the authors; LLM tools assisted in initial PECO-Buddy evaluation and manuscript linguistic refinement.
Nilsson, J.-P., Whaley, P., & Chan, J. (2026). Upstream API Drift and the Fragility of AI in Evidence Synthesis: Lessons from an Implementation Failure of an AI-Assisted PECO Formulation Tool. Zenodo. https://doi.org/10.5281/zenodo.24396113
Citation copied to clipboard!
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions. If you accept, you also accept our Privacy Policy.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.