Skip to content
CAI
Software that uses CAICheck a score

MarcelMichau/fake-survey-generator

59.0

Adequate · 8 November 2026

3.4k

lines of production code

C#

with TypeScript

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add domain shared primitives and seed work abstractions

The application layer now includes foundational domain building blocks: a \NonEmptyString\ value object that enforces non-null, non-whitespace constraints via a factory method, an abstract \Enumeration\ base class providing value-based equality, ID/name lookup, and reflection-based enumeration discovery, and an \IAggregateRoot\ marker interface for domain entities. These types support stricter domain modeling and consistent handling of enumerations and string values across the application.

src/server/FakeSurveyGenerator.Application/Domain/Shared · high confidence

Add notification infrastructure stubs

Introduced a MessageModel record to define notification payloads and a NotificationService implementation that logs simulated message sending, providing the initial infrastructure layer for the application's notification feature.

src/server/FakeSurveyGenerator.Application/Features/Notifications, src/server/FakeSurveyGenerator.Application/Infrastructure/Notifications · high confidence

Added Bruno API collection for the Fake Survey Generator API

This change introduces a new Bruno API collection for the Fake Survey Generator API, providing ready-to-use HTTP request definitions for testing and development. The collection includes endpoints for Admin operations (such as retrieving API version information, checking system health via a ping endpoint, and accessing secrets from the Dapr Secret Store), Survey management (creating, retrieving specific surveys, and listing user-created surveys), and User management (registering users, retrieving user details, and checking user registration status). It also includes a Bruno configuration file and a Production environment definition pointing to the live domain.

api-collections · high confidence

Added centralized service defaults for observability, resilience, and health checks

The FakeSurveyGenerator.ServiceDefaults project now provides a shared extension library that configures core infrastructure for all service projects. This includes automatic OpenTelemetry instrumentation for logging, metrics, and tracing (with health check endpoints excluded from traces), standard HTTP resilience handlers for client calls, and service discovery. It also registers default liveness and readiness health checks, exposing them at /health and /alive endpoints during development, and supports exporting telemetry to OTLP or Azure Monitor based on configuration.

src/server/FakeSurveyGenerator.ServiceDefaults · high confidence

Automated TypeScript type generation for the API client

A new tooling script has been added to automatically generate TypeScript type definitions (generated.d.ts) for the client-side API. This script builds the server project to extract OpenAPI contracts and uses openapi-typescript to create type-safe interfaces, ensuring that client code remains synchronized with the server's API structure.

tools · high confidence

Initial database schema migration for Survey, User, and SurveyOption entities

Added the initial Entity Framework Core migration (20231021132053\_CleanState) and model snapshot to establish the database schema. This migration creates the Survey, User, and SurveyOption tables within the Survey schema, defines the relationships (including a cascade delete from Survey to User and owned SurveyOptions), and sets up HiLo identity sequences for ID generation.

src/server/FakeSurveyGenerator.Application/Infrastructure/Migrations · high confidence

Initial project scaffolding with .NET 11 SDK and Aspire

The repository has been initialized with a new project structure, including a new \.slnx\ solution file, a \NuGet.config\ for package sources, and an \aspire.config.json\ for local development orchestration. The project targets the .NET 11 SDK (specifically version 11.0.100-rc.1) as defined in \global.json\, and includes a new \.dockerignore\ file to optimize container builds. Documentation has been added, including a \GLOSSARY.md\ defining domain terms, an updated \README.md\ detailing the full-stack architecture (API, Worker, UI), and an \LICENSE\ file.

(repo-wide) · high confidence

Introduce Aspire-based local development environment with Dapr and Vite frontend

The application now uses an Aspire AppHost to orchestrate local development, replacing previous setup methods. This configuration provisions a SQL Server database, a Redis cache, the main API, and a background worker, ensuring they start in the correct order with health checks. It also integrates a Vite-based frontend (UI) with HTTPS developer certificate support and exposes it on port 3000. Additionally, the API service is configured to run with a Dapr sidecar, enabling distributed application capabilities locally.

src/server/FakeSurveyGenerator.AppHost · high confidence

