Executive summary
carlosazaustre/kata-users-ts 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 29 and is rated Weak. Its Observability 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 protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do and to resolve the 2 Floating npm dependency finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 42 to about 52.
22 findings are critical: 16 in Dependency Vulnerabilities and six in Static Analysis (SAST).
Watchdog couldn't measure 10 dimensions in this code, among them Navigability, Data Protection and Audit Trail, so they are left out of the score. The product code is 1,315 lines, which would take an estimated 0.1 person-years, around €2,300, to rebuild.
If Production Readiness rose from 29 to 70, the lowest score rated Strong, the score would rise from 42 to about 52.
New since the last survey: 5 findings
- Dependency Hygiene · Deprecated: next REDACTED
- Static Analysis (SAST) · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
Fixed since the last survey: 3 findings
- Dependency Vulnerabilities · Critical CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about €2,300 · Estimate
| Cost to rebuild | €750 to €3,800, for 12 to 40 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | High, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.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 | Very small: 1,315 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 core.src.shared.errors.ApplicationError | 2 core.src.shared.errors.DomainError | 3 core.src.shared.errors.InfrastructureError | 4 core.src.users.application.dto.UserInputDTO | 5 core.src.users.application.dto.UserOutputDTO | 6 core.src.users.domain.value-objects.Address_value | 7 core.src.users.domain.value-objects.Email_value | 8 core.src.users.domain.value-objects.Id_value | 9 core.src.users.domain.value-objects.Password_value | 10 core.src.users.infra.database.UserDBModel | 11 core.src.users.presentation.UsersView | 12 react-app.src.app | 13 react-app.src.users.actions | 14 react-app.src.users.views.UsersView | 15 react-app.src.users.views.components.AddUserModal | 16 react-app.src.users.views.components.UsersList | 17 terminal-app | 18 core.src | 19 core.src.shared.errors.PersistenceCorruptionError | 20 core.src.shared.errors.ValidationError | 21 core.src.users.application.errors.UserApplicationError | 22 core.src.users.domain.entities.User | 23 react-app.src.users.views | 24 react-app.src.users.views.components | 25 terminal-app.src.UsersTerminalView | 26 core.src.users.domain.errors.UserValidationError | 27 core.src.users.domain.repositories.UserRepository | 28 core.src.users.infra.errors.UserInfraError | 29 core.src.users.application.use-cases.AddNewUserUseCase | 30 core.src.users.application.use-cases.ListUsersUseCase | 31 core.src.users.infra.database.UserDatabaseRepository | 32 core.src.users.infra.memory.UserInMemoryRepository | 33 core.src.users.presentation.UsersPresenter |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 core.src.shared.errors.ApplicationError | |||||||||||||||||||||||||||||||||
| 2 core.src.shared.errors.DomainError | |||||||||||||||||||||||||||||||||
| 3 core.src.shared.errors.InfrastructureError | |||||||||||||||||||||||||||||||||
| 4 core.src.users.application.dto.UserInputDTO | |||||||||||||||||||||||||||||||||
| 5 core.src.users.application.dto.UserOutputDTO | |||||||||||||||||||||||||||||||||
| 6 core.src.users.domain.value-objects.Address_value | |||||||||||||||||||||||||||||||||
| 7 core.src.users.domain.value-objects.Email_value | |||||||||||||||||||||||||||||||||
| 8 core.src.users.domain.value-objects.Id_value | |||||||||||||||||||||||||||||||||
| 9 core.src.users.domain.value-objects.Password_value | |||||||||||||||||||||||||||||||||
| 10 core.src.users.infra.database.UserDBModel | |||||||||||||||||||||||||||||||||
| 11 core.src.users.presentation.UsersView | |||||||||||||||||||||||||||||||||
| 12 react-app.src.app | |||||||||||||||||||||||||||||||||
| 13 react-app.src.users.actions | |||||||||||||||||||||||||||||||||
| 14 react-app.src.users.views.UsersView | |||||||||||||||||||||||||||||||||
| 15 react-app.src.users.views.components.AddUserModal | |||||||||||||||||||||||||||||||||
| 16 react-app.src.users.views.components.UsersList | |||||||||||||||||||||||||||||||||
| 17 terminal-app | |||||||||||||||||||||||||||||||||
| 18 core.src | 1 | ||||||||||||||||||||||||||||||||
| 19 core.src.shared.errors.PersistenceCorruptionError | 1 | ||||||||||||||||||||||||||||||||
| 20 core.src.shared.errors.ValidationError | 1 | ||||||||||||||||||||||||||||||||
| 21 core.src.users.application.errors.UserApplicationError | 1 | ||||||||||||||||||||||||||||||||
| 22 core.src.users.domain.entities.User | 2 | 2 | 2 | 2 | |||||||||||||||||||||||||||||
| 23 react-app.src.users.views | 1 | ||||||||||||||||||||||||||||||||
| 24 react-app.src.users.views.components | 1 | 1 | |||||||||||||||||||||||||||||||
| 25 terminal-app.src.UsersTerminalView | 1 | ||||||||||||||||||||||||||||||||
| 26 core.src.users.domain.errors.UserValidationError | 1 | ||||||||||||||||||||||||||||||||
| 27 core.src.users.domain.repositories.UserRepository | 1 | 1 | 1 | ||||||||||||||||||||||||||||||
| 28 core.src.users.infra.errors.UserInfraError | 1 | ||||||||||||||||||||||||||||||||
| 29 core.src.users.application.use-cases.AddNewUserUseCase | 1 | 1 | |||||||||||||||||||||||||||||||
| 30 core.src.users.application.use-cases.ListUsersUseCase | 1 | ||||||||||||||||||||||||||||||||
| 31 core.src.users.infra.database.UserDatabaseRepository | 1 | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||
| 32 core.src.users.infra.memory.UserInMemoryRepository | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| 33 core.src.users.presentation.UsersPresenter | 1 | 1 | 1 |
18→11 core.src uses core.src.users.presentation.UsersView✕
- Connections
- 1 pair of types, where a type in core.src uses a type in core.src.users.presentation.UsersView.
- The types involved
packages.core.src.serviceLocator→packages.core.src.users.presentation.UsersView.UsersView
- Direction
- core.src uses core.src.users.presentation.UsersView, so a change to core.src.users.presentation.UsersView can break core.src, while a change to core.src can't break core.src.users.presentation.UsersView.
- Position
- Below the diagonal: core.src uses a module listed above it, which is the healthy direction.
19→3 core.src.shared.errors.PersistenceCorruptionError uses core.src.shared.errors.InfrastructureError✕
- Connections
- 1 pair of types, where a type in core.src.shared.errors.PersistenceCorruptionError uses a type in core.src.shared.errors.InfrastructureError.
- The types involved
packages.core.src.shared.errors.PersistenceCorruptionError.PersistenceCorruptionError→packages.core.src.shared.errors.InfrastructureError.InfrastructureError
- Direction
- core.src.shared.errors.PersistenceCorruptionError uses core.src.shared.errors.InfrastructureError, so a change to core.src.shared.errors.InfrastructureError can break core.src.shared.errors.PersistenceCorruptionError, while a change to core.src.shared.errors.PersistenceCorruptionError can't break core.src.shared.errors.InfrastructureError.
- Position
- Below the diagonal: core.src.shared.errors.PersistenceCorruptionError uses a module listed above it, which is the healthy direction.
20→2 core.src.shared.errors.ValidationError uses core.src.shared.errors.DomainError✕
- Connections
- 1 pair of types, where a type in core.src.shared.errors.ValidationError uses a type in core.src.shared.errors.DomainError.
- The types involved
packages.core.src.shared.errors.ValidationError.ValidationError→packages.core.src.shared.errors.DomainError.DomainError
- Direction
- core.src.shared.errors.ValidationError uses core.src.shared.errors.DomainError, so a change to core.src.shared.errors.DomainError can break core.src.shared.errors.ValidationError, while a change to core.src.shared.errors.ValidationError can't break core.src.shared.errors.DomainError.
- Position
- Below the diagonal: core.src.shared.errors.ValidationError uses a module listed above it, which is the healthy direction.
21→1 core.src.users.application.errors.UserApplicationError uses core.src.shared.errors.ApplicationError✕
- Connections
- 1 pair of types, where a type in core.src.users.application.errors.UserApplicationError uses a type in core.src.shared.errors.ApplicationError.
- The types involved
packages.core.src.users.application.errors.UserApplicationError.UserApplicationError→packages.core.src.shared.errors.ApplicationError.ApplicationError
- Direction
- core.src.users.application.errors.UserApplicationError uses core.src.shared.errors.ApplicationError, so a change to core.src.shared.errors.ApplicationError can break core.src.users.application.errors.UserApplicationError, while a change to core.src.users.application.errors.UserApplicationError can't break core.src.shared.errors.ApplicationError.
- Position
- Below the diagonal: core.src.users.application.errors.UserApplicationError uses a module listed above it, which is the healthy direction.
22→6 core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Address_value✕
- Connections
- 2 pairs of types, where a type in core.src.users.domain.entities.User uses a type in core.src.users.domain.value-objects.Address_value.
- The types involved
packages.core.src.users.domain.entities.User.User→packages.core.src.users.domain.value-objects.Address_value.Addresspackages.core.src.users.domain.entities.User.UserData→packages.core.src.users.domain.value-objects.Address_value.Address
- Direction
- core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Address_value, so a change to core.src.users.domain.value-objects.Address_value can break core.src.users.domain.entities.User, while a change to core.src.users.domain.entities.User can't break core.src.users.domain.value-objects.Address_value.
- Position
- Below the diagonal: core.src.users.domain.entities.User uses a module listed above it, which is the healthy direction.
22→7 core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Email_value✕
- Connections
- 2 pairs of types, where a type in core.src.users.domain.entities.User uses a type in core.src.users.domain.value-objects.Email_value.
- The types involved
packages.core.src.users.domain.entities.User.User→packages.core.src.users.domain.value-objects.Email_value.Emailpackages.core.src.users.domain.entities.User.UserData→packages.core.src.users.domain.value-objects.Email_value.Email
- Direction
- core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Email_value, so a change to core.src.users.domain.value-objects.Email_value can break core.src.users.domain.entities.User, while a change to core.src.users.domain.entities.User can't break core.src.users.domain.value-objects.Email_value.
- Position
- Below the diagonal: core.src.users.domain.entities.User uses a module listed above it, which is the healthy direction.
22→8 core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Id_value✕
- Connections
- 2 pairs of types, where a type in core.src.users.domain.entities.User uses a type in core.src.users.domain.value-objects.Id_value.
- The types involved
packages.core.src.users.domain.entities.User.User→packages.core.src.users.domain.value-objects.Id_value.Idpackages.core.src.users.domain.entities.User.UserData→packages.core.src.users.domain.value-objects.Id_value.Id
- Direction
- core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Id_value, so a change to core.src.users.domain.value-objects.Id_value can break core.src.users.domain.entities.User, while a change to core.src.users.domain.entities.User can't break core.src.users.domain.value-objects.Id_value.
- Position
- Below the diagonal: core.src.users.domain.entities.User uses a module listed above it, which is the healthy direction.
22→9 core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Password_value✕
- Connections
- 2 pairs of types, where a type in core.src.users.domain.entities.User uses a type in core.src.users.domain.value-objects.Password_value.
- The types involved
packages.core.src.users.domain.entities.User.User→packages.core.src.users.domain.value-objects.Password_value.Passwordpackages.core.src.users.domain.entities.User.UserData→packages.core.src.users.domain.value-objects.Password_value.Password
- Direction
- core.src.users.domain.entities.User uses core.src.users.domain.value-objects.Password_value, so a change to core.src.users.domain.value-objects.Password_value can break core.src.users.domain.entities.User, while a change to core.src.users.domain.entities.User can't break core.src.users.domain.value-objects.Password_value.
- Position
- Below the diagonal: core.src.users.domain.entities.User uses a module listed above it, which is the healthy direction.
23→14 react-app.src.users.views uses react-app.src.users.views.UsersView✕
- Connections
- 1 pair of types, where a type in react-app.src.users.views uses a type in react-app.src.users.views.UsersView.
- The types involved
packages.react-app.src.users.views.UsersView→packages.react-app.src.users.views.UsersView.UsersViewProps
- Direction
- react-app.src.users.views uses react-app.src.users.views.UsersView, so a change to react-app.src.users.views.UsersView can break react-app.src.users.views, while a change to react-app.src.users.views can't break react-app.src.users.views.UsersView.
- Position
- Below the diagonal: react-app.src.users.views uses a module listed above it, which is the healthy direction.
24→15 react-app.src.users.views.components uses react-app.src.users.views.components.AddUserModal✕
- Connections
- 1 pair of types, where a type in react-app.src.users.views.components uses a type in react-app.src.users.views.components.AddUserModal.
- The types involved
packages.react-app.src.users.views.components.AddUserModal→packages.react-app.src.users.views.components.AddUserModal.AddUserModalProps
- Direction
- react-app.src.users.views.components uses react-app.src.users.views.components.AddUserModal, so a change to react-app.src.users.views.components.AddUserModal can break react-app.src.users.views.components, while a change to react-app.src.users.views.components can't break react-app.src.users.views.components.AddUserModal.
- Position
- Below the diagonal: react-app.src.users.views.components uses a module listed above it, which is the healthy direction.
24→16 react-app.src.users.views.components uses react-app.src.users.views.components.UsersList✕
- Connections
- 1 pair of types, where a type in react-app.src.users.views.components uses a type in react-app.src.users.views.components.UsersList.
- The types involved
packages.react-app.src.users.views.components.UsersList→packages.react-app.src.users.views.components.UsersList.UsersListProps
- Direction
- react-app.src.users.views.components uses react-app.src.users.views.components.UsersList, so a change to react-app.src.users.views.components.UsersList can break react-app.src.users.views.components, while a change to react-app.src.users.views.components can't break react-app.src.users.views.components.UsersList.
- Position
- Below the diagonal: react-app.src.users.views.components uses a module listed above it, which is the healthy direction.
25→11 terminal-app.src.UsersTerminalView uses core.src.users.presentation.UsersView✕
- Connections
- 1 pair of types, where a type in terminal-app.src.UsersTerminalView uses a type in core.src.users.presentation.UsersView.
- The types involved
packages.terminal-app.src.UsersTerminalView.UsersTerminalView→packages.core.src.users.presentation.UsersView.UsersView
- Direction
- terminal-app.src.UsersTerminalView uses core.src.users.presentation.UsersView, so a change to core.src.users.presentation.UsersView can break terminal-app.src.UsersTerminalView, while a change to terminal-app.src.UsersTerminalView can't break core.src.users.presentation.UsersView.
- Position
- Below the diagonal: terminal-app.src.UsersTerminalView uses a module listed above it, which is the healthy direction.
26→20 core.src.users.domain.errors.UserValidationError uses core.src.shared.errors.ValidationError✕
- Connections
- 1 pair of types, where a type in core.src.users.domain.errors.UserValidationError uses a type in core.src.shared.errors.ValidationError.
- The types involved
packages.core.src.users.domain.errors.UserValidationError.UserValidationError→packages.core.src.shared.errors.ValidationError.ValidationError
- Direction
- core.src.users.domain.errors.UserValidationError uses core.src.shared.errors.ValidationError, so a change to core.src.shared.errors.ValidationError can break core.src.users.domain.errors.UserValidationError, while a change to core.src.users.domain.errors.UserValidationError can't break core.src.shared.errors.ValidationError.
- Position
- Below the diagonal: core.src.users.domain.errors.UserValidationError uses a module listed above it, which is the healthy direction.
27→7 core.src.users.domain.repositories.UserRepository uses core.src.users.domain.value-objects.Email_value✕
- Connections
- 1 pair of types, where a type in core.src.users.domain.repositories.UserRepository uses a type in core.src.users.domain.value-objects.Email_value.
- The types involved
packages.core.src.users.domain.repositories.UserRepository.UserRepository→packages.core.src.users.domain.value-objects.Email_value.Email
- Direction
- core.src.users.domain.repositories.UserRepository uses core.src.users.domain.value-objects.Email_value, so a change to core.src.users.domain.value-objects.Email_value can break core.src.users.domain.repositories.UserRepository, while a change to core.src.users.domain.repositories.UserRepository can't break core.src.users.domain.value-objects.Email_value.
- Position
- Below the diagonal: core.src.users.domain.repositories.UserRepository uses a module listed above it, which is the healthy direction.
27→8 core.src.users.domain.repositories.UserRepository uses core.src.users.domain.value-objects.Id_value✕
- Connections
- 1 pair of types, where a type in core.src.users.domain.repositories.UserRepository uses a type in core.src.users.domain.value-objects.Id_value.
- The types involved
packages.core.src.users.domain.repositories.UserRepository.UserRepository→packages.core.src.users.domain.value-objects.Id_value.Id
- Direction
- core.src.users.domain.repositories.UserRepository uses core.src.users.domain.value-objects.Id_value, so a change to core.src.users.domain.value-objects.Id_value can break core.src.users.domain.repositories.UserRepository, while a change to core.src.users.domain.repositories.UserRepository can't break core.src.users.domain.value-objects.Id_value.
- Position
- Below the diagonal: core.src.users.domain.repositories.UserRepository uses a module listed above it, which is the healthy direction.
27→22 core.src.users.domain.repositories.UserRepository uses core.src.users.domain.entities.User✕
- Connections
- 1 pair of types, where a type in core.src.users.domain.repositories.UserRepository uses a type in core.src.users.domain.entities.User.
- The types involved
packages.core.src.users.domain.repositories.UserRepository.UserRepository→packages.core.src.users.domain.entities.User.User
- Direction
- core.src.users.domain.repositories.UserRepository uses core.src.users.domain.entities.User, so a change to core.src.users.domain.entities.User can break core.src.users.domain.repositories.UserRepository, while a change to core.src.users.domain.repositories.UserRepository can't break core.src.users.domain.entities.User.
- Position
- Below the diagonal: core.src.users.domain.repositories.UserRepository uses a module listed above it, which is the healthy direction.
28→19 core.src.users.infra.errors.UserInfraError uses core.src.shared.errors.PersistenceCorruptionError✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.errors.UserInfraError uses a type in core.src.shared.errors.PersistenceCorruptionError.
- The types involved
packages.core.src.users.infra.errors.UserInfraError.UserPersistenceOnDbCorruptionError→packages.core.src.shared.errors.PersistenceCorruptionError.PersistenceCorruptionError
- Direction
- core.src.users.infra.errors.UserInfraError uses core.src.shared.errors.PersistenceCorruptionError, so a change to core.src.shared.errors.PersistenceCorruptionError can break core.src.users.infra.errors.UserInfraError, while a change to core.src.users.infra.errors.UserInfraError can't break core.src.shared.errors.PersistenceCorruptionError.
- Position
- Below the diagonal: core.src.users.infra.errors.UserInfraError uses a module listed above it, which is the healthy direction.
29→4 core.src.users.application.use-cases.AddNewUserUseCase uses core.src.users.application.dto.UserInputDTO✕
- Connections
- 1 pair of types, where a type in core.src.users.application.use-cases.AddNewUserUseCase uses a type in core.src.users.application.dto.UserInputDTO.
- The types involved
packages.core.src.users.application.use-cases.AddNewUserUseCase.AddNewUserUseCase→packages.core.src.users.application.dto.UserInputDTO.UserInputDTO
- Direction
- core.src.users.application.use-cases.AddNewUserUseCase uses core.src.users.application.dto.UserInputDTO, so a change to core.src.users.application.dto.UserInputDTO can break core.src.users.application.use-cases.AddNewUserUseCase, while a change to core.src.users.application.use-cases.AddNewUserUseCase can't break core.src.users.application.dto.UserInputDTO.
- Position
- Below the diagonal: core.src.users.application.use-cases.AddNewUserUseCase uses a module listed above it, which is the healthy direction.
29→27 core.src.users.application.use-cases.AddNewUserUseCase uses core.src.users.domain.repositories.UserRepository✕
- Connections
- 1 pair of types, where a type in core.src.users.application.use-cases.AddNewUserUseCase uses a type in core.src.users.domain.repositories.UserRepository.
- The types involved
packages.core.src.users.application.use-cases.AddNewUserUseCase.AddNewUserUseCase→packages.core.src.users.domain.repositories.UserRepository.UserRepository
- Direction
- core.src.users.application.use-cases.AddNewUserUseCase uses core.src.users.domain.repositories.UserRepository, so a change to core.src.users.domain.repositories.UserRepository can break core.src.users.application.use-cases.AddNewUserUseCase, while a change to core.src.users.application.use-cases.AddNewUserUseCase can't break core.src.users.domain.repositories.UserRepository.
- Position
- Below the diagonal: core.src.users.application.use-cases.AddNewUserUseCase uses a module listed above it, which is the healthy direction.
30→27 core.src.users.application.use-cases.ListUsersUseCase uses core.src.users.domain.repositories.UserRepository✕
- Connections
- 1 pair of types, where a type in core.src.users.application.use-cases.ListUsersUseCase uses a type in core.src.users.domain.repositories.UserRepository.
- The types involved
packages.core.src.users.application.use-cases.ListUsersUseCase.ListUsersUseCase→packages.core.src.users.domain.repositories.UserRepository.UserRepository
- Direction
- core.src.users.application.use-cases.ListUsersUseCase uses core.src.users.domain.repositories.UserRepository, so a change to core.src.users.domain.repositories.UserRepository can break core.src.users.application.use-cases.ListUsersUseCase, while a change to core.src.users.application.use-cases.ListUsersUseCase can't break core.src.users.domain.repositories.UserRepository.
- Position
- Below the diagonal: core.src.users.application.use-cases.ListUsersUseCase uses a module listed above it, which is the healthy direction.
31→7 core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.value-objects.Email_value✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.database.UserDatabaseRepository uses a type in core.src.users.domain.value-objects.Email_value.
- The types involved
packages.core.src.users.infra.database.UserDatabaseRepository.UserDatabaseRepository→packages.core.src.users.domain.value-objects.Email_value.Email
- Direction
- core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.value-objects.Email_value, so a change to core.src.users.domain.value-objects.Email_value can break core.src.users.infra.database.UserDatabaseRepository, while a change to core.src.users.infra.database.UserDatabaseRepository can't break core.src.users.domain.value-objects.Email_value.
- Position
- Below the diagonal: core.src.users.infra.database.UserDatabaseRepository uses a module listed above it, which is the healthy direction.
31→8 core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.value-objects.Id_value✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.database.UserDatabaseRepository uses a type in core.src.users.domain.value-objects.Id_value.
- The types involved
packages.core.src.users.infra.database.UserDatabaseRepository.UserDatabaseRepository→packages.core.src.users.domain.value-objects.Id_value.Id
- Direction
- core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.value-objects.Id_value, so a change to core.src.users.domain.value-objects.Id_value can break core.src.users.infra.database.UserDatabaseRepository, while a change to core.src.users.infra.database.UserDatabaseRepository can't break core.src.users.domain.value-objects.Id_value.
- Position
- Below the diagonal: core.src.users.infra.database.UserDatabaseRepository uses a module listed above it, which is the healthy direction.
31→10 core.src.users.infra.database.UserDatabaseRepository uses core.src.users.infra.database.UserDBModel✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.database.UserDatabaseRepository uses a type in core.src.users.infra.database.UserDBModel.
- The types involved
packages.core.src.users.infra.database.UserDatabaseRepository.UserDatabaseRepository→packages.core.src.users.infra.database.UserDBModel.UserModel
- Direction
- core.src.users.infra.database.UserDatabaseRepository uses core.src.users.infra.database.UserDBModel, so a change to core.src.users.infra.database.UserDBModel can break core.src.users.infra.database.UserDatabaseRepository, while a change to core.src.users.infra.database.UserDatabaseRepository can't break core.src.users.infra.database.UserDBModel.
- Position
- Below the diagonal: core.src.users.infra.database.UserDatabaseRepository uses a module listed above it, which is the healthy direction.
31→22 core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.entities.User✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.database.UserDatabaseRepository uses a type in core.src.users.domain.entities.User.
- The types involved
packages.core.src.users.infra.database.UserDatabaseRepository.UserDatabaseRepository→packages.core.src.users.domain.entities.User.User
- Direction
- core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.entities.User, so a change to core.src.users.domain.entities.User can break core.src.users.infra.database.UserDatabaseRepository, while a change to core.src.users.infra.database.UserDatabaseRepository can't break core.src.users.domain.entities.User.
- Position
- Below the diagonal: core.src.users.infra.database.UserDatabaseRepository uses a module listed above it, which is the healthy direction.
31→27 core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.repositories.UserRepository✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.database.UserDatabaseRepository uses a type in core.src.users.domain.repositories.UserRepository.
- The types involved
packages.core.src.users.infra.database.UserDatabaseRepository.UserDatabaseRepository→packages.core.src.users.domain.repositories.UserRepository.UserRepository
- Direction
- core.src.users.infra.database.UserDatabaseRepository uses core.src.users.domain.repositories.UserRepository, so a change to core.src.users.domain.repositories.UserRepository can break core.src.users.infra.database.UserDatabaseRepository, while a change to core.src.users.infra.database.UserDatabaseRepository can't break core.src.users.domain.repositories.UserRepository.
- Position
- Below the diagonal: core.src.users.infra.database.UserDatabaseRepository uses a module listed above it, which is the healthy direction.
32→7 core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.value-objects.Email_value✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.memory.UserInMemoryRepository uses a type in core.src.users.domain.value-objects.Email_value.
- The types involved
packages.core.src.users.infra.memory.UserInMemoryRepository.UserInMemoryRepository→packages.core.src.users.domain.value-objects.Email_value.Email
- Direction
- core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.value-objects.Email_value, so a change to core.src.users.domain.value-objects.Email_value can break core.src.users.infra.memory.UserInMemoryRepository, while a change to core.src.users.infra.memory.UserInMemoryRepository can't break core.src.users.domain.value-objects.Email_value.
- Position
- Below the diagonal: core.src.users.infra.memory.UserInMemoryRepository uses a module listed above it, which is the healthy direction.
32→8 core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.value-objects.Id_value✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.memory.UserInMemoryRepository uses a type in core.src.users.domain.value-objects.Id_value.
- The types involved
packages.core.src.users.infra.memory.UserInMemoryRepository.UserInMemoryRepository→packages.core.src.users.domain.value-objects.Id_value.Id
- Direction
- core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.value-objects.Id_value, so a change to core.src.users.domain.value-objects.Id_value can break core.src.users.infra.memory.UserInMemoryRepository, while a change to core.src.users.infra.memory.UserInMemoryRepository can't break core.src.users.domain.value-objects.Id_value.
- Position
- Below the diagonal: core.src.users.infra.memory.UserInMemoryRepository uses a module listed above it, which is the healthy direction.
32→22 core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.entities.User✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.memory.UserInMemoryRepository uses a type in core.src.users.domain.entities.User.
- The types involved
packages.core.src.users.infra.memory.UserInMemoryRepository.UserInMemoryRepository→packages.core.src.users.domain.entities.User.User
- Direction
- core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.entities.User, so a change to core.src.users.domain.entities.User can break core.src.users.infra.memory.UserInMemoryRepository, while a change to core.src.users.infra.memory.UserInMemoryRepository can't break core.src.users.domain.entities.User.
- Position
- Below the diagonal: core.src.users.infra.memory.UserInMemoryRepository uses a module listed above it, which is the healthy direction.
32→27 core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.repositories.UserRepository✕
- Connections
- 1 pair of types, where a type in core.src.users.infra.memory.UserInMemoryRepository uses a type in core.src.users.domain.repositories.UserRepository.
- The types involved
packages.core.src.users.infra.memory.UserInMemoryRepository.UserInMemoryRepository→packages.core.src.users.domain.repositories.UserRepository.UserRepository
- Direction
- core.src.users.infra.memory.UserInMemoryRepository uses core.src.users.domain.repositories.UserRepository, so a change to core.src.users.domain.repositories.UserRepository can break core.src.users.infra.memory.UserInMemoryRepository, while a change to core.src.users.infra.memory.UserInMemoryRepository can't break core.src.users.domain.repositories.UserRepository.
- Position
- Below the diagonal: core.src.users.infra.memory.UserInMemoryRepository uses a module listed above it, which is the healthy direction.
33→11 core.src.users.presentation.UsersPresenter uses core.src.users.presentation.UsersView✕
- Connections
- 1 pair of types, where a type in core.src.users.presentation.UsersPresenter uses a type in core.src.users.presentation.UsersView.
- The types involved
packages.core.src.users.presentation.UsersPresenter.UsersPresenter→packages.core.src.users.presentation.UsersView.UsersView
- Direction
- core.src.users.presentation.UsersPresenter uses core.src.users.presentation.UsersView, so a change to core.src.users.presentation.UsersView can break core.src.users.presentation.UsersPresenter, while a change to core.src.users.presentation.UsersPresenter can't break core.src.users.presentation.UsersView.
- Position
- Below the diagonal: core.src.users.presentation.UsersPresenter uses a module listed above it, which is the healthy direction.
33→29 core.src.users.presentation.UsersPresenter uses core.src.users.application.use-cases.AddNewUserUseCase✕
- Connections
- 1 pair of types, where a type in core.src.users.presentation.UsersPresenter uses a type in core.src.users.application.use-cases.AddNewUserUseCase.
- The types involved
packages.core.src.users.presentation.UsersPresenter.UsersPresenter→packages.core.src.users.application.use-cases.AddNewUserUseCase.AddNewUserUseCase
- Direction
- core.src.users.presentation.UsersPresenter uses core.src.users.application.use-cases.AddNewUserUseCase, so a change to core.src.users.application.use-cases.AddNewUserUseCase can break core.src.users.presentation.UsersPresenter, while a change to core.src.users.presentation.UsersPresenter can't break core.src.users.application.use-cases.AddNewUserUseCase.
- Position
- Below the diagonal: core.src.users.presentation.UsersPresenter uses a module listed above it, which is the healthy direction.
33→30 core.src.users.presentation.UsersPresenter uses core.src.users.application.use-cases.ListUsersUseCase✕
- Connections
- 1 pair of types, where a type in core.src.users.presentation.UsersPresenter uses a type in core.src.users.application.use-cases.ListUsersUseCase.
- The types involved
packages.core.src.users.presentation.UsersPresenter.UsersPresenter→packages.core.src.users.application.use-cases.ListUsersUseCase.ListUsersUseCase
- Direction
- core.src.users.presentation.UsersPresenter uses core.src.users.application.use-cases.ListUsersUseCase, so a change to core.src.users.application.use-cases.ListUsersUseCase can break core.src.users.presentation.UsersPresenter, while a change to core.src.users.presentation.UsersPresenter can't break core.src.users.application.use-cases.ListUsersUseCase.
- Position
- Below the diagonal: core.src.users.presentation.UsersPresenter 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 — Accessibility
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 19 | High / Critical |
| A05:2025 — Injection | 9 | High / Critical |
| A02:2025 — Security Misconfiguration | 1 | Medium |
Roadmap
First, secure the application by implementing a global authentication guard with explicit public opt-outs and named role permissions. Next, establish observability by integrating a logging library and adding health checks to key services. Then, enforce security by adding a static analysis step to the CI pipeline to block regressions. Finally, codify disaster recovery procedures with documented RTO/RPO and resolve the identified low code coverage findings.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. | +9.1 pts | Medium | Access Controls |
| Resolve the 2 Floating npm dependency finding(s) in Dependency Hygiene. | +2.9 pts | Low | Dependency Hygiene |
| Resolve the 1 Deprecated finding(s) in Dependency Hygiene — start with REDACTED. | +1.8 pts | Low | Dependency Hygiene |
| Adopt pino (or winston) and log at meaningful points in the services you run. | +3.3 pts | Medium | Observability |
| Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing. | +3.3 pts | Medium | Security & performance tooling |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +3.3 pts | Medium | DR & Backup |
| Resolve the 23 Low coverage finding(s) in Code Coverage — start with index.ts (4), serviceLocator.ts, environments.ts. | +3.1 pts | Medium | Code Coverage |
| Resolve the 13 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (13). | +2.8 pts | Medium | Dependency Vulnerabilities |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.6 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 0.8 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.7 | Mixed | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 6.4 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| packages/react-app/src/users/views/components/AddUserModal.tsx | 7.0 | Near-clean | God Classes: FunctionTooLong: AddUserModal.AddUserModal |
| packages/terminal-app/src/UsersTerminalView.ts | 7.0 | Near-clean | Cohesion (LCOM4): Low cohesion: UsersTerminalView (LCOM4 5) |
| REDACTED | 7.9 | Near-clean | IaC & Container Security: Medium IaC: REDACTED |
| packages/core/src/index.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/index.ts |
| packages/core/src/serviceLocator.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/serviceLocator.ts |
| packages/core/src/shared/index.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/shared/index.ts |
| packages/core/src/shared/config/environments.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/shared/config/environments.ts |
| packages/core/src/shared/errors/InfrastructureError.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/shared/errors/InfrastructureError.ts |
| packages/core/src/shared/errors/PersistenceCorruptionError.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/shared/errors/PersistenceCorruptionError.ts |
| packages/core/src/shared/infra/connections/MongoConnection.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/shared/infra/connections/MongoConnection.ts |
| packages/core/src/users/index.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/users/index.ts |
| packages/core/src/users/infra/database/UserPersistenceMapper.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/users/infra/database/UserPersistenceMapper.ts |
| packages/core/src/users/infra/errors/UserInfraError.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/users/infra/errors/UserInfraError.ts |
| packages/core/src/users/infra/memory/UserInMemoryRepository.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/core/src/users/infra/memory/UserInMemoryRepository.ts |
| packages/react-app/next.config.ts | 8.5 | Near-clean | Code Coverage: Low coverage: packages/react-app/next.config.ts |
| packages/react-app/src/app/layout.tsx | 8.5 | Near-clean | Code Coverage: Low coverage: packages/react-app/src/app/layout.tsx |
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. 85 of 89 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 89 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, 84 of 102 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 66 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.
- 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.
- AX1 Captive dependencies — 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 Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in packages/core/src/serviceLocator.ts, whose lifetimes are not modelled yet, 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.
- 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 DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — mongodb Pulling mongodb Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: mongodb Pulling mongodb Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
- 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 (packages/core/src/shared/infra/connections/MongoConnection.ts:1), 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 (packages/core/src/shared/infra/connections/MongoConnection.ts:1), 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 (packages/core/src/shared/infra/connections/MongoConnection.ts:1), 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 (packages/core/src/shared/infra/connections/MongoConnection.ts:1), 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.
- 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. 41 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.
- X4 Structured logging — 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, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, 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.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- 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.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a 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.
- AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
- AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
- AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
1 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 1 FunctionTooLong finding(s) in God Classes — start with AddUserModal.tsx. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D5 · Coupling
3 production modules (npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 1 module(s) off the main sequence.
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
1 of 4 classes have LCOM4 above 3.
What to do
- Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with UsersTerminalView.ts. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D8 · Code Coverage
Line coverage 28.8% — 23 file(s) below 50%. Measured from the JavaScript/TypeScript suite (vitest + @vitest/coverage-v8 via `npm ci --ignore-scripts` in the repository root; vitest + @vitest/coverage-v8 via `npm ci --ignore-scripts` in packages/core/).
What to do
- Resolve the 23 Low coverage finding(s) in Code Coverage — start with index.ts (4), serviceLocator.ts, environments.ts. — One of this dimension's main actionable groups (23 warning-level).
- Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
38 test methods: 38 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 38 `it`/`test` case(s) across 8 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 38 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in the repository root (38 tests); vitest via `npm ci --ignore-scripts` in packages/core/ (38 tests)): measured (0 flaky).
D12 · Dependency Hygiene
6 outdated direct production npm dependency(ies) of 7 graded, 2 pinning defect(s), across 4 REDACTED (4 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 1 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
- Resolve the 2 Floating npm dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Deprecated finding(s) in Dependency Hygiene — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 7 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 7 production dependency(ies) this repository's committed lockfile resolves, across 4 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. This repository publishes itself under MIT, which is its own choice and is not judged here.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 1315 LoC (0.0/KLoC) → score 10.0. 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.
D19 · Documentation Quality
The repository's root README is a well-written Clean Architecture overview with clear functional requirements (display users, add new user with name/email/password constraints), development platform choices, and an extra challenge section. The packages/react-app/README is a Next.js project README that documents the directory it lives in rather than the repository as a whole; it has installation/getting-started content but no architecture or design docs. Both are well written for their purposes.
What to do
- Improve Documentation Quality — currently 7.0/10. — The repository's root README is a well-written Clean Architecture overview with clear functional requirements (display users, add new user with name/email/password constraints), development platform choices, and an extra challenge section. The packages/react-app/README is a Next.js project README that documents the directory it lives in rather than the repository as a whole; it has installation/getting-started content but no architecture or design docs. Both are well written for their purposes.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
0 API inconsistencies across 4 exposed types.
D23 · Boundary Type-Coupling
No domain types leak across context boundaries (3 contexts).
D26 · Project Cohesion
0 of 3 build units (npm) flagged as possibly oversized/incoherent.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
9 finding(s): 0 critical, 6 high, 3 medium, 0 low. 4 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens.
What to do
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- No action in Static Analysis (SAST) — all 4 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (4 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
19 finding(s): 3 critical, 13 high, 2 medium, 1 low.
What to do
- Resolve the 13 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (13). — One of this dimension's main actionable groups (13 issue-level).
- Resolve the 3 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
- Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
D31 · IaC & Container Security
1 finding(s): 0 critical, 0 high, 1 medium, 0 low.
What to do
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D34 · Knowledge Freshness
6 of 6 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/react-app/src/users/views/components/AddUserModal.tsx. Counted over 6 of the 43 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 6 Orphaned file finding(s) in Knowledge Freshness — start with AddUserModal.tsx, UsersPresenter.ts, REDACTED. — One of this dimension's main actionable groups (6 recommendation-level).
- Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
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 4 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
AC2 · Forms & labels
- A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child — or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption's id instead, which names the group without rendering a second one. — packages/react-app/src/users/views/components/AddUserModal.tsx:76
What to do
- Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — packages/react-app/src/app/layout.tsx:17
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics
AC5 · ARIA correctness
AC6 · Visual & motion safety
AC7 · A11y enforcement
- No accessibility enforcement found — your Biome config enables no a11y rules and there's no axe/pa11y/Lighthouse in tests or CI. Start by turning on Biome's own a11y rule group to catch issues at author time. What was searched, so you can tell an absence from a miss: the 6 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the toolchain you already use: enable Biome's a11y rule group in your biome.json `linter.rules` (it is off whenever `recommended` is false and the group is unlisted), then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
C2 · Access Controls
- This repository serves requests — server actions ("use server") in packages/react-app/src/users/actions/userActions.ts (packages/react-app/src/users/actions/userActions.ts:1) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — packages/react-app/src/users/actions/userActions.ts:1
What to do
- Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
DM1 · Aggregate boundaries
DM10 · One transaction, one aggregate
DM11 · Constructible invalid state
DM4 · Rich vs anemic model
- `User` is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — packages/core/src/users/domain/entities/User.ts:26
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add a README to the 2 of 3 project(s) that lack one — worth up to 1.3 pts.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P10 · Library API & versioning
P2 · Observability
- No logging call was found in the 41 JavaScript/TypeScript production file(s) this check read across 3 module(s). Each was searched for its ecosystem's logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
What to do
- Adopt pino (or winston) and log at meaningful points in the services you run.
- 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 as a CI step. What was searched, so you can tell an absence from a miss: the 1334 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
- Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
- Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P9 · Domain vs controller coverage
What to do
- Raise domain coverage toward 100% — cover the remaining aggregates / value objects / domain services where the business invariants and costly bugs live.
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
- REDACTED:22 · REDACTED:39 — 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:22
- packages/core/src/users/presentation/UsersPresenter.ts:60 · packages/core/src/users/presentation/UsersPresenter.ts:89 — the two spans are one implementation copied and then locally edited — 84 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. — packages/core/src/users/presentation/UsersPresenter.ts:60
- packages/core/src/users/domain/value-objects/Email.value.ts:8 · packages/core/src/users/domain/value-objects/Password.value.ts:7 — the 2 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. — packages/core/src/users/domain/value-objects/Email.value.ts:8
- packages/core/src/users/domain/repositories/UserRepository.ts:6 · packages/core/src/users/infra/memory/UserInMemoryRepository.ts:9 — the two spans are one implementation copied and then locally edited — 60 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. — packages/core/src/users/domain/repositories/UserRepository.ts:6
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
R3 · Large Files
R4 · Test Coverage
- vitest.config.ts declares environment "node", and no package here declares a DOM implementation (jsdom / happy-dom), a component testing library or a browser runner — so none of the 6 unreached component module(s) can be tested as written, however the suite is authored: packages/react-app/src/users/views/components/AddUserModal.tsx, packages/react-app/src/users/views/UsersView.tsx, packages/react-app/src/users/views/components/UsersList.tsx, packages/react-app/src/users/views/components/SuccessMessage.tsx, packages/react-app/src/app/layout.tsx, packages/react-app/src/app/page.tsx. Add a DOM environment and a component testing library (for example jsdom + @testing-library, or the runner's browser mode), then test the components. Reported once because these files share one cause, not one omission each. — vitest.config.ts:1
- No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×12) — REDACTED:1, packages/terminal-app/src/UsersTerminalView.ts:1, packages/core/src/serviceLocator.ts:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
R7 · Dead Code
- 1 file(s) (~14 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
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.
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
X5 · Nullable reference types
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC4 · Keyboard semantics | 2.1.1, 2.4.3 | Partial signal |
| AC5 · ARIA correctness | 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 96% | Exemplary | Solid. |
| Architecture | 69% | Strong | Solid. |
| Maturity | 70% | Adequate — gated by D34 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 29% | Weak — gated by P2, P3, P5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 33% | Weak — gated by D30, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 80% | Adequate — gated by DM4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Accessibility | 64% | Strong | Solid. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 2 check(s) recorded observations but carry no score
- D36 Supply-chain Provenance & Signing — 1 observation(s) recorded · The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: this repository stores data through 'mongodb' (packages/core/src/shared/infra/connections/MongoConnection.ts:1) 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' (packages/core/src/shared/infra/connections/MongoConnection.ts:1) 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' (packages/core/src/shared/infra/connections/MongoConnection.ts:1) 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.
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 46 check(s) not relevant to this codebase
- AC1 Text alternatives — No image/media element found in the parsed markup — AC1 not applicable here.
- AX1 Captive dependencies — 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
- 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).
- 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 — compose up failed (exit 18 — an image could not be pulled) — mongodb Pulling mongodb Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: mongodb Pulling mongodb Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: this repository stores data through 'mongodb' (packages/core/src/shared/infra/connections/MongoConnection.ts:1) 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.
- 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.
- 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.
- 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.
- 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.
- 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
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- 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
- M2 Architecture documentation — This repo declares itself a template / kata / sample / demo — formal architecture documentation (ADRs, C4 diagrams) is deferred to a real application built from it, so its absence is not a defect here.
- 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
- 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.
- S1 Web-Security Posture — Not assessed: 41 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.
- X4 Structured logging — 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
- 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 — 22 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 62 finding(s)
- Low coverage: packages/core/src/index.ts packages/core/src/index.ts:1
- Low coverage: packages/core/src/serviceLocator.ts packages/core/src/serviceLocator.ts:1
- Low coverage: packages/core/src/shared/index.ts packages/core/src/shared/index.ts:1
- Low coverage: packages/core/src/shared/config/environments.ts packages/core/src/shared/config/environments.ts:1
- Low coverage: packages/core/src/shared/errors/InfrastructureError.ts packages/core/src/shared/errors/InfrastructureError.ts:1
- Low coverage: packages/core/src/shared/errors/PersistenceCorruptionError.ts packages/core/src/shared/errors/PersistenceCorruptionError.ts:1
- Low coverage: packages/core/src/shared/infra/connections/MongoConnection.ts packages/core/src/shared/infra/connections/MongoConnection.ts:1
- Low coverage: packages/core/src/users/index.ts packages/core/src/users/index.ts:1
- Low coverage: REDACTED REDACTED:1
- Low coverage: packages/core/src/users/infra/database/UserPersistenceMapper.ts packages/core/src/users/infra/database/UserPersistenceMapper.ts:1
- Low coverage: packages/core/src/users/infra/errors/UserInfraError.ts packages/core/src/users/infra/errors/UserInfraError.ts:1
- Low coverage: packages/core/src/users/infra/memory/UserInMemoryRepository.ts packages/core/src/users/infra/memory/UserInMemoryRepository.ts:1
- Low coverage: packages/react-app/next.config.ts packages/react-app/next.config.ts:1
- Low coverage: packages/react-app/src/app/layout.tsx packages/react-app/src/app/layout.tsx:1
- Low coverage: packages/react-app/src/app/page.tsx packages/react-app/src/app/page.tsx:1
- Low coverage: packages/react-app/src/users/actions/userActions.ts packages/react-app/src/users/actions/userActions.ts:1
- Low coverage: packages/react-app/src/users/controllers/UsersController.ts packages/react-app/src/users/controllers/UsersController.ts:1
- Low coverage: packages/react-app/src/users/views/UsersView.tsx packages/react-app/src/users/views/UsersView.tsx:1
- Low coverage: packages/react-app/src/users/views/components/AddUserModal.tsx packages/react-app/src/users/views/components/AddUserModal.tsx:1
- Low coverage: packages/react-app/src/users/views/components/SuccessMessage.tsx packages/react-app/src/users/views/components/SuccessMessage.tsx:1
- Low coverage: packages/react-app/src/users/views/components/UsersList.tsx packages/react-app/src/users/views/components/UsersList.tsx:1
- Low coverage: packages/terminal-app/src/UsersTerminalView.ts packages/terminal-app/src/UsersTerminalView.ts:1
- Low coverage: packages/terminal-app/src/index.ts packages/terminal-app/src/index.ts:1
- No test reaches this file REDACTED:1
- No test reaches this file packages/terminal-app/src/UsersTerminalView.ts:1
- No test reaches this file packages/core/src/serviceLocator.ts:1
- No test reaches this file packages/core/src/users/infra/database/UserPersistenceMapper.ts:1
- No test reaches this file packages/react-app/src/users/controllers/UsersController.ts:1
- No test reaches this file packages/core/src/users/infra/memory/UserInMemoryRepository.ts:1
- No test reaches this file packages/terminal-app/src/index.ts:1
- No test reaches this file packages/core/src/shared/infra/connections/MongoConnection.ts:1
- No test reaches this file packages/react-app/src/users/actions/userActions.ts:1
- No test reaches this file packages/core/src/shared/errors/PersistenceCorruptionError.ts:1
- No test reaches this file packages/core/src/users/infra/errors/UserInfraError.ts:1
- No test reaches this file packages/core/src/shared/errors/InfrastructureError.ts:1
- Floating npm dependency: @users-kata-ts/core
- Floating npm dependency: @users-kata-ts/core
- REDACTED
- REDACTED
- <fieldset> without a <legend> packages/react-app/src/users/views/components/AddUserModal.tsx:76
- Page without a main landmark packages/react-app/src/app/layout.tsx:17
- Accessibility enforcement below the top rung
- No authorization packages/react-app/src/users/actions/userActions.ts:1
- Deprecated: next REDACTED:17
- REDACTED
- REDACTED
- REDACTED
- FunctionTooLong: AddUserModal.AddUserModal packages/react-app/src/users/views/components/AddUserModal.tsx:13
- REDACTED
- REDACTED
- Off the main sequence: @users-kata-ts/core
- Low cohesion: UsersTerminalView (LCOM4 5) packages/terminal-app/src/UsersTerminalView.ts:8
- Anemic entity: User packages/core/src/users/domain/entities/User.ts:26
- Coverage collected but not gated
- No structured logging
- No DR/backup evidence
- Duplicated block (16 lines × 2 locations) REDACTED:22
- Duplicated block with local edits (13 matched lines × 2 locations) packages/core/src/users/presentation/UsersPresenter.ts:60
- Duplicated block (8 lines × 2 locations) packages/core/src/users/domain/value-objects/Email.value.ts:8
- Duplicated block with local edits (5 matched lines × 2 locations) packages/core/src/users/domain/repositories/UserRepository.ts:6
- No test rig can mount a component in this workspace vitest.config.ts:1
- Unused dependency 'readline'
Minor — 12 finding(s)
- Orphaned file packages/react-app/src/users/views/components/AddUserModal.tsx:1
- Orphaned file packages/core/src/users/presentation/UsersPresenter.ts:1
- Orphaned file REDACTED:1
- Orphaned file packages/core/src/users/application/use-cases/AddNewUserUseCase.ts:1
- Orphaned file packages/terminal-app/src/UsersTerminalView.ts:1
- Orphaned file packages/react-app/src/users/views/UsersView.tsx:1
- Mock-dominated test: should handle adding a new user packages/core/src/users/presentation/__tests__/UserPresenter.test.ts:55
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- No SAST
- No rollback/health safety
Minor — 6 finding(s)
- Outdated (npm): mongodb
- Outdated (npm): next
- Outdated (npm): react
- Outdated (npm): react-dom
- Outdated (npm): typescript
- Outdated (npm): vitest
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-230f1652e6134503830d29b8a9566496/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-230f1652e6134503830d29b8a9566496/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 . | 9 | 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 | 19 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 1 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| 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 |