Whitepaper
SOP-IR: Compiling SOPs and Protocols into a Verified, Executable Graph
Architecture, Integration, and Operational Design
The Case for Compiling SOPs
Clinical trials are among the longest and costliest stages of drug development, which takes 10–15 years per approved drug (PhRMA) and roughly $1.1–2.6 billion per approved drug, counting failures and the cost of capital, depending on data and method (Wouters et al., JAMA, 2020, corrected 2022; Tufts CSDD, 2016). The clinical operations and development market reached $89 billion in 2024 and is projected to double to $176 billion by 2034 (Polaris Market Research, 2025). Yet the workforce running these trials is strained, with hard-to-fill roles, high costs and frequent turnover. A Phase III trial involves many vendors and large teams working across disconnected platforms. Complexity has simply outpaced human capacity.
When site engagement slips, the costs compound quickly. Each day of delay costs roughly $500,000 in lost prescription drug sales (Smith, DiMasi & Getz, Therapeutic Innovation & Regulatory Science, 2024), and more than $1 million per day in therapeutic areas such as cardiovascular and hematology (Tufts CSDD, 2024); many trials run late; and manual document management generates rework that consumes much of inspection preparation time.
Major vendors—Medidata, Veeva, IQVIA—have responded with real improvements: document classifiers, enrollment predictors, anomaly detection. But each optimizes within its own platform. The coordination work that lives in the seams between systems—chasing documents, reconciling data, tracking who owes what—remains a human job. Past tools also struggled because they asked clinical teams to change how they work. Nytel is built to fit existing workflows, not replace them.
Nytel builds AI agents for regulatory compliance, protocols and EDC, focused on investigator-initiated trials (IITs). The same agents serve CROs, sponsors and other trials. The system is designed to turn clinical trial SOPs into executable, audit-ready AI workflows. It is designed to let one clinical operations expert, supported by agents, carry trial operations around the clock, with humans supervising rather than manually driving every step.
Status. What we’ve built: SOP processing and rule extraction (SOP-IR: SOPs compiled into a verified, executable graph); regulatory document compliance checks; agents for document QC, site activation, follow-up and monitoring; protocol harmonization; and protocol-to-EDC build. All of it is built and tested on multiple protocols, in multi-country settings. The agents read from CTMS, eTMF and EDC; write-back into those systems is in progress. Partners: PCCTC (Prostate Cancer Clinical Trials Consortium) and POETIC (Pediatric Oncology Experimental Therapeutics Investigators’ Consortium). The rest of this paper describes the design.
A common question is whether clinical trials really need a purpose-built ontology when other complex industries, like aviation, manage without one. The comparison actually argues the other way. Airlines run on systems that are already fully digitized: decision logic is narrow and deterministic, encoded directly into software. Clinical trials run on regulatory text—SOPs and Working Practices in natural language, full of conditional rules (“if the site does not respond within 10 business days, escalate”), expiry constraints (“GCP training must be current within 3 years”), and cross-document dependencies (“sub-investigators on the FDA 1572 must appear on the Delegation of Authority Log”). You can’t hardcode that; you need an intermediate representation (SOP-IR) that preserves regulatory intent, stays editable by humans, and can be executed by agents. The ontology isn’t extra complexity—it’s the minimum structure needed to make a PDF into a workflow.
Architecture: One Agent or Many?
Every agent action follows the same three-step pattern: Retrieve data from clinical systems; Analyze using deterministic logic and code—not generative LLMs—for decisions that can be audited; Create auditable outputs. Whether the agent is reviewing an incoming CV or drafting an escalation email, the structure is the same.
The choice between a single agent and a multi-agent pipeline is worth thinking through carefully. A single agent is fast to build and easy to deploy—no orchestration layer, no handoff contracts. The downside is that debugging is harder: when something goes wrong, you have only the final output to work from and no intermediate artifacts to inspect. A multi-agent pipeline produces structured outputs at each stage, making failures much easier to localize. The tradeoff is coordination overhead and more moving parts to maintain.
To start, a single agent covering the full TMF review workflow is the right starting point. The workflow is well-defined, document volume is modest, and the faster iteration cycle matters more early on. Moving to a pipeline makes sense when specific failure modes emerge—not before.
The design for a full Phase III trial calls for roughly 5–8 specialized agents sharing a common knowledge layer: the SOP-IR ontology, a site status database, and message history. They communicate via structured handoffs, not natural language.
| Tier | Agent | Function |
|---|---|---|
| Ingestion | Ingestion | Email, OCR, staging |
| Processing | Classification | TMF matching, extraction |
| Verification | ALCOA++, expiry, cross-refs | |
| Orchestration | Resolution | Issue tracking, escalation |
| Follow-up | Email drafting, templates | |
| Operations | Monitoring | Site visits, data review |
| Safety | AE/SAE detection, reporting | |
| Protocol Deviation | Deviation detection, CAPA |
The built agents—Document QC, Site Activation, Follow-Up and Monitoring—cover the ingestion, processing, orchestration and monitoring roles above. Safety and Protocol Deviation agents are part of the design.
On cost: classification and extraction—the high-frequency, lower-stakes work—runs well on smaller, cheaper models (Haiku/Flash tier), and the design aims for it to make up most model calls. Verification and draft generation, where reasoning quality matters, warrants frontier models (Sonnet/Opus). The savings from this split can be significant, though the exact figures depend on volume and how complex the reasoning tasks turn out to be in practice.
Integration Strategy
Nytel is designed to sit alongside CTMS, eTMF, and EDC—reading state from those systems without replacing them. Today the agents read only; write-back into CTMS, eTMF and EDC is in progress. Integration unfolds in two phases. Phase 1 runs through email and a standalone UI: no API credentials needed, no IT procurement, no changes to partner systems. Phase 2 moves to direct API integration once the workflows have been validated and sponsors are ready to grant access—a process that typically takes weeks to months in enterprise environments and should not be assumed to happen quickly.
| System | Mode | Data Objects |
|---|---|---|
| eTMF | Read-only | Doc metadata, artifact status, TOC, zones |
| CTMS | Read (write-back in progress) | Activation dates, visits, contacts, milestones |
| EDC | Read-only | CRF status, query counts, data lock |
| Read + draft | Doc submissions, coordinator comms |
In practice, eTMF read-only means replicating what a CRA does in a periodic review: pull the artifact inventory for a site, compare it against the expected checklist for the current milestone, apply quality rules, and generate a gap report. The minimal API surface for Veeva Vault covers artifact listing, metadata retrieval, and status updates; Vault Query Language (VQL) is the preferred interface for more structured queries. Where APIs don’t exist, email-based submission with a parallel Nytel document registry is the fallback—UI automation is not, because it breaks with every platform update.
CTMS systems track at site level (visit dates, enrollment counts, contacts); Nytel is designed to operate at milestone level (Pre-SIV, Site Activated, First Patient In). Bridging these views requires a per-sponsor mapping table that translates vendor-specific field names into Nytel’s milestone vocabulary. It’s a one-time configuration, not an ongoing burden—but it does need to be validated against the sponsor’s actual CTMS setup, since field naming varies even within the same vendor’s platform.
Whether integration is working can be assessed on three questions: Are all the data objects the agent needs accessible without manual entry? Is the data fresh enough that decisions aren’t made on stale state? Once write-back is available, do status updates actually propagate back to the system of record?
Operations: Follow-Up, Escalation, and Quality
The design goals for site activation are a shorter median time from CDA executed to site activated and less staff time spent chasing documents. Real-time inspection readiness, meaning the TMF is always current rather than assembled in a rush before an audit, is the third goal. These are design goals, and they depend on cooperative sites, reliable document submissions, and working integrations.
The follow-up cadence is designed to keep pressure on without overwhelming coordinators. At each step the agent drafts the message and staff review and send it:
| Day | Drafted for staff to send | Recipient |
|---|---|---|
| 0 | Initial request | Site Coordinator |
| 3 | First follow-up | Site Coordinator |
| 7 | Second follow-up | Site Coordinator + Field Monitor CC |
| 14 | Third follow-up | Country Monitor escalation |
| 21 | Notice for the Study Lead (blocked) | Study Lead |
Three things prevent this from becoming noise: outstanding items for the same contact are batched into a single weekly draft; reminders pause when a query is already awaiting site response; and the study team can flag a site as quiet (coordinator on leave, site shutdown). Critically, the clock resets on any response—a coordinator who sends a document that then fails QC gets a correction request, drafted for staff to send, not another missing-document reminder.
Time isn’t the only signal. Nytel is designed to build a site responsiveness profile from historical data—typical response times, known holiday calendars, patterns in coordinator turnover—and adjusts escalation windows accordingly. A site that reliably responds in 48 hours doesn’t need the same pressure as one that takes ten days. The hard exception is safety: SAE acknowledgment outstanding beyond 24 hours, or a protocol deviation unresolved after 10 business days, skips the ladder entirely and is drafted straight to the Study Lead and Medical Monitor for staff to send.
Quality
QC rules are layered. Universal rules cover every document—ALCOA++ standards, GCP training currency (3 years), required signatures. Document-type rules add specifics: CV currency (2 years), license validity through study end, certified copy stamp for scanned originals. Sponsor overrides sit on top—stricter thresholds, custom templates, additional required fields—configured per sponsor without touching the underlying rule engine. In practice, the majority of checks are universal; overrides handle the edge cases.
For scans, an OCR confidence below 0.80 triggers human review. That’s where the risk of a missed signature or misread date exceeds the cost of a human look. This threshold will need calibration per document type and will drift as OCR models improve—treat it as a starting point. The review queue should show the original scan, the OCR output, and the specific fields that triggered the flag. A reviewer who can see exactly what the system wasn’t sure about can resolve most cases quickly.
Product Direction
Nytel’s focus is investigator-initiated trials (IITs); the same agents serve CROs, sponsors and other trials. What’s built spans SOP processing and rule extraction, regulatory document compliance checks, protocol harmonization and protocol-to-EDC build, and agents for trial operations. Site activation, the stretch from CDA execution to a site going live, shows how these fit together: it’s where timelines slip first, where the document-chasing burden is most acute, and where CDA-to-activated time gives a clear measure. The worry about scope is reasonable: a full Phase III trial spans hundreds of SOP steps across many documents. The system doesn’t try to automate all of it upfront. A small set of TMF document types—investigator CVs, medical licenses, GCP certificates, FDA 1572 forms, and delegation logs—drives the majority of QC work during activation. Each workflow added after that reuses the same ontology objects, so the marginal effort drops as the system matures.
Each further workflow, such as TMF readiness, site monitoring, or issue triage and CAPA, builds on the same foundation. Institutional knowledge—which sites are slow, which document types generate the most corrections, which sponsors have unusual requirements—accumulates as data rather than disappearing with every staff change.
Protocol drafting is sometimes posed as a choice: does the system ask structured questions and then write the protocol, or does it generate text from a decision-tree representation? These aren’t alternatives—they’re two stages of the same process. A structured intake wizard captures the trial parameters (type, indication, phase, endpoints, population, regulatory pathway) and produces a machine-readable specification. The LLM takes that specification and writes the protocol narrative, constrained to the input schema and house style. The wizard enforces completeness; the LLM handles readability; the machine-readable output means the protocol can drive downstream agent execution without re-parsing it. This won’t work for every case—experienced writers revising a prior version may find the wizard unnecessary—and template-based drafting from an existing protocol is the obvious extension.