Introduce FakeSurveyGenerator.Worker background service

A new background worker service has been added to the application. It runs on a 10-second interval using a PeriodicTimer to query the database for the total number of surveys and logs the count. The worker is configured via a new Dockerfile targeting .NET 11.0.0-rc.1 and includes standard infrastructure and application service registrations.

src/server/FakeSurveyGenerator.Worker · high confidence

Introduce dedicated API configuration extensions and admin endpoints

The API project now uses a modular configuration pattern with dedicated extension classes for OpenAPI (Scalar), authentication (JWT/OAuth2), Dapr secret stores, forwarded headers, security headers, and health checks, all wired through a new Program.cs entry point. A new /api/admin endpoint group exposes version information, a ping check, and a secret-test route for diagnostics. Survey and user endpoints are now explicitly mapped with request and validation logging filters, and the Dockerfile is updated to build the frontend assets and serve them via the API container.

src/server/FakeSurveyGenerator.Api · high confidence

Introduce identity provider infrastructure and OAuth user info service

The application now includes a new identity infrastructure layer in the Application project. This adds an ITokenProviderService and its JwtBearerTokenProviderService implementation to extract JWT tokens from the current HTTP context. It introduces an OAuthUserInfoService that retrieves user details (ID, display name, email) from an OpenID Connect provider using the Duende.IdentityModel client library, with caching via HybridCache and resilience via Polly (handling timeouts and circuit breaks). Configuration is centralized in IdentityProviderConfigurationExtensions, which registers the HTTP client, services, and an OpenID Connect health check. New user models (OAuthUser, SystemUser, UnauthorizedUser) implement the IUser interface, and a SystemUserInfoService provides a static system user identity.

src/server/FakeSurveyGenerator.Application/Infrastructure/Identity · high confidence

Introduce shared application infrastructure for auditing, errors, identity, and notifications

This change adds a new set of shared application-layer components to support core cross-cutting concerns. It introduces an \AuditableModel\ record to standardize audit fields (created/modified by and on) across entities, and establishes a structured error handling system with \Error\ and \ValidationError\ classes alongside helper methods for common scenarios like not-found or forbidden states. Additionally, it defines interfaces for user identity (\IUser\, \IUserService\) and notifications (\INotificationService\), providing a consistent contract for accessing user context and sending messages within the application.

src/server/FakeSurveyGenerator.Application/Shared · high confidence

Introduces configurable vote distribution strategies for surveys

The survey generation logic now supports multiple vote distribution behaviors via a new \IVoteDistribution\ interface and its implementations. Users can now generate surveys where votes are distributed randomly, concentrated on a single randomly selected option, or assigned based on specific preferred vote counts per option, allowing for more varied and realistic survey simulation scenarios.

src/server/FakeSurveyGenerator.Application/Domain/Surveys · high confidence

Introduces domain model and domain event infrastructure

The application layer now includes the core domain entities (User, Survey, AuditableEntity, Entity) and a custom domain event system (IDomainEvent, DomainEvent, SurveyCreatedDomainEvent). This replaces previous implementations with a new base class structure for entities that supports identity-based equality and hash code generation, and introduces a mechanism for entities to raise and manage domain events, such as the SurveyCreatedDomainEvent triggered when a new survey is instantiated.

FakeSurveyGenerator.Application · high confidence

New Azure DevOps CI/CD pipeline with digest-based deployment

This change introduces a new Azure DevOps pipeline configuration (\.azdo/pipelines/azure-dev.yml\) and supporting scripts that establish a secure, deterministic deployment workflow. The pipeline validates PRs targeting \main\ by running backend and frontend tests, generating database migration scripts, and packaging candidate container images. A key behavioral shift is the use of immutable image digests: the \publish-image.sh\ script publishes a candidate image and resolves its SHA-256 digest, which is then passed to \deploy-image.sh\ for deployment via \azd deploy api --from-package\. This ensures the deployed revision matches the exact validated artifact without rebuilding. The pipeline also includes regression tests (\test\_pipeline.py\) to verify workflow invariants, such as SDK pinning via \global.json\, revision suffix length limits, and coverage report handling.

