Skip to content
CAI
Software that uses CAICheck a score

stphnwlsh/CleanMinimalApi

61.9

Adequate · 8 November 2026

2.5k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial Entity Framework Core infrastructure for Movie Reviews

The Infrastructure layer now provides the data persistence implementation for the Movie Reviews domain using Entity Framework Core with an in-memory database. This includes the definition of database models (Author, Movie, Review), Entity Framework configurations for relationships and keys, and an AutoMapper setup to map between Application entities and Infrastructure models. The repository pattern is implemented via EntityFrameworkMovieReviewsRepository, which handles CRUD operations for authors, movies, and reviews, and is registered in the dependency injection container along with the DbContext and a TimeProvider singleton.

src/Infrastructure · high confidence

Initial release of Clean Minimal API template for .NET 10

This change introduces the initial codebase for the Clean Minimal API template, a streamlined implementation of Clean Architecture using .NET 10 Minimal APIs. The solution is structured into three main projects: Presentation (Minimal API endpoints), Application (domain logic and CQRS-style commands/queries), and Infrastructure (data access and internal implementations). It includes a Dockerfile and docker-compose.yml for containerized development, an .editorconfig for consistent code styling, and a global.json pinning the SDK to version 10.0.1. The template is installable via the \dotnet new\ CLI and integrates Serilog, MediatR, FluentValidation, and Swashbuckle. Also in this area: 4 commits (0 fixes) modifying (repo-wide).

(repo-wide) · low confidence · unverified

Initial release of CleanMinimalApi presentation layer

This change introduces the Presentation layer for the CleanMinimalApi, establishing the HTTP API surface using .NET Minimal APIs. It defines endpoints for Authors, Movies, and Reviews (including full CRUD operations for Reviews) as well as a Version endpoint, all wired through a CQRS pattern using MediatR. The implementation includes a custom validation filter leveraging FluentValidation, structured logging via Serilog, OpenAPI/Swagger documentation, and JSON serialization configured for performance and AOT compatibility. Also in this area: 2 commits (0 fixes) modifying src/Presentation.

src/Presentation · medium confidence · unverified

Behavioural changes

16 commits (0 fixes) modifying src/Presentation/Endpoints

