Appearance
Source inventory and dependency graph (Phase 0, task 1)
NOTE
Historical reference for the former repository migration program. See the project plan for current delivery and ADR-2603 for the source layout decision.
Status: read-only inventory. No source has moved, been deleted or been changed. Every destination is a proposal until the gates in MIGRATION_PLAN.md and the ADR in task 2 clear. Ownership marked needs decision is not assigned and must not be inferred from folder names.
This document is the shared source for the ADR draft (task 2) and kernel extraction preparation (task 3). Both must reference it instead of repeating the analysis.
Revisions
| Repository | Role | Revision inspected |
|---|---|---|
cadence-clinical | source (active implementation) | e3955e120e725cc976aa7b9b42e921c104fc20e3, HEAD of claude/project-thread-8cv98f (docs: register Cadence product repositories and controlled migration program, 2026-10-28). Not separately re-checked against main; re-verify before any extraction PR. |
cadence-kernel | destination (core) | 9466a7a1854cc86f19e68f0bf24cf27b566791d3 (default branch) |
cadence-study-design | destination (Blueprint) | b5a3df99ec97a180c46a7021cbe6fc96548ea5e4 |
cadence-clinical-data | destination (Capture) | c1ca3110019d81073c1d976c128b1fdb52790138 |
cadence-trial-operations | destination (Orbit) | ff88b70b155aec5d551984d34ab5bfb0c9c623f1 |
cadence-participants | destination (Engage) | 5fbf1ce272caeabfe9ca91acf4e12027a8fd5815 |
cadence-interventions | destination (Allocate) | ec118cf0c17fbe9491c492c1b5898ffb3d90e904 |
cadence-safety | destination (Vigil) | cb004c3b4b700b7e0f93e28ffd129e42ca9ca54d |
cadence-evidence | destination (Lens) | 31f488a638c6f3b72f898f4e2e68ae3ea9c9e453 |
cadence-quality-regulatory | destination (Assure) | 388a9420f6685f34053281369dcb0be49585907d |
Destination SHAs were read from the GitHub default branch on the date above. They are recorded for traceability only.
Method
- Counted tracked files per
apps/*andpackages/*(git ls-files). - Extracted
ProjectReferenceedges from every.csprojunderapps/andpackages/to build the project dependency graph. - Grepped
using Cadence.*directives to check for application-to-application and application-to-kernel-internal references. - Read the kernel boundary ratchet (
tests/Cadence.ArchitectureTests/ArchitectureBaselines/kernel-boundaries.baseline.txt) and grouped its entries by assembly. - File-level mapping for the four ambiguous classes (
apps/execution,apps/interop,apps/knowledge,apps/fileshare) plusapps/org. The first pass is path- and name-based (rules in the generator, summarised under Basis). A row isproposedonly when the path name is unambiguous. Everything else isneeds decision. This is not yet symbol-level review; eachneeds decisionrow needs a reviewer to read the types and their callers before task 2 closes.
Not done in this revision: per-file tables, API endpoint lists, event contracts, test inventories, licence provenance, maturity classification, and acceptance evidence. These are the remaining fields in the Next inventory format of CAPABILITY_OWNERSHIP_MATRIX.md and are listed as open work below.
Directory inventory
Counts are tracked files; .cs is C# source. Migrations are included in the counts.
| Directory | Files | .cs | .py | Target per matrix | Notes |
|---|---|---|---|---|---|
apps/execution | 226 | 222 | 0 | Capture + Allocate + Core split | Ambiguous. Two projects: src/ (standalone service) and module/ (kernel module). Not movable as one directory. |
apps/intelligence | 109 | 101 | 0 | kernel + clinical (AI policies) | Kernel module consumed by kernel-api. |
apps/safety | 79 | 25 | 0 | Vigil | |
apps/subject-portal | 87 | 0 | 0 | Engage | Vue. |
apps/web | 442 | 0 | 0 | clinical (web shell) | Vue. |
apps/etmf | 23 | 20 | 0 | trial-operations | |
apps/econsent | 21 | 19 | 0 | participants | |
apps/ctms | 21 | 17 | 0 | trial-operations | |
apps/fileshare | 19 | 17 | 0 | clinical (generic) + trial-operations (TMF grants) | Ambiguous. |
apps/notifications | 22 | 14 | 0 | clinical (platform) | |
apps/payments | 24 | 22 | 0 | trial-operations | |
apps/interop | 26 | 24 | 0 | split: clinical-data, participants, evidence | Ambiguous. |
apps/imaging | 16 | 14 | 0 | evidence | |
apps/knowledge | 15 | 13 | 0 | split: needs decision | Ambiguous. |
apps/eisf | 10 | 8 | 0 | trial-operations | |
apps/org | 12 | 10 | 0 | trial-operations; authority in kernel | Authority conflict. |
apps/quality | 12 | 10 | 0 | quality-regulatory | |
apps/tickets | 10 | 8 | 0 | trial-operations | |
apps/kernel-api | 10 | 8 | 0 | clinical (composition host) | Only consumer of kernel internals. |
apps/gateway | 8 | 6 | 0 | clinical | |
apps/designer | 4 | 2 | 0 | study-design | |
apps/apphost | 6 | 1 | 0 | clinical | |
packages/kernel | 446 | 426 | 0 | kernel | Contains Cadence.Rules and Cadence.Standards (see below). |
packages/security | 64 | 51 | 10 | platform | |
packages/tooling_core | 45 | 41 | 0 | platform / CLI | |
packages/engine_core | 63 | 28 | 32 | shared utility | Depended on by most apps; see graph. |
packages/ui | 46 | 0 | 0 | workspace shared UI | Vue. |
packages/ddf | 30 | 9 | 16 | study-design | |
packages/cli | 28 | 26 | 0 | clinical (developer CLI) | |
packages/compliance | 17 | 15 | 0 | shared utility | |
packages/testing | 17 | 15 | 0 | shared test helpers | |
packages/database | 12 | 10 | 0 | platform | |
packages/storage | 12 | 6 | 3 | platform (generic storage) | |
packages/deid | 8 | 6 | 0 | shared utility | |
packages/contracts | 9 | 7 | 0 | shared contracts | |
packages/telemetry, templating, topology, sentinels, hexagonal, core-models, usdm-schemas, __init__.py | small | platform / shared |
Python under packages/ (engine_core, ddf, security, storage) is a reference or legacy surface. Per AGENTS.md, do not re-add Python. Its extraction status is tracked in PYTHON_REFERENCE_INVENTORY.md.
Dependency graph
Kernel packages
Cadence.Kernel.Abstractions (no project refs) public SDK surface
├─ Cadence.Kernel.Modules -> Abstractions, engine_core.Domain
├─ Cadence.Kernel.Domain -> Abstractions, engine_core.Domain
├─ Cadence.Kernel.Application -> Abstractions, Domain, Modules
├─ Cadence.Kernel.Persistence -> Abstractions, Domain, Application
├─ Cadence.Kernel.Api -> Abstractions, Application, Persistence
├─ Cadence.Rules -> Abstractions
└─ Cadence.Standards -> AbstractionsApplications and packages (direct project references)
- Every product app references
Cadence.Kernel.Abstractions(directly or throughCadence.Core.Domain) and no kernelDomain,Application,PersistenceorApiproject. The only exception isapps/kernel-api, the composition host, which references all kernel projects. This matches K-XS-2 / ADR-2600 as intended. apps/execution/modulereferencesKernel.AbstractionsandKernel.Modules. It is the kernel-integrated module.apps/execution/srcis a separate service project that referencesKernel.Abstractionsonly.apps/kernel-apireferencesapps/intelligenceandapps/execution/modulein-process (ADR-2610 single composition host).apps/apphostreferences every app project (composition only).packages/tooling_core(OpenAPI and schema exporters) references every app project, which is expected for tooling but means tooling breaks on any app extraction.packages/engine_core/Cadence.Core.Domainis referenced by nearly every app and byKernel.Domain. It is shared utility, not a kernel concept, and must not grow kernel types.packages/database,security,telemetry,contractsare platform packages referenced by most apps.
Cross-application references
A using Cadence.Apps.<Other> search across apps/* returned no cross-application source references. Applications currently share only platform packages and the kernel abstractions. Extraction does not need to break an existing app-to-app source dependency. Cross-product calls are HTTP or events, so an extraction is a contract change, not a code move.
Kernel-internal references from apps
Six files reference Cadence.Kernel.Persistence, Domain, Application or Api from apps/ and all of them sit in apps/kernel-api/src. No product app reaches kernel internals.
Forbidden redefinitions (spec §2.3, K-XS-1)
The boundary ratchet holds 496 pre-existing violations (353 K-XS-1, 143 K-MOD-1). It may only shrink. Largest contributors:
| Assembly | Entries | Relevance to extraction |
|---|---|---|
Cadence.Apps.Execution | 142 | Subject, device, CGT and cec types. ClinicalSubject/SubjectId overlap kernel Participant. Extraction must resolve these, not move them. |
Cadence.Apps.Payments | 51 | Trial-operations. |
Cadence.Apps.Interop | 49 | Includes ClinicalQuery and InteropAuditLog. |
Cadence.Apps.Ctms | 44 | Includes DoaDelegationRecord, CtmsDelegation. |
Cadence.Apps.Econsent | 28 | Consent scope belongs to kernel ConsentStatus. |
Cadence.Core.Domain | 16 | Randomization.SubjectAllocationRequest StudyId/SiteId members. Core is itself in the baseline. |
Cadence.Apps.Knowledge | 24 | DelegationRecord, OrgAuditLog, KnowledgeArticleAuditLog. |
Cadence.Apps.Org | 13 | DelegationOfAuthority, OrgAuditLog, TrainingLog. |
Cadence.Apps.Fileshare | 6 | FileAuditLog, PlaybackAuditLog. |
Type-level redefinitions present in source (verified by grep, not only by baseline): ClinicalSubject, SubjectConsent, DelegationRecord, DelegationOfAuthority, OrgAuditLog, InteropAuditLog, KnowledgeArticleAuditLog, FileAuditLog, PlaybackAuditLog, BiostatExportAuditLog, ClinicalQuery. Each is either in the baseline or is a candidate for it. Extraction must not copy any of them into a destination repository under the same name. The forbidden-name rule applies to the destination too.
Ambiguous classes: file-level
Decisions needed before any extraction of these classes
- Subject and consent (
execution/srcSubjects, ConsentRepository). IsClinicalSubjecta kernelParticipantprojection, a Capture enrolment record, or an Engage record? Matrix says Engage owns eConsent and the kernel ownsConsentStatusscope. Needs an ADR decision. - Lab reference ranges and toxicity grading (
Observations,LabToxicity,StagedAdverseEventReview). Evidence, Vigil or Capture? - CEC adjudication and CGT chain of custody. Adjudication committee outputs and custody events are not clearly in any matrix row.
- Execution persistence.
ExecutionDbContextholds all execution tables in one context. Splitting it requires a per-table owner inventory and an ADR-2600 review. The 45 migration-related files underapps/execution(migrations, designer files and snapshots) are not yet mapped per owner. - Shared abstractions and security. Demographics encryption, allocation protection, audit context and
ChangeReasonHeaderFiltermay belong to kernel SDK, platform security, or a single consumer. - Org delegation.
DelegationOfAuthorityis kernel authority under spec §2.3. Org only administers people. Decide who owns the row. - Knowledge split. Training is Orbit administration with kernel qualification; protocol knowledge may be Blueprint; product help content may be the shell. Decide.
- Interop residue.
ClinicalQuery,InteropAuditLog,EhrEndpointRecord,SmartSigningKeys,DeviceTokenHasherand the SCE token signer need owner decisions. Device registration overlaps Allocate accountability. - Fileshare. Conversion and transcoding are generic platform. TMF
ShareGrantandGuestLinkbelong to Orbit.FileAuditLogandPlaybackAuditLogconflict with the audit naming rule.
Mapping table (first pass, path and name rules)
Each row is one .cs file outside Migrations/ and Configurations/ in the four ambiguous apps and apps/org. Status is proposed (unambiguous from the path) or needs decision.
Configuration and migration files are covered by their owning entity, not listed separately. Tests are not in this table; the test inventory is open work.
Current path (under apps/) | Proposed destination | Status | Basis |
|---|---|---|---|
execution/module/Application/FormCommands.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Application/FormQueryCommands.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Application/FormQueryHandlers.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Application/MirrorFormQueryToKernel.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Application/OpenFormInstanceHandler.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Application/OpenFormOnCollectionOpened.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Domain/FormInstance.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Domain/FormQuery.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Endpoints/FormEndpoints.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Endpoints/FormQueryEndpoints.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Endpoints/FormQueryResponses.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Endpoints/FormResponses.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Endpoints/FormSignatureEndpoints.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/ExecutionModule.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Infrastructure/ExecutionModuleDatabase.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Infrastructure/ExecutionModuleDbContext.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Infrastructure/ExecutionModuleDbContextDesignTimeFactory.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/module/Infrastructure/ExecutionSignatureTokenDbContext.cs | capture (cadence-clinical-data) | proposed | eCRF form engine, kernel-integrated module (ADR-2600 path) |
execution/src/Application/Abstractions/AuthenticatedCaller.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/ConcurrencyConflictException.cs | needs decision | needs decision | shared abstraction; keep with its single consumer or move to kernel SDK |
execution/src/Application/Abstractions/IAllocationProtector.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/IAuditLogWriter.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/ICurrentAuditContextAccessor.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/IDemographicsEncryptionService.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/IDemographicsNormalizationService.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Abstractions/ILabRangeService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Abstractions/IUcumNormalizationService.cs | needs decision | needs decision | shared abstraction; keep with its single consumer or move to kernel SDK |
execution/src/Application/Abstractions/ServiceAccount.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Application/Cec/CecApplicationService.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Application/Cec/ChairAdjudicateRequest.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Application/Cec/ChairAdjudicationResponse.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Application/Cec/ICecApplicationService.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Application/Cgt/CgtApplicationService.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Application/Cgt/CgtDtos.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Application/Cgt/ICgtApplicationService.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Application/Coding/ISynonymImportService.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Application/Coding/SynonymDtos.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Application/Coding/SynonymFileParser.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Application/Coding/SynonymImportService.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Application/Compliance/ComplianceStatusResponse.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Application/Compliance/EtmfCompletenessWebhookPayload.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Application/Compliance/ISiteComplianceApplicationService.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Application/Compliance/SiteActivationRequest.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Application/Compliance/SiteComplianceApplicationService.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Application/Devices/DeviceApplicationService.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Application/Devices/DeviceDtos.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Application/Devices/DeviceEvents.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Application/Devices/IDeviceApplicationService.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Application/Observations/BulkLabRangeFileParser.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Observations/ILabRangeImportService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Observations/LabRangeDtos.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Observations/LabRangeImportService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/OperationEnvelopeResponse.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Application/Randomization/IRandomizationApplicationService.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Application/Randomization/RandomizationApplicationService.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Application/Randomization/RandomizationDtos.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Application/Serialization/ExecutionJsonSerialization.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Application/Serialization/ValueObjectJsonConverters.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Application/Subjects/ISubjectApplicationService.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectApplicationService.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectAuthority.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectConsentRequest.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectConsentResponse.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectCreateRequest.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectDemographicsUpdateRequest.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectDetailResponse.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectListResponse.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectResponse.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Subjects/SubjectStateUpdateRequest.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Application/Supply/IIpKitApplicationService.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Application/Supply/IpKitApplicationService.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Application/Supply/IpKitDtos.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Application/Toxicity/ILabToxicityGovernanceService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Toxicity/LabToxicityGovernanceService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Application/Toxicity/ToxicityDtos.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Cec/CecChairAdjudication.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Domain/Cec/CecDossier.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Domain/Cec/SignatureManifest.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Domain/Cgt/CgtBedsideVerification.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Cgt/CgtChainOfCustody.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Cgt/CgtDestructionCertificate.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Cgt/CgtMilestoneEvent.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Cgt/CgtVialReturnReconciliation.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Cgt/Errors/CgtExceptions.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Domain/Coding/BulkSynonymImportJob.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Domain/Coding/SynonymRule.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Domain/Compliance/SiteComplianceCache.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Domain/Devices/DeviceDeficiency.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Devices/DeviceInventoryItem.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Devices/DeviceQuarantineRecord.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Devices/Errors/DeviceErrors.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Devices/UdiParser.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Observations/BulkLabRangeImportJob.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Observations/DomainCode.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Observations/LabReferenceRange.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Observations/TestCode.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Ports/ICecRepository.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Domain/Ports/IConsentRepository.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Ports/IDeviceRepository.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Domain/Ports/IRandomizationRepository.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Domain/Ports/ISiteComplianceRepository.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Domain/Ports/ISubjectRepository.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Randomization/RandomizationAllocation.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Domain/Randomization/RandomizationErrors.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Domain/Randomization/RandomizationScheme.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Domain/Subjects/ClinicalSubject.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/DomainErrorExtensions.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/DomainErrorHttpMapping.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/ProtocolVersionRef.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SiteCode.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/StudyCode.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectCode.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectConsent.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectConsentId.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectErrors.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectId.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectListCriteria.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectState.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectStateCodec.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Subjects/SubjectTransitionGraph.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Domain/Supply/IpKitInventoryItem.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Domain/Supply/IpKitReconciliationBatch.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Domain/Supply/IpKitReconciliationCertificate.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Domain/Toxicity/IStagedAdverseEventReviewRepository.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Domain/Toxicity/StagedAdverseEventReview.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Endpoints/CallerIdentity.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Endpoints/CecEndpoints.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Endpoints/CgtEndpoints.cs | needs decision | needs decision | cell and gene therapy chain of custody: allocate (supply custody) vs capture |
execution/src/Endpoints/ConcurrencyConflictExceptionHandler.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Endpoints/DeviceEndpoints.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Endpoints/Filters/ChangeReasonHeaderFilter.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Endpoints/Filters/ValidationFilter.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Endpoints/IpKitEndpoints.cs | interventions (cadence-interventions) | proposed | investigational supply and kit reconciliation |
execution/src/Endpoints/LabRangeEndpoints.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Endpoints/LabToxicityEndpoints.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Endpoints/RandomizationEndpoints.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Endpoints/SiteComplianceEndpoints.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Endpoints/SubjectEndpoints.cs | needs decision | needs decision | no rule matched; inspect symbols |
execution/src/Endpoints/SynonymEndpoints.cs | clinical-data (cadence-clinical-data) | proposed | clinical coding synonyms |
execution/src/Infrastructure/Consumers/EConsentCompletedConsumer.cs | participants (cadence-participants) | proposed | consumes eConsent completion; contract must be versioned |
execution/src/Infrastructure/Consumers/EConsentCompletedEvent.cs | participants (cadence-participants) | proposed | consumes eConsent completion; contract must be versioned |
execution/src/Infrastructure/Normalization/LabRangeService.cs | needs decision | needs decision | lab reference ranges and toxicity grading: evidence (labs) vs safety vs capture |
execution/src/Infrastructure/Normalization/UcumNormalizationService.cs | needs decision | needs decision | UCUM and demographics normalization: platform utility vs kernel |
execution/src/Infrastructure/OpenApi/ExecutionWireTypesOpenApiTransformer.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
execution/src/Infrastructure/Persistence/ConcurrencyTokenIncrementInterceptor.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/EfAuditLogWriter.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Persistence/ExecutionDbContext.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/ExecutionDbContextFactory.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/ExecutionDbSeeder.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/Repositories/AdvisoryLockSql.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/Repositories/CecRepository.cs | needs decision | needs decision | clinical events committee adjudication; signatures bind to kernel signing |
execution/src/Infrastructure/Persistence/Repositories/ConsentRepository.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Infrastructure/Persistence/Repositories/DeviceRepository.cs | interventions (cadence-interventions) | proposed | device accountability and quarantine; scientific telemetry belongs to evidence |
execution/src/Infrastructure/Persistence/Repositories/ExecutionRepositoryBase.cs | needs decision | needs decision | shared DbContext: split only after per-owner table inventory and ADR-2600 review |
execution/src/Infrastructure/Persistence/Repositories/RandomizationRepository.cs | interventions (cadence-interventions) | proposed | randomization scheme and allocation |
execution/src/Infrastructure/Persistence/Repositories/SiteComplianceRepository.cs | trial-operations (cadence-trial-operations) | proposed | site activation gating driven by eTMF completeness |
execution/src/Infrastructure/Persistence/Repositories/StagedAdverseEventReviewRepository.cs | needs decision | needs decision | no rule matched; inspect symbols |
execution/src/Infrastructure/Persistence/Repositories/SubjectRepository.cs | needs decision | needs decision | Subject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type) |
execution/src/Infrastructure/Security/AesGcmAllocationProtector.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Security/AesGcmDemographicsEncryptionService.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Security/AmbientAuditContextAccessor.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Security/DemographicsDecryptionFailedException.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Security/DemographicsEncryptionOptions.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Infrastructure/Security/DemographicsNormalizationService.cs | needs decision | needs decision | field encryption and audit context: kernel (audit/authority) vs platform security |
execution/src/Program.cs | clinical (platform shell) | proposed | host/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision |
fileshare/src/Domain/FileshareEntities.cs | clinical (platform shell) | proposed | fileshare plumbing |
fileshare/src/Infrastructure/Persistence/FileshareDbContext.cs | clinical (platform shell) | proposed | fileshare plumbing |
fileshare/src/Infrastructure/Persistence/FileshareDbContextFactory.cs | clinical (platform shell) | proposed | fileshare plumbing |
fileshare/src/Program.cs | clinical (platform shell) | proposed | fileshare plumbing |
fileshare/src/Workers/DocumentConversionWorker.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/DocumentConverterProcessor.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/FileshareWorkerOptions.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/IDocumentConverterProcessor.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/IMediaTranscoderProcessor.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/MediaTranscoderProcessor.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
fileshare/src/Workers/MediaTranscoderWorker.cs | clinical (platform shell) | proposed | generic document conversion and media transcoding |
interop/src/Application/Services/FhirObservationMapper.cs | clinical-data (cadence-clinical-data) | proposed | eSource / EHR ingestion adapter; provenance stays kernel |
interop/src/Application/Services/LockfileValidatorService.cs | evidence (cadence-evidence) | proposed | statistical computing environment and biostat exports; lockfile/token authority to confirm |
interop/src/Application/Services/SceDockerEngineDriver.cs | evidence (cadence-evidence) | proposed | statistical computing environment and biostat exports; lockfile/token authority to confirm |
interop/src/Domain/InteropEntities.cs | needs decision | needs decision | interop residual; split by behaviour |
interop/src/Domain/SceEntities.cs | evidence (cadence-evidence) | proposed | statistical computing environment and biostat exports; lockfile/token authority to confirm |
interop/src/Endpoints/EsourceEndpoints.cs | clinical-data (cadence-clinical-data) | proposed | eSource / EHR ingestion adapter; provenance stays kernel |
interop/src/Endpoints/SceEndpoints.cs | evidence (cadence-evidence) | proposed | statistical computing environment and biostat exports; lockfile/token authority to confirm |
interop/src/Infrastructure/Persistence/InteropDbContext.cs | needs decision | needs decision | interop residual; split by behaviour |
interop/src/Infrastructure/Persistence/InteropDbContextFactory.cs | needs decision | needs decision | interop residual; split by behaviour |
interop/src/Infrastructure/Security/DeviceTokenHasher.cs | evidence (cadence-evidence) | needs decision | device telemetry is Lens; device registration overlaps Allocate accountability |
interop/src/Infrastructure/Security/SceTokenSigner.cs | evidence (cadence-evidence) | proposed | statistical computing environment and biostat exports; lockfile/token authority to confirm |
interop/src/Infrastructure/Security/SmartSigningKeys.cs | clinical (platform shell) | needs decision | SMART/token signing: platform security vs owning module |
interop/src/Program.cs | needs decision | needs decision | interop residual; split by behaviour |
knowledge/src/Domain/KnowledgeEntities.cs | needs decision | needs decision | knowledge residual; split by behaviour |
knowledge/src/Endpoints/TrainingEndpoints.cs | trial-operations (cadence-trial-operations) | needs decision | training administration to Orbit; qualification authority stays kernel |
knowledge/src/Infrastructure/Persistence/KnowledgeDbContext.cs | needs decision | needs decision | knowledge residual; split by behaviour |
knowledge/src/Infrastructure/Persistence/KnowledgeDbContextFactory.cs | needs decision | needs decision | knowledge residual; split by behaviour |
knowledge/src/Program.cs | needs decision | needs decision | knowledge residual; split by behaviour |
org/src/Domain/OrgEntities.cs | needs decision | needs decision | org residual |
org/src/Infrastructure/Persistence/OrgDbContext.cs | needs decision | needs decision | org residual |
org/src/Infrastructure/Persistence/OrgDbContextFactory.cs | needs decision | needs decision | org residual |
org/src/Program.cs | needs decision | needs decision | org residual |
Open work before task 2 closes
docs/kernel/EXECUTION_MIGRATION_INVENTORY.mdis dated 2026-09-29 and stale (see the task 3 plan §10). Reconcile it with this file rather than keeping two execution inventories.- Per-file fields from the next inventory format: maturity, canonical tables, API and events, tests, risk, retirement PR.
- Test inventory per app and the PostgreSQL baseline for clinical write guarantees.
- Licence provenance for
packages/kerneland the Python reference packages.
Symbol-level review (read-only, second pass)
Produced by reading every needs-decision row. The facts are from file reads and word-match grep; test counts are file counts, not test-method counts. Owners are suggestions for the ADR owner to decide, not decisions. Confidence is in the suggestion. Maturity is judged from Program.cs wiring and endpoint maps.
Baseline facts used below: the boundary baseline has 76 member-level entries for string StudyId, SiteId, CollectionSiteId and MaskedSiteId inside apps/execution (CEC domain 6, CGT application 24, CGT domain 20, Observations application 13, Observations domain 8, Subjects application 3, Toxicity application 2). Those entries may only shrink.
Non-execution rows (15)
| Row | Public types | Maturity | Suggested owner (confidence) | Decision needed |
|---|---|---|---|---|
interop/src/Domain/InteropEntities.cs | 14 classes: EPRO submission, instrument, subject assignment and notification, clinical query, EHR records, device registration, sensor records, InteropAuditLog | Mixed: EHR path running; ePRO, instrument, subject, device and sensor persisted but unrouted | Split by behaviour: capture (EHR), participants (ePRO and subject), evidence (device and sensor) (low) | Approve the split. Decide whether string StudyId, SiteId and SubjectId become kernel IDs (49 Interop baseline entries). |
interop/src/Infrastructure/Persistence/InteropDbContext.cs | InteropDbContext, 19 DbSets including SCE tables | Running: AddCadencePostgresDbContext, readiness check | platform-shell (medium) | One context per module, or a shared kernel context with module schemas (ADR-2447) |
interop/src/Infrastructure/Persistence/InteropDbContextFactory.cs | Design-time factory | Design-time only | platform-shell (high) | Moves with the context decision |
interop/src/Infrastructure/Security/DeviceTokenHasher.cs | DeviceTokenHasher (keyed HMAC) | Scaffold: registered, no route calls it | evidence (medium) | Whether device registration moves to Evidence or Trust, given the Allocate overlap |
interop/src/Infrastructure/Security/SmartSigningKeys.cs | ISmartSigningKeys, ConfigurationSmartSigningKeys | Running: used by eSource SMART routes | platform-shell (medium) | Whether key configuration stays in packages/security while the eSource flow stays with its owner |
interop/src/Program.cs | Composition root | Running (eSource 14 routes, SCE 12 routes) | platform-shell (medium) | Whether composition moves into a kernel host with module registration |
knowledge/src/Domain/KnowledgeEntities.cs | 11 classes: articles, help mappings, protocol chunks, training curriculum and assignment, DelegationRecord, OrgAuditLog, TrainingCertificate | Mixed: training routes running; article, help and chunk types unrouted | Training: trial-operations (medium). Articles and help: unclear (low) | Whether DelegationRecord, OrgAuditLog and training retire for kernel Qualification, Delegation and AuditEntry (spec §3 forbids app-local tables) |
knowledge/src/Endpoints/TrainingEndpoints.cs | TrainingEndpoints and 10 DTOs; 7 routes under /api/v1/training | Running | trial-operations (medium) | Whether training administration moves to trial-operations while kernel Qualification gates batch-assign and sign-off |
knowledge/src/Infrastructure/Persistence/KnowledgeDbContext.cs | 12 DbSets including kernel AuditLogEntry | Running | platform-shell (medium) | Same as the interop context decision (ADR-2447) |
knowledge/src/Infrastructure/Persistence/KnowledgeDbContextFactory.cs | Design-time factory | Design-time only | platform-shell (high) | Moves with the context decision |
knowledge/src/Program.cs | Composition root; durable e-signature token store | Running | platform-shell (medium) | Which host owns the single-use signature-token store after Knowledge merges |
org/src/Domain/OrgEntities.cs | PersonnelAssignment, DelegationOfAuthority, TrainingLog, OrgAuditLog | Scaffold: persisted, no routes, almost no tests | kernel (medium) | Retire for kernel Actor, Delegation, Qualification and AuditEntry, or keep as admin records |
org/src/Infrastructure/Persistence/OrgDbContext.cs | 5 DbSets including kernel AuditLogEntry | Running as a host only | kernel (medium) | Retire with its tables, or merge into kernel persistence |
org/src/Infrastructure/Persistence/OrgDbContextFactory.cs | Design-time factory | Design-time only | kernel (medium) | Follows the context decision |
org/src/Program.cs | Health and /api/v1/org/status only | Scaffold | platform-shell (medium) | Merge or retire org under #4787, rather than keep it as a host |
fileshare/src/Workers/* (7 files) and fileshare/src/Domain/FileshareEntities.cs | Workers and FileRecord, ShareGrant, GuestLink, audit types | Workers run, but no HTTP route creates FileRecords, so the app is in effect a scaffold | Workers and conversion: platform-shell (medium). ShareGrant and GuestLink: trial-operations (medium) | Generic storage versus TMF grants. FileAuditLog and PlaybackAuditLog conflict with the audit naming rule. |
Non-execution cross-row findings: none of interop, knowledge, fileshare or org references another Cadence.Apps.* context, publishes or consumes events, or makes outbound HTTP calls. Each app's README is partly stale (interop calls itself a scaffold but is running; knowledge says no endpoints but has training routes; fileshare says no storage code but uses Cadence.Storage).
Execution rows (92)
The rows are grouped by area. Maturity is "running" unless noted. The owner shown is the suggestion with confidence in brackets.
Subjects and consent (rows under execution/src/Domain/Subjects, Application/Subjects, Domain/Ports, Endpoints/SubjectEndpoints.cs, Infrastructure/Persistence/Repositories/SubjectRepository.cs and ConsentRepository.cs)
ClinicalSubject: aggregate root with tableclinical_subjects. Re-base onParticipantId, and decide whether the name is allowed under spec §2.3 (participants, high).SubjectId: GUID struct withAsParticipantId(). Keep as a surrogate that converts, or useParticipantIddirectly (participants, high).SubjectCode: string-wrapped site-local identifier, with 42 files referencing it. Decide whether it is a view ofParticipantId(participants, medium). Spec §2.3 forbids string participant IDs.StudyCodeandSiteCode: string-wrapped, with 42 and 27 referencing files. Replace with kernelStudyIdandSiteId(kernel, high). Baseline string entries apply.ProtocolVersionRef: app-local protocol copy. Replace with the kernelProtocolVersionreference (kernel, high). Conflicts with "no application-local protocol copies".SubjectConsentandSubjectConsentId: tablesubject_consents, routePOST …/consentand an undocumented…/consentsduplicate.apps/econsentalso declaresSubjectConsentwith its own DbSet. Choose one owner and align with kernelConsentStatus(participants, medium). Table overlap is not verified.SubjectState,SubjectStateCodec,SubjectTransitionGraph: lifecycle states and transitions. Decide whether they belong to kernel Enrollment (participants, medium).SubjectErrors,DomainErrorExtensions,DomainErrorHttpMapping: error factories and HTTP mapping. Mapping is platform-shell (medium). Factories are participants (high).SubjectListCriteria,SubjectListResponse,SubjectResponse,SubjectDetailResponse,SubjectCreateRequest,SubjectDemographicsUpdateRequest,SubjectStateUpdateRequest,SubjectConsentRequest,SubjectConsentResponse: DTOs, not persisted. Read models move to kernel participant reads (participants, medium).SubjectAuthority: role checks. Replace with Trust grants and qualifications, per #4781 (participants, medium).ISubjectApplicationService,SubjectApplicationService: replace with the kernel Participant, Enrollment and Consent command API (participants, high for the service, medium for timing).ISubjectRepository,IConsentRepository,SubjectRepository,ConsentRepository: ports and EF repositories overExecutionDbContext. Owner follows the subject and consent decisions (participants, high and medium).AdvisoryLockSql: Postgres advisory-lock helper, used by subject and randomization repositories. Keep it inpackages/database, or keep subject lock keys local (platform-shell, medium).SubjectEndpoints.cs: 7 routes under/api/v1/execution/subjects. Decide whether to retire the duplicate/consentsroute (participants, high).DemographicsEncryption,IDemographicsEncryptionServiceand related: see the security section below.
Randomization, supply and devices (Domain/Randomization, Application/Randomization, Domain/Supply, Application/Supply, Domain/Devices, Application/Devices, Endpoints/RandomizationEndpoints.cs, IpKitEndpoints.cs, DeviceEndpoints.cs, and the matching persistence)
These rows were mapped as proposed in the first pass, so they are not among the 92 needs-decision rows and the second pass did not review them row by row. Their proposed owner is interventions. They depend on the shared DbContext split (ADR-2447) and on the Supply baseline entries. A row-level review is still open.
CGT (cell and gene therapy) (Domain/Cgt, Application/Cgt, Endpoints/CgtEndpoints.cs)
CgtBedsideVerification,CgtChainOfCustody,CgtDestructionCertificate,CgtMilestoneEvent,CgtVialReturnReconciliation: Guid-keyed aggregates incgt_*tables. Running. Owner interventions (medium). Decide whether custody is an interventions aggregate or kernel provenance. Some carry stringStudyIdorSiteId(baseline).CgtExceptions: five exception types. Owner interventions (high).CgtApplicationService: 11 routes. UsesExecutionDbContextdirectly, a layer breach against pattern 9. Owner interventions (medium). Decide whether to accept the breach until extraction.CgtDtos: 15 records. Replace stringStudyIdandSiteId(24 baseline entries) with kernel IDs. Owner interventions (medium).ICgtApplicationService: interface. Owner interventions (medium).CgtEndpoints.cs: no endpoint test (CgtApplicationServiceTestsandCgtEngineTestsexist). Owner interventions (low). The owner list has no supply owner, so this needs an ADR decision.
CEC (clinical events committee) (Domain/Cec, Application/Cec, Domain/Ports/ICecRepository.cs, Endpoints/CecEndpoints.cs, Repositories/CecRepository.cs)
CecDossierandCecChairAdjudication:AggregateRoot<string>incec_dossiersandcec_chair_adjudications, withSignatureManifeststored as a JSON column. Owner evidence or safety (medium). Decide whether signatures bind to kernel Attestation, and whether the key becomes a kernel ID.SignatureManifest: JSON-converted record. Owner kernel (medium). The inventory'sDomain/Forms/SignatureManifest.csrow is stale, because Forms was retired. Point it atDomain/Cec/SignatureManifest.cs.CecApplicationService,ICecApplicationService,ChairAdjudicateRequest,ChairAdjudicationResponse: running; owner evidence (medium). Same signature decision.ICecRepositoryandCecRepository: owner safety (medium). The owner question is shared with the CEC decision.
Lab reference ranges and toxicity (Domain/Observations, Application/Observations, Application/Toxicity, Domain/Toxicity, Endpoints/LabRangeEndpoints.cs, LabToxicityEndpoints.cs, Infrastructure/Normalization)
LabReferenceRange,BulkLabRangeImportJob: EF entities inlab_reference_rangesandbulk_lab_range_import_jobs. Running. Owner evidence (medium). Replace string study and site IDs (baseline).TestCode: SDTM-shaped code value object. Replace with a kernelConceptRef, because SDTM is representation, not truth (K-TRUTH-1). Owner evidence (medium).DomainCode: SDTM domain code wire type. No standards owner in the list. Owner capture (medium) per the first-pass inventory.ILabRangeServiceandLabRangeService: range lookup. Owner evidence (medium). Decide whether the scope-factory singleton stays.ILabRangeImportService,LabRangeImportService,BulkLabRangeFileParser,LabRangeDtos: import and dry-run routes under/api/v1/execution/labs/*and lab-ranges CRUD. Owner evidence (medium).LabRangeImportServiceimportsInfrastructure.Persistencedirectly, a layer breach. Decide whether capture or evidence owns bulk ingestion.IUcumNormalizationServiceandUcumNormalizationService: unit conversion. Platform utility or kernel terminology. Owner platform-shell (medium); kernelIUcumNormalizerport per K-FACT-2 (kernel, high for the port).ILabToxicityGovernanceServiceandLabToxicityGovernanceService: review queue and grading. Owner safety (medium). PublishesGrade3ToxicityDetectedthrough the outbox, but no in-repo consumer exists. Confirm the consumer.StagedAdverseEventReview:AggregateRoot<string>withstaged_adverse_event_reviews. Owner safety (medium). Replace the string key and theStudyCode/SiteCodefields.IStagedAdverseEventReviewRepositoryandStagedAdverseEventReviewRepository: no direct test. Add tests before any move (safety, medium).ToxicityDtos: owner safety (medium).StagedAdverseEventReviewResponsehas string IDs (baseline).LabToxicityEndpoints.cs: owner safety (medium). Confirm grading is safety-owned.- Shared engine:
packages/engine_corealready hasLabToxicityGradingEngineandCgtBarcodeEngine. Decide whether the engines move with their owner.
Security, audit and shared abstractions (Application/Abstractions, Infrastructure/Security, Infrastructure/Persistence/EfAuditLogWriter.cs, ConcurrencyTokenIncrementInterceptor.cs, ExecutionRepositoryBase.cs)
IAuditLogWriterandEfAuditLogWriter: a second audit seam writingaudit_log_entries. Owner kernel (high). Replace with the kernel command-pipeline audit, and retire the second chain (decision D6).ICurrentAuditContextAccessor,AmbientAuditContextAccessor,IAuditActorScope: move actor and reason-for-change into kernel Actor (spec §6). Owner kernel (high for the interface, low for the accessor's HttpContext coupling).AuthenticatedCaller: verified caller identity used by CEC, toxicity, subject authority and synonym endpoints. Keep as platform identity, or fold into kernel Actor (platform-shell, medium).ServiceAccountandServiceAccounts: consumer writes attributed tosvc:accounts. Adopt kernelServiceAccountActor, or keep per-app accounts (kernel, high).ConcurrencyConflictException: 409 signal. Keep, or promote to a shared SDK error type (platform-shell, medium).IAllocationProtectorandAesGcmAllocationProtector: allocation concealment. Platform security port, or kernel IdentityVault (K006). Key required with no default (verified). Owner platform-shell (medium).IDemographicsEncryptionService,AesGcmDemographicsEncryptionService,DemographicsEncryptionOptions,DemographicsDecryptionFailedException: PII encryption. Owner platform-shell (medium); kernel IdentityVault timing (K006). Startup refuses an invalid key (verified).IDemographicsNormalizationServiceandDemographicsNormalizationService:GetSafeDemographicshas no caller, so the code is DI-registered but dormant. Retire, or re-home as kernel identity-reveal observations. Owner participants (medium).ConcurrencyTokenIncrementInterceptor: acts on all tracked entities. Move topackages/databaseonly after the per-owner table inventory and an ADR-2600 review (platform-shell, medium).ExecutionRepositoryBase: base for about eight repositories. Move topackages/database, or keep it execution-local (platform-shell, medium).
Persistence and composition (Infrastructure/Persistence/ExecutionDbContext.cs, ExecutionDbContextFactory.cs, ExecutionDbSeeder.cs, Program.cs)
ExecutionDbContext: about 30 DbSets across subjects, CEC, CGT, devices, IP kits, randomization, coding, observations, toxicity, audit and the outbox. Platform-shell (medium). This is the central split decision. The outbox and audit tables need owners.ExecutionDbContextFactory: design-time only. Follows the context decision.ExecutionDbSeeder: runs only with--seed. No test. Platform-shell (low). Seed ownership per owner.
Endpoints and filters (Endpoints/Filters, OperationEnvelopeResponse.cs, ConcurrencyConflictExceptionHandler.cs, OpenApi, Serialization)
ChangeReasonHeaderFilterandValidationFilter: cross-cutting. The reason-for-change filter is a kernel command concern (needs decision, kernel). Validation is platform-shell.- Serialization and OpenAPI transformer: platform-shell (medium).
Cross-row findings (execution)
- Forbidden names (K-XS-1): no declared type in these 92 rows is exactly one of the forbidden simple names (Study, Site, Participant, Subject, Observation, Organization, Person, Role, Delegation, Specimen, Estimand, or
*AuditLog). K-XS-1 passes on names alone. - Near misses under spec §2.3:
ClinicalSubject,SubjectId,SubjectCode,SubjectConsent,SubjectStateand the otherSubject*types form a parallel participant model. The name-based check does not catch them. The ADR should decide whether to extend the check or accept them as participant views. - String-wrapped IDs:
StudyCode,SiteCode,SubjectCode, theAggregateRoot<string>CEC and staged-review types. Spec §2.3 forbids string study, site and participant IDs. - Layer breaches:
CgtApplicationServiceandLabRangeImportServiceimportInfrastructure.Persistence. This conflicts with pattern 9. - Single shared context: all execution tables live in one
ExecutionDbContext. Splitting it also splits migrations. - Dependencies: no
Cadence.Apps.*import from another app. The only kernel reference isCadence.Kernel.Time(IClock) andParticipantId.Cadence.Core.Domainresolves topackages/engine_core, which is shared utility rather than kernel. The one cross-context link isEConsentCompletedConsumer, which writes subjects and consents from an eConsent event. - Shared abstractions with several consumers:
AuthenticatedCaller,IAuditLogWriterandConcurrencyConflictException. Their owner decisions should be taken together. - Test gaps before any move: no direct tests for
CgtEndpoints,LabRangeEndpoints,StagedAdverseEventReviewRepositoryorExecutionDbSeeder. No direct tests by type name for the CGT aggregates,BulkLabRangeFileParser,BulkLabRangeImportJoborDomainCode. - Inventory gaps:
docs/kernel/EXECUTION_MIGRATION_INVENTORY.mdhas no rows for CEC, CGT, toxicity, bulk lab-range import,IAllocationProtector,AuthenticatedCallerorConcurrencyConflictException. It should be replaced by this file, as agreed with the task 3 thread. - Positive checks: no default secrets found. Both key options refuse startup without a valid key.
Verification status
The row-level facts above come from two read-only Haiku review passes over the rows in the first-pass mapping. They were not re-verified line by line in this revision. The baseline counts and the csproj edges were re-counted directly from the repository in this pass. Treat the row facts as provisional until the ADR owner signs off each row. Test counts are file-based.
Package-level answers for the ADR thread
- PackageReference closure of
Cadence.Kernel.Modules: direct references are FluentValidation, Microsoft.AspNetCore.OpenApi, Microsoft.EntityFrameworkCore.Relational and Npgsql.EntityFrameworkCore.PostgreSQL. Transitively,Cadence.Core.Domainadds FluentValidation, andCadence.Securityadds Microsoft.EntityFrameworkCore, System.IdentityModel.Tokens.Jwt and Microsoft.IdentityModel.Tokens.Cadence.Kernel.Abstractionshas no package references. - The 16
Cadence.Core.Domainbaseline entries are allStudyId/SiteIdmembers onRandomization,SupplyandRulestypes. No file underKernel.Modules,Abstractions,ApplicationorDomainreferences those type names. The only consumers arepackages/engine_coreitself and two execution files. Excluding those namespaces from the SDK path clears the entries without renaming them.
Open work after this pass
- Each row's owner decision belongs to the ADR thread (
cmsg_01Q5KbvG319KViDdXRuTJgSAMhnMw2gQUVPzZ1CNdpoRUt). - Per-file maturity, API and event contracts, and test-method counts (not file counts).
- The persistence split (ADR-2447) and the outbox and audit table owners.
- Licence provenance for
packages/kerneland the Python reference packages.
Remaining inventory fields (third pass, read-only)
These fill the open items from the sections above. Counts are for each app's own namespace in tests/. Test methods are counted from [Fact] and [Theory] attributes, so a theory counts once however many cases it runs.
| App | Files referencing the app | Test methods (attributes) | Events published or consumed | Outbound HTTP clients |
|---|---|---|---|---|
apps/execution | 88 | 575 | Publishes Grade3ToxicityDetected (no in-repo consumer). Consumes EConsentCompletedEvent (EConsentCompletedConsumer). | None |
apps/interop | 12 | 60 | None | None |
apps/knowledge | 7 | 30 | None | None |
apps/fileshare | 7 | 19 | None | None |
apps/org | 4 | 7 | None | None |
Notes:
- The execution app is the only one with an event contract.
EConsentCompletedEventcrosses from eConsent into execution, so the consumer is an extraction dependency. It must be versioned before Capture or Participants split. - No app in this group makes outbound HTTP calls. Their cross-product dependencies are therefore zero in code, not only in the graph.
- Maturity and API routes for each row are in the review tables above. This pass added no new maturity judgements.
- Test-method counts are not run counts, and they include tests in the
Cadence.E2ETestsandCadence.ArchitectureTestsprojects where the app namespace appears.
A2: row decisions
Accepted: the 101 other suggestions from the symbol-level review, as they stand, except the rows deferred below. Authority: Fred's reply "proceed with recommendations and best practices" to the ADR-2602 owner list (chat message cmsg_01Q5KbvG319KViDdXRuTJgSASD5GoeJSNE5YUYMLcmDxNQ, 2026-10-28 20:36 UTC). The six area decisions are in ADR-2602 section 8.1.
Deferred: rows that are low-confidence in the review, or that the reconciliation contradicted. Each has a reason. A deferred row keeps its suggestion but does not authorise a move. It returns to the ownership issue (#5693) for a decision.
| Row (file or type) | Suggestion | Reason deferred |
|---|---|---|
interop EhrEndpointRecord, EhrReconciliationCandidateRecord | capture (low) | Matrix assigns EHR to clinical-data; the owner is not confirmed |
interop Instrument, SubjectAssignment | participants (low) | Low confidence; overlaps subject decision |
interop SensorSafetyAlertRecord | unclear | No owner in the review |
interop ClinicalQuery | kernel (low) | Name is in the K-XS-1 baseline; kernel query model not decided |
interop DatabaseLockAuthToken | evidence (low) | Attestation-like token; signature decision pending |
interop DeviceTokenHasher | evidence (medium) | Scaffold, no caller; device registration overlaps Allocate |
interop SmartSigningKeys | platform-shell (medium) | Review said the owner value is not valid; the eSource flow owner is open |
knowledge KnowledgeCategory, KnowledgeArticle, KnowledgeArticleVersion | unclear | No owner in the review |
knowledge ContextualHelpMapping | platform-shell (low) | Low confidence |
knowledge TrainingCurriculum, TrainingAssignment, TrainingCertificate | trial-operations (low) | Qualification authority is kernel; the split is not decided |
knowledge DelegationRecord, OrgAuditLog, KnowledgeArticleAuditLog | kernel | Duplicates org tables; spec forbids module-local delegation and audit |
org DelegationOfAuthority | kernel (medium) | Delegation design is not decided |
org TrainingLog | trial-operations (medium) | Partly qualification, which is kernel |
fileshare FileRecord | platform-shell (medium) | Foreign-key target for four tables with another owner |
fileshare ShareGrant, GuestLink | trial-operations (medium) | Foreign keys to file_records, a different owner |
execution SiteComplianceCache | unclear (low) | Legacy compliance table, no owner |
execution SynonymRule, BulkSynonymImportJob | unclear (low) | Terminology owner (evidence or capture) not decided |
execution ConsumedSignatureToken | platform-shell | Matrix says kernel; the two conflict |
execution RandomizationAllocation | interventions | Foreign key to clinical_subjects, a different owner (A3) |
execution DomainCode | capture (medium) | No standards owner in the list |
execution TestCode | evidence (medium) | SDTM representation, conflicts with K-TRUTH-1; replacement needs ConceptRef |
execution ProtocolVersionRef, StudyCode, SiteCode, SubjectCode | kernel or participants | ID replacement is a design decision, tracked in #5693 |
execution StagedAdverseEventReview and toxicity types | safety (medium) | Grade3ToxicityDetected has no consumer; confirm before moving |
execution AmbientAuditContextAccessor | kernel (low) | Low confidence; HttpContext coupling |
Accepted rows that depend on a decision in ADR-2602 section 8.1 (subject and consent, CGT, CEC, lab ranges, identity and crypto, execution DbContext split) follow that section and are not repeated here.
The deferred list covers the rows the review and reconciliation flagged. Rows not in the table are accepted as suggested. Any row that a slice touches must still confirm its file list before a move, as ADR-2602 requires.
Track A reconciliation (current main, read-only)
Reconciled against origin/main at 365c74b0 (#5688). This section covers the A1 to A6 items from the 10-repository architecture review, plus the tooling and shared-library split from its §3.
A1: delta from the inventory revision (e3955e1)
- Source, tests and baseline: no change.
git diff e3955e1 origin/mainoverapps/,packages/,tests/,docs/kernelanddocs/architecturechanges only the repository-migration docs. The boundary baseline still holds 496 entries, so every count in the first and second passes still holds. - Documentation changes since e3955e1:
AGENT_HANDOFF.md: adds a synchronization-point section listing the four conditions for kernel extraction.SOURCE_INVENTORY.md: first pass (#5681), symbol-level review and test counts (#5683), and the stale open-work line removed (#5686).- ADR-2602 (
docs/adr/2026-10-28-multi-repository-ownership-and-kernel-package-boundaries.md): accepted, with §8.1 recording six owner decisions (#5688). Corrections to the inventory citations (#5687).
- Owner decisions applied in this section: execution DbContext split by owner (platform-shell composition); subjects and consent to participants; CGT custody to interventions; CEC to safety; lab reference ranges to evidence; identity and crypto helpers stay platform-shell. The other 101 suggestions stand as given.
- Not yet applied: the 16
Core.Domainnamespace exclusions (ADR §8 item 2) are decided in principle but not in code. The inventory's per-row decisions are otherwise unchanged until a slice moves code.
A3: database ownership
Counts are exact for the code at 365c74b0. The earlier review said about 30 DbSets in ExecutionDbContext. The count is 26.
| Context | DbSets | Real migrations | Notes |
|---|---|---|---|
apps/execution ExecutionDbContext | 26 | 18 | One context for subjects, CEC, CGT, devices, IP kits, randomization, coding, observations, toxicity, audit and outbox. Split by owner per the approved decision. |
apps/execution/module (module context) | 2 | 3 | Schema execution. Form instances and queries, capture-owned. |
apps/execution signature-token context | 0 | (shares 3) | Applies the token configuration only. |
apps/interop InteropDbContext | 19 | 4 | Mixed: ePRO, EHR, device and sensor, SCE. |
apps/knowledge KnowledgeDbContext | 12 | 3 | Several DbSets use default table names with no configuration. |
apps/org OrgDbContext | 5 | 2 | |
apps/fileshare FileshareDbContext | 6 | 2 |
Findings that block a split:
- Cross-owner foreign keys.
randomization_allocations.SubjectIdreferencesclinical_subjects(interventions to participants). In fileshare, four tables (share_grants,guest_links,playback_audit_logs,file_audit_logs) referencefile_records, which is platform-shell. Each needs a decision before a split. - Duplicate concepts. Knowledge maps
DelegationRecords,OrgAuditLogsand training entities with default names. Org ownsdelegations_of_authority,org_audit_logsandorg_training_logs. Delegation is kernel authority (the kernel row inCAPABILITY_OWNERSHIP_MATRIX.md), and K-XS-1 forbids module-local audit tables.KernelBoundaryRules.csnamesOrgAuditLog. - Name collisions if contexts share one database.
audit_log_entriesis created by raw SQL in four contexts, andExecutionDbContextuses the defaultAuditLogEntriesname.clinical_queriesis an interop table, while the dev reset recreates execution's retired one.consumed_signature_tokensexists in bothpublicandexecution. Only the module context setsMigrationsHistoryTable. - String IDs without foreign keys. Interop and the execution device, IP kit and CGT entities store study, site and subject IDs as plain strings. Spec §2.3 forbids this for applications, and after a split these references lose integrity.
- Outbox tables.
OutboxMessage,OutboxStateandInboxStateexist only inExecutionDbContext. A split needs one outbox per owner or one shared kernel outbox (ADR-2600). - Signature tokens. The ownership matrix places signatures in kernel. The approved identity and crypto decision places helpers in platform-shell. Record which owns
consumed_signature_tokens. - Raw SQL. Outside migrations, only the dev reset (
packages/cli/src/Services/DatabaseResetService.cs) creates tables, in one sharedpublicschema. No other raw SQL crosses an owner boundary.
Per-table owners are in the agent's table, which is condensed here: participants own clinical_subjects, subject_consents, epro_*, subject_notifications. Safety owns cec_*, staged_adverse_event_reviews. Interventions own cgt_*, device_*, ip_kit_*, randomization_*. Evidence owns lab_reference_ranges, bulk_lab_range_import_jobs, sce_* and device registrations and telemetry. Kernel owns every audit_log_entries, the outbox and inbox, and delegation. synonym_rules and the knowledge article tables are unclear (low confidence).
A4: API and event contracts
Messages, from the static scan. There are no ISendEndpoint or request-client uses in apps/ or packages/.
| Message | Producer | Consumer | Declared in | In packages/contracts |
|---|---|---|---|---|
EConsentCompleted | none in repo | apps/etmf consumer | packages/contracts | yes |
EConsentCompletedEvent (execution copy) | none in repo | apps/execution consumer | apps/execution/src/Infrastructure/Consumers | no, duplicate shape |
EconsentReconsentRequired | apps/econsent | apps/notifications consumer | packages/contracts | yes |
Grade3ToxicityDetected | apps/execution (LabToxicityGovernanceService) | none in repo | packages/contracts | yes |
EtmfDocumentFilingRequested | none in repo | apps/etmf consumer | packages/contracts | yes |
DeviceDeficiencyReportedEvent, DeviceQuarantinedEvent | apps/execution | none | apps/execution/src/Application/Devices | no |
Findings for Capture and Engage:
EConsentCompletedhas no producer in the repo. Only consumers exist. The execution consumer runs only in tests.- The execution copy duplicates the contract, and the two disagree. The fields match, but the namespaces differ, so the MassTransit type URNs differ and the types will not match on a bus. Execution rejects a null
SignedAt(ConsentEventRejectedException). The eTMF consumer usesSignedAt ?? clock.UtcNow. Consolidate intopackages/contractsbefore a split, and decide the null rule once. - Every host uses the in-memory transport.
UsingInMemoryappears in execution, eTMF, notifications and eConsent. No broker package is referenced. Messages cannot cross a process boundary in the current code, so the eConsent-to-notifications and eConsent-to-execution paths work only in tests. Grade3ToxicityDetectedhas a producer and no consumer. The safety decision needs a named consumer before the event moves.- Versioning. No message type carries a version suffix or schema version. The kernel spec's
schema_versionand K-EVT-1 (additive-only within a major version) apply to kernel events, which do not use MassTransit. The inventory's "must be versioned" requirement is not yet implemented.
HTTP routes are on the same basis. Execution exposes 63 operations including /healthz. Interop exposes 28, knowledge 9, fileshare 2 and org 2. Each app has a checked-in OpenAPI snapshot under docs/openapi, and the openapi gate fails on drift. Anonymous routes are limited to health and status endpoints. The fallback authorization policy denies undeclared endpoints. Execution's form routes are served only by the kernel host, through apps/kernel-api.
Compatibility requirements in the repo: K-EVT-1 in docs/kernel/CLINICAL_KERNEL_SPECIFICATION.md (event schemas additive-only within a major version), the August 2026 hexagonal-architecture ADR (external HTTP contracts and OpenAPI schemas stay backward compatible), and the August 2026 CDISC submission-compiler ADR (apps/interop endpoints and DTOs stay backward compatible). Confirm the wording against those files before a slice relies on them.
A5: tests mapped to clinical invariants
| Invariant | Integration (PostgreSQL) | Unit (no DB) | Skip path | Gap |
|---|---|---|---|---|
| G1 Atomic module and kernel write (K-TX) | about 37 methods | about 16 methods | SkipIfUnavailable() | No test names a rollback when the kernel write fails. |
| G2 Authorization (K-AUTH) | 22 methods | about 90 methods | SkipIfUnavailable() | PostgreSQL-backed caller-claim path skips. |
| G3 Audit (PRD-SYS-001, Merkle chain) | 1 method | about 34 methods | SkipIfUnavailable() | No test found that targets VersionIndex or ReasonForChange fill. Unconfirmed, not proven absent. |
| G4 Integrity: idempotency and concurrency | about 31 methods | about 39 methods | SkipIfUnavailable() | The real parallel enrollment race runs only with PostgreSQL. |
| G5 Tenant isolation (K-ID) | about 25 methods | about 11 methods | SkipIfUnavailable() | Cross-study isolation runs only with PostgreSQL. |
| G6 eCRF workflow (enter, correct, query, review, sign, lock) | 12 methods | about 6 methods | SkipIfUnavailable() | No named test for correct or review. The full chain runs only in the E2E journey. |
| G7 Failure and recovery | about 31 methods | about 59 methods | SkipIfUnavailable() | Crash-and-replay and rollback have no test outside the skipped PostgreSQL files. |
| G8 Randomization and blinding | 27 methods | about 41 methods | SkipIfUnavailable() | Database refusal to rewrite an allocation skips without PostgreSQL. |
| G9 Consent scope | 3 methods | about 47 methods | SkipIfUnavailable() | Withdrawal-based capture is tested only with PostgreSQL. |
| G10 Time (K-TIME-3) | about 20 methods | about 30 methods | SkipIfUnavailable() | No architecture test scans for DateTime.Now. K-TIME-3 is enforced by the build analyzer, not a test. |
Totals from a static count: about 2,095 unit, 348 integration, 45 architecture and 6 E2E [Fact] and [Theory] attributes. About 350 PostgreSQL methods report Skipped, not Failed, when the environment variable is unset.
Two points for the extraction gate:
- Skips are the proof gap. Groups G1, G4, G5, G6, G7 and G8 have no executed evidence without PostgreSQL.
LocalCiRunner.RejectSkippedDatabaseTestsfails a local run with skipped database tests unless--allow-skipis passed. - This machine cannot run them. Neither
CADENCE_TEST_POSTGRESnorCADENCE_TEST_DOCKERis set, and the Docker daemon is unreachable. Every PostgreSQL test skips here. Unit and architecture tests (about 2,140) run without a database.
A6: licence and maturity
Licence facts, from the repository only:
- The root
LICENSEis ISC, held by "Cadence Clinical Workspace Authors". Directory.Build.propsasserts "Copyright © 2026 Cadence Clinical. All rights reserved." This conflicts with the ISC file and uses a different holder name. Resolve it before any publication.- No
NOTICE,THIRD_PARTYor per-package licence file exists, and no source file has a licence header. No.csprojsets a package licence. - The 80-plus NuGet packages in
Directory.Packages.propshave no recorded licence. Every status is "unverified".fo-dicom(imaging) andSonarAnalyzerneed a check before publishing.
Decision (2026-10-28, Fred): the repository is private, not public. The ISC licence is withdrawn and replaced by the proprietary notice in LICENSE, consistent with Directory.Build.props. The package.json files of the root, apps/web and packages/ui use "license": "UNLICENSED". The change is in draft PR #5698. Open before it leaves draft: the holder name (Cadence Clinical in Directory.Build.props, Cadence Clinical Workspace Authors in the old LICENSE), which Fred must confirm, and legal review of the wording. Third-party and standards content keeps its own terms and is not relicensed.
Destination repositories without a root LICENSE file: cadence-kernel, cadence-clinical-data, cadence-evidence, cadence-interventions, cadence-participants, cadence-quality-regulatory, cadence-safety, cadence-study-design and cadence-trial-operations. All nine have the same root layout (.gitignore, AGENTS.md, ARCHITECTURE.md, README.md, docs). None is changed here.
Third-party and standards content:
docs/CDISC/Libraryholds about 76 JSON, 35 XML, 36 PDF, 44 XLSX and 36 HTML files. Some carry "proprietary" notices. The repository records no licence or terms for them.docs/openapianddocs/CDISChold large specification JSON files (the largest is 5.3 MB).packages/kernel/src/Cadence.Standards/Seedholds SDTMIG and ADaMIG seed JSON.- MedDRA, WHODrug, LOINC, SNOMED and UCUM appear as about 120 string references in code. The check cannot tell whether dictionary content is included.
- Fixtures contain date-of-birth-keyed values, an SSN-shaped string and an email-shaped string. These are pattern hits only. They have not been verified as synthetic.
Maturity per ambiguous component:
| Component | Maturity | Evidence |
|---|---|---|
apps/execution | running | Subject, CEC, lab and CGT routes mapped |
apps/interop | scaffold (README) | eSource and SCE routes; the README and Program.cs disagree on ePRO |
apps/knowledge | unclear | README says no endpoints; Program.cs maps training routes |
apps/fileshare | scaffold | Health and status only in src; workers run but nothing feeds them |
apps/org | scaffold | Health and status only |
packages/engine_core | unclear | Python references still present, C# ports missing |
packages/security | running | Used by all services |
packages/storage | running | Filesystem blob store tested |
Tooling and shared libraries, separated from domain dependencies (review §3)
The graph in this document mixes two kinds of edge. Classify them separately so the extraction does not turn the monorepo into a package-level distributed monolith.
| Class | Projects | Rule for extraction |
|---|---|---|
| Composition and tooling | packages/tooling_core (references all app projects), packages/cli, apps/apphost, apps/kernel-api, apps/gateway | Stays in cadence-clinical. Not extracted to a product repo. Tooling reads products through their public contracts only. |
| Platform shared libraries | packages/engine_core (Cadence.Core.Domain), packages/security, packages/database, packages/telemetry, packages/contracts, packages/testing, packages/compliance, packages/deid, packages/storage, packages/templating | Versioned packages, not domain code. Cadence.Core.Domain is referenced by nearly every app and by the kernel SDK, so its transitive reach into the SDK needs the decision in ADR §8. |
| Domain dependencies | Edges between product apps and kernel abstractions | These are the edges an extraction must cut. No app-to-app source imports exist. Product coupling is through the contracts above and the shared database. |
The 16 Core.Domain baseline namespaces (Randomization, Supply and Rules) are the only shared-library baseline entries. They clear when the SDK path excludes them.
Open work after Track A
- Ownership decisions for the rows that the six approved decisions do not cover. Items:
ProtocolVersionRef,StudyCode,SiteCode,SubjectCode,TestCodeandDomainCodeas kernel ID or ConceptRef replacements; the outbox and audit table owners;consumed_signature_tokens; the knowledge article and help tables. - Consumer for
Grade3ToxicityDetected, and a versioned consolidation ofEConsentCompleted. - A PostgreSQL run that records pass, fail and skip counts against an exact revision. Blocked until CI capacity or a local Docker daemon is available (#5685).
- Licence reconciliation between
LICENSEandDirectory.Build.props, and a per-package licence record. - Retirement of
docs/kernel/EXECUTION_MIGRATION_INVENTORY.md(in this change). Its type-by-type dispositions are in git history at365c74b0and are superseded by the sections above.