Executive summary
iammukeshm/CleanArchitecture.WebApi scores 48 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged. Watchdog judged it as a template, sample or demo, meant to be read or copied, so the dimensions about building, releasing and running a product don't apply, and its lenses are rated against a lower bar. The score itself is worked out as for any repository.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 37 and is rated Adequate. Its Test Distribution dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 1 No tests found finding(s) in Test Distribution and to resolve the 2 Leaked secret finding(s) in Secret Scanning, and if Production Readiness rose to 70, the score would rise from 48 to about 57.
20 findings are critical: six in Dependency Vulnerabilities, five in Dependency Hygiene, five in Explicit Debt, two in Secret Scanning and two in Static Analysis (SAST).
Watchdog couldn't measure Runtime accessibility in this code, so that dimension is left out of the score. The product code is 1,908 lines, which would take an estimated 0.1 person-years, around €2,000, to rebuild.
If Production Readiness rose from 37 to 70, the lowest score rated Strong, the score would rise from 48 to about 57.
New since the last survey: 43 findings
- Secret Scanning · REDACTED
- Secret Scanning · REDACTED
- Explicit Debt · Dead code: BaseEntity Domain/Common/BaseEntity.cs
- Explicit Debt · Dead code: GetAllAsync Application/Interfaces/IGenericRepositoryAsync.cs
- Explicit Debt · Dead code: AuthenticationHelper Infrastructure.Identity/Helpers/AuthenticationHelper.cs
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Cancellation propagation · Async method without CancellationToken: GetByIdAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: GetPagedReponseAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: AddAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: UpdateAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: DeleteAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: GetAllAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: IsUniqueBarcodeAsync Infrastructure.Persistence/Repositories/ProductRepositoryAsync.cs
- Cancellation propagation · Async method without CancellationToken: AuthenticateAsync Infrastructure.Identity/Services/AccountService.cs
- Cancellation propagation · Async method without CancellationToken: RegisterAsync Infrastructure.Identity/Services/AccountService.cs
- Cancellation propagation · Async method without CancellationToken: ForgotPassword Infrastructure.Identity/Services/AccountService.cs
- Cancellation propagation · Async method without CancellationToken: SendAsync Infrastructure.Shared/Services/EmailService.cs
- Cancellation propagation · Async method drops its ambient CancellationToken: Invoke WebApi/Middlewares/ErrorHandlerMiddleware.cs
- Slice cohesion · Cross-slice coupling: Application → Domain Application/Features/Products/Commands/CreateProduct/CreateProductCommand.cs
- Slice cohesion · Cross-slice coupling: Application → Domain Application/Features/Products/Queries/GetProductById/GetProductByIdQuery.cs
- Slice cohesion · Cross-slice coupling: Application → Domain Application/Interfaces/Repositories/IProductRepositoryAsync.cs
- Slice cohesion · Cross-slice coupling: Application → Domain Application/Mappings/GeneralProfile.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application REDACTED
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Services/AuthenticatedUserService.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Startup.cs
- Slice cohesion · Cross-slice coupling: WebApi → Application WebApi/Startup.cs
Rebuild cost: about €2,000 · Estimate
| Cost to rebuild | €680 to €3,300, for 11 to 35 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 48. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Very small: 1,908 lines of product code, of which 46% is declarations and boilerplate, 45% straight logic and 9% logic with branches |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 Application | 2 Application.Behaviours | 3 Application.DTOs.Account | 4 Application.DTOs.Email | 5 Application.Enums | 6 Application.Exceptions | 7 Application.Filters | 8 Application.Mappings | 9 Application.Wrappers | 10 Domain.Common | 11 Domain.Settings | 12 Infrastructure.Identity | 13 Infrastructure.Identity.Contexts | 14 Infrastructure.Identity.Helpers | 15 Infrastructure.Persistence | 16 Infrastructure.Shared | 17 WebApi | 18 WebApi.Extensions | 19 WebApi.Middlewares | 20 WebApi.Models | 21 Application.Interfaces | 22 Domain.Entities | 23 Infrastructure.Identity.Models | 24 Application.Interfaces.Repositories | 25 Infrastructure.Identity.Seeds | 26 Infrastructure.Identity.Services | 27 Infrastructure.Persistence.Contexts | 28 Infrastructure.Shared.Services | 29 WebApi.Controllers | 30 WebApi.Services | 31 Application.Features.Products.Commands.CreateProduct | 32 Application.Features.Products.Commands.DeleteProductById | 33 Application.Features.Products.Commands.UpdateProduct | 34 Application.Features.Products.Queries.GetAllProducts | 35 Application.Features.Products.Queries.GetProductById | 36 Infrastructure.Persistence.Repository | 37 Infrastructure.Persistence.Repositories | 38 WebApi.Controllers.v1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 Application | ||||||||||||||||||||||||||||||||||||||
| 2 Application.Behaviours | ||||||||||||||||||||||||||||||||||||||
| 3 Application.DTOs.Account | ||||||||||||||||||||||||||||||||||||||
| 4 Application.DTOs.Email | ||||||||||||||||||||||||||||||||||||||
| 5 Application.Enums | ||||||||||||||||||||||||||||||||||||||
| 6 Application.Exceptions | ||||||||||||||||||||||||||||||||||||||
| 7 Application.Filters | ||||||||||||||||||||||||||||||||||||||
| 8 Application.Mappings | ||||||||||||||||||||||||||||||||||||||
| 9 Application.Wrappers | ||||||||||||||||||||||||||||||||||||||
| 10 Domain.Common | ||||||||||||||||||||||||||||||||||||||
| 11 Domain.Settings | ||||||||||||||||||||||||||||||||||||||
| 12 Infrastructure.Identity | ||||||||||||||||||||||||||||||||||||||
| 13 Infrastructure.Identity.Contexts | ||||||||||||||||||||||||||||||||||||||
| 14 Infrastructure.Identity.Helpers | ||||||||||||||||||||||||||||||||||||||
| 15 Infrastructure.Persistence | ||||||||||||||||||||||||||||||||||||||
| 16 Infrastructure.Shared | ||||||||||||||||||||||||||||||||||||||
| 17 WebApi | ||||||||||||||||||||||||||||||||||||||
| 18 WebApi.Extensions | ||||||||||||||||||||||||||||||||||||||
| 19 WebApi.Middlewares | ||||||||||||||||||||||||||||||||||||||
| 20 WebApi.Models | ||||||||||||||||||||||||||||||||||||||
| 21 Application.Interfaces | 5 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 22 Domain.Entities | 1 | |||||||||||||||||||||||||||||||||||||
| 23 Infrastructure.Identity.Models | 1 | |||||||||||||||||||||||||||||||||||||
| 24 Application.Interfaces.Repositories | 1 | |||||||||||||||||||||||||||||||||||||
| 25 Infrastructure.Identity.Seeds | 3 | |||||||||||||||||||||||||||||||||||||
| 26 Infrastructure.Identity.Services | 6 | 1 | 1 | 3 | 1 | |||||||||||||||||||||||||||||||||
| 27 Infrastructure.Persistence.Contexts | 2 | 1 | ||||||||||||||||||||||||||||||||||||
| 28 Infrastructure.Shared.Services | 1 | 1 | 2 | |||||||||||||||||||||||||||||||||||
| 29 WebApi.Controllers | 4 | 1 | ||||||||||||||||||||||||||||||||||||
| 30 WebApi.Services | 1 | |||||||||||||||||||||||||||||||||||||
| 31 Application.Features.Products.Commands.CreateProduct | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 32 Application.Features.Products.Commands.DeleteProductById | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 33 Application.Features.Products.Commands.UpdateProduct | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 34 Application.Features.Products.Queries.GetAllProducts | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 35 Application.Features.Products.Queries.GetProductById | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 36 Infrastructure.Persistence.Repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 37 Infrastructure.Persistence.Repositories | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||
| 38 WebApi.Controllers.v1 | 1 | 1 | 1 | 1 |
21→3 Application.Interfaces uses Application.DTOs.Account✕
- Connections
- 5 pairs of types, where a type in Application.Interfaces uses a type in Application.DTOs.Account.
- The types involved
Application.Interfaces.IAccountService→Application.DTOs.Account.AuthenticationRequestApplication.Interfaces.IAccountService→Application.DTOs.Account.AuthenticationResponseApplication.Interfaces.IAccountService→Application.DTOs.Account.ForgotPasswordRequestApplication.Interfaces.IAccountService→Application.DTOs.Account.RegisterRequestApplication.Interfaces.IAccountService→Application.DTOs.Account.ResetPasswordRequest
- Direction
- Application.Interfaces uses Application.DTOs.Account, so a change to Application.DTOs.Account can break Application.Interfaces, while a change to Application.Interfaces can't break Application.DTOs.Account.
- Position
- Below the diagonal: Application.Interfaces uses a module listed above it, which is the healthy direction.
21→4 Application.Interfaces uses Application.DTOs.Email✕
- Connections
- 1 pair of types, where a type in Application.Interfaces uses a type in Application.DTOs.Email.
- The types involved
Application.Interfaces.IEmailService→Application.DTOs.Email.EmailRequest
- Direction
- Application.Interfaces uses Application.DTOs.Email, so a change to Application.DTOs.Email can break Application.Interfaces, while a change to Application.Interfaces can't break Application.DTOs.Email.
- Position
- Below the diagonal: Application.Interfaces uses a module listed above it, which is the healthy direction.
21→9 Application.Interfaces uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Interfaces uses a type in Application.Wrappers.
- The types involved
Application.Interfaces.IAccountService→Application.Wrappers.Response
- Direction
- Application.Interfaces uses Application.Wrappers, so a change to Application.Wrappers can break Application.Interfaces, while a change to Application.Interfaces can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Interfaces uses a module listed above it, which is the healthy direction.
22→10 Domain.Entities uses Domain.Common✕
- Connections
- 1 pair of types, where a type in Domain.Entities uses a type in Domain.Common.
- The types involved
Domain.Entities.Product→Domain.Common.AuditableBaseEntity
- Direction
- Domain.Entities uses Domain.Common, so a change to Domain.Common can break Domain.Entities, while a change to Domain.Entities can't break Domain.Common.
- Position
- Below the diagonal: Domain.Entities uses a module listed above it, which is the healthy direction.
23→3 Infrastructure.Identity.Models uses Application.DTOs.Account✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity.Models uses a type in Application.DTOs.Account.
- The types involved
Infrastructure.Identity.Models.ApplicationUser→Application.DTOs.Account.RefreshToken
- Direction
- Infrastructure.Identity.Models uses Application.DTOs.Account, so a change to Application.DTOs.Account can break Infrastructure.Identity.Models, while a change to Infrastructure.Identity.Models can't break Application.DTOs.Account.
- Position
- Below the diagonal: Infrastructure.Identity.Models uses a module listed above it, which is the healthy direction.
24→21 Application.Interfaces.Repositories uses Application.Interfaces✕
- Connections
- 1 pair of types, where a type in Application.Interfaces.Repositories uses a type in Application.Interfaces.
- The types involved
Application.Interfaces.Repositories.IProductRepositoryAsync→Application.Interfaces.IGenericRepositoryAsync
- Direction
- Application.Interfaces.Repositories uses Application.Interfaces, so a change to Application.Interfaces can break Application.Interfaces.Repositories, while a change to Application.Interfaces.Repositories can't break Application.Interfaces.
- Position
- Below the diagonal: Application.Interfaces.Repositories uses a module listed above it, which is the healthy direction.
25→23 Infrastructure.Identity.Seeds uses Infrastructure.Identity.Models✕
- Connections
- 3 pairs of types, where a type in Infrastructure.Identity.Seeds uses a type in Infrastructure.Identity.Models.
- The types involved
Infrastructure.Identity.Seeds.DefaultBasicUser→Infrastructure.Identity.Models.ApplicationUserInfrastructure.Identity.Seeds.DefaultRoles→Infrastructure.Identity.Models.ApplicationUserInfrastructure.Identity.Seeds.DefaultSuperAdmin→Infrastructure.Identity.Models.ApplicationUser
- Direction
- Infrastructure.Identity.Seeds uses Infrastructure.Identity.Models, so a change to Infrastructure.Identity.Models can break Infrastructure.Identity.Seeds, while a change to Infrastructure.Identity.Seeds can't break Infrastructure.Identity.Models.
- Position
- Below the diagonal: Infrastructure.Identity.Seeds uses a module listed above it, which is the healthy direction.
26→3 Infrastructure.Identity.Services uses Application.DTOs.Account✕
- Connections
- 6 pairs of types, where a type in Infrastructure.Identity.Services uses a type in Application.DTOs.Account.
- The types involved
Infrastructure.Identity.Services.AccountService→Application.DTOs.Account.AuthenticationRequestInfrastructure.Identity.Services.AccountService→Application.DTOs.Account.AuthenticationResponseInfrastructure.Identity.Services.AccountService→Application.DTOs.Account.ForgotPasswordRequestInfrastructure.Identity.Services.AccountService→Application.DTOs.Account.RefreshTokenInfrastructure.Identity.Services.AccountService→Application.DTOs.Account.RegisterRequestInfrastructure.Identity.Services.AccountService→Application.DTOs.Account.ResetPasswordRequest
- Direction
- Infrastructure.Identity.Services uses Application.DTOs.Account, so a change to Application.DTOs.Account can break Infrastructure.Identity.Services, while a change to Infrastructure.Identity.Services can't break Application.DTOs.Account.
- Position
- Below the diagonal: Infrastructure.Identity.Services uses a module listed above it, which is the healthy direction.
26→9 Infrastructure.Identity.Services uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity.Services uses a type in Application.Wrappers.
- The types involved
Infrastructure.Identity.Services.AccountService→Application.Wrappers.Response
- Direction
- Infrastructure.Identity.Services uses Application.Wrappers, so a change to Application.Wrappers can break Infrastructure.Identity.Services, while a change to Infrastructure.Identity.Services can't break Application.Wrappers.
- Position
- Below the diagonal: Infrastructure.Identity.Services uses a module listed above it, which is the healthy direction.
26→11 Infrastructure.Identity.Services uses Domain.Settings✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity.Services uses a type in Domain.Settings.
- The types involved
Infrastructure.Identity.Services.AccountService→Domain.Settings.JWTSettings
- Direction
- Infrastructure.Identity.Services uses Domain.Settings, so a change to Domain.Settings can break Infrastructure.Identity.Services, while a change to Infrastructure.Identity.Services can't break Domain.Settings.
- Position
- Below the diagonal: Infrastructure.Identity.Services uses a module listed above it, which is the healthy direction.
26→21 Infrastructure.Identity.Services uses Application.Interfaces✕
- Connections
- 3 pairs of types, where a type in Infrastructure.Identity.Services uses a type in Application.Interfaces.
- The types involved
Infrastructure.Identity.Services.AccountService→Application.Interfaces.IAccountServiceInfrastructure.Identity.Services.AccountService→Application.Interfaces.IDateTimeServiceInfrastructure.Identity.Services.AccountService→Application.Interfaces.IEmailService
- Direction
- Infrastructure.Identity.Services uses Application.Interfaces, so a change to Application.Interfaces can break Infrastructure.Identity.Services, while a change to Infrastructure.Identity.Services can't break Application.Interfaces.
- Position
- Below the diagonal: Infrastructure.Identity.Services uses a module listed above it, which is the healthy direction.
26→23 Infrastructure.Identity.Services uses Infrastructure.Identity.Models✕
- Connections
- 1 pair of types, where a type in Infrastructure.Identity.Services uses a type in Infrastructure.Identity.Models.
- The types involved
Infrastructure.Identity.Services.AccountService→Infrastructure.Identity.Models.ApplicationUser
- Direction
- Infrastructure.Identity.Services uses Infrastructure.Identity.Models, so a change to Infrastructure.Identity.Models can break Infrastructure.Identity.Services, while a change to Infrastructure.Identity.Services can't break Infrastructure.Identity.Models.
- Position
- Below the diagonal: Infrastructure.Identity.Services uses a module listed above it, which is the healthy direction.
27→21 Infrastructure.Persistence.Contexts uses Application.Interfaces✕
- Connections
- 2 pairs of types, where a type in Infrastructure.Persistence.Contexts uses a type in Application.Interfaces.
- The types involved
Infrastructure.Persistence.Contexts.ApplicationDbContext→Application.Interfaces.IAuthenticatedUserServiceInfrastructure.Persistence.Contexts.ApplicationDbContext→Application.Interfaces.IDateTimeService
- Direction
- Infrastructure.Persistence.Contexts uses Application.Interfaces, so a change to Application.Interfaces can break Infrastructure.Persistence.Contexts, while a change to Infrastructure.Persistence.Contexts can't break Application.Interfaces.
- Position
- Below the diagonal: Infrastructure.Persistence.Contexts uses a module listed above it, which is the healthy direction.
27→22 Infrastructure.Persistence.Contexts uses Domain.Entities✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Contexts uses a type in Domain.Entities.
- The types involved
Infrastructure.Persistence.Contexts.ApplicationDbContext→Domain.Entities.Product
- Direction
- Infrastructure.Persistence.Contexts uses Domain.Entities, so a change to Domain.Entities can break Infrastructure.Persistence.Contexts, while a change to Infrastructure.Persistence.Contexts can't break Domain.Entities.
- Position
- Below the diagonal: Infrastructure.Persistence.Contexts uses a module listed above it, which is the healthy direction.
28→4 Infrastructure.Shared.Services uses Application.DTOs.Email✕
- Connections
- 1 pair of types, where a type in Infrastructure.Shared.Services uses a type in Application.DTOs.Email.
- The types involved
Infrastructure.Shared.Services.EmailService→Application.DTOs.Email.EmailRequest
- Direction
- Infrastructure.Shared.Services uses Application.DTOs.Email, so a change to Application.DTOs.Email can break Infrastructure.Shared.Services, while a change to Infrastructure.Shared.Services can't break Application.DTOs.Email.
- Position
- Below the diagonal: Infrastructure.Shared.Services uses a module listed above it, which is the healthy direction.
28→11 Infrastructure.Shared.Services uses Domain.Settings✕
- Connections
- 1 pair of types, where a type in Infrastructure.Shared.Services uses a type in Domain.Settings.
- The types involved
Infrastructure.Shared.Services.EmailService→Domain.Settings.MailSettings
- Direction
- Infrastructure.Shared.Services uses Domain.Settings, so a change to Domain.Settings can break Infrastructure.Shared.Services, while a change to Infrastructure.Shared.Services can't break Domain.Settings.
- Position
- Below the diagonal: Infrastructure.Shared.Services uses a module listed above it, which is the healthy direction.
28→21 Infrastructure.Shared.Services uses Application.Interfaces✕
- Connections
- 2 pairs of types, where a type in Infrastructure.Shared.Services uses a type in Application.Interfaces.
- The types involved
Infrastructure.Shared.Services.DateTimeService→Application.Interfaces.IDateTimeServiceInfrastructure.Shared.Services.EmailService→Application.Interfaces.IEmailService
- Direction
- Infrastructure.Shared.Services uses Application.Interfaces, so a change to Application.Interfaces can break Infrastructure.Shared.Services, while a change to Infrastructure.Shared.Services can't break Application.Interfaces.
- Position
- Below the diagonal: Infrastructure.Shared.Services uses a module listed above it, which is the healthy direction.
29→3 WebApi.Controllers uses Application.DTOs.Account✕
- Connections
- 4 pairs of types, where a type in WebApi.Controllers uses a type in Application.DTOs.Account.
- The types involved
WebApi.Controllers.AccountController→Application.DTOs.Account.AuthenticationRequestWebApi.Controllers.AccountController→Application.DTOs.Account.ForgotPasswordRequestWebApi.Controllers.AccountController→Application.DTOs.Account.RegisterRequestWebApi.Controllers.AccountController→Application.DTOs.Account.ResetPasswordRequest
- Direction
- WebApi.Controllers uses Application.DTOs.Account, so a change to Application.DTOs.Account can break WebApi.Controllers, while a change to WebApi.Controllers can't break Application.DTOs.Account.
- Position
- Below the diagonal: WebApi.Controllers uses a module listed above it, which is the healthy direction.
29→21 WebApi.Controllers uses Application.Interfaces✕
- Connections
- 1 pair of types, where a type in WebApi.Controllers uses a type in Application.Interfaces.
- The types involved
WebApi.Controllers.AccountController→Application.Interfaces.IAccountService
- Direction
- WebApi.Controllers uses Application.Interfaces, so a change to Application.Interfaces can break WebApi.Controllers, while a change to WebApi.Controllers can't break Application.Interfaces.
- Position
- Below the diagonal: WebApi.Controllers uses a module listed above it, which is the healthy direction.
30→21 WebApi.Services uses Application.Interfaces✕
- Connections
- 1 pair of types, where a type in WebApi.Services uses a type in Application.Interfaces.
- The types involved
WebApi.Services.AuthenticatedUserService→Application.Interfaces.IAuthenticatedUserService
- Direction
- WebApi.Services uses Application.Interfaces, so a change to Application.Interfaces can break WebApi.Services, while a change to WebApi.Services can't break Application.Interfaces.
- Position
- Below the diagonal: WebApi.Services uses a module listed above it, which is the healthy direction.
31→9 Application.Features.Products.Commands.CreateProduct uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Commands.CreateProduct uses a type in Application.Wrappers.
- The types involved
Application.Features.Products.Commands.CreateProduct.CreateProductCommandHandler→Application.Wrappers.Response
- Direction
- Application.Features.Products.Commands.CreateProduct uses Application.Wrappers, so a change to Application.Wrappers can break Application.Features.Products.Commands.CreateProduct, while a change to Application.Features.Products.Commands.CreateProduct can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Features.Products.Commands.CreateProduct uses a module listed above it, which is the healthy direction.
31→24 Application.Features.Products.Commands.CreateProduct uses Application.Interfaces.Repositories✕
- Connections
- 2 pairs of types, where a type in Application.Features.Products.Commands.CreateProduct uses a type in Application.Interfaces.Repositories.
- The types involved
Application.Features.Products.Commands.CreateProduct.CreateProductCommandHandler→Application.Interfaces.Repositories.IProductRepositoryAsyncApplication.Features.Products.Commands.CreateProduct.CreateProductCommandValidator→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Application.Features.Products.Commands.CreateProduct uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Application.Features.Products.Commands.CreateProduct, while a change to Application.Features.Products.Commands.CreateProduct can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Application.Features.Products.Commands.CreateProduct uses a module listed above it, which is the healthy direction.
32→9 Application.Features.Products.Commands.DeleteProductById uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Commands.DeleteProductById uses a type in Application.Wrappers.
- The types involved
Application.Features.Products.Commands.DeleteProductById.DeleteProductByIdCommandHandler→Application.Wrappers.Response
- Direction
- Application.Features.Products.Commands.DeleteProductById uses Application.Wrappers, so a change to Application.Wrappers can break Application.Features.Products.Commands.DeleteProductById, while a change to Application.Features.Products.Commands.DeleteProductById can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Features.Products.Commands.DeleteProductById uses a module listed above it, which is the healthy direction.
32→24 Application.Features.Products.Commands.DeleteProductById uses Application.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Commands.DeleteProductById uses a type in Application.Interfaces.Repositories.
- The types involved
Application.Features.Products.Commands.DeleteProductById.DeleteProductByIdCommandHandler→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Application.Features.Products.Commands.DeleteProductById uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Application.Features.Products.Commands.DeleteProductById, while a change to Application.Features.Products.Commands.DeleteProductById can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Application.Features.Products.Commands.DeleteProductById uses a module listed above it, which is the healthy direction.
33→9 Application.Features.Products.Commands.UpdateProduct uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Commands.UpdateProduct uses a type in Application.Wrappers.
- The types involved
Application.Features.Products.Commands.UpdateProduct.UpdateProductCommandHandler→Application.Wrappers.Response
- Direction
- Application.Features.Products.Commands.UpdateProduct uses Application.Wrappers, so a change to Application.Wrappers can break Application.Features.Products.Commands.UpdateProduct, while a change to Application.Features.Products.Commands.UpdateProduct can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Features.Products.Commands.UpdateProduct uses a module listed above it, which is the healthy direction.
33→24 Application.Features.Products.Commands.UpdateProduct uses Application.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Commands.UpdateProduct uses a type in Application.Interfaces.Repositories.
- The types involved
Application.Features.Products.Commands.UpdateProduct.UpdateProductCommandHandler→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Application.Features.Products.Commands.UpdateProduct uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Application.Features.Products.Commands.UpdateProduct, while a change to Application.Features.Products.Commands.UpdateProduct can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Application.Features.Products.Commands.UpdateProduct uses a module listed above it, which is the healthy direction.
34→7 Application.Features.Products.Queries.GetAllProducts uses Application.Filters✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetAllProducts uses a type in Application.Filters.
- The types involved
Application.Features.Products.Queries.GetAllProducts.GetAllProductsParameter→Application.Filters.RequestParameter
- Direction
- Application.Features.Products.Queries.GetAllProducts uses Application.Filters, so a change to Application.Filters can break Application.Features.Products.Queries.GetAllProducts, while a change to Application.Features.Products.Queries.GetAllProducts can't break Application.Filters.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetAllProducts uses a module listed above it, which is the healthy direction.
34→9 Application.Features.Products.Queries.GetAllProducts uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetAllProducts uses a type in Application.Wrappers.
- The types involved
Application.Features.Products.Queries.GetAllProducts.GetAllProductsQueryHandler→Application.Wrappers.PagedResponse
- Direction
- Application.Features.Products.Queries.GetAllProducts uses Application.Wrappers, so a change to Application.Wrappers can break Application.Features.Products.Queries.GetAllProducts, while a change to Application.Features.Products.Queries.GetAllProducts can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetAllProducts uses a module listed above it, which is the healthy direction.
34→24 Application.Features.Products.Queries.GetAllProducts uses Application.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetAllProducts uses a type in Application.Interfaces.Repositories.
- The types involved
Application.Features.Products.Queries.GetAllProducts.GetAllProductsQueryHandler→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Application.Features.Products.Queries.GetAllProducts uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Application.Features.Products.Queries.GetAllProducts, while a change to Application.Features.Products.Queries.GetAllProducts can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetAllProducts uses a module listed above it, which is the healthy direction.
35→9 Application.Features.Products.Queries.GetProductById uses Application.Wrappers✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetProductById uses a type in Application.Wrappers.
- The types involved
Application.Features.Products.Queries.GetProductById.GetProductByIdQueryHandler→Application.Wrappers.Response
- Direction
- Application.Features.Products.Queries.GetProductById uses Application.Wrappers, so a change to Application.Wrappers can break Application.Features.Products.Queries.GetProductById, while a change to Application.Features.Products.Queries.GetProductById can't break Application.Wrappers.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetProductById uses a module listed above it, which is the healthy direction.
35→22 Application.Features.Products.Queries.GetProductById uses Domain.Entities✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetProductById uses a type in Domain.Entities.
- The types involved
Application.Features.Products.Queries.GetProductById.GetProductByIdQueryHandler→Domain.Entities.Product
- Direction
- Application.Features.Products.Queries.GetProductById uses Domain.Entities, so a change to Domain.Entities can break Application.Features.Products.Queries.GetProductById, while a change to Application.Features.Products.Queries.GetProductById can't break Domain.Entities.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetProductById uses a module listed above it, which is the healthy direction.
35→24 Application.Features.Products.Queries.GetProductById uses Application.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Application.Features.Products.Queries.GetProductById uses a type in Application.Interfaces.Repositories.
- The types involved
Application.Features.Products.Queries.GetProductById.GetProductByIdQueryHandler→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Application.Features.Products.Queries.GetProductById uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Application.Features.Products.Queries.GetProductById, while a change to Application.Features.Products.Queries.GetProductById can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Application.Features.Products.Queries.GetProductById uses a module listed above it, which is the healthy direction.
36→21 Infrastructure.Persistence.Repository uses Application.Interfaces✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repository uses a type in Application.Interfaces.
- The types involved
Infrastructure.Persistence.Repository.GenericRepositoryAsync→Application.Interfaces.IGenericRepositoryAsync
- Direction
- Infrastructure.Persistence.Repository uses Application.Interfaces, so a change to Application.Interfaces can break Infrastructure.Persistence.Repository, while a change to Infrastructure.Persistence.Repository can't break Application.Interfaces.
- Position
- Below the diagonal: Infrastructure.Persistence.Repository uses a module listed above it, which is the healthy direction.
36→27 Infrastructure.Persistence.Repository uses Infrastructure.Persistence.Contexts✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repository uses a type in Infrastructure.Persistence.Contexts.
- The types involved
Infrastructure.Persistence.Repository.GenericRepositoryAsync→Infrastructure.Persistence.Contexts.ApplicationDbContext
- Direction
- Infrastructure.Persistence.Repository uses Infrastructure.Persistence.Contexts, so a change to Infrastructure.Persistence.Contexts can break Infrastructure.Persistence.Repository, while a change to Infrastructure.Persistence.Repository can't break Infrastructure.Persistence.Contexts.
- Position
- Below the diagonal: Infrastructure.Persistence.Repository uses a module listed above it, which is the healthy direction.
37→22 Infrastructure.Persistence.Repositories uses Domain.Entities✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repositories uses a type in Domain.Entities.
- The types involved
Infrastructure.Persistence.Repositories.ProductRepositoryAsync→Domain.Entities.Product
- Direction
- Infrastructure.Persistence.Repositories uses Domain.Entities, so a change to Domain.Entities can break Infrastructure.Persistence.Repositories, while a change to Infrastructure.Persistence.Repositories can't break Domain.Entities.
- Position
- Below the diagonal: Infrastructure.Persistence.Repositories uses a module listed above it, which is the healthy direction.
37→24 Infrastructure.Persistence.Repositories uses Application.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repositories uses a type in Application.Interfaces.Repositories.
- The types involved
Infrastructure.Persistence.Repositories.ProductRepositoryAsync→Application.Interfaces.Repositories.IProductRepositoryAsync
- Direction
- Infrastructure.Persistence.Repositories uses Application.Interfaces.Repositories, so a change to Application.Interfaces.Repositories can break Infrastructure.Persistence.Repositories, while a change to Infrastructure.Persistence.Repositories can't break Application.Interfaces.Repositories.
- Position
- Below the diagonal: Infrastructure.Persistence.Repositories uses a module listed above it, which is the healthy direction.
37→27 Infrastructure.Persistence.Repositories uses Infrastructure.Persistence.Contexts✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repositories uses a type in Infrastructure.Persistence.Contexts.
- The types involved
Infrastructure.Persistence.Repositories.ProductRepositoryAsync→Infrastructure.Persistence.Contexts.ApplicationDbContext
- Direction
- Infrastructure.Persistence.Repositories uses Infrastructure.Persistence.Contexts, so a change to Infrastructure.Persistence.Contexts can break Infrastructure.Persistence.Repositories, while a change to Infrastructure.Persistence.Repositories can't break Infrastructure.Persistence.Contexts.
- Position
- Below the diagonal: Infrastructure.Persistence.Repositories uses a module listed above it, which is the healthy direction.
37→36 Infrastructure.Persistence.Repositories uses Infrastructure.Persistence.Repository✕
- Connections
- 1 pair of types, where a type in Infrastructure.Persistence.Repositories uses a type in Infrastructure.Persistence.Repository.
- The types involved
Infrastructure.Persistence.Repositories.ProductRepositoryAsync→Infrastructure.Persistence.Repository.GenericRepositoryAsync
- Direction
- Infrastructure.Persistence.Repositories uses Infrastructure.Persistence.Repository, so a change to Infrastructure.Persistence.Repository can break Infrastructure.Persistence.Repositories, while a change to Infrastructure.Persistence.Repositories can't break Infrastructure.Persistence.Repository.
- Position
- Below the diagonal: Infrastructure.Persistence.Repositories uses a module listed above it, which is the healthy direction.
38→29 WebApi.Controllers.v1 uses WebApi.Controllers✕
- Connections
- 1 pair of types, where a type in WebApi.Controllers.v1 uses a type in WebApi.Controllers.
- The types involved
WebApi.Controllers.v1.ProductController→WebApi.Controllers.BaseApiController
- Direction
- WebApi.Controllers.v1 uses WebApi.Controllers, so a change to WebApi.Controllers can break WebApi.Controllers.v1, while a change to WebApi.Controllers.v1 can't break WebApi.Controllers.
- Position
- Below the diagonal: WebApi.Controllers.v1 uses a module listed above it, which is the healthy direction.
38→31 WebApi.Controllers.v1 uses Application.Features.Products.Commands.CreateProduct✕
- Connections
- 1 pair of types, where a type in WebApi.Controllers.v1 uses a type in Application.Features.Products.Commands.CreateProduct.
- The types involved
WebApi.Controllers.v1.ProductController→Application.Features.Products.Commands.CreateProduct.CreateProductCommand
- Direction
- WebApi.Controllers.v1 uses Application.Features.Products.Commands.CreateProduct, so a change to Application.Features.Products.Commands.CreateProduct can break WebApi.Controllers.v1, while a change to WebApi.Controllers.v1 can't break Application.Features.Products.Commands.CreateProduct.
- Position
- Below the diagonal: WebApi.Controllers.v1 uses a module listed above it, which is the healthy direction.
38→33 WebApi.Controllers.v1 uses Application.Features.Products.Commands.UpdateProduct✕
- Connections
- 1 pair of types, where a type in WebApi.Controllers.v1 uses a type in Application.Features.Products.Commands.UpdateProduct.
- The types involved
WebApi.Controllers.v1.ProductController→Application.Features.Products.Commands.UpdateProduct.UpdateProductCommand
- Direction
- WebApi.Controllers.v1 uses Application.Features.Products.Commands.UpdateProduct, so a change to Application.Features.Products.Commands.UpdateProduct can break WebApi.Controllers.v1, while a change to WebApi.Controllers.v1 can't break Application.Features.Products.Commands.UpdateProduct.
- Position
- Below the diagonal: WebApi.Controllers.v1 uses a module listed above it, which is the healthy direction.
38→34 WebApi.Controllers.v1 uses Application.Features.Products.Queries.GetAllProducts✕
- Connections
- 1 pair of types, where a type in WebApi.Controllers.v1 uses a type in Application.Features.Products.Queries.GetAllProducts.
- The types involved
WebApi.Controllers.v1.ProductController→Application.Features.Products.Queries.GetAllProducts.GetAllProductsParameter
- Direction
- WebApi.Controllers.v1 uses Application.Features.Products.Queries.GetAllProducts, so a change to Application.Features.Products.Queries.GetAllProducts can break WebApi.Controllers.v1, while a change to WebApi.Controllers.v1 can't break Application.Features.Products.Queries.GetAllProducts.
- Position
- Below the diagonal: WebApi.Controllers.v1 uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 13 | High / Critical |
| A05:2025 — Injection | 10 | High / Critical |
| A07:2025 — Authentication Failures | 2 | High / Critical |
Roadmap
Begin by addressing the 22 outdated dependencies, prioritizing updates in REDACTED, REDACTED, and REDACTED. Immediately remediate the two leaked secrets found in REDACTED and resolve the single instance of missing tests. Finally, eliminate the five vulnerable dependencies and address the four deprecated items, focusing first on REDACTED, REDACTED, and REDACTED.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No tests found finding(s) in Test Distribution. | +10.6 pts | Low | Test Distribution |
| Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2). | +10.0 pts | Low | Secret Scanning |
| Resolve the 5 Vulnerable finding(s) in Dependency Hygiene. | +7.9 pts | Low | Dependency Hygiene |
| Resolve the 4 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (2), REDACTED, REDACTED. | +5.5 pts | Low | Dependency Hygiene |
| Resolve the 22 Outdated finding(s) in Dependency Hygiene — start with REDACTED (8), REDACTED (7), REDACTED (7). | +10.6 pts | Medium | Dependency Hygiene |
| Resolve the 4 Orphaned file finding(s) in Knowledge Freshness — start with ServiceExtensions.cs (2), AccountService.cs, Program.cs. | +3.1 pts | Low | Knowledge Freshness |
| Resolve the 3 Documentation finding(s) in Documentation Quality — start with README.md (3). | +2.4 pts | Low | Documentation Quality |
| Resolve the 2 WriteOnlyPrivateField finding(s) in Explicit Debt — start with AccountService.cs (2). | +1.9 pts | Low | Explicit Debt |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 2.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.6 | Mixed | Dependency Vulnerabilities: Critical CVE: REDACTED |
| Infrastructure.Identity/Services/AccountService.cs | 3.9 | Mixed | Explicit Debt: WriteOnlyPrivateField |
| REDACTED | 5.8 | Mixed | Secret Scanning: Leaked secret: REDACTED |
| REDACTED | 6.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.9 | Near-clean | Dependency Vulnerabilities: Medium CVE: REDACTED |
| REDACTED | 7.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Near-clean | Dependency Vulnerabilities: Medium CVE: REDACTED |
| WebApi/Models/Metadata.cs | 8.2 | Near-clean | Explicit Debt: Dead code: Metadata |
| Domain/Common/BaseEntity.cs | 8.2 | Near-clean | Explicit Debt: Dead code: BaseEntity |
| Application/Interfaces/IGenericRepositoryAsync.cs | 8.2 | Near-clean | Explicit Debt: Dead code: GetAllAsync |
| Infrastructure.Identity/Helpers/AuthenticationHelper.cs | 8.2 | Near-clean | Explicit Debt: Dead code: AuthenticationHelper |
| Infrastructure.Identity/Seeds/DefaultBasicUser.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (17 lines × 2) |
| README.md | 9.1 | Near-clean | Documentation Quality: Documentation: no installation or build instructions |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 66 of 71 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 71 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 130 of 158 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (7 contributor(s) across 128 commit(s) sampled, automation and bot accounts excluded). One of them holds 94% of the history; the other 6 hold 1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via ToolchainServer (WebApi). the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'REDACTED'`: share/dotnet The following frameworks were found: 6.0.36 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] 7.0.20 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] 8.0.27 at [/usr/sha…; runtime evidence skipped (launch chosen because REDACTED is a Microsoft.NET.Sdk.Web project).
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
- ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
1 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (17 lines × 2) finding(s) in Code Duplication — start with DefaultBasicUser.cs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
6 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
D6 · Cohesion (LCOM4)
0 of 2 classes have LCOM4 above 3.
D9 · Test Distribution
No test suite found.
What to do
- Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).
D12 · Dependency Hygiene
31 outdated, 5 vulnerable, 4 deprecated packages.
What to do
- Resolve the 22 Outdated finding(s) in Dependency Hygiene — start with REDACTED (8), REDACTED (7), REDACTED (7). — One of this dimension's main actionable groups (22 recommendation-level).
- Resolve the 5 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 4 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
2 secret(s) detected.
What to do
- Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Enforce Secret Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 258 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 31 direct `PackageReference`(s), and 219 further package(s) were reached beyond them by closing the graph over nuget.org's own nuspec dependency graph — so a banned licence pulled in only by a dependency's OWN dependencies is inside this verdict. A package whose licence nuget.org could not be asked for is not graded, and version ranges are taken at their lower bound, so this is the closure as that graph states it rather than a restored consumer's exact resolution.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
6 deducted debt markers + 4 dead symbols across 1908 LoC in the .NET projects (1.6/KLoC) → score 6.9.
What to do
- Resolve the 3 NoWarnInCsproj finding(s) in Explicit Debt — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
- Resolve the 2 WriteOnlyPrivateField finding(s) in Explicit Debt — start with AccountService.cs (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 4 Dead code finding(s) in Explicit Debt — start with Metadata.cs, BaseEntity.cs, IGenericRepositoryAsync.cs. — One of this dimension's main actionable groups (4 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
6 projects, 62 source files, 1908 hand-written lines of code (1908 production / 0 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), plus 786 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 9 inter-project edges.
D19 · Documentation Quality
The repository's root README is a single document that is mostly announcement-driven and contains only one real section ('0.0.1 RC is available now!') with no overview of what the project does or what it contains, no installation/build/usage instructions, no contribution guidance, and no licence statement. It also includes an unverifiable claim that the author 'is no longer supporting this project' and a full stack hero redirect to a non-existent new project, which is stale and misleading.
What to do
- Resolve the 3 Documentation finding(s) in Documentation Quality — start with README.md (3). — One of this dimension's main actionable groups (3 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 200 sampled symbols.
D24 · Comment Value
12 valuable / 2 redundant across 24 sampled comments; 2 shown with locations.
What to do
- Resolve the 2 redundant comment finding(s) in Comment Value — start with AccountService.cs (2). — One of this dimension's main actionable groups (2 recommendation-level).
D26 · Project Cohesion
0 of 6 projects flagged as possibly oversized/incoherent.
D27 · Navigability
99 % of calls cross a namespace and 4 % go through an interface, but 45 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What to do
- Resolve the 1 Scattered collaborators finding(s) in Navigability. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
10 finding(s): 0 critical, 2 high, 8 medium, 0 low.
What to do
- Resolve the 5 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
D30 · Dependency Vulnerabilities
13 finding(s): 2 critical, 4 high, 7 medium, 0 low.
What to do
- Resolve the 7 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 4 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
D34 · Knowledge Freshness
4 of 4 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Infrastructure.Identity/Services/AccountService.cs. Counted over 4 of the 62 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 4 Orphaned file finding(s) in Knowledge Freshness — start with ServiceExtensions.cs (2), AccountService.cs, Program.cs. — One of this dimension's main actionable groups (4 recommendation-level).
- Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D39 · IL Efficiency
0 of 119 first-party methods have an oversized IL body.
D44 · Platform End-of-Life
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 6 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
What to do
- Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AX1 · Captive dependencies
AX10 · Code composition
What to do
- The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX6 · Interface segregation
AX7 · Slice cohesion
- `CreateProductCommandHandler` (slice 'Application') depends on `Product` from slice 'Domain'. — Application/Features/Products/Commands/CreateProduct/CreateProductCommand.cs:30
- `GetProductByIdQuery` (slice 'Application') depends on `Product` from slice 'Domain'. — Application/Features/Products/Queries/GetProductById/GetProductByIdQuery.cs:14
- `IProductRepositoryAsync` (slice 'Application') depends on `Product` from slice 'Domain'. — Application/Interfaces/Repositories/IProductRepositoryAsync.cs:9
- `GeneralProfile` (slice 'Application') depends on `Product` from slice 'Domain'. — Application/Mappings/GeneralProfile.cs:15
- `AccountController` (slice 'WebApi') depends on `IAccountService` from slice 'Application'. — REDACTED:16
- `AccountController` (slice 'WebApi') depends on `AuthenticationRequest` from slice 'Application'. — REDACTED:22
- `AccountController` (slice 'WebApi') depends on `RegisterRequest` from slice 'Application'. — REDACTED:27
- `AccountController` (slice 'WebApi') depends on `ForgotPasswordRequest` from slice 'Application'. — REDACTED:39
- `AccountController` (slice 'WebApi') depends on `ResetPasswordRequest` from slice 'Application'. — REDACTED:45
- `ProductController` (slice 'WebApi') depends on `GetAllProductsParameter` from slice 'Application'. — REDACTED:24
- `ProductController` (slice 'WebApi') depends on `GetAllProductsQuery` from slice 'Application'. — REDACTED:27
- `ProductController` (slice 'WebApi') depends on `GetProductByIdQuery` from slice 'Application'. — REDACTED:34
- `ProductController` (slice 'WebApi') depends on `CreateProductCommand` from slice 'Application'. — REDACTED:40
- `ProductController` (slice 'WebApi') depends on `UpdateProductCommand` from slice 'Application'. — REDACTED:48
- `ProductController` (slice 'WebApi') depends on `DeleteProductByIdCommand` from slice 'Application'. — REDACTED:62
- `ErrorHandlerMiddleware` (slice 'WebApi') depends on `Response` from slice 'Application'. — WebApi/Middlewares/ErrorHandlerMiddleware.cs:32
- `ErrorHandlerMiddleware` (slice 'WebApi') depends on `ApiException` from slice 'Application'. — WebApi/Middlewares/ErrorHandlerMiddleware.cs:36
- `ErrorHandlerMiddleware` (slice 'WebApi') depends on `ValidationException` from slice 'Application'. — WebApi/Middlewares/ErrorHandlerMiddleware.cs:40
- `AuthenticatedUserService` (slice 'WebApi') depends on `IAuthenticatedUserService` from slice 'Application'. — WebApi/Services/AuthenticatedUserService.cs:11
- `Startup` (slice 'WebApi') depends on `ServiceExtensions` from slice 'Application'. — WebApi/Startup.cs:25
- `Startup` (slice 'WebApi') depends on `IAuthenticatedUserService` from slice 'Application'. — WebApi/Startup.cs:33
What to do
- Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
AX9 · CQS / query purity
C2 · Access Controls
- Authorization IS enforced here (via [Authorize]/guards) — this is NOT a claim that endpoints are unprotected. What's missing is NAMED policies (AddAuthorization/AddPolicy, RequireRole/RequireClaim, RequireAuthorization): the access rules are implicit rather than named and testable. Recommendation, not a defect — name the rules so they're reviewable.
- This `[Authorize]` names no policy, role or scheme, so the rule it enforces (any authenticated caller) is implicit here and cannot be listed or tested apart from this attribute. Name the rule — `[Authorize(Policy = "…")]` over a policy registered with AddAuthorization — so the access rule set is reviewable. (×3) — REDACTED:39, REDACTED:47, REDACTED:59
What to do
- Add policy-based authorization — name the access rules (AddAuthorization(o => o.AddPolicy(…))) and apply them via [Authorize(Policy = …)] or RequireAuthorization.
C3 · Audit Trail
- An audit mechanism is present, but the trail is not yet complete — missing: an immutable audit-log / audit-trail type to write to, [Audited] per-entity coverage.
What to do
- Back the audit convention with a structural mechanism: an EF SaveChanges interceptor (or equivalent) writing every sensitive change to an immutable audit log, and apply [Audited] to the entities that need a who-changed-what trail.
ED5 · Idempotency
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add a README to the 6 of 6 project(s) that lack one — worth up to 2 pts.
M3 · Folder & project structure
- Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
- Only 3/6 projects share a common root namespace — the code's module identity is inconsistent.
What to do
- Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
- Start a test surface where your build system looks for one (tests/, test/, spec/, or your ecosystem's test source set) — the separation follows from putting the first tests in the right place.
- Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
M4 · Documentation accuracy
- README.md names .NET 6, but the projects target .NET 3. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:28
- README.md installs the package `Pomelo.EntityFrameworkCore.MySql` (`dotnet add package Pomelo.EntityFrameworkCore.MySql --version 3.1.2`), but no project or props file references it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:97
What to do
- Reconcile the README with reality: README.md names .NET 6, but the projects target .NET 3; README.md installs the package `Pomelo.EntityFrameworkCore.MySql` (`dotnet add package Pomelo.EntityFrameworkCore.MySql --version 3.1.2`), but no project or props file references it.
P1 · CI/CD gates
P2 · Observability
What to do
- Add OpenTelemetry tracing/metrics (ActivitySource / AddMetrics) so requests are traceable across the system, not just health-probable.
P6 · Release Hygiene
- The changelog this check read carries 2 versioned entries, against a bar of 3. Counted as either the distinct `x.y.z` versions it names (a link's target is not counted) or its version-shaped section headings (`## [1.2.0]`, `## V14.x.x`, `## Updates in 8.0.x`), whichever is the larger — so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read — release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository — are not counted here, and this row is about what is re-findable in the tree rather than about how often you release.
What to do
- Keep the changelog current — add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.
P8 · Schema migrations
PF3 · Async & latency hygiene
S1 · Web-Security Posture
- `RequireHttpsMetadata = false` allows the OIDC discovery doc to be fetched over plain HTTP. Safe for loopback-only fetches (Aspire / on-host); risky for any other path. — Infrastructure.Identity/ServiceExtensions.cs:52
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
- This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves. — WebApi/Program.cs:61
What to do
- Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).
- Add security response headers (Content-Security-Policy first, then Strict-Transport-Security, X-Content-Type-Options and a frame policy) — defense in depth, even when a reverse proxy could set them.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X2 · Cancellation propagation
- Only 7/29 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
- No CancellationToken parameter — this work can't be stopped early once started. (×21) — REDACTED:22, REDACTED:27, REDACTED:33, …
- 1 async method(s) await work their caller's cancellation cannot reach: a CancellationToken they hold (a parameter, or the one a framework-fixed signature carries) is never passed on, or the call is handed CancellationToken.None, default or an already-cancelled token. Forward the caller's token to that call.
- Its signature is fixed by the framework, and the token it carries (`context.RequestAborted`) reaches none of the calls here that take one — so an aborted request or a stopping host still waits for that work. Pass `context.RequestAborted` to them. — WebApi/Middlewares/ErrorHandlerMiddleware.cs:22
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
- `request.Body` is text this program did not author, and it is written into the text of an element through an HTML e-mail body with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — Infrastructure.Shared/Services/EmailService.cs:35
What to do
- Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X32 · Type resolved by simple name across every loaded assembly
X4 · Structured logging
- Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it. — Infrastructure.Shared/Services/EmailService.cs:46
What to do
- Interpolated log message defeats structured logging
X5 · Nullable reference types
- 0/6 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
What to do
- Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 53% | Adequate — gated by X4, X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 62% | Adequate — gated by AX7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 52% | Adequate — gated by D34 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 37% | Adequate — gated by D9, D12, D13 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 69% | Adequate — gated by D30 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Not evidenced — 4 control(s) we could not find positive evidence for
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 44 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX2 Stateful singletons — no singleton implementations detected
- AX4 Dependency direction — not applicable to a vertical-slice + CQRS architecture (the inward-dependency rule is for layered/clean styles)
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'REDACTED'`: share/dotnet The following frameworks were found: 6.0.36 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] 7.0.20 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] 8.0.27 at [/usr/sha…; runtime evidence skipped (launch chosen because REDACTED is a Microsoft.NET.Sdk.Web project) This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — This is a dotnet-new template — at-rest encryption and key-vaulting are deferred to the application you build from it. Add ASP.NET Data Protection / column encryption + a key vault for your real data store when you productionise.
- D10 Test Quality — No tests were found in the analyzed repository to assess for quality.
- D11 Test Reliability — No test suite was found to re-run, so reliability couldn't be assessed. Two searches produced that zero and both came back empty: the classifier that reads the loaded workspace recognised no suite it could run, and a walk of the source on disk — which covers the JS/TS `*.test.*` and `*.spec.*` conventions and probes for a Pester suite — found no test source in any other ecosystem either. Neither search reaches a suite that is missing from the loaded workspace and carries no name either walk recognises, so this is 'no suite found by those two searches', not a verdict that the repository has none.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D23 Boundary Type-Coupling — small single-context codebase (1,908 production LoC in the .NET projects) — bounded contexts are not needed at this size No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D25 ADR Conformance — no ADRs to check
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D36 Supply-chain Provenance & Signing — This is a dotnet-new template — it produces no released artifact to attest. Supply-chain provenance, signing and SBOM are deferred to the application you build from it (add SLSA provenance / cosign signing / an SBOM in your app's release pipeline).
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here.
- DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
- ED1 Event-Driven — applicable but not scored (2 of 3 signals for this style — below the bar we score at): a message-bus package; 5 CQRS handler(s)
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- M2 Architecture documentation — This repo declares itself a template / kata / sample / demo — formal architecture documentation (ADRs, C4 diagrams) is deferred to a real application built from it, so its absence is not a defect here.
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P3 Security & performance tooling — This repo declares itself a template / kata / sample / demo — code meant to be read or copied, not operated. SAST, secret/dependency scanning and performance benchmarks are deferred to the application you build from it, so their absence is not a defect here. The dimension reactivates once the repo becomes a real app.
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HttpClient/IHttpClientFactory/AddHttpClient in source, and no Refit/RestSharp/Flurl.Http namespace or package reference
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 20 finding(s)
- Vulnerable: AutoMapper
- Vulnerable: Newtonsoft.Json
- Vulnerable: MimeKit
- Vulnerable: System.IdentityModel.Tokens.Jwt
- Vulnerable: MailKit
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- NoWarnInCsproj REDACTED:16
- NoWarnInCsproj REDACTED:16
- NoWarnInCsproj REDACTED:16
- REDACTED
- REDACTED
- WriteOnlyPrivateField Infrastructure.Identity/Services/AccountService.cs:32
- WriteOnlyPrivateField Infrastructure.Identity/Services/AccountService.cs:36
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 71 finding(s)
- Cross-slice coupling: Application → Domain Application/Features/Products/Commands/CreateProduct/CreateProductCommand.cs:30
- Cross-slice coupling: Application → Domain Application/Features/Products/Queries/GetProductById/GetProductByIdQuery.cs:14
- Cross-slice coupling: Application → Domain Application/Interfaces/Repositories/IProductRepositoryAsync.cs:9
- Cross-slice coupling: Application → Domain Application/Mappings/GeneralProfile.cs:15
- Cross-slice coupling: WebApi → Application REDACTED:16
- Cross-slice coupling: WebApi → Application REDACTED:22
- Cross-slice coupling: WebApi → Application REDACTED:27
- Cross-slice coupling: WebApi → Application REDACTED:39
- Cross-slice coupling: WebApi → Application REDACTED:45
- Cross-slice coupling: WebApi → Application REDACTED:24
- Cross-slice coupling: WebApi → Application REDACTED:27
- Cross-slice coupling: WebApi → Application REDACTED:34
- Cross-slice coupling: WebApi → Application REDACTED:40
- Cross-slice coupling: WebApi → Application REDACTED:48
- Cross-slice coupling: WebApi → Application REDACTED:62
- Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs:32
- Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs:36
- Cross-slice coupling: WebApi → Application WebApi/Middlewares/ErrorHandlerMiddleware.cs:40
- Cross-slice coupling: WebApi → Application WebApi/Services/AuthenticatedUserService.cs:11
- Cross-slice coupling: WebApi → Application WebApi/Startup.cs:25
- Cross-slice coupling: WebApi → Application WebApi/Startup.cs:33
- Async method without CancellationToken: AuthenticateAsync REDACTED:22
- Async method without CancellationToken: RegisterAsync REDACTED:27
- Async method without CancellationToken: ConfirmEmailAsync REDACTED:33
- Async method without CancellationToken: ForgotPassword REDACTED:39
- Async method without CancellationToken: ResetPassword REDACTED:45
- Async method without CancellationToken: Get REDACTED:24
- Async method without CancellationToken: Get REDACTED:32
- Async method without CancellationToken: Post REDACTED:40
- Async method without CancellationToken: Put REDACTED:48
- Async method without CancellationToken: Delete REDACTED:60
- Async method without CancellationToken: GetByIdAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:21
- Async method without CancellationToken: GetPagedReponseAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:26
- Async method without CancellationToken: AddAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:36
- Async method without CancellationToken: UpdateAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:43
- Async method without CancellationToken: DeleteAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:49
- Async method without CancellationToken: GetAllAsync Infrastructure.Persistence/Repositories/GenericRepositoryAsync.cs:55
- Async method without CancellationToken: IsUniqueBarcodeAsync Infrastructure.Persistence/Repositories/ProductRepositoryAsync.cs:22
- Async method without CancellationToken: AuthenticateAsync Infrastructure.Identity/Services/AccountService.cs:52
- Async method without CancellationToken: RegisterAsync Infrastructure.Identity/Services/AccountService.cs:82
- Async method without CancellationToken: ForgotPassword Infrastructure.Identity/Services/AccountService.cs:203
- Async method without CancellationToken: SendAsync Infrastructure.Shared/Services/EmailService.cs:25
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Deprecated: FluentValidation.AspNetCore REDACTED:35
- Deprecated: Microsoft.AspNetCore.Mvc.Versioning REDACTED:33
- Deprecated: System.Text.Json REDACTED:17
- Deprecated: System.IdentityModel.Tokens.Jwt REDACTED:20
- Dead code: Metadata WebApi/Models/Metadata.cs:8
- Dead code: BaseEntity Domain/Common/BaseEntity.cs:7
- Dead code: GetAllAsync Application/Interfaces/IGenericRepositoryAsync.cs:11
- Dead code: AuthenticationHelper Infrastructure.Identity/Helpers/AuthenticationHelper.cs:10
- REDACTED
- REDACTED
- TodoComment Infrastructure.Identity/Services/AccountService.cs:104
- REDACTED
- Duplicated block (17 lines × 2) Infrastructure.Identity/Seeds/DefaultBasicUser.cs:16
- End-of-life runtime: .NET netcoreapp3.1 REDACTED:4
- NuGet dependencies are not locked
- Async method drops its ambient CancellationToken: Invoke WebApi/Middlewares/ErrorHandlerMiddleware.cs:22
- Untrusted text written into markup unescaped Infrastructure.Shared/Services/EmailService.cs:35
Minor — 52 finding(s)
- Outdated: Microsoft.AspNetCore.Mvc.NewtonsoftJson REDACTED:34
- Outdated: Microsoft.EntityFrameworkCore.Tools REDACTED:13
- Outdated: Microsoft.VisualStudio.Web.CodeGeneration.Design REDACTED:24
- Outdated: Serilog.AspNetCore REDACTED:27
- Outdated: Serilog.Settings.Configuration REDACTED:31
- Outdated: Serilog.Sinks.MSSqlServer REDACTED:32
- Outdated: Swashbuckle.AspNetCore REDACTED:25
- Outdated: Swashbuckle.AspNetCore.Swagger REDACTED:26
- Outdated: AutoMapper REDACTED:9
- Outdated: AutoMapper.Extensions.Microsoft.DependencyInjection REDACTED:10
- Outdated: FluentValidation REDACTED:11
- Outdated: FluentValidation.DependencyInjectionExtensions REDACTED:12
- Outdated: MediatR.Extensions.Microsoft.DependencyInjection REDACTED:14
- Outdated: Microsoft.EntityFrameworkCore REDACTED:15
- Outdated: Microsoft.EntityFrameworkCore.InMemory REDACTED:13
- Outdated: System.Text.Json REDACTED:17
- Outdated: Microsoft.AspNetCore.Identity.EntityFrameworkCore REDACTED:11
- Outdated: Microsoft.EntityFrameworkCore.SqlServer REDACTED:12
- Outdated: Microsoft.Extensions.Options.ConfigurationExtensions REDACTED:21
- Outdated: Microsoft.AspNetCore.Authentication.JwtBearer REDACTED:9
- Outdated: Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore REDACTED:10
- Outdated: microsoft.extensions.dependencyinjection REDACTED:17
- No named authorization policies
- No named authorization policies REDACTED:39
- No named authorization policies REDACTED:47
- No named authorization policies REDACTED:59
- Orphaned file Infrastructure.Identity/Services/AccountService.cs:1
- Orphaned file Infrastructure.Identity/ServiceExtensions.cs:1
- Orphaned file WebApi/Extensions/ServiceExtensions.cs:1
- Orphaned file WebApi/Program.cs:1
- Documentation: no installation or build instructions README.md
- Documentation: no usage examples README.md
- Documentation: no licence statement README.md
- redundant comment Infrastructure.Identity/Services/AccountService.cs:161
- redundant comment Infrastructure.Identity/Services/AccountService.cs:173
- README/code drift README.md:28
- README/code drift README.md:97
- No security response headers detected
- No security response headers detected WebApi/Program.cs:61
- Partial audit-trail evidence
- Scattered collaborators
- Orphaned files with no living knowledge
- No tests — template/sample
- No tests found
- No src/ separation
- Inconsistent root namespaces
- Changelog looks stale/thin
- OIDC metadata fetched over HTTP Infrastructure.Identity/ServiceExtensions.cs:52
- Not all async methods take a CancellationToken
- Some async methods drop the CancellationToken they accept
- Interpolated log message defeats structured logging Infrastructure.Shared/Services/EmailService.cs:46
- Nullable reference types not enabled everywhere
Minor — 15 finding(s)
- Outdated: FluentValidation.AspNetCore
- Outdated: Microsoft.AspNetCore.Mvc.Versioning
- Outdated: Serilog.Enrichers.Environment
- Outdated: Serilog.Enrichers.Process
- Outdated: Serilog.Enrichers.Thread
- Outdated: Newtonsoft.Json
- Outdated: MimeKit
- Outdated: System.IdentityModel.Tokens.Jwt
- Outdated: MailKit
- XML-doc coverage: WebApi REDACTED
- XML-doc coverage: Domain Domain/Domain.csproj
- XML-doc coverage: Application REDACTED
- XML-doc coverage: Infrastructure.Persistence REDACTED
- XML-doc coverage: Infrastructure.Identity REDACTED
- XML-doc coverage: Infrastructure.Shared REDACTED
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-0a85e1119b1c4e7f8466598257f8d090/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-0a85e1119b1c4e7f8466598257f8d090/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 10 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list CleanArchitecture.WebApi.sln package --vulnerable --include-transitive --format json | 13 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — This is a dotnet-new template — it produces no released artifact to attest. Supply-chain provenance, signing and SBOM are deferred to the application you build from it (add SLSA provenance / cosign signing / an SBOM in your app's release pipeline). | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (no readable dependency manifest) | — | none (no readable dependency manifest): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet). | 0 | — |
Appendix C — Personal-data map
Email — 6 field(s)
- AuthenticationRequest.Email Application/DTOs/Account/AuthenticationRequest.cs:9
- AuthenticationResponse.Email Application/DTOs/Account/AuthenticationResponse.cs:11
- ForgotPasswordRequest.Email Application/DTOs/Account/ForgotPasswordRequest.cs:12
- RegisterRequest.Email Application/DTOs/Account/RegisterRequest.cs:18
- ResetPasswordRequest.Email Application/DTOs/Account/VerifyEmailRequest.cs:12
- MailSettings.EmailFrom Domain/Settings/MailSettings.cs:9
Name — 4 field(s)
- RegisterRequest.FirstName Application/DTOs/Account/RegisterRequest.cs:11
- RegisterRequest.LastName Application/DTOs/Account/RegisterRequest.cs:14
- ApplicationUser.FirstName Infrastructure.Identity/Models/ApplicationUser.cs:11
- ApplicationUser.LastName Infrastructure.Identity/Models/ApplicationUser.cs:12