Executive summary
diego3g/umbriel scores 42 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Maturity, which scores 31 and is rated Weak. Its Knowledge Freshness dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to resolve the 1 No ADRs found finding(s) in ADR Quality and to resolve the 1 Documentation finding(s) in Documentation Quality, and if Maturity rose to 70, the score would rise from 42 to about 50.
85 findings are critical: 53 in Dependency Vulnerabilities, 26 in Static Analysis (SAST), two in IaC & Container Security, two in REDACTED Scanning, one in Secrets (history) and one in Web-Security Posture.
Watchdog couldn't measure 5 dimensions in this code, among them Internal API Consistency, Navigability and Cancellation propagation, so they are left out of the score. The product code is 7,003 lines, which would take an estimated 0.1 person-years, around €13,000, to rebuild.
If Maturity rose from 31 to 70, the lowest score rated Strong, the score would rise from 42 to about 50.
New since the last survey: 24 findings
- Dependency Hygiene · Deprecated: @babel/plugin-proposal-class-properties REDACTED
- Dependency Hygiene · Deprecated: eslint REDACTED
- Dependency Hygiene · Deprecated: supertest REDACTED
- Dependency Hygiene · Deprecated: aws-sdk REDACTED
- Dependency Hygiene · Deprecated: request REDACTED
- Dependency Hygiene · Deprecated: uuid REDACTED
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Web-Security Posture · Password hashing without a KDF src/modules/accounts/domain/user/password.ts
- Web-Security Posture · Password key derivation is priced too cheaply src/modules/accounts/domain/user/password.ts
- Slice cohesion · Cross-slice coupling: SendMessagePreview → SendMessage src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreview.ts
Fixed since the last survey: 18 findings
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Supply-chain Provenance & Signing REDACTED
- Code Duplication · Duplicated block (11 lines × 4 locations) src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreview.ts
- Code Duplication · Duplicated block (11 lines × 2 locations) src/modules/subscriptions/repositories/prisma/PrismaTagsRepository.ts
- Code Duplication · Duplicated block (10 lines × 4 locations) src/modules/accounts/useCases/AuthenticateUser/AuthenticateUser.ts
- Code Duplication · Duplicated block (10 lines × 5 locations) src/modules/accounts/useCases/AuthenticateUser/AuthenticateUser.ts
- Code Duplication · Duplicated block (10 lines × 6 locations) src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplate.ts
- Code Duplication · Duplicated block (9 lines × 7 locations) src/modules/accounts/domain/user/name.ts
- Code Duplication · Duplicated block (9 lines × 3 locations) src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts
- Code Duplication · Duplicated block (8 lines × 2 locations) src/core/domain/WatchedList.ts
- Code Duplication · Duplicated block (8 lines × 7 locations) src/infra/http/routes/contacts.routes.ts
- Code Duplication · Duplicated block (8 lines × 4 locations) src/modules/broadcasting/useCases/CreateMessage/CreateMessage.ts
- Cyclomatic Complexity · Complex function handle (cyclomatic 11, cognitive 8) src/modules/broadcasting/useCases/RegisterEvent/RegisterEventController.ts
Rebuild cost: about €13,000 · Estimate
| Cost to rebuild | €4,300 to €22,000, for 71 to 227 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 42. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 7,003 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 core.domain.Entity | 2 core.domain.errors.DomainError | 3 core.domain.errors.UseCaseError | 4 core.infra | 5 core.infra.Controller | 6 core.infra.KafkaHandler | 7 core.infra.Middleware | 8 core.logic.Either | 9 infra.providers.models.IMailProvider | 10 infra.providers.models.IMailQueueProvider | 11 modules.broadcasting.domain.message.messageTags | 12 core.infra.Validator | 13 modules.accounts.domain.user.errors.InvalidEmailError | 14 modules.accounts.domain.user.errors.InvalidNameError | 15 modules.broadcasting.domain.event.event | 16 modules.broadcasting.domain.message.message | 17 modules.broadcasting.domain.template.errors.InvalidTitleLengthError | 18 modules.broadcasting.repositories.IMessageTagsRepository | 19 modules.subscriptions.domain.contact.subscription | 20 modules.accounts.domain.user.email | 21 modules.accounts.domain.user.name | 22 modules.accounts.useCases.RegisterUser.RegisterUserController | 23 modules.broadcasting.domain.recipient.recipient | 24 modules.broadcasting.domain.template.title | 25 modules.broadcasting.repositories.IMessagesRepository | 26 modules.subscriptions.domain.contact.subscriptions | 27 modules.accounts.domain.user.user | 28 modules.broadcasting.domain.template.template | 29 modules.broadcasting.repositories.IRecipientsRepository | 30 modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository | 31 modules.senders.domain.sender.sender | 32 modules.subscriptions.domain.contact.contact | 33 modules.subscriptions.domain.tag.tag | 34 modules.subscriptions.repositories.ISubscriptionsRepository | 35 modules.accounts.repositories.IUsersRepository | 36 modules.broadcasting.repositories.ITemplatesRepository | 37 modules.senders.repositories.ISendersRepository | 38 modules.subscriptions.repositories.IContactsRepository | 39 modules.subscriptions.repositories.ITagsRepository | 40 modules.broadcasting.useCases.SendMessage.SendMessage |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 core.domain.Entity | ||||||||||||||||||||||||||||||||||||||||
| 2 core.domain.errors.DomainError | ||||||||||||||||||||||||||||||||||||||||
| 3 core.domain.errors.UseCaseError | ||||||||||||||||||||||||||||||||||||||||
| 4 core.infra | ||||||||||||||||||||||||||||||||||||||||
| 5 core.infra.Controller | ||||||||||||||||||||||||||||||||||||||||
| 6 core.infra.KafkaHandler | ||||||||||||||||||||||||||||||||||||||||
| 7 core.infra.Middleware | ||||||||||||||||||||||||||||||||||||||||
| 8 core.logic.Either | ||||||||||||||||||||||||||||||||||||||||
| 9 infra.providers.models.IMailProvider | ||||||||||||||||||||||||||||||||||||||||
| 10 infra.providers.models.IMailQueueProvider | ||||||||||||||||||||||||||||||||||||||||
| 11 modules.broadcasting.domain.message.messageTags | ||||||||||||||||||||||||||||||||||||||||
| 12 core.infra.Validator | 1 | |||||||||||||||||||||||||||||||||||||||
| 13 modules.accounts.domain.user.errors.InvalidEmailError | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 modules.accounts.domain.user.errors.InvalidNameError | 1 | |||||||||||||||||||||||||||||||||||||||
| 15 modules.broadcasting.domain.event.event | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 16 modules.broadcasting.domain.message.message | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 17 modules.broadcasting.domain.template.errors.InvalidTitleLengthError | 1 | |||||||||||||||||||||||||||||||||||||||
| 18 modules.broadcasting.repositories.IMessageTagsRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 modules.subscriptions.domain.contact.subscription | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 modules.accounts.domain.user.email | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 21 modules.accounts.domain.user.name | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 modules.accounts.useCases.RegisterUser.RegisterUserController | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 23 modules.broadcasting.domain.recipient.recipient | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 24 modules.broadcasting.domain.template.title | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 25 modules.broadcasting.repositories.IMessagesRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 modules.subscriptions.domain.contact.subscriptions | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 modules.accounts.domain.user.user | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 28 modules.broadcasting.domain.template.template | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 29 modules.broadcasting.repositories.IRecipientsRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 31 modules.senders.domain.sender.sender | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 32 modules.subscriptions.domain.contact.contact | 1 | 1 | 1 | 2 | 2 | 1 | ||||||||||||||||||||||||||||||||||
| 33 modules.subscriptions.domain.tag.tag | 1 | 1 | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 34 modules.subscriptions.repositories.ISubscriptionsRepository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 35 modules.accounts.repositories.IUsersRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 modules.broadcasting.repositories.ITemplatesRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 37 modules.senders.repositories.ISendersRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 38 modules.subscriptions.repositories.IContactsRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 39 modules.subscriptions.repositories.ITagsRepository | 1 | |||||||||||||||||||||||||||||||||||||||
| 40 modules.broadcasting.useCases.SendMessage.SendMessage | 1 | 1 | 1 | 1 | 1 | 1 |
12→8 core.infra.Validator uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in core.infra.Validator uses a type in core.logic.Either.
- The types involved
src.core.infra.Validator.Validator→src.core.logic.Either.Either
- Direction
- core.infra.Validator uses core.logic.Either, so a change to core.logic.Either can break core.infra.Validator, while a change to core.infra.Validator can't break core.logic.Either.
- Position
- Below the diagonal: core.infra.Validator uses a module listed above it, which is the healthy direction.
13→2 modules.accounts.domain.user.errors.InvalidEmailError uses core.domain.errors.DomainError✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.errors.InvalidEmailError uses a type in core.domain.errors.DomainError.
- The types involved
src.modules.accounts.domain.user.errors.InvalidEmailError.InvalidEmailError→src.core.domain.errors.DomainError.DomainError
- Direction
- modules.accounts.domain.user.errors.InvalidEmailError uses core.domain.errors.DomainError, so a change to core.domain.errors.DomainError can break modules.accounts.domain.user.errors.InvalidEmailError, while a change to modules.accounts.domain.user.errors.InvalidEmailError can't break core.domain.errors.DomainError.
- Position
- Below the diagonal: modules.accounts.domain.user.errors.InvalidEmailError uses a module listed above it, which is the healthy direction.
14→2 modules.accounts.domain.user.errors.InvalidNameError uses core.domain.errors.DomainError✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.errors.InvalidNameError uses a type in core.domain.errors.DomainError.
- The types involved
src.modules.accounts.domain.user.errors.InvalidNameError.InvalidNameError→src.core.domain.errors.DomainError.DomainError
- Direction
- modules.accounts.domain.user.errors.InvalidNameError uses core.domain.errors.DomainError, so a change to core.domain.errors.DomainError can break modules.accounts.domain.user.errors.InvalidNameError, while a change to modules.accounts.domain.user.errors.InvalidNameError can't break core.domain.errors.DomainError.
- Position
- Below the diagonal: modules.accounts.domain.user.errors.InvalidNameError uses a module listed above it, which is the healthy direction.
15→1 modules.broadcasting.domain.event.event uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.event.event uses a type in core.domain.Entity.
- The types involved
src.modules.broadcasting.domain.event.event.Event→src.core.domain.Entity.Entity
- Direction
- modules.broadcasting.domain.event.event uses core.domain.Entity, so a change to core.domain.Entity can break modules.broadcasting.domain.event.event, while a change to modules.broadcasting.domain.event.event can't break core.domain.Entity.
- Position
- Below the diagonal: modules.broadcasting.domain.event.event uses a module listed above it, which is the healthy direction.
15→8 modules.broadcasting.domain.event.event uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.event.event uses a type in core.logic.Either.
- The types involved
src.modules.broadcasting.domain.event.event.Event→src.core.logic.Either.Either
- Direction
- modules.broadcasting.domain.event.event uses core.logic.Either, so a change to core.logic.Either can break modules.broadcasting.domain.event.event, while a change to modules.broadcasting.domain.event.event can't break core.logic.Either.
- Position
- Below the diagonal: modules.broadcasting.domain.event.event uses a module listed above it, which is the healthy direction.
16→1 modules.broadcasting.domain.message.message uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.message.message uses a type in core.domain.Entity.
- The types involved
src.modules.broadcasting.domain.message.message.Message→src.core.domain.Entity.Entity
- Direction
- modules.broadcasting.domain.message.message uses core.domain.Entity, so a change to core.domain.Entity can break modules.broadcasting.domain.message.message, while a change to modules.broadcasting.domain.message.message can't break core.domain.Entity.
- Position
- Below the diagonal: modules.broadcasting.domain.message.message uses a module listed above it, which is the healthy direction.
16→8 modules.broadcasting.domain.message.message uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.message.message uses a type in core.logic.Either.
- The types involved
src.modules.broadcasting.domain.message.message.Message→src.core.logic.Either.Either
- Direction
- modules.broadcasting.domain.message.message uses core.logic.Either, so a change to core.logic.Either can break modules.broadcasting.domain.message.message, while a change to modules.broadcasting.domain.message.message can't break core.logic.Either.
- Position
- Below the diagonal: modules.broadcasting.domain.message.message uses a module listed above it, which is the healthy direction.
16→11 modules.broadcasting.domain.message.message uses modules.broadcasting.domain.message.messageTags✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.message.message uses a type in modules.broadcasting.domain.message.messageTags.
- The types involved
src.modules.broadcasting.domain.message.message.IMessageProps→src.modules.broadcasting.domain.message.messageTags.MessageTags
- Direction
- modules.broadcasting.domain.message.message uses modules.broadcasting.domain.message.messageTags, so a change to modules.broadcasting.domain.message.messageTags can break modules.broadcasting.domain.message.message, while a change to modules.broadcasting.domain.message.message can't break modules.broadcasting.domain.message.messageTags.
- Position
- Below the diagonal: modules.broadcasting.domain.message.message uses a module listed above it, which is the healthy direction.
17→2 modules.broadcasting.domain.template.errors.InvalidTitleLengthError uses core.domain.errors.DomainError✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.errors.InvalidTitleLengthError uses a type in core.domain.errors.DomainError.
- The types involved
src.modules.broadcasting.domain.template.errors.InvalidTitleLengthError.InvalidTitleLengthError→src.core.domain.errors.DomainError.DomainError
- Direction
- modules.broadcasting.domain.template.errors.InvalidTitleLengthError uses core.domain.errors.DomainError, so a change to core.domain.errors.DomainError can break modules.broadcasting.domain.template.errors.InvalidTitleLengthError, while a change to modules.broadcasting.domain.template.errors.InvalidTitleLengthError can't break core.domain.errors.DomainError.
- Position
- Below the diagonal: modules.broadcasting.domain.template.errors.InvalidTitleLengthError uses a module listed above it, which is the healthy direction.
18→11 modules.broadcasting.repositories.IMessageTagsRepository uses modules.broadcasting.domain.message.messageTags✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.IMessageTagsRepository uses a type in modules.broadcasting.domain.message.messageTags.
- The types involved
src.modules.broadcasting.repositories.IMessageTagsRepository.IMessageTagsRepository→src.modules.broadcasting.domain.message.messageTags.MessageTags
- Direction
- modules.broadcasting.repositories.IMessageTagsRepository uses modules.broadcasting.domain.message.messageTags, so a change to modules.broadcasting.domain.message.messageTags can break modules.broadcasting.repositories.IMessageTagsRepository, while a change to modules.broadcasting.repositories.IMessageTagsRepository can't break modules.broadcasting.domain.message.messageTags.
- Position
- Below the diagonal: modules.broadcasting.repositories.IMessageTagsRepository uses a module listed above it, which is the healthy direction.
19→1 modules.subscriptions.domain.contact.subscription uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.subscription uses a type in core.domain.Entity.
- The types involved
src.modules.subscriptions.domain.contact.subscription.Subscription→src.core.domain.Entity.Entity
- Direction
- modules.subscriptions.domain.contact.subscription uses core.domain.Entity, so a change to core.domain.Entity can break modules.subscriptions.domain.contact.subscription, while a change to modules.subscriptions.domain.contact.subscription can't break core.domain.Entity.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.subscription uses a module listed above it, which is the healthy direction.
20→8 modules.accounts.domain.user.email uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.email uses a type in core.logic.Either.
- The types involved
src.modules.accounts.domain.user.email.Email→src.core.logic.Either.Either
- Direction
- modules.accounts.domain.user.email uses core.logic.Either, so a change to core.logic.Either can break modules.accounts.domain.user.email, while a change to modules.accounts.domain.user.email can't break core.logic.Either.
- Position
- Below the diagonal: modules.accounts.domain.user.email uses a module listed above it, which is the healthy direction.
20→13 modules.accounts.domain.user.email uses modules.accounts.domain.user.errors.InvalidEmailError✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.email uses a type in modules.accounts.domain.user.errors.InvalidEmailError.
- The types involved
src.modules.accounts.domain.user.email.Email→src.modules.accounts.domain.user.errors.InvalidEmailError.InvalidEmailError
- Direction
- modules.accounts.domain.user.email uses modules.accounts.domain.user.errors.InvalidEmailError, so a change to modules.accounts.domain.user.errors.InvalidEmailError can break modules.accounts.domain.user.email, while a change to modules.accounts.domain.user.email can't break modules.accounts.domain.user.errors.InvalidEmailError.
- Position
- Below the diagonal: modules.accounts.domain.user.email uses a module listed above it, which is the healthy direction.
21→8 modules.accounts.domain.user.name uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.name uses a type in core.logic.Either.
- The types involved
src.modules.accounts.domain.user.name.Name→src.core.logic.Either.Either
- Direction
- modules.accounts.domain.user.name uses core.logic.Either, so a change to core.logic.Either can break modules.accounts.domain.user.name, while a change to modules.accounts.domain.user.name can't break core.logic.Either.
- Position
- Below the diagonal: modules.accounts.domain.user.name uses a module listed above it, which is the healthy direction.
21→14 modules.accounts.domain.user.name uses modules.accounts.domain.user.errors.InvalidNameError✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.name uses a type in modules.accounts.domain.user.errors.InvalidNameError.
- The types involved
src.modules.accounts.domain.user.name.Name→src.modules.accounts.domain.user.errors.InvalidNameError.InvalidNameError
- Direction
- modules.accounts.domain.user.name uses modules.accounts.domain.user.errors.InvalidNameError, so a change to modules.accounts.domain.user.errors.InvalidNameError can break modules.accounts.domain.user.name, while a change to modules.accounts.domain.user.name can't break modules.accounts.domain.user.errors.InvalidNameError.
- Position
- Below the diagonal: modules.accounts.domain.user.name uses a module listed above it, which is the healthy direction.
22→4 modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra✕
- Connections
- 1 pair of types, where a type in modules.accounts.useCases.RegisterUser.RegisterUserController uses a type in core.infra.
- The types involved
src.modules.accounts.useCases.RegisterUser.RegisterUserController.RegisterUserController→src.core.infra.HttpResponse
- Direction
- modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra, so a change to core.infra can break modules.accounts.useCases.RegisterUser.RegisterUserController, while a change to modules.accounts.useCases.RegisterUser.RegisterUserController can't break core.infra.
- Position
- Below the diagonal: modules.accounts.useCases.RegisterUser.RegisterUserController uses a module listed above it, which is the healthy direction.
22→5 modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra.Controller✕
- Connections
- 1 pair of types, where a type in modules.accounts.useCases.RegisterUser.RegisterUserController uses a type in core.infra.Controller.
- The types involved
src.modules.accounts.useCases.RegisterUser.RegisterUserController.RegisterUserController→src.core.infra.Controller.Controller
- Direction
- modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra.Controller, so a change to core.infra.Controller can break modules.accounts.useCases.RegisterUser.RegisterUserController, while a change to modules.accounts.useCases.RegisterUser.RegisterUserController can't break core.infra.Controller.
- Position
- Below the diagonal: modules.accounts.useCases.RegisterUser.RegisterUserController uses a module listed above it, which is the healthy direction.
22→12 modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra.Validator✕
- Connections
- 1 pair of types, where a type in modules.accounts.useCases.RegisterUser.RegisterUserController uses a type in core.infra.Validator.
- The types involved
src.modules.accounts.useCases.RegisterUser.RegisterUserController.RegisterUserController→src.core.infra.Validator.Validator
- Direction
- modules.accounts.useCases.RegisterUser.RegisterUserController uses core.infra.Validator, so a change to core.infra.Validator can break modules.accounts.useCases.RegisterUser.RegisterUserController, while a change to modules.accounts.useCases.RegisterUser.RegisterUserController can't break core.infra.Validator.
- Position
- Below the diagonal: modules.accounts.useCases.RegisterUser.RegisterUserController uses a module listed above it, which is the healthy direction.
23→1 modules.broadcasting.domain.recipient.recipient uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.recipient.recipient uses a type in core.domain.Entity.
- The types involved
src.modules.broadcasting.domain.recipient.recipient.Recipient→src.core.domain.Entity.Entity
- Direction
- modules.broadcasting.domain.recipient.recipient uses core.domain.Entity, so a change to core.domain.Entity can break modules.broadcasting.domain.recipient.recipient, while a change to modules.broadcasting.domain.recipient.recipient can't break core.domain.Entity.
- Position
- Below the diagonal: modules.broadcasting.domain.recipient.recipient uses a module listed above it, which is the healthy direction.
23→15 modules.broadcasting.domain.recipient.recipient uses modules.broadcasting.domain.event.event✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.recipient.recipient uses a type in modules.broadcasting.domain.event.event.
- The types involved
src.modules.broadcasting.domain.recipient.recipient.Recipient→src.modules.broadcasting.domain.event.event.Event
- Direction
- modules.broadcasting.domain.recipient.recipient uses modules.broadcasting.domain.event.event, so a change to modules.broadcasting.domain.event.event can break modules.broadcasting.domain.recipient.recipient, while a change to modules.broadcasting.domain.recipient.recipient can't break modules.broadcasting.domain.event.event.
- Position
- Below the diagonal: modules.broadcasting.domain.recipient.recipient uses a module listed above it, which is the healthy direction.
24→8 modules.broadcasting.domain.template.title uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.title uses a type in core.logic.Either.
- The types involved
src.modules.broadcasting.domain.template.title.Title→src.core.logic.Either.Either
- Direction
- modules.broadcasting.domain.template.title uses core.logic.Either, so a change to core.logic.Either can break modules.broadcasting.domain.template.title, while a change to modules.broadcasting.domain.template.title can't break core.logic.Either.
- Position
- Below the diagonal: modules.broadcasting.domain.template.title uses a module listed above it, which is the healthy direction.
24→17 modules.broadcasting.domain.template.title uses modules.broadcasting.domain.template.errors.InvalidTitleLengthError✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.title uses a type in modules.broadcasting.domain.template.errors.InvalidTitleLengthError.
- The types involved
src.modules.broadcasting.domain.template.title.Title→src.modules.broadcasting.domain.template.errors.InvalidTitleLengthError.InvalidTitleLengthError
- Direction
- modules.broadcasting.domain.template.title uses modules.broadcasting.domain.template.errors.InvalidTitleLengthError, so a change to modules.broadcasting.domain.template.errors.InvalidTitleLengthError can break modules.broadcasting.domain.template.title, while a change to modules.broadcasting.domain.template.title can't break modules.broadcasting.domain.template.errors.InvalidTitleLengthError.
- Position
- Below the diagonal: modules.broadcasting.domain.template.title uses a module listed above it, which is the healthy direction.
25→16 modules.broadcasting.repositories.IMessagesRepository uses modules.broadcasting.domain.message.message✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.IMessagesRepository uses a type in modules.broadcasting.domain.message.message.
- The types involved
src.modules.broadcasting.repositories.IMessagesRepository.IMessagesRepository→src.modules.broadcasting.domain.message.message.Message
- Direction
- modules.broadcasting.repositories.IMessagesRepository uses modules.broadcasting.domain.message.message, so a change to modules.broadcasting.domain.message.message can break modules.broadcasting.repositories.IMessagesRepository, while a change to modules.broadcasting.repositories.IMessagesRepository can't break modules.broadcasting.domain.message.message.
- Position
- Below the diagonal: modules.broadcasting.repositories.IMessagesRepository uses a module listed above it, which is the healthy direction.
26→19 modules.subscriptions.domain.contact.subscriptions uses modules.subscriptions.domain.contact.subscription✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.subscriptions uses a type in modules.subscriptions.domain.contact.subscription.
- The types involved
src.modules.subscriptions.domain.contact.subscriptions.Subscriptions→src.modules.subscriptions.domain.contact.subscription.Subscription
- Direction
- modules.subscriptions.domain.contact.subscriptions uses modules.subscriptions.domain.contact.subscription, so a change to modules.subscriptions.domain.contact.subscription can break modules.subscriptions.domain.contact.subscriptions, while a change to modules.subscriptions.domain.contact.subscriptions can't break modules.subscriptions.domain.contact.subscription.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.subscriptions uses a module listed above it, which is the healthy direction.
27→1 modules.accounts.domain.user.user uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.user uses a type in core.domain.Entity.
- The types involved
src.modules.accounts.domain.user.user.User→src.core.domain.Entity.Entity
- Direction
- modules.accounts.domain.user.user uses core.domain.Entity, so a change to core.domain.Entity can break modules.accounts.domain.user.user, while a change to modules.accounts.domain.user.user can't break core.domain.Entity.
- Position
- Below the diagonal: modules.accounts.domain.user.user uses a module listed above it, which is the healthy direction.
27→8 modules.accounts.domain.user.user uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.user uses a type in core.logic.Either.
- The types involved
src.modules.accounts.domain.user.user.User→src.core.logic.Either.Either
- Direction
- modules.accounts.domain.user.user uses core.logic.Either, so a change to core.logic.Either can break modules.accounts.domain.user.user, while a change to modules.accounts.domain.user.user can't break core.logic.Either.
- Position
- Below the diagonal: modules.accounts.domain.user.user uses a module listed above it, which is the healthy direction.
27→20 modules.accounts.domain.user.user uses modules.accounts.domain.user.email✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.user uses a type in modules.accounts.domain.user.email.
- The types involved
src.modules.accounts.domain.user.user.IUserProps→src.modules.accounts.domain.user.email.Email
- Direction
- modules.accounts.domain.user.user uses modules.accounts.domain.user.email, so a change to modules.accounts.domain.user.email can break modules.accounts.domain.user.user, while a change to modules.accounts.domain.user.user can't break modules.accounts.domain.user.email.
- Position
- Below the diagonal: modules.accounts.domain.user.user uses a module listed above it, which is the healthy direction.
27→21 modules.accounts.domain.user.user uses modules.accounts.domain.user.name✕
- Connections
- 1 pair of types, where a type in modules.accounts.domain.user.user uses a type in modules.accounts.domain.user.name.
- The types involved
src.modules.accounts.domain.user.user.IUserProps→src.modules.accounts.domain.user.name.Name
- Direction
- modules.accounts.domain.user.user uses modules.accounts.domain.user.name, so a change to modules.accounts.domain.user.name can break modules.accounts.domain.user.user, while a change to modules.accounts.domain.user.user can't break modules.accounts.domain.user.name.
- Position
- Below the diagonal: modules.accounts.domain.user.user uses a module listed above it, which is the healthy direction.
28→1 modules.broadcasting.domain.template.template uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.template uses a type in core.domain.Entity.
- The types involved
src.modules.broadcasting.domain.template.template.Template→src.core.domain.Entity.Entity
- Direction
- modules.broadcasting.domain.template.template uses core.domain.Entity, so a change to core.domain.Entity can break modules.broadcasting.domain.template.template, while a change to modules.broadcasting.domain.template.template can't break core.domain.Entity.
- Position
- Below the diagonal: modules.broadcasting.domain.template.template uses a module listed above it, which is the healthy direction.
28→8 modules.broadcasting.domain.template.template uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.template uses a type in core.logic.Either.
- The types involved
src.modules.broadcasting.domain.template.template.Template→src.core.logic.Either.Either
- Direction
- modules.broadcasting.domain.template.template uses core.logic.Either, so a change to core.logic.Either can break modules.broadcasting.domain.template.template, while a change to modules.broadcasting.domain.template.template can't break core.logic.Either.
- Position
- Below the diagonal: modules.broadcasting.domain.template.template uses a module listed above it, which is the healthy direction.
28→24 modules.broadcasting.domain.template.template uses modules.broadcasting.domain.template.title✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.domain.template.template uses a type in modules.broadcasting.domain.template.title.
- The types involved
src.modules.broadcasting.domain.template.template.ITemplateProps→src.modules.broadcasting.domain.template.title.Title
- Direction
- modules.broadcasting.domain.template.template uses modules.broadcasting.domain.template.title, so a change to modules.broadcasting.domain.template.title can break modules.broadcasting.domain.template.template, while a change to modules.broadcasting.domain.template.template can't break modules.broadcasting.domain.template.title.
- Position
- Below the diagonal: modules.broadcasting.domain.template.template uses a module listed above it, which is the healthy direction.
29→23 modules.broadcasting.repositories.IRecipientsRepository uses modules.broadcasting.domain.recipient.recipient✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.IRecipientsRepository uses a type in modules.broadcasting.domain.recipient.recipient.
- The types involved
src.modules.broadcasting.repositories.IRecipientsRepository.IRecipientsRepository→src.modules.broadcasting.domain.recipient.recipient.Recipient
- Direction
- modules.broadcasting.repositories.IRecipientsRepository uses modules.broadcasting.domain.recipient.recipient, so a change to modules.broadcasting.domain.recipient.recipient can break modules.broadcasting.repositories.IRecipientsRepository, while a change to modules.broadcasting.repositories.IRecipientsRepository can't break modules.broadcasting.domain.recipient.recipient.
- Position
- Below the diagonal: modules.broadcasting.repositories.IRecipientsRepository uses a module listed above it, which is the healthy direction.
30→16 modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses modules.broadcasting.domain.message.message✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses a type in modules.broadcasting.domain.message.message.
- The types involved
src.modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository.InMemoryMessagesRepository→src.modules.broadcasting.domain.message.message.Message
- Direction
- modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses modules.broadcasting.domain.message.message, so a change to modules.broadcasting.domain.message.message can break modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository, while a change to modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository can't break modules.broadcasting.domain.message.message.
- Position
- Below the diagonal: modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses a module listed above it, which is the healthy direction.
30→25 modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses modules.broadcasting.repositories.IMessagesRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses a type in modules.broadcasting.repositories.IMessagesRepository.
- The types involved
src.modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository.InMemoryMessagesRepository→src.modules.broadcasting.repositories.IMessagesRepository.IMessagesRepository
- Direction
- modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses modules.broadcasting.repositories.IMessagesRepository, so a change to modules.broadcasting.repositories.IMessagesRepository can break modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository, while a change to modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository can't break modules.broadcasting.repositories.IMessagesRepository.
- Position
- Below the diagonal: modules.broadcasting.repositories.in-memory.InMemoryMessagesRepository uses a module listed above it, which is the healthy direction.
31→1 modules.senders.domain.sender.sender uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.senders.domain.sender.sender uses a type in core.domain.Entity.
- The types involved
src.modules.senders.domain.sender.sender.Sender→src.core.domain.Entity.Entity
- Direction
- modules.senders.domain.sender.sender uses core.domain.Entity, so a change to core.domain.Entity can break modules.senders.domain.sender.sender, while a change to modules.senders.domain.sender.sender can't break core.domain.Entity.
- Position
- Below the diagonal: modules.senders.domain.sender.sender uses a module listed above it, which is the healthy direction.
31→8 modules.senders.domain.sender.sender uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.senders.domain.sender.sender uses a type in core.logic.Either.
- The types involved
src.modules.senders.domain.sender.sender.Sender→src.core.logic.Either.Either
- Direction
- modules.senders.domain.sender.sender uses core.logic.Either, so a change to core.logic.Either can break modules.senders.domain.sender.sender, while a change to modules.senders.domain.sender.sender can't break core.logic.Either.
- Position
- Below the diagonal: modules.senders.domain.sender.sender uses a module listed above it, which is the healthy direction.
31→20 modules.senders.domain.sender.sender uses modules.accounts.domain.user.email✕
- Connections
- 1 pair of types, where a type in modules.senders.domain.sender.sender uses a type in modules.accounts.domain.user.email.
- The types involved
src.modules.senders.domain.sender.sender.ISenderProps→src.modules.accounts.domain.user.email.Email
- Direction
- modules.senders.domain.sender.sender uses modules.accounts.domain.user.email, so a change to modules.accounts.domain.user.email can break modules.senders.domain.sender.sender, while a change to modules.senders.domain.sender.sender can't break modules.accounts.domain.user.email.
- Position
- Below the diagonal: modules.senders.domain.sender.sender uses a module listed above it, which is the healthy direction.
31→21 modules.senders.domain.sender.sender uses modules.accounts.domain.user.name✕
- Connections
- 1 pair of types, where a type in modules.senders.domain.sender.sender uses a type in modules.accounts.domain.user.name.
- The types involved
src.modules.senders.domain.sender.sender.ISenderProps→src.modules.accounts.domain.user.name.Name
- Direction
- modules.senders.domain.sender.sender uses modules.accounts.domain.user.name, so a change to modules.accounts.domain.user.name can break modules.senders.domain.sender.sender, while a change to modules.senders.domain.sender.sender can't break modules.accounts.domain.user.name.
- Position
- Below the diagonal: modules.senders.domain.sender.sender uses a module listed above it, which is the healthy direction.
32→1 modules.subscriptions.domain.contact.contact uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.contact uses a type in core.domain.Entity.
- The types involved
src.modules.subscriptions.domain.contact.contact.Contact→src.core.domain.Entity.Entity
- Direction
- modules.subscriptions.domain.contact.contact uses core.domain.Entity, so a change to core.domain.Entity can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break core.domain.Entity.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
32→8 modules.subscriptions.domain.contact.contact uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.contact uses a type in core.logic.Either.
- The types involved
src.modules.subscriptions.domain.contact.contact.Contact→src.core.logic.Either.Either
- Direction
- modules.subscriptions.domain.contact.contact uses core.logic.Either, so a change to core.logic.Either can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break core.logic.Either.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
32→19 modules.subscriptions.domain.contact.contact uses modules.subscriptions.domain.contact.subscription✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.contact uses a type in modules.subscriptions.domain.contact.subscription.
- The types involved
src.modules.subscriptions.domain.contact.contact.Contact→src.modules.subscriptions.domain.contact.subscription.Subscription
- Direction
- modules.subscriptions.domain.contact.contact uses modules.subscriptions.domain.contact.subscription, so a change to modules.subscriptions.domain.contact.subscription can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break modules.subscriptions.domain.contact.subscription.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
32→20 modules.subscriptions.domain.contact.contact uses modules.accounts.domain.user.email✕
- Connections
- 2 pairs of types, where a type in modules.subscriptions.domain.contact.contact uses a type in modules.accounts.domain.user.email.
- The types involved
src.modules.subscriptions.domain.contact.contact.Contact→src.modules.accounts.domain.user.email.Emailsrc.modules.subscriptions.domain.contact.contact.IContactProps→src.modules.accounts.domain.user.email.Email
- Direction
- modules.subscriptions.domain.contact.contact uses modules.accounts.domain.user.email, so a change to modules.accounts.domain.user.email can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break modules.accounts.domain.user.email.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
32→21 modules.subscriptions.domain.contact.contact uses modules.accounts.domain.user.name✕
- Connections
- 2 pairs of types, where a type in modules.subscriptions.domain.contact.contact uses a type in modules.accounts.domain.user.name.
- The types involved
src.modules.subscriptions.domain.contact.contact.Contact→src.modules.accounts.domain.user.name.Namesrc.modules.subscriptions.domain.contact.contact.IContactProps→src.modules.accounts.domain.user.name.Name
- Direction
- modules.subscriptions.domain.contact.contact uses modules.accounts.domain.user.name, so a change to modules.accounts.domain.user.name can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break modules.accounts.domain.user.name.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
32→26 modules.subscriptions.domain.contact.contact uses modules.subscriptions.domain.contact.subscriptions✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.contact.contact uses a type in modules.subscriptions.domain.contact.subscriptions.
- The types involved
src.modules.subscriptions.domain.contact.contact.IContactProps→src.modules.subscriptions.domain.contact.subscriptions.Subscriptions
- Direction
- modules.subscriptions.domain.contact.contact uses modules.subscriptions.domain.contact.subscriptions, so a change to modules.subscriptions.domain.contact.subscriptions can break modules.subscriptions.domain.contact.contact, while a change to modules.subscriptions.domain.contact.contact can't break modules.subscriptions.domain.contact.subscriptions.
- Position
- Below the diagonal: modules.subscriptions.domain.contact.contact uses a module listed above it, which is the healthy direction.
33→1 modules.subscriptions.domain.tag.tag uses core.domain.Entity✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.tag.tag uses a type in core.domain.Entity.
- The types involved
src.modules.subscriptions.domain.tag.tag.Tag→src.core.domain.Entity.Entity
- Direction
- modules.subscriptions.domain.tag.tag uses core.domain.Entity, so a change to core.domain.Entity can break modules.subscriptions.domain.tag.tag, while a change to modules.subscriptions.domain.tag.tag can't break core.domain.Entity.
- Position
- Below the diagonal: modules.subscriptions.domain.tag.tag uses a module listed above it, which is the healthy direction.
33→8 modules.subscriptions.domain.tag.tag uses core.logic.Either✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.tag.tag uses a type in core.logic.Either.
- The types involved
src.modules.subscriptions.domain.tag.tag.Tag→src.core.logic.Either.Either
- Direction
- modules.subscriptions.domain.tag.tag uses core.logic.Either, so a change to core.logic.Either can break modules.subscriptions.domain.tag.tag, while a change to modules.subscriptions.domain.tag.tag can't break core.logic.Either.
- Position
- Below the diagonal: modules.subscriptions.domain.tag.tag uses a module listed above it, which is the healthy direction.
33→17 modules.subscriptions.domain.tag.tag uses modules.broadcasting.domain.template.errors.InvalidTitleLengthError✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.domain.tag.tag uses a type in modules.broadcasting.domain.template.errors.InvalidTitleLengthError.
- The types involved
src.modules.subscriptions.domain.tag.tag.Tag→src.modules.broadcasting.domain.template.errors.InvalidTitleLengthError.InvalidTitleLengthError
- Direction
- modules.subscriptions.domain.tag.tag uses modules.broadcasting.domain.template.errors.InvalidTitleLengthError, so a change to modules.broadcasting.domain.template.errors.InvalidTitleLengthError can break modules.subscriptions.domain.tag.tag, while a change to modules.subscriptions.domain.tag.tag can't break modules.broadcasting.domain.template.errors.InvalidTitleLengthError.
- Position
- Below the diagonal: modules.subscriptions.domain.tag.tag uses a module listed above it, which is the healthy direction.
33→24 modules.subscriptions.domain.tag.tag uses modules.broadcasting.domain.template.title✕
- Connections
- 2 pairs of types, where a type in modules.subscriptions.domain.tag.tag uses a type in modules.broadcasting.domain.template.title.
- The types involved
src.modules.subscriptions.domain.tag.tag.ITagProps→src.modules.broadcasting.domain.template.title.Titlesrc.modules.subscriptions.domain.tag.tag.Tag→src.modules.broadcasting.domain.template.title.Title
- Direction
- modules.subscriptions.domain.tag.tag uses modules.broadcasting.domain.template.title, so a change to modules.broadcasting.domain.template.title can break modules.subscriptions.domain.tag.tag, while a change to modules.subscriptions.domain.tag.tag can't break modules.broadcasting.domain.template.title.
- Position
- Below the diagonal: modules.subscriptions.domain.tag.tag uses a module listed above it, which is the healthy direction.
34→19 modules.subscriptions.repositories.ISubscriptionsRepository uses modules.subscriptions.domain.contact.subscription✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.repositories.ISubscriptionsRepository uses a type in modules.subscriptions.domain.contact.subscription.
- The types involved
src.modules.subscriptions.repositories.ISubscriptionsRepository.ISubscriptionsRepository→src.modules.subscriptions.domain.contact.subscription.Subscription
- Direction
- modules.subscriptions.repositories.ISubscriptionsRepository uses modules.subscriptions.domain.contact.subscription, so a change to modules.subscriptions.domain.contact.subscription can break modules.subscriptions.repositories.ISubscriptionsRepository, while a change to modules.subscriptions.repositories.ISubscriptionsRepository can't break modules.subscriptions.domain.contact.subscription.
- Position
- Below the diagonal: modules.subscriptions.repositories.ISubscriptionsRepository uses a module listed above it, which is the healthy direction.
34→26 modules.subscriptions.repositories.ISubscriptionsRepository uses modules.subscriptions.domain.contact.subscriptions✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.repositories.ISubscriptionsRepository uses a type in modules.subscriptions.domain.contact.subscriptions.
- The types involved
src.modules.subscriptions.repositories.ISubscriptionsRepository.ISubscriptionsRepository→src.modules.subscriptions.domain.contact.subscriptions.Subscriptions
- Direction
- modules.subscriptions.repositories.ISubscriptionsRepository uses modules.subscriptions.domain.contact.subscriptions, so a change to modules.subscriptions.domain.contact.subscriptions can break modules.subscriptions.repositories.ISubscriptionsRepository, while a change to modules.subscriptions.repositories.ISubscriptionsRepository can't break modules.subscriptions.domain.contact.subscriptions.
- Position
- Below the diagonal: modules.subscriptions.repositories.ISubscriptionsRepository uses a module listed above it, which is the healthy direction.
35→27 modules.accounts.repositories.IUsersRepository uses modules.accounts.domain.user.user✕
- Connections
- 1 pair of types, where a type in modules.accounts.repositories.IUsersRepository uses a type in modules.accounts.domain.user.user.
- The types involved
src.modules.accounts.repositories.IUsersRepository.IUsersRepository→src.modules.accounts.domain.user.user.User
- Direction
- modules.accounts.repositories.IUsersRepository uses modules.accounts.domain.user.user, so a change to modules.accounts.domain.user.user can break modules.accounts.repositories.IUsersRepository, while a change to modules.accounts.repositories.IUsersRepository can't break modules.accounts.domain.user.user.
- Position
- Below the diagonal: modules.accounts.repositories.IUsersRepository uses a module listed above it, which is the healthy direction.
36→28 modules.broadcasting.repositories.ITemplatesRepository uses modules.broadcasting.domain.template.template✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.repositories.ITemplatesRepository uses a type in modules.broadcasting.domain.template.template.
- The types involved
src.modules.broadcasting.repositories.ITemplatesRepository.ITemplatesRepository→src.modules.broadcasting.domain.template.template.Template
- Direction
- modules.broadcasting.repositories.ITemplatesRepository uses modules.broadcasting.domain.template.template, so a change to modules.broadcasting.domain.template.template can break modules.broadcasting.repositories.ITemplatesRepository, while a change to modules.broadcasting.repositories.ITemplatesRepository can't break modules.broadcasting.domain.template.template.
- Position
- Below the diagonal: modules.broadcasting.repositories.ITemplatesRepository uses a module listed above it, which is the healthy direction.
37→31 modules.senders.repositories.ISendersRepository uses modules.senders.domain.sender.sender✕
- Connections
- 1 pair of types, where a type in modules.senders.repositories.ISendersRepository uses a type in modules.senders.domain.sender.sender.
- The types involved
src.modules.senders.repositories.ISendersRepository.ISendersRepository→src.modules.senders.domain.sender.sender.Sender
- Direction
- modules.senders.repositories.ISendersRepository uses modules.senders.domain.sender.sender, so a change to modules.senders.domain.sender.sender can break modules.senders.repositories.ISendersRepository, while a change to modules.senders.repositories.ISendersRepository can't break modules.senders.domain.sender.sender.
- Position
- Below the diagonal: modules.senders.repositories.ISendersRepository uses a module listed above it, which is the healthy direction.
38→32 modules.subscriptions.repositories.IContactsRepository uses modules.subscriptions.domain.contact.contact✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.repositories.IContactsRepository uses a type in modules.subscriptions.domain.contact.contact.
- The types involved
src.modules.subscriptions.repositories.IContactsRepository.IContactsRepository→src.modules.subscriptions.domain.contact.contact.Contact
- Direction
- modules.subscriptions.repositories.IContactsRepository uses modules.subscriptions.domain.contact.contact, so a change to modules.subscriptions.domain.contact.contact can break modules.subscriptions.repositories.IContactsRepository, while a change to modules.subscriptions.repositories.IContactsRepository can't break modules.subscriptions.domain.contact.contact.
- Position
- Below the diagonal: modules.subscriptions.repositories.IContactsRepository uses a module listed above it, which is the healthy direction.
39→33 modules.subscriptions.repositories.ITagsRepository uses modules.subscriptions.domain.tag.tag✕
- Connections
- 1 pair of types, where a type in modules.subscriptions.repositories.ITagsRepository uses a type in modules.subscriptions.domain.tag.tag.
- The types involved
src.modules.subscriptions.repositories.ITagsRepository.ITagsRepository→src.modules.subscriptions.domain.tag.tag.Tag
- Direction
- modules.subscriptions.repositories.ITagsRepository uses modules.subscriptions.domain.tag.tag, so a change to modules.subscriptions.domain.tag.tag can break modules.subscriptions.repositories.ITagsRepository, while a change to modules.subscriptions.repositories.ITagsRepository can't break modules.subscriptions.domain.tag.tag.
- Position
- Below the diagonal: modules.subscriptions.repositories.ITagsRepository uses a module listed above it, which is the healthy direction.
40→10 modules.broadcasting.useCases.SendMessage.SendMessage uses infra.providers.models.IMailQueueProvider✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in infra.providers.models.IMailQueueProvider.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.infra.providers.models.IMailQueueProvider.IMailQueueProvider
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses infra.providers.models.IMailQueueProvider, so a change to infra.providers.models.IMailQueueProvider can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break infra.providers.models.IMailQueueProvider.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
40→18 modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.IMessageTagsRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in modules.broadcasting.repositories.IMessageTagsRepository.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.modules.broadcasting.repositories.IMessageTagsRepository.IMessageTagsRepository
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.IMessageTagsRepository, so a change to modules.broadcasting.repositories.IMessageTagsRepository can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break modules.broadcasting.repositories.IMessageTagsRepository.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
40→25 modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.IMessagesRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in modules.broadcasting.repositories.IMessagesRepository.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.modules.broadcasting.repositories.IMessagesRepository.IMessagesRepository
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.IMessagesRepository, so a change to modules.broadcasting.repositories.IMessagesRepository can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break modules.broadcasting.repositories.IMessagesRepository.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
40→36 modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.ITemplatesRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in modules.broadcasting.repositories.ITemplatesRepository.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.modules.broadcasting.repositories.ITemplatesRepository.ITemplatesRepository
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses modules.broadcasting.repositories.ITemplatesRepository, so a change to modules.broadcasting.repositories.ITemplatesRepository can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break modules.broadcasting.repositories.ITemplatesRepository.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
40→37 modules.broadcasting.useCases.SendMessage.SendMessage uses modules.senders.repositories.ISendersRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in modules.senders.repositories.ISendersRepository.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.modules.senders.repositories.ISendersRepository.ISendersRepository
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses modules.senders.repositories.ISendersRepository, so a change to modules.senders.repositories.ISendersRepository can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break modules.senders.repositories.ISendersRepository.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
40→38 modules.broadcasting.useCases.SendMessage.SendMessage uses modules.subscriptions.repositories.IContactsRepository✕
- Connections
- 1 pair of types, where a type in modules.broadcasting.useCases.SendMessage.SendMessage uses a type in modules.subscriptions.repositories.IContactsRepository.
- The types involved
src.modules.broadcasting.useCases.SendMessage.SendMessage.SendMessage→src.modules.subscriptions.repositories.IContactsRepository.IContactsRepository
- Direction
- modules.broadcasting.useCases.SendMessage.SendMessage uses modules.subscriptions.repositories.IContactsRepository, so a change to modules.subscriptions.repositories.IContactsRepository can break modules.broadcasting.useCases.SendMessage.SendMessage, while a change to modules.broadcasting.useCases.SendMessage.SendMessage can't break modules.subscriptions.repositories.IContactsRepository.
- Position
- Below the diagonal: modules.broadcasting.useCases.SendMessage.SendMessage uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 99 | High / Critical |
| A05:2025 — Injection | 32 | High / Critical |
| A02:2025 — Security Misconfiguration | 8 | High / Critical |
| A07:2025 — Authentication Failures | 4 | High / Critical |
Roadmap
Begin by resolving the ten orphaned files in the codebase, prioritizing PrismaContactsRepository.ts, PrismaMessagesRepository.ts, and InMemoryMessagesRepository.ts. Next, address the lack of architectural decision records by documenting significant design choices in a dedicated folder and expanding the README with essential getting-started and architecture guidance.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +8.3 pts | Low | ADR Quality |
| Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. | +7.8 pts | Low | Documentation Quality |
| Resolve the 10 Orphaned file finding(s) in Knowledge Freshness — start with PrismaContactsRepository.ts, PrismaMessagesRepository.ts, InMemoryMessagesRepository.ts. | +9.0 pts | Medium | Knowledge Freshness |
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +7.7 pts | Medium | Architecture documentation |
| Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2). | +3.7 pts | Low | REDACTED Scanning |
| Expand the README with getting-started, architecture overview and a project map. | +6.7 pts | Medium | Documentation (README) |
| Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. | +2.1 pts | Low | Knowledge Freshness |
| Resolve the 43 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (43). | +3.3 pts | Medium | Dependency Hygiene |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 1.2 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 1.4 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.0 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.5 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.5 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.7 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 3.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 3.0 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 3.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 6.1 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts | 6.7 | Mixed | Explicit Debt: TodoComment |
| src/modules/broadcasting/useCases/CreateMessage/CreateMessageController.ts | 6.7 | Mixed | Explicit Debt: TodoComment |
| src/modules/broadcasting/useCases/CreateTemplate/CreateTemplateController.ts | 6.7 | Mixed | Explicit Debt: TodoComment |
| src/modules/broadcasting/useCases/SendMessage/SendMessageController.ts | 6.7 | Mixed | Explicit Debt: TodoComment |
| src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts | 7.0 | Mixed | Cohesion (LCOM4): Low cohesion: PrismaContactsRepository (LCOM4 9) |
| src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts | 7.0 | Mixed | Cohesion (LCOM4): Low cohesion: PrismaMessagesRepository (LCOM4 5) |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 83 of 87 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 87 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 337 of 366 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. All 10 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness). Counted over 10 of the 277 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
- D22 Internal API Consistency — 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. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (REDACTED), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published REDACTED's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- 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.
- 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) — kafka Pulling redis Pulling postgres Pulling zookeeper Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis Error context canceled kafka Error context canceled zookeeper Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: zookeeper Pulling kafka Pulling redis Pulling postgres Pulling zookeeper Error Get "https://registry-1.docker.io/v2/": Forbidden kafka Error context canceled redis Error context canceled postgres Error context canceled 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.
- 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.
- R10 Code Duplication — 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. 10 further occurrence(s) are not listed individually; the score already reflects all 50.
- 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.
- 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 REDACTED Scanning: REDACTED 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.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- 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
0 god class(es) detected.
D6 · Cohesion (LCOM4)
2 of 27 classes have LCOM4 above 3.
What to do
- Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with PrismaContactsRepository.ts, PrismaMessagesRepository.ts. — One of this dimension's main actionable groups (2 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 60.8% — 42 file(s) below 50%. Measured from the JavaScript/TypeScript suite (jest via `yarn install --frozen-lockfile --ignore-scripts` in the repository root).
What to do
- Resolve the 42 Low coverage finding(s) in Code Coverage — start with ExpressMiddlewareAdapter.ts, ExpressRouteAdapter.ts, PrismaUsersRepository.ts. — One of this dimension's main actionable groups (42 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
205 test methods: 205 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 205 `it`/`test` case(s) across 98 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 205 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `yarn install --frozen-lockfile --ignore-scripts` in the repository root (162 tests)): measured (0 flaky).
D12 · Dependency Hygiene
16 outdated direct production npm dependency(ies) of 17 graded, 0 pinning defect(s), across 1 REDACTED (1 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 6 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 43 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (43). — One of this dimension's main actionable groups (43 recommendation-level).
- Resolve the 6 Deprecated finding(s) in Dependency Hygiene — start with REDACTED (6). — One of this dimension's main actionable groups (6 warning-level).
- Resolve the 5 Outdated (npm) finding(s) in Dependency Hygiene — start with REDACTED (5). — One of this dimension's main actionable groups (5 recommendation-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 · REDACTED Scanning
2 secret(s) detected.
What to do
- Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 17 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 17 production dependency(ies) this repository's committed lockfile resolves, across 1 product REDACTED manifest(s). Its 40 `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. Repeated repair below the complexity floor: src/infra/kafka/consumer.ts (4 of 7 changes were fixes)
What to do
- Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with consumer.ts. — One of this dimension's main actionable groups (1 warning-level).
D17 · Explicit Debt
4 deducted task-comment markers across 6968 LoC (0.0/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 4 TodoComment finding(s) in Explicit Debt — start with AuthenticateUserController.ts, CreateMessageController.ts, CreateTemplateController.ts. — One of this dimension's main actionable groups (4 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The single README file describes the project name and its technology stack (Node.js, TypeScript, Prisma) but gives no overview of what Umbriel does, no installation/build/usage instructions, no contribution guidance, and no licence statement. It is a thin README with only one line of content.
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D23 · Boundary Type-Coupling
No domain types leak across context boundaries (4 contexts).
D26 · Project Cohesion
1 of 1 build units (npm) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
32 finding(s): 0 critical, 26 high, 6 medium, 0 low. 12 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. Separately, one or more rules could not re-parse an embedded snippet in 3 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 9 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED (3), REDACTED (3). — One of this dimension's main actionable groups (9 issue-level).
- Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
- No action in Static Analysis (SAST) — all 12 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 (12 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
86 finding(s): 11 critical, 42 high, 24 medium, 9 low.
What to do
- Resolve the 42 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (40), REDACTED (2). — One of this dimension's main actionable groups (42 issue-level).
- Resolve the 24 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (22), REDACTED (2). — One of this dimension's main actionable groups (24 warning-level).
- Resolve the 11 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (11). — One of this dimension's main actionable groups (11 issue-level).
D31 · IaC & Container Security
8 finding(s): 0 critical, 2 high, 6 medium, 0 low.
What to do
- Resolve the 2 High IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 6 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (4), REDACTED (2). — One of this dimension's main actionable groups (6 warning-level).
D34 · Knowledge Freshness
10 of 10 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts. Counted over 10 of the 277 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 10 Orphaned file finding(s) in Knowledge Freshness — start with PrismaContactsRepository.ts, PrismaMessagesRepository.ts, InMemoryMessagesRepository.ts. — One of this dimension's main actionable groups (10 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
Strongest change-coupling: InMemoryContactsRepository.ts↔PrismaContactsRepository.ts 82%
What to do
- Resolve the 1 Change coupling finding(s) in Change Coupling — start with InMemoryContactsRepository.ts. — One of this dimension's main actionable groups (1 warning-level).
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 7 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (7 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
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 17 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX6 · Interface segregation
AX7 · Slice cohesion
- `SendMessagePreviewResponse` (slice 'SendMessagePreview') depends on `InvalidMessageError` from slice 'SendMessage'. — src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreview.ts:15
What to do
- Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
C1 · Data Protection
What to do
- Strengthen data-at-rest protection: vault your keys (AWS KMS / Secrets Manager, Azure Key Vault, GCP KMS / REDACTED Manager, HashiCorp Vault) and encrypt the most sensitive columns (typeorm-encrypted, prisma-field-encryption, mongoose-field-encryption or MongoDB CSFLE) — partial coverage still leaves gaps.
- Enforce HTTPS (serve through https.createServer / NestJS httpsOptions, or redirect plain HTTP with express-sslify behind your TLS terminator) so data in transit is always encrypted.
C2 · Access Controls
- Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) — this is NOT a claim that endpoints are unprotected. What's missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can't be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect.
What to do
- Name the access rules — roles/permissions declared once (a @Roles/@Permissions decorator with its guard, a CASL ability, a casbin model, or Supabase CREATE POLICY) and consulted where access is checked, so the rule set is reviewable and testable on its own.
DM1 · Aggregate boundaries
DM10 · One transaction, one aggregate
DM11 · Constructible invalid state
DM2 · Strongly-typed ids
- `Contact.integrationId` is a raw `string` — give it a strongly-typed id: a dedicated single-field type wrapping the `string`, in whatever form your language spells that. — src/modules/subscriptions/domain/contact/contact.ts:47
- `Tag.integrationId` is a raw `string` — give it a strongly-typed id: a dedicated single-field type wrapping the `string`, in whatever form your language spells that. — src/modules/subscriptions/domain/tag/tag.ts:17
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
- `User` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/accounts/domain/user/user.ts:17
- `Event` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/broadcasting/domain/event/event.ts:13
- `Recipient` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/broadcasting/domain/recipient/recipient.ts:11
- `MessageTag` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/broadcasting/domain/message/messageTag.ts:8
- `Message` is an aggregate/entity with 8 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/broadcasting/domain/message/message.ts:23
- `Template` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/broadcasting/domain/template/template.ts:15
- `Subscription` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/subscriptions/domain/contact/subscription.ts:8
- `Contact` is an aggregate/entity with 9 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/subscriptions/domain/contact/contact.ts:22
- `Sender` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/senders/domain/sender/sender.ts:16
- `Tag` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — src/modules/subscriptions/domain/tag/tag.ts:12
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
- `Contact` exposes publicly writable state (name, email, integrationId). — src/modules/subscriptions/domain/contact/contact.ts:22
- `Tag` exposes publicly writable state (title, integrationId). — src/modules/subscriptions/domain/tag/tag.ts:12
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM7 · Repository granularity
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
- The root README is 14 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers.
What to do
- Expand the README with getting-started, architecture overview and a project map.
- 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 an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P10 · Library API & versioning
P2 · Observability
- No logging call was found in the 274 JavaScript/TypeScript production file(s) this check read across 1 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 7827 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.
- 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
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P8 · Schema migrations
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
- `execSync` in `setup` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — prisma/prisma-test-environment.js:31
What to do
- TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety
- 374 typed · 1 plain JS — the untyped files are prisma/prisma-test-environment.js. tsconfig.json switches off noImplicitAny, strictNullChecks, noImplicitThis, so the typed files are only partly type-checked.
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- 55 duplicated blocks under src/modules/ have copies in at least two of the sibling directories accounts, broadcasting, senders, subscriptions — 34 of them are reported below, and 21 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 55 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 55 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 55 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:22
- 6 duplicated blocks under src/modules/subscriptions/useCases/ have copies in at least two of the sibling directories BlockContact, DeleteContactFromIntegration, SubscribeContactFromIntegration, SubscribeContactToTag, UnsubscribeContact, UnsubscribeContactFromIntegration (+1 more sibling(s) not listed) — 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/modules/subscriptions/useCases/UnsubscribeContactFromIntegration/UnsubscribeContactFromIntegration.ts:16
- src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:22 · src/modules/subscriptions/repositories/in-memory/InMemoryContactsRepository.ts:22 — the two spans are one implementation copied and then locally edited — 258 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:22
- src/modules/senders/repositories/prisma/PrismaSendersRepository.ts:32 · src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts:118 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/senders/repositories/prisma/PrismaSendersRepository.ts:32
- src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6 · src/modules/subscriptions/useCases/SearchContacts/SearchContactsController.ts:6 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6
- src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:89 · src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts:49 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:89
- src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts:30 · src/modules/subscriptions/repositories/prisma/PrismaTagsRepository.ts:85 — 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. — src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts:30
- src/modules/broadcasting/mappers/MessageMapper.ts:7 · src/modules/subscriptions/mappers/ContactMapper.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. — src/modules/broadcasting/mappers/MessageMapper.ts:7
- src/modules/accounts/domain/user/email.ts:5 · src/modules/senders/domain/sender/email.ts:5 · src/modules/subscriptions/domain/contact/email.ts:5 — the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/modules/accounts/domain/user/email.ts:5
- src/modules/broadcasting/useCases/CreateTemplate/CreateTemplate.ts:23 · src/modules/senders/useCases/CreateSender/CreateSender.ts:19 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/useCases/CreateTemplate/CreateTemplate.ts:23
- src/modules/senders/mappers/SenderMapper.ts:7 · src/modules/subscriptions/mappers/ContactMapper.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. — src/modules/senders/mappers/SenderMapper.ts:7
- src/modules/broadcasting/repositories/prisma/PrismaMessageTagsRepository.ts:17 · src/modules/subscriptions/repositories/prisma/PrismaSubscriptionsRepository.ts:49 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/repositories/prisma/PrismaMessageTagsRepository.ts:17
- src/modules/broadcasting/useCases/GetMessageDetails/GetMessageDetailsController.ts:13 · src/modules/subscriptions/useCases/GetContactDetails/GetContactDetailsController.ts:13 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/useCases/GetMessageDetails/GetMessageDetailsController.ts:13
- src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4 · src/modules/senders/useCases/SearchSenders/SearchSenders.ts:4 · src/modules/subscriptions/useCases/SearchContacts/SearchContacts.ts:4 · src/modules/subscriptions/useCases/SearchTags/SearchTags.ts:4 — the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4
- src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:14 · src/modules/senders/useCases/CreateSender/CreateSenderController.ts:19 · src/modules/subscriptions/useCases/CreateContact/CreateContactController.ts:19 · src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTagController.ts:19 · +1 more site(s) not listed — the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:14
- src/modules/broadcasting/repositories/in-memory/InMemoryTemplatesRepository.ts:20 · src/modules/subscriptions/repositories/in-memory/InMemoryTagsRepository.ts:36 — 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. — src/modules/broadcasting/repositories/in-memory/InMemoryTemplatesRepository.ts:20
- src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4 · src/modules/broadcasting/useCases/SearchTemplates/SearchTemplates.ts:4 · src/modules/senders/useCases/SearchSenders/SearchSenders.ts:4 · src/modules/subscriptions/useCases/SearchContacts/SearchContacts.ts:4 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4
- src/modules/accounts/domain/user/name.ts:5 · src/modules/senders/domain/sender/name.ts:5 · src/modules/subscriptions/domain/contact/name.ts:5 — the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/modules/accounts/domain/user/name.ts:5
- src/modules/broadcasting/domain/message/body.ts:5 · src/modules/broadcasting/domain/message/subject.ts:5 · src/modules/broadcasting/domain/template/title.ts:5 · src/modules/subscriptions/domain/tag/title.ts:5 — the 4 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/modules/broadcasting/domain/message/body.ts:5
- src/modules/broadcasting/domain/template/title.ts:5 · src/modules/subscriptions/domain/tag/title.ts:5 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/domain/template/title.ts:5
- src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:53 · src/modules/senders/repositories/in-memory/InMemorySendersRepository.ts:24 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:53
- src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts:15 · src/modules/senders/useCases/SetDefaultSender/SetDefaultSenderController.ts:15 · src/modules/subscriptions/useCases/BlockContact/BlockContactController.ts:15 · src/modules/subscriptions/useCases/CreateTag/CreateTagController.ts:18 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts:15
- src/modules/accounts/mappers/UserMapper.ts:9 · src/modules/accounts/useCases/RegisterUser/RegisterUser.ts:34 — the two spans are one implementation copied and then locally edited — 87 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/accounts/mappers/UserMapper.ts:9
- src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6 · src/modules/broadcasting/useCases/SearchTemplates/SearchTemplatesController.ts:6 · src/modules/senders/useCases/SearchSenders/SearchSendersController.ts:6 · src/modules/subscriptions/useCases/SearchContacts/SearchContactsController.ts:6 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6
- src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:6 · src/modules/broadcasting/useCases/CreateTemplate/CreateTemplateController.ts:11 · src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:6 · src/modules/senders/useCases/CreateSender/CreateSenderController.ts:11 · +3 more site(s) not listed — the 7 copies are spread across 7 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:6
- src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40 · src/modules/broadcasting/useCases/CountRecipientsFromTags/CountRecipientsFromTagsController.ts:18 — the two spans are one implementation copied and then locally edited — 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40
- src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40 · src/modules/broadcasting/useCases/PreviewTemplate/PreviewTemplateController.ts:18 — the two spans are one implementation copied and then locally edited — 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40
- src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:21 · src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts:18 · src/modules/senders/useCases/CreateSender/CreateSenderController.ts:26 · src/modules/senders/useCases/RemoveSender/RemoveSenderController.ts:16 · +7 more site(s) not listed — the 11 copies are spread across 11 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:21
- src/modules/senders/useCases/GetAllSenders/GetAllSendersController.ts:9 · src/modules/senders/useCases/SearchSenders/SearchSendersController.ts:19 — the two spans are one implementation copied and then locally edited — 66 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/senders/useCases/GetAllSenders/GetAllSendersController.ts:9
- src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22 · src/modules/subscriptions/useCases/UnsubscribeContactFromTag/UnsubscribeContactFromTag.ts:24 — 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. — src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22
- src/modules/broadcasting/useCases/GetAllTemplates/GetAllTemplatesController.ts:9 · src/modules/broadcasting/useCases/SearchTemplates/SearchTemplatesController.ts:19 — the two spans are one implementation copied and then locally edited — 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/broadcasting/useCases/GetAllTemplates/GetAllTemplatesController.ts:9
- src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:15 · src/modules/subscriptions/useCases/UnsubscribeContact/UnsubscribeContact.ts:15 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:15
- src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:17 · src/modules/broadcasting/useCases/SendMessage/SendMessageController.ts:13 — the two spans are one implementation copied and then locally edited — 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:17
- src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:4 · src/modules/subscriptions/useCases/DeleteContactFromIntegration/DeleteContactFromIntegration.ts:4 · src/modules/subscriptions/useCases/UnsubscribeContact/UnsubscribeContact.ts:4 — the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:4
- src/infra/http/app.ts:5 · src/infra/sns-webhook/app.ts:5 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/infra/http/app.ts:5
- src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplate.ts:6 · src/modules/senders/useCases/SetDefaultSender/SetDefaultSender.ts:6 · src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:6 · src/modules/subscriptions/useCases/DeleteContactFromIntegration/DeleteContactFromIntegration.ts:6 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplate.ts:6
- src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22 · src/modules/subscriptions/useCases/UnsubscribeContactFromIntegration/UnsubscribeContactFromIntegration.ts:21 · src/modules/subscriptions/useCases/UnsubscribeContactFromTag/UnsubscribeContactFromTag.ts:24 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22
- src/modules/broadcasting/domain/event/type.ts:28 · src/modules/broadcasting/domain/message/body.ts:17 · src/modules/broadcasting/domain/message/subject.ts:17 · src/modules/broadcasting/domain/template/content.ts:21 · +2 more site(s) not listed — the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/modules/broadcasting/domain/event/type.ts:28
- src/infra/http/routes/contacts.routes.ts:7 · src/infra/http/routes/messages.routes.ts:8 · src/infra/http/routes/senders.routes.ts:7 · src/infra/http/routes/tags.routes.ts:7 · +1 more site(s) not listed — the 5 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/infra/http/routes/contacts.routes.ts:7
- src/modules/accounts/mappers/UserMapper.ts:18 · src/modules/broadcasting/mappers/MessageMapper.ts:12 · src/modules/broadcasting/mappers/TemplateMapper.ts:12 · src/modules/senders/mappers/SenderMapper.ts:12 · +1 more site(s) not listed — the 5 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — src/modules/accounts/mappers/UserMapper.ts:18
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
- 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. (×13) — src/infra/kafka/consumer.ts:1, src/infra/prisma/seed.ts:1, prisma/prisma-test-environment.js:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling
R7 · Dead Code
- Unreachable from the 7 application, 4 tooling and 101 test entry point(s) detected in this repo. Gate removals on `yarn run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (7 application, 4 tooling, 101 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×6) — src/infra/prisma/seed.ts, prisma/prisma-test-environment.js, src/infra/providers/implementations/mail/MailtrapProvider.ts, …
- no import path from any entry point (7 application, 4 tooling, 101 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/modules/broadcasting/repositories/prisma/PrismaEventsRepository.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — src/modules/broadcasting/repositories/IEventsRepository.ts
- Nothing imports this binding — it is safe to review for removal. (×4) — src/core/infra/HttpResponse.ts:29, src/core/infra/HttpResponse.ts:47, src/core/infra/HttpResponse.ts:65, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
R9 · Circular Imports
S1 · Web-Security Posture
- `this.password === plainTextPassword` checks a password against the stored one in plaintext, so the store holds the password itself and whoever reads it holds every account. — src/modules/accounts/domain/user/password.ts:45
- This code fixes bcrypt at work factor 8. A key-derivation function's only defence is the cost of ONE guess, and that cost is this number — the algorithm choice does not set it. Current OWASP guidance is 1,300,000 PBKDF2 iterations with HMAC-SHA1, 600,000 with SHA-256 and 210,000 with SHA-512; scrypt at N=2^17, r=8, p=1 (or an equivalent N·r·p product); Argon2id at 19 MiB of memory and 2 iterations (or an equivalent row); bcrypt at a work factor of at least 10. This figure divides the attacker's work by a factor of tens or hundreds against the same stolen hash, on hardware they already own. Where what is derived is short or low-entropy — a PIN, a numeric parental code, a four-character token — the whole keyspace falls in the time this parameter buys, and no salt or constant-time comparison changes that. Raise the count to the current published figure for the PRF you use, measure it on the slowest hardware that must run it (a target of roughly 100 ms per derivation is the usual budget), and read the value from configuration so a deployment can raise it again without a rebuild. Where the derived value must interoperate with a format someone else fixed, the count cannot move — derive a SEPARATE value for anything you own rather than inheriting the external format's price. — src/modules/accounts/domain/user/password.ts:33
- `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.) (×2) — src/infra/http/server.ts:3, src/infra/sns-webhook/server.ts:3
What to do
- Store passwords with a salted, deliberately slow KDF — scrypt or PBKDF2 from node:crypto, or bcrypt/Argon2 — and compare with a constant-time check. A fast digest of a password, however it is encoded, is reversed by precomputed tables or GPU guessing. Start in `src/modules/accounts/domain/user/password.ts:45`.
- Raise the cost parameter to current guidance — PBKDF2 at 1,300,000 (HMAC-SHA1), 600,000 (SHA-256) or 210,000 (SHA-512) iterations; scrypt at N=2^17, r=8, p=1; bcrypt at a work factor of 10 or more — or move to a memory-hard KDF (Argon2id, scrypt) where the platform offers one. Read the parameter from configuration and tune it to roughly 100 ms per derivation on the slowest hardware that must run it, so the price can be raised again without shipping new code.
- Enforce HTTPS on each listed server: serve TLS itself, or redirect plain requests to `https://` and send `Strict-Transport-Security` (`helmet()` does by default) behind the TLS-terminating proxy — and commit that proxy's configuration beside the service. A server only this machine reaches should bind `127.0.0.1`.
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
- 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 68% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 76% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 31% | Weak — gated by D34, M1, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 43% | Weak — gated by D13, P2, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 45% | Weak — gated by D29, D30, D36, C1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 58% | Adequate — gated by DM4, DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 85% | Strong | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (an audit-log table or model, an ORM write hook that records changes — a TypeORM/MikroORM subscriber, a Sequelize or Mongoose hook, Prisma middleware — or a change-history plugin such as mongoose-history or sequelize-paper-trail) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 49 check(s) not relevant to this codebase
- AC1 Text alternatives — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC2 Forms & labels — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC3 Page structure — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC4 Keyboard semantics — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC5 ARIA correctness — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC6 Visual & motion safety — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AC7 A11y enforcement — Frontend below the scale floor (1 DOM element(s) < 25) — too little surface to assess accessibility.
- AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
- 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) — kafka Pulling redis Pulling postgres Pulling zookeeper Pulling postgres Error Get "https://registry-1.docker.io/v2/": Forbidden redis Error context canceled kafka Error context canceled zookeeper Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: zookeeper Pulling kafka Pulling redis Pulling postgres Pulling zookeeper Error Get "https://registry-1.docker.io/v2/": Forbidden kafka Error context canceled redis Error context canceled postgres Error context canceled 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.
- D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
- 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.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- 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 (.js,.ts), 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) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- 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
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the JavaScript/TypeScript source (service entry point: src/infra/http/app.ts:9 (express()))
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a REDACTED, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- R5 Dependency Freshness — uses a yarn lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- SC1 Supply-chain hygiene — 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 — 85 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Password hashing without a KDF src/modules/accounts/domain/user/password.ts:45
Serious — 179 finding(s)
- Low coverage: src/core/infra/adapters/ExpressMiddlewareAdapter.ts src/core/infra/adapters/ExpressMiddlewareAdapter.ts:1
- Low coverage: src/core/infra/adapters/ExpressRouteAdapter.ts src/core/infra/adapters/ExpressRouteAdapter.ts:1
- Low coverage: src/modules/accounts/repositories/prisma/PrismaUsersRepository.ts src/modules/accounts/repositories/prisma/PrismaUsersRepository.ts:1
- Low coverage: src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:1
- Low coverage: src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:1
- Low coverage: src/modules/broadcasting/repositories/prisma/PrismaEventsRepository.ts src/modules/broadcasting/repositories/prisma/PrismaEventsRepository.ts:1
- Low coverage: src/modules/broadcasting/repositories/prisma/PrismaMessageTagsRepository.ts src/modules/broadcasting/repositories/prisma/PrismaMessageTagsRepository.ts:1
- Low coverage: src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:1
- Low coverage: src/modules/broadcasting/repositories/prisma/PrismaRecipientsRepository.ts src/modules/broadcasting/repositories/prisma/PrismaRecipientsRepository.ts:1
- Low coverage: src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts:1
- Low coverage: src/modules/broadcasting/useCases/CountRecipientsFromTags/CountRecipientsFromTagsController.ts src/modules/broadcasting/useCases/CountRecipientsFromTags/CountRecipientsFromTagsController.ts:1
- Low coverage: src/modules/broadcasting/useCases/CreateMessage/CreateMessageController.ts src/modules/broadcasting/useCases/CreateMessage/CreateMessageController.ts:1
- Low coverage: src/modules/broadcasting/useCases/CreateTemplate/CreateTemplateController.ts src/modules/broadcasting/useCases/CreateTemplate/CreateTemplateController.ts:1
- Low coverage: src/modules/broadcasting/useCases/GetAllTemplates/GetAllTemplatesController.ts src/modules/broadcasting/useCases/GetAllTemplates/GetAllTemplatesController.ts:1
- Low coverage: src/modules/broadcasting/useCases/GetMessageDetails/GetMessageDetailsController.ts src/modules/broadcasting/useCases/GetMessageDetails/GetMessageDetailsController.ts:1
- Low coverage: src/modules/broadcasting/useCases/GetMessageStats/GetMessageStatsController.ts src/modules/broadcasting/useCases/GetMessageStats/GetMessageStatsController.ts:1
- Low coverage: src/modules/broadcasting/useCases/PreviewTemplate/PreviewTemplateController.ts src/modules/broadcasting/useCases/PreviewTemplate/PreviewTemplateController.ts:1
- Low coverage: src/modules/broadcasting/useCases/RegisterEvent/RegisterEventController.ts src/modules/broadcasting/useCases/RegisterEvent/RegisterEventController.ts:1
- Low coverage: src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:1
- Low coverage: src/modules/broadcasting/useCases/SearchTemplates/SearchTemplatesController.ts src/modules/broadcasting/useCases/SearchTemplates/SearchTemplatesController.ts:1
- Low coverage: src/modules/broadcasting/useCases/SendMessage/SendMessageController.ts src/modules/broadcasting/useCases/SendMessage/SendMessageController.ts:1
- Low coverage: src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:1
- Low coverage: src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts:1
- Low coverage: src/modules/senders/repositories/prisma/PrismaSendersRepository.ts src/modules/senders/repositories/prisma/PrismaSendersRepository.ts:1
- Low coverage: src/modules/senders/useCases/CreateSender/CreateSenderController.ts src/modules/senders/useCases/CreateSender/CreateSenderController.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No test reaches this file src/infra/kafka/consumer.ts:1
- No test reaches this file src/infra/prisma/seed.ts:1
- No test reaches this file prisma/prisma-test-environment.js:1
- No test reaches this file src/infra/providers/implementations/mail/MailtrapProvider.ts:1
- No test reaches this file src/modules/broadcasting/mappers/RecipientDetailsMapper.ts:1
- No test reaches this file src/infra/queue/worker.ts:1
- No test reaches this file src/infra/kafka/client.ts:1
- No test reaches this file src/modules/broadcasting/repositories/prisma/PrismaEventsRepository.ts:1
- No test reaches this file src/infra/kafka/adapters/KafkaHandlerAdapter.ts:1
- No test reaches this file src/infra/kafka/app.ts:1
- No test reaches this file src/modules/broadcasting/useCases/SendMessagePreview/errors/InvalidMessageError.ts:1
- No test reaches this file src/infra/http/server.ts:1
- No test reaches this file src/infra/sns-webhook/server.ts:1
- Anemic entity: User src/modules/accounts/domain/user/user.ts:17
- Anemic entity: Event src/modules/broadcasting/domain/event/event.ts:13
- Anemic entity: Recipient src/modules/broadcasting/domain/recipient/recipient.ts:11
- Anemic entity: MessageTag src/modules/broadcasting/domain/message/messageTag.ts:8
- Anemic entity: Message src/modules/broadcasting/domain/message/message.ts:23
- Anemic entity: Template src/modules/broadcasting/domain/template/template.ts:15
- Anemic entity: Subscription src/modules/subscriptions/domain/contact/subscription.ts:8
- Anemic entity: Contact src/modules/subscriptions/domain/contact/contact.ts:22
- Anemic entity: Sender src/modules/senders/domain/sender/sender.ts:16
- Anemic entity: Tag src/modules/subscriptions/domain/tag/tag.ts:12
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Deprecated: @babel/plugin-proposal-class-properties REDACTED:22
- Deprecated: eslint REDACTED:41
- Deprecated: supertest REDACTED:54
- Deprecated: aws-sdk REDACTED:62
- Deprecated: request REDACTED:75
- Deprecated: uuid REDACTED:77
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- TodoComment src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:19
- TodoComment src/modules/broadcasting/useCases/CreateMessage/CreateMessageController.ts:30
- TodoComment src/modules/broadcasting/useCases/CreateTemplate/CreateTemplateController.ts:24
- TodoComment src/modules/broadcasting/useCases/SendMessage/SendMessageController.ts:15
- Duplicated block with local edits (16 matched lines × 2 locations) src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40
- Duplicated block with local edits (16 matched lines × 2 locations) src/modules/accounts/useCases/RegisterUser/RegisterUserController.ts:40
- Duplicated block with local edits (16 matched lines × 2 locations) src/modules/senders/useCases/GetAllSenders/GetAllSendersController.ts:9
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Low cohesion: PrismaContactsRepository (LCOM4 9) src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts:14
- Low cohesion: PrismaMessagesRepository (LCOM4 5) src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:19
- Mutable entity: Contact src/modules/subscriptions/domain/contact/contact.ts:22
- Mutable entity: Tag src/modules/subscriptions/domain/tag/tag.ts:12
- Duplicated block (34 lines × 2 locations) src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:89
- Duplicated block (34 lines × 2 locations) src/modules/broadcasting/repositories/prisma/PrismaTemplatesRepository.ts:30
- Duplicated block (30 lines × 2 locations) src/modules/broadcasting/useCases/CreateTemplate/CreateTemplate.ts:23
- Duplicated block (30 lines × 2 locations) src/modules/senders/mappers/SenderMapper.ts:7
- Duplicated block (11 lines × 5 locations) src/infra/http/routes/contacts.routes.ts:7
- Duplicated block (11 lines × 5 locations) src/modules/accounts/mappers/UserMapper.ts:18
- Cross-slice coupling: SendMessagePreview → SendMessage src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreview.ts:15
- Repeated repair: src/infra/kafka/consumer.ts src/infra/kafka/consumer.ts:41
- REDACTED
- REDACTED
- Change coupling: InMemoryContactsRepository.ts ↔ PrismaContactsRepository.ts src/modules/subscriptions/repositories/in-memory/InMemoryContactsRepository.ts:1
- REDACTED
- REDACTED
- REDACTED
- No structured logging
- Sync-over-async blocking prisma/prisma-test-environment.js:31
- Type Safety
- Duplication concentrated across 4 sibling directories (55 clone groups) src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:22
- Duplication concentrated across 7 sibling directories (6 clone groups) src/modules/subscriptions/useCases/UnsubscribeContactFromIntegration/UnsubscribeContactFromIntegration.ts:16
- Duplicated block with local edits (44 matched lines × 2 locations) src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:22
- Duplicated block (37 lines × 2 locations) src/modules/senders/repositories/prisma/PrismaSendersRepository.ts:32
- Duplicated block (35 lines × 2 locations) src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6
- Duplicated block (32 lines × 2 locations) src/modules/broadcasting/mappers/MessageMapper.ts:7
- Duplicated block (30 lines × 3 locations) src/modules/accounts/domain/user/email.ts:5
- Duplicated block (25 lines × 2 locations) src/modules/broadcasting/repositories/prisma/PrismaMessageTagsRepository.ts:17
- Duplicated block (24 lines × 2 locations) src/modules/broadcasting/useCases/GetMessageDetails/GetMessageDetailsController.ts:13
- Duplicated block (24 lines × 4 locations) src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4
- Duplicated block (24 lines × 5 locations) src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:14
- Duplicated block (23 lines × 2 locations) src/modules/broadcasting/repositories/in-memory/InMemoryTemplatesRepository.ts:20
- Duplicated block (22 lines × 5 locations) src/modules/broadcasting/useCases/SearchMessages/SearchMessages.ts:4
- Duplicated block (21 lines × 3 locations) src/modules/accounts/domain/user/name.ts:5
- Duplicated block (21 lines × 4 locations) src/modules/broadcasting/domain/message/body.ts:5
- Duplicated block (21 lines × 2 locations) src/modules/broadcasting/domain/template/title.ts:5
- Duplicated block (19 lines × 2 locations) src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:53
- Duplicated block (19 lines × 5 locations) src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplateController.ts:15
- Duplicated block with local edits (18 matched lines × 2 locations) src/modules/accounts/mappers/UserMapper.ts:9
- Duplicated block (18 lines × 5 locations) src/modules/broadcasting/useCases/SearchMessages/SearchMessagesController.ts:6
- Duplicated block (17 lines × 7 locations) src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:6
- Duplicated block (16 lines × 11 locations) src/modules/broadcasting/useCases/SendMessagePreview/SendMessagePreviewController.ts:21
- Duplicated block (16 lines × 2 locations) src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22
- Duplicated block with local edits (15 matched lines × 2 locations) src/modules/broadcasting/useCases/GetAllTemplates/GetAllTemplatesController.ts:9
- Duplicated block (15 lines × 2 locations) src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:15
- Duplicated block with local edits (14 matched lines × 2 locations) src/modules/accounts/useCases/AuthenticateUser/AuthenticateUserController.ts:17
- Duplicated block (14 lines × 3 locations) src/modules/subscriptions/useCases/BlockContact/BlockContact.ts:4
- Duplicated block (13 lines × 2 locations) src/infra/http/app.ts:5
- Duplicated block (13 lines × 5 locations) src/modules/broadcasting/useCases/SetDefaultTemplate/SetDefaultTemplate.ts:6
- Duplicated block (13 lines × 3 locations) src/modules/subscriptions/useCases/SubscribeContactToTag/SubscribeContactToTag.ts:22
- Duplicated block (12 lines × 6 locations) src/modules/broadcasting/domain/event/type.ts:28
- Dead file (~54 LoC) src/infra/prisma/seed.ts
- Dead file (~47 LoC) prisma/prisma-test-environment.js
- Dead file (~26 LoC) src/infra/providers/implementations/mail/MailtrapProvider.ts
- Dead file (~25 LoC) src/modules/broadcasting/mappers/RecipientDetailsMapper.ts
- Dead file (~15 LoC) src/modules/broadcasting/repositories/prisma/PrismaEventsRepository.ts
- Dead file (~8 LoC) src/modules/broadcasting/useCases/SendMessagePreview/errors/InvalidMessageError.ts
- Dead file (~5 LoC) src/modules/broadcasting/repositories/IEventsRepository.ts
- Password key derivation is priced too cheaply src/modules/accounts/domain/user/password.ts:33
Minor — 91 finding(s)
- Deprecated: @babel/plugin-proposal-async-generator-functions REDACTED:687
- Deprecated: @babel/plugin-proposal-class-static-block REDACTED:704
- Deprecated: @babel/plugin-proposal-dynamic-import REDACTED:713
- Deprecated: @babel/plugin-proposal-export-namespace-from REDACTED:721
- Deprecated: @babel/plugin-proposal-json-strings REDACTED:729
- Deprecated: @babel/plugin-proposal-logical-assignment-operators REDACTED:737
- Deprecated: @babel/plugin-proposal-nullish-coalescing-operator REDACTED:745
- Deprecated: @babel/plugin-proposal-numeric-separator REDACTED:753
- Deprecated: @babel/plugin-proposal-object-rest-spread REDACTED:761
- Deprecated: @babel/plugin-proposal-optional-catch-binding REDACTED:772
- Deprecated: @babel/plugin-proposal-optional-chaining REDACTED:780
- Deprecated: @babel/plugin-proposal-private-methods REDACTED:789
- Deprecated: @babel/plugin-proposal-private-property-in-object REDACTED:797
- Deprecated: @babel/plugin-proposal-unicode-property-regex REDACTED:807
- Deprecated: @humanwhocodes/config-array REDACTED:1476
- Deprecated: @humanwhocodes/object-schema REDACTED:1485
- Deprecated: abab REDACTED:2190
- Deprecated: core-js-pure REDACTED:3169
- Deprecated: core-js REDACTED:3174
- Deprecated: domexception REDACTED:3480
- Deprecated: formidable REDACTED:4331
- Deprecated: glob REDACTED:4476
- Deprecated: glob REDACTED:4488
- Deprecated: har-validator REDACTED:4597
- Deprecated: inflight REDACTED:4859
- Orphaned file src/modules/subscriptions/repositories/prisma/PrismaContactsRepository.ts:1
- Orphaned file src/modules/broadcasting/repositories/prisma/PrismaMessagesRepository.ts:1
- Orphaned file src/modules/broadcasting/repositories/in-memory/InMemoryMessagesRepository.ts:1
- Orphaned file src/modules/subscriptions/repositories/in-memory/InMemoryContactsRepository.ts:1
- Orphaned file src/modules/broadcasting/useCases/SendMessage/SendMessage.ts:1
- Orphaned file src/modules/subscriptions/repositories/prisma/PrismaTagsRepository.ts:1
- Orphaned file src/modules/broadcasting/useCases/RegisterEvent/RegisterEventController.ts:1
- Orphaned file src/modules/subscriptions/useCases/SubscribeContactFromIntegration/SubscribeContactFromIntegration.ts:1
- Orphaned file src/infra/kafka/consumer.ts:1
- Orphaned file src/modules/subscriptions/domain/contact/contact.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Outdated (npm): @prisma/client REDACTED:61
- Outdated (npm): bullmq REDACTED:64
- Outdated (npm): dotenv REDACTED:66
- Outdated (npm): nodemailer REDACTED:74
- Outdated (npm): uuid REDACTED:77
- Primitive id on a domain type: Contact.integrationId src/modules/subscriptions/domain/contact/contact.ts:47
- Primitive id on a domain type: Tag.integrationId src/modules/subscriptions/domain/tag/tag.ts:17
- No app-layer HTTPS enforcement detected src/infra/http/server.ts:3
- No app-layer HTTPS enforcement detected src/infra/sns-webhook/server.ts:3
- No named authorization policies
- Documentation: no installation or build instructions README.md
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- REDACTED
- REDACTED
- Thin README
- No ADRs
- No architecture diagram/doc
- No SAST
- No rollback/health safety
- Unused export 'unauthorized' src/core/infra/HttpResponse.ts:29
- Unused export 'notFound' src/core/infra/HttpResponse.ts:47
- Unused export 'tooMany' src/core/infra/HttpResponse.ts:65
- Unused export 'AuthMiddleware' src/infra/http/middlewares/EnsureAuthenticatedMiddleware.ts:42
- Duplicated predicate src/modules/accounts/domain/user/name.ts:17
- Strict null checking is not enabled everywhere the repository type-checks
Minor — 11 finding(s)
- Outdated (npm): aws-sdk
- Outdated (npm): bcryptjs
- Outdated (npm): cors
- Outdated (npm): dotenv-flow
- Outdated (npm): express
- Outdated (npm): html-to-text
- Outdated (npm): inline-css
- Outdated (npm): ioredis
- Outdated (npm): jsonwebtoken
- Outdated (npm): kafkajs
- Outdated (npm): sns-validator
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-8cf0ed172d21415ea5967b41209b6894/history.json --exit-code 0 --source . | 1 | 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-8cf0ed172d21415ea5967b41209b6894/tree.json --exit-code 0 --source . | 1 | 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 . | 32 | 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 | 86 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 8 | 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 |