Skip to content

AI Agents in Cadence ​

AI agents do the work at every step of a study and stay inside one regulated path: agents read and propose; an accountable person approves; the change executes as that person, with the agent, model and task configuration recorded. The decision is ADR-2630 (kernel decision K037, spec §11); the work is tracked in epic #5545.

This page is the catalogue: the agents, the research-type packs, the autonomy ladder and where each regulatory control lives. It is a plan: an agent is built when its row's issue lands, and the State column says which exist.

The runtime, the Intelligence module (apps/intelligence, composed into the kernel API host, #5374), holds the model port, versioned task configurations qualified per tenant with a signature on evaluation evidence (ADR-2631, #5385), the interaction ledger of agent runs, and per-tenant kill switches and token budgets, under /api/v1/ai. The evaluation harness that produces qualification evidence (stored evaluation runs) and the monitoring that suspends a configuration are built (ADR-2634, #5548, #5574), and so is the kernel side of the agent actor and requester-scoped grants (ADR-2632, #4783); the module does not act as an agent actor yet. The agent tools, the citation verifier and runs that write a Proposal follow in #5547; PHI scrubbing, data residency, more providers and a local-only mode in #5550.

Principles ​

  1. AI output is never clinical fact until a person makes it one. Agents create kernel Proposals only (K-AI-1).
  2. An agent acts for one person and reads with that person's grants, never wider (K-AI-3, K-AI-6).
  3. Grounded or silent: every claim and value cites the kernel nodes the run read (K-AI-4).
  4. The qualified unit is the task configuration, not the model (K-AI-5, ADR-2631).
  5. Risk sets the oversight: model influence and decision consequence set the evidence and the autonomy level.
  6. Every run is retained in the interaction ledger.
  7. Agents live in the normal Canvas screens, are labelled as AI (UX-8), and the study works the same with AI off (K-AI-8).

The autonomy ladder ​

LevelThe agentWho actsAllowed for
0 InformAnswers, explains, summarizes, with citationsNobody; read onlyAny task
1 DraftWrites a Proposal holding the draftA person edits, approves, then executesAny task, clinical data included
2 Approve-to-executeWrites a Proposal holding the exact commandsA person approves, then sends each command as themself, naming the proposal (K-AI-2)Commands the approver could run
3 Standing grantExecutes inside a narrow, time-boxed grant a person approvedThe agent, each action reviewableOperational commands only (K-AI-7)

Agents by lifecycle stage ​

StageAgentWhat it doesApproverMax levelState
DesignProtocol authorDrafts objectives, endpoints, estimands (ICH E9(R1)) and the schedule of activities as a USDM candidate versionSponsor designer1Planned (replaces the template GenerativeProtocolAuthor)
DesignAmendment impactRuns evaluate-only simulation on a draft amendment and explains what changesSponsor designer0Planned
DesignCRF builderProposes CDASH-aligned collection specs and edit checks from the protocolData manager1Planned
DesignEligibility feasibilityTests criteria against connected real-world data and flags restrictive onesSponsor designer0Planned
Start-upDocument drafterDrafts the consent form, plain-language summary and site packs, with a readability checkRegulatory, IRB/EC owner1Planned
Start-upTMF filerClassifies uploads to the TMF Reference Model and flags missing essential documentsTMF owner2Planned
Start-upSite feasibilityRanks candidate sites from performance history and enrolment projectionsClinical operations0Planned
Start-upBudget and contractDrafts site budgets and payment schedules from the schedule of activitiesFinance officer1Planned
ConductPre-screenerChecks a candidate's source data against eligibility; the investigator decidesInvestigator1Planned
ConductSource abstractorPulls values from EHR (FHIR) or source documents into proposed observationsSite coordinator1Planned
ConductData reviewerFinds inconsistencies the edit checks miss and drafts queriesData manager2Planned (first agent)
ConductMedical coderSuggests MedDRA and WHODrug codes with the dictionary pathMedical coder2Planned
ConductCentral monitorWatches KRIs and QTLs and proposes targeted monitoring (ICH E6(R3))Monitor, study lead2Planned
ConductDeviation detectorFinds protocol deviations and proposes their classificationStudy lead, QA1Planned
ConductVisit report writerDrafts the monitoring visit report and follow-up letterMonitor1Planned
ConductSupply forecasterForecasts drug or device supply per siteSupply manager0Planned
ConductParticipant helperAnswers participant questions only from approved consent and visit informationSite coordinator0Planned
SafetyCase intakeStructures a reported event and checks seriousness criteria and reporting clocksSafety physician1Planned
SafetyNarrative writerDrafts the case narrative with every sentence linked to its record (PRD-SYS-052)Safety physician1Planned
SafetySignal scoutLooks for disproportionate events across sites and studiesMedical monitor0Planned
Close-outLock readinessLists everything blocking database lockData manager0Planned
Close-outMapping and conformanceDrafts SDTM and ADaM specs and explains each conformance finding through lineageProgrammer, data manager1Planned
Close-outReport writerDrafts clinical study report sections (ICH E3) from locked dataMedical writer1Planned
AllInspector's guideExplains any record's history and why someone can or cannot act (K-EXP)Auditor, QA0Planned

Level 3 never covers observations, eligibility, causality, seriousness, coding approval, signatures, unblinding or any change to what the study claims about a participant.

Research-type packs ​

Research typeWhat its pack adds
Drug and biologicIND/CTA documents, SUSAR and DSUR rules, ICH E2A and E2B(R3) clocks, WHODrug
Medical deviceISO 14155 investigation plan, device deficiencies, ADE/SADE/USADE classification, EU MDR Article 80 and FDA IDE reporting, device accountability
Diagnostic (IVD)Performance study design, specimen chain of custody, EU IVDR reporting
Cell and gene therapyLong-term follow-up schedules, chain of identity, delayed adverse events
Observational and real-worldNo interventions; EHR and registry sources; no dosing or supply agents
Investigator-initiatedOne person may hold several roles; separation of duties still refuses self-approval

How a run works ​

Steps 1 and 2 and the ledger record in step 5 are built; the tools, the citation verifier and the Proposal a run writes (steps 3 to 5) come with #5547.

  1. A person asks (Assist panel, command palette, a form) or a kernel event fires (new data, an SAE, an amendment, an indicator breach).
  2. The runtime picks the newest task configuration version the tenant has qualified on its current content (or refuses, saying why) and checks the budget and kill switch.
  3. The agent reads through tools that carry the requester's grants, narrowed by the configuration's allow-list.
  4. The citation verifier drops anything that does not trace to a node the run read.
  5. The runtime writes one kernel Proposal naming the model and configuration version, and records the run in the interaction ledger.
  6. A person reviews the diff and citations and approves with an attestation. Approval runs nothing: the approver then sends each of the proposal's commands as themself, naming the proposal (CommandMetadata.Proposal, K-AI-2).

The kernel side of steps 3 and 6 is built (ADR-2632): an agent acts for one person and is bounded by that person's grants and visibility, and the kernel checks each command sent under an approved proposal against it and links it in provenance (proposal_id), events (ProposalExecuted) and lineage (ExecutedUnder). Standing grants (level 3) follow under the same ADR.

The agent factory ​

Agents run as a factory (ADR-2630 §4.8): agent and task definitions are versioned code tested in CI; context comes from kernel reads under the requester's grants and from MCP and APIs; agents run in sandboxed workers with pluggable inference and tenant data kept in the deployment; orchestration routes each task to its qualified configuration under budgets; and access is the Canvas, the subject portal and an MCP server. Evaluation sets from real clinical workflows, a calibrated LLM judge and production signals measure every configuration, and improvements arrive as reviewed pull requests, never as self-modification.

Inference and data sovereignty ​

ADR-2636 decides where models run. Claude is reached through the Claude API, Claude Platform on AWS, Amazon Bedrock, Google Cloud Vertex AI or Microsoft Foundry, and a tenant can be limited to models the operator runs inside the deployment through an OpenAI-compatible endpoint. One router applies each tenant's inference policy (LocalOnly, ResidencyBound by default, or Open), the tenant's residency, the supplier's approval status and the task configuration's qualified routes, and records the route on the run. Every outbound request refuses identity-layer content and scrubs direct identifiers from free text as a protective control. Agent runs execute in a sandbox with no network beyond the routed model endpoint and the kernel read ports. Each provider has a supplier record the sponsor's quality unit approves (Annex 11 §3).

Regulatory map ​

ADR-2630 §4.10 maps 21 CFR Part 11, EU GMP Annex 11 and the draft Annex 22, ICH E6(R3), GAMP 5, the FDA draft guidance on AI for regulatory decision-making, the FDA and EMA Guiding Principles of Good AI Practice, the EMA reflection paper, the device regulations, the EU AI Act, HIPAA and GDPR to the control and the place it lives. Cadence supplies the controls; the sponsor owns the validation and context-of-use argument for its own use.