Executive summary
Template / example. This repo declares itself a template, kata, sample or demo — code to read or copy, not operate — so the ship-it and operate-it dimensions (CI/CD, observability, ADRs, architecture docs, deployment security) are N/A and what remains is judged accordingly.
The system holds an adequate overall standing of 44%, reflecting a workable asset that carries real risk in its core logic. While the code is clean and the architecture is sound, the business value is concentrated in a domain model that is too weak to protect the company’s interests. This small system, comprising roughly 3,700 lines of production code, represents a modest investment of about 0.1 person-years to rebuild. However, its current fragility means that even minor changes could trigger defects or delays, making the cost of inaction higher than the cost of remediation.
The primary risk is an un-encapsulated domain. The business logic is scattered across anemic services rather than being protected by the entities that own the data. This lack of encapsulation invites transposed-argument bugs and allows invariants to be violated, directly threatening data integrity and reliability. Because the domain modeling is the weakest lens, fixing this structural issue offers the highest leverage, resolving multiple findings simultaneously rather than chasing individual defects.
A secondary concern is operational maturity. With a readiness score of 53% and maturity at 54%, the system lacks the robustness needed for safe, independent operation. While the event-driven architecture is strong, the absence of declared bounded contexts and unmeasured test coverage creates uncertainty. New teams may struggle to pick up the code, and the lack of visibility into dependency security increases exposure to supply-chain risks. These gaps mean that maintaining the system will likely require more effort and oversight than anticipated.
On the positive side, the code health, architecture, and security scores are all strong, indicating that the technical foundation is solid and free from critical vulnerabilities. The event-driven design is also well-implemented, providing a reliable backbone for future growth. To maximize value, focus first on enforcing strong typing for aggregate references and moving business rules into the domain entities. This single shift will harden the consistency boundaries and reduce the risk of costly defects, securing the system’s long-term viability.
Raise Domain Modelling 35 → 70 (the Healthy floor) ⇒ headline 44 → ~51.
New since the last scan (26+)
- D4 · Duplicated block (18 lines × 2) src/Domain/Entities/Permission.cs
- D4 · Duplicated block (6–11 lines × 2) src/Domain/Entities/WorkItem.cs
- D17 · CoverageExclusion REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D29 · REDACTED
- D30 · REDACTED CVE: REDACTED
- D30 · REDACTED CVE: REDACTED
- D31 · REDACTED
- D31 · REDACTED
- D36 · REDACTED
- DM10 · One operation mutates 2 aggregates: ApplicationDbContextInitialiser.SeedAsync REDACTED
- AC2 · <button> with no accessible text src/Web/UI/Components/Projects/ProjectItem.razor
- AC2 · <button> with no accessible text src/Web/UI/Components/Projects/ProjectItem.razor
- AC2 · <button> with no accessible text src/Web/UI/Components/WorkItems/WorkItem.razor
- AC2 · <button> with no accessible text src/Web/UI/Components/WorkItems/WorkItem.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/RoleManager.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/RoleManager.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/RoleManager.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/UserManager.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/UserManager.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/WorkItems.razor
- AC2 · <button> with no accessible text src/Web/UI/Pages/WorkItems.razor
- AC3 · Routed page without a <PageTitle> src/Web/UI/Pages/Authentication.razor
Rebuild cost & value ~ Modeled — €2,100–€10,000
| Cost to rebuild | €2,100–€10,000 |
|---|---|
| Domain complexity | REDACTED |
| Quality factor | 0.7× (at 44% quality) |
| Size & shape | Small · 40% boilerplate · 50% straight-line · 9% branching logic |
This codebase represents roughly ~0.1 person-years of build effort (about ~€6,200 to rebuild). Its weakest lens is Domain Modelling at 35% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
Architecture — module dependency matrix
| depends on → | 1 (global) | 2 ApiServer | 3 ApiServer.Filters | 4 ApiServer.ViewModels | 5 Application | 6 Application.Common.Exceptions | 7 Application.Projects.Requests | 8 Application.WorkItems.Requests | 9 Domain.Primitives | 10 Infrastructure | 11 Infrastructure.Migrations | 12 Shared.Identity | 13 UI | 14 UI.Identity | 15 Domain.Events | 16 Domain.ValueObjects | 17 UI.Components.Projects | 18 UI.Components.WorkItems | 19 Domain.Entities | 20 UI.Pages | 21 ApiServer.Mapper | 22 Application.Common.Services | 23 Application.Projects.Commands | 24 Application.Projects.Queries | 25 Application.WorkItems.Commands | 26 Application.WorkItems.Queries | 27 Infrastructure.Data.Configurations | 28 ApiServer.Controllers | 29 ApiServer.Identity | 30 Application.Common.Behaviours | 31 Application.Roles.Commands | 32 Application.Roles.Queries | 33 Application.Users.Command | 34 Application.Users.Queries | 35 Application.WorkItems.Events | 36 Infrastructure.Data.Interceptors | 37 Infrastructure.Emails | 38 Infrastructure.Identity | 39 ApiServer.Controllers.Identity | 40 Infrastructure.Data |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 (global) | ||||||||||||||||||||||||||||||||||||||||
| 2 ApiServer | ||||||||||||||||||||||||||||||||||||||||
| 3 ApiServer.Filters | ||||||||||||||||||||||||||||||||||||||||
| 4 ApiServer.ViewModels | ||||||||||||||||||||||||||||||||||||||||
| 5 Application | ||||||||||||||||||||||||||||||||||||||||
| 6 Application.Common.Exceptions | ||||||||||||||||||||||||||||||||||||||||
| 7 Application.Projects.Requests | ||||||||||||||||||||||||||||||||||||||||
| 8 Application.WorkItems.Requests | ||||||||||||||||||||||||||||||||||||||||
| 9 Domain.Primitives | ||||||||||||||||||||||||||||||||||||||||
| 10 Infrastructure | ||||||||||||||||||||||||||||||||||||||||
| 11 Infrastructure.Migrations | ||||||||||||||||||||||||||||||||||||||||
| 12 Shared.Identity | ||||||||||||||||||||||||||||||||||||||||
| 13 UI | ||||||||||||||||||||||||||||||||||||||||
| 14 UI.Identity | ||||||||||||||||||||||||||||||||||||||||
| 15 Domain.Events | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 Domain.ValueObjects | 3 | |||||||||||||||||||||||||||||||||||||||
| 17 UI.Components.Projects | 4 | |||||||||||||||||||||||||||||||||||||||
| 18 UI.Components.WorkItems | 7 | |||||||||||||||||||||||||||||||||||||||
| 19 Domain.Entities | 2 | 3 | ||||||||||||||||||||||||||||||||||||||
| 20 UI.Pages | 27 | 2 | ||||||||||||||||||||||||||||||||||||||
| 21 ApiServer.Mapper | 13 | 9 | ||||||||||||||||||||||||||||||||||||||
| 22 Application.Common.Services | 2 | |||||||||||||||||||||||||||||||||||||||
| 23 Application.Projects.Commands | 2 | 4 | 4 | |||||||||||||||||||||||||||||||||||||
| 24 Application.Projects.Queries | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 25 Application.WorkItems.Commands | 2 | 3 | 3 | |||||||||||||||||||||||||||||||||||||
| 26 Application.WorkItems.Queries | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 27 Infrastructure.Data.Configurations | 2 | |||||||||||||||||||||||||||||||||||||||
| 28 ApiServer.Controllers | 2 | 2 | 2 | 2 | 2 | |||||||||||||||||||||||||||||||||||
| 29 ApiServer.Identity | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 Application.Common.Behaviours | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 Application.Roles.Commands | 2 | 3 | ||||||||||||||||||||||||||||||||||||||
| 32 Application.Roles.Queries | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 33 Application.Users.Command | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 34 Application.Users.Queries | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 35 Application.WorkItems.Events | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 36 Infrastructure.Data.Interceptors | 1 | |||||||||||||||||||||||||||||||||||||||
| 37 Infrastructure.Emails | 1 | |||||||||||||||||||||||||||||||||||||||
| 38 Infrastructure.Identity | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 39 ApiServer.Controllers.Identity | 5 | 2 | 2 | 2 | ||||||||||||||||||||||||||||||||||||
| 40 Infrastructure.Data | 2 | 4 | 2 |
15→9 Domain.Events depends on Domain.Primitives✕
- Type pairs
- 1 distinct (type in Domain.Events → type in Domain.Primitives) reference.
- Which types
Domain.Events.WorkItemAssignedDomainEvent→Domain.Primitives.IDomainEvent
- Direction
- Domain.Events uses Domain.Primitives. Changing Domain.Primitives can break Domain.Events, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
16→9 Domain.ValueObjects depends on Domain.Primitives✕
- Type pairs
- 3 distinct (type in Domain.ValueObjects → type in Domain.Primitives) references.
- Which types
Domain.ValueObjects.Email→Domain.Primitives.ValueObjectDomain.ValueObjects.Priority→Domain.Primitives.ValueObjectDomain.ValueObjects.Stage→Domain.Primitives.ValueObject
- Direction
- Domain.ValueObjects uses Domain.Primitives. Changing Domain.Primitives can break Domain.ValueObjects, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
17→13 UI.Components.Projects depends on UI✕
- Type pairs
- 4 distinct (type in UI.Components.Projects → type in UI) references.
- Which types
UI.Components.Projects.DeleteProjectDialog→UI.ProjectDtoUI.Components.Projects.ProjectDialog→UI.ProjectDtoUI.Components.Projects.ProjectItem→UI.ProjectDtoUI.Components.Projects.ProjectList→UI.ProjectDto
- Direction
- UI.Components.Projects uses UI. Changing UI can break UI.Components.Projects, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
18→13 UI.Components.WorkItems depends on UI✕
- Type pairs
- 7 distinct (type in UI.Components.WorkItems → type in UI) references.
- Which types
UI.Components.WorkItems.CreateWorkItemDialog→UI.ProjectDtoUI.Components.WorkItems.CreateWorkItemDialog→UI.WorkItemDtoUI.Components.WorkItems.KanbanColumn→UI.WorkItemDtoUI.Components.WorkItems.WorkItem→UI.WorkItemDtoUI.Components.WorkItems.WorkItemDialogBase→UI.ProjectDtoUI.Components.WorkItems.WorkItemDialogBase→UI.UserDtoUI.Components.WorkItems.WorkItemDialogBase→UI.WorkItemDto
- Direction
- UI.Components.WorkItems uses UI. Changing UI can break UI.Components.WorkItems, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
19→9 Domain.Entities depends on Domain.Primitives✕
- Type pairs
- 2 distinct (type in Domain.Entities → type in Domain.Primitives) references.
- Which types
Domain.Entities.Project→Domain.Primitives.AggregateRootDomain.Entities.WorkItem→Domain.Primitives.AggregateRoot
- Direction
- Domain.Entities uses Domain.Primitives. Changing Domain.Primitives can break Domain.Entities, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
19→16 Domain.Entities depends on Domain.ValueObjects✕
- Type pairs
- 3 distinct (type in Domain.Entities → type in Domain.ValueObjects) references.
- Which types
Domain.Entities.User→Domain.ValueObjects.EmailDomain.Entities.WorkItem→Domain.ValueObjects.PriorityDomain.Entities.WorkItem→Domain.ValueObjects.Stage
- Direction
- Domain.Entities uses Domain.ValueObjects. Changing Domain.ValueObjects can break Domain.Entities, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→13 UI.Pages depends on UI✕
- Type pairs
- 27 distinct (type in UI.Pages → type in UI) references. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- Which types
UI.Pages.Project→UI.IProjectClientUI.Pages.Project→UI.ProjectDtoUI.Pages.ProjectBoard→UI.IProjectClientUI.Pages.ProjectBoard→UI.IUsersClientUI.Pages.ProjectBoard→UI.IWorkItemClientUI.Pages.ProjectBoard→UI.ProjectDtoUI.Pages.ProjectBoard→UI.UserDtoUI.Pages.ProjectBoard→UI.WorkItemDtoUI.Pages.ProjectState→UI.IProjectClientUI.Pages.ProjectState→UI.ProjectDtoUI.Pages.ProjectState→UI.ProjectsViewModelUI.Pages.RoleManager→UI.IRolesClientUI.Pages.RoleManager→UI.RoleDtoUI.Pages.RoleManager→UI.RolesViewModelUI.Pages.UserEditor→UI.IRolesClientUI.Pages.UserEditor→UI.IUsersClientUI.Pages.UserEditor→UI.UserDetailsViewModelUI.Pages.UserManager→UI.IUsersClientUI.Pages.UserManager→UI.UserDtoUI.Pages.UserManager→UI.UsersViewModelUI.Pages.WorkItems→UI.IProjectClientUI.Pages.WorkItems→UI.IUsersClientUI.Pages.WorkItems→UI.IWorkItemClientUI.Pages.WorkItems→UI.ProjectDtoUI.Pages.WorkItems→UI.UserDto
- Direction
- UI.Pages uses UI. Changing UI can break UI.Pages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→18 UI.Pages depends on UI.Components.WorkItems✕
- Type pairs
- 2 distinct (type in UI.Pages → type in UI.Components.WorkItems) references.
- Which types
UI.Pages.ProjectBoard→UI.Components.WorkItems.CreateWorkItemDialogUI.Pages.WorkItems→UI.Components.WorkItems.CreateWorkItemDialog
- Direction
- UI.Pages uses UI.Components.WorkItems. Changing UI.Components.WorkItems can break UI.Pages, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→4 ApiServer.Mapper depends on ApiServer.ViewModels✕
- Type pairs
- 13 distinct (type in ApiServer.Mapper → type in ApiServer.ViewModels) references.
- Which types
ApiServer.Mapper.ProjectsViewModelMapper→ApiServer.ViewModels.ProjectDtoApiServer.Mapper.ProjectsViewModelMapper→ApiServer.ViewModels.ProjectsViewModelApiServer.Mapper.ProjectsViewModelMapper→ApiServer.ViewModels.WorkItemDtoApiServer.Mapper.RoleMapper→ApiServer.ViewModels.RoleDtoApiServer.Mapper.RolesViewModelMapper→ApiServer.ViewModels.RoleDtoApiServer.Mapper.RolesViewModelMapper→ApiServer.ViewModels.RolesViewModelApiServer.Mapper.UserDetailsViewModelMapper→ApiServer.ViewModels.RoleDtoApiServer.Mapper.UserDetailsViewModelMapper→ApiServer.ViewModels.UserDetailsViewModelApiServer.Mapper.UserDetailsViewModelMapper→ApiServer.ViewModels.UserDtoApiServer.Mapper.UserMapper→ApiServer.ViewModels.UserDtoApiServer.Mapper.WorkItemMapper→ApiServer.ViewModels.WorkItemDtoApiServer.Mapper.WorkItemViewModelMapper→ApiServer.ViewModels.WorkItemDtoApiServer.Mapper.WorkItemViewModelMapper→ApiServer.ViewModels.WorkItemsViewModel
- Direction
- ApiServer.Mapper uses ApiServer.ViewModels. Changing ApiServer.ViewModels can break ApiServer.Mapper, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→19 ApiServer.Mapper depends on Domain.Entities✕
- Type pairs
- 9 distinct (type in ApiServer.Mapper → type in Domain.Entities) references.
- Which types
ApiServer.Mapper.ProjectsViewModelMapper→Domain.Entities.ProjectApiServer.Mapper.ProjectsViewModelMapper→Domain.Entities.WorkItemApiServer.Mapper.RoleMapper→Domain.Entities.RoleApiServer.Mapper.RolesViewModelMapper→Domain.Entities.RoleApiServer.Mapper.UserDetailsViewModelMapper→Domain.Entities.RoleApiServer.Mapper.UserDetailsViewModelMapper→Domain.Entities.UserApiServer.Mapper.UserMapper→Domain.Entities.UserApiServer.Mapper.WorkItemMapper→Domain.Entities.WorkItemApiServer.Mapper.WorkItemViewModelMapper→Domain.Entities.WorkItem
- Direction
- ApiServer.Mapper uses Domain.Entities. Changing Domain.Entities can break ApiServer.Mapper, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→19 Application.Common.Services depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in Application.Common.Services → type in Domain.Entities) references.
- Which types
Application.Common.Services.IIdentityService→Domain.Entities.RoleApplication.Common.Services.IIdentityService→Domain.Entities.User
- Direction
- Application.Common.Services uses Domain.Entities. Changing Domain.Entities can break Application.Common.Services, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→7 Application.Projects.Commands depends on Application.Projects.Requests✕
- Type pairs
- 2 distinct (type in Application.Projects.Commands → type in Application.Projects.Requests) references.
- Which types
Application.Projects.Commands.CreateProjectCommand→Application.Projects.Requests.CreateProjectRequestApplication.Projects.Commands.UpdateProjectCommand→Application.Projects.Requests.UpdateProjectRequest
- Direction
- Application.Projects.Commands uses Application.Projects.Requests. Changing Application.Projects.Requests can break Application.Projects.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→9 Application.Projects.Commands depends on Domain.Primitives✕
- Type pairs
- 4 distinct (type in Application.Projects.Commands → type in Domain.Primitives) references.
- Which types
Application.Projects.Commands.CreateProjectCommandHandler→Domain.Primitives.IRepositoryApplication.Projects.Commands.CreateProjectCommandValidator→Domain.Primitives.IRepositoryApplication.Projects.Commands.DeleteProjectCommandHandler→Domain.Primitives.IRepositoryApplication.Projects.Commands.UpdateProjectCommandHandler→Domain.Primitives.IRepository
- Direction
- Application.Projects.Commands uses Domain.Primitives. Changing Domain.Primitives can break Application.Projects.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→19 Application.Projects.Commands depends on Domain.Entities✕
- Type pairs
- 4 distinct (type in Application.Projects.Commands → type in Domain.Entities) references.
- Which types
Application.Projects.Commands.CreateProjectCommandHandler→Domain.Entities.ProjectApplication.Projects.Commands.CreateProjectCommandValidator→Domain.Entities.ProjectApplication.Projects.Commands.DeleteProjectCommandHandler→Domain.Entities.ProjectApplication.Projects.Commands.UpdateProjectCommandHandler→Domain.Entities.Project
- Direction
- Application.Projects.Commands uses Domain.Entities. Changing Domain.Entities can break Application.Projects.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→9 Application.Projects.Queries depends on Domain.Primitives✕
- Type pairs
- 1 distinct (type in Application.Projects.Queries → type in Domain.Primitives) reference.
- Which types
Application.Projects.Queries.GetProjectsQueryHandler→Domain.Primitives.IRepository
- Direction
- Application.Projects.Queries uses Domain.Primitives. Changing Domain.Primitives can break Application.Projects.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→19 Application.Projects.Queries depends on Domain.Entities✕
- Type pairs
- 1 distinct (type in Application.Projects.Queries → type in Domain.Entities) reference.
- Which types
Application.Projects.Queries.GetProjectsQueryHandler→Domain.Entities.Project
- Direction
- Application.Projects.Queries uses Domain.Entities. Changing Domain.Entities can break Application.Projects.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→8 Application.WorkItems.Commands depends on Application.WorkItems.Requests✕
- Type pairs
- 2 distinct (type in Application.WorkItems.Commands → type in Application.WorkItems.Requests) references.
- Which types
Application.WorkItems.Commands.CreateWorkItemCommand→Application.WorkItems.Requests.CreateWorkItemRequestApplication.WorkItems.Commands.UpdateWorkItemCommand→Application.WorkItems.Requests.UpdateWorkItemRequest
- Direction
- Application.WorkItems.Commands uses Application.WorkItems.Requests. Changing Application.WorkItems.Requests can break Application.WorkItems.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→9 Application.WorkItems.Commands depends on Domain.Primitives✕
- Type pairs
- 3 distinct (type in Application.WorkItems.Commands → type in Domain.Primitives) references.
- Which types
Application.WorkItems.Commands.CreateWorkItemCommandHandler→Domain.Primitives.IRepositoryApplication.WorkItems.Commands.DeleteWorkItemCommandHandler→Domain.Primitives.IRepositoryApplication.WorkItems.Commands.UpdateWorkItemCommandHandler→Domain.Primitives.IRepository
- Direction
- Application.WorkItems.Commands uses Domain.Primitives. Changing Domain.Primitives can break Application.WorkItems.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→19 Application.WorkItems.Commands depends on Domain.Entities✕
- Type pairs
- 3 distinct (type in Application.WorkItems.Commands → type in Domain.Entities) references.
- Which types
Application.WorkItems.Commands.CreateWorkItemCommandHandler→Domain.Entities.WorkItemApplication.WorkItems.Commands.DeleteWorkItemCommandHandler→Domain.Entities.WorkItemApplication.WorkItems.Commands.UpdateWorkItemCommandHandler→Domain.Entities.WorkItem
- Direction
- Application.WorkItems.Commands uses Domain.Entities. Changing Domain.Entities can break Application.WorkItems.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→9 Application.WorkItems.Queries depends on Domain.Primitives✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Queries → type in Domain.Primitives) reference.
- Which types
Application.WorkItems.Queries.GetWorkItemsQueryHandler→Domain.Primitives.IRepository
- Direction
- Application.WorkItems.Queries uses Domain.Primitives. Changing Domain.Primitives can break Application.WorkItems.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→19 Application.WorkItems.Queries depends on Domain.Entities✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Queries → type in Domain.Entities) reference.
- Which types
Application.WorkItems.Queries.GetWorkItemsQueryHandler→Domain.Entities.WorkItem
- Direction
- Application.WorkItems.Queries uses Domain.Entities. Changing Domain.Entities can break Application.WorkItems.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→19 Infrastructure.Data.Configurations depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in Infrastructure.Data.Configurations → type in Domain.Entities) references.
- Which types
Infrastructure.Data.Configurations.ProjectConfiguration→Domain.Entities.ProjectInfrastructure.Data.Configurations.WorkItemConfiguration→Domain.Entities.WorkItem
- Direction
- Infrastructure.Data.Configurations uses Domain.Entities. Changing Domain.Entities can break Infrastructure.Data.Configurations, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→4 ApiServer.Controllers depends on ApiServer.ViewModels✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers → type in ApiServer.ViewModels) references.
- Which types
ApiServer.Controllers.ProjectController→ApiServer.ViewModels.ProjectsViewModelApiServer.Controllers.WorkItemController→ApiServer.ViewModels.WorkItemsViewModel
- Direction
- ApiServer.Controllers uses ApiServer.ViewModels. Changing ApiServer.ViewModels can break ApiServer.Controllers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→7 ApiServer.Controllers depends on Application.Projects.Requests✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers → type in Application.Projects.Requests) references.
- Which types
ApiServer.Controllers.ProjectController→Application.Projects.Requests.CreateProjectRequestApiServer.Controllers.ProjectController→Application.Projects.Requests.UpdateProjectRequest
- Direction
- ApiServer.Controllers uses Application.Projects.Requests. Changing Application.Projects.Requests can break ApiServer.Controllers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→8 ApiServer.Controllers depends on Application.WorkItems.Requests✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers → type in Application.WorkItems.Requests) references.
- Which types
ApiServer.Controllers.WorkItemController→Application.WorkItems.Requests.CreateWorkItemRequestApiServer.Controllers.WorkItemController→Application.WorkItems.Requests.UpdateWorkItemRequest
- Direction
- ApiServer.Controllers uses Application.WorkItems.Requests. Changing Application.WorkItems.Requests can break ApiServer.Controllers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→19 ApiServer.Controllers depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers → type in Domain.Entities) references.
- Which types
ApiServer.Controllers.ProjectController→Domain.Entities.ProjectApiServer.Controllers.WorkItemController→Domain.Entities.WorkItem
- Direction
- ApiServer.Controllers uses Domain.Entities. Changing Domain.Entities can break ApiServer.Controllers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→21 ApiServer.Controllers depends on ApiServer.Mapper✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers → type in ApiServer.Mapper) references.
- Which types
ApiServer.Controllers.ProjectController→ApiServer.Mapper.IMapperApiServer.Controllers.WorkItemController→ApiServer.Mapper.IMapper
- Direction
- ApiServer.Controllers uses ApiServer.Mapper. Changing ApiServer.Mapper can break ApiServer.Controllers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→22 ApiServer.Identity depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in ApiServer.Identity → type in Application.Common.Services) reference.
- Which types
ApiServer.Identity.UserContext→Application.Common.Services.IUserContext
- Direction
- ApiServer.Identity uses Application.Common.Services. Changing Application.Common.Services can break ApiServer.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→22 Application.Common.Behaviours depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Application.Common.Behaviours → type in Application.Common.Services) reference.
- Which types
Application.Common.Behaviours.RequestLoggingBehaviour→Application.Common.Services.IUserContext
- Direction
- Application.Common.Behaviours uses Application.Common.Services. Changing Application.Common.Services can break Application.Common.Behaviours, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→19 Application.Roles.Commands depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in Application.Roles.Commands → type in Domain.Entities) references.
- Which types
Application.Roles.Commands.CreateRoleCommand→Domain.Entities.RoleApplication.Roles.Commands.UpdateRoleCommand→Domain.Entities.Role
- Direction
- Application.Roles.Commands uses Domain.Entities. Changing Domain.Entities can break Application.Roles.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→22 Application.Roles.Commands depends on Application.Common.Services✕
- Type pairs
- 3 distinct (type in Application.Roles.Commands → type in Application.Common.Services) references.
- Which types
Application.Roles.Commands.CreateRoleCommandHandler→Application.Common.Services.IIdentityServiceApplication.Roles.Commands.DeleteRoleCommandHandler→Application.Common.Services.IIdentityServiceApplication.Roles.Commands.UpdateRoleCommandHandler→Application.Common.Services.IIdentityService
- Direction
- Application.Roles.Commands uses Application.Common.Services. Changing Application.Common.Services can break Application.Roles.Commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→19 Application.Roles.Queries depends on Domain.Entities✕
- Type pairs
- 1 distinct (type in Application.Roles.Queries → type in Domain.Entities) reference.
- Which types
Application.Roles.Queries.GetRolesQueryHandler→Domain.Entities.Role
- Direction
- Application.Roles.Queries uses Domain.Entities. Changing Domain.Entities can break Application.Roles.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→22 Application.Roles.Queries depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Application.Roles.Queries → type in Application.Common.Services) reference.
- Which types
Application.Roles.Queries.GetRolesQueryHandler→Application.Common.Services.IIdentityService
- Direction
- Application.Roles.Queries uses Application.Common.Services. Changing Application.Common.Services can break Application.Roles.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→19 Application.Users.Command depends on Domain.Entities✕
- Type pairs
- 1 distinct (type in Application.Users.Command → type in Domain.Entities) reference.
- Which types
Application.Users.Command.UpdateUserCommand→Domain.Entities.User
- Direction
- Application.Users.Command uses Domain.Entities. Changing Domain.Entities can break Application.Users.Command, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→22 Application.Users.Command depends on Application.Common.Services✕
- Type pairs
- 2 distinct (type in Application.Users.Command → type in Application.Common.Services) references.
- Which types
Application.Users.Command.DeleteUserCommandHandler→Application.Common.Services.IIdentityServiceApplication.Users.Command.UpdateUserCommandHandler→Application.Common.Services.IIdentityService
- Direction
- Application.Users.Command uses Application.Common.Services. Changing Application.Common.Services can break Application.Users.Command, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→19 Application.Users.Queries depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in Application.Users.Queries → type in Domain.Entities) references.
- Which types
Application.Users.Queries.GetUserQueryHandler→Domain.Entities.UserApplication.Users.Queries.GetUsersQueryHandler→Domain.Entities.User
- Direction
- Application.Users.Queries uses Domain.Entities. Changing Domain.Entities can break Application.Users.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→22 Application.Users.Queries depends on Application.Common.Services✕
- Type pairs
- 2 distinct (type in Application.Users.Queries → type in Application.Common.Services) references.
- Which types
Application.Users.Queries.GetUserQueryHandler→Application.Common.Services.IIdentityServiceApplication.Users.Queries.GetUsersQueryHandler→Application.Common.Services.IIdentityService
- Direction
- Application.Users.Queries uses Application.Common.Services. Changing Application.Common.Services can break Application.Users.Queries, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→9 Application.WorkItems.Events depends on Domain.Primitives✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Events → type in Domain.Primitives) reference.
- Which types
Application.WorkItems.Events.WorkItemAssignedDomainEventHandler→Domain.Primitives.IRepository
- Direction
- Application.WorkItems.Events uses Domain.Primitives. Changing Domain.Primitives can break Application.WorkItems.Events, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→15 Application.WorkItems.Events depends on Domain.Events✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Events → type in Domain.Events) reference.
- Which types
Application.WorkItems.Events.WorkItemAssignedDomainEventHandler→Domain.Events.WorkItemAssignedDomainEvent
- Direction
- Application.WorkItems.Events uses Domain.Events. Changing Domain.Events can break Application.WorkItems.Events, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→19 Application.WorkItems.Events depends on Domain.Entities✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Events → type in Domain.Entities) reference.
- Which types
Application.WorkItems.Events.WorkItemAssignedDomainEventHandler→Domain.Entities.WorkItem
- Direction
- Application.WorkItems.Events uses Domain.Entities. Changing Domain.Entities can break Application.WorkItems.Events, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→22 Application.WorkItems.Events depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Application.WorkItems.Events → type in Application.Common.Services) reference.
- Which types
Application.WorkItems.Events.WorkItemAssignedDomainEventHandler→Application.Common.Services.IEmailService
- Direction
- Application.WorkItems.Events uses Application.Common.Services. Changing Application.Common.Services can break Application.WorkItems.Events, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→22 Infrastructure.Data.Interceptors depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Infrastructure.Data.Interceptors → type in Application.Common.Services) reference.
- Which types
Infrastructure.Data.Interceptors.AuditableEntityInterceptor→Application.Common.Services.IUserContext
- Direction
- Infrastructure.Data.Interceptors uses Application.Common.Services. Changing Application.Common.Services can break Infrastructure.Data.Interceptors, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→22 Infrastructure.Emails depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Infrastructure.Emails → type in Application.Common.Services) reference.
- Which types
Infrastructure.Emails.EmailService→Application.Common.Services.IEmailService
- Direction
- Infrastructure.Emails uses Application.Common.Services. Changing Application.Common.Services can break Infrastructure.Emails, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→19 Infrastructure.Identity depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in Infrastructure.Identity → type in Domain.Entities) references.
- Which types
Infrastructure.Identity.IdentityService→Domain.Entities.RoleInfrastructure.Identity.IdentityService→Domain.Entities.User
- Direction
- Infrastructure.Identity uses Domain.Entities. Changing Domain.Entities can break Infrastructure.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→22 Infrastructure.Identity depends on Application.Common.Services✕
- Type pairs
- 1 distinct (type in Infrastructure.Identity → type in Application.Common.Services) reference.
- Which types
Infrastructure.Identity.IdentityService→Application.Common.Services.IIdentityService
- Direction
- Infrastructure.Identity uses Application.Common.Services. Changing Application.Common.Services can break Infrastructure.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→4 ApiServer.Controllers.Identity depends on ApiServer.ViewModels✕
- Type pairs
- 5 distinct (type in ApiServer.Controllers.Identity → type in ApiServer.ViewModels) references.
- Which types
ApiServer.Controllers.Identity.RolesController→ApiServer.ViewModels.RoleDtoApiServer.Controllers.Identity.RolesController→ApiServer.ViewModels.RolesViewModelApiServer.Controllers.Identity.UsersController→ApiServer.ViewModels.UserDetailsViewModelApiServer.Controllers.Identity.UsersController→ApiServer.ViewModels.UserDtoApiServer.Controllers.Identity.UsersController→ApiServer.ViewModels.UsersViewModel
- Direction
- ApiServer.Controllers.Identity uses ApiServer.ViewModels. Changing ApiServer.ViewModels can break ApiServer.Controllers.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→19 ApiServer.Controllers.Identity depends on Domain.Entities✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers.Identity → type in Domain.Entities) references.
- Which types
ApiServer.Controllers.Identity.RolesController→Domain.Entities.RoleApiServer.Controllers.Identity.UsersController→Domain.Entities.User
- Direction
- ApiServer.Controllers.Identity uses Domain.Entities. Changing Domain.Entities can break ApiServer.Controllers.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→21 ApiServer.Controllers.Identity depends on ApiServer.Mapper✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers.Identity → type in ApiServer.Mapper) references.
- Which types
ApiServer.Controllers.Identity.RolesController→ApiServer.Mapper.IMapperApiServer.Controllers.Identity.UsersController→ApiServer.Mapper.IMapper
- Direction
- ApiServer.Controllers.Identity uses ApiServer.Mapper. Changing ApiServer.Mapper can break ApiServer.Controllers.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→28 ApiServer.Controllers.Identity depends on ApiServer.Controllers✕
- Type pairs
- 2 distinct (type in ApiServer.Controllers.Identity → type in ApiServer.Controllers) references.
- Which types
ApiServer.Controllers.Identity.RolesController→ApiServer.Controllers.CustomControllerBaseApiServer.Controllers.Identity.UsersController→ApiServer.Controllers.CustomControllerBase
- Direction
- ApiServer.Controllers.Identity uses ApiServer.Controllers. Changing ApiServer.Controllers can break ApiServer.Controllers.Identity, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→9 Infrastructure.Data depends on Domain.Primitives✕
- Type pairs
- 2 distinct (type in Infrastructure.Data → type in Domain.Primitives) references.
- Which types
Infrastructure.Data.ProjectRepository→Domain.Primitives.IRepositoryInfrastructure.Data.WorkItemRepository→Domain.Primitives.IRepository
- Direction
- Infrastructure.Data uses Domain.Primitives. Changing Domain.Primitives can break Infrastructure.Data, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→19 Infrastructure.Data depends on Domain.Entities✕
- Type pairs
- 4 distinct (type in Infrastructure.Data → type in Domain.Entities) references.
- Which types
Infrastructure.Data.ApplicationDbContext→Domain.Entities.ProjectInfrastructure.Data.ApplicationDbContext→Domain.Entities.WorkItemInfrastructure.Data.ProjectRepository→Domain.Entities.ProjectInfrastructure.Data.WorkItemRepository→Domain.Entities.WorkItem
- Direction
- Infrastructure.Data uses Domain.Entities. Changing Domain.Entities can break Infrastructure.Data, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→36 Infrastructure.Data depends on Infrastructure.Data.Interceptors✕
- Type pairs
- 2 distinct (type in Infrastructure.Data → type in Infrastructure.Data.Interceptors) references.
- Which types
Infrastructure.Data.ApplicationDbContext→Infrastructure.Data.Interceptors.AuditableEntityInterceptorInfrastructure.Data.ApplicationDbContext→Infrastructure.Data.Interceptors.DomainEventsDispatcherInterceptor
- Direction
- Infrastructure.Data uses Infrastructure.Data.Interceptors. Changing Infrastructure.Data.Interceptors can break Infrastructure.Data, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Event-Driven
At a glance — Accessibility
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A06:2021 — Vulnerable & Outdated Components | 8 | REDACTED / Critical |
| A03:2021 — Injection | 7 | REDACTED / Critical |
| A05:2021 — Security Misconfiguration | 4 | REDACTED / Critical |
| A02:2021 — Cryptographic Failures | 1 | REDACTED / Critical |
Roadmap
First, enforce aggregate independence by referencing other aggregates only via strongly-typed IDs to prevent cross-boundary coupling and transposed-argument bugs. Next, shift business rules into the aggregates themselves and define repositories per aggregate root to ensure invariants are enforced at the source rather than in anemic services. Finally, encapsulate entity state by restricting setters and exposing collections as read-only, ensuring all state changes occur through methods that validate business rules.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary. | +7.9 pts | REDACTED | Aggregate boundaries |
| Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs. | +7.9 pts | REDACTED | Strongly-typed ids |
| Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services. | +7.9 pts | REDACTED | Rich vs anemic model |
| Define repositories per aggregate root and keep the query handle inside them; reach child entities through their root so invariants can't be bypassed. | +7.9 pts | REDACTED | Repository granularity |
| Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters). | +7.1 pts | REDACTED | Encapsulated state |
| Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. | +5.7 pts | REDACTED | Keyboard semantics |
| Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge. | +5.7 pts | REDACTED | A11y enforcement |
| Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label. | +5.7 pts | REDACTED | Forms & labels |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 3.4 | Mixed | IaC & Container Security: REDACTED IaC: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): REDACTED: REDACTED |
| REDACTED | 5.4 | Mixed | Secret Scanning: Leaked secret: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): REDACTED: REDACTED |
| REDACTED | 7.2 | Near-clean | Static Analysis (SAST): REDACTED: REDACTED |
| REDACTED | 7.9 | Near-clean | Static Analysis (SAST): REDACTED: REDACTED |
| src/Domain/Entities/Permission.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (18 lines × 2) |
| src/Domain/Entities/WorkItem.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (6–11 lines × 2) |
| README.md | 9.3 | Near-clean | Documentation Quality: Documentation: no architecture or design documentation |
| src/Application/WorkItems/Events/WorkItemAssignedDomainEventHandler.cs | 9.5 | Near-clean | Comment Value: misleading comment |
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. 95 of 100 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 — 100 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, 70 of 128 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 · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ 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 (3 contributor(s) across 245 commit(s) sampled, automation and bot accounts excluded). One of them holds 99% of the history; the other 2 hold 0.5% 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.
- D23 Boundary Type-Coupling — 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. At 2611 LoC across 10 projects this is a large multi-module codebase that clearly needs explicit bounded contexts. Bounded contexts cannot be inferred from a codebase that is not physically organised by them (D-321), so with none declared there are no boundaries for the coupling pass to measure across. You can widen what we reach: name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can 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"]`.
- D32 Data Compliance (PII/GDPR) — 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. `src/Application/Common/Behaviours/LoggingBehaviour.cs`, `src/Application/Common/Behaviours/UnhandledExceptionBehaviour.cs`, `src/Application/Common/Behaviours/ValidationBehaviour.cs`, `src/Application/Common/Exceptions/NotFoundException.cs`, `src/Application/Projects/Commands/CreateProjectCommand.cs`, … (+41 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
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.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- 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.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- 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.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- 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 REDACTED (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.
- AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
- AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
- AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- 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.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- 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.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
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
2 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (18 lines × 2) finding(s) in Code Duplication — start with Permission.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (6–11 lines × 2) finding(s) in Code Duplication — start with WorkItem.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
10 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 21 classes have LCOM4 above 3.
D9 · Test Distribution
74 test methods: 74 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 0 zero-assertion, 4 mock references across 74 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). unit: measured (0 flaky).
D12 · Dependency Hygiene
26 outdated, 0 vulnerable, 3 deprecated packages.
What to do
- Resolve the 3 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (3 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
1 secret(s) detected.
What to do
- Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with REDACTED. — One of this dimension's main actionable groups (1 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 269 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 29 direct `PackageReference`(s), and 221 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
1 deducted debt markers + 0 dead symbols across 2611 LoC in the .NET projects (0.1/KLoC) → score 9.8.
What to do
- Resolve the 1 CoverageExclusion finding(s) in Explicit Debt — start with REDACTED. — One of this dimension's main actionable groups (1 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
10 projects, 136 source files, 4205 hand-written lines of code (2611 production / 1594 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 4002 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 21 inter-project edges.
D19 · Documentation Quality
The repository is a single README with two .NET projects (PragmaticCleanArchitecture and Open Iconic) each having an accompanying CSS/README.md file. The PragmaticCleanArchitecture README is well written: it introduces the project, shows a demo, lists features, and begins outlining installation steps before being clipped mid-sentence. The Open Iconic README is a focused documentation document that describes what it contains, how to get started with SVGs and sprites, and ends with an outline of sections including Bootstrap/Foundation styling; however both documents are thin on the edge of completeness (installation/usage for PragmaticCleanArchitecture, no license in the visible text) and appear to be written as one-document examples rather than a cohesive documentation set. The two projects each have their own READMEs but the shared elements (architecture overview, licensing, contributor guidance) are not present.
What to do
- Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). — One of this dimension's main actionable groups (2 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 200 sampled symbols.
D24 · Comment Value
62 valuable / 0 redundant across 154 sampled comments; 1 shown with locations.
D26 · Project Cohesion
0 of 10 projects flagged as possibly oversized/incoherent.
D27 · Navigability
99 % of calls cross a namespace and 3 % go through an interface, but 57 % 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)
7 finding(s): 0 critical, 6 high, 1 medium, 0 low. 6 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 46 file(s) — `src/Application/Common/Behaviours/LoggingBehaviour.cs` (line 6), `src/Application/Common/Behaviours/UnhandledExceptionBehaviour.cs` (line 3), `src/Application/Common/Behaviours/ValidationBehaviour.cs` (line 5), `src/Application/Common/Exceptions/NotFoundException.cs` (line 3), `src/Application/Projects/Commands/CreateProjectCommand.cs` (line 8), … (+41 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. In 45 of those file(s) — `src/Application/Common/Behaviours/LoggingBehaviour.cs`, `src/Application/Common/Behaviours/UnhandledExceptionBehaviour.cs`, `src/Application/Common/Behaviours/ValidationBehaviour.cs`, `src/Application/Common/Exceptions/NotFoundException.cs`, `src/Application/Projects/Commands/CreateProjectCommand.cs`, … (+40 more) — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 0 additional row(s) came from that pass. Only the header's own parameter list is unread in them. In 1 of those file(s) — `src/Application/Common/Exceptions/NotFoundException.cs` — the break is at a TYPE DECLARATION (a C# primary constructor semgrep's grammar cannot parse), so the loss is wider than the named lines: rules scoped to that type see no type to scope to and are blind over its whole body, while rules matching statements keep working there. Absence of a type-scoped finding in those types is not evidence of anything. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- No action in Static Analysis (SAST) — all 6 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (6 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
7 finding(s): 0 critical, 4 high, 3 medium, 0 low.
What to do
- Resolve the 4 REDACTED CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 3 REDACTED CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (3 warning-level).
D31 · IaC & Container Security
4 finding(s): 0 critical, 1 high, 2 medium, 1 low.
What to do
- Resolve the 1 REDACTED IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 2 REDACTED IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
D34 · Knowledge Freshness
5 of 5 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Infrastructure/Identity/IdentityService.cs. Counted over 5 of the 111 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 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.
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is present but lists no reporting contact.
What to do
- Resolve the 1 REDACTED finding(s) in Vulnerability-disclosure Policy. — One of this dimension's main actionable groups (1 recommendation-level).
D39 · IL Efficiency
0 of 351 first-party methods have an oversized IL body.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 10 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 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.
Frontend & cross-cutting dimensions
AC2 · Forms & labels
- A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×16) — src/Web/UI/Components/Projects/DeleteProjectDialog.razor:6, src/Web/UI/Components/Projects/ProjectDialog.razor:6, src/Web/UI/Components/Projects/ProjectItem.razor:4, …
- This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — src/Web/UI/Pages/RoleManager.razor:53
- This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. — src/Web/UI/Pages/RoleManager.razor:77
What to do
- Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure
- A route with no <PageTitle> gives no name in the tab, history or screen-reader page list — the host's <HeadOutlet /> projects whatever title the routed component supplies, and this one supplies none. Add a <PageTitle> to this component (a literal <title> in the host document would be overwritten by the outlet). — src/Web/UI/Pages/Authentication.razor:3
- Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — src/Web/UI/Pages/RoleManager.razor:73
- user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. — src/Web/UI/wwwroot/index.html:6
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics
- A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×2) — src/Web/UI/Components/Projects/ProjectItem.razor:1, src/Web/UI/Shared/NavMenu.razor:10
- An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. — src/Web/UI/wwwroot/index.html:22
What to do
- Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness
AC6 · Visual & motion safety
- `.modal-header` sets color: #fff on background-color: #007bff — 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — src/Web/UI/Components/WorkItems/WorkItemDialog.razor.css:1
What to do
- Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement
- No accessibility enforcement found — no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 23 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
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).
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
AX9 · CQS / query purity
C2 · Access Controls
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.
DM1 · Aggregate boundaries
- `Project` references the aggregate root `WorkItem` directly (via `WorkItems`) — hold its `WorkItemId` instead. — src/Domain/Entities/Project.cs:9
- `WorkItem` references the aggregate root `Project` directly (via `Project`) — hold its `ProjectId` instead. — src/Domain/Entities/WorkItem.cs:9
What to do
- Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary.
DM10 · One transaction, one aggregate
- `ApplicationDbContextInitialiser.SeedAsync` saves `WorkItem`, `IdentityUser` in a single operation. Each is its own consistency boundary, so committing them together makes the second's invariants depend on the first's transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated — into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event. — REDACTED:31
What to do
- Mutate one aggregate per operation and let the others follow from a domain event — the second aggregate reaching consistency a moment later is the design, not a compromise.
DM11 · Constructible invalid state
DM12 · Ambient inputs in the domain
DM2 · Strongly-typed ids
- `WorkItem.ProjectId` is a raw `Int32` — give it a strongly-typed id: a dedicated single-field type wrapping the `Int32`, in whatever form your language spells that. — src/Domain/Entities/WorkItem.cs:8
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
- `Project` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/Domain/Entities/Project.cs:5
- `WorkItem` is an aggregate/entity with 9 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/Domain/Entities/WorkItem.cs:6
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
- `Project` exposes publicly writable state (Title). — src/Domain/Entities/Project.cs:5
- `WorkItem` exposes publicly writable state (ProjectId, Title, Description, Iteration, AssignedTo, StartDate, and 2 more). — src/Domain/Entities/WorkItem.cs:6
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
- `ProjectRepository` is a repository over `Project`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `Project` through its owning aggregate instead. — src/Infrastructure/Data/ProjectRepository.cs:6
- `WorkItemRepository` is a repository over `WorkItem`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `WorkItem` through its owning aggregate instead. — src/Infrastructure/Data/WorkItemRepository.cs:6
What to do
- Define repositories per aggregate root and keep the query handle inside them; reach child entities through their root so invariants can't be bypassed.
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED3 · Event naming
ED4 · Outbox / dual-write
ED5 · Idempotency
GD1 · Unfinished & placeholder code
- A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×5) — src/Web/ApiServer/Mapper/ProjectsViewModelMapper.cs:27, src/Web/ApiServer/Mapper/RolesViewModelMapper.cs:16, src/Web/ApiServer/Mapper/UserDetailsViewModelMapper.cs:18, …
What to do
- Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs
- `Map` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×5) — src/Web/ApiServer/Mapper/ProjectsViewModelMapper.cs:27, src/Web/ApiServer/Mapper/RolesViewModelMapper.cs:16, src/Web/ApiServer/Mapper/UserDetailsViewModelMapper.cs:18, …
What to do
- Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add a README to the 10 of 10 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure
- Only 2/10 projects share a common root namespace — the code's module identity is inconsistent.
What to do
- 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
P1 · CI/CD gates
P2 · Observability
- Only 2/4 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 4, 1 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
What to do
- Extend structured logging across the projects you operate, and give the library ones a diagnostics seam instead — an `EventSource`/`ActivitySource` the host can subscribe to, or an optional logger on your options object — rather than taking a logging dependency on your consumers' behalf.
- Consider OpenTelemetry tracing/metrics and a health-check endpoint for operability.
P3 · Security & performance tooling
What to do
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.
What to do
- Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P7 · Outbound HTTP resilience
- The app makes outbound HTTP calls but no resilience handler was detected (Polly / AddStandardResilienceHandler / circuit-breaker). A slow or failing dependency will cascade — add timeouts, retries with back-off, and a circuit breaker.
What to do
- Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down.
P8 · Schema migrations
S1 · Web-Security Posture
- No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
What to do
- Add security response headers (Content-Security-Policy, X-Frame-Options, X-Content-Type-Options) — defense in depth, even when a reverse proxy could set them.
X1 · Async correctness
- Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. — src/Infrastructure/Data/Interceptors/DomainEventsDispatcherInterceptor.cs:12
What to do
- Sync-over-async (deadlock risk)
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 55/85 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. (×30) — src/Web/ApiServer/Controllers/Identity/RoleController.cs:20, src/Web/ApiServer/Controllers/Identity/RoleController.cs:27, src/Web/ApiServer/Controllers/Identity/RoleController.cs:39, …
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
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
X5 · Nullable reference types
- ~1.1 `!` suppressions per 1k syntax nodes — 44 suppression(s) across the 39346 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.
What to do
- Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC4 · Keyboard semantics | 2.1.1, 2.4.3 | Partial signal |
| AC5 · ARIA correctness | 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 81% | Strong | Solid. |
| Architecture | 82% | Strong | Solid. |
| Maturity | 54% | Adequate — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 53% | Adequate — gated by P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 82% | Strong | Solid. |
| Domain Modelling | 35% | Weak — gated by DM1, DM2, DM4, DM7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Event-Driven | 100% | Exemplary | Strongest area. |
| Accessibility | 40% | Adequate — gated by AC4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
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.
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 28 check(s) not relevant to this codebase
- AC1 Text alternatives — No image/media element found in the parsed markup — AC1 not applicable here.
- AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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.
- 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 — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
- D25 ADR Conformance — no ADRs to check
- D32 Data Compliance (PII/GDPR) — 46 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- 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.
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — Coverage NOT MEASURED: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect.
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- 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'.
- 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.
- PF3 Async & latency 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 — 36 finding(s)
- <button> with no accessible text src/Web/UI/Components/Projects/DeleteProjectDialog.razor:6
- <button> with no accessible text src/Web/UI/Components/Projects/ProjectDialog.razor:6
- <button> with no accessible text src/Web/UI/Components/Projects/ProjectItem.razor:4
- <button> with no accessible text src/Web/UI/Components/Projects/ProjectItem.razor:7
- <button> with no accessible text src/Web/UI/Components/WorkItems/CreateWorkItemDialog.razor:6
- <button> with no accessible text src/Web/UI/Components/WorkItems/WorkItem.razor:10
- <button> with no accessible text src/Web/UI/Components/WorkItems/WorkItem.razor:13
- <button> with no accessible text src/Web/UI/Components/WorkItems/WorkItemDialog.razor:8
- <button> with no accessible text src/Web/UI/Pages/RoleManager.razor:39
- <button> with no accessible text src/Web/UI/Pages/RoleManager.razor:42
- <button> with no accessible text src/Web/UI/Pages/RoleManager.razor:58
- <button> with no accessible text src/Web/UI/Pages/RoleManager.razor:74
- <button> with no accessible text src/Web/UI/Pages/UserManager.razor:39
- <button> with no accessible text src/Web/UI/Pages/UserManager.razor:42
- <button> with no accessible text src/Web/UI/Pages/WorkItems.razor:44
- <button> with no accessible text src/Web/UI/Pages/WorkItems.razor:47
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <input> without a programmatic label src/Web/UI/Pages/RoleManager.razor:53
- <input> without a programmatic label src/Web/UI/Pages/RoleManager.razor:77
- Aggregate holds a reference to another aggregate: Project.WorkItems src/Domain/Entities/Project.cs:9
- Aggregate holds a reference to another aggregate: WorkItem.Project src/Domain/Entities/WorkItem.cs:9
- Routed page without a <PageTitle> src/Web/UI/Pages/Authentication.razor:3
- Viewport restricts zoom src/Web/UI/wwwroot/index.html:6
- Click handler on a non-interactive <li> src/Web/UI/Components/Projects/ProjectItem.razor:1
- Click handler on a non-interactive <div> src/Web/UI/Shared/NavMenu.razor:10
- REDACTED
- REDACTED
Serious — 37 finding(s)
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/ProjectsViewModelMapper.cs:27
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/RolesViewModelMapper.cs:16
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/UserDetailsViewModelMapper.cs:18
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/WorkItemMapper.cs:24
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/WorkItemViewModelMapper.cs:13
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/ProjectsViewModelMapper.cs:27
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/RolesViewModelMapper.cs:16
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/UserDetailsViewModelMapper.cs:18
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/WorkItemMapper.cs:24
- Unfinished stub — throws NotImplementedException src/Web/ApiServer/Mapper/WorkItemViewModelMapper.cs:13
- Deprecated: MSTest.TestAdapter
- Deprecated: MSTest.TestFramework
- Deprecated: Blazored.FluentValidation
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Anemic entity: Project src/Domain/Entities/Project.cs:5
- Anemic entity: WorkItem src/Domain/Entities/WorkItem.cs:6
- Repository for a non-root entity: ProjectRepository → Project src/Infrastructure/Data/ProjectRepository.cs:6
- Repository for a non-root entity: WorkItemRepository → WorkItem src/Infrastructure/Data/WorkItemRepository.cs:6
- Heading level jumps from h1 to h5 src/Web/UI/Pages/RoleManager.razor:73
- Anchor without href src/Web/UI/wwwroot/index.html:22
- Low contrast colour pair in CSS (4.0:1) src/Web/UI/Components/WorkItems/WorkItemDialog.razor.css:1
- Accessibility enforcement below the top rung
- CoverageExclusion REDACTED:9
- REDACTED
- REDACTED
- Duplicated block (18 lines × 2) src/Domain/Entities/Permission.cs:5
- Duplicated block (6–11 lines × 2) src/Domain/Entities/WorkItem.cs:10
- Off the main sequence: Shared
- Coverage not measured — no coverage collector is wired up
- One operation mutates 2 aggregates: ApplicationDbContextInitialiser.SeedAsync REDACTED:31
- Outbound HTTP without resilience
- NuGet dependencies are not locked
- Sync-over-async (deadlock risk) src/Infrastructure/Data/Interceptors/DomainEventsDispatcherInterceptor.cs:12
Minor — 19 finding(s)
- Documentation: no architecture or design documentation README.md
- Documentation: no licence statement README.md
- Mutable entity: Project src/Domain/Entities/Project.cs:5
- Mutable entity: WorkItem src/Domain/Entities/WorkItem.cs:6
- Partial audit-trail evidence
- misleading comment src/Application/WorkItems/Events/WorkItemAssignedDomainEventHandler.cs:19
- Scattered collaborators
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- REDACTED
- Primitive id on a domain type: WorkItem.ProjectId src/Domain/Entities/WorkItem.cs:8
- No ADRs
- Inconsistent root namespaces
- Logging is not universal
- No rollback/health safety
- No security response headers detected
- Not all async methods take a CancellationToken
- Null-forgiving operator (`!`) suppressions reduce the NRT score
Minor — 36 finding(s)
- Outdated: MediatR
- Outdated: Microsoft.AspNetCore.Components.WebAssembly.Server
- Outdated: Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
- Outdated: Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Outdated: Microsoft.AspNetCore.Identity.UI
- Outdated: NSwag.AspNetCore
- Outdated: NSwag.MSBuild
- Outdated: Swashbuckle.AspNetCore
- Outdated: FluentValidation.DependencyInjectionExtensions
- Outdated: Microsoft.EntityFrameworkCore
- Outdated: Serilog
- Outdated: Serilog.Settings.Configuration
- Outdated: Serilog.Sinks.Console
- Outdated: Microsoft.EntityFrameworkCore.SqlServer
- Outdated: Microsoft.EntityFrameworkCore.Tools
- Outdated: FluentAssertions
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: Moq
- Outdated: MSTest.TestAdapter
- Outdated: MSTest.TestFramework
- Outdated: FluentValidation
- Outdated: Microsoft.AspNetCore.Components.WebAssembly
- Outdated: Microsoft.AspNetCore.Components.WebAssembly.Authentication
- Outdated: Microsoft.AspNetCore.Components.WebAssembly.DevServer
- Outdated: Microsoft.Extensions.Http
- XML-doc coverage: ApiServer src/Web/ApiServer/ApiServer.csproj
- XML-doc coverage: Application src/Application/Application.csproj
- XML-doc coverage: Domain src/Domain/Domain.csproj
- XML-doc coverage: Infrastructure src/Infrastructure/Infrastructure.csproj
- XML-doc coverage: UI src/Web/UI/UI.csproj
- XML-doc coverage: Shared src/Web/Shared/Shared.csproj
- Mock framework: Moq
- Mock framework: Moq
- Mock framework: Moq
- Mock framework: Moq
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-ae29768782a9476488d2f97f62c8740f/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-ae29768782a9476488d2f97f62c8740f/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 . | 7 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list PragmaticCleanArchitecture.sln package --vulnerable --include-transitive --format json | 7 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 4 | artifacts/raw/trivy-config.json |
| 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. semgrep could not parse 46 file(s) — `src/Application/Common/Behaviours/LoggingBehaviour.cs`, `src/Application/Common/Behaviours/UnhandledExceptionBehaviour.cs`, `src/Application/Common/Behaviours/ValidationBehaviour.cs`, `src/Application/Common/Exceptions/NotFoundException.cs`, `src/Application/Projects/Commands/CreateProjectCommand.cs`, … (+41 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 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 | dotnet | — | dotnet list PragmaticCleanArchitecture.sln package --vulnerable --include-transitive --format json | 0 | artifacts/raw/dotnet-vulnerable.json |
Appendix C — Personal-data map
Email — 2 field(s)
- User.Email src/Domain/Entities/User.cs:9
- UserDto.Email src/Web/ApiServer/ViewModels/UserDto.cs:8