Skip to main content

Data Analysis System

This system covers model workflows, predictions, run inputs/outputs, files, and chat.

Run state follows the backend execution model: run → steps → attempts. DTOs and selection helpers live in dto/execution-run.ts; logs, metrics, and outputs belong to attempts.

Where it lives​

  • shared system root: projects/shared-lib/src/lib/modules/app-execution
  • global route entry: projects/global-app/src/app/app.routes.ts under /experiment
  • model-related pages: projects/global-app/src/app/modules/model-store

What belongs to this system​

  • model workflow DTOs
  • prediction DTOs
  • model and workflow resolvers
  • execution services
  • data-analysis store state
  • execution input and output components
  • workflow run chat and file management

System boundary​

Start here when the problem appears after a workflow or model is already selected and the user is running it, supplying inputs, inspecting outputs, or interacting with run chat.

Do not start here for workflow authoring, store browsing, or standalone file browser work. Those belong to neighboring systems.

System shape​

Key folders​

FolderWhy you care
dtodefines the objects moving between frontend and backend
componentsowns the execution UI, dialogs, result views, and chat views
serviceowns API calls, resolvers, file management, and LLM-related helpers
store/data-analysisowns workflow run state, files, uploads, and chat state
store/modelowns model list and detail state

What to edit for common tasks​

TaskStart here
change model workflow overview or detail UIprojects/shared-lib/src/lib/modules/app-execution/components
change run inputs, file uploads, or result outputthe matching component in components plus store/data-analysis
change resolver behavior for /experiment or /modelprojects/shared-lib/src/lib/modules/app-execution/service/*resolver*.ts
change model workflow chat behaviormodel-workflow-chat.service.ts and chat-related components

Adjacent systems​

What usually trips people up​

  • This system is shared, but some route shells live in global-app.
  • Files here are not the same thing as the standalone /files browser.
  • There is LLM-related behavior in here too. Check data-analysis-llm.service.ts before adding a parallel helper in some random component.