A change to existing behaviour in src/Presentation/Endpoints — 16 commits, 6 files: “feat: add search and paging endpoints for movies, authors and reviews (\#50)”; “Move validation into Application and replace MediatR with Mediator (\#44)”; “Search reviews by their text and a minimum star rating (\#79)”; and 13 more (refs \#50, \#44, \#79, \#72, \#67, …).

src/Presentation/Endpoints · medium confidence · unverified

20 commits (0 fixes) modifying src/Presentation/Extensions

A change to existing behaviour in src/Presentation/Extensions — 20 commits, 3 files: “Update Review Types (\#24)”; “Move validation into Application and replace MediatR with Mediator (\#44)”; “Drop dead code, page through PageRequest, and give the version and clock one home each (\#69)”; and 17 more (refs \#24, \#44, \#69, \#28, \#5, …).

src/Presentation/Extensions · medium confidence · unverified

27 commits (2 fixes) modifying src/Application

A change to existing behaviour in src/Application — 27 commits (2 fixs), 56 files: “Update Review Types (\#24)”; “Cleanup Code with Dotnet Format”; “Cleanup and Alignment”; and 24 more (refs \#24, \#44, \#69, \#79, \#28, …).

src/Application · medium confidence · unverified

4 commits (0 fixes) modifying Infrastructure

A change to existing behaviour in Infrastructure — 4 commits, 3 files: “Write once, check by the rows changed, and tidy the shared layers (\#67)”; “Give the sample movies recognisable titles and add review text (\#78)”; “Cleanup and Naming Alignment”; and 1 more (refs \#67, \#78, \#53).

Infrastructure · medium confidence · unverified

5 commits (0 fixes) modifying src/Presentation/Serialization

A change to existing behaviour in src/Presentation/Serialization — 5 commits, 2 files: “feat: add search and paging endpoints for movies, authors and reviews (\#50)”; “Add agent instructions, the Sous persona and engineering skills (\#64)”; “Write once, check by the rows changed, and tidy the shared layers (\#67)”; and 2 more (refs \#50, \#64, \#67, \#53).

src/Presentation/Serialization · medium confidence · unverified

6 commits (0 fixes) modifying src/Presentation/OpenApi

A change to existing behaviour in src/Presentation/OpenApi — 6 commits, 2 files: “feat: add search and paging endpoints for movies, authors and reviews (\#50)”; “Move to the org and rebuild the pipeline as one chain (\#62)”; “Launch polish: .slnx, dotnet new metadata, rename-safe links and --include-auth (\#70)”; and 3 more (refs \#50, \#62, \#70, \#47, \#51, …).

src/Presentation/OpenApi · medium confidence · unverified

8 commits (0 fixes) modifying src/Infrastructure/Databases

A change to existing behaviour in src/Infrastructure/Databases — 8 commits, 20 files: “Drop dead code, page through PageRequest, and give the version and clock one home each (\#69)”; “Search reviews by their text and a minimum star rating (\#79)”; “feat: add search and paging queries to the Application layer (\#49)”; and 5 more (refs \#69, \#79, \#49, \#67, \#78, …).

src/Infrastructure/Databases · medium confidence · unverified

Test coverage

14 commits adding/updating tests in tests/Presentation.Tests.Integration/Endpoints; 15 commits adding/updating tests in tests/Infrastructure.Tests.Integration/Databases/MovieReviews; 2 commits adding/updating tests in tests/Presentation.Tests.Unit/Serialization; 2 commits adding/updating tests in tests/Presentation.Tests.Unit/Telemetry; 21 commits adding/updating tests in tests/Application.Tests.Unit; 3 commits adding/updating tests in tests/Presentation.Tests.Integration/Authentication; 3 commits adding/updating tests in tests/Presentation.Tests.Unit/Authentication, tests/Presentation.Tests.Unit/OpenApi; 4 commits adding/updating tests in tests/Presentation.Tests.Integration/Extensions; 5 commits adding/updating tests in tests/Presentation.Tests.Integration/OpenApi; 5 commits adding/updating tests in tests/Presentation.Tests.Unit/Errors; 7 commits adding/updating tests in tests/Infrastructure.Tests.Integration/Databases/MovieReviews/Extensions; 9 commits adding/updating tests in tests/Presentation.Tests.Integration; Added code coverage exclusions for test assemblies; Added unit tests for presentation-layer endpoints and validators.

Dependencies

Upgrade to .NET 10 and update core dependencies

The solution has been migrated to target .NET 10.0, updating the Presentation layer and the template project to use the new framework version. This change includes upgrading key dependencies to versions compatible with .NET 10, such as Microsoft.EntityFrameworkCore.InMemory (10.0.11), Microsoft.AspNetCore.OpenApi (10.0.11), and Serilog.AspNetCore (10.0.0). Test projects have also been updated to use xUnit 2.9.3, NSubstitute 6.2.0, and Microsoft.NET.Test.Sdk 18.9.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

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 46 → 62 (+15.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 64 → 86 (+22.4)
  • Architecture 76 → 75 (-1.2)
  • Maturity 51 → 68 (+16.9)
  • Readiness 51 → 49 (-2.4)
  • Security 35 → 85 (+49.2)
  • Performance 71 → 77 (+6.4)

Resolved (56)

  • Coverage not measured — no coverage collector is wired up
  • Deprecated: AutoMapper.Extensions.Microsoft.DependencyInjection (src/Infrastructure/Infrastructure.csproj)
  • Deprecated: MediatR.Extensions.Microsoft.DependencyInjection (src/Application/Application.csproj)
  • Deprecated: xunit (tests/Application.Tests.Unit/Application.Tests.Unit.csproj)
  • Deprecated: xunit (tests/Infrastructure.Tests.Integration/Infrastructure.Tests.Integration.csproj)
  • Deprecated: xunit (tests/Presentation.Tests.Integration/Presentation.Tests.Integration.csproj)
  • Deprecated: xunit (tests/Presentation.Tests.Unit/Presentation.Tests.Unit.csproj)
  • Duplicated block (5 lines × 2) (src/Infrastructure/Databases/MovieReviews/Mapping/AuthorMappingProfile.cs)
  • High CVE: AutoMapper 12.0.1 (src/Infrastructure/Infrastructure.csproj)
  • High IaC: DS-0002 (Dockerfile)
  • High IaC: WD-COMPOSE-0002 (docker-compose.yml)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • …and 36 more

New (34)

  • CoverageExclusion (src/Infrastructure/Databases/MovieReviews/MovieReviewsDbContextFactory.cs)
  • Duplicated block (5 lines × 2) (src/Application/Authors/Queries/GetAuthors/GetAuthorsValidator.cs)
  • Duplicated block (8 lines × 2) (src/Infrastructure/Databases/MovieReviews/Extensions/MovieReviewsDbContextExtensions.cs)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • …and 14 more

Changes since last survey

  • 44 commits — 42 feature/other, 2 fixes

By area

  • (root) — 15 commits
  • src/Application — 7 commits
  • .agents/skills — 6 commits
  • .github/workflows — 5 commits
  • src/Presentation — 5 commits
  • .template_config/template.json — 1 commit
  • docs/RUN.md — 1 commit
  • src/Infrastructure — 1 commit
  • tests/Application.Tests.Unit — 1 commit
  • tests/Presentation.Tests.Integration — 1 commit
  • tests/Presentation.Tests.Unit — 1 commit

Notable commits

  • fix: Fix Scorecard results so code scanning can process them (#56)
  • fix: Fix the template package and publish to NuGet only (#48)
  • change: Add Presentation.http with sample requests for every endpoint (#83)
  • change: Add agent instructions, the Sous persona and engineering skills (#64)
  • change: Add optional JWT bearer authentication (#51)
  • change: Agents and CI: Jacques plans and hands off, and every solution gets a simple pipeline (#72)
  • change: Align Codecov and add security scanning (#33)
  • change: Align repository docs, templates and local run setup (#42)
  • change: Apply the best-practices review: SQLite, paging, list summaries, health checks and build rules (#53)
  • change: Bump the "monthly-dependencies" group with 1 update across multiple ecosystems (#54)
  • change: Bump the "monthly-dependencies" group with 2 updates across multiple ecosystems (#45)
  • change: Dispose CancellationTokenSource in tests (#43)
  • change: Drop dead code, page through PageRequest, and give the version and clock one home each (#69)
  • change: Give each template its own block of local ports (#82)
  • change: Give the sample movies recognisable titles and add review text (#78)
  • change: Help people find the templates in search (#77)
  • change: Introduce the team and link the template's home page (#61)
  • change: Keep the template out of generated solutions and group the token options in the IDEs (#75)
  • change: Launch polish: .slnx, dotnet new metadata, rename-safe links and --include-auth (#70)
  • change: Link the troubleshooting page from SUPPORT.md (#85)
  • …and 24 more

API surface

  • 9 added · 9 removed (a removed endpoint is potentially breaking)

Added endpoints (9)

  • DELETE /api/reviews/{id}
  • GET /api/authors
  • GET /api/authors/{id}
  • GET /api/movies
  • GET /api/movies/{id}
  • GET /api/reviews
  • GET /api/reviews/{id}
  • POST /api/reviews
  • PUT /api/reviews/{id}

Removed endpoints (breaking) (9)

  • DELETE /api/review/{id}
  • GET /api/author
  • GET /api/author/{id}
  • GET /api/movie
  • GET /api/movie/{id}
  • GET /api/review
  • GET /api/review/{id}
  • POST /api/review
  • PUT /api/review/{id}

Architecture

  • Containers 0 added · 0 removed · contexts 1 added · 0 removed · edges 0 added · 0 removed

Added bounded contexts (1)

  • python

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

Survey your own repository

stphnwlsh/CleanMinimalApi 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 4cc0fa9eb3f8a3680347dd23b43d98c30f52eefa — 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.