Skip to content

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 ​

RepositoryRoleRevision inspected
cadence-clinicalsource (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-kerneldestination (core)9466a7a1854cc86f19e68f0bf24cf27b566791d3 (default branch)
cadence-study-designdestination (Blueprint)b5a3df99ec97a180c46a7021cbe6fc96548ea5e4
cadence-clinical-datadestination (Capture)c1ca3110019d81073c1d976c128b1fdb52790138
cadence-trial-operationsdestination (Orbit)ff88b70b155aec5d551984d34ab5bfb0c9c623f1
cadence-participantsdestination (Engage)5fbf1ce272caeabfe9ca91acf4e12027a8fd5815
cadence-interventionsdestination (Allocate)ec118cf0c17fbe9491c492c1b5898ffb3d90e904
cadence-safetydestination (Vigil)cb004c3b4b700b7e0f93e28ffd129e42ca9ca54d
cadence-evidencedestination (Lens)31f488a638c6f3b72f898f4e2e68ae3ea9c9e453
cadence-quality-regulatorydestination (Assure)388a9420f6685f34053281369dcb0be49585907d

Destination SHAs were read from the GitHub default branch on the date above. They are recorded for traceability only.

Method ​

  1. Counted tracked files per apps/* and packages/* (git ls-files).
  2. Extracted ProjectReference edges from every .csproj under apps/ and packages/ to build the project dependency graph.
  3. Grepped using Cadence.* directives to check for application-to-application and application-to-kernel-internal references.
  4. Read the kernel boundary ratchet (tests/Cadence.ArchitectureTests/ArchitectureBaselines/kernel-boundaries.baseline.txt) and grouped its entries by assembly.
  5. File-level mapping for the four ambiguous classes (apps/execution, apps/interop, apps/knowledge, apps/fileshare) plus apps/org. The first pass is path- and name-based (rules in the generator, summarised under Basis). A row is proposed only when the path name is unambiguous. Everything else is needs decision. This is not yet symbol-level review; each needs decision row 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.

DirectoryFiles.cs.pyTarget per matrixNotes
apps/execution2262220Capture + Allocate + Core splitAmbiguous. Two projects: src/ (standalone service) and module/ (kernel module). Not movable as one directory.
apps/intelligence1091010kernel + clinical (AI policies)Kernel module consumed by kernel-api.
apps/safety79250Vigil
apps/subject-portal8700EngageVue.
apps/web44200clinical (web shell)Vue.
apps/etmf23200trial-operations
apps/econsent21190participants
apps/ctms21170trial-operations
apps/fileshare19170clinical (generic) + trial-operations (TMF grants)Ambiguous.
apps/notifications22140clinical (platform)
apps/payments24220trial-operations
apps/interop26240split: clinical-data, participants, evidenceAmbiguous.
apps/imaging16140evidence
apps/knowledge15130split: needs decisionAmbiguous.
apps/eisf1080trial-operations
apps/org12100trial-operations; authority in kernelAuthority conflict.
apps/quality12100quality-regulatory
apps/tickets1080trial-operations
apps/kernel-api1080clinical (composition host)Only consumer of kernel internals.
apps/gateway860clinical
apps/designer420study-design
apps/apphost610clinical
packages/kernel4464260kernelContains Cadence.Rules and Cadence.Standards (see below).
packages/security645110platform
packages/tooling_core45410platform / CLI
packages/engine_core632832shared utilityDepended on by most apps; see graph.
packages/ui4600workspace shared UIVue.
packages/ddf30916study-design
packages/cli28260clinical (developer CLI)
packages/compliance17150shared utility
packages/testing17150shared test helpers
packages/database12100platform
packages/storage1263platform (generic storage)
packages/deid860shared utility
packages/contracts970shared contracts
packages/telemetry, templating, topology, sentinels, hexagonal, core-models, usdm-schemas, __init__.pysmallplatform / 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               -> Abstractions

Applications and packages (direct project references) ​

  • Every product app references Cadence.Kernel.Abstractions (directly or through Cadence.Core.Domain) and no kernel Domain, Application, Persistence or Api project. The only exception is apps/kernel-api, the composition host, which references all kernel projects. This matches K-XS-2 / ADR-2600 as intended.
  • apps/execution/module references Kernel.Abstractions and Kernel.Modules. It is the kernel-integrated module. apps/execution/src is a separate service project that references Kernel.Abstractions only.
  • apps/kernel-api references apps/intelligence and apps/execution/module in-process (ADR-2610 single composition host).
  • apps/apphost references 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.Domain is referenced by nearly every app and by Kernel.Domain. It is shared utility, not a kernel concept, and must not grow kernel types.
  • packages/database, security, telemetry, contracts are 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:

AssemblyEntriesRelevance to extraction
Cadence.Apps.Execution142Subject, device, CGT and cec types. ClinicalSubject/SubjectId overlap kernel Participant. Extraction must resolve these, not move them.
Cadence.Apps.Payments51Trial-operations.
Cadence.Apps.Interop49Includes ClinicalQuery and InteropAuditLog.
Cadence.Apps.Ctms44Includes DoaDelegationRecord, CtmsDelegation.
Cadence.Apps.Econsent28Consent scope belongs to kernel ConsentStatus.
Cadence.Core.Domain16Randomization.SubjectAllocationRequest StudyId/SiteId members. Core is itself in the baseline.
Cadence.Apps.Knowledge24DelegationRecord, OrgAuditLog, KnowledgeArticleAuditLog.
Cadence.Apps.Org13DelegationOfAuthority, OrgAuditLog, TrainingLog.
Cadence.Apps.Fileshare6FileAuditLog, 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 ​

  1. Subject and consent (execution/src Subjects, ConsentRepository). Is ClinicalSubject a kernel Participant projection, a Capture enrolment record, or an Engage record? Matrix says Engage owns eConsent and the kernel owns ConsentStatus scope. Needs an ADR decision.
  2. Lab reference ranges and toxicity grading (Observations, LabToxicity, StagedAdverseEventReview). Evidence, Vigil or Capture?
  3. CEC adjudication and CGT chain of custody. Adjudication committee outputs and custody events are not clearly in any matrix row.
  4. Execution persistence. ExecutionDbContext holds all execution tables in one context. Splitting it requires a per-table owner inventory and an ADR-2600 review. The 45 migration-related files under apps/execution (migrations, designer files and snapshots) are not yet mapped per owner.
  5. Shared abstractions and security. Demographics encryption, allocation protection, audit context and ChangeReasonHeaderFilter may belong to kernel SDK, platform security, or a single consumer.
  6. Org delegation. DelegationOfAuthority is kernel authority under spec §2.3. Org only administers people. Decide who owns the row.
  7. Knowledge split. Training is Orbit administration with kernel qualification; protocol knowledge may be Blueprint; product help content may be the shell. Decide.
  8. Interop residue. ClinicalQuery, InteropAuditLog, EhrEndpointRecord, SmartSigningKeys, DeviceTokenHasher and the SCE token signer need owner decisions. Device registration overlaps Allocate accountability.
  9. Fileshare. Conversion and transcoding are generic platform. TMF ShareGrant and GuestLink belong to Orbit. FileAuditLog and PlaybackAuditLog conflict 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 destinationStatusBasis
execution/module/Application/FormCommands.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Application/FormQueryCommands.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Application/FormQueryHandlers.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Application/MirrorFormQueryToKernel.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Application/OpenFormInstanceHandler.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Application/OpenFormOnCollectionOpened.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Domain/FormInstance.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Domain/FormQuery.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Endpoints/FormEndpoints.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Endpoints/FormQueryEndpoints.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Endpoints/FormQueryResponses.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Endpoints/FormResponses.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Endpoints/FormSignatureEndpoints.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/ExecutionModule.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Infrastructure/ExecutionModuleDatabase.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Infrastructure/ExecutionModuleDbContext.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Infrastructure/ExecutionModuleDbContextDesignTimeFactory.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/module/Infrastructure/ExecutionSignatureTokenDbContext.cscapture (cadence-clinical-data)proposedeCRF form engine, kernel-integrated module (ADR-2600 path)
execution/src/Application/Abstractions/AuthenticatedCaller.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/ConcurrencyConflictException.csneeds decisionneeds decisionshared abstraction; keep with its single consumer or move to kernel SDK
execution/src/Application/Abstractions/IAllocationProtector.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/IAuditLogWriter.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/ICurrentAuditContextAccessor.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/IDemographicsEncryptionService.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/IDemographicsNormalizationService.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Abstractions/ILabRangeService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Abstractions/IUcumNormalizationService.csneeds decisionneeds decisionshared abstraction; keep with its single consumer or move to kernel SDK
execution/src/Application/Abstractions/ServiceAccount.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Application/Cec/CecApplicationService.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Application/Cec/ChairAdjudicateRequest.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Application/Cec/ChairAdjudicationResponse.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Application/Cec/ICecApplicationService.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Application/Cgt/CgtApplicationService.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Application/Cgt/CgtDtos.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Application/Cgt/ICgtApplicationService.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Application/Coding/ISynonymImportService.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Application/Coding/SynonymDtos.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Application/Coding/SynonymFileParser.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Application/Coding/SynonymImportService.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Application/Compliance/ComplianceStatusResponse.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Application/Compliance/EtmfCompletenessWebhookPayload.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Application/Compliance/ISiteComplianceApplicationService.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Application/Compliance/SiteActivationRequest.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Application/Compliance/SiteComplianceApplicationService.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Application/Devices/DeviceApplicationService.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Application/Devices/DeviceDtos.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Application/Devices/DeviceEvents.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Application/Devices/IDeviceApplicationService.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Application/Observations/BulkLabRangeFileParser.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Observations/ILabRangeImportService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Observations/LabRangeDtos.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Observations/LabRangeImportService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/OperationEnvelopeResponse.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Application/Randomization/IRandomizationApplicationService.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Application/Randomization/RandomizationApplicationService.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Application/Randomization/RandomizationDtos.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Application/Serialization/ExecutionJsonSerialization.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Application/Serialization/ValueObjectJsonConverters.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Application/Subjects/ISubjectApplicationService.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectApplicationService.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectAuthority.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectConsentRequest.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectConsentResponse.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectCreateRequest.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectDemographicsUpdateRequest.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectDetailResponse.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectListResponse.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectResponse.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Subjects/SubjectStateUpdateRequest.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Application/Supply/IIpKitApplicationService.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Application/Supply/IpKitApplicationService.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Application/Supply/IpKitDtos.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Application/Toxicity/ILabToxicityGovernanceService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Toxicity/LabToxicityGovernanceService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Application/Toxicity/ToxicityDtos.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Cec/CecChairAdjudication.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Domain/Cec/CecDossier.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Domain/Cec/SignatureManifest.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Domain/Cgt/CgtBedsideVerification.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Cgt/CgtChainOfCustody.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Cgt/CgtDestructionCertificate.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Cgt/CgtMilestoneEvent.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Cgt/CgtVialReturnReconciliation.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Cgt/Errors/CgtExceptions.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Domain/Coding/BulkSynonymImportJob.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Domain/Coding/SynonymRule.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Domain/Compliance/SiteComplianceCache.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Domain/Devices/DeviceDeficiency.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Devices/DeviceInventoryItem.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Devices/DeviceQuarantineRecord.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Devices/Errors/DeviceErrors.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Devices/UdiParser.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Observations/BulkLabRangeImportJob.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Observations/DomainCode.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Observations/LabReferenceRange.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Observations/TestCode.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Ports/ICecRepository.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Domain/Ports/IConsentRepository.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Ports/IDeviceRepository.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Domain/Ports/IRandomizationRepository.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Domain/Ports/ISiteComplianceRepository.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Domain/Ports/ISubjectRepository.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Randomization/RandomizationAllocation.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Domain/Randomization/RandomizationErrors.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Domain/Randomization/RandomizationScheme.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Domain/Subjects/ClinicalSubject.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/DomainErrorExtensions.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/DomainErrorHttpMapping.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/ProtocolVersionRef.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SiteCode.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/StudyCode.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectCode.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectConsent.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectConsentId.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectErrors.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectId.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectListCriteria.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectState.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectStateCodec.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Subjects/SubjectTransitionGraph.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Domain/Supply/IpKitInventoryItem.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Domain/Supply/IpKitReconciliationBatch.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Domain/Supply/IpKitReconciliationCertificate.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Domain/Toxicity/IStagedAdverseEventReviewRepository.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Domain/Toxicity/StagedAdverseEventReview.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Endpoints/CallerIdentity.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Endpoints/CecEndpoints.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Endpoints/CgtEndpoints.csneeds decisionneeds decisioncell and gene therapy chain of custody: allocate (supply custody) vs capture
execution/src/Endpoints/ConcurrencyConflictExceptionHandler.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Endpoints/DeviceEndpoints.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Endpoints/Filters/ChangeReasonHeaderFilter.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Endpoints/Filters/ValidationFilter.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Endpoints/IpKitEndpoints.csinterventions (cadence-interventions)proposedinvestigational supply and kit reconciliation
execution/src/Endpoints/LabRangeEndpoints.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Endpoints/LabToxicityEndpoints.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Endpoints/RandomizationEndpoints.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Endpoints/SiteComplianceEndpoints.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Endpoints/SubjectEndpoints.csneeds decisionneeds decisionno rule matched; inspect symbols
execution/src/Endpoints/SynonymEndpoints.csclinical-data (cadence-clinical-data)proposedclinical coding synonyms
execution/src/Infrastructure/Consumers/EConsentCompletedConsumer.csparticipants (cadence-participants)proposedconsumes eConsent completion; contract must be versioned
execution/src/Infrastructure/Consumers/EConsentCompletedEvent.csparticipants (cadence-participants)proposedconsumes eConsent completion; contract must be versioned
execution/src/Infrastructure/Normalization/LabRangeService.csneeds decisionneeds decisionlab reference ranges and toxicity grading: evidence (labs) vs safety vs capture
execution/src/Infrastructure/Normalization/UcumNormalizationService.csneeds decisionneeds decisionUCUM and demographics normalization: platform utility vs kernel
execution/src/Infrastructure/OpenApi/ExecutionWireTypesOpenApiTransformer.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
execution/src/Infrastructure/Persistence/ConcurrencyTokenIncrementInterceptor.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/EfAuditLogWriter.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Persistence/ExecutionDbContext.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/ExecutionDbContextFactory.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/ExecutionDbSeeder.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/Repositories/AdvisoryLockSql.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/Repositories/CecRepository.csneeds decisionneeds decisionclinical events committee adjudication; signatures bind to kernel signing
execution/src/Infrastructure/Persistence/Repositories/ConsentRepository.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Infrastructure/Persistence/Repositories/DeviceRepository.csinterventions (cadence-interventions)proposeddevice accountability and quarantine; scientific telemetry belongs to evidence
execution/src/Infrastructure/Persistence/Repositories/ExecutionRepositoryBase.csneeds decisionneeds decisionshared DbContext: split only after per-owner table inventory and ADR-2600 review
execution/src/Infrastructure/Persistence/Repositories/RandomizationRepository.csinterventions (cadence-interventions)proposedrandomization scheme and allocation
execution/src/Infrastructure/Persistence/Repositories/SiteComplianceRepository.cstrial-operations (cadence-trial-operations)proposedsite activation gating driven by eTMF completeness
execution/src/Infrastructure/Persistence/Repositories/StagedAdverseEventReviewRepository.csneeds decisionneeds decisionno rule matched; inspect symbols
execution/src/Infrastructure/Persistence/Repositories/SubjectRepository.csneeds decisionneeds decisionSubject/consent identity overlaps kernel Participant/ConsentStatus (spec §2.3 forbids app-level Subject type)
execution/src/Infrastructure/Security/AesGcmAllocationProtector.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Security/AesGcmDemographicsEncryptionService.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Security/AmbientAuditContextAccessor.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Security/DemographicsDecryptionFailedException.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Security/DemographicsEncryptionOptions.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Infrastructure/Security/DemographicsNormalizationService.csneeds decisionneeds decisionfield encryption and audit context: kernel (audit/authority) vs platform security
execution/src/Program.csclinical (platform shell)proposedhost/platform plumbing; ChangeReasonHeaderFilter is a kernel command concern: needs decision
fileshare/src/Domain/FileshareEntities.csclinical (platform shell)proposedfileshare plumbing
fileshare/src/Infrastructure/Persistence/FileshareDbContext.csclinical (platform shell)proposedfileshare plumbing
fileshare/src/Infrastructure/Persistence/FileshareDbContextFactory.csclinical (platform shell)proposedfileshare plumbing
fileshare/src/Program.csclinical (platform shell)proposedfileshare plumbing
fileshare/src/Workers/DocumentConversionWorker.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/DocumentConverterProcessor.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/FileshareWorkerOptions.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/IDocumentConverterProcessor.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/IMediaTranscoderProcessor.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/MediaTranscoderProcessor.csclinical (platform shell)proposedgeneric document conversion and media transcoding
fileshare/src/Workers/MediaTranscoderWorker.csclinical (platform shell)proposedgeneric document conversion and media transcoding
interop/src/Application/Services/FhirObservationMapper.csclinical-data (cadence-clinical-data)proposedeSource / EHR ingestion adapter; provenance stays kernel
interop/src/Application/Services/LockfileValidatorService.csevidence (cadence-evidence)proposedstatistical computing environment and biostat exports; lockfile/token authority to confirm
interop/src/Application/Services/SceDockerEngineDriver.csevidence (cadence-evidence)proposedstatistical computing environment and biostat exports; lockfile/token authority to confirm
interop/src/Domain/InteropEntities.csneeds decisionneeds decisioninterop residual; split by behaviour
interop/src/Domain/SceEntities.csevidence (cadence-evidence)proposedstatistical computing environment and biostat exports; lockfile/token authority to confirm
interop/src/Endpoints/EsourceEndpoints.csclinical-data (cadence-clinical-data)proposedeSource / EHR ingestion adapter; provenance stays kernel
interop/src/Endpoints/SceEndpoints.csevidence (cadence-evidence)proposedstatistical computing environment and biostat exports; lockfile/token authority to confirm
interop/src/Infrastructure/Persistence/InteropDbContext.csneeds decisionneeds decisioninterop residual; split by behaviour
interop/src/Infrastructure/Persistence/InteropDbContextFactory.csneeds decisionneeds decisioninterop residual; split by behaviour
interop/src/Infrastructure/Security/DeviceTokenHasher.csevidence (cadence-evidence)needs decisiondevice telemetry is Lens; device registration overlaps Allocate accountability
interop/src/Infrastructure/Security/SceTokenSigner.csevidence (cadence-evidence)proposedstatistical computing environment and biostat exports; lockfile/token authority to confirm
interop/src/Infrastructure/Security/SmartSigningKeys.csclinical (platform shell)needs decisionSMART/token signing: platform security vs owning module
interop/src/Program.csneeds decisionneeds decisioninterop residual; split by behaviour
knowledge/src/Domain/KnowledgeEntities.csneeds decisionneeds decisionknowledge residual; split by behaviour
knowledge/src/Endpoints/TrainingEndpoints.cstrial-operations (cadence-trial-operations)needs decisiontraining administration to Orbit; qualification authority stays kernel
knowledge/src/Infrastructure/Persistence/KnowledgeDbContext.csneeds decisionneeds decisionknowledge residual; split by behaviour
knowledge/src/Infrastructure/Persistence/KnowledgeDbContextFactory.csneeds decisionneeds decisionknowledge residual; split by behaviour
knowledge/src/Program.csneeds decisionneeds decisionknowledge residual; split by behaviour
org/src/Domain/OrgEntities.csneeds decisionneeds decisionorg residual
org/src/Infrastructure/Persistence/OrgDbContext.csneeds decisionneeds decisionorg residual
org/src/Infrastructure/Persistence/OrgDbContextFactory.csneeds decisionneeds decisionorg residual
org/src/Program.csneeds decisionneeds decisionorg residual

Open work before task 2 closes ​

  • docs/kernel/EXECUTION_MIGRATION_INVENTORY.md is 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/kernel and 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) ​

RowPublic typesMaturitySuggested owner (confidence)Decision needed
interop/src/Domain/InteropEntities.cs14 classes: EPRO submission, instrument, subject assignment and notification, clinical query, EHR records, device registration, sensor records, InteropAuditLogMixed: EHR path running; ePRO, instrument, subject, device and sensor persisted but unroutedSplit 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.csInteropDbContext, 19 DbSets including SCE tablesRunning: AddCadencePostgresDbContext, readiness checkplatform-shell (medium)One context per module, or a shared kernel context with module schemas (ADR-2447)
interop/src/Infrastructure/Persistence/InteropDbContextFactory.csDesign-time factoryDesign-time onlyplatform-shell (high)Moves with the context decision
interop/src/Infrastructure/Security/DeviceTokenHasher.csDeviceTokenHasher (keyed HMAC)Scaffold: registered, no route calls itevidence (medium)Whether device registration moves to Evidence or Trust, given the Allocate overlap
interop/src/Infrastructure/Security/SmartSigningKeys.csISmartSigningKeys, ConfigurationSmartSigningKeysRunning: used by eSource SMART routesplatform-shell (medium)Whether key configuration stays in packages/security while the eSource flow stays with its owner
interop/src/Program.csComposition rootRunning (eSource 14 routes, SCE 12 routes)platform-shell (medium)Whether composition moves into a kernel host with module registration
knowledge/src/Domain/KnowledgeEntities.cs11 classes: articles, help mappings, protocol chunks, training curriculum and assignment, DelegationRecord, OrgAuditLog, TrainingCertificateMixed: training routes running; article, help and chunk types unroutedTraining: 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.csTrainingEndpoints and 10 DTOs; 7 routes under /api/v1/trainingRunningtrial-operations (medium)Whether training administration moves to trial-operations while kernel Qualification gates batch-assign and sign-off
knowledge/src/Infrastructure/Persistence/KnowledgeDbContext.cs12 DbSets including kernel AuditLogEntryRunningplatform-shell (medium)Same as the interop context decision (ADR-2447)
knowledge/src/Infrastructure/Persistence/KnowledgeDbContextFactory.csDesign-time factoryDesign-time onlyplatform-shell (high)Moves with the context decision
knowledge/src/Program.csComposition root; durable e-signature token storeRunningplatform-shell (medium)Which host owns the single-use signature-token store after Knowledge merges
org/src/Domain/OrgEntities.csPersonnelAssignment, DelegationOfAuthority, TrainingLog, OrgAuditLogScaffold: persisted, no routes, almost no testskernel (medium)Retire for kernel Actor, Delegation, Qualification and AuditEntry, or keep as admin records
org/src/Infrastructure/Persistence/OrgDbContext.cs5 DbSets including kernel AuditLogEntryRunning as a host onlykernel (medium)Retire with its tables, or merge into kernel persistence
org/src/Infrastructure/Persistence/OrgDbContextFactory.csDesign-time factoryDesign-time onlykernel (medium)Follows the context decision
org/src/Program.csHealth and /api/v1/org/status onlyScaffoldplatform-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.csWorkers and FileRecord, ShareGrant, GuestLink, audit typesWorkers run, but no HTTP route creates FileRecords, so the app is in effect a scaffoldWorkers 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 table clinical_subjects. Re-base on ParticipantId, and decide whether the name is allowed under spec §2.3 (participants, high).
  • SubjectId: GUID struct with AsParticipantId(). Keep as a surrogate that converts, or use ParticipantId directly (participants, high).
  • SubjectCode: string-wrapped site-local identifier, with 42 files referencing it. Decide whether it is a view of ParticipantId (participants, medium). Spec §2.3 forbids string participant IDs.
  • StudyCode and SiteCode: string-wrapped, with 42 and 27 referencing files. Replace with kernel StudyId and SiteId (kernel, high). Baseline string entries apply.
  • ProtocolVersionRef: app-local protocol copy. Replace with the kernel ProtocolVersion reference (kernel, high). Conflicts with "no application-local protocol copies".
  • SubjectConsent and SubjectConsentId: table subject_consents, route POST …/consent and an undocumented …/consents duplicate. apps/econsent also declares SubjectConsent with its own DbSet. Choose one owner and align with kernel ConsentStatus (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 over ExecutionDbContext. Owner follows the subject and consent decisions (participants, high and medium).
  • AdvisoryLockSql: Postgres advisory-lock helper, used by subject and randomization repositories. Keep it in packages/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 /consents route (participants, high).
  • DemographicsEncryption, IDemographicsEncryptionService and 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 in cgt_* tables. Running. Owner interventions (medium). Decide whether custody is an interventions aggregate or kernel provenance. Some carry string StudyId or SiteId (baseline).
  • CgtExceptions: five exception types. Owner interventions (high).
  • CgtApplicationService: 11 routes. Uses ExecutionDbContext directly, a layer breach against pattern 9. Owner interventions (medium). Decide whether to accept the breach until extraction.
  • CgtDtos: 15 records. Replace string StudyId and SiteId (24 baseline entries) with kernel IDs. Owner interventions (medium).
  • ICgtApplicationService: interface. Owner interventions (medium).
  • CgtEndpoints.cs: no endpoint test (CgtApplicationServiceTests and CgtEngineTests exist). 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)

  • CecDossier and CecChairAdjudication: AggregateRoot<string> in cec_dossiers and cec_chair_adjudications, with SignatureManifest stored 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's Domain/Forms/SignatureManifest.cs row is stale, because Forms was retired. Point it at Domain/Cec/SignatureManifest.cs.
  • CecApplicationService, ICecApplicationService, ChairAdjudicateRequest, ChairAdjudicationResponse: running; owner evidence (medium). Same signature decision.
  • ICecRepository and CecRepository: 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 in lab_reference_ranges and bulk_lab_range_import_jobs. Running. Owner evidence (medium). Replace string study and site IDs (baseline).
  • TestCode: SDTM-shaped code value object. Replace with a kernel ConceptRef, 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.
  • ILabRangeService and LabRangeService: 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). LabRangeImportService imports Infrastructure.Persistence directly, a layer breach. Decide whether capture or evidence owns bulk ingestion.
  • IUcumNormalizationService and UcumNormalizationService: unit conversion. Platform utility or kernel terminology. Owner platform-shell (medium); kernel IUcumNormalizer port per K-FACT-2 (kernel, high for the port).
  • ILabToxicityGovernanceService and LabToxicityGovernanceService: review queue and grading. Owner safety (medium). Publishes Grade3ToxicityDetected through the outbox, but no in-repo consumer exists. Confirm the consumer.
  • StagedAdverseEventReview: AggregateRoot<string> with staged_adverse_event_reviews. Owner safety (medium). Replace the string key and the StudyCode/SiteCode fields.
  • IStagedAdverseEventReviewRepository and StagedAdverseEventReviewRepository: no direct test. Add tests before any move (safety, medium).
  • ToxicityDtos: owner safety (medium). StagedAdverseEventReviewResponse has string IDs (baseline).
  • LabToxicityEndpoints.cs: owner safety (medium). Confirm grading is safety-owned.
  • Shared engine: packages/engine_core already has LabToxicityGradingEngine and CgtBarcodeEngine. 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)

  • IAuditLogWriter and EfAuditLogWriter: a second audit seam writing audit_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).
  • ServiceAccount and ServiceAccounts: consumer writes attributed to svc: accounts. Adopt kernel ServiceAccount Actor, or keep per-app accounts (kernel, high).
  • ConcurrencyConflictException: 409 signal. Keep, or promote to a shared SDK error type (platform-shell, medium).
  • IAllocationProtector and AesGcmAllocationProtector: 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).
  • IDemographicsNormalizationService and DemographicsNormalizationService: GetSafeDemographics has 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 to packages/database only after the per-owner table inventory and an ADR-2600 review (platform-shell, medium).
  • ExecutionRepositoryBase: base for about eight repositories. Move to packages/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)

  • ChangeReasonHeaderFilter and ValidationFilter: 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, SubjectState and the other Subject* 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, the AggregateRoot<string> CEC and staged-review types. Spec §2.3 forbids string study, site and participant IDs.
  • Layer breaches: CgtApplicationService and LabRangeImportService import Infrastructure.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 is Cadence.Kernel.Time (IClock) and ParticipantId. Cadence.Core.Domain resolves to packages/engine_core, which is shared utility rather than kernel. The one cross-context link is EConsentCompletedConsumer, which writes subjects and consents from an eConsent event.
  • Shared abstractions with several consumers: AuthenticatedCaller, IAuditLogWriter and ConcurrencyConflictException. Their owner decisions should be taken together.
  • Test gaps before any move: no direct tests for CgtEndpoints, LabRangeEndpoints, StagedAdverseEventReviewRepository or ExecutionDbSeeder. No direct tests by type name for the CGT aggregates, BulkLabRangeFileParser, BulkLabRangeImportJob or DomainCode.
  • Inventory gaps: docs/kernel/EXECUTION_MIGRATION_INVENTORY.md has no rows for CEC, CGT, toxicity, bulk lab-range import, IAllocationProtector, AuthenticatedCaller or ConcurrencyConflictException. 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.Domain adds FluentValidation, and Cadence.Security adds Microsoft.EntityFrameworkCore, System.IdentityModel.Tokens.Jwt and Microsoft.IdentityModel.Tokens. Cadence.Kernel.Abstractions has no package references.
  • The 16 Cadence.Core.Domain baseline entries are all StudyId/SiteId members on Randomization, Supply and Rules types. No file under Kernel.Modules, Abstractions, Application or Domain references those type names. The only consumers are packages/engine_core itself 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/kernel and 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.

AppFiles referencing the appTest methods (attributes)Events published or consumedOutbound HTTP clients
apps/execution88575Publishes Grade3ToxicityDetected (no in-repo consumer). Consumes EConsentCompletedEvent (EConsentCompletedConsumer).None
apps/interop1260NoneNone
apps/knowledge730NoneNone
apps/fileshare719NoneNone
apps/org47NoneNone

Notes:

  • The execution app is the only one with an event contract. EConsentCompletedEvent crosses 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.E2ETests and Cadence.ArchitectureTests projects 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)SuggestionReason deferred
interop EhrEndpointRecord, EhrReconciliationCandidateRecordcapture (low)Matrix assigns EHR to clinical-data; the owner is not confirmed
interop Instrument, SubjectAssignmentparticipants (low)Low confidence; overlaps subject decision
interop SensorSafetyAlertRecordunclearNo owner in the review
interop ClinicalQuerykernel (low)Name is in the K-XS-1 baseline; kernel query model not decided
interop DatabaseLockAuthTokenevidence (low)Attestation-like token; signature decision pending
interop DeviceTokenHasherevidence (medium)Scaffold, no caller; device registration overlaps Allocate
interop SmartSigningKeysplatform-shell (medium)Review said the owner value is not valid; the eSource flow owner is open
knowledge KnowledgeCategory, KnowledgeArticle, KnowledgeArticleVersionunclearNo owner in the review
knowledge ContextualHelpMappingplatform-shell (low)Low confidence
knowledge TrainingCurriculum, TrainingAssignment, TrainingCertificatetrial-operations (low)Qualification authority is kernel; the split is not decided
knowledge DelegationRecord, OrgAuditLog, KnowledgeArticleAuditLogkernelDuplicates org tables; spec forbids module-local delegation and audit
org DelegationOfAuthoritykernel (medium)Delegation design is not decided
org TrainingLogtrial-operations (medium)Partly qualification, which is kernel
fileshare FileRecordplatform-shell (medium)Foreign-key target for four tables with another owner
fileshare ShareGrant, GuestLinktrial-operations (medium)Foreign keys to file_records, a different owner
execution SiteComplianceCacheunclear (low)Legacy compliance table, no owner
execution SynonymRule, BulkSynonymImportJobunclear (low)Terminology owner (evidence or capture) not decided
execution ConsumedSignatureTokenplatform-shellMatrix says kernel; the two conflict
execution RandomizationAllocationinterventionsForeign key to clinical_subjects, a different owner (A3)
execution DomainCodecapture (medium)No standards owner in the list
execution TestCodeevidence (medium)SDTM representation, conflicts with K-TRUTH-1; replacement needs ConceptRef
execution ProtocolVersionRef, StudyCode, SiteCode, SubjectCodekernel or participantsID replacement is a design decision, tracked in #5693
execution StagedAdverseEventReview and toxicity typessafety (medium)Grade3ToxicityDetected has no consumer; confirm before moving
execution AmbientAuditContextAccessorkernel (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/main over apps/, packages/, tests/, docs/kernel and docs/architecture changes 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.Domain namespace 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.

ContextDbSetsReal migrationsNotes
apps/execution ExecutionDbContext2618One 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)23Schema execution. Form instances and queries, capture-owned.
apps/execution signature-token context0(shares 3)Applies the token configuration only.
apps/interop InteropDbContext194Mixed: ePRO, EHR, device and sensor, SCE.
apps/knowledge KnowledgeDbContext123Several DbSets use default table names with no configuration.
apps/org OrgDbContext52
apps/fileshare FileshareDbContext62

Findings that block a split:

  1. Cross-owner foreign keys. randomization_allocations.SubjectId references clinical_subjects (interventions to participants). In fileshare, four tables (share_grants, guest_links, playback_audit_logs, file_audit_logs) reference file_records, which is platform-shell. Each needs a decision before a split.
  2. Duplicate concepts. Knowledge maps DelegationRecords, OrgAuditLogs and training entities with default names. Org owns delegations_of_authority, org_audit_logs and org_training_logs. Delegation is kernel authority (the kernel row in CAPABILITY_OWNERSHIP_MATRIX.md), and K-XS-1 forbids module-local audit tables. KernelBoundaryRules.cs names OrgAuditLog.
  3. Name collisions if contexts share one database. audit_log_entries is created by raw SQL in four contexts, and ExecutionDbContext uses the default AuditLogEntries name. clinical_queries is an interop table, while the dev reset recreates execution's retired one. consumed_signature_tokens exists in both public and execution. Only the module context sets MigrationsHistoryTable.
  4. 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.
  5. Outbox tables. OutboxMessage, OutboxState and InboxState exist only in ExecutionDbContext. A split needs one outbox per owner or one shared kernel outbox (ADR-2600).
  6. 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.
  7. Raw SQL. Outside migrations, only the dev reset (packages/cli/src/Services/DatabaseResetService.cs) creates tables, in one shared public schema. 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/.

MessageProducerConsumerDeclared inIn packages/contracts
EConsentCompletednone in repoapps/etmf consumerpackages/contractsyes
EConsentCompletedEvent (execution copy)none in repoapps/execution consumerapps/execution/src/Infrastructure/Consumersno, duplicate shape
EconsentReconsentRequiredapps/econsentapps/notifications consumerpackages/contractsyes
Grade3ToxicityDetectedapps/execution (LabToxicityGovernanceService)none in repopackages/contractsyes
EtmfDocumentFilingRequestednone in repoapps/etmf consumerpackages/contractsyes
DeviceDeficiencyReportedEvent, DeviceQuarantinedEventapps/executionnoneapps/execution/src/Application/Devicesno

Findings for Capture and Engage:

  1. EConsentCompleted has no producer in the repo. Only consumers exist. The execution consumer runs only in tests.
  2. 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 uses SignedAt ?? clock.UtcNow. Consolidate into packages/contracts before a split, and decide the null rule once.
  3. Every host uses the in-memory transport. UsingInMemory appears 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.
  4. Grade3ToxicityDetected has a producer and no consumer. The safety decision needs a named consumer before the event moves.
  5. Versioning. No message type carries a version suffix or schema version. The kernel spec's schema_version and 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 ​

InvariantIntegration (PostgreSQL)Unit (no DB)Skip pathGap
G1 Atomic module and kernel write (K-TX)about 37 methodsabout 16 methodsSkipIfUnavailable()No test names a rollback when the kernel write fails.
G2 Authorization (K-AUTH)22 methodsabout 90 methodsSkipIfUnavailable()PostgreSQL-backed caller-claim path skips.
G3 Audit (PRD-SYS-001, Merkle chain)1 methodabout 34 methodsSkipIfUnavailable()No test found that targets VersionIndex or ReasonForChange fill. Unconfirmed, not proven absent.
G4 Integrity: idempotency and concurrencyabout 31 methodsabout 39 methodsSkipIfUnavailable()The real parallel enrollment race runs only with PostgreSQL.
G5 Tenant isolation (K-ID)about 25 methodsabout 11 methodsSkipIfUnavailable()Cross-study isolation runs only with PostgreSQL.
G6 eCRF workflow (enter, correct, query, review, sign, lock)12 methodsabout 6 methodsSkipIfUnavailable()No named test for correct or review. The full chain runs only in the E2E journey.
G7 Failure and recoveryabout 31 methodsabout 59 methodsSkipIfUnavailable()Crash-and-replay and rollback have no test outside the skipped PostgreSQL files.
G8 Randomization and blinding27 methodsabout 41 methodsSkipIfUnavailable()Database refusal to rewrite an allocation skips without PostgreSQL.
G9 Consent scope3 methodsabout 47 methodsSkipIfUnavailable()Withdrawal-based capture is tested only with PostgreSQL.
G10 Time (K-TIME-3)about 20 methodsabout 30 methodsSkipIfUnavailable()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:

  1. Skips are the proof gap. Groups G1, G4, G5, G6, G7 and G8 have no executed evidence without PostgreSQL. LocalCiRunner.RejectSkippedDatabaseTests fails a local run with skipped database tests unless --allow-skip is passed.
  2. This machine cannot run them. Neither CADENCE_TEST_POSTGRES nor CADENCE_TEST_DOCKER is 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 LICENSE is ISC, held by "Cadence Clinical Workspace Authors".
  • Directory.Build.props asserts "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_PARTY or per-package licence file exists, and no source file has a licence header. No .csproj sets a package licence.
  • The 80-plus NuGet packages in Directory.Packages.props have no recorded licence. Every status is "unverified". fo-dicom (imaging) and SonarAnalyzer need 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/Library holds 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/openapi and docs/CDISC hold large specification JSON files (the largest is 5.3 MB).
  • packages/kernel/src/Cadence.Standards/Seed holds 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:

ComponentMaturityEvidence
apps/executionrunningSubject, CEC, lab and CGT routes mapped
apps/interopscaffold (README)eSource and SCE routes; the README and Program.cs disagree on ePRO
apps/knowledgeunclearREADME says no endpoints; Program.cs maps training routes
apps/filesharescaffoldHealth and status only in src; workers run but nothing feeds them
apps/orgscaffoldHealth and status only
packages/engine_coreunclearPython references still present, C# ports missing
packages/securityrunningUsed by all services
packages/storagerunningFilesystem 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.

ClassProjectsRule for extraction
Composition and toolingpackages/tooling_core (references all app projects), packages/cli, apps/apphost, apps/kernel-api, apps/gatewayStays in cadence-clinical. Not extracted to a product repo. Tooling reads products through their public contracts only.
Platform shared librariespackages/engine_core (Cadence.Core.Domain), packages/security, packages/database, packages/telemetry, packages/contracts, packages/testing, packages/compliance, packages/deid, packages/storage, packages/templatingVersioned 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 dependenciesEdges between product apps and kernel abstractionsThese 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, TestCode and DomainCode as 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 of EConsentCompleted.
  • 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 LICENSE and Directory.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 at 365c74b0 and are superseded by the sections above.