.azdo · high confidence

New persistence interceptors for audit trails and domain event publishing

The application now includes two new Entity Framework Core interceptors in the persistence infrastructure. The AuditableEntitySaveChangesInterceptor automatically populates CreatedBy, CreatedOn, ModifiedBy, and ModifiedOn fields on entities inheriting from AuditableEntity, ensuring consistent audit metadata. The PublishDomainEventsInterceptor publishes domain events after a database commit succeeds, clearing them from entities to prevent duplication; if event publishing fails, the failure is logged rather than causing a rollback, ensuring data durability while acknowledging that guaranteed delivery would require an outbox pattern.

src/server/FakeSurveyGenerator.Application/Infrastructure/Persistence/Interceptors · high confidence

New survey creation and management UI with Auth0 integration

The client UI has been rewritten to use Auth0 for authentication and a new React Query-based API layer for data fetching. Users can now create surveys with semantic analysis, view their surveys in a dedicated table, and delete surveys with a confirmation dialog. The interface includes a splash screen for unauthenticated users, a 'Retry registration' button for failed user registration, and skeleton loaders during data fetching. The UI also features a Neo-Brutalist design with specific button variants and alert components.

src/client/ui/src · high confidence

New survey management commands and semantic analysis feature

This change introduces new application-layer commands and queries for the survey feature, including the ability to create, delete, and retrieve survey details and lists. It also adds a new semantic analysis capability that evaluates survey topics and options for quality and bias, returning warnings and confidence scores. The implementation uses a custom command/query pattern with FluentValidation, HybridCache for data retrieval, and direct SQL queries for listing user surveys, replacing previous patterns.

src/server/FakeSurveyGenerator.Application/Features/Surveys · high confidence

Architecture

Restructure infrastructure into modular Bicep components

The infrastructure definition in infra/modules has been reorganized from monolithic templates into a set of focused, reusable Bicep modules. This change introduces dedicated modules for core resources including the Container App Environment, Dapr secret stores, Azure Managed Redis, SQL Server with VNet-connected deployment scripts, and Key Vault. It also adds specific modules for supporting infrastructure such as App Insights, DNS zones, and deployment script storage, while consolidating compute and networking logic into the virtual network and managed identity modules. This modularization improves maintainability and allows individual components to be deployed or updated independently.

infra/modules · high confidence

Restructured infrastructure with standardized naming and modular Bicep templates

The infrastructure deployment has been reorganized into modular Bicep files (main.bicep, api.bicep) and a new abbreviations.json file to enforce consistent, standardized naming conventions for Azure resources. This change introduces a structured approach to resource provisioning, including dedicated modules for virtual networks, SQL, Redis, and managed identities, while updating API configurations to use specific environment variables and managed identity authentication.

infra · high confidence

Behavioural changes

Implement user management features with custom query/command handlers

The Users feature area now includes dedicated handlers for retrieving user details (GetUserQuery), checking registration status (IsUserRegisteredQuery), and registering new users (RegisterUserCommand). These handlers use a custom IQuery/ICommand interface pattern instead of MediatR, validate inputs via FluentValidation, and map domain entities to UserModel records using extension methods. The RegisterUserCommand handles idempotent registration by checking for existing external users before creating new ones.

src/server/FakeSurveyGenerator.Application/Features/Users · high confidence

Migrate caching infrastructure to .NET 9 HybridCache with Azure Managed Redis

The application's caching layer has been updated to use the new .NET 9 HybridCache API, replacing the previous distributed cache implementation. This change is wired up via a new \CacheConfigurationExtensions\ class that configures the Redis client connection using \HostName\ and \Password\ settings and registers the hybrid cache services. This aligns with the broader migration from Azure Cache for Redis to Azure Managed Redis, providing a modernized caching experience for the application.

src/server/FakeSurveyGenerator.Application/Infrastructure/Caching · high confidence

Migrate frontend build tooling to Vite and Vitest

