Skip to content

Cadence Architecture ​

This document describes the system in two views: the target architecture (kernel, engines and applications) and the running system today (a gateway in front of 16 ASP.NET Core product services and the kernel API host). The gap between them is closed by the kernel roadmap and by ADR-2610, which turns the product services into modules of one composition host. The kernel API host becomes that host (ADR-2601, #5315); so far it composes two modules, Intelligence (#5374) and Execution (eCRF forms and their data queries, #5460, #5461), and every service below still runs as its own process.

The normative source for the target is the Clinical Research OS kernel specification v0.2. When this document and the spec disagree, the spec wins; fix this document.

SectionContents
1. Target architectureKernel, six engines, applications, invariants
2. Key decisionsKernel decisions K001–K036 and the platform decisions, with their ADRs
3. Running services todayServices, ports, gateway routes, maturity, disposition
4. Request path and securityOIDC at the gateway, signed identity in services
5. PersistenceDatabases, connection strings, migrations
6. Cross-cutting building blocksTelemetry, health, time, architecture tests, build
7. Migration pathHow today's services become kernel applications

1. Target architecture ​

Cadence is an operating system for clinical research. One kernel holds a single body of clinical truth. Six engines organise the kernel's concepts; products such as EDC, CTMS, eTMF, RTSM, safety and standards conformance are applications built on them (spec §2, §12).

EngineAnswersExamples of kernel concepts
KnowledgeWhat does it mean, and what is supposed to happen?Concept Registry, ProtocolVersion, Estimand, CollectionSpec, Standards Registry
ExecutionWhat is happening, where, and to whom?Organization, Site, StudySite, Participant, Enrollment, Applicability, ClinicalEvent
EvidenceWhat was observed, collected or produced?Observation, Assertion, Source, Artifact, Specimen
TrustWho was allowed, who agreed, where did it come from?Actor, Delegation, Qualification, ConsentStatus, Attestation, lineage graph
QualityIs it right, and is it under control?Rule, ValidationFinding, Risk, Deviation, Lock
IntelligenceWhat does it imply, and what should happen next?AutomationAgent, Proposal

Engines are an organising frame, not deployment units. The rules that shape every change:

  • K-TRUTH-1: no product owns clinical truth; SDTM, ADaM, FHIR and the protocol PDF are projections.
  • K-SCOPE-1: a concept belongs in the kernel if it explains the provenance, authority, meaning or lifecycle of clinical evidence across more than one application.
  • Forbidden redefinitions (spec §2.3): applications never declare their own Study, Site, Participant, Observation, Person, roles, rule engines or audit tables; they reference kernel IDs.
  • Assemblies (spec §2.4): Cadence.Kernel.Abstractions (IDs, ports, IClock) → Domain → Application → Persistence (internal) → Api; applications reference Abstractions and the module SDK Cadence.Kernel.Modules only (K-XS-2). A module writes clinical state by implementing a command handler from the SDK and sending its command through the kernel pipeline, which commits the module's records with the kernel's audit, events and outbox in one transaction (ADR-2600). Cadence.Standards loads public CDISC content into the Standards Registry and Cadence.Rules holds the rule language, rule packs and IRuleEvaluator; both reference Abstractions only.

The domain glossary defines the vocabulary.

2. Key decisions ​

#DecisionADR
K001Modular monolith kernel with a single schemaADR-2244, ADR-2247
K002Bitemporality with hand-rolled tstzrange and exclusion constraintsADR-2246
K003Tenant isolation through row-level security in a shared schemaADR-2250
K004Authority computed from evidence by a hand-coded policy evaluatorADR-2251
K005Concept Registry keyed by CDISC Biomedical Concepts; per-tenant terminology with pinned code-system versionsADR-2252, ADR-2470
K006Identity vault and layered participant identityADR-2253
K007Neo4j dropped; ProtocolVersion snapshots in PostgreSQL with an attested lifecycle, holding a typed protocol design document with stable element ids that USDM 4 studies import into, and a Schedule of Activities compiled from itADR-2245, ADR-2452, ADR-2472, ADR-2473, ADR-2475
K008Rules as versioned data over one AST; public standards only; Rust runtime seam laterADR-2254
K009Lineage graph in the kernel schema, written transactionally, with protocol design elements as nodesADR-2255, ADR-2474
K010Kernel command pipeline: one transactional write set, per-tenant audit chain, outboxADR-2449
K011Simulation evaluates candidate versions and never writesADR-2480
K012Every kernel object has a public NodeRef; the kernel computes its zoom pathADR-2481
K013Standards Registry and MDR as governed, tenant-scoped reference dataADR-2460
K014Anything that decides also explains, with one Explanation type produced by the rule ownerADR-2482
K015Every kernel command declares its capability; a dry run (CanI) takes the same authorization path and is logged, not auditedADR-2483
K016Search queries the source tables with PostgreSQL full-text search under the tenant's RLS, never a copy; results are NodeRefs and identity content is excludedADR-2484
K017Participant is identity only; each Enrollment keeps a bitemporal status history, gap-free numbers under the Study lock, and attested withdrawalADR-2453
K018Rule expression language, rule-pack format and IRuleEvaluator portADR-2461
K019The activity stream is an asynchronous, payload-free projection of outbox envelopes, scoped by the subject's zoom path and masked per reader at read time; integration events are unchangedADR-2485
K020Evidence artifacts are immutable, numbered versions described by hash, size, media type and storage reference; attestations sign a versionADR-2454
K021Authority is kernel grants of a capability or role at a scope with bitemporal validity; a delegation is a grant bounded by its parent; one evaluator reads themADR-2455
K022A validation finding keeps its identity across immutable runs; its status is derived from the runs and from attested decisionsADR-2462
K023Work queues are versioned definitions keyed by a capability; a person's items are what a source reports as due and the evaluator permits them to act on now, so revoking a grant removes its itemsADR-2486
K024Effectivity is bitemporal per protocol version and scope on artifact-version evidence; the most specific scope decides; a study site activates only where a version is in forceADR-2456
K025The expected schedule is a pure function of the protocol design, a reference start and an as-of date, on the SDTM study-day axis (no day 0); simulation reports schedule changes from itADR-2487
K026Pulse metrics, attention rules, KRIs and QTLs are versioned indicators in released, study-pinned indicator sets, counted through the rule evaluator; each value names its definition version, its objects and an explanationADR-2488
K027Visibility is computed from the reader's grants in effect: what they cover, the scope path above them, participants and sites through their study sites, and reference data; everything else is maskedADR-2457
K028A mapping specification is a governed library item pinned to one standard version, CT versions and Concept versions; a protocol version is submitted only when every collected Concept is mapped or its gap is an accepted finding (K-STD-1); the engine sits behind IMappingEngineADR-2463
K029Direct identifiers live only in the IdentityVault: sealed per record under a per-tenant key, reached through its own functions, and recorded, revealed, erased and linked by audited kernel commands; residency is a tenant propertyADR-2458
K031Actor prerequisites are bitemporal Qualifications with artifact evidence; requirements name the qualification a capability needs within a scope, and the evaluator denies naming what to obtain or renewADR-2459
K032An actual visit is measured against its expected window with no built-in severity (importance is a Quality rule); visits may be anchored on another visit's actual date, and repeating cycles expand into numbered occurrences, all in the one schedule functionADR-2507
K033An AI or a person suggests a change as a Proposal that changes nothing until a person executes it; only a person approves, with an attestation over its content hash; agents may read and propose but never execute or approveADR-2489
K037AI agents run in one governed runtime (the Intelligence module) whose only write into clinical data is a Proposal; each task has an autonomy level from 0 (inform) to 3 (standing grant, operational commands only); proposals cite what the agent read and name the qualified task configuration; an agent reads only with its requester's grantsADR-2630
K034An Observation keeps one id and appends insert-only revisions on correction; value Assertions cite the revision; Locked/Frozen are scoped Assertions with an attestation and unlock, guarded by shared scope locksADR-2620, ADR-2621
K035A form instance is a kernel CollectionInstance; one command saves a whole page with an expected revision per value; structural checks before commit, edit checks after; form signatures bind to the members' revisionsADR-2622
K036Observation values are typed: quantity with UCUM unit, coded with code-system version, text, boolean, partial ISO 8601 date/time, or missing with a null flavor; stored as jsonb and projected to --ORRES/--ORRESU/--STAT/--REASNDADR-2623
—One database, a schema per moduleADR-2447
—Fail-closed gateway identity and signed caller authenticationADR-2256
—No default credentials; secrets resolve fail-closedADR-2260
—Services fail startup on missing required settingsADR-2490
—Trusted forwarded headers, HSTS and per-caller rate limits at the edgeADR-2491
—The web app signs in only through KeycloakADR-2493
—Field-level encryption and keyed lookup hashes for secrets at restADR-2494
—X-Change-Reason is printable ASCII or RFC 8187 UTF-8'' encoded, decoded before auditADR-2495
—Routes require a resource:action permission from the permission matrixADR-2510
—Routes are denied unless they declare a permission, a reasoned signed-in caller or anonymous access; study scope fails closedADR-2516
—Agent tools read as the requester, mark results as untrusted data, and only cited claims reach a Proposal naming its model and task configurationADR-2633
—Safety, Notifications and CTMS render routes need safety_report:create, notification:send, ctms_monitoring_visit:createADR-2511
—The safety ICSR render emits the ICH E2B(R3) HL7 v3 message, checks the ICH business rules first and validates the output against the vendored ICH schemaADR-2464
—Form approval payload_hash is SHA-256 of the RFC 8785 canonical payload, computed by the client from what it submittedADR-2513
—The caller's tenant is the tenant_id the sign-in token carries; a token without one reaches no kernel tenant, and there is no fallback tenantADR-2514
—Forms: skip logic and constraints are written in the one rule language and compiled to XPath; reusable form blocks are CollectionSpecification library items; the tripartite form definition is not carried forwardADR-2502, ADR-2503, ADR-2504
—The kernel API host serves the Canvas's kernel reads (nodes, zoom path, children, command catalogue, CanI, search, protocol versions, Trace, dependents, amendment impact, activity stream) under /api/v1/kernel, and runs the activity projectorADR-2540
—Each of the 17 product services becomes a module in one composition host or merges into one; org administers kernel Grants instead of keeping its own delegation modelADR-2610
—The kernel Observation owns the clinical value; a correction commits value, revision, reason, version, audit link, event and outbox row in one transaction, and the eCRF form instance owns workflow onlyADR-2620
—Step-up signature tokens are single use across instances and restarts (PostgreSQL in Execution)ADR-2515
—Explicit EF Core transactions run inside the execution strategy, or are removed where one SaveChangesAsync is the whole writeADR-2523
—Every mapped test is mandatory evidence; feature branches never commit the RTM or IQ/OQ/PQ snapshot, which only the integration owner regeneratesADR-2531, ADR-2532
—Web coverage is measured over all source with a ratchet floorADR-2530
—Python reference sources are deleted once their C# port is testedADR-2492
—The developer CLI parses with System.CommandLine and publishes as Native AOT without suppressionsADR-2496
—.NET 10 platform standards (C# 14, Minimal APIs, EF Core 10, CPM)ADR-2233

The full list is in the ADR index.

3. Running services today ​

Every backend is an ASP.NET Core 10 Minimal API host under apps/<name>/src, built from Cadence.sln. The service topology manifest (packages/topology, #5315) holds each service's port, address variable and gateway routes; the gateway and the AppHost are built from it, and ServiceTopologyTests fails when docker/docker-compose.yml or this table disagrees with it. Each service has a README with its details.

ServiceProjectPortGateway routes (/api/v1/…)PersistenceTodayADR-2610 disposition
gatewayCadence.Apps.Gateway8000 (behind the nginx front proxy in compose)all of the below; each route is tested against the endpoints its service maps (ADR-2448); a stalled service gets a 504 and an unhealthy one a 503 without forwarding (ADR-2451)noneImplementedStays: OIDC edge in front of the composition host
executionCadence.Apps.Execution8002executionExecutionDbContextImplemented (EDC core); eCRF forms and their queries moved to the Execution module in the kernel host (ADR-2622, #5461)Module (#5378)
ctmsCadence.Apps.Ctms8007ctmsCtmsDbContextFeatures on its own schemaModule (#5378)
etmfCadence.Apps.Etmf8003etmfEtmfDbContextFeatures on its own schemaModule (#5378); absorbs eisf and fileshare sharing
paymentsCadence.Apps.Payments8016paymentsPaymentsDbContextFeatures on its own schemaModule (#5378)
interopCadence.Apps.Interop8004interopInteropDbContextFeatures on its own schemaModule (#5378)
imagingCadence.Apps.Imaging8014imagingImagingDbContextFeatures on its own schema (no segmentation model; the route refuses, #5426)Module (#5378)
safetyCadence.Apps.Safety8008safetySafetyDbContextFeatures on its own schemaModule (#5378)
econsentCadence.Apps.Econsent8011econsentEconsentDbContextFeatures on its own schemaModule (#5378)
knowledgeCadence.Apps.Knowledge8015knowledgeKnowledgeDbContextFeatures on its own schemaModule (#5378)
designerCadence.Apps.Designer8001studies, protocolsnone yetScaffoldModule (#5378)
ticketsCadence.Apps.Tickets8009ticketsTicketsDbContextScaffoldModule, built out in the host (#5377)
qualityCadence.Apps.Quality8005qualityQualityDbContextScaffoldModule, built out in the host (#5376)
orgCadence.Apps.Org8012orgOrgDbContextScaffoldModule over kernel Grants and Qualifications (#5375)
eisfCadence.Apps.Eisf8010eisfEisfDbContextScaffoldMerges into etmf (#5371)
fileshareCadence.Apps.Fileshare8013fileshareFileshareDbContext + MinIOScaffold (two background workers)Storage and conversion become a host capability; sharing merges into etmf (#5372)
notificationsCadence.Apps.Notifications8006notificationsNotificationsDbContextScaffold (one render route)Host capability (#5373)
kernel-apiCadence.Kernel.Host8018kernel, ai (the Intelligence module), execution/forms (the Execution module)KernelDbContext (schema kernel); the Intelligence module's IntelligenceDbContext (schema intelligence) and the Execution module's ExecutionModuleDbContext (schema execution); both with Row-Level SecurityCanvas reads (ADR-2540) and the observation commands (ADR-2620); decisions and visibility from grants (ADR-2455, ADR-2457); the Intelligence module (apps/intelligence): the governed AI agent runtime, its run ledger and controls, and the command-palette intent router (ADR-2630); the Execution module (apps/execution/module): eCRF forms over kernel form instances (ADR-2622)The kernel, hosted in-process by the composition host (#5315)

"Features on its own schema" means the service serves real workflows but still keeps its own DbContext, module-local audit table and string study, site and participant IDs, which the kernel replaces as it becomes a module (ADR-2610 §5). "Scaffold" means the host, security, health checks and usually a DbContext exist, but the service maps few or no endpoints. Until the composition host (#5315) and each follow-up land, the table above is what runs; each move removes the old host's gateway cluster, AppHost entry and compose service together.

Other runtime pieces:

ComponentPathNotes
Web clientapps/webVue 3 + Vite (port 5173); signs in through Keycloak
Subject portalapps/subject-portalParticipant PWA (port 5174)
Aspire AppHostapps/apphostLocal orchestration of PostgreSQL (database cadence), MinIO, Keycloak, every .NET service and the web app; a core profile runs the gateway, kernel API, execution and web only, optionally on an existing PostgreSQL and Keycloak
Keycloakdocker/cadence-realm.jsonOIDC identity provider (port 8080), realm cadence
PostgreSQL 18compose postgresOne cadence database with a schema per service (ADR-2447)
MinIO, ClamAVcompose profile storageObject storage (fileshare, through packages/storage) and upload scanning (no service calls ClamAV yet)
Front proxycompose front-proxy (nginx)Port 8000; forwards the web apps' API calls to the gateway
Other compose servicesdocker/docker-compose.ymldotnet-dev (SDK container)

4. Request path and security ​

Decided in ADR-2256:

  • The gateway requires an authenticated caller on every proxied route and fails at startup without OIDC_AUTHORITY or a GATEWAY_SECRET of at least 32 characters.
  • Every service calls AddCadenceSecurity() / UseCadenceSecurity() (packages/security). Only health, status and development API-doc endpoints allow anonymous access.
  • Application code takes identity and roles from the verified claims only. A PI signature records the authenticated caller as signer.
  • Signing a PI form approval needs a fresh re-authentication: the gateway re-checks the signer's password with Keycloak and issues a 60-second X-Sig-Token bound to the user, form and meaning (ADR-2259). Batch PI sign-off and the delegation-log sign-off bind the token to the exact targets (batch_id). Each token signs once: Execution, eConsent and Knowledge record its use in PostgreSQL, in their own schema, so single use holds across instances and restarts, and a host that maps a signed route without a durable store refuses to start outside Development (#5434) (ADR-2515).
  • The web app signs in only through Keycloak (authorization code + PKCE) and keeps tokens in memory; only the opt-in demo build uses an offline demo identity (ADR-2493).
  • Secrets that services must keep are protected at rest: payment processor references and signer e-mail addresses are AES-256-GCM encrypted (FIELD_ENCRYPTION_KEY), device tokens are stored only as keyed HMAC-SHA256 lookup hashes (FIELD_LOOKUP_HASH_KEY), and consent signature captures only as a SHA-256 binding to the signed content (ADR-2494).
  • A reason for change in any language travels in X-Change-Reason as printable ASCII or an RFC 8187 UTF-8'' percent-encoded value; the gateway rejects a malformed value with 400, and services decode it so the audit trail stores exactly what the user typed (ADR-2495).
  • A route that needs a role declares .RequirePermission("resource:action"); the policy is built from the permission matrix and answers 403 to any caller whose roles lack it (ADR-2510).
  • Routes are denied by default. Every route declares a permission, a reasoned RequireSignedInCaller, or AllowAnonymous() (health, status and development API documents only), and study scope fails closed: a caller reaches a study only when the gateway-signed study_ids assignment names it. RouteAuthorizationTests boots every service and proves an unauthorized caller is refused before the handler runs (ADR-2516).
  • Forwarded headers are honoured only from proxies listed in CADENCE_TRUSTED_PROXIES, responses outside Development carry HSTS, and the gateway limits each caller to GATEWAY_RATE_LIMIT_PER_MINUTE requests (default 600) and answers 429 with Retry-After above it (ADR-2491).

In the target architecture, authority is computed from evidence (training, delegation, qualification) by the kernel's policy evaluator (ADR-2251), not from role strings.

5. Persistence ​

  • PostgreSQL 18 through EF Core 10 + Npgsql (tests, CI and compose pin one image, ADR-2533). AddCadencePostgresDbContext (packages/database) resolves ConnectionStrings:cadence (set by the Aspire AppHost), then POSTGRES_CONNECTION_STRING. Only the Development environment falls back to the local compose database; any other environment fails at startup. Transient-failure retries are enabled.
  • One database, a schema per service (ADR-2447): every service connects to the shared cadence database with its search path set to its own module schema (ctms, execution, …). The kernel owns the kernel schema.
  • Migrations live in each service's Infrastructure/Persistence/Migrations/ and are managed with scripts/manage_migrations.ps1 (see AGENTS.md §10). Database__MigrateOnStartup=true applies them at startup; Database__MigrateOnly=true runs them as a deployment job and exits. See the database runbook.
  • The kernel schema is implemented in packages/kernel (README):
    • Row-level security is enabled and forced on every table, with composite (tenant_id, id) keys (ADR-2250).
    • Bitemporal tables use guarded tstzrange columns (ADR-2246).
    • Every change is a command whose aggregate, provenance, events, audit-chain link and outbox rows commit in one transaction (ADR-2449).
    • The kernel API host runs the background jobs (AddKernelBackgroundJobs): the outbox relay delivers committed events to the host's in-process consumers, and each tenant's audit chain is verified and sealed hourly. Each pass holds a PostgreSQL leader lock, so one replica runs each job at a time (ADR-2601). The host also runs the activity projector (ADR-2485).
    • The lineage graph (spec §9.6) is written in the same command transaction (KernelLineageStore, ADR-2255).
    • The kernel Observation owns the clinical value: each correction appends an insert-only revision with its reason, checks the expected version and lock, and commits with its audit link, event and outbox row (ADR-2620).
    • A Concept Registry holds pinned terminology (ADR-2470).
    • A Standards Registry holds standard versions (datasets, variables, value-level definitions) and a governed library of versioned items that studies pin; approval and deprecation need an attestation (ADR-2460).
    • Mapping specifications map Concepts to standard variables before first data capture: a protocol version is submitted only when every collected Concept is mapped in the study's pinned specifications or its gap is an accepted finding (K-STD-1); IMappingEngine applies them, with a .NET engine in Cadence.Standards (ADR-2463).
    • Protocol versions move Draft, InReview, Approved, then Superseded or Withdrawn. Submitting freezes the content under a SHA-256 hash, and approval or withdrawal needs a person's attestation on that hash (ADR-2452).
    • Every kernel object has a public NodeRef (kind:id@version), and IKernelNavigator resolves one to a summary and its zoom path (ADR-2481).
    • A decision, such as a denied command, carries an Explanation: the claim, every evaluated condition with its evidence and the next actions, produced by the component that owns the rule (ADR-2482).
    • Every kernel command declares its capability. IAuthorizationProbe answers "can I?" and lists the commands offered on an object through the same decision path as a real command; dry runs go to the access log, not the audit chain (ADR-2483).
    • IKernelSearch finds studies, sites, organizations, concepts, terminology codes, standards and library items by code or title, querying the source tables under the tenant's RLS with GIN full-text indexes (ADR-2484).
    • Rule packs are released library items evaluated through IRuleEvaluator in Cadence.Rules (ADR-2461).
    • A validation run records what a study's pinned rule packs detected. Findings keep their identity across runs, are resolved by the run that no longer detects them, and are accepted or explained only with an attestation over the decision's text; their status is derived from the runs and decisions on read (ADR-2462).
    • A Participant is identity only. Each Enrollment in a study keeps a bitemporal status history, takes a gap-free enrollment number under the study's lock, and needs an attestation to withdraw (ADR-2453).
  • Still to come: the product services moving from their own DbContext and schema onto kernel concepts (ADR-2610).
  • Audit: the EF Core GxPAuditInterceptor (packages/database) populates CreatedAt, CreatedBy, ReasonForChange and VersionIndex (21 CFR Part 11) and attributes every write to a real user or a named service account (ADR-2257). Only Execution registers it today; the other services map an audit table it does not write and set audit fields by hand until AddCadencePostgresDbContext registers it for every context (#5312).
  • Transactions: an explicit EF Core transaction runs inside the execution strategy so transient-failure retries replay the whole unit; where one SaveChangesAsync is the whole write, no explicit transaction is opened (ADR-2523).
  • Messaging: Execution, eTMF, eConsent and Notifications publish integration events through the MassTransit EF Core transactional outbox (ADR-2814). Kernel events use the kernel outbox (ADR-2449). MassTransit stays on the Apache 2.0 8.x line; 9.x is a commercial product that needs a licence key, so Dependabot does not offer it (ADR-2524).

6. Cross-cutting building blocks ​

ConcernWhereWhat it does
Healthpackages/telemetry/healthz/live (no checks) and /healthz/ready (every DbContext reachable); /healthz returns a static payload
Telemetrypackages/telemetryOpenTelemetry traces, metrics and logs named after the service (OTEL_SERVICE_NAME); OTLP export when OTEL_EXPORTER_OTLP_ENDPOINT is set
TimeCadence.Kernel.Abstractions IClockDateTime.Now/UtcNow are banned (BannedSymbols.txt); take time from IClock (K-TIME-3). Remaining call sites: clock migration backlog
Architecture teststests/Cadence.ArchitectureTests/ArchitectureK-XS-1, K-XS-2 and K-MOD-1, and a [KernelRule]-tagged test for every kernel rule, each with a checked-in baseline that may only shrink (tests/Cadence.ArchitectureTests/ArchitectureBaselines/)
Securitypackages/securityGateway authentication scheme, HMAC signing, audit digest, e-signature tokens, field encryption and lookup hashes (Cadence.Security.FieldProtection)
BuildDirectory.Build.props, Directory.Packages.propsnet10.0, nullable enabled, warnings as errors, Central Package Management
Contractspackages/contractsZero-dependency MassTransit event contracts for cross-service outbox messaging
Topologypackages/topologyThe service topology manifest: each service's port, address variable and gateway routes; the gateway and AppHost are built from it (#5315)
DDF compilerpackages/ddfUSDM → DDF intermediate representation → CDISC ODM / XForms
De-identificationpackages/deidIn-process de-identification and canonical signing (ADR-2261)
Storagepackages/storageS3/MinIO blob store used by fileshare; becomes the host's storage capability (ADR-2610, #5372)
GxP evidencepnpm cadence gxp sync / gxp snapshotRequirement tags on tests feed the RTM and IQ/OQ/PQ report; branches validate a preview, and only the integration owner commits the snapshot (ADR-2531, ADR-2532)

7. Migration path ​

Cadence develops and integrates in one repository under ADR-2603. Follow the project plan for current delivery order, module owners, and acceptance evidence. The kernel roadmap (spec §15) describes the longer-term capability phases:

PhaseOutcome
0. FoundationsKernel projects, IClock, tstzrange, RLS, command pipeline, architecture baseline
1. EDC on the kernelapps/execution runs on kernel concepts and proves the reference visit
2. Knowledge and standardsConcept Registry, executable protocol, standards registry, rules, lineage
3. Quality and trust expansionRBQM, computable consent, specimens, ingestion, AI proposals
4. Analysis and submissionDerivations, ADaM, TLF lineage, Define-XML, submission package
5. Lifecycle breadthFeasibility, start-up, finance, recruitment, DCT, regulatory, RWE

The services reach the kernel by becoming modules of one composition host (ADR-2610). The order, from the architecture audit epic #5310, is: honest test evidence and contained failures; one composition host and one kernel command path (#5315, #5366); the eCRF end to end on it (#5365); concurrency, durable jobs and recovery (#5362, #5364); then the other modules (#5367, #5371–#5378). Each module conversion follows the fold-in rules: one owner per authoritative fact, query and command contracts and durable events between modules, and no competing authoritative copies.

Work is tracked in epic #4719. The Python-to-.NET port that preceded this is complete; its playbook remains in docs/MIGRATION_WORKFLOW.md for porting the remaining Python reference sources listed in docs/PYTHON_REFERENCE_INVENTORY.md (#4789); each is deleted once its port is tested (ADR-2492).