Appearance
Cadence Clinical Research Software
An operating system for clinical research: one platform for the whole lifecycle of developing evidence about an intervention, from protocol design to submission.
IMPORTANT
Pre-release. Cadence is in active initial development and is not validated for use on real clinical trials. Local containers, Keycloak realms and seed data are synthetic and for evaluation only. Explore the documentation portal, interactive staff demo, and participant portal demo directly in your browser with synthetic data, or see SUPPORT.md for pilots and commercial enquiries.
What Cadence is
Most eClinical stacks are a bundle of products (EDC, CTMS, eTMF, safety, a conformance validator), each owning its own copy of the study, the site and the participant. Cadence inverts that: a single clinical kernel holds the body of clinical truth, and every product is an application built on it.
- Six engines over one kernel: Knowledge, Execution, Evidence, Trust, Quality and Intelligence.
- Founding invariant (K-TRUTH-1): no product owns clinical truth, and no representation (SDTM, ADaM, FHIR, the protocol PDF) is clinical truth. They are projections.
- Executable protocol: the protocol is a versioned model (CDISC USDM); the PDF is a rendering.
- Standards are native: CDISC/FDA/PMDA conformance rules are versioned data evaluated continuously, from design time onward.
- Authority is computed from evidence (training, delegation, qualification), not from role strings.
The normative design is the Clinical Research OS kernel specification v0.2, with its decisions recorded in ADR-2244 to ADR-2255 (see the ADR index).
Where the code is today
The platform was ported from Python to .NET 10 / C# 14 (September 2026) and is now being re-founded on the kernel. Both of these are true at once:
| Today (running code) | Target (kernel spec §2, §12) |
|---|---|
17 ASP.NET Core 10 product services and the kernel API host under apps/, each with its own schema, behind a YARP gateway | One modular monolith: kernel + engines in a single PostgreSQL schema, products as application modules (ADR-2244) |
apps/execution (EDC) is the most complete service | Execution is the first product brought onto the kernel (reference workflow) |
packages/kernel holds the kernel projects with typed IDs, IClock, forced row-level security, bitemporal tables, the command pipeline with a per-tenant audit chain and outbox relay, the Concept Registry, the Standards Registry with its governed library, attested protocol versions holding a typed protocol design document whose elements are lineage nodes, with bitemporal effectivity, study-site activation and an expected schedule computed from the design, public NodeRefs with kernel-computed zoom paths, one Explanation type for every decision, declared command capabilities with dry-run authorization, tenant-scoped search, participants with a bitemporal enrollment lifecycle, rule packs evaluated through IRuleEvaluator with validation runs and findings, Study Pulse indicators, evidence artifacts, grants, roles and delegations as bitemporal authority with grant-backed visibility, qualifications that gate capabilities on current training, capability-keyed work queues, and an IdentityVault that seals direct identifiers behind audited reveals | Kernel phases 0–5 in spec §15, tracked in epic #4719 |
| Neo4j is gone from the code, the CLI, the setup scripts and the dev container | Neo4j retired; protocol versions stored in PostgreSQL (ADR-2245, #4790) |
Some packages/ still contain Python reference sources for untested or missing ports | Listed in docs/PYTHON_REFERENCE_INVENTORY.md and deleted as each port is verified (#4789) |
ARCHITECTURE.md describes both views in detail.
Repository layout
| Path | Contents |
|---|---|
apps/<service>/ | ASP.NET Core 10 services (src/Cadence.Apps.*.csproj); each has a README |
apps/gateway/ | YARP gateway: validates the OIDC token and forwards signed caller identity |
apps/apphost/ | .NET Aspire AppHost for local orchestration |
apps/web/, apps/subject-portal/ | Vue 3 web client and participant PWA |
packages/kernel/ | Clinical kernel projects |
packages/* | Shared libraries: security, database, telemetry, templating, contracts, DDF compiler, de-identification, testing, CLI |
tests/ | Cadence.UnitTests, Cadence.IntegrationTests, Cadence.ArchitectureTests, Cadence.E2ETests (one folder each) |
docs/ | Specifications, ADRs, SDLC/GxP documents (index) |
docker/ | Compose stack, Dockerfile, Keycloak realm |
Quickstart
See the local development guide for the .NET SDK, Node.js, pinned pnpm, and Docker requirements. On a new machine, follow the setup wizard instructions in that guide.
bash
git clone https://github.com/fderuiter/cadence-clinical.git
cd cadence-clinical
dotnet build Cadence.sln # warnings are errors
dotnet test tests/Cadence.UnitTests/Cadence.UnitTests.csproj # unit tests
dotnet test tests/Cadence.ArchitectureTests/Cadence.ArchitectureTests.csproj
pnpm install --frozen-lockfile # frontend workspaceRunning the services
Every service refuses to start without GATEWAY_SECRET (at least 32 characters), and the gateway refuses to start without OIDC_AUTHORITY (ADR-2256). Every non-health request must come through the gateway with a Keycloak token, so the web client has to sign in; its token-less demo mode can no longer reach the API.
The compose stack sets local values for both and boots PostgreSQL, Keycloak, the gateway and every service unprofiled by default. Each service applies its own migrations on start:
bash
docker compose -f docker/docker-compose.yml up -d --buildOptional storage services (MinIO and ClamAV) require --profile storage:
bash
docker compose -f docker/docker-compose.yml --profile storage up -d --buildEach service exposes /healthz/live (process up) and /healthz/ready (database reachable). Ports, tokens and other ways to run the platform are in docs/LOCAL_DEV_ENVIRONMENT.md, and every setting in docs/ENVIRONMENT_VARIABLES.md.
Developer CLI
The Cadence CLI lives in packages/cli. It is not installed as a dotnet tool, so run it through pnpm or dotnet run:
bash
pnpm cadence <command>
# same as: dotnet run --project packages/cli/src/Cadence.Cli.csproj -- <command>| Task | Command |
|---|---|
| All pre-commit quality gates | pnpm cadence check |
One gate (e.g. adrs, markdown, readmes) | pnpm cadence check <gate> |
| Auto-fix formatting, schemas, ADR index | pnpm cadence fix |
| Environment diagnostics | pnpm cadence doctor --auto-fix |
| Validate requirement tags and test results | pnpm cadence gxp sync (writes a preview only) |
| New ADR | pnpm cadence scaffold adr "<title>" |
| New engineering blog post | pnpm cadence scaffold post "<title>" |
The full, generated command reference is docs/cli.md.
Contributing
The issue workflow defines backlog scope, priorities, readiness, and triage.
Development is maintainer-led for now. Please hold off on opening code pull requests.
Feedback, feature ideas, and suggestions for improving clinical workflows are welcome in GitHub Discussions. Join an existing thread or start a new one. Tell me what you’re trying to do, where you get stuck, and what would help.
Use synthetic examples and keep patient data and confidential study details out of public posts. For security concerns, follow the security policy. The maintainer workflow is in CONTRIBUTING.md.
Documentation
Start at the documentation index. Key entry points:
- Kernel specification v0.2 and its roadmap
- Architecture and domain glossary
- Architecture decision records
- Engineering blog
- SDLC and GxP validation documents
- Security policy and support
Project direction
Cadence is developed and integrated in this repository as a modular monolith. The project plan covers module ownership, engineering practices, and the sequence from a synthetic study to a verified database lock. Goals and priorities lists the outcomes to work toward next. ADR-2603 records the source layout decision.
License
Proprietary. All rights reserved. See LICENSE.