← All publications

GxP-Agent: Automating ADSL Generation with AI Agents and the Pharmaverse

Jaime Yan

Conference paper · R/Pharma 2026 · 2026 · code demo talk

Companion code Slides

Abstract

A 20-minute code-demo talk. ADSL programming repeats the same 49-variable derivation work for every study, under GxP, where the process — not just the output — must be inspectable. The talk shows the leverage is in the harness and context, not the model: with structure fixed around the same frontier models, coverage goes from 0% (single-shot) to 84–100% (structured pipeline + validation gates). The design rule — the model translates the spec into a closed, reviewable vocabulary, and deterministic code does the generating — is productized as admiralagent, an installable R package: the rules backend runs the full pipeline offline, validate_ir() is fail-closed, routing_plan() computes execution waves plus an explicit human lane from spec lineage, and every output carries # CHECK: comments, a provenance sidecar, and a hash-chained audit log. On the real pilot1 submission spec, 17 variables routed to waves, 16 executed end-to-end, 14 of 16 matched the submitted adsl.xpt oracle at 100%, and the remaining 32 went visibly to human review.

Keywords

ADSL · GxP · LLM agents · pharmaverse · admiral · clinical trial programming · audit trail

Cite

Jaime Yan. "GxP-Agent: Automating ADSL Generation with AI Agents and the Pharmaverse." R/Pharma 2026, 2026.