The client UI has migrated from the previous build setup to Vite as the primary bundler and development server, replacing the prior tooling. This change introduces a new Vite configuration that proxies API requests and enables the React plugin, alongside a Vitest configuration that sets up browser-based testing using Playwright with Chromium. Supporting configuration files have been added, including TypeScript project references (tsconfig.app.json, tsconfig.node.json), a Biome linter/formatter configuration, PostCSS for Tailwind CSS processing, and a versioning manifest (version.json) for the UI area.

src/client/ui · high confidence

Migrate to custom command/query handlers and consolidate service registration

The application layer now replaces the previous MediatR-based dispatching with a custom, lightweight command and query handler pattern defined in the new \Abstractions/Handlers.cs\ interfaces. Service registration is consolidated into \HostApplicationBuilderConfiguration.cs\, which explicitly registers all command handlers (such as \CreateSurveyCommand\ and \DeleteSurveyCommand\), query handlers (like \GetUserSurveysQuery\), and domain event handlers, alongside FluentValidation and infrastructure setup. This change removes the dependency on MediatR for request dispatching in favor of direct DI resolution of the new handler interfaces.

src/server/FakeSurveyGenerator.Application · high confidence

New EF Core persistence layer with domain event publishing and audit tracking

The application now uses Entity Framework Core with a new SurveyContext to manage database interactions. This change introduces automatic audit tracking (CreatedOn, ModifiedOn, etc.) via the AuditableEntitySaveChangesInterceptor and ensures domain events are published to the event bus immediately upon saving changes through the PublishDomainEventsInterceptor. Entity mappings for Survey and User are defined with specific configurations, including HiLo ID generation and owned entity handling for survey options.

src/server/FakeSurveyGenerator.Application/Infrastructure/Persistence · high confidence

Replace EventBus with a new DomainEvents system

The application's event dispatching mechanism has been refactored from the previous EventBus implementation to a new DomainEvents system. This change introduces a structured domain event pattern with specific interfaces (IDomainEvent, IDomainEventHandler) and a dedicated publisher (DomainEventPublisher) that manages handler execution and logging, providing a more robust and type-safe way to handle internal application events.

src/server/FakeSurveyGenerator.Application/DomainEvents · high confidence

Survey analysis now uses Microsoft Foundry's Decision-1 model

The survey analysis feature has switched from the previous TypeSafe Jev provider to Microsoft Foundry's Decision-1 model via the SystemOne API. This change introduces new configuration options under the 'SurveyAnalysis' section, including 'Endpoint' (the Foundry resource URL), 'Deployment' (defaulting to 'decision-1'), and 'TenantId' for Microsoft Entra authentication. The analyzer now sends survey topics, audiences, and options to the Foundry endpoint, receiving semantic analysis results that evaluate response shape, leading language, option coverage, and other quality metrics. Warning thresholds for these metrics have been tuned specifically for the Decision-1 model's probability distributions. Authentication is handled via Azure DefaultAzureCredential with token caching, and resilience policies (timeouts, circuit breaking, rate limiting) are configured to accommodate the longer processing times typical of LLM-based analysis.

src/server/FakeSurveyGenerator.Application/Infrastructure/SurveyAnalysis · high confidence

Test coverage

Added TestUser helper for simplified test setup; Added integration tests for caching, forwarded headers, and Aspire host configuration; Added integration tests for survey and admin endpoints; Added integration tests for user endpoints; Added test coverage for infrastructure services; Added test infrastructure for survey application integration tests; Added tests for Entity domain base class behavior; Added tests for the domain event publisher; Added unit tests for survey creation, validation, and vote calculation; Added unit tests for survey creation, validation, deletion, and retrieval; Added unit tests for user query and command handlers; New acceptance test suite for UI and API health checks; Refactored integration test infrastructure to use Aspire and mock external services.

Dependencies

Broad dependency updates across .NET and JavaScript/TypeScript stacks

