Engineering/AI documentation
Survey Integrations
Surveys configures participant question and survey collection flows connected to project research.
Concepts: triangulation
Implementation Summary
Surveys configures participant question and survey collection flows connected to project research.
Frontend Surface
frontend/src/components/integrations/SurveysTab.tsxfrontend/src/components/integrations/SurveySetupWizard.tsxfrontend/src/stores/integrationsStore.tsfrontend/src/lib/api.tsbackend/app/api/routes/surveys.py
State, API, And Backend Contracts
Stores
frontend/src/stores/integrationsStore.ts
API And Backend
backend/app/api/routes/surveys.py
Architecture Notes
- The feature is mounted through
frontend/src/components/integrations/SurveysTab.tsxand the UI navigation path recorded in the inventory. SurveysTabrequests survey integrations and links with the active project id, clears stale integration state on project changes, and renders only survey integrations whoseproject_idmatches the active project.- Linked surveys are cleared before each project fetch and filtered by active
project_idbefore rendering, preventing survey links from a previous project from lingering in the table while a new project loads. SurveysTabpasses the active project id into survey link sync and integration deletion actions, whileSurveySetupWizardrefuses connection tests without an active project and stamps new integrations with that project id.backend/app/api/routes/surveys.pyrequiresproject_idon project-facing integration and survey-link lists, integration deletion, platform survey listing/creation, link sync, and response reads. Survey links must use an integration bound to the same active project before syncing or returning responses, and stale ids from another project resolve as not found.- Simulation and benchmark survey integration calls must include the active project id on by-id sync, response, deletion, and cleanup URLs, so the harness cannot validate global survey-link behavior by accident.
- The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
- When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.
Agents, Skills, LLM, MCP, And Permissions
- Survey ingestion creates provisional visible nuggets plus raw survey-response evidence units for the Research Spine. These artifacts are not reportable until governed coding, reliability/reconciliation, and Done-task gates accept the linked evidence.
- Skills or agents that analyze survey or deployment responses may propose candidate findings, but they cannot mark those outputs as accepted report evidence.
Tests And Verification
tests/test_surveys.pytests/test_project_scope_contracts.pytests/test_integration_simulation_scope.py
Related Features
Related Concepts
Compass Evidence
- Spec/task: CF-SPEC-53 / CF-657; CF-SPEC-60 / CF-762; CF-SPEC-60 / CF-776; CF-SPEC-65 / CF-842; CF-SPEC-82 / CF-1061
- Inventory source:
docs/features/inventory.json
When To Update
- Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
- Regenerate the site and machine manifests with
python scripts/feature_docs.py --seed-missing --generate-site --check.