Complete inventory of the Surveys subsystem — templated, typed, optionally-anonymous questionnaires assigned to employees — plus a pointer to Conversations, which Task.md groups here but which the code implements as a Performance feature.

Source of truth: core-backend-service source plus a live pass (Playwright, "Pade Demo" tenant, 2026-07-20; screenshots).

⚠️ Two scope clarifications up front

  1. "AI conversation rounds" (from Task.md) does not exist. An exhaustive search of the backend found no AI/LLM code — no OpenAI/Azure OpenAI/Anthropic SDK, no completion calls, no config. Conversations are human-scripted (authored ConversationPrompts), not AI-generated. (RFD-003)
  2. Conversations are owned by Performance, not Surveys. The Conversation* entities are driven by _performanceService and the frontend lives entirely under performance/. They're cross-referenced here but documented with Performance Legacy. (RFD-002)

This set primarily documents Surveys.


Backend scale (Surveys, verified 2026-07-20)

Service Lines Role
SurveyService.cs 1,649 Core domain — surveys, templates, questions, responses
AdminSurveysService.cs 925 Admin orchestration
Employee/SurveysService.cs 133 Employee self-service (take a survey)
Total ~2,707

Controllers

Controller Endpoints
Admin/SurveysController 27
SurveyController 3
Employee/SurveysController 2

1. The survey model (TenantDb, CompanyId-scoped)

SurveyTemplate ──< SurveyTemplateQuestion ──< SurveyTemplateResponseOption
   │  (reusable; Custom or Default/platform)
   └─(auto-populates)─▶
Survey ──> SurveyType (General/Confirmation/Exit), SurveyStatus, IsAnonymous
   │  └──< SurveyQuestion ──> ReviewResponseType, SurveyResponseOption
   └──(assigned to)──▶ EmployeeSurvey ──> Person, EmployeeSurveyStatus
                          └──< SurveyResponse
Entity Purpose Key fields
Survey A questionnaire instance SurveyTypeId, SurveyStatusId, Description, IsAnonymous
SurveyQuestion A question on a survey SurveyId, ReviewResponseTypeId, Description
SurveyResponseOption An answer option
SurveyResponse A person's answer
EmployeeSurvey A survey assigned to a person PersonId, EmployeeSurveyStatusId
SurveyTemplate (+Question,+ResponseOption) Reusable definition — Custom (company) or Default (platform, in MembershipDb)

2. Enums (SurveyModel.cs)

Enum Values
SurveyTypeParams / SurveyTemplateTypeParams General · Confirmation · Exit
SurveyStatuParams / SurveyTemplateStatuParams New · Ready
EmployeeSurveyStatuParams Not started · In progress · Completed