This release updates dependencies across the application, including .NET packages such as FluentAssertions, Dapr.AspNetCore, Microsoft.Extensions.Configuration.Abstractions, and CSharpFunctionalExtensions, as well as JavaScript/TypeScript packages in the client UI like @types/react, @types/node, @testing-library/react, tailwindcss, and postcss. The Aspire SDK and related packages are also updated to version 13.2.2, and the TUnit testing framework is upgraded to version 0.67.0.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 54 → 59 (+5.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 86 → 86 (+0.0)
  • Architecture 84 → 84 (-0.0)
  • Maturity 47 → 61 (+13.1)
  • Readiness 51 → 52 (+1.4)
  • Security 67 → 64 (-3.0)
  • Domain Modelling 56 → 64 (+7.6)
  • Event-Driven 100 → 100 (+0.0)
  • Accessibility 66 → 66 (+0.2)
  • Performance 85 → 85 (+0.0)

Resolved (36)

  • Documentation: no contributor guidance (README.md)
  • Documentation: no project overview (README.md)
  • Outdated (npm): @auth0/auth0-auth-js
  • Outdated (npm): @auth0/auth0-spa-js
  • Outdated (npm): @babel/code-frame
  • Outdated (npm): @babel/helper-validator-identifier
  • Outdated (npm): @redocly/ajv
  • Outdated (npm): @redocly/config
  • Outdated (npm): @redocly/openapi-core
  • Outdated (npm): @tanstack/query-core
  • Outdated (npm): @tanstack/react-query
  • Outdated (npm): agent-base
  • Outdated (npm): argparse
  • Outdated (npm): balanced-match
  • Outdated (npm): brace-expansion
  • Outdated (npm): colorette
  • Outdated (npm): es-cookie
  • Outdated (npm): https-proxy-agent
  • Outdated (npm): jose
  • Outdated (npm): js-tokens
  • …and 16 more

New (1)

  • redundant comment (src/server/FakeSurveyGenerator.Application/HostApplicationBuilderConfiguration.cs)

Changes since last survey

  • 21 commits — 19 feature/other, 2 fixes

By area

  • (repo) — 7 commits
  • src/client — 5 commits
  • src/server — 5 commits
  • .azdo/pipelines — 3 commits
  • (root) — 1 commit

Notable commits

  • fix: fix(tests): never run browser test classes in parallel
  • fix: fix(tests): reload the UI when Chromium reports ERR_NETWORK_CHANGED
  • change: Bump the nuget-dependencies group with 24 updates
  • change: Bump the nuget-dependencies group with 4 updates
  • change: Merge branch 'main' into dependabot/nuget/dot-config/nuget-dependencies-c7a6d4de20
  • change: Merge pull request #2848 from MarcelMichau/dependabot/npm_and_yarn/src/client/ui/npm-dependencies-4dc4afe673
  • change: Merge pull request #2849 from MarcelMichau/dependabot/nuget/dot-config/nuget-dependencies-c7a6d4de20
  • change: Merge pull request #2850 from MarcelMichau/ci/diagnose-ui-acceptance-stall
  • change: Merge pull request #2851 from MarcelMichau/chore/dotnet-rc3-container-images
  • change: Merge pull request #2852 from MarcelMichau/dependabot/npm_and_yarn/src/client/ui/npm-dependencies-6383d89db4
  • change: Merge pull request #2853 from MarcelMichau/dependabot/nuget/src/server/nuget-dependencies-6c60b18476
  • change: chore(deps): bump the npm-dependencies group
  • change: chore(deps): bump the npm-dependencies group
  • change: chore(docker): update .NET base images to 11.0 RC.3
  • change: chore(sdk): bump .NET SDK to 11.0.100-rc.3.26522.148
  • change: ci(pipeline): publish Playwright UI diagnostics when backend tests fail
  • change: ci(pipeline): surface UI reloads after ERR_NETWORK_CHANGED as build warnings
  • change: ci(pipeline): update azd to 1.37.1 and Dapr to 1.19
  • change: test(ui): bump vite to 8.3.5 to check the stall reproduces in isolation
  • change: test(ui): pin vite to 8.3.4 to check the CI acceptance-test stall
  • …and 1 more

API surface

  • Unchanged — 11 HTTP endpoints

Architecture

  • Unchanged — 5 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

MarcelMichau/fake-survey-generator was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit c9c82772def3f230069b22dd6d869efd0204037c — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.