Executive summary
habibsql/TheMicroServices scores 37 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 24 and is rated Critical. Its CI/CD gates dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 3 No assertions finding(s) in Test Quality and to resolve the 3 Test project verifies nothing finding(s) in Test Quality, and if Production Readiness rose to 70, the score would rise from 37 to about 47.
21 findings are critical: ten in Dependency Vulnerabilities, six in IaC & Container Security, two in Aggregate boundaries, one in Explicit Debt, one in Outbox / dual-write and one in Test Quality.
Watchdog couldn't measure 6 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 2,446 lines, which would take an estimated 0.1 person-years, around €2,800, to rebuild.
If Production Readiness rose from 24 to 70, the lowest score rated Strong, the score would rise from 37 to about 47.
New since the last survey: 40 findings
- Test Quality · No assertions: ShouldReturnTotalItemsCountWhenValidStoreId Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/InventoryServiceTest.cs
- Test Quality · Test project verifies nothing: Inventory.Api.Grpc.Tests Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/InventoryServiceTest.cs
- Explicit Debt · EmptyCatchBlock Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs
- Access Controls · No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreCommandController.cs
- Access Controls · No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs
- Access Controls · No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs
- Access Controls · No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs
- Access Controls · No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs
- Access Controls · No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseQueryController.cs
- Access Controls · No authorization Src/SalesMicroservice/SalesWebApi/Controllers/SalesCommandController.cs
- Access Controls · No authorization Src/SalesMicroservice/SalesWebApi/Controllers/SalesQueryController.cs
- Cancellation propagation · Async method without CancellationToken: GetById Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs
- Cancellation propagation · Async method without CancellationToken: Save Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/InventoryMicroservice/InventoryCommandHandler/CreateStoreCommandHandler.cs
- Cancellation propagation · Async method without CancellationToken: GetById Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs
- Cancellation propagation · Async method without CancellationToken: RemoveItem Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs
- Cancellation propagation · Async method without CancellationToken: Save Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs
- Cancellation propagation · Async method without CancellationToken: SaveItems Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs
- Cancellation propagation · Async method without CancellationToken: UpdateItem Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetAll Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs
- Cancellation propagation · Async method without CancellationToken: GetById Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs
- Cancellation propagation · Async method without CancellationToken: Save Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/SalesMicroservice/SalesCommandHandler/SalesCommandHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/SalesMicroservice/SalesQueryHandler/SalesQueryHandler.cs
- Cancellation propagation · Async method without CancellationToken: GetById Src/SalesMicroservice/SalesRepository/SalesRepository.cs
- Cancellation propagation · Async method without CancellationToken: Save Src/SalesMicroservice/SalesRepository/SalesRepository.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs
- Cancellation propagation · Async method without CancellationToken: Send Src/CommonAll/Common.Infrastructure/CommandBus.cs
- Cancellation propagation · Async method without CancellationToken: SendEmail Src/CommonAll/Common.Infrastructure/EmailService.cs
- Cancellation propagation · Async method without CancellationToken: Publish Src/CommonAll/Common.Infrastructure/EventBus.cs
- Cancellation propagation · Async method without CancellationToken: Subscribe Src/CommonAll/Common.Infrastructure/EventBus.cs
- Cancellation propagation · Async method without CancellationToken: Send Src/CommonAll/Common.Infrastructure/QueryBus.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/InventoryMicroservice/Inventory.EventHandler/Inventory.EventHandler/ProductPurchasedEventHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/InventoryMicroservice/Inventory.EventHandler/Inventory.EventHandler/ProductSoldEventHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/PurchaseMicroservice/Purchase.QueryHandler/ProductPurchaseQueryHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle Src/InventoryMicroservice/Inventory.QueryHandler/StoreQueryHandler.cs
- Exception handling · Swallowed exception (empty catch) Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs
- Outbound HTTP resilience · Outbound HTTP without resilience Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs
- Async & latency hygiene · Sync-over-async blocking
- Async & latency hygiene · Sync-over-async blocking Src/InventoryMicroservice/InventoryWebApi/Startup.cs
Fixed since the last survey: 2 findings
- Coupling · Off the main sequence: Inventory.DTO
- Coupling · Off the main sequence: Sales.Core
Rebuild cost: about €2,800 · Estimate
| Cost to rebuild | €970 to €4,700, for 16 to 50 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Very high, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 37. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 2,446 lines of product code, of which 59% is declarations and boilerplate, 36% straight logic and 5% logic with branches |
| Comment lines | The estimate prices 2,369 lines. Comment lines count towards the size of 2,446 lines but aren't priced as work. |
Top priorities
Diagnosis: what the measurements show together
Architecture — bounded-context dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 Common.Core | 2 Inventory.Api | 3 Inventory.Api.Grpc | 4 Inventory.DTO | 5 Inventory.Event | 6 InventoryCore | 7 InventoryDomainService | 8 InventoryInfrastructure | 9 InventoryQueryHandler | 10 Purchase.Api | 11 Purchase.Core | 12 Purchase.DTO | 13 Purchase.Infrastructure | 14 Sales.Core | 15 Sales.DTO | 16 SalesDomainService | 17 Common.Core.Events | 18 Common.Infrastructure | 19 Inventory.Api.Controllers | 20 Inventory.Command | 21 Inventory.Domain | 22 Inventory.Query | 23 Purchase.Api.Controllers | 24 Purchase.Command | 25 Purchase.Domain.Model | 26 Purchase.Query | 27 Sales.Api.Controllers | 28 Sales.Command | 29 Sales.Domain | 30 Sales.Query | 31 Inventory.Repository | 32 Purchase.Repository | 33 Sales.Repository | 34 Inventory.CommandHandler | 35 Inventory.EventHandler | 36 Inventory.QueryHandler | 37 Purchase.CommandHandler | 38 Purchase.QueryHandler | 39 Sales.CommandHandler | 40 Sales.QueryHandler |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 Common.Core | ||||||||||||||||||||||||||||||||||||||||
| 2 Inventory.Api | ||||||||||||||||||||||||||||||||||||||||
| 3 Inventory.Api.Grpc | ||||||||||||||||||||||||||||||||||||||||
| 4 Inventory.DTO | ||||||||||||||||||||||||||||||||||||||||
| 5 Inventory.Event | ||||||||||||||||||||||||||||||||||||||||
| 6 InventoryCore | ||||||||||||||||||||||||||||||||||||||||
| 7 InventoryDomainService | ||||||||||||||||||||||||||||||||||||||||
| 8 InventoryInfrastructure | ||||||||||||||||||||||||||||||||||||||||
| 9 InventoryQueryHandler | ||||||||||||||||||||||||||||||||||||||||
| 10 Purchase.Api | ||||||||||||||||||||||||||||||||||||||||
| 11 Purchase.Core | ||||||||||||||||||||||||||||||||||||||||
| 12 Purchase.DTO | ||||||||||||||||||||||||||||||||||||||||
| 13 Purchase.Infrastructure | ||||||||||||||||||||||||||||||||||||||||
| 14 Sales.Core | ||||||||||||||||||||||||||||||||||||||||
| 15 Sales.DTO | ||||||||||||||||||||||||||||||||||||||||
| 16 SalesDomainService | ||||||||||||||||||||||||||||||||||||||||
| 17 Common.Core.Events | 2 | |||||||||||||||||||||||||||||||||||||||
| 18 Common.Infrastructure | 7 | |||||||||||||||||||||||||||||||||||||||
| 19 Inventory.Api.Controllers | 4 | 1 | ||||||||||||||||||||||||||||||||||||||
| 20 Inventory.Command | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 Inventory.Domain | 2 | |||||||||||||||||||||||||||||||||||||||
| 22 Inventory.Query | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 Purchase.Api.Controllers | 4 | 2 | ||||||||||||||||||||||||||||||||||||||
| 24 Purchase.Command | 2 | |||||||||||||||||||||||||||||||||||||||
| 25 Purchase.Domain.Model | 4 | |||||||||||||||||||||||||||||||||||||||
| 26 Purchase.Query | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 Sales.Api.Controllers | 4 | 1 | ||||||||||||||||||||||||||||||||||||||
| 28 Sales.Command | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 Sales.Domain | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 Sales.Query | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 Inventory.Repository | 4 | 4 | ||||||||||||||||||||||||||||||||||||||
| 32 Purchase.Repository | 2 | 2 | 1 | |||||||||||||||||||||||||||||||||||||
| 33 Sales.Repository | 2 | 2 | 1 | |||||||||||||||||||||||||||||||||||||
| 34 Inventory.CommandHandler | 2 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 35 Inventory.EventHandler | 2 | 2 | 3 | |||||||||||||||||||||||||||||||||||||
| 36 Inventory.QueryHandler | 2 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 37 Purchase.CommandHandler | 5 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 38 Purchase.QueryHandler | 2 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 Sales.CommandHandler | 3 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 40 Sales.QueryHandler | 2 | 1 | 1 |
17→1 Common.Core.Events uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Common.Core.Events uses a type in Common.Core.
- The types involved
Common.Core.Events.ProductPurchasedEvent→Common.Core.IEventCommon.Core.Events.ProductSoldEvent→Common.Core.IEvent
- Direction
- Common.Core.Events uses Common.Core, so a change to Common.Core can break Common.Core.Events, while a change to Common.Core.Events can't break Common.Core.
- Position
- Below the diagonal: Common.Core.Events uses a module listed above it, which is the healthy direction.
18→1 Common.Infrastructure uses Common.Core✕
- Connections
- 7 pairs of types, where a type in Common.Infrastructure uses a type in Common.Core.
- The types involved
Common.Infrastructure.CommandBus→Common.Core.ICommandBusCommon.Infrastructure.EmailService→Common.Core.EmailParamsCommon.Infrastructure.EmailService→Common.Core.EmailSettingsCommon.Infrastructure.EmailService→Common.Core.IEmailServiceCommon.Infrastructure.EventBus→Common.Core.IEventBusCommon.Infrastructure.MongoService→Common.Core.IMongoServiceCommon.Infrastructure.QueryBus→Common.Core.IQueryBus
- Direction
- Common.Infrastructure uses Common.Core, so a change to Common.Core can break Common.Infrastructure, while a change to Common.Infrastructure can't break Common.Core.
- Position
- Below the diagonal: Common.Infrastructure uses a module listed above it, which is the healthy direction.
19→1 Inventory.Api.Controllers uses Common.Core✕
- Connections
- 4 pairs of types, where a type in Inventory.Api.Controllers uses a type in Common.Core.
- The types involved
Inventory.Api.Controllers.StoreCommandController→Common.Core.CommandResultInventory.Api.Controllers.StoreCommandController→Common.Core.ICommandBusInventory.Api.Controllers.StoreQueryController→Common.Core.IQueryBusInventory.Api.Controllers.StoreQueryController→Common.Core.QueryResult
- Direction
- Inventory.Api.Controllers uses Common.Core, so a change to Common.Core can break Inventory.Api.Controllers, while a change to Inventory.Api.Controllers can't break Common.Core.
- Position
- Below the diagonal: Inventory.Api.Controllers uses a module listed above it, which is the healthy direction.
19→4 Inventory.Api.Controllers uses Inventory.DTO✕
- Connections
- 1 pair of types, where a type in Inventory.Api.Controllers uses a type in Inventory.DTO.
- The types involved
Inventory.Api.Controllers.StoreCommandController→Inventory.DTO.StoreDTO
- Direction
- Inventory.Api.Controllers uses Inventory.DTO, so a change to Inventory.DTO can break Inventory.Api.Controllers, while a change to Inventory.Api.Controllers can't break Inventory.DTO.
- Position
- Below the diagonal: Inventory.Api.Controllers uses a module listed above it, which is the healthy direction.
20→1 Inventory.Command uses Common.Core✕
- Connections
- 1 pair of types, where a type in Inventory.Command uses a type in Common.Core.
- The types involved
Inventory.Command.CreateStoreCommand→Common.Core.ICommand
- Direction
- Inventory.Command uses Common.Core, so a change to Common.Core can break Inventory.Command, while a change to Inventory.Command can't break Common.Core.
- Position
- Below the diagonal: Inventory.Command uses a module listed above it, which is the healthy direction.
21→1 Inventory.Domain uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Inventory.Domain uses a type in Common.Core.
- The types involved
Inventory.Domain.Store→Common.Core.AggregateInventory.Domain.StoreItem→Common.Core.Aggregate
- Direction
- Inventory.Domain uses Common.Core, so a change to Common.Core can break Inventory.Domain, while a change to Inventory.Domain can't break Common.Core.
- Position
- Below the diagonal: Inventory.Domain uses a module listed above it, which is the healthy direction.
22→1 Inventory.Query uses Common.Core✕
- Connections
- 1 pair of types, where a type in Inventory.Query uses a type in Common.Core.
- The types involved
Inventory.Query.StoreQuery→Common.Core.IQuery
- Direction
- Inventory.Query uses Common.Core, so a change to Common.Core can break Inventory.Query, while a change to Inventory.Query can't break Common.Core.
- Position
- Below the diagonal: Inventory.Query uses a module listed above it, which is the healthy direction.
23→1 Purchase.Api.Controllers uses Common.Core✕
- Connections
- 4 pairs of types, where a type in Purchase.Api.Controllers uses a type in Common.Core.
- The types involved
Purchase.Api.Controllers.PurchaseCommandController→Common.Core.CommandResultPurchase.Api.Controllers.PurchaseCommandController→Common.Core.ICommandBusPurchase.Api.Controllers.PurchaseQueryController→Common.Core.IQueryBusPurchase.Api.Controllers.PurchaseQueryController→Common.Core.QueryResult
- Direction
- Purchase.Api.Controllers uses Common.Core, so a change to Common.Core can break Purchase.Api.Controllers, while a change to Purchase.Api.Controllers can't break Common.Core.
- Position
- Below the diagonal: Purchase.Api.Controllers uses a module listed above it, which is the healthy direction.
23→12 Purchase.Api.Controllers uses Purchase.DTO✕
- Connections
- 2 pairs of types, where a type in Purchase.Api.Controllers uses a type in Purchase.DTO.
- The types involved
Purchase.Api.Controllers.PurchaseCommandController→Purchase.DTO.PurchaseDTOPurchase.Api.Controllers.PurchaseQueryController→Purchase.DTO.PurchaseQueryDTO
- Direction
- Purchase.Api.Controllers uses Purchase.DTO, so a change to Purchase.DTO can break Purchase.Api.Controllers, while a change to Purchase.Api.Controllers can't break Purchase.DTO.
- Position
- Below the diagonal: Purchase.Api.Controllers uses a module listed above it, which is the healthy direction.
24→1 Purchase.Command uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Purchase.Command uses a type in Common.Core.
- The types involved
Purchase.Command.LineItemCommand→Common.Core.ICommandPurchase.Command.PurchaseCommand→Common.Core.ICommand
- Direction
- Purchase.Command uses Common.Core, so a change to Common.Core can break Purchase.Command, while a change to Purchase.Command can't break Common.Core.
- Position
- Below the diagonal: Purchase.Command uses a module listed above it, which is the healthy direction.
25→1 Purchase.Domain.Model uses Common.Core✕
- Connections
- 4 pairs of types, where a type in Purchase.Domain.Model uses a type in Common.Core.
- The types involved
Purchase.Domain.Model.Product→Common.Core.AggregatePurchase.Domain.Model.ProductLineItem→Common.Core.EntityPurchase.Domain.Model.Purchase→Common.Core.AggregatePurchase.Domain.Model.User→Common.Core.Aggregate
- Direction
- Purchase.Domain.Model uses Common.Core, so a change to Common.Core can break Purchase.Domain.Model, while a change to Purchase.Domain.Model can't break Common.Core.
- Position
- Below the diagonal: Purchase.Domain.Model uses a module listed above it, which is the healthy direction.
26→1 Purchase.Query uses Common.Core✕
- Connections
- 1 pair of types, where a type in Purchase.Query uses a type in Common.Core.
- The types involved
Purchase.Query.ProductPurchasedQuery→Common.Core.IQuery
- Direction
- Purchase.Query uses Common.Core, so a change to Common.Core can break Purchase.Query, while a change to Purchase.Query can't break Common.Core.
- Position
- Below the diagonal: Purchase.Query uses a module listed above it, which is the healthy direction.
27→1 Sales.Api.Controllers uses Common.Core✕
- Connections
- 4 pairs of types, where a type in Sales.Api.Controllers uses a type in Common.Core.
- The types involved
Sales.Api.Controllers.SalesCommandController→Common.Core.CommandResultSales.Api.Controllers.SalesCommandController→Common.Core.ICommandBusSales.Api.Controllers.SalesQueryController→Common.Core.IQueryBusSales.Api.Controllers.SalesQueryController→Common.Core.QueryResult
- Direction
- Sales.Api.Controllers uses Common.Core, so a change to Common.Core can break Sales.Api.Controllers, while a change to Sales.Api.Controllers can't break Common.Core.
- Position
- Below the diagonal: Sales.Api.Controllers uses a module listed above it, which is the healthy direction.
27→15 Sales.Api.Controllers uses Sales.DTO✕
- Connections
- 1 pair of types, where a type in Sales.Api.Controllers uses a type in Sales.DTO.
- The types involved
Sales.Api.Controllers.SalesCommandController→Sales.DTO.SalesDTO
- Direction
- Sales.Api.Controllers uses Sales.DTO, so a change to Sales.DTO can break Sales.Api.Controllers, while a change to Sales.Api.Controllers can't break Sales.DTO.
- Position
- Below the diagonal: Sales.Api.Controllers uses a module listed above it, which is the healthy direction.
28→1 Sales.Command uses Common.Core✕
- Connections
- 1 pair of types, where a type in Sales.Command uses a type in Common.Core.
- The types involved
Sales.Command.SalesCommand→Common.Core.ICommand
- Direction
- Sales.Command uses Common.Core, so a change to Common.Core can break Sales.Command, while a change to Sales.Command can't break Common.Core.
- Position
- Below the diagonal: Sales.Command uses a module listed above it, which is the healthy direction.
29→1 Sales.Domain uses Common.Core✕
- Connections
- 1 pair of types, where a type in Sales.Domain uses a type in Common.Core.
- The types involved
Sales.Domain.Sales→Common.Core.Aggregate
- Direction
- Sales.Domain uses Common.Core, so a change to Common.Core can break Sales.Domain, while a change to Sales.Domain can't break Common.Core.
- Position
- Below the diagonal: Sales.Domain uses a module listed above it, which is the healthy direction.
30→1 Sales.Query uses Common.Core✕
- Connections
- 1 pair of types, where a type in Sales.Query uses a type in Common.Core.
- The types involved
Sales.Query.SalesQuery→Common.Core.IQuery
- Direction
- Sales.Query uses Common.Core, so a change to Common.Core can break Sales.Query, while a change to Sales.Query can't break Common.Core.
- Position
- Below the diagonal: Sales.Query uses a module listed above it, which is the healthy direction.
31→1 Inventory.Repository uses Common.Core✕
- Connections
- 4 pairs of types, where a type in Inventory.Repository uses a type in Common.Core.
- The types involved
Inventory.Repository.IStoreItemRepository→Common.Core.IRepositoryInventory.Repository.IStoreRepository→Common.Core.IRepositoryInventory.Repository.StoreItemRepository→Common.Core.IMongoServiceInventory.Repository.StoreRepository→Common.Core.IMongoService
- Direction
- Inventory.Repository uses Common.Core, so a change to Common.Core can break Inventory.Repository, while a change to Inventory.Repository can't break Common.Core.
- Position
- Below the diagonal: Inventory.Repository uses a module listed above it, which is the healthy direction.
31→21 Inventory.Repository uses Inventory.Domain✕
- Connections
- 4 pairs of types, where a type in Inventory.Repository uses a type in Inventory.Domain.
- The types involved
Inventory.Repository.IStoreItemRepository→Inventory.Domain.StoreItemInventory.Repository.IStoreRepository→Inventory.Domain.StoreInventory.Repository.StoreItemRepository→Inventory.Domain.StoreItemInventory.Repository.StoreRepository→Inventory.Domain.Store
- Direction
- Inventory.Repository uses Inventory.Domain, so a change to Inventory.Domain can break Inventory.Repository, while a change to Inventory.Repository can't break Inventory.Domain.
- Position
- Below the diagonal: Inventory.Repository uses a module listed above it, which is the healthy direction.
32→1 Purchase.Repository uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Purchase.Repository uses a type in Common.Core.
- The types involved
Purchase.Repository.IPurchaseRepostiory→Common.Core.IRepositoryPurchase.Repository.PurchaseRepository→Common.Core.IMongoService
- Direction
- Purchase.Repository uses Common.Core, so a change to Common.Core can break Purchase.Repository, while a change to Purchase.Repository can't break Common.Core.
- Position
- Below the diagonal: Purchase.Repository uses a module listed above it, which is the healthy direction.
32→12 Purchase.Repository uses Purchase.DTO✕
- Connections
- 2 pairs of types, where a type in Purchase.Repository uses a type in Purchase.DTO.
- The types involved
Purchase.Repository.IPurchaseRepostiory→Purchase.DTO.ProductPurchasedDTOPurchase.Repository.PurchaseRepository→Purchase.DTO.ProductPurchasedDTO
- Direction
- Purchase.Repository uses Purchase.DTO, so a change to Purchase.DTO can break Purchase.Repository, while a change to Purchase.Repository can't break Purchase.DTO.
- Position
- Below the diagonal: Purchase.Repository uses a module listed above it, which is the healthy direction.
32→25 Purchase.Repository uses Purchase.Domain.Model✕
- Connections
- 1 pair of types, where a type in Purchase.Repository uses a type in Purchase.Domain.Model.
- The types involved
Purchase.Repository.PurchaseRepository→Purchase.Domain.Model.Purchase
- Direction
- Purchase.Repository uses Purchase.Domain.Model, so a change to Purchase.Domain.Model can break Purchase.Repository, while a change to Purchase.Repository can't break Purchase.Domain.Model.
- Position
- Below the diagonal: Purchase.Repository uses a module listed above it, which is the healthy direction.
33→1 Sales.Repository uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Sales.Repository uses a type in Common.Core.
- The types involved
Sales.Repository.ISalesRepository→Common.Core.IRepositorySales.Repository.SalesRepository→Common.Core.IMongoService
- Direction
- Sales.Repository uses Common.Core, so a change to Common.Core can break Sales.Repository, while a change to Sales.Repository can't break Common.Core.
- Position
- Below the diagonal: Sales.Repository uses a module listed above it, which is the healthy direction.
33→15 Sales.Repository uses Sales.DTO✕
- Connections
- 2 pairs of types, where a type in Sales.Repository uses a type in Sales.DTO.
- The types involved
Sales.Repository.ISalesRepository→Sales.DTO.ProductSalesDTOSales.Repository.SalesRepository→Sales.DTO.ProductSalesDTO
- Direction
- Sales.Repository uses Sales.DTO, so a change to Sales.DTO can break Sales.Repository, while a change to Sales.Repository can't break Sales.DTO.
- Position
- Below the diagonal: Sales.Repository uses a module listed above it, which is the healthy direction.
33→29 Sales.Repository uses Sales.Domain✕
- Connections
- 1 pair of types, where a type in Sales.Repository uses a type in Sales.Domain.
- The types involved
Sales.Repository.SalesRepository→Sales.Domain.Sales
- Direction
- Sales.Repository uses Sales.Domain, so a change to Sales.Domain can break Sales.Repository, while a change to Sales.Repository can't break Sales.Domain.
- Position
- Below the diagonal: Sales.Repository uses a module listed above it, which is the healthy direction.
34→1 Inventory.CommandHandler uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Inventory.CommandHandler uses a type in Common.Core.
- The types involved
Inventory.CommandHandler.CreateStoreCommandHandler→Common.Core.CommandResultInventory.CommandHandler.CreateStoreCommandHandler→Common.Core.ICommandHandler
- Direction
- Inventory.CommandHandler uses Common.Core, so a change to Common.Core can break Inventory.CommandHandler, while a change to Inventory.CommandHandler can't break Common.Core.
- Position
- Below the diagonal: Inventory.CommandHandler uses a module listed above it, which is the healthy direction.
34→20 Inventory.CommandHandler uses Inventory.Command✕
- Connections
- 1 pair of types, where a type in Inventory.CommandHandler uses a type in Inventory.Command.
- The types involved
Inventory.CommandHandler.CreateStoreCommandHandler→Inventory.Command.CreateStoreCommand
- Direction
- Inventory.CommandHandler uses Inventory.Command, so a change to Inventory.Command can break Inventory.CommandHandler, while a change to Inventory.CommandHandler can't break Inventory.Command.
- Position
- Below the diagonal: Inventory.CommandHandler uses a module listed above it, which is the healthy direction.
34→21 Inventory.CommandHandler uses Inventory.Domain✕
- Connections
- 1 pair of types, where a type in Inventory.CommandHandler uses a type in Inventory.Domain.
- The types involved
Inventory.CommandHandler.CreateStoreCommandHandler→Inventory.Domain.Store
- Direction
- Inventory.CommandHandler uses Inventory.Domain, so a change to Inventory.Domain can break Inventory.CommandHandler, while a change to Inventory.CommandHandler can't break Inventory.Domain.
- Position
- Below the diagonal: Inventory.CommandHandler uses a module listed above it, which is the healthy direction.
34→31 Inventory.CommandHandler uses Inventory.Repository✕
- Connections
- 1 pair of types, where a type in Inventory.CommandHandler uses a type in Inventory.Repository.
- The types involved
Inventory.CommandHandler.CreateStoreCommandHandler→Inventory.Repository.IStoreRepository
- Direction
- Inventory.CommandHandler uses Inventory.Repository, so a change to Inventory.Repository can break Inventory.CommandHandler, while a change to Inventory.CommandHandler can't break Inventory.Repository.
- Position
- Below the diagonal: Inventory.CommandHandler uses a module listed above it, which is the healthy direction.
35→1 Inventory.EventHandler uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Inventory.EventHandler uses a type in Common.Core.
- The types involved
Inventory.EventHandler.ProductPurchasedEventHandler→Common.Core.IEventHandlerInventory.EventHandler.ProductSoldEventHandler→Common.Core.IEventHandler
- Direction
- Inventory.EventHandler uses Common.Core, so a change to Common.Core can break Inventory.EventHandler, while a change to Inventory.EventHandler can't break Common.Core.
- Position
- Below the diagonal: Inventory.EventHandler uses a module listed above it, which is the healthy direction.
35→17 Inventory.EventHandler uses Common.Core.Events✕
- Connections
- 2 pairs of types, where a type in Inventory.EventHandler uses a type in Common.Core.Events.
- The types involved
Inventory.EventHandler.ProductPurchasedEventHandler→Common.Core.Events.ProductPurchasedEventInventory.EventHandler.ProductSoldEventHandler→Common.Core.Events.ProductSoldEvent
- Direction
- Inventory.EventHandler uses Common.Core.Events, so a change to Common.Core.Events can break Inventory.EventHandler, while a change to Inventory.EventHandler can't break Common.Core.Events.
- Position
- Below the diagonal: Inventory.EventHandler uses a module listed above it, which is the healthy direction.
35→31 Inventory.EventHandler uses Inventory.Repository✕
- Connections
- 3 pairs of types, where a type in Inventory.EventHandler uses a type in Inventory.Repository.
- The types involved
Inventory.EventHandler.ProductPurchasedEventHandler→Inventory.Repository.IStoreItemRepositoryInventory.EventHandler.ProductPurchasedEventHandler→Inventory.Repository.IStoreRepositoryInventory.EventHandler.ProductSoldEventHandler→Inventory.Repository.IStoreItemRepository
- Direction
- Inventory.EventHandler uses Inventory.Repository, so a change to Inventory.Repository can break Inventory.EventHandler, while a change to Inventory.EventHandler can't break Inventory.Repository.
- Position
- Below the diagonal: Inventory.EventHandler uses a module listed above it, which is the healthy direction.
36→1 Inventory.QueryHandler uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Inventory.QueryHandler uses a type in Common.Core.
- The types involved
Inventory.QueryHandler.StoreQueryHandler→Common.Core.IQueryHandlerInventory.QueryHandler.StoreQueryHandler→Common.Core.QueryResult
- Direction
- Inventory.QueryHandler uses Common.Core, so a change to Common.Core can break Inventory.QueryHandler, while a change to Inventory.QueryHandler can't break Common.Core.
- Position
- Below the diagonal: Inventory.QueryHandler uses a module listed above it, which is the healthy direction.
36→4 Inventory.QueryHandler uses Inventory.DTO✕
- Connections
- 1 pair of types, where a type in Inventory.QueryHandler uses a type in Inventory.DTO.
- The types involved
Inventory.QueryHandler.StoreQueryHandler→Inventory.DTO.StoreDTO
- Direction
- Inventory.QueryHandler uses Inventory.DTO, so a change to Inventory.DTO can break Inventory.QueryHandler, while a change to Inventory.QueryHandler can't break Inventory.DTO.
- Position
- Below the diagonal: Inventory.QueryHandler uses a module listed above it, which is the healthy direction.
36→21 Inventory.QueryHandler uses Inventory.Domain✕
- Connections
- 1 pair of types, where a type in Inventory.QueryHandler uses a type in Inventory.Domain.
- The types involved
Inventory.QueryHandler.StoreQueryHandler→Inventory.Domain.Store
- Direction
- Inventory.QueryHandler uses Inventory.Domain, so a change to Inventory.Domain can break Inventory.QueryHandler, while a change to Inventory.QueryHandler can't break Inventory.Domain.
- Position
- Below the diagonal: Inventory.QueryHandler uses a module listed above it, which is the healthy direction.
36→22 Inventory.QueryHandler uses Inventory.Query✕
- Connections
- 1 pair of types, where a type in Inventory.QueryHandler uses a type in Inventory.Query.
- The types involved
Inventory.QueryHandler.StoreQueryHandler→Inventory.Query.StoreQuery
- Direction
- Inventory.QueryHandler uses Inventory.Query, so a change to Inventory.Query can break Inventory.QueryHandler, while a change to Inventory.QueryHandler can't break Inventory.Query.
- Position
- Below the diagonal: Inventory.QueryHandler uses a module listed above it, which is the healthy direction.
36→31 Inventory.QueryHandler uses Inventory.Repository✕
- Connections
- 1 pair of types, where a type in Inventory.QueryHandler uses a type in Inventory.Repository.
- The types involved
Inventory.QueryHandler.StoreQueryHandler→Inventory.Repository.IStoreRepository
- Direction
- Inventory.QueryHandler uses Inventory.Repository, so a change to Inventory.Repository can break Inventory.QueryHandler, while a change to Inventory.QueryHandler can't break Inventory.Repository.
- Position
- Below the diagonal: Inventory.QueryHandler uses a module listed above it, which is the healthy direction.
37→1 Purchase.CommandHandler uses Common.Core✕
- Connections
- 5 pairs of types, where a type in Purchase.CommandHandler uses a type in Common.Core.
- The types involved
Purchase.CommandHandler.PurchaseCommandHandler→Common.Core.CommandResultPurchase.CommandHandler.PurchaseCommandHandler→Common.Core.EmailParamsPurchase.CommandHandler.PurchaseCommandHandler→Common.Core.ICommandHandlerPurchase.CommandHandler.PurchaseCommandHandler→Common.Core.IEmailServicePurchase.CommandHandler.PurchaseCommandHandler→Common.Core.IEventBus
- Direction
- Purchase.CommandHandler uses Common.Core, so a change to Common.Core can break Purchase.CommandHandler, while a change to Purchase.CommandHandler can't break Common.Core.
- Position
- Below the diagonal: Purchase.CommandHandler uses a module listed above it, which is the healthy direction.
37→17 Purchase.CommandHandler uses Common.Core.Events✕
- Connections
- 1 pair of types, where a type in Purchase.CommandHandler uses a type in Common.Core.Events.
- The types involved
Purchase.CommandHandler.PurchaseCommandHandler→Common.Core.Events.ProductPurchasedEvent
- Direction
- Purchase.CommandHandler uses Common.Core.Events, so a change to Common.Core.Events can break Purchase.CommandHandler, while a change to Purchase.CommandHandler can't break Common.Core.Events.
- Position
- Below the diagonal: Purchase.CommandHandler uses a module listed above it, which is the healthy direction.
37→24 Purchase.CommandHandler uses Purchase.Command✕
- Connections
- 1 pair of types, where a type in Purchase.CommandHandler uses a type in Purchase.Command.
- The types involved
Purchase.CommandHandler.PurchaseCommandHandler→Purchase.Command.PurchaseCommand
- Direction
- Purchase.CommandHandler uses Purchase.Command, so a change to Purchase.Command can break Purchase.CommandHandler, while a change to Purchase.CommandHandler can't break Purchase.Command.
- Position
- Below the diagonal: Purchase.CommandHandler uses a module listed above it, which is the healthy direction.
37→25 Purchase.CommandHandler uses Purchase.Domain.Model✕
- Connections
- 1 pair of types, where a type in Purchase.CommandHandler uses a type in Purchase.Domain.Model.
- The types involved
Purchase.CommandHandler.PurchaseCommandHandler→Purchase.Domain.Model.Purchase
- Direction
- Purchase.CommandHandler uses Purchase.Domain.Model, so a change to Purchase.Domain.Model can break Purchase.CommandHandler, while a change to Purchase.CommandHandler can't break Purchase.Domain.Model.
- Position
- Below the diagonal: Purchase.CommandHandler uses a module listed above it, which is the healthy direction.
37→32 Purchase.CommandHandler uses Purchase.Repository✕
- Connections
- 1 pair of types, where a type in Purchase.CommandHandler uses a type in Purchase.Repository.
- The types involved
Purchase.CommandHandler.PurchaseCommandHandler→Purchase.Repository.IPurchaseRepostiory
- Direction
- Purchase.CommandHandler uses Purchase.Repository, so a change to Purchase.Repository can break Purchase.CommandHandler, while a change to Purchase.CommandHandler can't break Purchase.Repository.
- Position
- Below the diagonal: Purchase.CommandHandler uses a module listed above it, which is the healthy direction.
38→1 Purchase.QueryHandler uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Purchase.QueryHandler uses a type in Common.Core.
- The types involved
Purchase.QueryHandler.ProductPurchaseQueryHandler→Common.Core.IQueryHandlerPurchase.QueryHandler.ProductPurchaseQueryHandler→Common.Core.QueryResult
- Direction
- Purchase.QueryHandler uses Common.Core, so a change to Common.Core can break Purchase.QueryHandler, while a change to Purchase.QueryHandler can't break Common.Core.
- Position
- Below the diagonal: Purchase.QueryHandler uses a module listed above it, which is the healthy direction.
38→26 Purchase.QueryHandler uses Purchase.Query✕
- Connections
- 1 pair of types, where a type in Purchase.QueryHandler uses a type in Purchase.Query.
- The types involved
Purchase.QueryHandler.ProductPurchaseQueryHandler→Purchase.Query.ProductPurchasedQuery
- Direction
- Purchase.QueryHandler uses Purchase.Query, so a change to Purchase.Query can break Purchase.QueryHandler, while a change to Purchase.QueryHandler can't break Purchase.Query.
- Position
- Below the diagonal: Purchase.QueryHandler uses a module listed above it, which is the healthy direction.
38→32 Purchase.QueryHandler uses Purchase.Repository✕
- Connections
- 1 pair of types, where a type in Purchase.QueryHandler uses a type in Purchase.Repository.
- The types involved
Purchase.QueryHandler.ProductPurchaseQueryHandler→Purchase.Repository.IPurchaseRepostiory
- Direction
- Purchase.QueryHandler uses Purchase.Repository, so a change to Purchase.Repository can break Purchase.QueryHandler, while a change to Purchase.QueryHandler can't break Purchase.Repository.
- Position
- Below the diagonal: Purchase.QueryHandler uses a module listed above it, which is the healthy direction.
39→1 Sales.CommandHandler uses Common.Core✕
- Connections
- 3 pairs of types, where a type in Sales.CommandHandler uses a type in Common.Core.
- The types involved
Sales.CommandHandler.SalesCommandHandler→Common.Core.CommandResultSales.CommandHandler.SalesCommandHandler→Common.Core.ICommandHandlerSales.CommandHandler.SalesCommandHandler→Common.Core.IEventBus
- Direction
- Sales.CommandHandler uses Common.Core, so a change to Common.Core can break Sales.CommandHandler, while a change to Sales.CommandHandler can't break Common.Core.
- Position
- Below the diagonal: Sales.CommandHandler uses a module listed above it, which is the healthy direction.
39→17 Sales.CommandHandler uses Common.Core.Events✕
- Connections
- 1 pair of types, where a type in Sales.CommandHandler uses a type in Common.Core.Events.
- The types involved
Sales.CommandHandler.SalesCommandHandler→Common.Core.Events.ProductSoldEvent
- Direction
- Sales.CommandHandler uses Common.Core.Events, so a change to Common.Core.Events can break Sales.CommandHandler, while a change to Sales.CommandHandler can't break Common.Core.Events.
- Position
- Below the diagonal: Sales.CommandHandler uses a module listed above it, which is the healthy direction.
39→28 Sales.CommandHandler uses Sales.Command✕
- Connections
- 1 pair of types, where a type in Sales.CommandHandler uses a type in Sales.Command.
- The types involved
Sales.CommandHandler.SalesCommandHandler→Sales.Command.SalesCommand
- Direction
- Sales.CommandHandler uses Sales.Command, so a change to Sales.Command can break Sales.CommandHandler, while a change to Sales.CommandHandler can't break Sales.Command.
- Position
- Below the diagonal: Sales.CommandHandler uses a module listed above it, which is the healthy direction.
39→29 Sales.CommandHandler uses Sales.Domain✕
- Connections
- 1 pair of types, where a type in Sales.CommandHandler uses a type in Sales.Domain.
- The types involved
Sales.CommandHandler.SalesCommandHandler→Sales.Domain.Sales
- Direction
- Sales.CommandHandler uses Sales.Domain, so a change to Sales.Domain can break Sales.CommandHandler, while a change to Sales.CommandHandler can't break Sales.Domain.
- Position
- Below the diagonal: Sales.CommandHandler uses a module listed above it, which is the healthy direction.
39→33 Sales.CommandHandler uses Sales.Repository✕
- Connections
- 1 pair of types, where a type in Sales.CommandHandler uses a type in Sales.Repository.
- The types involved
Sales.CommandHandler.SalesCommandHandler→Sales.Repository.ISalesRepository
- Direction
- Sales.CommandHandler uses Sales.Repository, so a change to Sales.Repository can break Sales.CommandHandler, while a change to Sales.CommandHandler can't break Sales.Repository.
- Position
- Below the diagonal: Sales.CommandHandler uses a module listed above it, which is the healthy direction.
40→1 Sales.QueryHandler uses Common.Core✕
- Connections
- 2 pairs of types, where a type in Sales.QueryHandler uses a type in Common.Core.
- The types involved
Sales.QueryHandler.SalesQueryHandler→Common.Core.IQueryHandlerSales.QueryHandler.SalesQueryHandler→Common.Core.QueryResult
- Direction
- Sales.QueryHandler uses Common.Core, so a change to Common.Core can break Sales.QueryHandler, while a change to Sales.QueryHandler can't break Common.Core.
- Position
- Below the diagonal: Sales.QueryHandler uses a module listed above it, which is the healthy direction.
40→30 Sales.QueryHandler uses Sales.Query✕
- Connections
- 1 pair of types, where a type in Sales.QueryHandler uses a type in Sales.Query.
- The types involved
Sales.QueryHandler.SalesQueryHandler→Sales.Query.SalesQuery
- Direction
- Sales.QueryHandler uses Sales.Query, so a change to Sales.Query can break Sales.QueryHandler, while a change to Sales.QueryHandler can't break Sales.Query.
- Position
- Below the diagonal: Sales.QueryHandler uses a module listed above it, which is the healthy direction.
40→33 Sales.QueryHandler uses Sales.Repository✕
- Connections
- 1 pair of types, where a type in Sales.QueryHandler uses a type in Sales.Repository.
- The types involved
Sales.QueryHandler.SalesQueryHandler→Sales.Repository.ISalesRepository
- Direction
- Sales.QueryHandler uses Sales.Repository, so a change to Sales.Repository can break Sales.QueryHandler, while a change to Sales.QueryHandler can't break Sales.Repository.
- Position
- Below the diagonal: Sales.QueryHandler uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Event-Driven
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 13 | High / Critical |
| A02:2025 — Security Misconfiguration | 12 | High / Critical |
Roadmap
Begin by fixing empty and non-asserting tests in RabbitMqServiceBusTest, InventoryServiceTest, and UnitTest1 to ensure the test suite actually validates behavior. Establish a CI workflow that automatically builds and runs these tests on every push or pull request to prevent regressions. Finally, secure the application by implementing default-deny access controls on all endpoints using authorization attributes or imperative guards.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 3 No assertions finding(s) in Test Quality — start with RabbitMqServiceBusTest.cs (2), InventoryServiceTest.cs. | +7.7 pts | Low | Test Quality |
| Resolve the 3 Test project verifies nothing finding(s) in Test Quality — start with UnitTest1.cs, RabbitMqServiceBusTest.cs, InventoryServiceTest.cs. | +7.7 pts | Low | Test Quality |
| Resolve the 1 No assertions (empty test) finding(s) in Test Quality — start with UnitTest1.cs. | +4.5 pts | Low | Test Quality |
| Add a CI workflow that builds and runs the test suite on every push/PR. | +5.9 pts | Medium | CI/CD gates |
| Resolve the 8 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3), REDACTED (2), REDACTED. | +2.5 pts | Low | Dependency Vulnerabilities |
| Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler. | +4.6 pts | Medium | Access Controls |
| Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Sales.Api.csproj. | +2.0 pts | Low | Platform End-of-Life |
| Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down. | +3.0 pts | Medium | Outbound HTTP resilience |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 1.3 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 1.3 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 3.7 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 5.1 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 5.8 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| Src/CommonAll/Common.Core.Tests/UnitTest1.cs | 6.5 | Mixed | Test Quality: No assertions (empty test): Test1 |
| REDACTED | 6.9 | Mixed | Dependency Vulnerabilities: Medium CVE: REDACTED |
| REDACTED | 7.2 | Mixed | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 7.2 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 7.2 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| Src/CommonAll/Common.Infrastructure.Tests/RabbitMqServiceBusTest.cs | 7.4 | Mixed | Test Quality: No assertions: ShouldPublishMessageWhenValidQueueProvided |
| Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs | 7.6 | Mixed | Explicit Debt: EmptyCatchBlock |
| Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/InventoryServiceTest.cs | 7.8 | Mixed | Test Quality: No assertions: ShouldReturnTotalItemsCountWhenValidStoreId |
| Src/SalesMicroservice/SalesWebApi/Sales.Api.csproj | 7.9 | Mixed | Platform End-of-Life: End-of-life runtime: .NET netcoreapp3.1 |
| Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (10 lines × 4) |
| Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (5 lines × 2) |
| Src/PurchaseMicroservice/PurchaseCore/Purchase.Core.csproj | 8.5 | Near-clean | Coupling: Off the main sequence: Purchase.Core |
| Src/PurchaseMicroservice/PurchaseDto/Purchase.DTO.csproj | 8.5 | Near-clean | Coupling: Off the main sequence: Purchase.DTO |
| Src/SalesMicroservice/SalesDto/Sales.DTO.csproj | 8.5 | Near-clean | Coupling: Off the main sequence: Sales.DTO |
| Src/InventoryMicroservice/InventoryDomain/Inventory.Domain.csproj | 8.5 | Near-clean | Coupling: Off the main sequence: Inventory.Domain |
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. 83 of 87 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 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 — 87 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, 152 of 172 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
- D8 Code Coverage — 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. Coverage NOT MEASURED: the analyzer environment could not build/run the test suite (a target framework / SDK band or targeting pack the analyzer image doesn't carry). This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. We track the analyzer-image gap so it can be closed; in the meantime, no coverage collector was found in your CI either, so there is no existing report to hand us — add a collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and real coverage will be read. You can widen what we reach: optional: add a coverage collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and the real number is read on the next scan.
- D11 Test Reliability — 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. Test reliability not scored — the test tier(s) ran but surfaced none of this repository's 8 test method(s) to the runner, so flakiness couldn't be exercised. This is an analysis-environment limitation, not a finding about the tests.
- D12 Dependency Hygiene — 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. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: `dotnet list package` exited 1 with no output.
- 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 (2 contributor(s) across 33 commit(s) sampled, automation and bot accounts excluded). One of them holds 97% of the history; the other 1 hold 3% 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.
- D17 Explicit Debt — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Msbuild failed when processing the file 'Src/PurchaseMicroservice/PurchaseDomain/Purchase.Domain.csproj' with message: The referenced project ../../CommonAll/Common.Core.csproj does not exist.
- 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.
- D24 Comment Value — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
- D34 Knowledge Freshness — 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. Too few commits to judge knowledge freshness (33 commit(s) sampled).
- D39 IL Efficiency — 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. IL NOT MEASURED: the analyzer's own build of this repository failed for an ENVIRONMENT reason (exit 1) — MSBuild's engine or the CLR gave up, or our image does not carry the SDK band/targeting pack this repository needs. This is OUR limitation, not a defect in the repo, and it is not a statement that this repository fails to build. D18 owns the question of whether this repository builds; it was not answered here.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via REDACTED (REDACTED). docker build failed (exit 1) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/bui…; runtime evidence skipped.
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.
- 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.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- 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.
- D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
- 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.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a 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.
- 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.
- 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 (10 lines × 4) finding(s) in Code Duplication — start with Program.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with Startup.cs. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Code Duplication in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
43 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Resolve the 5 Off the main sequence finding(s) in Coupling — start with Purchase.Core.csproj, Purchase.DTO.csproj, Sales.DTO.csproj. — One of this dimension's main actionable groups (5 warning-level).
- Stand up a CI pipeline, then gate Coupling in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 12 classes have LCOM4 above 3.
D9 · Test Distribution
8 test methods: 8 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 4 zero-assertion, 1 mock references across 8 tests.
What to do
- Resolve the 3 No assertions finding(s) in Test Quality — start with RabbitMqServiceBusTest.cs (2), InventoryServiceTest.cs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Test project verifies nothing finding(s) in Test Quality — start with UnitTest1.cs, RabbitMqServiceBusTest.cs, InventoryServiceTest.cs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 No assertions (empty test) finding(s) in Test Quality — start with UnitTest1.cs. — One of this dimension's main actionable groups (1 issue-level).
- Stand up a CI pipeline, then gate Test Quality in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 239 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 21 direct `PackageReference`(s), and 187 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 + unmeasured dead symbols across 2446 LoC in the .NET projects (0.2/KLoC) → score 9.6. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.
What to do
- Resolve the 1 EmptyCatchBlock finding(s) in Explicit Debt — start with PurchaseCommandHandler.cs. — One of this dimension's main actionable groups (1 issue-level).
- Stand up a CI pipeline, then gate Explicit Debt in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
36 projects, 95 source files, 2612 hand-written lines of code (2358 production / 254 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), 102 inter-project edges.
What to do
- Resolve the 1 Shell project finding(s) in Solution Shape — start with InventoryQueryHandler.csproj. — One of this dimension's main actionable groups (1 recommendation-level).
D19 · Documentation Quality
The repository's root README is a single descriptive document that states the project is an event-driven microservices architecture and lists three Boundned contexts (Purchase, Sales, Inventory) with brief purposes before diving into architecture. It describes the system as consisting of three microservices (Purchase, Sales, Inventory), explains each one's role, mentions CQRS inside them, and notes a Nothing-shared architecture model, then shows three communication methods: Event Driven, REST, GRPC, plus a high-level design image and Command/Query Segregation. It is clear but thin on the actual usage, installation, contribution, and licence guidance that would carry over to each subproject.
What to do
- Improve Documentation Quality — currently 6.0/10. — The repository's root README is a single descriptive document that states the project is an event-driven microservices architecture and lists three Boundned contexts (Purchase, Sales, Inventory) with brief purposes before diving into architecture. It describes the system as consisting of three microservices (Purchase, Sales, Inventory), explains each one's role, mentions CQRS inside them, and notes a Nothing-shared architecture model, then shows three communication methods: Event Driven, REST, GRPC, plus a high-level design image and Command/Query Segregation. It is clear but thin on the actual usage, installation, contribution, and licence guidance that would carry over to each subproject.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
4 naming inconsistencies across 200 sampled symbols.
What to do
- Resolve the 1 Inconsistent casing for the same field name in similar controller… finding(s) in Naming Consistency. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Typo in the interface and class name finding(s) in Naming Consistency. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Typo in the constant class/namespace name finding(s) in Naming Consistency. — One of this dimension's main actionable groups (1 recommendation-level).
D23 · Boundary Type-Coupling
No domain types leak across context boundaries (4 contexts).
D26 · Project Cohesion
0 of 43 projects flagged as possibly oversized/incoherent.
D27 · Navigability
88 % of calls cross a namespace and 14 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
13 finding(s): 2 critical, 8 high, 3 medium, 0 low.
What to do
- Resolve the 8 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (8 issue-level).
- Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 3 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 warning-level).
D31 · IaC & Container Security
12 finding(s): 0 critical, 6 high, 4 medium, 2 low.
What to do
- Resolve the 6 High IaC finding(s) in IaC & Container Security — start with REDACTED (6). — One of this dimension's main actionable groups (6 issue-level).
- Resolve the 4 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 2 Low IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D44 · Platform End-of-Life
1 end-of-life runtime(s) and 0 end-of-life framework(s), read from 43 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
What to do
- Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with Sales.Api.csproj. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AX1 · Captive dependencies
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
AX9 · CQS / query purity
C2 · Access Controls
- No [Authorize]/policies and no imperative guard methods (throw-on-violation) were found — endpoints may be unprotected.
- `StoreCommandController.CreateStore` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreCommandController.cs:23
- `StoreQueryController.GetAllStores` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs:24
- `StoreQueryController.IsServiceOn` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs:30
- `PurchaseCommandController.Purchase` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs:23
- `PurchaseCommandController.Ping` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs:49
- `PurchaseQueryController.GetPurchasedData` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseQueryController.cs:25
- `SalesCommandController.ProductSales` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/SalesMicroservice/SalesWebApi/Controllers/SalesCommandController.cs:25
- `SalesQueryController.GetProudctSalesInfo` serves requests and nothing authorizes it: no [Authorize] or RequireAuthorization on it or its controller/group, no fallback policy, no auth-gate middleware and no imperative guard in this codebase. — Src/SalesMicroservice/SalesWebApi/Controllers/SalesQueryController.cs:24
What to do
- Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler.
DM1 · Aggregate boundaries
- `Purchase` references the aggregate root `User` directly (via `User`) — hold its `UserId` instead. — Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:14
- `StoreItem` references the aggregate root `Store` directly (via `Store`) — hold its `StoreId` instead. — Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:10
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
DM11 · Constructible invalid state
DM12 · Ambient inputs in the domain
DM4 · Rich vs anemic model
- `Product` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/PurchaseMicroservice/PurchaseDomain/Models/Product.cs:9
- `ProductLineItem` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/PurchaseMicroservice/PurchaseDomain/Models/ProductLineItem.cs:11
- `Purchase` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:10
- `User` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/PurchaseMicroservice/PurchaseDomain/Models/User.cs:5
- `Store` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/InventoryMicroservice/InventoryDomain/Store.cs:8
- `StoreItem` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:6
- `Sales` 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/SalesMicroservice/SalesDomain/Sales.cs:8
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
- `Product` exposes publicly writable state (ProductName). — Src/PurchaseMicroservice/PurchaseDomain/Models/Product.cs:9
- `ProductLineItem` exposes publicly writable state (Product, PurchaseUnitPrice, PurchaseQuantity). — Src/PurchaseMicroservice/PurchaseDomain/Models/ProductLineItem.cs:11
- `Purchase` exposes publicly writable state (PurchaseDate, User, LineItems). — Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:10
- `User` exposes publicly writable state (Name). — Src/PurchaseMicroservice/PurchaseDomain/Models/User.cs:5
- `Store` exposes publicly writable state (Manager). — Src/InventoryMicroservice/InventoryDomain/Store.cs:8
- `StoreItem` exposes publicly writable state (ItemName, Store, BalanceQuantity). — Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:6
- `Sales` exposes publicly writable state (SalesDate, SalesLineItems). — Src/SalesMicroservice/SalesDomain/Sales.cs:8
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
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED4 · Outbox / dual-write
- `PurchaseCommandHandler.IsStoreServiceOn` writes to the database while `PurchaseCommandHandler.Handle` publishes to the message bus in the same command-handling flow, with no outbox referenced on either path. Splitting the persist and the publish across sibling methods (or two collaborating actors) doesn't make them atomic — a crash between the two either loses the message or emits a phantom event. Use the transactional outbox pattern so the message is committed in the same transaction as the state change and dispatched afterwards. — Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:161
What to do
- Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
ED5 · Idempotency
- `CommandHandler.PurchaseCommandHandler.Handle` mutates persistent state (an event publish) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:43
What to do
- Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `RegisterEventHanders` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs:77
- `RegisterEventHandlers` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Src/SalesMicroservice/SalesWebApi/Startup.cs:89
- A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×3) — Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:48, Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:52, Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:54
What to do
- Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
- Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add a README to the 43 of 43 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 your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure
- Tests aren't grouped in a dedicated test folder — the test surface isn't separable from production code at a glance.
- Only 13/43 projects share a common root namespace — the code's module identity is inconsistent.
What to do
- Group tests in the folder your build system expects (tests/, test/, spec/, or your module's test source set) so the test surface is discoverable and CI can scope it.
- 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
- No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
- Add a CI workflow that builds and runs the test suite on every push/PR.
P2 · Observability
- Only 2/12 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 12, 4 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
- No static application security testing detected. For this repository's stack, add CodeQL's csharp pack, or a .NET security analyzer package (or `semgrep --config=auto`, which runs on any language) — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Run what this repository's stack ships: CodeQL's csharp pack, or a .NET security analyzer package — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
- 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
- `services.AddHttpClient()` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs:30
What to do
- Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down.
PF3 · Async & latency hygiene
- 1 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
- `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — Src/InventoryMicroservice/InventoryWebApi/Startup.cs:57
What to do
- Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
S1 · Web-Security Posture
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
- This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves. (×4) — Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs:21, Src/InventoryMicroservice/InventoryWebApi/Program.cs:20, Src/PurchaseMicroservice/PurchaseWebApi/Program.cs:20, …
- No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)
- This web host's pipeline is composed here with no UseHttpsRedirection/UseHsts, and nothing says a reverse proxy terminates TLS in front of it. (×4) — Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs:21, Src/InventoryMicroservice/InventoryWebApi/Program.cs:20, Src/PurchaseMicroservice/PurchaseWebApi/Program.cs:20, …
What to do
- Add security response headers (Content-Security-Policy first, then Strict-Transport-Security, X-Content-Type-Options and a frame policy) — defense in depth, even when a reverse proxy could set them.
- Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
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/InventoryMicroservice/InventoryWebApi/Startup.cs:57
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 0/28 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. (×28) — Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs:22, Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs:31, Src/InventoryMicroservice/InventoryWebApi/Startup.cs:74, …
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
- An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. — Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:179
What to do
- Swallowed exception (empty catch)
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
- 0/37 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
What to do
- Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 50% | Weak — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 87% | Strong | Strongest area. |
| Maturity | 53% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 24% | Critical — gated by D10, P1, P3, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 37% | Weak — gated by D30, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 54% | Adequate — gated by DM4, DM5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Event-Driven | 84% | Strong | Solid. |
| Performance | 85% | Strong | Solid. |
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 — 2 control(s) we could not find positive evidence for
- 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 — 44 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- 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.
- AXR1 Runtime accessibility — docker build failed (exit 1) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/bui…; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
- D11 Test Reliability — Test runner surfaced no tests
- D12 Dependency Hygiene — Dependency hygiene not measured
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D24 Comment Value — LLM evaluation failed
- D25 ADR Conformance — no ADRs to check
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D34 Knowledge Freshness — too few commits to judge knowledge freshness
- D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — IL not measured — the analyzer's build of the target did not succeed
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — Coverage not measured — analyzer environment
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- ED3 Event naming — no domain or integration events detected — event-naming 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 — no CI workflow found
- P8 Schema migrations — no EF Core usage detected
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 21 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Aggregate holds a reference to another aggregate: Purchase.User Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:14
- Aggregate holds a reference to another aggregate: StoreItem.Store Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:10
- No assertions (empty test): Test1 Src/CommonAll/Common.Core.Tests/UnitTest1.cs:8
- EmptyCatchBlock Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:179
- Dual write (no outbox): PurchaseCommandHandler.IsStoreServiceOn persists, PurchaseCommandHandler.Handle publishes Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:161
Serious — 82 finding(s)
- Async method without CancellationToken: GetById Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs:22
- Async method without CancellationToken: Save Src/PurchaseMicroservice/PurchaseRepository/PurchaseRepository.cs:31
- Async method without CancellationToken: RegisterBuses Src/InventoryMicroservice/InventoryWebApi/Startup.cs:74
- Async method without CancellationToken: Handle Src/InventoryMicroservice/InventoryCommandHandler/CreateStoreCommandHandler.cs:19
- Async method without CancellationToken: GetById Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs:19
- Async method without CancellationToken: RemoveItem Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs:28
- Async method without CancellationToken: Save Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs:35
- Async method without CancellationToken: SaveItems Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs:44
- Async method without CancellationToken: UpdateItem Src/InventoryMicroservice/InventoryRepository/StoreItemRepository.cs:52
- Async method without CancellationToken: GetAll Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs:18
- Async method without CancellationToken: GetById Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs:27
- Async method without CancellationToken: Save Src/InventoryMicroservice/InventoryRepository/StoreRepository.cs:36
- Async method without CancellationToken: Handle Src/SalesMicroservice/SalesCommandHandler/SalesCommandHandler.cs:23
- Async method without CancellationToken: Handle Src/SalesMicroservice/SalesQueryHandler/SalesQueryHandler.cs:18
- Async method without CancellationToken: GetById Src/SalesMicroservice/SalesRepository/SalesRepository.cs:22
- Async method without CancellationToken: Save Src/SalesMicroservice/SalesRepository/SalesRepository.cs:31
- Async method without CancellationToken: Handle Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:43
- Async method without CancellationToken: IsStoreServiceOn Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:161
- Async method without CancellationToken: GetCurrentStoreItems Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:188
- Async method without CancellationToken: Send Src/CommonAll/Common.Infrastructure/CommandBus.cs:20
- Async method without CancellationToken: SendEmail Src/CommonAll/Common.Infrastructure/EmailService.cs:19
- Async method without CancellationToken: Publish Src/CommonAll/Common.Infrastructure/EventBus.cs:31
- Async method without CancellationToken: Subscribe Src/CommonAll/Common.Infrastructure/EventBus.cs:40
- Async method without CancellationToken: Send Src/CommonAll/Common.Infrastructure/QueryBus.cs:17
- Async method without CancellationToken: Handle Src/InventoryMicroservice/Inventory.EventHandler/Inventory.EventHandler/ProductPurchasedEventHandler.cs:20
- No authorization
- No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreCommandController.cs:23
- No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs:24
- No authorization Src/InventoryMicroservice/InventoryWebApi/Controllers/StoreQueryController.cs:30
- No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs:23
- No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseCommandController.cs:49
- No authorization Src/PurchaseMicroservice/PurchaseWebApi/Controllers/PurchaseQueryController.cs:25
- No authorization Src/SalesMicroservice/SalesWebApi/Controllers/SalesCommandController.cs:25
- No authorization Src/SalesMicroservice/SalesWebApi/Controllers/SalesQueryController.cs:24
- Anemic entity: Product Src/PurchaseMicroservice/PurchaseDomain/Models/Product.cs:9
- Anemic entity: ProductLineItem Src/PurchaseMicroservice/PurchaseDomain/Models/ProductLineItem.cs:11
- Anemic entity: Purchase Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:10
- Anemic entity: User Src/PurchaseMicroservice/PurchaseDomain/Models/User.cs:5
- Anemic entity: Store Src/InventoryMicroservice/InventoryDomain/Store.cs:8
- Anemic entity: StoreItem Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:6
- Anemic entity: Sales Src/SalesMicroservice/SalesDomain/Sales.cs:8
- Mutable entity: Product Src/PurchaseMicroservice/PurchaseDomain/Models/Product.cs:9
- Mutable entity: ProductLineItem Src/PurchaseMicroservice/PurchaseDomain/Models/ProductLineItem.cs:11
- Mutable entity: Purchase Src/PurchaseMicroservice/PurchaseDomain/Models/Purchase.cs:10
- Mutable entity: User Src/PurchaseMicroservice/PurchaseDomain/Models/User.cs:5
- Mutable entity: Store Src/InventoryMicroservice/InventoryDomain/Store.cs:8
- Mutable entity: StoreItem Src/InventoryMicroservice/InventoryDomain/StoreItem.cs:6
- Mutable entity: Sales Src/SalesMicroservice/SalesDomain/Sales.cs:8
- Off the main sequence: Purchase.Core Src/PurchaseMicroservice/PurchaseCore/Purchase.Core.csproj:1
- Off the main sequence: Purchase.DTO Src/PurchaseMicroservice/PurchaseDto/Purchase.DTO.csproj:1
- Off the main sequence: Sales.DTO Src/SalesMicroservice/SalesDto/Sales.DTO.csproj:1
- Off the main sequence: Inventory.Domain Src/InventoryMicroservice/InventoryDomain/Inventory.Domain.csproj:1
- Off the main sequence: Sales.Domain Src/SalesMicroservice/SalesDomain/Sales.Domain.csproj:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No assertions: ShouldPublishMessageWhenValidQueueProvided Src/CommonAll/Common.Infrastructure.Tests/RabbitMqServiceBusTest.cs:40
- No assertions: ShouldReceiveMessageWhenValidQueueProvided Src/CommonAll/Common.Infrastructure.Tests/RabbitMqServiceBusTest.cs:58
- No assertions: ShouldReturnTotalItemsCountWhenValidStoreId Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/InventoryServiceTest.cs:11
- Test project verifies nothing: Common.Core.Tests Src/CommonAll/Common.Core.Tests/UnitTest1.cs:8
- Test project verifies nothing: Common.Infrastructure.Tests Src/CommonAll/Common.Infrastructure.Tests/RabbitMqServiceBusTest.cs:40
- Test project verifies nothing: Inventory.Api.Grpc.Tests Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/InventoryServiceTest.cs:11
- REDACTED
- REDACTED
- REDACTED
- Empty method body — does nothing with its inputs Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs:77
- Empty method body — does nothing with its inputs Src/SalesMicroservice/SalesWebApi/Startup.cs:89
- Sync-over-async blocking
- Sync-over-async blocking Src/InventoryMicroservice/InventoryWebApi/Startup.cs:57
- Duplicated block (10 lines × 4) Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs:14
- Duplicated block (5 lines × 2) Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs:83
- End-of-life runtime: .NET netcoreapp3.1 Src/SalesMicroservice/SalesWebApi/Sales.Api.csproj:4
- Non-idempotent mutation: CommandHandler.PurchaseCommandHandler.Handle Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:43
- No CI pipeline
- Outbound HTTP without resilience Src/PurchaseMicroservice/PurchaseWebApi/Startup.cs:30
- NuGet dependencies are not locked
- Sync-over-async (deadlock risk) Src/InventoryMicroservice/InventoryWebApi/Startup.cs:57
- Swallowed exception (empty catch) Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:179
Minor — 29 finding(s)
- No security response headers detected
- No security response headers detected Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs:21
- No security response headers detected Src/InventoryMicroservice/InventoryWebApi/Program.cs:20
- No security response headers detected Src/PurchaseMicroservice/PurchaseWebApi/Program.cs:20
- No security response headers detected Src/SalesMicroservice/SalesWebApi/Program.cs:20
- No app-layer HTTPS enforcement detected
- No app-layer HTTPS enforcement detected Src/InventoryMicroservice/Inventory.Api.Grpc/Program.cs:21
- No app-layer HTTPS enforcement detected Src/InventoryMicroservice/InventoryWebApi/Program.cs:20
- No app-layer HTTPS enforcement detected Src/PurchaseMicroservice/PurchaseWebApi/Program.cs:20
- No app-layer HTTPS enforcement detected Src/SalesMicroservice/SalesWebApi/Program.cs:20
- Commented-out code Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:48
- Commented-out code Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:52
- Commented-out code Src/PurchaseMicroservice/PurchaseCommandHandler/PurchaseCommandHandler.cs:54
- REDACTED
- REDACTED
- Shell project: InventoryQueryHandler Src/InventoryMicroservice/InventoryQueryHandler/InventoryQueryHandler.csproj
- No ADRs found
- Inconsistent casing for the same field name in similar controller classes. One uses camelCase (`commandBus`) while the other likely follows the same pattern, but the inconsistency is subtle. However, a more glaring issue is the spelling of the interface/type name itself across the codebase.
- Typo in the interface and class name: `IPurchaseRepostiory` and `IPurchaseRepostiory` (missing 's' in Repository). While consistent with itself, it is a typo that should be corrected to `IPurchaseRepository`.
- Typo in the constant class/namespace name: `EmailAddressess` (double 's').
- Typo in method name: `Decerialize` should be `Deserialize`.
- No ADRs
- No tests/ separation
- Inconsistent root namespaces
- Logging is not universal
- No SAST
- No rollback/health safety
- Not all async methods take a CancellationToken
- Nullable reference types not enabled everywhere
Minor — 40 finding(s)
- XML-doc coverage: Purchase.Api Src/PurchaseMicroservice/PurchaseWebApi/Purchase.Api.csproj
- XML-doc coverage: Purchase.Command Src/PurchaseMicroservice/PurchaseCommand/Purchase.Command.csproj
- XML-doc coverage: Purchase.Query Src/PurchaseMicroservice/PurchaseQuery/Purchase.Query.csproj
- XML-doc coverage: Purchase.Core Src/PurchaseMicroservice/PurchaseCore/Purchase.Core.csproj
- XML-doc coverage: Purchase.Repository Src/PurchaseMicroservice/PurchaseRepository/Purchase.Repository.csproj
- XML-doc coverage: Purchase.Domain Src/PurchaseMicroservice/PurchaseDomain/Purchase.Domain.csproj
- XML-doc coverage: Purchase.DTO Src/PurchaseMicroservice/PurchaseDto/Purchase.DTO.csproj
- XML-doc coverage: Inventory.Api REDACTED
- XML-doc coverage: Inventory.Command Src/InventoryMicroservice/InventoryCommand/Inventory.Command.csproj
- XML-doc coverage: Inventory.CommandHandler Src/InventoryMicroservice/InventoryCommandHandler/Inventory.CommandHandler.csproj
- XML-doc coverage: Inventory.Query Src/InventoryMicroservice/InventoryQuery/Inventory.Query.csproj
- XML-doc coverage: InventoryQueryHandler Src/InventoryMicroservice/InventoryQueryHandler/InventoryQueryHandler.csproj
- XML-doc coverage: Inventory.Domain Src/InventoryMicroservice/InventoryDomain/Inventory.Domain.csproj
- XML-doc coverage: Inventory.Repository Src/InventoryMicroservice/InventoryRepository/Inventory.Repository.csproj
- XML-doc coverage: Inventory.DTO Src/InventoryMicroservice/InventoryDto/Inventory.DTO.csproj
- XML-doc coverage: Sales.Api Src/SalesMicroservice/SalesWebApi/Sales.Api.csproj
- XML-doc coverage: Sales.Core Src/SalesMicroservice/SalesCore/Sales.Core.csproj
- XML-doc coverage: Sales.Command Src/SalesMicroservice/SalesCommand/Sales.Command.csproj
- XML-doc coverage: Sales.CommandHandler Src/SalesMicroservice/SalesCommandHandler/Sales.CommandHandler.csproj
- XML-doc coverage: Sales.Query Src/SalesMicroservice/SalesQuery/Sales.Query.csproj
- XML-doc coverage: Sales.QueryHandler Src/SalesMicroservice/SalesQueryHandler/Sales.QueryHandler.csproj
- XML-doc coverage: Sales.Domain Src/SalesMicroservice/SalesDomain/Sales.Domain.csproj
- XML-doc coverage: Sales.Repository Src/SalesMicroservice/SalesRepository/Sales.Repository.csproj
- XML-doc coverage: Sales.DTO Src/SalesMicroservice/SalesDto/Sales.DTO.csproj
- XML-doc coverage: Purchase.CommandHandler REDACTED
- Mock framework: Moq
- Off the main sequence: Common.Infrastructure REDACTED:1
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-a19fed0f3204465a88fdb1b5f1c1df0b/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-a19fed0f3204465a88fdb1b5f1c1df0b/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 . | 0 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list Src/TheMicroservices.sln package --vulnerable --include-transitive --format json | 13 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 12 | 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. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (no readable dependency manifest) | — | none (no readable dependency manifest): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet). | 0 | — |