Executive summary
Tim-Maes/GraphR scores 60 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged. Watchdog judged it as a template, sample or demo, meant to be read or copied, so the dimensions about building, releasing and running a product don't apply, and its lenses are rated against a lower bar. The score itself is worked out as for any repository.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 47 and is rated Adequate. Its Test Distribution dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 1 No tests found finding(s) in Test Distribution and to resolve the 1 redundant comment finding(s) in Comment Value, and if Production Readiness rose to 70, the score would rise from 60 to about 69.
Nine findings are critical: six in Static Analysis (SAST) and three in Dependency Vulnerabilities.
Watchdog couldn't measure Naming Consistency and Runtime accessibility in this code, so those dimensions are left out of the score. The product code is 701 lines.
If Production Readiness rose from 47 to 70, the lowest score rated Strong, the score would rise from 60 to about 69.
New since the last survey: 11 findings
- Explicit Debt · Dead code: Author src/GraphR.Application/Authors/AuthorsQuery.cs
- Explicit Debt · Dead code: Authors src/GraphR.Application/Authors/AuthorsQuery.cs
- Explicit Debt · Dead code: CreateBook src/GraphR.Application/Books/BooksMutation.cs
- Explicit Debt · Dead code: Book src/GraphR.Application/Books/BooksQuery.cs
- Explicit Debt · Dead code: BooksForAuthor src/GraphR.Application/Books/BooksQuery.cs
- Cancellation propagation · Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Authors/Handlers/GetAuthorByIdHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle src/GraphR.Application/Authors/Handlers/GetAuthorsQueryHandler.cs
- Cancellation propagation · Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Mutation/CreateBookMutationHandler.cs
- Cancellation propagation · Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Query/GetBookByIdQueryHandler.cs
- Cancellation propagation · Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Query/GetBooksForAuthorQueryHandler.cs
- Cancellation propagation · Async method without CancellationToken: Handle src/GraphR.Core/Handlers/Handler.cs
Rebuild cost: about €620 · Estimate
| Cost to rebuild | €210 to €1,000, for 4 to 11 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | 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.8 at a score of 60. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Very small: 701 lines of product code, of which 59% is declarations and boilerplate, 33% straight logic and 8% logic with branches |
| Comment lines | The estimate prices 700 lines. Comment lines count towards the size of 701 lines but aren't priced as work. |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 (global) | 2 GrapR.Application | 3 GrapR.Core.Dapper | 4 GrapR.Core.Handlers | 5 GrapR.Domain.Exceptions | 6 GrapR.Infrastructure | 7 GrapR.WebAPI | 8 GraphR.Application.Authors.Types.Input | 9 GraphR.Application.Authors.Types.Output | 10 GraphR.Application.Books.Types.Input | 11 GraphR.Application.Books.Types.Output | 12 GraphR.Domain.Enums | 13 GraphR.Domain.Exceptions | 14 GraphR.Domain.Interfaces.Transaction | 15 GraphR.Infrastructure.Maps | 16 GrapR.Infrastructure.Database | 17 GrapR.Infrastructure.Database.Seed | 18 GraphR.Domain.Entities | 19 GraphR.Application.Authors.Types.Mappings | 20 GraphR.Application.Books.Types.Mappings | 21 GraphR.Domain.Interfaces.Repositories | 22 GraphR.Infrastructure.Database | 23 GrapR.Infrastructure.Repositories | 24 GraphR.Application.Authors.Handlers | 25 GraphR.Application.Books.Handlers.Mutation | 26 GraphR.Application.Books.Handlers.Query | 27 GraphR.Application.Authors | 28 GraphR.Application.Books | 29 GraphR.API.GraphApi |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 (global) | |||||||||||||||||||||||||||||
| 2 GrapR.Application | |||||||||||||||||||||||||||||
| 3 GrapR.Core.Dapper | |||||||||||||||||||||||||||||
| 4 GrapR.Core.Handlers | |||||||||||||||||||||||||||||
| 5 GrapR.Domain.Exceptions | |||||||||||||||||||||||||||||
| 6 GrapR.Infrastructure | |||||||||||||||||||||||||||||
| 7 GrapR.WebAPI | |||||||||||||||||||||||||||||
| 8 GraphR.Application.Authors.Types.Input | |||||||||||||||||||||||||||||
| 9 GraphR.Application.Authors.Types.Output | |||||||||||||||||||||||||||||
| 10 GraphR.Application.Books.Types.Input | |||||||||||||||||||||||||||||
| 11 GraphR.Application.Books.Types.Output | |||||||||||||||||||||||||||||
| 12 GraphR.Domain.Enums | |||||||||||||||||||||||||||||
| 13 GraphR.Domain.Exceptions | |||||||||||||||||||||||||||||
| 14 GraphR.Domain.Interfaces.Transaction | |||||||||||||||||||||||||||||
| 15 GraphR.Infrastructure.Maps | |||||||||||||||||||||||||||||
| 16 GrapR.Infrastructure.Database | 1 | ||||||||||||||||||||||||||||
| 17 GrapR.Infrastructure.Database.Seed | 1 | ||||||||||||||||||||||||||||
| 18 GraphR.Domain.Entities | 1 | ||||||||||||||||||||||||||||
| 19 GraphR.Application.Authors.Types.Mappings | 1 | 1 | |||||||||||||||||||||||||||
| 20 GraphR.Application.Books.Types.Mappings | 1 | 1 | |||||||||||||||||||||||||||
| 21 GraphR.Domain.Interfaces.Repositories | 1 | 2 | |||||||||||||||||||||||||||
| 22 GraphR.Infrastructure.Database | 1 | 1 | |||||||||||||||||||||||||||
| 23 GrapR.Infrastructure.Repositories | 1 | 2 | 2 | 2 | |||||||||||||||||||||||||
| 24 GraphR.Application.Authors.Handlers | 4 | 1 | 2 | 2 | |||||||||||||||||||||||||
| 25 GraphR.Application.Books.Handlers.Mutation | 2 | 1 | 1 | ||||||||||||||||||||||||||
| 26 GraphR.Application.Books.Handlers.Query | 4 | 2 | 2 | 2 | |||||||||||||||||||||||||
| 27 GraphR.Application.Authors | 1 | 1 | 2 | ||||||||||||||||||||||||||
| 28 GraphR.Application.Books | 3 | 1 | 1 | 2 | |||||||||||||||||||||||||
| 29 GraphR.API.GraphApi | 1 | 2 |
16→6 GrapR.Infrastructure.Database uses GrapR.Infrastructure✕
- Connections
- 1 pair of types, where a type in GrapR.Infrastructure.Database uses a type in GrapR.Infrastructure.
- The types involved
GrapR.Infrastructure.Database.DbConnectionProvider→GrapR.Infrastructure.InfrastructureOptions
- Direction
- GrapR.Infrastructure.Database uses GrapR.Infrastructure, so a change to GrapR.Infrastructure can break GrapR.Infrastructure.Database, while a change to GrapR.Infrastructure.Database can't break GrapR.Infrastructure.
- Position
- Below the diagonal: GrapR.Infrastructure.Database uses a module listed above it, which is the healthy direction.
17→6 GrapR.Infrastructure.Database.Seed uses GrapR.Infrastructure✕
- Connections
- 1 pair of types, where a type in GrapR.Infrastructure.Database.Seed uses a type in GrapR.Infrastructure.
- The types involved
GrapR.Infrastructure.Database.Seed.DbUpgraderBackgroundService→GrapR.Infrastructure.InfrastructureOptions
- Direction
- GrapR.Infrastructure.Database.Seed uses GrapR.Infrastructure, so a change to GrapR.Infrastructure can break GrapR.Infrastructure.Database.Seed, while a change to GrapR.Infrastructure.Database.Seed can't break GrapR.Infrastructure.
- Position
- Below the diagonal: GrapR.Infrastructure.Database.Seed uses a module listed above it, which is the healthy direction.
18→12 GraphR.Domain.Entities uses GraphR.Domain.Enums✕
- Connections
- 1 pair of types, where a type in GraphR.Domain.Entities uses a type in GraphR.Domain.Enums.
- The types involved
GraphR.Domain.Entities.Book→GraphR.Domain.Enums.Category
- Direction
- GraphR.Domain.Entities uses GraphR.Domain.Enums, so a change to GraphR.Domain.Enums can break GraphR.Domain.Entities, while a change to GraphR.Domain.Entities can't break GraphR.Domain.Enums.
- Position
- Below the diagonal: GraphR.Domain.Entities uses a module listed above it, which is the healthy direction.
19→9 GraphR.Application.Authors.Types.Mappings uses GraphR.Application.Authors.Types.Output✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Authors.Types.Mappings uses a type in GraphR.Application.Authors.Types.Output.
- The types involved
GraphR.Application.Authors.Types.Mappings.AuthorMapping→GraphR.Application.Authors.Types.Output.AuthorDto
- Direction
- GraphR.Application.Authors.Types.Mappings uses GraphR.Application.Authors.Types.Output, so a change to GraphR.Application.Authors.Types.Output can break GraphR.Application.Authors.Types.Mappings, while a change to GraphR.Application.Authors.Types.Mappings can't break GraphR.Application.Authors.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Authors.Types.Mappings uses a module listed above it, which is the healthy direction.
19→18 GraphR.Application.Authors.Types.Mappings uses GraphR.Domain.Entities✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Authors.Types.Mappings uses a type in GraphR.Domain.Entities.
- The types involved
GraphR.Application.Authors.Types.Mappings.AuthorMapping→GraphR.Domain.Entities.Author
- Direction
- GraphR.Application.Authors.Types.Mappings uses GraphR.Domain.Entities, so a change to GraphR.Domain.Entities can break GraphR.Application.Authors.Types.Mappings, while a change to GraphR.Application.Authors.Types.Mappings can't break GraphR.Domain.Entities.
- Position
- Below the diagonal: GraphR.Application.Authors.Types.Mappings uses a module listed above it, which is the healthy direction.
20→11 GraphR.Application.Books.Types.Mappings uses GraphR.Application.Books.Types.Output✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books.Types.Mappings uses a type in GraphR.Application.Books.Types.Output.
- The types involved
GraphR.Application.Books.Types.Mappings.BookMapping→GraphR.Application.Books.Types.Output.BookDto
- Direction
- GraphR.Application.Books.Types.Mappings uses GraphR.Application.Books.Types.Output, so a change to GraphR.Application.Books.Types.Output can break GraphR.Application.Books.Types.Mappings, while a change to GraphR.Application.Books.Types.Mappings can't break GraphR.Application.Books.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Books.Types.Mappings uses a module listed above it, which is the healthy direction.
20→18 GraphR.Application.Books.Types.Mappings uses GraphR.Domain.Entities✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books.Types.Mappings uses a type in GraphR.Domain.Entities.
- The types involved
GraphR.Application.Books.Types.Mappings.BookMapping→GraphR.Domain.Entities.Book
- Direction
- GraphR.Application.Books.Types.Mappings uses GraphR.Domain.Entities, so a change to GraphR.Domain.Entities can break GraphR.Application.Books.Types.Mappings, while a change to GraphR.Application.Books.Types.Mappings can't break GraphR.Domain.Entities.
- Position
- Below the diagonal: GraphR.Application.Books.Types.Mappings uses a module listed above it, which is the healthy direction.
21→12 GraphR.Domain.Interfaces.Repositories uses GraphR.Domain.Enums✕
- Connections
- 1 pair of types, where a type in GraphR.Domain.Interfaces.Repositories uses a type in GraphR.Domain.Enums.
- The types involved
GraphR.Domain.Interfaces.Repositories.IBookRepository→GraphR.Domain.Enums.Category
- Direction
- GraphR.Domain.Interfaces.Repositories uses GraphR.Domain.Enums, so a change to GraphR.Domain.Enums can break GraphR.Domain.Interfaces.Repositories, while a change to GraphR.Domain.Interfaces.Repositories can't break GraphR.Domain.Enums.
- Position
- Below the diagonal: GraphR.Domain.Interfaces.Repositories uses a module listed above it, which is the healthy direction.
21→18 GraphR.Domain.Interfaces.Repositories uses GraphR.Domain.Entities✕
- Connections
- 2 pairs of types, where a type in GraphR.Domain.Interfaces.Repositories uses a type in GraphR.Domain.Entities.
- The types involved
GraphR.Domain.Interfaces.Repositories.IAuthorRepository→GraphR.Domain.Entities.AuthorGraphR.Domain.Interfaces.Repositories.IBookRepository→GraphR.Domain.Entities.Book
- Direction
- GraphR.Domain.Interfaces.Repositories uses GraphR.Domain.Entities, so a change to GraphR.Domain.Entities can break GraphR.Domain.Interfaces.Repositories, while a change to GraphR.Domain.Interfaces.Repositories can't break GraphR.Domain.Entities.
- Position
- Below the diagonal: GraphR.Domain.Interfaces.Repositories uses a module listed above it, which is the healthy direction.
22→14 GraphR.Infrastructure.Database uses GraphR.Domain.Interfaces.Transaction✕
- Connections
- 1 pair of types, where a type in GraphR.Infrastructure.Database uses a type in GraphR.Domain.Interfaces.Transaction.
- The types involved
GraphR.Infrastructure.Database.DbTransaction→GraphR.Domain.Interfaces.Transaction.ITransaction
- Direction
- GraphR.Infrastructure.Database uses GraphR.Domain.Interfaces.Transaction, so a change to GraphR.Domain.Interfaces.Transaction can break GraphR.Infrastructure.Database, while a change to GraphR.Infrastructure.Database can't break GraphR.Domain.Interfaces.Transaction.
- Position
- Below the diagonal: GraphR.Infrastructure.Database uses a module listed above it, which is the healthy direction.
22→16 GraphR.Infrastructure.Database uses GrapR.Infrastructure.Database✕
- Connections
- 1 pair of types, where a type in GraphR.Infrastructure.Database uses a type in GrapR.Infrastructure.Database.
- The types involved
GraphR.Infrastructure.Database.DbTransaction→GrapR.Infrastructure.Database.IDbConnectionProvider
- Direction
- GraphR.Infrastructure.Database uses GrapR.Infrastructure.Database, so a change to GrapR.Infrastructure.Database can break GraphR.Infrastructure.Database, while a change to GraphR.Infrastructure.Database can't break GrapR.Infrastructure.Database.
- Position
- Below the diagonal: GraphR.Infrastructure.Database uses a module listed above it, which is the healthy direction.
23→12 GrapR.Infrastructure.Repositories uses GraphR.Domain.Enums✕
- Connections
- 1 pair of types, where a type in GrapR.Infrastructure.Repositories uses a type in GraphR.Domain.Enums.
- The types involved
GrapR.Infrastructure.Repositories.BookRepository→GraphR.Domain.Enums.Category
- Direction
- GrapR.Infrastructure.Repositories uses GraphR.Domain.Enums, so a change to GraphR.Domain.Enums can break GrapR.Infrastructure.Repositories, while a change to GrapR.Infrastructure.Repositories can't break GraphR.Domain.Enums.
- Position
- Below the diagonal: GrapR.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
23→16 GrapR.Infrastructure.Repositories uses GrapR.Infrastructure.Database✕
- Connections
- 2 pairs of types, where a type in GrapR.Infrastructure.Repositories uses a type in GrapR.Infrastructure.Database.
- The types involved
GrapR.Infrastructure.Repositories.AuthorRepository→GrapR.Infrastructure.Database.IDbConnectionProviderGrapR.Infrastructure.Repositories.BookRepository→GrapR.Infrastructure.Database.IDbConnectionProvider
- Direction
- GrapR.Infrastructure.Repositories uses GrapR.Infrastructure.Database, so a change to GrapR.Infrastructure.Database can break GrapR.Infrastructure.Repositories, while a change to GrapR.Infrastructure.Repositories can't break GrapR.Infrastructure.Database.
- Position
- Below the diagonal: GrapR.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
23→18 GrapR.Infrastructure.Repositories uses GraphR.Domain.Entities✕
- Connections
- 2 pairs of types, where a type in GrapR.Infrastructure.Repositories uses a type in GraphR.Domain.Entities.
- The types involved
GrapR.Infrastructure.Repositories.AuthorRepository→GraphR.Domain.Entities.AuthorGrapR.Infrastructure.Repositories.BookRepository→GraphR.Domain.Entities.Book
- Direction
- GrapR.Infrastructure.Repositories uses GraphR.Domain.Entities, so a change to GraphR.Domain.Entities can break GrapR.Infrastructure.Repositories, while a change to GrapR.Infrastructure.Repositories can't break GraphR.Domain.Entities.
- Position
- Below the diagonal: GrapR.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
23→21 GrapR.Infrastructure.Repositories uses GraphR.Domain.Interfaces.Repositories✕
- Connections
- 2 pairs of types, where a type in GrapR.Infrastructure.Repositories uses a type in GraphR.Domain.Interfaces.Repositories.
- The types involved
GrapR.Infrastructure.Repositories.AuthorRepository→GraphR.Domain.Interfaces.Repositories.IAuthorRepositoryGrapR.Infrastructure.Repositories.BookRepository→GraphR.Domain.Interfaces.Repositories.IBookRepository
- Direction
- GrapR.Infrastructure.Repositories uses GraphR.Domain.Interfaces.Repositories, so a change to GraphR.Domain.Interfaces.Repositories can break GrapR.Infrastructure.Repositories, while a change to GrapR.Infrastructure.Repositories can't break GraphR.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: GrapR.Infrastructure.Repositories uses a module listed above it, which is the healthy direction.
24→4 GraphR.Application.Authors.Handlers uses GrapR.Core.Handlers✕
- Connections
- 4 pairs of types, where a type in GraphR.Application.Authors.Handlers uses a type in GrapR.Core.Handlers.
- The types involved
GraphR.Application.Authors.Handlers.GetAuthorByIdHandler→GrapR.Core.Handlers.HandlerGraphR.Application.Authors.Handlers.GetAuthorsQueryHandler→GrapR.Core.Handlers.HandlerGraphR.Application.Authors.Handlers.IGetAuthorByIdHandler→GrapR.Core.Handlers.IHandlerGraphR.Application.Authors.Handlers.IGetAuthorsQueryHandler→GrapR.Core.Handlers.IHandler
- Direction
- GraphR.Application.Authors.Handlers uses GrapR.Core.Handlers, so a change to GrapR.Core.Handlers can break GraphR.Application.Authors.Handlers, while a change to GraphR.Application.Authors.Handlers can't break GrapR.Core.Handlers.
- Position
- Below the diagonal: GraphR.Application.Authors.Handlers uses a module listed above it, which is the healthy direction.
24→8 GraphR.Application.Authors.Handlers uses GraphR.Application.Authors.Types.Input✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Authors.Handlers uses a type in GraphR.Application.Authors.Types.Input.
- The types involved
GraphR.Application.Authors.Handlers.GetAuthorByIdHandler→GraphR.Application.Authors.Types.Input.AuthorParameters
- Direction
- GraphR.Application.Authors.Handlers uses GraphR.Application.Authors.Types.Input, so a change to GraphR.Application.Authors.Types.Input can break GraphR.Application.Authors.Handlers, while a change to GraphR.Application.Authors.Handlers can't break GraphR.Application.Authors.Types.Input.
- Position
- Below the diagonal: GraphR.Application.Authors.Handlers uses a module listed above it, which is the healthy direction.
24→9 GraphR.Application.Authors.Handlers uses GraphR.Application.Authors.Types.Output✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Authors.Handlers uses a type in GraphR.Application.Authors.Types.Output.
- The types involved
GraphR.Application.Authors.Handlers.GetAuthorByIdHandler→GraphR.Application.Authors.Types.Output.AuthorDtoGraphR.Application.Authors.Handlers.GetAuthorsQueryHandler→GraphR.Application.Authors.Types.Output.AuthorDto
- Direction
- GraphR.Application.Authors.Handlers uses GraphR.Application.Authors.Types.Output, so a change to GraphR.Application.Authors.Types.Output can break GraphR.Application.Authors.Handlers, while a change to GraphR.Application.Authors.Handlers can't break GraphR.Application.Authors.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Authors.Handlers uses a module listed above it, which is the healthy direction.
24→21 GraphR.Application.Authors.Handlers uses GraphR.Domain.Interfaces.Repositories✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Authors.Handlers uses a type in GraphR.Domain.Interfaces.Repositories.
- The types involved
GraphR.Application.Authors.Handlers.GetAuthorByIdHandler→GraphR.Domain.Interfaces.Repositories.IAuthorRepositoryGraphR.Application.Authors.Handlers.GetAuthorsQueryHandler→GraphR.Domain.Interfaces.Repositories.IAuthorRepository
- Direction
- GraphR.Application.Authors.Handlers uses GraphR.Domain.Interfaces.Repositories, so a change to GraphR.Domain.Interfaces.Repositories can break GraphR.Application.Authors.Handlers, while a change to GraphR.Application.Authors.Handlers can't break GraphR.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: GraphR.Application.Authors.Handlers uses a module listed above it, which is the healthy direction.
25→4 GraphR.Application.Books.Handlers.Mutation uses GrapR.Core.Handlers✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Books.Handlers.Mutation uses a type in GrapR.Core.Handlers.
- The types involved
GraphR.Application.Books.Handlers.Mutation.CreateBookMutationHandler→GrapR.Core.Handlers.HandlerGraphR.Application.Books.Handlers.Mutation.ICreateBookMutationHandler→GrapR.Core.Handlers.IHandler
- Direction
- GraphR.Application.Books.Handlers.Mutation uses GrapR.Core.Handlers, so a change to GrapR.Core.Handlers can break GraphR.Application.Books.Handlers.Mutation, while a change to GraphR.Application.Books.Handlers.Mutation can't break GrapR.Core.Handlers.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Mutation uses a module listed above it, which is the healthy direction.
25→10 GraphR.Application.Books.Handlers.Mutation uses GraphR.Application.Books.Types.Input✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books.Handlers.Mutation uses a type in GraphR.Application.Books.Types.Input.
- The types involved
GraphR.Application.Books.Handlers.Mutation.CreateBookMutationHandler→GraphR.Application.Books.Types.Input.CreateBookParameters
- Direction
- GraphR.Application.Books.Handlers.Mutation uses GraphR.Application.Books.Types.Input, so a change to GraphR.Application.Books.Types.Input can break GraphR.Application.Books.Handlers.Mutation, while a change to GraphR.Application.Books.Handlers.Mutation can't break GraphR.Application.Books.Types.Input.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Mutation uses a module listed above it, which is the healthy direction.
25→21 GraphR.Application.Books.Handlers.Mutation uses GraphR.Domain.Interfaces.Repositories✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books.Handlers.Mutation uses a type in GraphR.Domain.Interfaces.Repositories.
- The types involved
GraphR.Application.Books.Handlers.Mutation.CreateBookMutationHandler→GraphR.Domain.Interfaces.Repositories.IBookRepository
- Direction
- GraphR.Application.Books.Handlers.Mutation uses GraphR.Domain.Interfaces.Repositories, so a change to GraphR.Domain.Interfaces.Repositories can break GraphR.Application.Books.Handlers.Mutation, while a change to GraphR.Application.Books.Handlers.Mutation can't break GraphR.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Mutation uses a module listed above it, which is the healthy direction.
26→4 GraphR.Application.Books.Handlers.Query uses GrapR.Core.Handlers✕
- Connections
- 4 pairs of types, where a type in GraphR.Application.Books.Handlers.Query uses a type in GrapR.Core.Handlers.
- The types involved
GraphR.Application.Books.Handlers.Query.GetBookByIdQueryHandler→GrapR.Core.Handlers.HandlerGraphR.Application.Books.Handlers.Query.GetBooksForAuthorQueryHandler→GrapR.Core.Handlers.HandlerGraphR.Application.Books.Handlers.Query.IGetBookByIdHandler→GrapR.Core.Handlers.IHandlerGraphR.Application.Books.Handlers.Query.IGetBooksForAuthorQueryHandler→GrapR.Core.Handlers.IHandler
- Direction
- GraphR.Application.Books.Handlers.Query uses GrapR.Core.Handlers, so a change to GrapR.Core.Handlers can break GraphR.Application.Books.Handlers.Query, while a change to GraphR.Application.Books.Handlers.Query can't break GrapR.Core.Handlers.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Query uses a module listed above it, which is the healthy direction.
26→10 GraphR.Application.Books.Handlers.Query uses GraphR.Application.Books.Types.Input✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Books.Handlers.Query uses a type in GraphR.Application.Books.Types.Input.
- The types involved
GraphR.Application.Books.Handlers.Query.GetBookByIdQueryHandler→GraphR.Application.Books.Types.Input.GetBookByIdParametersGraphR.Application.Books.Handlers.Query.GetBooksForAuthorQueryHandler→GraphR.Application.Books.Types.Input.GetBooksForAuthorParameters
- Direction
- GraphR.Application.Books.Handlers.Query uses GraphR.Application.Books.Types.Input, so a change to GraphR.Application.Books.Types.Input can break GraphR.Application.Books.Handlers.Query, while a change to GraphR.Application.Books.Handlers.Query can't break GraphR.Application.Books.Types.Input.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Query uses a module listed above it, which is the healthy direction.
26→11 GraphR.Application.Books.Handlers.Query uses GraphR.Application.Books.Types.Output✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Books.Handlers.Query uses a type in GraphR.Application.Books.Types.Output.
- The types involved
GraphR.Application.Books.Handlers.Query.GetBookByIdQueryHandler→GraphR.Application.Books.Types.Output.BookDtoGraphR.Application.Books.Handlers.Query.GetBooksForAuthorQueryHandler→GraphR.Application.Books.Types.Output.BookDto
- Direction
- GraphR.Application.Books.Handlers.Query uses GraphR.Application.Books.Types.Output, so a change to GraphR.Application.Books.Types.Output can break GraphR.Application.Books.Handlers.Query, while a change to GraphR.Application.Books.Handlers.Query can't break GraphR.Application.Books.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Query uses a module listed above it, which is the healthy direction.
26→21 GraphR.Application.Books.Handlers.Query uses GraphR.Domain.Interfaces.Repositories✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Books.Handlers.Query uses a type in GraphR.Domain.Interfaces.Repositories.
- The types involved
GraphR.Application.Books.Handlers.Query.GetBookByIdQueryHandler→GraphR.Domain.Interfaces.Repositories.IBookRepositoryGraphR.Application.Books.Handlers.Query.GetBooksForAuthorQueryHandler→GraphR.Domain.Interfaces.Repositories.IBookRepository
- Direction
- GraphR.Application.Books.Handlers.Query uses GraphR.Domain.Interfaces.Repositories, so a change to GraphR.Domain.Interfaces.Repositories can break GraphR.Application.Books.Handlers.Query, while a change to GraphR.Application.Books.Handlers.Query can't break GraphR.Domain.Interfaces.Repositories.
- Position
- Below the diagonal: GraphR.Application.Books.Handlers.Query uses a module listed above it, which is the healthy direction.
27→8 GraphR.Application.Authors uses GraphR.Application.Authors.Types.Input✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Authors uses a type in GraphR.Application.Authors.Types.Input.
- The types involved
GraphR.Application.Authors.AuthorsQuery→GraphR.Application.Authors.Types.Input.AuthorParameters
- Direction
- GraphR.Application.Authors uses GraphR.Application.Authors.Types.Input, so a change to GraphR.Application.Authors.Types.Input can break GraphR.Application.Authors, while a change to GraphR.Application.Authors can't break GraphR.Application.Authors.Types.Input.
- Position
- Below the diagonal: GraphR.Application.Authors uses a module listed above it, which is the healthy direction.
27→9 GraphR.Application.Authors uses GraphR.Application.Authors.Types.Output✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Authors uses a type in GraphR.Application.Authors.Types.Output.
- The types involved
GraphR.Application.Authors.AuthorsQuery→GraphR.Application.Authors.Types.Output.AuthorDto
- Direction
- GraphR.Application.Authors uses GraphR.Application.Authors.Types.Output, so a change to GraphR.Application.Authors.Types.Output can break GraphR.Application.Authors, while a change to GraphR.Application.Authors can't break GraphR.Application.Authors.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Authors uses a module listed above it, which is the healthy direction.
27→24 GraphR.Application.Authors uses GraphR.Application.Authors.Handlers✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Authors uses a type in GraphR.Application.Authors.Handlers.
- The types involved
GraphR.Application.Authors.AuthorsQuery→GraphR.Application.Authors.Handlers.IGetAuthorByIdHandlerGraphR.Application.Authors.AuthorsQuery→GraphR.Application.Authors.Handlers.IGetAuthorsQueryHandler
- Direction
- GraphR.Application.Authors uses GraphR.Application.Authors.Handlers, so a change to GraphR.Application.Authors.Handlers can break GraphR.Application.Authors, while a change to GraphR.Application.Authors can't break GraphR.Application.Authors.Handlers.
- Position
- Below the diagonal: GraphR.Application.Authors uses a module listed above it, which is the healthy direction.
28→10 GraphR.Application.Books uses GraphR.Application.Books.Types.Input✕
- Connections
- 3 pairs of types, where a type in GraphR.Application.Books uses a type in GraphR.Application.Books.Types.Input.
- The types involved
GraphR.Application.Books.BooksMutation→GraphR.Application.Books.Types.Input.CreateBookParametersGraphR.Application.Books.BooksQuery→GraphR.Application.Books.Types.Input.GetBookByIdParametersGraphR.Application.Books.BooksQuery→GraphR.Application.Books.Types.Input.GetBooksForAuthorParameters
- Direction
- GraphR.Application.Books uses GraphR.Application.Books.Types.Input, so a change to GraphR.Application.Books.Types.Input can break GraphR.Application.Books, while a change to GraphR.Application.Books can't break GraphR.Application.Books.Types.Input.
- Position
- Below the diagonal: GraphR.Application.Books uses a module listed above it, which is the healthy direction.
28→11 GraphR.Application.Books uses GraphR.Application.Books.Types.Output✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books uses a type in GraphR.Application.Books.Types.Output.
- The types involved
GraphR.Application.Books.BooksQuery→GraphR.Application.Books.Types.Output.BookDto
- Direction
- GraphR.Application.Books uses GraphR.Application.Books.Types.Output, so a change to GraphR.Application.Books.Types.Output can break GraphR.Application.Books, while a change to GraphR.Application.Books can't break GraphR.Application.Books.Types.Output.
- Position
- Below the diagonal: GraphR.Application.Books uses a module listed above it, which is the healthy direction.
28→25 GraphR.Application.Books uses GraphR.Application.Books.Handlers.Mutation✕
- Connections
- 1 pair of types, where a type in GraphR.Application.Books uses a type in GraphR.Application.Books.Handlers.Mutation.
- The types involved
GraphR.Application.Books.BooksMutation→GraphR.Application.Books.Handlers.Mutation.ICreateBookMutationHandler
- Direction
- GraphR.Application.Books uses GraphR.Application.Books.Handlers.Mutation, so a change to GraphR.Application.Books.Handlers.Mutation can break GraphR.Application.Books, while a change to GraphR.Application.Books can't break GraphR.Application.Books.Handlers.Mutation.
- Position
- Below the diagonal: GraphR.Application.Books uses a module listed above it, which is the healthy direction.
28→26 GraphR.Application.Books uses GraphR.Application.Books.Handlers.Query✕
- Connections
- 2 pairs of types, where a type in GraphR.Application.Books uses a type in GraphR.Application.Books.Handlers.Query.
- The types involved
GraphR.Application.Books.BooksQuery→GraphR.Application.Books.Handlers.Query.IGetBookByIdHandlerGraphR.Application.Books.BooksQuery→GraphR.Application.Books.Handlers.Query.IGetBooksForAuthorQueryHandler
- Direction
- GraphR.Application.Books uses GraphR.Application.Books.Handlers.Query, so a change to GraphR.Application.Books.Handlers.Query can break GraphR.Application.Books, while a change to GraphR.Application.Books can't break GraphR.Application.Books.Handlers.Query.
- Position
- Below the diagonal: GraphR.Application.Books uses a module listed above it, which is the healthy direction.
29→27 GraphR.API.GraphApi uses GraphR.Application.Authors✕
- Connections
- 1 pair of types, where a type in GraphR.API.GraphApi uses a type in GraphR.Application.Authors.
- The types involved
GraphR.API.GraphApi.Query→GraphR.Application.Authors.AuthorsQuery
- Direction
- GraphR.API.GraphApi uses GraphR.Application.Authors, so a change to GraphR.Application.Authors can break GraphR.API.GraphApi, while a change to GraphR.API.GraphApi can't break GraphR.Application.Authors.
- Position
- Below the diagonal: GraphR.API.GraphApi uses a module listed above it, which is the healthy direction.
29→28 GraphR.API.GraphApi uses GraphR.Application.Books✕
- Connections
- 2 pairs of types, where a type in GraphR.API.GraphApi uses a type in GraphR.Application.Books.
- The types involved
GraphR.API.GraphApi.Mutation→GraphR.Application.Books.BooksMutationGraphR.API.GraphApi.Query→GraphR.Application.Books.BooksQuery
- Direction
- GraphR.API.GraphApi uses GraphR.Application.Books, so a change to GraphR.Application.Books can break GraphR.API.GraphApi, while a change to GraphR.API.GraphApi can't break GraphR.Application.Books.
- Position
- Below the diagonal: GraphR.API.GraphApi uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 10 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 7 | High / Critical |
Roadmap
Begin by resolving the missing tests in Test Distribution and removing the redundant comment in Program.cs to immediately improve code quality. Next, document significant design decisions in the docs/adr folder to establish clear architectural context. Finally, enhance release safety by gating deployments to prevent bad builds from reaching users and maintaining a changelog to track what ships in each release.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No tests found finding(s) in Test Distribution. | +12.2 pts | Low | Test Distribution |
| Resolve the 1 redundant comment finding(s) in Comment Value — start with Program.cs. | +5.5 pts | Low | Comment Value |
| Resolve the 3 Outdated finding(s) in Dependency Hygiene — start with GraphR.Application.csproj (2), REDACTED. | +3.1 pts | Low | Dependency Hygiene |
| Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. | +2.5 pts | Low | Documentation Quality |
| 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. | +5.0 pts | Medium | Architecture documentation |
| Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it. | +3.5 pts | Medium | Deployment & Rollback |
| Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. | +3.5 pts | Medium | Release Hygiene |
| Resolve the 1 Deprecated finding(s) in Dependency Hygiene — start with REDACTED. | +1.0 pts | Low | Dependency Hygiene |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.6 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 1.8 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 5.3 | Mixed | Dependency Vulnerabilities: Critical CVE: REDACTED |
| src/GraphR.Application/Authors/AuthorsQuery.cs | 7.3 | Near-clean | Explicit Debt: Dead code: Author |
| src/GraphR.Application/Books/BooksQuery.cs | 7.3 | Near-clean | Explicit Debt: Dead code: Book |
| src/GraphR.Application/Books/BooksMutation.cs | 8.2 | Near-clean | Explicit Debt: Dead code: CreateBook |
| src/GraphR.Infrastructure/Maps/AuthorMap.cs | 8.2 | Near-clean | Explicit Debt: Dead code: AuthorMap |
| src/GraphR.Infrastructure/Maps/BookMap.cs | 8.2 | Near-clean | Explicit Debt: Dead code: BookMap |
| src/GraphR.Application/GraphR.Application.csproj | 9.3 | Near-clean | Dependency Hygiene: Outdated: HotChocolate.Abstractions |
| README.md | 9.5 | Near-clean | Documentation Quality: Documentation: no architecture or design documentation |
| src/GraphR.API/Program.cs | 9.5 | Near-clean | Comment Value: redundant comment |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 64 of 67 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 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 — 67 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, 47 of 66 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 69 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D21 Naming Consistency — 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.
- 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.
- 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. All 36 production source file(s) in this repository were read, and every one is under the ~2,400-byte (~100-line) size floor this dimension measures over (or declares itself generated), so there is no significant file to judge and knowledge freshness is not applicable. This is the size of the repository's files, not a file the engine failed to read.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via ToolchainServer (src/GraphR.API). the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'REDACTED'`: n abortOnFirstException, List`1 exceptions, Func`3 operation) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Hostin…; runtime evidence skipped (launch chosen because REDACTED is a Microsoft.NET.Sdk.Web project).
- P1 CI/CD gates — 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. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- 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".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
0 duplicated block group(s) detected.
D5 · Coupling
5 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
D6 · Cohesion (LCOM4)
0 of 3 classes have LCOM4 above 3.
D9 · Test Distribution
No test suite found.
What to do
- Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).
D12 · Dependency Hygiene
13 outdated, 0 vulnerable, 1 deprecated, 1 prerelease packages.
What to do
- Resolve the 3 Outdated finding(s) in Dependency Hygiene — start with GraphR.Application.csproj (2), REDACTED. — One of this dimension's main actionable groups (3 recommendation-level).
- Resolve the 1 Deprecated finding(s) in Dependency Hygiene — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Prerelease dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 252 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 13 direct `PackageReference`(s), and 237 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
0 deducted debt markers + 7 dead symbols across 701 LoC in the .NET projects (0.6/KLoC) → score 8.7.
What to do
- Resolve the 7 Dead code finding(s) in Explicit Debt — start with AuthorsQuery.cs (2), BooksQuery.cs (2), BooksMutation.cs. — One of this dimension's main actionable groups (7 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
5 projects, 42 source files, 701 hand-written lines of code (701 production / 0 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), 6 inter-project edges.
D19 · Documentation Quality
The repository's root README is a single cohesive document covering what it does (a clean .NET 8 GraphR template with Dapper ORM, HotChocolate GraphQL, FluentValidation, and Bindicate), its technologies, installation/usage steps, setup guidance, the core handler pattern for mutation/query, and an example. It also gives a brief star-giving endorsement and references architecture projects (Application, Domain, Infrastructure, Core) in the outline. The document is well written with clear headings and examples but ends in clip marker '…(clipped here by the scanner for evaluation; clipping is not a defect of the document — never report an unshown section as missing' before covering Architecture overview/WebApi/Application/Domain/Infrastructure/Core/Autowiring/Test the API, so those sections are present in the outline and must not be flagged as missing.
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
D24 · Comment Value
0 valuable / 1 redundant across 1 sampled comments; 1 shown with locations.
What to do
- Resolve the 1 redundant comment finding(s) in Comment Value — start with Program.cs. — One of this dimension's main actionable groups (1 recommendation-level).
D26 · Project Cohesion
0 of 5 projects flagged as possibly oversized/incoherent.
D27 · Navigability
93 % of calls cross a namespace and 21 % go through an interface, but 93 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What to do
- Improve Navigability — currently 8.6/10. — 93 % of calls cross a namespace and 21 % go through an interface, but 93 % of collaborators are co-located — so following a call takes several hops. 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)
10 finding(s): 0 critical, 6 high, 4 medium, 0 low. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 5 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D30 · Dependency Vulnerabilities
7 finding(s): 1 critical, 2 high, 4 medium, 0 low.
What to do
- Resolve the 2 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 4 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D39 · IL Efficiency
0 of 72 first-party methods have an oversized IL body.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 5 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.
Frontend & cross-cutting dimensions
AX1 · Captive dependencies
AX10 · Code composition
What to do
- The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX9 · CQS / query purity
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
What to do
- Add a README to the 5 of 5 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
What to do
- Start a test surface where your build system looks for one (tests/, test/, spec/, or your ecosystem's test source set) — the separation follows from putting the first tests in the right place.
M4 · Documentation accuracy
P1 · CI/CD gates
What to do
- Run the test suite in CI via an explicit runner step (`dotnet test` for the toolchain this pipeline already uses) and gate merges on it.
P4 · Deployment & Rollback
- The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
- Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF3 · Async & latency hygiene
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. — src/GraphR.API/Program.cs:4
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.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X2 · Cancellation propagation
- Only 0/11 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. (×11) — src/GraphR.Application/Authors/AuthorsQuery.cs:10, src/GraphR.Application/Authors/AuthorsQuery.cs:13, src/GraphR.Application/Authors/Handlers/GetAuthorByIdHandler.cs:24, …
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X32 · Type resolved by simple name across every loaded assembly
X4 · Structured logging
X5 · Nullable reference types
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 81% | Strong | Solid. |
| Architecture | 87% | Exemplary | Solid. |
| Maturity | 61% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 47% | Adequate — gated by D9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 77% | Adequate — gated by D29 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Not evidenced — 1 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
Not included — 51 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
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — the service exited before it opened a port — `ASPNETCORE_URLS=http://127.0.0.1:0 ASPNETCORE_ENVIRONMENT=Development dotnet run --no-build --no-launch-profile --project 'REDACTED'`: n abortOnFirstException, List`1 exceptions, Func`3 operation) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Hostin…; runtime evidence skipped (launch chosen because REDACTED is a Microsoft.NET.Sdk.Web project) This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — 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.
- C2 Access Controls — This is a dotnet-new template — authorization is deferred to the application you build from it. Add [Authorize]/policies (or imperative guards) when you wire up real users; until then there are no real endpoints to protect.
- 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.
- D10 Test Quality — No tests were found in the analyzed repository to assess for quality.
- D11 Test Reliability — No test suite was found to re-run, so reliability couldn't be assessed. Two searches produced that zero and both came back empty: the classifier that reads the loaded workspace recognised no suite it could run, and a walk of the source on disk — which covers the JS/TS `*.test.*` and `*.spec.*` conventions and probes for a Pester suite — found no test source in any other ecosystem either. Neither search reaches a suite that is missing from the loaded workspace and carries no name either walk recognises, so this is 'no suite found by those two searches', not a verdict that the repository has none.
- D16 Bus Factor — single-contributor repository — bus factor is not applicable
- D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
- D21 Naming Consistency — LLM evaluation failed
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D23 Boundary Type-Coupling — small single-context codebase (701 production LoC in the .NET projects) — bounded contexts are not needed at this size No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D25 ADR Conformance — no ADRs to check
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D34 Knowledge Freshness — every production source file is under the ~100-line size floor — too little code for knowledge freshness to be judged
- D36 Supply-chain Provenance & Signing — This is a dotnet-new template — it produces no released artifact to attest. Supply-chain provenance, signing and SBOM are deferred to the application you build from it (add SLSA provenance / cosign signing / an SBOM in your app's release pipeline).
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here.
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (a Domain/Aggregates/ValueObjects layer)
- ED1 Event-Driven — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 1 event handler(s); 12 CQRS handler(s)
- ED5 Idempotency — 7 mutating command handler(s)/consumer(s) detected and 4 handler method(s) walked, but no persistent write was recognised in any of them — idempotency not assessed
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P2 Observability — This repo declares itself a template / kata / sample / demo — code meant to be read or copied, not operated. Structured logging, tracing/metrics and health checks are deferred to the application you build from it, so their absence is not a defect here. The dimension reactivates once the repo becomes a real app.
- P3 Security & performance tooling — This repo declares itself a template / kata / sample / demo — code meant to be read or copied, not operated. SAST, secret/dependency scanning and performance benchmarks are deferred to the application you build from it, so their absence is not a defect here. The dimension reactivates once the repo becomes a real app.
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HttpClient/IHttpClientFactory/AddHttpClient in source, and no Refit/RestSharp/Flurl.Http namespace or package reference
- 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 — 9 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 29 finding(s)
- Async method without CancellationToken: Author src/GraphR.Application/Authors/AuthorsQuery.cs:10
- Async method without CancellationToken: Authors src/GraphR.Application/Authors/AuthorsQuery.cs:13
- Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Authors/Handlers/GetAuthorByIdHandler.cs:24
- Async method without CancellationToken: Handle src/GraphR.Application/Authors/Handlers/GetAuthorsQueryHandler.cs:17
- Async method without CancellationToken: CreateBook src/GraphR.Application/Books/BooksMutation.cs:9
- Async method without CancellationToken: Book src/GraphR.Application/Books/BooksQuery.cs:10
- Async method without CancellationToken: BooksForAuthor src/GraphR.Application/Books/BooksQuery.cs:13
- Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Mutation/CreateBookMutationHandler.cs:26
- Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Query/GetBookByIdQueryHandler.cs:24
- Async method without CancellationToken: HandleValidatedRequest src/GraphR.Application/Books/Handlers/Query/GetBooksForAuthorQueryHandler.cs:24
- Async method without CancellationToken: Handle src/GraphR.Core/Handlers/Handler.cs:14
- Dead code: Author src/GraphR.Application/Authors/AuthorsQuery.cs:10
- Dead code: Authors src/GraphR.Application/Authors/AuthorsQuery.cs:13
- Dead code: CreateBook src/GraphR.Application/Books/BooksMutation.cs:9
- Dead code: Book src/GraphR.Application/Books/BooksQuery.cs:10
- Dead code: BooksForAuthor src/GraphR.Application/Books/BooksQuery.cs:13
- Dead code: AuthorMap src/GraphR.Infrastructure/Maps/AuthorMap.cs:6
- Dead code: BookMap src/GraphR.Infrastructure/Maps/BookMap.cs:6
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Deprecated: Microsoft.Data.SqlClient REDACTED:23
- Prerelease dependency: Microsoft.Data.SqlClient
- NuGet dependencies are not locked
Minor — 13 finding(s)
- Outdated: HotChocolate.AspNetCore REDACTED:11
- Outdated: HotChocolate.Abstractions src/GraphR.Application/GraphR.Application.csproj:15
- Outdated: HotChocolate.Types src/GraphR.Application/GraphR.Application.csproj:16
- No security response headers detected
- No security response headers detected src/GraphR.API/Program.cs:4
- Documentation: no architecture or design documentation README.md
- redundant comment src/GraphR.API/Program.cs:7
- No tests — template/sample
- No tests found
- No ADRs
- No release approval gate
- No changelog
- Not all async methods take a CancellationToken
Minor — 15 finding(s)
- Outdated: Bindicate
- Outdated: Dapper
- Outdated: Dapper.FluentMap
- Outdated: dbup
- Outdated: Microsoft.Data.SqlClient
- Outdated: Microsoft.Extensions.DependencyInjection.Abstractions
- Outdated: Microsoft.Extensions.Hosting.Abstractions
- Outdated: Microsoft.Extensions.Options
- Outdated: System.Linq.Async
- Outdated: FluentValidation
- XML-doc coverage: GraphR.API REDACTED
- XML-doc coverage: GraphR.Application src/GraphR.Application/GraphR.Application.csproj
- XML-doc coverage: GraphR.Domain src/GraphR.Domain/GraphR.Domain.csproj
- XML-doc coverage: GraphR.Infrastructure REDACTED
- XML-doc coverage: GraphR.Core src/GraphR.Core/GraphR.Core.csproj
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-a0a8a8008cbe4c438a99b381a26e4870/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-a0a8a8008cbe4c438a99b381a26e4870/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 10 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list GraphR.sln package --vulnerable --include-transitive --format json | 7 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — This is a dotnet-new template — it produces no released artifact to attest. Supply-chain provenance, signing and SBOM are deferred to the application you build from it (add SLSA provenance / cosign signing / an SBOM in your app's release pipeline). | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (no readable dependency manifest) | — | none (no readable dependency manifest): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet). | 0 | — |