DTRAC Engine JSON UI and modulesJSON screen definitions pass through the JSON UI runtime inside :app to render participant screens. The study app assembles plugin contracts and configuration, feature plugins, and shared modules. UI JSON and plugin registry configuration are separate. The :ui module provides the shared Compose theme. Data stored locally in Room is pushed to the selected Firebase or Supabase backend. Study app :app App launch & navigation / AppNavHost → UiJsonApp Screen definitions assets/ui/ index.json screens/*.json bottom_sheets/*.json Screen definition · excerpt { "id": "sleep", "title": "Sleep", "children": [ { "unit": "block", "type": "CardBlock", … } ] } JSON UI app/uijson/v1 Load UiJsonLoader Validate UiJsonValidator Run screen UiJsonEngine Render UiNodeRenderer Bindings BindingResolver JSON bindings ↔ domain data Actions ActionDispatcher Click · navigate · save · modal Participant screen Sleep Last 7 days Example screen · fictional values App-assembled modules Collection settings registry.json enabled · type · priority manifests/plugins/ Plugin contracts & config :core:plugin-api Plugin · data provision :core:registry Activation · source priority Feature plugins :plugins:* UI extensions survey cognitivegames Collection providers sensor healthconnect samsunghealth Shared modules :ui Compose theme :core:repo Domain data :core:db Room :core:store State & sync Data flow Room Sync & upload Firebase or Supabase PUSH-ONLY Current app implementation · JSON UI is a package inside :app, not a separate SDK boundary DataCollection · 6114fef UI JSON Compose UI & data flow Module & config links 01020304Modules9:417h 24mAvg. sleepMTWTFSSToday’s surveyView recordsSleepWeekChart Run & collection control app + plugins/sensor Notification schedule · background collection · start/stop UiExtension · screen routes Store plugin data Network required · retry on failure
DTRAC Engine architecture
Implementation evidence

Based on DataCollection main at 6114fef. The participant screen illustrates a configuration based on the actual sleep.json structure; the sleep values are fictional. :ui provides the shared Compose theme, while the JSON UI runtime is the app/uijson/v1 package inside :app. Module connections show how the app assembles modules, not the complete Gradle dependency graph. Plugin registry collection settings and UiExtension screen route registration are separate.

Run and collection control groups the app notification schedule and plugins/sensor collection services that the app assembles and controls. SensorSyncWorker requires network connectivity and retries failed work. Registry priority specifies source priority.