Executive summary
thaitype/thaitype-stack-mongodb-template scores 42 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 20 and is rated Weak. 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 name the access rules — roles/permissions declared once (a @Roles/@Permissions decorator with its guard, a CASL ability, a casbin model, or Supabase CREATE POLICY) and consulted where access is checked, so the rule set is reviewable and testable on its own, and if Production Readiness rose to 70, the score would rise from 42 to about 60.
23 findings are critical: 22 in Dependency Vulnerabilities and one in Static Analysis (SAST).
Watchdog couldn't measure 8 dimensions in this code, among them Navigability, Data Protection and Audit Trail, so they are left out of the score. The product code is 7,295 lines, which would take an estimated 0.1 person-years, around €5,600, to rebuild.
If Production Readiness rose from 20 to 70, the lowest score rated Strong, the score would rise from 42 to about 60.
New since the last survey: 12 findings
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Large Files · src/server/infrastructure/repositories/mongo-todo-repository.ts: 508 lines of code src/server/infrastructure/repositories/mongo-todo-repository.ts
- Large Files · REDACTED: 490 lines of code REDACTED
Fixed since the last survey: 4 findings
- Dependency Vulnerabilities · Critical CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Critical vulnerability: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
Rebuild cost: about €5,600 · Estimate
| Cost to rebuild | €1,900 to €9,400, for 31 to 99 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Low, 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 42. 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: 7,295 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 src | 2 src.app.ClientProviders | 3 src.app._components.AddTodoForm | 4 src.app._components.TodoItem | 5 src.app._components.TodoList | 6 src.app.api.auth.[___all] | 7 src.app.api.trpc.[trpc] | 8 src.app.login | 9 src.app.profile | 10 src.components.auth.AuthModal | 11 src.components.auth.LoginForm | 12 src.components.auth.ProtectedRoute | 13 src.components.auth.RegisterForm | 14 src.server.config.types | 15 src.server.domain.models.user | 16 src.server.domain.repositories.types.todo-repository-types | 17 src.server.domain.repositories.types.user-repository-types | 18 src.server.infrastructure.entities | 19 src.server.lib.auth-hooks | 20 src.server.lib.constants | 21 src.server.utils.retry | 22 src.app | 23 src.app._components | 24 src.components.auth | 25 src.server.config | 26 src.server.domain.repositories.todo-repository | 27 src.server.domain.repositories.user-repository | 28 src.server.infrastructure.repositories.base-mongo-repository | 29 src.server.lib.auth-api | 30 src.server.types.auth-types | 31 src.server.utils | 32 src.server.lib | 33 src.server.services.todo-service | 34 src.server.services.user-service | 35 src.server.context.app-context | 36 src.server.context | 37 src.server.infrastructure.logging | 38 src.server.infrastructure.repositories.mongo-todo-repository | 39 src.server.infrastructure.repositories.mongo-user-repository | 40 src.server.lib.error-handlers |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 src | ||||||||||||||||||||||||||||||||||||||||
| 2 src.app.ClientProviders | ||||||||||||||||||||||||||||||||||||||||
| 3 src.app._components.AddTodoForm | ||||||||||||||||||||||||||||||||||||||||
| 4 src.app._components.TodoItem | ||||||||||||||||||||||||||||||||||||||||
| 5 src.app._components.TodoList | ||||||||||||||||||||||||||||||||||||||||
| 6 src.app.api.auth.[___all] | ||||||||||||||||||||||||||||||||||||||||
| 7 src.app.api.trpc.[trpc] | ||||||||||||||||||||||||||||||||||||||||
| 8 src.app.login | ||||||||||||||||||||||||||||||||||||||||
| 9 src.app.profile | ||||||||||||||||||||||||||||||||||||||||
| 10 src.components.auth.AuthModal | ||||||||||||||||||||||||||||||||||||||||
| 11 src.components.auth.LoginForm | ||||||||||||||||||||||||||||||||||||||||
| 12 src.components.auth.ProtectedRoute | ||||||||||||||||||||||||||||||||||||||||
| 13 src.components.auth.RegisterForm | ||||||||||||||||||||||||||||||||||||||||
| 14 src.server.config.types | ||||||||||||||||||||||||||||||||||||||||
| 15 src.server.domain.models.user | ||||||||||||||||||||||||||||||||||||||||
| 16 src.server.domain.repositories.types.todo-repository-types | ||||||||||||||||||||||||||||||||||||||||
| 17 src.server.domain.repositories.types.user-repository-types | ||||||||||||||||||||||||||||||||||||||||
| 18 src.server.infrastructure.entities | ||||||||||||||||||||||||||||||||||||||||
| 19 src.server.lib.auth-hooks | ||||||||||||||||||||||||||||||||||||||||
| 20 src.server.lib.constants | ||||||||||||||||||||||||||||||||||||||||
| 21 src.server.utils.retry | ||||||||||||||||||||||||||||||||||||||||
| 22 src.app | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 src.app._components | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 24 src.components.auth | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 25 src.server.config | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 src.server.domain.repositories.todo-repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 27 src.server.domain.repositories.user-repository | 1 | 2 | 1 | |||||||||||||||||||||||||||||||||||||
| 28 src.server.infrastructure.repositories.base-mongo-repository | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 src.server.lib.auth-api | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 src.server.types.auth-types | 3 | |||||||||||||||||||||||||||||||||||||||
| 31 src.server.utils | 2 | |||||||||||||||||||||||||||||||||||||||
| 32 src.server.lib | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 33 src.server.services.todo-service | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 34 src.server.services.user-service | 8 | 2 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 35 src.server.context.app-context | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 36 src.server.context | 2 | |||||||||||||||||||||||||||||||||||||||
| 37 src.server.infrastructure.logging | 1 | |||||||||||||||||||||||||||||||||||||||
| 38 src.server.infrastructure.repositories.mongo-todo-repository | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||
| 39 src.server.infrastructure.repositories.mongo-user-repository | 2 | 2 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||
| 40 src.server.lib.error-handlers | 1 |
22→2 src.app uses src.app.ClientProviders✕
- Connections
- 1 pair of types, where a type in src.app uses a type in src.app.ClientProviders.
- The types involved
src.app.ClientProviders→src.app.ClientProviders.ClientProvidersProps
- Direction
- src.app uses src.app.ClientProviders, so a change to src.app.ClientProviders can break src.app, while a change to src.app can't break src.app.ClientProviders.
- Position
- Below the diagonal: src.app uses a module listed above it, which is the healthy direction.
23→3 src.app._components uses src.app._components.AddTodoForm✕
- Connections
- 1 pair of types, where a type in src.app._components uses a type in src.app._components.AddTodoForm.
- The types involved
src.app._components.AddTodoForm→src.app._components.AddTodoForm.AddTodoFormProps
- Direction
- src.app._components uses src.app._components.AddTodoForm, so a change to src.app._components.AddTodoForm can break src.app._components, while a change to src.app._components can't break src.app._components.AddTodoForm.
- Position
- Below the diagonal: src.app._components uses a module listed above it, which is the healthy direction.
23→4 src.app._components uses src.app._components.TodoItem✕
- Connections
- 1 pair of types, where a type in src.app._components uses a type in src.app._components.TodoItem.
- The types involved
src.app._components.TodoItem→src.app._components.TodoItem.TodoItemProps
- Direction
- src.app._components uses src.app._components.TodoItem, so a change to src.app._components.TodoItem can break src.app._components, while a change to src.app._components can't break src.app._components.TodoItem.
- Position
- Below the diagonal: src.app._components uses a module listed above it, which is the healthy direction.
24→10 src.components.auth uses src.components.auth.AuthModal✕
- Connections
- 1 pair of types, where a type in src.components.auth uses a type in src.components.auth.AuthModal.
- The types involved
src.components.auth.AuthModal→src.components.auth.AuthModal.AuthModalProps
- Direction
- src.components.auth uses src.components.auth.AuthModal, so a change to src.components.auth.AuthModal can break src.components.auth, while a change to src.components.auth can't break src.components.auth.AuthModal.
- Position
- Below the diagonal: src.components.auth uses a module listed above it, which is the healthy direction.
24→11 src.components.auth uses src.components.auth.LoginForm✕
- Connections
- 1 pair of types, where a type in src.components.auth uses a type in src.components.auth.LoginForm.
- The types involved
src.components.auth.LoginForm→src.components.auth.LoginForm.LoginFormProps
- Direction
- src.components.auth uses src.components.auth.LoginForm, so a change to src.components.auth.LoginForm can break src.components.auth, while a change to src.components.auth can't break src.components.auth.LoginForm.
- Position
- Below the diagonal: src.components.auth uses a module listed above it, which is the healthy direction.
24→12 src.components.auth uses src.components.auth.ProtectedRoute✕
- Connections
- 1 pair of types, where a type in src.components.auth uses a type in src.components.auth.ProtectedRoute.
- The types involved
src.components.auth.ProtectedRoute→src.components.auth.ProtectedRoute.ProtectedRouteProps
- Direction
- src.components.auth uses src.components.auth.ProtectedRoute, so a change to src.components.auth.ProtectedRoute can break src.components.auth, while a change to src.components.auth can't break src.components.auth.ProtectedRoute.
- Position
- Below the diagonal: src.components.auth uses a module listed above it, which is the healthy direction.
24→13 src.components.auth uses src.components.auth.RegisterForm✕
- Connections
- 1 pair of types, where a type in src.components.auth uses a type in src.components.auth.RegisterForm.
- The types involved
src.components.auth.RegisterForm→src.components.auth.RegisterForm.RegisterFormProps
- Direction
- src.components.auth uses src.components.auth.RegisterForm, so a change to src.components.auth.RegisterForm can break src.components.auth, while a change to src.components.auth can't break src.components.auth.RegisterForm.
- Position
- Below the diagonal: src.components.auth uses a module listed above it, which is the healthy direction.
25→14 src.server.config uses src.server.config.types✕
- Connections
- 1 pair of types, where a type in src.server.config uses a type in src.server.config.types.
- The types involved
src.server.config.types→src.server.config.types.AppConfig
- Direction
- src.server.config uses src.server.config.types, so a change to src.server.config.types can break src.server.config, while a change to src.server.config can't break src.server.config.types.
- Position
- Below the diagonal: src.server.config uses a module listed above it, which is the healthy direction.
26→4 src.server.domain.repositories.todo-repository uses src.app._components.TodoItem✕
- Connections
- 1 pair of types, where a type in src.server.domain.repositories.todo-repository uses a type in src.app._components.TodoItem.
- The types involved
src.server.domain.repositories.todo-repository.ITodoRepository→src.app._components.TodoItem.Todo
- Direction
- src.server.domain.repositories.todo-repository uses src.app._components.TodoItem, so a change to src.app._components.TodoItem can break src.server.domain.repositories.todo-repository, while a change to src.server.domain.repositories.todo-repository can't break src.app._components.TodoItem.
- Position
- Below the diagonal: src.server.domain.repositories.todo-repository uses a module listed above it, which is the healthy direction.
26→16 src.server.domain.repositories.todo-repository uses src.server.domain.repositories.types.todo-repository-types✕
- Connections
- 1 pair of types, where a type in src.server.domain.repositories.todo-repository uses a type in src.server.domain.repositories.types.todo-repository-types.
- The types involved
src.server.domain.repositories.todo-repository.ITodoRepository→src.server.domain.repositories.types.todo-repository-types.TodoContentPartialUpdate
- Direction
- src.server.domain.repositories.todo-repository uses src.server.domain.repositories.types.todo-repository-types, so a change to src.server.domain.repositories.types.todo-repository-types can break src.server.domain.repositories.todo-repository, while a change to src.server.domain.repositories.todo-repository can't break src.server.domain.repositories.types.todo-repository-types.
- Position
- Below the diagonal: src.server.domain.repositories.todo-repository uses a module listed above it, which is the healthy direction.
26→20 src.server.domain.repositories.todo-repository uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.domain.repositories.todo-repository uses a type in src.server.lib.constants.
- The types involved
src.server.domain.repositories.todo-repository.ITodoRepository→src.server.lib.constants.RepositoryContext
- Direction
- src.server.domain.repositories.todo-repository uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.domain.repositories.todo-repository, while a change to src.server.domain.repositories.todo-repository can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.domain.repositories.todo-repository uses a module listed above it, which is the healthy direction.
27→15 src.server.domain.repositories.user-repository uses src.server.domain.models.user✕
- Connections
- 1 pair of types, where a type in src.server.domain.repositories.user-repository uses a type in src.server.domain.models.user.
- The types involved
src.server.domain.repositories.user-repository.IUserRepository→src.server.domain.models.user.User
- Direction
- src.server.domain.repositories.user-repository uses src.server.domain.models.user, so a change to src.server.domain.models.user can break src.server.domain.repositories.user-repository, while a change to src.server.domain.repositories.user-repository can't break src.server.domain.models.user.
- Position
- Below the diagonal: src.server.domain.repositories.user-repository uses a module listed above it, which is the healthy direction.
27→17 src.server.domain.repositories.user-repository uses src.server.domain.repositories.types.user-repository-types✕
- Connections
- 2 pairs of types, where a type in src.server.domain.repositories.user-repository uses a type in src.server.domain.repositories.types.user-repository-types.
- The types involved
src.server.domain.repositories.user-repository.IUserRepository→src.server.domain.repositories.types.user-repository-types.UserBasicInfoPartialUpdatesrc.server.domain.repositories.user-repository.IUserRepository→src.server.domain.repositories.types.user-repository-types.UserProfilePartialUpdate
- Direction
- src.server.domain.repositories.user-repository uses src.server.domain.repositories.types.user-repository-types, so a change to src.server.domain.repositories.types.user-repository-types can break src.server.domain.repositories.user-repository, while a change to src.server.domain.repositories.user-repository can't break src.server.domain.repositories.types.user-repository-types.
- Position
- Below the diagonal: src.server.domain.repositories.user-repository uses a module listed above it, which is the healthy direction.
27→20 src.server.domain.repositories.user-repository uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.domain.repositories.user-repository uses a type in src.server.lib.constants.
- The types involved
src.server.domain.repositories.user-repository.IUserRepository→src.server.lib.constants.RepositoryContext
- Direction
- src.server.domain.repositories.user-repository uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.domain.repositories.user-repository, while a change to src.server.domain.repositories.user-repository can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.domain.repositories.user-repository uses a module listed above it, which is the healthy direction.
28→20 src.server.infrastructure.repositories.base-mongo-repository uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.base-mongo-repository uses a type in src.server.lib.constants.
- The types involved
src.server.infrastructure.repositories.base-mongo-repository.BaseMongoRepository→src.server.lib.constants.RepositoryContext
- Direction
- src.server.infrastructure.repositories.base-mongo-repository uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.infrastructure.repositories.base-mongo-repository, while a change to src.server.infrastructure.repositories.base-mongo-repository can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.infrastructure.repositories.base-mongo-repository uses a module listed above it, which is the healthy direction.
29→18 src.server.lib.auth-api uses src.server.infrastructure.entities✕
- Connections
- 1 pair of types, where a type in src.server.lib.auth-api uses a type in src.server.infrastructure.entities.
- The types involved
src.server.lib.auth-api.AuthUserAPI→src.server.infrastructure.entities.DbUserEntity
- Direction
- src.server.lib.auth-api uses src.server.infrastructure.entities, so a change to src.server.infrastructure.entities can break src.server.lib.auth-api, while a change to src.server.lib.auth-api can't break src.server.infrastructure.entities.
- Position
- Below the diagonal: src.server.lib.auth-api uses a module listed above it, which is the healthy direction.
30→15 src.server.types.auth-types uses src.server.domain.models.user✕
- Connections
- 3 pairs of types, where a type in src.server.types.auth-types uses a type in src.server.domain.models.user.
- The types involved
src.server.types.auth-types.AuthResult→src.server.domain.models.user.Usersrc.server.types.auth-types.BaseAuthContext→src.server.domain.models.user.Usersrc.server.types.auth-types.SessionAuthDetailedResult→src.server.domain.models.user.User
- Direction
- src.server.types.auth-types uses src.server.domain.models.user, so a change to src.server.domain.models.user can break src.server.types.auth-types, while a change to src.server.types.auth-types can't break src.server.domain.models.user.
- Position
- Below the diagonal: src.server.types.auth-types uses a module listed above it, which is the healthy direction.
31→21 src.server.utils uses src.server.utils.retry✕
- Connections
- 2 pairs of types, where a type in src.server.utils uses a type in src.server.utils.retry.
- The types involved
src.server.utils.retry→src.server.utils.retry.RetryOptionssrc.server.utils.retry→src.server.utils.retry.RetryResult
- Direction
- src.server.utils uses src.server.utils.retry, so a change to src.server.utils.retry can break src.server.utils, while a change to src.server.utils can't break src.server.utils.retry.
- Position
- Below the diagonal: src.server.utils uses a module listed above it, which is the healthy direction.
32→14 src.server.lib uses src.server.config.types✕
- Connections
- 1 pair of types, where a type in src.server.lib uses a type in src.server.config.types.
- The types involved
src.server.lib.db→src.server.config.types.DatabaseConfig
- Direction
- src.server.lib uses src.server.config.types, so a change to src.server.config.types can break src.server.lib, while a change to src.server.lib can't break src.server.config.types.
- Position
- Below the diagonal: src.server.lib uses a module listed above it, which is the healthy direction.
32→18 src.server.lib uses src.server.infrastructure.entities✕
- Connections
- 1 pair of types, where a type in src.server.lib uses a type in src.server.infrastructure.entities.
- The types involved
src.server.lib.auth-hooks→src.server.infrastructure.entities.DbUserEntity
- Direction
- src.server.lib uses src.server.infrastructure.entities, so a change to src.server.infrastructure.entities can break src.server.lib, while a change to src.server.lib can't break src.server.infrastructure.entities.
- Position
- Below the diagonal: src.server.lib uses a module listed above it, which is the healthy direction.
32→19 src.server.lib uses src.server.lib.auth-hooks✕
- Connections
- 1 pair of types, where a type in src.server.lib uses a type in src.server.lib.auth-hooks.
- The types involved
src.server.lib.auth-hooks→src.server.lib.auth-hooks.BetterAuthUserUpdate
- Direction
- src.server.lib uses src.server.lib.auth-hooks, so a change to src.server.lib.auth-hooks can break src.server.lib, while a change to src.server.lib can't break src.server.lib.auth-hooks.
- Position
- Below the diagonal: src.server.lib uses a module listed above it, which is the healthy direction.
32→20 src.server.lib uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.lib uses a type in src.server.lib.constants.
- The types involved
src.server.lib.constants→src.server.lib.constants.RepositoryContext
- Direction
- src.server.lib uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.lib, while a change to src.server.lib can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.lib uses a module listed above it, which is the healthy direction.
32→29 src.server.lib uses src.server.lib.auth-api✕
- Connections
- 1 pair of types, where a type in src.server.lib uses a type in src.server.lib.auth-api.
- The types involved
src.server.lib.auth-hooks→src.server.lib.auth-api.BetterAuthUser
- Direction
- src.server.lib uses src.server.lib.auth-api, so a change to src.server.lib.auth-api can break src.server.lib, while a change to src.server.lib can't break src.server.lib.auth-api.
- Position
- Below the diagonal: src.server.lib uses a module listed above it, which is the healthy direction.
33→4 src.server.services.todo-service uses src.app._components.TodoItem✕
- Connections
- 1 pair of types, where a type in src.server.services.todo-service uses a type in src.app._components.TodoItem.
- The types involved
src.server.services.todo-service.TodoService→src.app._components.TodoItem.Todo
- Direction
- src.server.services.todo-service uses src.app._components.TodoItem, so a change to src.app._components.TodoItem can break src.server.services.todo-service, while a change to src.server.services.todo-service can't break src.app._components.TodoItem.
- Position
- Below the diagonal: src.server.services.todo-service uses a module listed above it, which is the healthy direction.
33→26 src.server.services.todo-service uses src.server.domain.repositories.todo-repository✕
- Connections
- 1 pair of types, where a type in src.server.services.todo-service uses a type in src.server.domain.repositories.todo-repository.
- The types involved
src.server.services.todo-service.TodoService→src.server.domain.repositories.todo-repository.ITodoRepository
- Direction
- src.server.services.todo-service uses src.server.domain.repositories.todo-repository, so a change to src.server.domain.repositories.todo-repository can break src.server.services.todo-service, while a change to src.server.services.todo-service can't break src.server.domain.repositories.todo-repository.
- Position
- Below the diagonal: src.server.services.todo-service uses a module listed above it, which is the healthy direction.
33→35 src.server.services.todo-service uses src.server.context.app-context part of a loop✕
- Connections
- 1 pair of types, where a type in src.server.services.todo-service uses a type in src.server.context.app-context.
- The types involved
src.server.services.todo-service.TodoService→src.server.context.app-context.AppContext
- Direction
- src.server.services.todo-service uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.services.todo-service, while a change to src.server.services.todo-service can't break src.server.context.app-context.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
34→15 src.server.services.user-service uses src.server.domain.models.user✕
- Connections
- 8 pairs of types, where a type in src.server.services.user-service uses a type in src.server.domain.models.user.
- The types involved
src.server.services.user-service.IUserService→src.server.domain.models.user.CreateUserRequestsrc.server.services.user-service.IUserService→src.server.domain.models.user.UpdateProfileRequestsrc.server.services.user-service.IUserService→src.server.domain.models.user.UpdateUserRequestsrc.server.services.user-service.IUserService→src.server.domain.models.user.Usersrc.server.services.user-service.UserService→src.server.domain.models.user.CreateUserRequestsrc.server.services.user-service.UserService→src.server.domain.models.user.UpdateProfileRequestsrc.server.services.user-service.UserService→src.server.domain.models.user.UpdateUserRequestsrc.server.services.user-service.UserService→src.server.domain.models.user.User
- Direction
- src.server.services.user-service uses src.server.domain.models.user, so a change to src.server.domain.models.user can break src.server.services.user-service, while a change to src.server.services.user-service can't break src.server.domain.models.user.
- Position
- Below the diagonal: src.server.services.user-service uses a module listed above it, which is the healthy direction.
34→20 src.server.services.user-service uses src.server.lib.constants✕
- Connections
- 2 pairs of types, where a type in src.server.services.user-service uses a type in src.server.lib.constants.
- The types involved
src.server.services.user-service.IUserService→src.server.lib.constants.RepositoryContextsrc.server.services.user-service.UserService→src.server.lib.constants.RepositoryContext
- Direction
- src.server.services.user-service uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.services.user-service, while a change to src.server.services.user-service can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.services.user-service uses a module listed above it, which is the healthy direction.
34→27 src.server.services.user-service uses src.server.domain.repositories.user-repository✕
- Connections
- 1 pair of types, where a type in src.server.services.user-service uses a type in src.server.domain.repositories.user-repository.
- The types involved
src.server.services.user-service.UserService→src.server.domain.repositories.user-repository.IUserRepository
- Direction
- src.server.services.user-service uses src.server.domain.repositories.user-repository, so a change to src.server.domain.repositories.user-repository can break src.server.services.user-service, while a change to src.server.services.user-service can't break src.server.domain.repositories.user-repository.
- Position
- Below the diagonal: src.server.services.user-service uses a module listed above it, which is the healthy direction.
34→35 src.server.services.user-service uses src.server.context.app-context part of a loop✕
- Connections
- 1 pair of types, where a type in src.server.services.user-service uses a type in src.server.context.app-context.
- The types involved
src.server.services.user-service.UserService→src.server.context.app-context.AppContext
- Direction
- src.server.services.user-service uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.services.user-service, while a change to src.server.services.user-service can't break src.server.context.app-context.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
35→14 src.server.context.app-context uses src.server.config.types✕
- Connections
- 1 pair of types, where a type in src.server.context.app-context uses a type in src.server.config.types.
- The types involved
src.server.context.app-context.AppContext→src.server.config.types.AppConfig
- Direction
- src.server.context.app-context uses src.server.config.types, so a change to src.server.config.types can break src.server.context.app-context, while a change to src.server.context.app-context can't break src.server.config.types.
- Position
- Below the diagonal: src.server.context.app-context uses a module listed above it, which is the healthy direction.
35→33 src.server.context.app-context uses src.server.services.todo-service✕
- Connections
- 1 pair of types, where a type in src.server.context.app-context uses a type in src.server.services.todo-service.
- The types involved
src.server.context.app-context.ServiceContainer→src.server.services.todo-service.TodoService
- Direction
- src.server.context.app-context uses src.server.services.todo-service, so a change to src.server.services.todo-service can break src.server.context.app-context, while a change to src.server.context.app-context can't break src.server.services.todo-service.
- Position
- Below the diagonal: src.server.context.app-context uses a module listed above it, which is the healthy direction.
35→34 src.server.context.app-context uses src.server.services.user-service✕
- Connections
- 1 pair of types, where a type in src.server.context.app-context uses a type in src.server.services.user-service.
- The types involved
src.server.context.app-context.ServiceContainer→src.server.services.user-service.UserService
- Direction
- src.server.context.app-context uses src.server.services.user-service, so a change to src.server.services.user-service can break src.server.context.app-context, while a change to src.server.context.app-context can't break src.server.services.user-service.
- Position
- Below the diagonal: src.server.context.app-context uses a module listed above it, which is the healthy direction.
36→35 src.server.context uses src.server.context.app-context✕
- Connections
- 2 pairs of types, where a type in src.server.context uses a type in src.server.context.app-context.
- The types involved
src.server.context.app-context→src.server.context.app-context.ContainerConfigsrc.server.context.app-context→src.server.context.app-context.ServiceContainer
- Direction
- src.server.context uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.context, while a change to src.server.context can't break src.server.context.app-context.
- Position
- Below the diagonal: src.server.context uses a module listed above it, which is the healthy direction.
37→35 src.server.infrastructure.logging uses src.server.context.app-context✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.logging uses a type in src.server.context.app-context.
- The types involved
src.server.infrastructure.logging.logger-factory→src.server.context.app-context.AppContextConfig
- Direction
- src.server.infrastructure.logging uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.infrastructure.logging, while a change to src.server.infrastructure.logging can't break src.server.context.app-context.
- Position
- Below the diagonal: src.server.infrastructure.logging uses a module listed above it, which is the healthy direction.
38→4 src.server.infrastructure.repositories.mongo-todo-repository uses src.app._components.TodoItem✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.app._components.TodoItem.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.app._components.TodoItem.Todo
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.app._components.TodoItem, so a change to src.app._components.TodoItem can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.app._components.TodoItem.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→16 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.domain.repositories.types.todo-repository-types✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.domain.repositories.types.todo-repository-types.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.domain.repositories.types.todo-repository-types.TodoContentPartialUpdate
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.domain.repositories.types.todo-repository-types, so a change to src.server.domain.repositories.types.todo-repository-types can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.domain.repositories.types.todo-repository-types.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→18 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.infrastructure.entities✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.infrastructure.entities.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.infrastructure.entities.DbTodoEntity
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.infrastructure.entities, so a change to src.server.infrastructure.entities can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.infrastructure.entities.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→20 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.lib.constants.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.lib.constants.RepositoryContext
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→26 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.domain.repositories.todo-repository✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.domain.repositories.todo-repository.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.domain.repositories.todo-repository.ITodoRepository
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.domain.repositories.todo-repository, so a change to src.server.domain.repositories.todo-repository can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.domain.repositories.todo-repository.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→28 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.infrastructure.repositories.base-mongo-repository✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.infrastructure.repositories.base-mongo-repository.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.infrastructure.repositories.base-mongo-repository.BaseMongoRepository
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.infrastructure.repositories.base-mongo-repository, so a change to src.server.infrastructure.repositories.base-mongo-repository can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.infrastructure.repositories.base-mongo-repository.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
38→35 src.server.infrastructure.repositories.mongo-todo-repository uses src.server.context.app-context✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-todo-repository uses a type in src.server.context.app-context.
- The types involved
src.server.infrastructure.repositories.mongo-todo-repository.MongoTodoRepository→src.server.context.app-context.AppContext
- Direction
- src.server.infrastructure.repositories.mongo-todo-repository uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.infrastructure.repositories.mongo-todo-repository, while a change to src.server.infrastructure.repositories.mongo-todo-repository can't break src.server.context.app-context.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-todo-repository uses a module listed above it, which is the healthy direction.
39→15 src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.models.user✕
- Connections
- 2 pairs of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.domain.models.user.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.domain.models.user.CreateUserRequestsrc.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.domain.models.user.User
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.models.user, so a change to src.server.domain.models.user can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.domain.models.user.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→17 src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.repositories.types.user-repository-types✕
- Connections
- 2 pairs of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.domain.repositories.types.user-repository-types.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.domain.repositories.types.user-repository-types.UserBasicInfoPartialUpdatesrc.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.domain.repositories.types.user-repository-types.UserProfilePartialUpdate
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.repositories.types.user-repository-types, so a change to src.server.domain.repositories.types.user-repository-types can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.domain.repositories.types.user-repository-types.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→18 src.server.infrastructure.repositories.mongo-user-repository uses src.server.infrastructure.entities✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.infrastructure.entities.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.infrastructure.entities.DbUserEntity
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.infrastructure.entities, so a change to src.server.infrastructure.entities can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.infrastructure.entities.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→20 src.server.infrastructure.repositories.mongo-user-repository uses src.server.lib.constants✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.lib.constants.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.lib.constants.RepositoryContext
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.lib.constants, so a change to src.server.lib.constants can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.lib.constants.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→27 src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.repositories.user-repository✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.domain.repositories.user-repository.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.domain.repositories.user-repository.IUserRepository
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.domain.repositories.user-repository, so a change to src.server.domain.repositories.user-repository can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.domain.repositories.user-repository.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→28 src.server.infrastructure.repositories.mongo-user-repository uses src.server.infrastructure.repositories.base-mongo-repository✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.infrastructure.repositories.base-mongo-repository.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.infrastructure.repositories.base-mongo-repository.BaseMongoRepository
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.infrastructure.repositories.base-mongo-repository, so a change to src.server.infrastructure.repositories.base-mongo-repository can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.infrastructure.repositories.base-mongo-repository.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
39→35 src.server.infrastructure.repositories.mongo-user-repository uses src.server.context.app-context✕
- Connections
- 1 pair of types, where a type in src.server.infrastructure.repositories.mongo-user-repository uses a type in src.server.context.app-context.
- The types involved
src.server.infrastructure.repositories.mongo-user-repository.MongoUserRepository→src.server.context.app-context.AppContext
- Direction
- src.server.infrastructure.repositories.mongo-user-repository uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.infrastructure.repositories.mongo-user-repository, while a change to src.server.infrastructure.repositories.mongo-user-repository can't break src.server.context.app-context.
- Position
- Below the diagonal: src.server.infrastructure.repositories.mongo-user-repository uses a module listed above it, which is the healthy direction.
40→35 src.server.lib.error-handlers uses src.server.context.app-context✕
- Connections
- 1 pair of types, where a type in src.server.lib.error-handlers uses a type in src.server.context.app-context.
- The types involved
src.server.lib.error-handlers.trpc-error-handler→src.server.context.app-context.AppContext
- Direction
- src.server.lib.error-handlers uses src.server.context.app-context, so a change to src.server.context.app-context can break src.server.lib.error-handlers, while a change to src.server.lib.error-handlers can't break src.server.context.app-context.
- Position
- Below the diagonal: src.server.lib.error-handlers 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 — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 27 | High / Critical |
| A05:2025 — Injection | 7 | High / Critical |
Roadmap
First, resolve the missing test finding in Test Distribution and establish a CI workflow to build and run tests on every push. Next, centralize access controls by declaring roles and permissions in a single, reviewable location to ensure they are testable. Finally, integrate security tooling like CodeQL or Semgrep into the new pipeline to catch regressions early, and add tests for unreached production modules to improve coverage.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No tests found finding(s) in Test Distribution. | +19.4 pts | Low | Test Distribution |
| Name the access rules — roles/permissions declared once (a @Roles/@Permissions decorator with its guard, a CASL ability, a casbin model, or Supabase CREATE POLICY) and consulted where access is checked, so the rule set is reviewable and testable on its own. | +4.9 pts | Medium | Access Controls |
| Add a CI workflow that builds and runs the test suite on every push/PR. | +4.2 pts | Medium | CI/CD gates |
| Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — 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. | +4.2 pts | Medium | Security & performance tooling |
| Add tests that import the unreached modules (directly or through their public entry). | +4.2 pts | Medium | Test Coverage |
| Resolve the 6 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED (2), REDACTED. | +1.7 pts | Low | Static Analysis (SAST) |
| Resolve the 19 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (17), REDACTED (2). | +3.2 pts | Medium | Dependency Vulnerabilities |
| 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. | +2.1 pts | Medium | Architecture documentation |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 4.8 | Mixed | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 6.3 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| src/server/domain/repositories/types/todo-repository-types.ts | 6.6 | Near-clean | Explicit Debt: TodoComment |
| REDACTED | 6.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.2 | Near-clean | Static Analysis (SAST): High: REDACTED |
| src/server/domain/repositories/schemas/todo-repository-schemas.ts | 7.3 | Near-clean | Explicit Debt: TodoComment |
| src/app/_components/TodoList.tsx | 7.8 | Near-clean | Cyclomatic Complexity: TodoList.TodoList (cyclomatic 16) |
| REDACTED | 7.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| src/server/lib/auth.ts | 8.2 | Near-clean | Explicit Debt: TodoComment |
| src/server/lib/error-handlers/trpc-error-handler.ts | 8.5 | Near-clean | Cognitive Complexity: trpc-error-handler.handleServiceError (cognitive 19) |
| src/components/layout/Header.tsx | 8.5 | Near-clean | God Classes: FunctionTooLong: Header.Header |
| src/app/_components/TodoItem.tsx | 8.5 | Near-clean | God Classes: FunctionTooLong: TodoItem.TodoItem |
| src/components/auth/RegisterForm.tsx | 8.5 | Near-clean | God Classes: FunctionTooLong: RegisterForm.RegisterForm |
| src/app/profile/page.tsx | 8.5 | Near-clean | God Classes: FunctionTooLong: page.ProfileContent |
| src/app/_components/AddTodoForm.tsx | 8.5 | Near-clean | God Classes: FunctionTooLong: AddTodoForm.AddTodoForm |
| src/server/lib/auth-api.ts | 8.5 | Near-clean | Cohesion (LCOM4): Low cohesion: AuthUserAPI (LCOM4 4) |
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. 62 of 65 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.8 — 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 — 65 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, 174 of 209 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
- D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — 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. Git history depth insufficient — this repository has 12 commit(s), too few for a reliable trend signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- 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 12 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.
- 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. This repository's source is written only in languages whose packages are published through a manifest, and no manifest in the tree makes a publication act: either there is no package manifest of any ecosystem (no REDACTED, pyproject.toml, setup.py, gemspec, Cargo.toml, pom.xml, build.gradle, composer.json, pubspec.yaml or mix.exs), or every one present declares in its package manager's own terms that it is not published (an npm package marked "private": true, a Cargo package with publish = false, a pubspec with publish_to: none, a Composer "project", a Poetry project with package-mode = false, or the "Private :: Do Not Upload" classifier). With no publication act there is no intentionally-exposed surface for API consistency to be judged over.
- D27 Navigability — 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- 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 (12 commit(s) sampled).
- D35 Change Coupling — measured, with a gap in what it reached — 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. Git history depth insufficient — this repository has 12 commit(s), too few for a reliable change-coupling signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- 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 DevServer (dev). the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence.
- C1 Data Protection — 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. 'mongodb' is imported (src/server/context/app-context.ts:8), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- C3 Audit Trail — 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. 'mongodb' is imported (src/server/context/app-context.ts:8), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- C4 Data Retention — 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. 'mongodb' is imported (src/server/context/app-context.ts:8), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- C5 Data-Subject Rights — 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. 'mongodb' is imported (src/server/context/app-context.ts:8), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- DM9 Scattered domain decisions — 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. Arm two tells a construction that PRODUCES a measurement from one that merely passes it along, and this repository's frontend does not compute that fact. A measurement built independently in two places would not appear above.
- P2 Observability — 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. 3 further occurrence(s) are not listed individually; the score already reflects all 43.
- S1 Web-Security Posture — 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. 66 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled certificate validation and obsolete TLS versions, and none was found. The server controls this dimension also scores were not assessed, so no score is given.
- X2 Cancellation propagation — 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. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
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.
- 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.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- 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.
- 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.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a 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.
- 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.
- 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.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was TodoList.TodoList at 16.
What to do
- Bring the 1 body over 15 down to 15 or less in Cyclomatic Complexity — start with TodoList.TodoList (cyclomatic 16). — Refactoring it lifts Cyclomatic Complexity from 9.9 to about 10.0/10.
- Stand up a CI pipeline, then gate Cyclomatic Complexity 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.
D2 · Cognitive Complexity
1 method(s) exceeded the cognitive complexity threshold of 15; the worst was trpc-error-handler.handleServiceError at 19.
What to do
- Bring the 1 body over 15 down to 15 or less in Cognitive Complexity — start with trpc-error-handler.handleServiceError (cognitive 19). — Refactoring it lifts Cognitive Complexity from 9.7 to about 10.0/10.
- Stand up a CI pipeline, then gate Cognitive Complexity 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.
D3 · God Classes
6 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 6 FunctionTooLong finding(s) in God Classes — start with TodoList.tsx, Header.tsx, TodoItem.tsx. — One of this dimension's main actionable groups (6 warning-level).
- Stand up a CI pipeline, then gate God Classes 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)
1 of 5 classes have LCOM4 above 3.
What to do
- Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with auth-api.ts. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Cohesion (LCOM4) 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.
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
21 outdated direct production npm dependency(ies) of 27 graded, 0 pinning defect(s), across 1 REDACTED (1 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 0 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.
What to do
- Stand up a CI pipeline, then gate Dependency Hygiene 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.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 27 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 27 production dependency(ies) this repository's committed lockfile resolves, across 1 product REDACTED manifest(s). Its 13 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 1 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
7 deducted task-comment markers across 7228 LoC (0.1/KLoC) → score 9.8. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 7 TodoComment finding(s) in Explicit Debt — start with todo-repository-types.ts (4), todo-repository-schemas.ts (2), auth.ts. — One of this dimension's main actionable groups (7 warning-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.
D19 · Documentation Quality
The repository's root README (README.md) and the two architecture/enterprise-design docs form a strong cohesive documentation set. The README is an enterprise-grade project overview that states what the template is for, lists features, tech stack, and shows a screenshot plus a roadmap of sections to follow: ✨ Features; 🏗️ Architecture; Key Patterns; 🚦 Quick Start; Prerequisites; 1. Clone and Install; 2. Environment Setup; Database; Authentication; App Configuration; 3. Start Development; 📋 Development Commands; Code Quality; Formatting; Check All; 🏛️ Design Patterns; Core Principles; Example: Todo Repository Pattern; 🔐 Authentication; Usage Example; 📊 Database Schema; User Collection). The architecture docs are a full design-patterns document with an outline (Entity-Based Repository Pattern, Service Layer Patterns, Validation Architecture) and each section present in the visible text. All four project-level gaps (overview, installation/usage, contributing, licence) are addressed by the README, so they fall outside the scope of this review.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
1 of 1 build units (npm) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
7 finding(s): 0 critical, 1 high, 6 medium, 0 low.
What to do
- Resolve the 6 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (6 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
27 finding(s): 3 critical, 19 high, 4 medium, 1 low.
What to do
- Resolve the 19 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (17), REDACTED (2). — One of this dimension's main actionable groups (19 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 1 Critical vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 27 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
AX10 · Code composition
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX6 · Interface segregation
C2 · Access Controls
- Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) — this is NOT a claim that endpoints are unprotected. What's missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can't be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect.
- Only 2 place(s) refuse an unauthorized caller — too few to demonstrate default-deny across handlers.
What to do
- Name the access rules — roles/permissions declared once (a @Roles/@Permissions decorator with its guard, a CASL ability, a casbin model, or Supabase CREATE POLICY) and consulted where access is checked, so the rule set is reviewable and testable on its own.
- Enforce authorization at every handler — a guard on each route, or a global authentication guard/middleware with explicit public opt-outs, so protected-by-default is demonstrable.
DM6 · Domain ↔ infrastructure boundary
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `getAllUsers` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/server/lib/auth-api.ts:246
What to do
- Remove the dead code that still moves this score: delete dead if(false) branches and either do the real async work or drop the async keyword from fake-async functions.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
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
- README advertises Docker containerisation, but no Dockerfile/compose file exists — searched for: `dockerfile`, `docker-compose`, `compose.yaml`, `compose.yml`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (REDACTED and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong. — README.md:265
What to do
- Reconcile the README with reality: README advertises Docker containerisation, but no Dockerfile/compose file exists.
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
- `src/app/error.tsx` reports through `console.*` at line 15 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/app/error.tsx:15
- `src/app/api/trpc/[trpc]/route.ts` reports through `console.*` at line 27 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/app/api/trpc/[trpc]/route.ts:27
- `src/server/api/trpc.ts` reports through `console.*` at line 112 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/api/trpc.ts:112
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 15 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:15
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:37
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 39 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:39
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 49 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:49
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 62 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:62
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 67 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:67
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 69 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:69
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 80 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:80
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 91 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:91
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 93 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:93
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 96 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:96
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 107 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:107
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 120 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:120
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 123 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:123
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 145 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:145
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 147 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:147
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 156 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:156
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 165 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:165
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 167 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:167
- `src/server/lib/db-indexes.ts` reports through `console.*` at line 171 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/db-indexes.ts:171
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 76 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:76
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 107 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:107
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 110 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:110
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 111 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:111
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 114 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:114
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 155 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:155
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 158 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:158
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 199 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:199
- `src/server/lib/auth-hooks.ts` reports through `console.*` at line 202 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-hooks.ts:202
- `src/server/lib/auth-api.ts` reports through `console.*` at line 130 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:130
- `src/server/lib/auth-api.ts` reports through `console.*` at line 133 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:133
- `src/server/lib/auth-api.ts` reports through `console.*` at line 174 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:174
- `src/server/lib/auth-api.ts` reports through `console.*` at line 215 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:215
- `src/server/lib/auth-api.ts` reports through `console.*` at line 253 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:253
- `src/server/lib/auth-api.ts` reports through `console.*` at line 266 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/lib/auth-api.ts:266
- `src/server/utils/retry.ts` reports through `console.*` at line 53 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/utils/retry.ts:53
- `src/server/utils/retry.ts` reports through `console.*` at line 63 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/server/utils/retry.ts:63
What to do
- Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
- Consider OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) and a health-check endpoint (@godaddy/terminus or a /health route) for operability.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — 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 javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — 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.
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
- 5 duplicated blocks under src/server/ have copies in at least two of the sibling directories domain, infrastructure, schemas, services — 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/server/infrastructure/repositories/mongo-todo-repository.ts:519
- src/components/auth/LoginForm.tsx:28 · src/components/auth/RegisterForm.tsx:46 — the two spans are one implementation copied and then locally edited — 527 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/components/auth/LoginForm.tsx:28
- src/server/infrastructure/repositories/mongo-todo-repository.ts:55 · REDACTED:51 — the two spans are one implementation copied and then locally edited — 304 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/server/infrastructure/repositories/mongo-todo-repository.ts:55
- src/app/_components/AppHeader.tsx:21 · src/components/layout/Header.tsx:33 — the two spans are one implementation copied and then locally edited — 204 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/app/_components/AppHeader.tsx:21
- src/server/lib/auth-api.ts:141 · src/server/lib/auth-api.ts:182 — all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/server/lib/auth-api.ts:141
- REDACTED:194 · REDACTED:262 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — REDACTED:194
- src/server/api/routers/todo.ts:18 · src/server/api/routers/todo.ts:97 — the two spans are one implementation copied and then locally edited — 224 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/server/api/routers/todo.ts:18
- src/app/login/page.tsx:7 · src/app/register/page.tsx:7 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/app/login/page.tsx:7
- src/server/api/routers/todo.ts:120 · src/server/api/routers/todo.ts:180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/server/api/routers/todo.ts:120
- src/server/api/routers/todo.ts:218 · src/server/api/routers/todo.ts:259 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/api/routers/todo.ts:218
- src/server/api/routers/todo.ts:161 · src/server/api/routers/todo.ts:212 · src/server/api/routers/todo.ts:253 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/api/routers/todo.ts:161
- src/server/services/todo-service.ts:240 · src/server/services/todo-service.ts:309 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/server/services/todo-service.ts:240
- src/app/_components/AddTodoForm.tsx:37 · src/app/_components/TodoItem.tsx:47 · src/app/_components/TodoItem.tsx:68 · src/app/_components/TodoItem.tsx:88 — the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/app/_components/AddTodoForm.tsx:37
- src/server/infrastructure/repositories/mongo-todo-repository.ts:210 · src/server/infrastructure/repositories/mongo-todo-repository.ts:249 · src/server/infrastructure/repositories/mongo-todo-repository.ts:285 · src/server/infrastructure/repositories/mongo-todo-repository.ts:320 — all 4 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/infrastructure/repositories/mongo-todo-repository.ts:210
- src/app/error.tsx:19 · src/app/unauthorized/page.tsx:9 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/app/error.tsx:19
- src/app/not-found.tsx:9 · src/app/unauthorized/page.tsx:21 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/app/not-found.tsx:9
- REDACTED:96 · REDACTED:152 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:96
- src/server/infrastructure/repositories/mongo-todo-repository.ts:164 · src/server/infrastructure/repositories/mongo-todo-repository.ts:205 · src/server/infrastructure/repositories/mongo-todo-repository.ts:244 · src/server/infrastructure/repositories/mongo-todo-repository.ts:280 · +3 more site(s) not listed — all 7 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/infrastructure/repositories/mongo-todo-repository.ts:164
- src/server/infrastructure/repositories/mongo-todo-repository.ts:488 · src/server/services/todo-service.ts:166 · src/server/services/todo-service.ts:244 · src/server/services/todo-service.ts:280 · +1 more site(s) not listed — the 5 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/infrastructure/repositories/mongo-todo-repository.ts:488
- src/server/lib/db-indexes.ts:37 · src/server/lib/db-indexes.ts:145 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/lib/db-indexes.ts:37
- src/server/services/todo-service.ts:56 · src/server/services/todo-service.ts:200 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/server/services/todo-service.ts:56
- src/server/domain/repositories/schemas/user-repository-schemas.ts:77 · src/server/domain/repositories/schemas/user-repository-schemas.ts:120 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/domain/repositories/schemas/user-repository-schemas.ts:77
- src/server/infrastructure/repositories/mongo-todo-repository.ts:264 · src/server/infrastructure/repositories/mongo-todo-repository.ts:300 · src/server/infrastructure/repositories/mongo-todo-repository.ts:335 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — src/server/infrastructure/repositories/mongo-todo-repository.ts:264
- src/server/infrastructure/repositories/mongo-todo-repository.ts:457 · src/server/infrastructure/repositories/mongo-todo-repository.ts:523 · src/server/services/todo-service.ts:131 — the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/server/infrastructure/repositories/mongo-todo-repository.ts:457
- REDACTED:77 · REDACTED:120 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:77
- src/app/_components/TodoList.tsx:166 · src/app/_components/TodoList.tsx:184 · src/app/_components/TodoList.tsx:202 — all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — src/app/_components/TodoList.tsx:166
- src/server/domain/repositories/user-repository.ts:103 · REDACTED:13 — the 2 copies are spread across 2 files, and the CITED SPAN is inside a TYPE DECLARATION, not executable code. There is no function to extract and no call site to call one from, so do not read this as an extract-a-helper row: the collapse a type offers is a generic — name the shape once, parameterised over the part that varies, and have each copy instantiate it. First check what actually differs between the copies: where they are a MATRIX of cases (one entry per input, differing precisely in the case each one pins), the repetition IS the enumeration and collapsing it would delete cases rather than de-duplicate anything — leave those alone. Reported because the copies that are not a matrix drift apart the first time only one of them is edited. — src/server/domain/repositories/user-repository.ts:103
- src/server/infrastructure/repositories/base-mongo-repository.ts:63 · src/server/infrastructure/repositories/base-mongo-repository.ts:99 — the two spans are one implementation copied and then locally edited — 50 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/server/infrastructure/repositories/base-mongo-repository.ts:63
- REDACTED:223 · REDACTED:332 · REDACTED:365 · REDACTED:398 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:223
- src/app/_components/TodoList.tsx:118 · src/app/_components/TodoList.tsx:127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/app/_components/TodoList.tsx:118
- src/app/page.tsx:89 · src/app/page.tsx:101 · src/app/page.tsx:113 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — src/app/page.tsx:89
- src/app/profile/page.tsx:140 · src/app/profile/page.tsx:149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — src/app/profile/page.tsx:140
- src/server/infrastructure/repositories/mongo-todo-repository.ts:187 · src/server/infrastructure/repositories/mongo-todo-repository.ts:261 · src/server/infrastructure/repositories/mongo-todo-repository.ts:297 · src/server/infrastructure/repositories/mongo-todo-repository.ts:332 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. — src/server/infrastructure/repositories/mongo-todo-repository.ts:187
- REDACTED:514 · REDACTED:540 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — REDACTED:514
- src/server/domain/repositories/schemas/user-repository-schemas.ts:216 · src/server/domain/repositories/schemas/user-repository-schemas.ts:229 · src/server/schemas/user.ts:16 — the 3 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour — the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator's options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents. — src/server/domain/repositories/schemas/user-repository-schemas.ts:216
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- TodoList has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/app/_components/TodoList.tsx:26
- updateTodo has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/server/services/todo-service.ts:182
- (anonymous) has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/server/lib/error-handlers/trpc-error-handler.ts:25
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- src/server/infrastructure/repositories/mongo-todo-repository.ts has 508 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — src/server/infrastructure/repositories/mongo-todo-repository.ts:1
- REDACTED has 490 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
- 0% of 51 production file(s) reachable from 0 test file(s) via the import graph — 'production' here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace's file count
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
- test ✗ · lint ✓ · typecheck ✓ — read from this repository's REDACTED scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add a test runner (vitest / jest / playwright) as REDACTED scripts and run them in CI.
R7 · Dead Code
- Unreachable from the 10 application, 4 tooling and 0 test entry point(s) detected in this repo. Gate removals on `bun run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (10 application, 4 tooling, 0 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×7) — src/server/lib/auth-hooks.ts, src/server/lib/db-indexes.ts, src/server/lib/error-handlers/trpc-error-handler.ts, …
- no import path from any entry point (10 application, 4 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/server/utils/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — src/server/utils/retry.ts
- Nothing imports this binding — it is safe to review for removal. (×29) — src/lib/auth-client.ts:8, src/server/domain/repositories/schemas/todo-repository-schemas.ts:123, src/server/domain/repositories/schemas/todo-repository-schemas.ts:134, …
- Nothing in its class calls or references this private method — no member access, no string key, no decorator, and no test reaches it by name. A private member cannot be called from outside its class, so this is the whole search: remove it, or call it where it was meant to be used. — REDACTED:95
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Declared in the root REDACTED but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
- Every import is type-only — move it to devDependencies. — src/server/context/app-context.ts:1
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
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
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
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
X4 · Structured logging
- `error` at line 30 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.error({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.error('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/server/lib/error-handlers/trpc-error-handler.ts:30
- `warn` at line 132 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.warn({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.warn('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/server/lib/error-handlers/trpc-error-handler.ts:132
- `info` at line 170 is handed a template literal with `${…}` substitutions as its message, so the logger receives one finished string — the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass the values beside a constant message instead: `logger.info({ orderId, status }, 'order status updated')` for pino and bunyan, `logger.info('order status updated', { orderId, status })` for winston. If these calls go through a NestJS `Logger` routed into pino, nestjs-pino forwards an object first argument as fields in the same way. — src/server/lib/error-handlers/trpc-error-handler.ts:170
What to do
- Interpolated log message defeats structured logging
X5 · Nullable reference types
- ~1.8 `!` null assertions per 1k TypeScript source lines — 15 assertion(s) across the 8183 source line(s) of the 65 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: src/server/api/routers/todo.ts (14), src/server/utils/retry.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 71% | Strong | Solid. |
| Architecture | 77% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 61% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 20% | Weak — gated by D9, R4, P1, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 50% | Adequate — gated by D30, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 100% | Exemplary | Strongest area. |
| Performance | 100% | Exemplary | Solid. |
Not evidenced — 6 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: this repository stores data through 'mongodb' (src/server/context/app-context.ts:8) but declares no persisted model this check reads (TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entities, Mongoose schemas, Sequelize or Drizzle tables, Knex migrations, Prisma models). Personal data may be written through raw SQL or a hosted backend, so whether its changes need an audit trail could not be established, and the trail's absence is not scored.
- C4 Data Retention — Not assessed: this repository stores data through 'mongodb' (src/server/context/app-context.ts:8) but declares no persisted model this check reads (TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entities, Mongoose schemas, Sequelize or Drizzle tables, Knex migrations, Prisma models). Personal data may be written through raw SQL or a hosted backend, so whether a retention limit applies here could not be established, and its absence is not scored.
- C5 Data-Subject Rights — Not assessed: this repository stores data through 'mongodb' (src/server/context/app-context.ts:8) but declares no persisted model this check reads (TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entities, Mongoose schemas, Sequelize or Drizzle tables, Knex migrations, Prisma models). Personal data may be written through raw SQL or a hosted backend, so whether data-subject rights apply here could not be established, and their absence is not scored.
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 68 check(s) not relevant to this codebase
- AC1 Text alternatives — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC2 Forms & labels — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC3 Page structure — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC4 Keyboard semantics — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC5 ARIA correctness — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC6 Visual & motion safety — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AC7 A11y enforcement — Frontend below the scale floor (20 DOM element(s) < 25) — too little surface to assess accessibility.
- AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- AX4 Dependency direction — not applicable to a transaction-script/CRUD architecture (the inward-dependency rule is for layered/clean styles)
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence 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 — Not assessed: this repository stores data through 'mongodb' (src/server/context/app-context.ts:8) but declares no persisted model this check reads (TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entities, Mongoose schemas, Sequelize or Drizzle tables, Knex migrations, Prisma models). Personal data may be written through raw SQL or a hosted backend, so the absence of a personal-data field here is not evidence that none is stored, and encryption at rest is not scored over a subject that could not be established.
- 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
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D23 Boundary Type-Coupling — 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"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.ts,.tsx), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- 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 — 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 — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D4 Code Duplication — This repository's production source (.ts, .tsx) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- 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.
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). 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 Aggregate boundaries — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM10 One transaction, one aggregate — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM2 Strongly-typed ids — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM3 Integration-event coupling — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM4 Rich vs anemic model — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM5 Encapsulated state — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- DM7 Repository granularity — not applicable: no DDD domain layer was detected (no aggregate, entity or value-object structure), so there is no domain model for this card to grade
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency 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
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`) 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 — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a REDACTED, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- R5 Dependency Freshness — uses a bun lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- S1 Web-Security Posture — Not assessed: 66 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. That half of the dimension is clean, but it is not scored on its own: a C# repository with the same clean reading is scored on its server controls as well, or is N/A for having no web surface, and neither can be decided here. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- 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 — 23 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 81 finding(s)
- TodoComment src/server/domain/repositories/schemas/todo-repository-schemas.ts:54
- TodoComment src/server/domain/repositories/schemas/todo-repository-schemas.ts:71
- TodoComment src/server/domain/repositories/types/todo-repository-types.ts:16
- TodoComment src/server/domain/repositories/types/todo-repository-types.ts:37
- TodoComment src/server/domain/repositories/types/todo-repository-types.ts:71
- TodoComment src/server/domain/repositories/types/todo-repository-types.ts:106
- TodoComment src/server/lib/auth.ts:75
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- FunctionTooLong: TodoList.TodoList src/app/_components/TodoList.tsx:26
- FunctionTooLong: Header.Header src/components/layout/Header.tsx:29
- FunctionTooLong: TodoItem.TodoItem src/app/_components/TodoItem.tsx:34
- FunctionTooLong: RegisterForm.RegisterForm src/components/auth/RegisterForm.tsx:46
- FunctionTooLong: page.ProfileContent src/app/profile/page.tsx:25
- FunctionTooLong: AddTodoForm.AddTodoForm src/app/_components/AddTodoForm.tsx:21
- Duplicated block (13 lines × 2 locations) src/app/error.tsx:19
- Duplicated block (13 lines × 2 locations) src/app/not-found.tsx:9
- Duplicated block (13 lines × 2 locations) REDACTED:96
- Duplicated block (13 lines × 2 locations) src/server/lib/db-indexes.ts:37
- Duplicated block (13 lines × 2 locations) src/server/services/todo-service.ts:56
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (14 lines × 4 locations) src/app/_components/AddTodoForm.tsx:37
- Duplicated block (14 lines × 4 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:210
- Duplicated block (12 lines × 2 locations) src/server/domain/repositories/schemas/user-repository-schemas.ts:77
- Duplicated block (12 lines × 2 locations) REDACTED:77
- Duplicated block (12 lines × 3 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:264
- Duplicated block (12 lines × 3 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:457
- Duplicated block (9 lines × 2 locations) src/app/_components/TodoList.tsx:118
- Duplicated block (9 lines × 2 locations) src/app/profile/page.tsx:140
- Dead file (~174 LoC) src/server/lib/db-indexes.ts
- Dead file (~174 LoC) src/server/lib/error-handlers/trpc-error-handler.ts
- TodoList.TodoList (cyclomatic 16) src/app/_components/TodoList.tsx:26
- trpc-error-handler.handleServiceError (cognitive 19) src/server/lib/error-handlers/trpc-error-handler.ts:20
- Low cohesion: AuthUserAPI (LCOM4 4) src/server/lib/auth-api.ts:69
- Fake-async — async method never awaits src/server/lib/auth-api.ts:246
- No CI pipeline
- Duplication concentrated across 4 sibling directories (5 clone groups) src/server/infrastructure/repositories/mongo-todo-repository.ts:519
- Duplicated block with local edits (92 matched lines × 2 locations) src/components/auth/LoginForm.tsx:28
- Duplicated block with local edits (55 matched lines × 2 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:55
- Duplicated block with local edits (44 matched lines × 2 locations) src/app/_components/AppHeader.tsx:21
- Duplicated block (37 lines × 2 locations) src/server/lib/auth-api.ts:141
- Duplicated block (34 lines × 2 locations) REDACTED:194
- Duplicated block with local edits (32 matched lines × 2 locations) src/server/api/routers/todo.ts:18
- Duplicated block (20 lines × 2 locations) src/app/login/page.tsx:7
- Duplicated block (17 lines × 2 locations) src/server/api/routers/todo.ts:120
- Duplicated block (16 lines × 2 locations) src/server/api/routers/todo.ts:218
- Duplicated block (15 lines × 3 locations) src/server/api/routers/todo.ts:161
- Duplicated block (15 lines × 2 locations) src/server/services/todo-service.ts:240
- Duplicated block (13 lines × 7 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:164
- Duplicated block (13 lines × 5 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:488
- Duplicated block (11 lines × 3 locations) src/app/_components/TodoList.tsx:166
- Duplicated block (11 lines × 2 locations) src/server/domain/repositories/user-repository.ts:103
- Duplicated block with local edits (11 matched lines × 2 locations) src/server/infrastructure/repositories/base-mongo-repository.ts:63
- Duplicated block (11 lines × 5 locations) REDACTED:223
- Duplicated block (9 lines × 3 locations) src/app/page.tsx:89
- Duplicated block (8 lines × 4 locations) src/server/infrastructure/repositories/mongo-todo-repository.ts:187
- Duplicated block (6 lines × 2 locations) REDACTED:514
- Duplicated block (5 lines × 3 locations) src/server/domain/repositories/schemas/user-repository-schemas.ts:216
- Complex function TodoList (cyclomatic 16, cognitive 15) src/app/_components/TodoList.tsx:26
- Complex function updateTodo (cyclomatic 12, cognitive 14) src/server/services/todo-service.ts:182
- Complex function (anonymous) (cyclomatic 11, cognitive 19) src/server/lib/error-handlers/trpc-error-handler.ts:25
- src/server/infrastructure/repositories/mongo-todo-repository.ts: 508 lines of code src/server/infrastructure/repositories/mongo-todo-repository.ts:1
- REDACTED: 490 lines of code REDACTED:1
- Test Coverage
- No test script
- Dead file (~259 LoC) src/server/lib/auth-hooks.ts
- Dead file (~192 LoC) src/server/utils/retry.ts
- Dead file (~85 LoC) src/server/types/auth-types.ts
- Dead file (~30 LoC) src/trpc/server.ts
- Dead file (~5 LoC) src/server/utils/index.ts
- Dead file (~3 LoC) src/server/infrastructure/index.ts
- Unused dependency '@eslint/eslintrc'
- Unused dependency 'dotenv'
- Unused dependency 'jsonwebtoken'
Minor — 84 finding(s)
- Console output used as the logging channel src/app/error.tsx:15
- Console output used as the logging channel src/app/api/trpc/[trpc]/route.ts:27
- Console output used as the logging channel src/server/api/trpc.ts:112
- Console output used as the logging channel src/server/lib/db-indexes.ts:15
- Console output used as the logging channel src/server/lib/db-indexes.ts:37
- Console output used as the logging channel src/server/lib/db-indexes.ts:39
- Console output used as the logging channel src/server/lib/db-indexes.ts:49
- Console output used as the logging channel src/server/lib/db-indexes.ts:62
- Console output used as the logging channel src/server/lib/db-indexes.ts:67
- Console output used as the logging channel src/server/lib/db-indexes.ts:69
- Console output used as the logging channel src/server/lib/db-indexes.ts:80
- Console output used as the logging channel src/server/lib/db-indexes.ts:91
- Console output used as the logging channel src/server/lib/db-indexes.ts:93
- Console output used as the logging channel src/server/lib/db-indexes.ts:96
- Console output used as the logging channel src/server/lib/db-indexes.ts:107
- Console output used as the logging channel src/server/lib/db-indexes.ts:120
- Console output used as the logging channel src/server/lib/db-indexes.ts:123
- Console output used as the logging channel src/server/lib/db-indexes.ts:145
- Console output used as the logging channel src/server/lib/db-indexes.ts:147
- Console output used as the logging channel src/server/lib/db-indexes.ts:156
- Console output used as the logging channel src/server/lib/db-indexes.ts:165
- Console output used as the logging channel src/server/lib/db-indexes.ts:167
- Console output used as the logging channel src/server/lib/db-indexes.ts:171
- Console output used as the logging channel src/server/lib/auth-hooks.ts:76
- Console output used as the logging channel src/server/lib/auth-hooks.ts:107
- Interpolated log message defeats structured logging src/server/lib/error-handlers/trpc-error-handler.ts:30
- Interpolated log message defeats structured logging src/server/lib/error-handlers/trpc-error-handler.ts:132
- Interpolated log message defeats structured logging src/server/lib/error-handlers/trpc-error-handler.ts:170
- No named authorization policies
- Thin authorization enforcement
- Projects may be oversized for their cohesion
- REDACTED
- No tests — template/sample
- No tests found
- No ADRs
- README/code drift README.md:265
- No SAST
- Unused export 'resetPassword' src/lib/auth-client.ts:8
- Unused export 'RepoTodoUserQuerySchema' src/server/domain/repositories/schemas/todo-repository-schemas.ts:123
- Unused export 'RepoTodoStatusQuerySchema' src/server/domain/repositories/schemas/todo-repository-schemas.ts:134
- Unused export 'UserRoleQuerySchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:180
- Unused export 'UserEmailQuerySchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:188
- Unused export 'UserFilterQuerySchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:196
- Unused export 'UserCreateRequestSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:213
- Unused export 'UserUpdateRequestSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:227
- Unused export 'UserProfileUpdateRequestSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:240
- Unused export 'UserIdValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:255
- Unused export 'RoleValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:261
- Unused export 'EmailValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:267
- Unused export 'NameValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:278
- Unused export 'BioValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:287
- Unused export 'UrlValidationSchema' src/server/domain/repositories/schemas/user-repository-schemas.ts:295
- Unused export 'createLoggerFromConfig' src/server/infrastructure/logging/logger-factory.ts:48
- Unused export 'default' src/server/lib/auth-api.ts:282
- Unused export 'createSystemRepositoryContext' src/server/lib/constants.ts:75
- Unused export 'isSystemUser' src/server/lib/constants.ts:92
- Unused export 'ORDER_SESSION_TIMEOUT_MINUTES' src/server/lib/constants.ts:107
- Unused export 'zObjectIdOptional' src/server/lib/validation/zod-utils.ts:18
- Unused export 'zObjectIdArray' src/server/lib/validation/zod-utils.ts:29
- Unused export 'InferSchemaOutput' src/server/lib/validation/zod-utils.ts:82
- Unused export 'safeParse' src/server/lib/validation/zod-utils.ts:136
- Unused export 'CreateUserInput' src/server/schemas/user.ts:30
- Unused export 'UpdateUserInput' src/server/schemas/user.ts:31
- Unused export 'UpdateProfileInput' src/server/schemas/user.ts:32
- Unused export 'RouterInputs' src/trpc/react.tsx:32
- Unused export 'RouterOutputs' src/trpc/react.tsx:39
- Unused private method 'toDbData' REDACTED:95
- Type-only dependency '@thaitype/core-utils' in production deps src/server/context/app-context.ts:1
- Null assertions (`!`) reduce the strict null checking score
Minor — 21 finding(s)
- Outdated (npm): @mantine/core
- Outdated (npm): @mantine/form
- Outdated (npm): @mantine/hooks
- Outdated (npm): @mantine/modals
- Outdated (npm): @mantine/notifications
- Outdated (npm): @t3-oss/env-nextjs
- Outdated (npm): @tabler/icons-react
- Outdated (npm): @tanstack/react-query
- Outdated (npm): @trpc/client
- Outdated (npm): @trpc/react-query
- Outdated (npm): @trpc/server
- Outdated (npm): better-auth
- Outdated (npm): dotenv
- Outdated (npm): mongodb
- Outdated (npm): next
- Outdated (npm): npm-run-all2
- Outdated (npm): pino
- Outdated (npm): pino-pretty
- Outdated (npm): react
- Outdated (npm): react-dom
- Outdated (npm): zod
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-bec9913960dd4239a69b32431061dfd1/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-bec9913960dd4239a69b32431061dfd1/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 7 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 27 | artifacts/raw/trivy-fs.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 — 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 | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |