Executive summary
zhuravlevma/typescript-ddd-architecture scores 33 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 21 and is rated Critical. Its DR & Backup dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 1 Malicious package finding(s) in Malicious Dependencies and to resolve the 4 Outdated (npm) finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 33 to about 44.
52 findings are critical: 30 in Dependency Vulnerabilities, 13 in Static Analysis (SAST), five in Circular Imports, two in IaC & Container Security, one in Change Coupling and one in Dependency Hygiene.
Watchdog couldn't measure Navigability, Structured logging and Runtime accessibility in this code, so those dimensions are left out of the score. The product code is 5,076 lines, which would take an estimated 0.1 person-years, around €5,300, to rebuild.
If Production Readiness rose from 21 to 70, the lowest score rated Strong, the score would rise from 33 to about 44.
New since the last survey: 20 findings
- Dependency Hygiene · Deprecated: @types/cron package.json
- Dependency Hygiene · Deprecated: eslint package.json
- Dependency Hygiene · Deprecated: supertest package.json
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Dependency Hygiene · Unlisted import 'express' src/__infrastructure__/correlation/middleware.ts
- Incompleteness & stubs · Fake-async — async method never awaits src/cart/payment/api/external-payment-api.ts
Fixed since the last survey: 151 findings
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Supply-chain Provenance & Signing REDACTED
- Test Coverage · No test reaches this file src/cart/cart/dal/cart.mapper.ts
- Test Coverage · No test reaches this file src/delivery/board/board.module.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/controllers/dtos/response/saved-warehouse.response-dto.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/dal/orm-entities/orders.orm-entity.ts
- Test Coverage · No test reaches this file src/__infrastructure__/uow/uow.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/interactors/create-report.interactor.ts
- Test Coverage · No test reaches this file src/cart/cart/controllers/dtos/response/saved-cart.response-dto.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/dal/warehouse.mapper.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/interactors/update-curiers-info.interactor.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/interactors/update-order.interactor.ts
- Test Coverage · No test reaches this file src/__infrastructure__/correlation/correlation.service.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/dal/offer.mapper.ts
- Test Coverage · No test reaches this file src/__saga__/registrator.controller.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/dal/orm-entities/offer.orm-entity.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/interactors/change-curiers-status.interactor.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/interactors/update-report.interactor.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/domain/interactors/create-offer.interactor.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/interactors/create-curier.interactor.ts
- Test Coverage · No test reaches this file src/cart/cart/domain/entities/cart-position.entity.ts
- Test Coverage · No test reaches this file src/delivery/tracking/api/external-tracking-api.ts
- Test Coverage · No test reaches this file src/warehouse/tracking/api/external-tracking-api.ts
- Test Coverage · No test reaches this file src/warehouse/tracking/models/delivery.model.ts
- Test Coverage · No test reaches this file src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts
- Test Coverage · No test reaches this file src/cart/cart/domain/events/order-created.event.ts
- Test Coverage · No test reaches this file src/cart/payment/events/payment-completed.event.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/domain/interactors/update-offer.interactor.ts
- Test Coverage · No test reaches this file src/accounting/verification/api/external-verification-api.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/dal/orm-entities/order.orm-entity.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/interactors/update-order.interactor.ts
- Test Coverage · No test reaches this file src/config.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/controllers/dtos/response/saved-offer.response-dto.ts
- Test Coverage · No test reaches this file src/delivery/tracking/models/route.model.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/object-values/amount.object-value.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/entities/order.entity.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/read-models/order.read-model.ts
- Test Coverage · No test reaches this file src/__infrastructure__/context/context-middleware.ts
- Test Coverage · No test reaches this file src/delivery/board/offer/domain/events/offer-taked.event.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/events/extend-order-period.event.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/interactors/add-order.interactor.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/events/report-validated.event.ts
- Test Coverage · No test reaches this file src/cart/cart/domain/events/order-cancelled.event.ts
- Test Coverage · No test reaches this file src/cart/cart/domain/interactors/update-cart.interactor.ts
- Test Coverage · No test reaches this file src/cart/payment/events/payment-failed.event.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/events/order-validated.event.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/interactors/create-warehouse.interactor.ts
- Test Coverage · No test reaches this file src/__saga__/saga-compensation.event.ts
- Test Coverage · No test reaches this file src/__saga__/saga-completed.event.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/dal/orm-entities/report.orm-entity.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/queries/find-curier-with-count-of-orders.query.ts
- Test Coverage · No test reaches this file src/__infrastructure__/rabbitmq/rabbitmq.module.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/queries/find-report-with-positions.query.ts
- Test Coverage · No test reaches this file src/cart/cart/dal/orm-entities/cart.orm-entity.ts
- Test Coverage · No test reaches this file src/cart/cart/controllers/dtos/add-order.dto.ts
- Test Coverage · No test reaches this file src/cart/payment/controllers/payment.controller.ts
- Test Coverage · No test reaches this file src/cart/payment/models/payment.model.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/controllers/dtos/add-order.dto.ts
- Test Coverage · No test reaches this file src/accounting/verification/controllers/verfication.controller.ts
- Test Coverage · No test reaches this file src/accounting/verification/dtos/update-verification.dto.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/controllers/dtos/update-curiers-info.dto.ts
- Test Coverage · No test reaches this file src/delivery/tracking/controllers/tracking.controller.ts
- Test Coverage · No test reaches this file src/main.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/dal/orm-entities/warehouse.orm-entity.ts
- Test Coverage · No test reaches this file src/warehouse/tracking/controllers/tracking.controller.ts
- Test Coverage · No test reaches this file src/__infrastructure__/context/context.module.ts
- Test Coverage · No test reaches this file src/cart/cart/api/external-saga-api.ts
- Test Coverage · No test reaches this file src/cart/payment/api/external-payment-api.ts
- Test Coverage · No test reaches this file src/__infrastructure__/correlation/correlation.module.ts
- Test Coverage · No test reaches this file src/__infrastructure__/correlation/middleware.ts
- Test Coverage · No test reaches this file src/__saga__/saga.module.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/read-models/curier-with-count-of-orders.read-model.ts
- Test Coverage · No test reaches this file src/__relay__/relay.module.ts
- Test Coverage · No test reaches this file src/accounting/verification/dtos/create-verification.dto.ts
- Test Coverage · No test reaches this file src/warehouse/tracking/dtos/update-delivery.dto.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/queries/find-report-by-id.query.ts
- Test Coverage · No test reaches this file src/accounting/verification/verification.module.ts
- Test Coverage · No test reaches this file src/cart/payment/payment.module.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/controllers/dtos/add-order-to-curier.dto.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/controllers/dtos/update-order-status.dto.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/ports/in/update-order.in-port.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/controllers/dtos/create-curier.dto.ts
- Test Coverage · No test reaches this file src/delivery/curiers/curier/domain/ports/in/update-curier-info.in-port.ts
- Test Coverage · No test reaches this file src/delivery/tracking/tracking.module.ts
- Test Coverage · No test reaches this file src/warehouse/order-management/warehouse/domain/ports/in/update-order.in-port.ts
- Test Coverage · No test reaches this file src/warehouse/tracking/tracking.module.ts
- Test Coverage · No test reaches this file src/accounting/reports/report/domain/ports/in/update-report.in-port.ts
Rebuild cost: about €5,300 · Estimate
| Cost to rebuild | €1,800 to €8,800, for 29 to 93 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 33. 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: 5,076 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 __infrastructure__.correlation.correlation_service | 2 __lib__.domain-message | 3 accounting.reports.report.dal.orm-entities.report_orm-entity | 4 accounting.reports.report.domain.object-values.amount_object-value | 5 accounting.reports.report.domain.read-models.report_read-model | 6 cart.cart.dal.orm-entities.cart_orm-entity | 7 delivery.tracking.api.external-tracking-api | 8 __lib__.entity | 9 accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port | 10 cart.cart.domain.events.order-created_event | 11 cart.payment.events.payment-completed_event | 12 delivery.tracking.services.tracking_service | 13 warehouse.tracking.services.tracking_service | 14 __lib__.aggregate | 15 accounting.verification.services.verification_service | 16 cart.payment.services.payment_service | 17 accounting.reports.report.domain.entities.report_entity | 18 accounting.verification.controllers.verfication_controller | 19 cart.cart.domain.entities.cart_entity | 20 delivery.board.offer.domain.entities.offer_entity | 21 delivery.curiers.curier.domain.entities.curier_entity | 22 warehouse.order-management.warehouse.domain.entities.warehouse_entity | 23 accounting.reports.report.dal.report_repository | 24 accounting.reports.report.domain.ports.in.create-report_in-port | 25 accounting.reports.report.domain.ports.in.find-report-by-id_in-port | 26 accounting.reports.report.domain.ports.in.update-report_in-port | 27 cart.cart.dal.cart_repository | 28 cart.cart.domain.ports.in.create-cart_in-port | 29 cart.cart.domain.ports.in.update-cart_in-port | 30 delivery.board.offer.dal.offer_repository | 31 delivery.board.offer.domain.ports.in.create-offer_in-port | 32 delivery.board.offer.domain.ports.in.update-offer_in-port | 33 delivery.curiers.curier.dal.curier_repository | 34 delivery.curiers.curier.domain.ports.in.update-order_in-port | 35 warehouse.order-management.warehouse.domain.ports.in.add-order_in-port | 36 accounting.reports.report.controllers.report_controller | 37 cart.cart.controllers.cart_controller | 38 delivery.board.offer.controllers.offer_controller | 39 delivery.curiers.curier.controllers.curier_controller | 40 warehouse.order-management.warehouse.controllers.warehouse_controller |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 __infrastructure__.correlation.correlation_service | ||||||||||||||||||||||||||||||||||||||||
| 2 __lib__.domain-message | ||||||||||||||||||||||||||||||||||||||||
| 3 accounting.reports.report.dal.orm-entities.report_orm-entity | ||||||||||||||||||||||||||||||||||||||||
| 4 accounting.reports.report.domain.object-values.amount_object-value | ||||||||||||||||||||||||||||||||||||||||
| 5 accounting.reports.report.domain.read-models.report_read-model | ||||||||||||||||||||||||||||||||||||||||
| 6 cart.cart.dal.orm-entities.cart_orm-entity | ||||||||||||||||||||||||||||||||||||||||
| 7 delivery.tracking.api.external-tracking-api | ||||||||||||||||||||||||||||||||||||||||
| 8 __lib__.entity | 1 | |||||||||||||||||||||||||||||||||||||||
| 9 accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 10 cart.cart.domain.events.order-created_event | 2 | |||||||||||||||||||||||||||||||||||||||
| 11 cart.payment.events.payment-completed_event | 2 | |||||||||||||||||||||||||||||||||||||||
| 12 delivery.tracking.services.tracking_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 13 warehouse.tracking.services.tracking_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 __lib__.aggregate | 1 | |||||||||||||||||||||||||||||||||||||||
| 15 accounting.verification.services.verification_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 cart.payment.services.payment_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 accounting.reports.report.domain.entities.report_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 18 accounting.verification.controllers.verfication_controller | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 cart.cart.domain.entities.cart_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 20 delivery.board.offer.domain.entities.offer_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 21 delivery.curiers.curier.domain.entities.curier_entity | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 22 warehouse.order-management.warehouse.domain.entities.warehouse_entity | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 23 accounting.reports.report.dal.report_repository | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 24 accounting.reports.report.domain.ports.in.create-report_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 25 accounting.reports.report.domain.ports.in.find-report-by-id_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 accounting.reports.report.domain.ports.in.update-report_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 cart.cart.dal.cart_repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 28 cart.cart.domain.ports.in.create-cart_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 cart.cart.domain.ports.in.update-cart_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 delivery.board.offer.dal.offer_repository | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 31 delivery.board.offer.domain.ports.in.create-offer_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 32 delivery.board.offer.domain.ports.in.update-offer_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 delivery.curiers.curier.dal.curier_repository | 1 | |||||||||||||||||||||||||||||||||||||||
| 34 delivery.curiers.curier.domain.ports.in.update-order_in-port | 1 | |||||||||||||||||||||||||||||||||||||||
| 35 warehouse.order-management.warehouse.domain.ports.in.add-order_in-port | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 36 accounting.reports.report.controllers.report_controller | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 37 cart.cart.controllers.cart_controller | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 38 delivery.board.offer.controllers.offer_controller | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 39 delivery.curiers.curier.controllers.curier_controller | 1 | |||||||||||||||||||||||||||||||||||||||
| 40 warehouse.order-management.warehouse.controllers.warehouse_controller | 1 | 1 | 1 |
8→4 __lib__.entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in __lib__.entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.__lib__.entity.Entity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- __lib__.entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break __lib__.entity, while a change to __lib__.entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: __lib__.entity uses a module listed above it, which is the healthy direction.
9→5 accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port uses accounting.reports.report.domain.read-models.report_read-model✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port uses a type in accounting.reports.report.domain.read-models.report_read-model.
- The types involved
src.accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.FindReportWithPositionsByIdInPort→src.accounting.reports.report.domain.read-models.report_read-model.ReportReadModel
- Direction
- accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port uses accounting.reports.report.domain.read-models.report_read-model, so a change to accounting.reports.report.domain.read-models.report_read-model can break accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port, while a change to accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port can't break accounting.reports.report.domain.read-models.report_read-model.
- Position
- Below the diagonal: accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port uses a module listed above it, which is the healthy direction.
10→2 cart.cart.domain.events.order-created_event uses __lib__.domain-message✕
- Connections
- 2 pairs of types, where a type in cart.cart.domain.events.order-created_event uses a type in __lib__.domain-message.
- The types involved
src.cart.cart.domain.events.order-created_event.OrderCreatedEvent→src.__lib__.domain-message.DomainEventsrc.cart.cart.domain.events.order-created_event.OrderCreatedEvent→src.__lib__.domain-message.DomainMessageAttributes
- Direction
- cart.cart.domain.events.order-created_event uses __lib__.domain-message, so a change to __lib__.domain-message can break cart.cart.domain.events.order-created_event, while a change to cart.cart.domain.events.order-created_event can't break __lib__.domain-message.
- Position
- Below the diagonal: cart.cart.domain.events.order-created_event uses a module listed above it, which is the healthy direction.
11→2 cart.payment.events.payment-completed_event uses __lib__.domain-message✕
- Connections
- 2 pairs of types, where a type in cart.payment.events.payment-completed_event uses a type in __lib__.domain-message.
- The types involved
src.cart.payment.events.payment-completed_event.PaymentCompletedEvent→src.__lib__.domain-message.DomainEventsrc.cart.payment.events.payment-completed_event.PaymentCompletedEvent→src.__lib__.domain-message.DomainMessageAttributes
- Direction
- cart.payment.events.payment-completed_event uses __lib__.domain-message, so a change to __lib__.domain-message can break cart.payment.events.payment-completed_event, while a change to cart.payment.events.payment-completed_event can't break __lib__.domain-message.
- Position
- Below the diagonal: cart.payment.events.payment-completed_event uses a module listed above it, which is the healthy direction.
12→7 delivery.tracking.services.tracking_service uses delivery.tracking.api.external-tracking-api✕
- Connections
- 1 pair of types, where a type in delivery.tracking.services.tracking_service uses a type in delivery.tracking.api.external-tracking-api.
- The types involved
src.delivery.tracking.services.tracking_service.TrackingService→src.delivery.tracking.api.external-tracking-api.ExternalTrackingApi
- Direction
- delivery.tracking.services.tracking_service uses delivery.tracking.api.external-tracking-api, so a change to delivery.tracking.api.external-tracking-api can break delivery.tracking.services.tracking_service, while a change to delivery.tracking.services.tracking_service can't break delivery.tracking.api.external-tracking-api.
- Position
- Below the diagonal: delivery.tracking.services.tracking_service uses a module listed above it, which is the healthy direction.
13→7 warehouse.tracking.services.tracking_service uses delivery.tracking.api.external-tracking-api✕
- Connections
- 1 pair of types, where a type in warehouse.tracking.services.tracking_service uses a type in delivery.tracking.api.external-tracking-api.
- The types involved
src.warehouse.tracking.services.tracking_service.TrackingService→src.delivery.tracking.api.external-tracking-api.ExternalTrackingApi
- Direction
- warehouse.tracking.services.tracking_service uses delivery.tracking.api.external-tracking-api, so a change to delivery.tracking.api.external-tracking-api can break warehouse.tracking.services.tracking_service, while a change to warehouse.tracking.services.tracking_service can't break delivery.tracking.api.external-tracking-api.
- Position
- Below the diagonal: warehouse.tracking.services.tracking_service uses a module listed above it, which is the healthy direction.
14→8 __lib__.aggregate uses __lib__.entity✕
- Connections
- 1 pair of types, where a type in __lib__.aggregate uses a type in __lib__.entity.
- The types involved
src.__lib__.aggregate.Aggregate→src.__lib__.entity.Entity
- Direction
- __lib__.aggregate uses __lib__.entity, so a change to __lib__.entity can break __lib__.aggregate, while a change to __lib__.aggregate can't break __lib__.entity.
- Position
- Below the diagonal: __lib__.aggregate uses a module listed above it, which is the healthy direction.
15→9 accounting.verification.services.verification_service uses accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port✕
- Connections
- 1 pair of types, where a type in accounting.verification.services.verification_service uses a type in accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.
- The types involved
src.accounting.verification.services.verification_service.VerificationService→src.accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.FindReportWithPositionsByIdInPort
- Direction
- accounting.verification.services.verification_service uses accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port, so a change to accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port can break accounting.verification.services.verification_service, while a change to accounting.verification.services.verification_service can't break accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.
- Position
- Below the diagonal: accounting.verification.services.verification_service uses a module listed above it, which is the healthy direction.
16→10 cart.payment.services.payment_service uses cart.cart.domain.events.order-created_event✕
- Connections
- 1 pair of types, where a type in cart.payment.services.payment_service uses a type in cart.cart.domain.events.order-created_event.
- The types involved
src.cart.payment.services.payment_service.PaymentService→src.cart.cart.domain.events.order-created_event.OrderCreatedEvent
- Direction
- cart.payment.services.payment_service uses cart.cart.domain.events.order-created_event, so a change to cart.cart.domain.events.order-created_event can break cart.payment.services.payment_service, while a change to cart.payment.services.payment_service can't break cart.cart.domain.events.order-created_event.
- Position
- Below the diagonal: cart.payment.services.payment_service uses a module listed above it, which is the healthy direction.
17→4 accounting.reports.report.domain.entities.report_entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.entities.report_entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.accounting.reports.report.domain.entities.report_entity.ReportEntity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- accounting.reports.report.domain.entities.report_entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break accounting.reports.report.domain.entities.report_entity, while a change to accounting.reports.report.domain.entities.report_entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: accounting.reports.report.domain.entities.report_entity uses a module listed above it, which is the healthy direction.
17→14 accounting.reports.report.domain.entities.report_entity uses __lib__.aggregate✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.entities.report_entity uses a type in __lib__.aggregate.
- The types involved
src.accounting.reports.report.domain.entities.report_entity.ReportEntity→src.__lib__.aggregate.Aggregate
- Direction
- accounting.reports.report.domain.entities.report_entity uses __lib__.aggregate, so a change to __lib__.aggregate can break accounting.reports.report.domain.entities.report_entity, while a change to accounting.reports.report.domain.entities.report_entity can't break __lib__.aggregate.
- Position
- Below the diagonal: accounting.reports.report.domain.entities.report_entity uses a module listed above it, which is the healthy direction.
18→15 accounting.verification.controllers.verfication_controller uses accounting.verification.services.verification_service✕
- Connections
- 1 pair of types, where a type in accounting.verification.controllers.verfication_controller uses a type in accounting.verification.services.verification_service.
- The types involved
src.accounting.verification.controllers.verfication_controller.VerificationController→src.accounting.verification.services.verification_service.VerificationService
- Direction
- accounting.verification.controllers.verfication_controller uses accounting.verification.services.verification_service, so a change to accounting.verification.services.verification_service can break accounting.verification.controllers.verfication_controller, while a change to accounting.verification.controllers.verfication_controller can't break accounting.verification.services.verification_service.
- Position
- Below the diagonal: accounting.verification.controllers.verfication_controller uses a module listed above it, which is the healthy direction.
19→4 cart.cart.domain.entities.cart_entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in cart.cart.domain.entities.cart_entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.cart.cart.domain.entities.cart_entity.CartEntity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- cart.cart.domain.entities.cart_entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break cart.cart.domain.entities.cart_entity, while a change to cart.cart.domain.entities.cart_entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: cart.cart.domain.entities.cart_entity uses a module listed above it, which is the healthy direction.
19→14 cart.cart.domain.entities.cart_entity uses __lib__.aggregate✕
- Connections
- 1 pair of types, where a type in cart.cart.domain.entities.cart_entity uses a type in __lib__.aggregate.
- The types involved
src.cart.cart.domain.entities.cart_entity.CartEntity→src.__lib__.aggregate.Aggregate
- Direction
- cart.cart.domain.entities.cart_entity uses __lib__.aggregate, so a change to __lib__.aggregate can break cart.cart.domain.entities.cart_entity, while a change to cart.cart.domain.entities.cart_entity can't break __lib__.aggregate.
- Position
- Below the diagonal: cart.cart.domain.entities.cart_entity uses a module listed above it, which is the healthy direction.
20→4 delivery.board.offer.domain.entities.offer_entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.domain.entities.offer_entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.delivery.board.offer.domain.entities.offer_entity.OfferEntity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- delivery.board.offer.domain.entities.offer_entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break delivery.board.offer.domain.entities.offer_entity, while a change to delivery.board.offer.domain.entities.offer_entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: delivery.board.offer.domain.entities.offer_entity uses a module listed above it, which is the healthy direction.
20→14 delivery.board.offer.domain.entities.offer_entity uses __lib__.aggregate✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.domain.entities.offer_entity uses a type in __lib__.aggregate.
- The types involved
src.delivery.board.offer.domain.entities.offer_entity.OfferEntity→src.__lib__.aggregate.Aggregate
- Direction
- delivery.board.offer.domain.entities.offer_entity uses __lib__.aggregate, so a change to __lib__.aggregate can break delivery.board.offer.domain.entities.offer_entity, while a change to delivery.board.offer.domain.entities.offer_entity can't break __lib__.aggregate.
- Position
- Below the diagonal: delivery.board.offer.domain.entities.offer_entity uses a module listed above it, which is the healthy direction.
21→4 delivery.curiers.curier.domain.entities.curier_entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in delivery.curiers.curier.domain.entities.curier_entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.delivery.curiers.curier.domain.entities.curier_entity.CurierEntity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- delivery.curiers.curier.domain.entities.curier_entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break delivery.curiers.curier.domain.entities.curier_entity, while a change to delivery.curiers.curier.domain.entities.curier_entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: delivery.curiers.curier.domain.entities.curier_entity uses a module listed above it, which is the healthy direction.
21→14 delivery.curiers.curier.domain.entities.curier_entity uses __lib__.aggregate✕
- Connections
- 1 pair of types, where a type in delivery.curiers.curier.domain.entities.curier_entity uses a type in __lib__.aggregate.
- The types involved
src.delivery.curiers.curier.domain.entities.curier_entity.CurierEntity→src.__lib__.aggregate.Aggregate
- Direction
- delivery.curiers.curier.domain.entities.curier_entity uses __lib__.aggregate, so a change to __lib__.aggregate can break delivery.curiers.curier.domain.entities.curier_entity, while a change to delivery.curiers.curier.domain.entities.curier_entity can't break __lib__.aggregate.
- Position
- Below the diagonal: delivery.curiers.curier.domain.entities.curier_entity uses a module listed above it, which is the healthy direction.
22→4 warehouse.order-management.warehouse.domain.entities.warehouse_entity uses accounting.reports.report.domain.object-values.amount_object-value✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a type in accounting.reports.report.domain.object-values.amount_object-value.
- The types involved
src.warehouse.order-management.warehouse.domain.entities.warehouse_entity.WarehouseEntity→src.accounting.reports.report.domain.object-values.amount_object-value.Attributes
- Direction
- warehouse.order-management.warehouse.domain.entities.warehouse_entity uses accounting.reports.report.domain.object-values.amount_object-value, so a change to accounting.reports.report.domain.object-values.amount_object-value can break warehouse.order-management.warehouse.domain.entities.warehouse_entity, while a change to warehouse.order-management.warehouse.domain.entities.warehouse_entity can't break accounting.reports.report.domain.object-values.amount_object-value.
- Position
- Below the diagonal: warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a module listed above it, which is the healthy direction.
22→11 warehouse.order-management.warehouse.domain.entities.warehouse_entity uses cart.payment.events.payment-completed_event✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a type in cart.payment.events.payment-completed_event.
- The types involved
src.warehouse.order-management.warehouse.domain.entities.warehouse_entity.WarehouseEntity→src.cart.payment.events.payment-completed_event.PaymentCompletedEvent
- Direction
- warehouse.order-management.warehouse.domain.entities.warehouse_entity uses cart.payment.events.payment-completed_event, so a change to cart.payment.events.payment-completed_event can break warehouse.order-management.warehouse.domain.entities.warehouse_entity, while a change to warehouse.order-management.warehouse.domain.entities.warehouse_entity can't break cart.payment.events.payment-completed_event.
- Position
- Below the diagonal: warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a module listed above it, which is the healthy direction.
22→14 warehouse.order-management.warehouse.domain.entities.warehouse_entity uses __lib__.aggregate✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a type in __lib__.aggregate.
- The types involved
src.warehouse.order-management.warehouse.domain.entities.warehouse_entity.WarehouseEntity→src.__lib__.aggregate.Aggregate
- Direction
- warehouse.order-management.warehouse.domain.entities.warehouse_entity uses __lib__.aggregate, so a change to __lib__.aggregate can break warehouse.order-management.warehouse.domain.entities.warehouse_entity, while a change to warehouse.order-management.warehouse.domain.entities.warehouse_entity can't break __lib__.aggregate.
- Position
- Below the diagonal: warehouse.order-management.warehouse.domain.entities.warehouse_entity uses a module listed above it, which is the healthy direction.
23→1 accounting.reports.report.dal.report_repository uses __infrastructure__.correlation.correlation_service✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.dal.report_repository uses a type in __infrastructure__.correlation.correlation_service.
- The types involved
src.accounting.reports.report.dal.report_repository.ReportRepository→src.__infrastructure__.correlation.correlation_service.CorrelationService
- Direction
- accounting.reports.report.dal.report_repository uses __infrastructure__.correlation.correlation_service, so a change to __infrastructure__.correlation.correlation_service can break accounting.reports.report.dal.report_repository, while a change to accounting.reports.report.dal.report_repository can't break __infrastructure__.correlation.correlation_service.
- Position
- Below the diagonal: accounting.reports.report.dal.report_repository uses a module listed above it, which is the healthy direction.
23→3 accounting.reports.report.dal.report_repository uses accounting.reports.report.dal.orm-entities.report_orm-entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.dal.report_repository uses a type in accounting.reports.report.dal.orm-entities.report_orm-entity.
- The types involved
src.accounting.reports.report.dal.report_repository.ReportRepository→src.accounting.reports.report.dal.orm-entities.report_orm-entity.ReportOrmEntity
- Direction
- accounting.reports.report.dal.report_repository uses accounting.reports.report.dal.orm-entities.report_orm-entity, so a change to accounting.reports.report.dal.orm-entities.report_orm-entity can break accounting.reports.report.dal.report_repository, while a change to accounting.reports.report.dal.report_repository can't break accounting.reports.report.dal.orm-entities.report_orm-entity.
- Position
- Below the diagonal: accounting.reports.report.dal.report_repository uses a module listed above it, which is the healthy direction.
23→5 accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.read-models.report_read-model✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.dal.report_repository uses a type in accounting.reports.report.domain.read-models.report_read-model.
- The types involved
src.accounting.reports.report.dal.report_repository.ReportRepository→src.accounting.reports.report.domain.read-models.report_read-model.ReportReadModel
- Direction
- accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.read-models.report_read-model, so a change to accounting.reports.report.domain.read-models.report_read-model can break accounting.reports.report.dal.report_repository, while a change to accounting.reports.report.dal.report_repository can't break accounting.reports.report.domain.read-models.report_read-model.
- Position
- Below the diagonal: accounting.reports.report.dal.report_repository uses a module listed above it, which is the healthy direction.
23→9 accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.dal.report_repository uses a type in accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.
- The types involved
src.accounting.reports.report.dal.report_repository.ReportRepository→src.accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.FindReportWithPositionsParams
- Direction
- accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port, so a change to accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port can break accounting.reports.report.dal.report_repository, while a change to accounting.reports.report.dal.report_repository can't break accounting.reports.report.domain.ports.in.find-report-with-positions-by-id_in-port.
- Position
- Below the diagonal: accounting.reports.report.dal.report_repository uses a module listed above it, which is the healthy direction.
23→17 accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.entities.report_entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.dal.report_repository uses a type in accounting.reports.report.domain.entities.report_entity.
- The types involved
src.accounting.reports.report.dal.report_repository.ReportRepository→src.accounting.reports.report.domain.entities.report_entity.ReportEntity
- Direction
- accounting.reports.report.dal.report_repository uses accounting.reports.report.domain.entities.report_entity, so a change to accounting.reports.report.domain.entities.report_entity can break accounting.reports.report.dal.report_repository, while a change to accounting.reports.report.dal.report_repository can't break accounting.reports.report.domain.entities.report_entity.
- Position
- Below the diagonal: accounting.reports.report.dal.report_repository uses a module listed above it, which is the healthy direction.
24→17 accounting.reports.report.domain.ports.in.create-report_in-port uses accounting.reports.report.domain.entities.report_entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.ports.in.create-report_in-port uses a type in accounting.reports.report.domain.entities.report_entity.
- The types involved
src.accounting.reports.report.domain.ports.in.create-report_in-port.CreateReportInPort→src.accounting.reports.report.domain.entities.report_entity.ReportEntity
- Direction
- accounting.reports.report.domain.ports.in.create-report_in-port uses accounting.reports.report.domain.entities.report_entity, so a change to accounting.reports.report.domain.entities.report_entity can break accounting.reports.report.domain.ports.in.create-report_in-port, while a change to accounting.reports.report.domain.ports.in.create-report_in-port can't break accounting.reports.report.domain.entities.report_entity.
- Position
- Below the diagonal: accounting.reports.report.domain.ports.in.create-report_in-port uses a module listed above it, which is the healthy direction.
25→17 accounting.reports.report.domain.ports.in.find-report-by-id_in-port uses accounting.reports.report.domain.entities.report_entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.ports.in.find-report-by-id_in-port uses a type in accounting.reports.report.domain.entities.report_entity.
- The types involved
src.accounting.reports.report.domain.ports.in.find-report-by-id_in-port.FindReportByIdInPort→src.accounting.reports.report.domain.entities.report_entity.ReportEntity
- Direction
- accounting.reports.report.domain.ports.in.find-report-by-id_in-port uses accounting.reports.report.domain.entities.report_entity, so a change to accounting.reports.report.domain.entities.report_entity can break accounting.reports.report.domain.ports.in.find-report-by-id_in-port, while a change to accounting.reports.report.domain.ports.in.find-report-by-id_in-port can't break accounting.reports.report.domain.entities.report_entity.
- Position
- Below the diagonal: accounting.reports.report.domain.ports.in.find-report-by-id_in-port uses a module listed above it, which is the healthy direction.
26→17 accounting.reports.report.domain.ports.in.update-report_in-port uses accounting.reports.report.domain.entities.report_entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.domain.ports.in.update-report_in-port uses a type in accounting.reports.report.domain.entities.report_entity.
- The types involved
src.accounting.reports.report.domain.ports.in.update-report_in-port.UpdateReportInPort→src.accounting.reports.report.domain.entities.report_entity.ReportEntity
- Direction
- accounting.reports.report.domain.ports.in.update-report_in-port uses accounting.reports.report.domain.entities.report_entity, so a change to accounting.reports.report.domain.entities.report_entity can break accounting.reports.report.domain.ports.in.update-report_in-port, while a change to accounting.reports.report.domain.ports.in.update-report_in-port can't break accounting.reports.report.domain.entities.report_entity.
- Position
- Below the diagonal: accounting.reports.report.domain.ports.in.update-report_in-port uses a module listed above it, which is the healthy direction.
27→1 cart.cart.dal.cart_repository uses __infrastructure__.correlation.correlation_service✕
- Connections
- 1 pair of types, where a type in cart.cart.dal.cart_repository uses a type in __infrastructure__.correlation.correlation_service.
- The types involved
src.cart.cart.dal.cart_repository.CartRepository→src.__infrastructure__.correlation.correlation_service.CorrelationService
- Direction
- cart.cart.dal.cart_repository uses __infrastructure__.correlation.correlation_service, so a change to __infrastructure__.correlation.correlation_service can break cart.cart.dal.cart_repository, while a change to cart.cart.dal.cart_repository can't break __infrastructure__.correlation.correlation_service.
- Position
- Below the diagonal: cart.cart.dal.cart_repository uses a module listed above it, which is the healthy direction.
27→6 cart.cart.dal.cart_repository uses cart.cart.dal.orm-entities.cart_orm-entity✕
- Connections
- 1 pair of types, where a type in cart.cart.dal.cart_repository uses a type in cart.cart.dal.orm-entities.cart_orm-entity.
- The types involved
src.cart.cart.dal.cart_repository.CartRepository→src.cart.cart.dal.orm-entities.cart_orm-entity.CartOrmEntity
- Direction
- cart.cart.dal.cart_repository uses cart.cart.dal.orm-entities.cart_orm-entity, so a change to cart.cart.dal.orm-entities.cart_orm-entity can break cart.cart.dal.cart_repository, while a change to cart.cart.dal.cart_repository can't break cart.cart.dal.orm-entities.cart_orm-entity.
- Position
- Below the diagonal: cart.cart.dal.cart_repository uses a module listed above it, which is the healthy direction.
27→19 cart.cart.dal.cart_repository uses cart.cart.domain.entities.cart_entity✕
- Connections
- 1 pair of types, where a type in cart.cart.dal.cart_repository uses a type in cart.cart.domain.entities.cart_entity.
- The types involved
src.cart.cart.dal.cart_repository.CartRepository→src.cart.cart.domain.entities.cart_entity.CartEntity
- Direction
- cart.cart.dal.cart_repository uses cart.cart.domain.entities.cart_entity, so a change to cart.cart.domain.entities.cart_entity can break cart.cart.dal.cart_repository, while a change to cart.cart.dal.cart_repository can't break cart.cart.domain.entities.cart_entity.
- Position
- Below the diagonal: cart.cart.dal.cart_repository uses a module listed above it, which is the healthy direction.
28→19 cart.cart.domain.ports.in.create-cart_in-port uses cart.cart.domain.entities.cart_entity✕
- Connections
- 1 pair of types, where a type in cart.cart.domain.ports.in.create-cart_in-port uses a type in cart.cart.domain.entities.cart_entity.
- The types involved
src.cart.cart.domain.ports.in.create-cart_in-port.CreateCartInPort→src.cart.cart.domain.entities.cart_entity.CartEntity
- Direction
- cart.cart.domain.ports.in.create-cart_in-port uses cart.cart.domain.entities.cart_entity, so a change to cart.cart.domain.entities.cart_entity can break cart.cart.domain.ports.in.create-cart_in-port, while a change to cart.cart.domain.ports.in.create-cart_in-port can't break cart.cart.domain.entities.cart_entity.
- Position
- Below the diagonal: cart.cart.domain.ports.in.create-cart_in-port uses a module listed above it, which is the healthy direction.
29→19 cart.cart.domain.ports.in.update-cart_in-port uses cart.cart.domain.entities.cart_entity✕
- Connections
- 1 pair of types, where a type in cart.cart.domain.ports.in.update-cart_in-port uses a type in cart.cart.domain.entities.cart_entity.
- The types involved
src.cart.cart.domain.ports.in.update-cart_in-port.UpdateCartInPort→src.cart.cart.domain.entities.cart_entity.CartEntity
- Direction
- cart.cart.domain.ports.in.update-cart_in-port uses cart.cart.domain.entities.cart_entity, so a change to cart.cart.domain.entities.cart_entity can break cart.cart.domain.ports.in.update-cart_in-port, while a change to cart.cart.domain.ports.in.update-cart_in-port can't break cart.cart.domain.entities.cart_entity.
- Position
- Below the diagonal: cart.cart.domain.ports.in.update-cart_in-port uses a module listed above it, which is the healthy direction.
30→1 delivery.board.offer.dal.offer_repository uses __infrastructure__.correlation.correlation_service✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.dal.offer_repository uses a type in __infrastructure__.correlation.correlation_service.
- The types involved
src.delivery.board.offer.dal.offer_repository.OfferRepository→src.__infrastructure__.correlation.correlation_service.CorrelationService
- Direction
- delivery.board.offer.dal.offer_repository uses __infrastructure__.correlation.correlation_service, so a change to __infrastructure__.correlation.correlation_service can break delivery.board.offer.dal.offer_repository, while a change to delivery.board.offer.dal.offer_repository can't break __infrastructure__.correlation.correlation_service.
- Position
- Below the diagonal: delivery.board.offer.dal.offer_repository uses a module listed above it, which is the healthy direction.
30→20 delivery.board.offer.dal.offer_repository uses delivery.board.offer.domain.entities.offer_entity✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.dal.offer_repository uses a type in delivery.board.offer.domain.entities.offer_entity.
- The types involved
src.delivery.board.offer.dal.offer_repository.OfferRepository→src.delivery.board.offer.domain.entities.offer_entity.OfferEntity
- Direction
- delivery.board.offer.dal.offer_repository uses delivery.board.offer.domain.entities.offer_entity, so a change to delivery.board.offer.domain.entities.offer_entity can break delivery.board.offer.dal.offer_repository, while a change to delivery.board.offer.dal.offer_repository can't break delivery.board.offer.domain.entities.offer_entity.
- Position
- Below the diagonal: delivery.board.offer.dal.offer_repository uses a module listed above it, which is the healthy direction.
31→20 delivery.board.offer.domain.ports.in.create-offer_in-port uses delivery.board.offer.domain.entities.offer_entity✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.domain.ports.in.create-offer_in-port uses a type in delivery.board.offer.domain.entities.offer_entity.
- The types involved
src.delivery.board.offer.domain.ports.in.create-offer_in-port.CreateOfferInPort→src.delivery.board.offer.domain.entities.offer_entity.OfferEntity
- Direction
- delivery.board.offer.domain.ports.in.create-offer_in-port uses delivery.board.offer.domain.entities.offer_entity, so a change to delivery.board.offer.domain.entities.offer_entity can break delivery.board.offer.domain.ports.in.create-offer_in-port, while a change to delivery.board.offer.domain.ports.in.create-offer_in-port can't break delivery.board.offer.domain.entities.offer_entity.
- Position
- Below the diagonal: delivery.board.offer.domain.ports.in.create-offer_in-port uses a module listed above it, which is the healthy direction.
32→20 delivery.board.offer.domain.ports.in.update-offer_in-port uses delivery.board.offer.domain.entities.offer_entity✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.domain.ports.in.update-offer_in-port uses a type in delivery.board.offer.domain.entities.offer_entity.
- The types involved
src.delivery.board.offer.domain.ports.in.update-offer_in-port.UpdateOfferInPort→src.delivery.board.offer.domain.entities.offer_entity.OfferEntity
- Direction
- delivery.board.offer.domain.ports.in.update-offer_in-port uses delivery.board.offer.domain.entities.offer_entity, so a change to delivery.board.offer.domain.entities.offer_entity can break delivery.board.offer.domain.ports.in.update-offer_in-port, while a change to delivery.board.offer.domain.ports.in.update-offer_in-port can't break delivery.board.offer.domain.entities.offer_entity.
- Position
- Below the diagonal: delivery.board.offer.domain.ports.in.update-offer_in-port uses a module listed above it, which is the healthy direction.
33→21 delivery.curiers.curier.dal.curier_repository uses delivery.curiers.curier.domain.entities.curier_entity✕
- Connections
- 1 pair of types, where a type in delivery.curiers.curier.dal.curier_repository uses a type in delivery.curiers.curier.domain.entities.curier_entity.
- The types involved
src.delivery.curiers.curier.dal.curier_repository.CurierRepository→src.delivery.curiers.curier.domain.entities.curier_entity.CurierEntity
- Direction
- delivery.curiers.curier.dal.curier_repository uses delivery.curiers.curier.domain.entities.curier_entity, so a change to delivery.curiers.curier.domain.entities.curier_entity can break delivery.curiers.curier.dal.curier_repository, while a change to delivery.curiers.curier.dal.curier_repository can't break delivery.curiers.curier.domain.entities.curier_entity.
- Position
- Below the diagonal: delivery.curiers.curier.dal.curier_repository uses a module listed above it, which is the healthy direction.
34→21 delivery.curiers.curier.domain.ports.in.update-order_in-port uses delivery.curiers.curier.domain.entities.curier_entity✕
- Connections
- 1 pair of types, where a type in delivery.curiers.curier.domain.ports.in.update-order_in-port uses a type in delivery.curiers.curier.domain.entities.curier_entity.
- The types involved
src.delivery.curiers.curier.domain.ports.in.update-order_in-port.UpdateOrderInPort→src.delivery.curiers.curier.domain.entities.curier_entity.CurierEntity
- Direction
- delivery.curiers.curier.domain.ports.in.update-order_in-port uses delivery.curiers.curier.domain.entities.curier_entity, so a change to delivery.curiers.curier.domain.entities.curier_entity can break delivery.curiers.curier.domain.ports.in.update-order_in-port, while a change to delivery.curiers.curier.domain.ports.in.update-order_in-port can't break delivery.curiers.curier.domain.entities.curier_entity.
- Position
- Below the diagonal: delivery.curiers.curier.domain.ports.in.update-order_in-port uses a module listed above it, which is the healthy direction.
35→11 warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses cart.payment.events.payment-completed_event✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses a type in cart.payment.events.payment-completed_event.
- The types involved
src.warehouse.order-management.warehouse.domain.ports.in.add-order_in-port.AddOrderInPort→src.cart.payment.events.payment-completed_event.PaymentCompletedEvent
- Direction
- warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses cart.payment.events.payment-completed_event, so a change to cart.payment.events.payment-completed_event can break warehouse.order-management.warehouse.domain.ports.in.add-order_in-port, while a change to warehouse.order-management.warehouse.domain.ports.in.add-order_in-port can't break cart.payment.events.payment-completed_event.
- Position
- Below the diagonal: warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses a module listed above it, which is the healthy direction.
35→22 warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses warehouse.order-management.warehouse.domain.entities.warehouse_entity✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses a type in warehouse.order-management.warehouse.domain.entities.warehouse_entity.
- The types involved
src.warehouse.order-management.warehouse.domain.ports.in.add-order_in-port.AddOrderInPort→src.warehouse.order-management.warehouse.domain.entities.warehouse_entity.WarehouseEntity
- Direction
- warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses warehouse.order-management.warehouse.domain.entities.warehouse_entity, so a change to warehouse.order-management.warehouse.domain.entities.warehouse_entity can break warehouse.order-management.warehouse.domain.ports.in.add-order_in-port, while a change to warehouse.order-management.warehouse.domain.ports.in.add-order_in-port can't break warehouse.order-management.warehouse.domain.entities.warehouse_entity.
- Position
- Below the diagonal: warehouse.order-management.warehouse.domain.ports.in.add-order_in-port uses a module listed above it, which is the healthy direction.
36→17 accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.entities.report_entity✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.controllers.report_controller uses a type in accounting.reports.report.domain.entities.report_entity.
- The types involved
src.accounting.reports.report.controllers.report_controller.ReportController→src.accounting.reports.report.domain.entities.report_entity.ReportEntity
- Direction
- accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.entities.report_entity, so a change to accounting.reports.report.domain.entities.report_entity can break accounting.reports.report.controllers.report_controller, while a change to accounting.reports.report.controllers.report_controller can't break accounting.reports.report.domain.entities.report_entity.
- Position
- Below the diagonal: accounting.reports.report.controllers.report_controller uses a module listed above it, which is the healthy direction.
36→24 accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.create-report_in-port✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.controllers.report_controller uses a type in accounting.reports.report.domain.ports.in.create-report_in-port.
- The types involved
src.accounting.reports.report.controllers.report_controller.ReportController→src.accounting.reports.report.domain.ports.in.create-report_in-port.CreateReportInPort
- Direction
- accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.create-report_in-port, so a change to accounting.reports.report.domain.ports.in.create-report_in-port can break accounting.reports.report.controllers.report_controller, while a change to accounting.reports.report.controllers.report_controller can't break accounting.reports.report.domain.ports.in.create-report_in-port.
- Position
- Below the diagonal: accounting.reports.report.controllers.report_controller uses a module listed above it, which is the healthy direction.
36→25 accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.find-report-by-id_in-port✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.controllers.report_controller uses a type in accounting.reports.report.domain.ports.in.find-report-by-id_in-port.
- The types involved
src.accounting.reports.report.controllers.report_controller.ReportController→src.accounting.reports.report.domain.ports.in.find-report-by-id_in-port.FindReportByIdInPort
- Direction
- accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.find-report-by-id_in-port, so a change to accounting.reports.report.domain.ports.in.find-report-by-id_in-port can break accounting.reports.report.controllers.report_controller, while a change to accounting.reports.report.controllers.report_controller can't break accounting.reports.report.domain.ports.in.find-report-by-id_in-port.
- Position
- Below the diagonal: accounting.reports.report.controllers.report_controller uses a module listed above it, which is the healthy direction.
36→26 accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.update-report_in-port✕
- Connections
- 1 pair of types, where a type in accounting.reports.report.controllers.report_controller uses a type in accounting.reports.report.domain.ports.in.update-report_in-port.
- The types involved
src.accounting.reports.report.controllers.report_controller.ReportController→src.accounting.reports.report.domain.ports.in.update-report_in-port.UpdateReportInPort
- Direction
- accounting.reports.report.controllers.report_controller uses accounting.reports.report.domain.ports.in.update-report_in-port, so a change to accounting.reports.report.domain.ports.in.update-report_in-port can break accounting.reports.report.controllers.report_controller, while a change to accounting.reports.report.controllers.report_controller can't break accounting.reports.report.domain.ports.in.update-report_in-port.
- Position
- Below the diagonal: accounting.reports.report.controllers.report_controller uses a module listed above it, which is the healthy direction.
37→1 cart.cart.controllers.cart_controller uses __infrastructure__.correlation.correlation_service✕
- Connections
- 1 pair of types, where a type in cart.cart.controllers.cart_controller uses a type in __infrastructure__.correlation.correlation_service.
- The types involved
src.cart.cart.controllers.cart_controller.CartController→src.__infrastructure__.correlation.correlation_service.CorrelationService
- Direction
- cart.cart.controllers.cart_controller uses __infrastructure__.correlation.correlation_service, so a change to __infrastructure__.correlation.correlation_service can break cart.cart.controllers.cart_controller, while a change to cart.cart.controllers.cart_controller can't break __infrastructure__.correlation.correlation_service.
- Position
- Below the diagonal: cart.cart.controllers.cart_controller uses a module listed above it, which is the healthy direction.
37→28 cart.cart.controllers.cart_controller uses cart.cart.domain.ports.in.create-cart_in-port✕
- Connections
- 1 pair of types, where a type in cart.cart.controllers.cart_controller uses a type in cart.cart.domain.ports.in.create-cart_in-port.
- The types involved
src.cart.cart.controllers.cart_controller.CartController→src.cart.cart.domain.ports.in.create-cart_in-port.CreateCartInPort
- Direction
- cart.cart.controllers.cart_controller uses cart.cart.domain.ports.in.create-cart_in-port, so a change to cart.cart.domain.ports.in.create-cart_in-port can break cart.cart.controllers.cart_controller, while a change to cart.cart.controllers.cart_controller can't break cart.cart.domain.ports.in.create-cart_in-port.
- Position
- Below the diagonal: cart.cart.controllers.cart_controller uses a module listed above it, which is the healthy direction.
37→29 cart.cart.controllers.cart_controller uses cart.cart.domain.ports.in.update-cart_in-port✕
- Connections
- 1 pair of types, where a type in cart.cart.controllers.cart_controller uses a type in cart.cart.domain.ports.in.update-cart_in-port.
- The types involved
src.cart.cart.controllers.cart_controller.CartController→src.cart.cart.domain.ports.in.update-cart_in-port.UpdateCartInPort
- Direction
- cart.cart.controllers.cart_controller uses cart.cart.domain.ports.in.update-cart_in-port, so a change to cart.cart.domain.ports.in.update-cart_in-port can break cart.cart.controllers.cart_controller, while a change to cart.cart.controllers.cart_controller can't break cart.cart.domain.ports.in.update-cart_in-port.
- Position
- Below the diagonal: cart.cart.controllers.cart_controller uses a module listed above it, which is the healthy direction.
38→31 delivery.board.offer.controllers.offer_controller uses delivery.board.offer.domain.ports.in.create-offer_in-port✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.controllers.offer_controller uses a type in delivery.board.offer.domain.ports.in.create-offer_in-port.
- The types involved
src.delivery.board.offer.controllers.offer_controller.OfferController→src.delivery.board.offer.domain.ports.in.create-offer_in-port.CreateOfferInPort
- Direction
- delivery.board.offer.controllers.offer_controller uses delivery.board.offer.domain.ports.in.create-offer_in-port, so a change to delivery.board.offer.domain.ports.in.create-offer_in-port can break delivery.board.offer.controllers.offer_controller, while a change to delivery.board.offer.controllers.offer_controller can't break delivery.board.offer.domain.ports.in.create-offer_in-port.
- Position
- Below the diagonal: delivery.board.offer.controllers.offer_controller uses a module listed above it, which is the healthy direction.
38→32 delivery.board.offer.controllers.offer_controller uses delivery.board.offer.domain.ports.in.update-offer_in-port✕
- Connections
- 1 pair of types, where a type in delivery.board.offer.controllers.offer_controller uses a type in delivery.board.offer.domain.ports.in.update-offer_in-port.
- The types involved
src.delivery.board.offer.controllers.offer_controller.OfferController→src.delivery.board.offer.domain.ports.in.update-offer_in-port.UpdateOfferInPort
- Direction
- delivery.board.offer.controllers.offer_controller uses delivery.board.offer.domain.ports.in.update-offer_in-port, so a change to delivery.board.offer.domain.ports.in.update-offer_in-port can break delivery.board.offer.controllers.offer_controller, while a change to delivery.board.offer.controllers.offer_controller can't break delivery.board.offer.domain.ports.in.update-offer_in-port.
- Position
- Below the diagonal: delivery.board.offer.controllers.offer_controller uses a module listed above it, which is the healthy direction.
39→34 delivery.curiers.curier.controllers.curier_controller uses delivery.curiers.curier.domain.ports.in.update-order_in-port✕
- Connections
- 1 pair of types, where a type in delivery.curiers.curier.controllers.curier_controller uses a type in delivery.curiers.curier.domain.ports.in.update-order_in-port.
- The types involved
src.delivery.curiers.curier.controllers.curier_controller.CurierController→src.delivery.curiers.curier.domain.ports.in.update-order_in-port.UpdateOrderInPort
- Direction
- delivery.curiers.curier.controllers.curier_controller uses delivery.curiers.curier.domain.ports.in.update-order_in-port, so a change to delivery.curiers.curier.domain.ports.in.update-order_in-port can break delivery.curiers.curier.controllers.curier_controller, while a change to delivery.curiers.curier.controllers.curier_controller can't break delivery.curiers.curier.domain.ports.in.update-order_in-port.
- Position
- Below the diagonal: delivery.curiers.curier.controllers.curier_controller uses a module listed above it, which is the healthy direction.
40→11 warehouse.order-management.warehouse.controllers.warehouse_controller uses cart.payment.events.payment-completed_event✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.controllers.warehouse_controller uses a type in cart.payment.events.payment-completed_event.
- The types involved
src.warehouse.order-management.warehouse.controllers.warehouse_controller.WarehouseController→src.cart.payment.events.payment-completed_event.PaymentCompletedEvent
- Direction
- warehouse.order-management.warehouse.controllers.warehouse_controller uses cart.payment.events.payment-completed_event, so a change to cart.payment.events.payment-completed_event can break warehouse.order-management.warehouse.controllers.warehouse_controller, while a change to warehouse.order-management.warehouse.controllers.warehouse_controller can't break cart.payment.events.payment-completed_event.
- Position
- Below the diagonal: warehouse.order-management.warehouse.controllers.warehouse_controller uses a module listed above it, which is the healthy direction.
40→34 warehouse.order-management.warehouse.controllers.warehouse_controller uses delivery.curiers.curier.domain.ports.in.update-order_in-port✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.controllers.warehouse_controller uses a type in delivery.curiers.curier.domain.ports.in.update-order_in-port.
- The types involved
src.warehouse.order-management.warehouse.controllers.warehouse_controller.WarehouseController→src.delivery.curiers.curier.domain.ports.in.update-order_in-port.UpdateOrderInPort
- Direction
- warehouse.order-management.warehouse.controllers.warehouse_controller uses delivery.curiers.curier.domain.ports.in.update-order_in-port, so a change to delivery.curiers.curier.domain.ports.in.update-order_in-port can break warehouse.order-management.warehouse.controllers.warehouse_controller, while a change to warehouse.order-management.warehouse.controllers.warehouse_controller can't break delivery.curiers.curier.domain.ports.in.update-order_in-port.
- Position
- Below the diagonal: warehouse.order-management.warehouse.controllers.warehouse_controller uses a module listed above it, which is the healthy direction.
40→35 warehouse.order-management.warehouse.controllers.warehouse_controller uses warehouse.order-management.warehouse.domain.ports.in.add-order_in-port✕
- Connections
- 1 pair of types, where a type in warehouse.order-management.warehouse.controllers.warehouse_controller uses a type in warehouse.order-management.warehouse.domain.ports.in.add-order_in-port.
- The types involved
src.warehouse.order-management.warehouse.controllers.warehouse_controller.WarehouseController→src.warehouse.order-management.warehouse.domain.ports.in.add-order_in-port.AddOrderInPort
- Direction
- warehouse.order-management.warehouse.controllers.warehouse_controller uses warehouse.order-management.warehouse.domain.ports.in.add-order_in-port, so a change to warehouse.order-management.warehouse.domain.ports.in.add-order_in-port can break warehouse.order-management.warehouse.controllers.warehouse_controller, while a change to warehouse.order-management.warehouse.controllers.warehouse_controller can't break warehouse.order-management.warehouse.domain.ports.in.add-order_in-port.
- Position
- Below the diagonal: warehouse.order-management.warehouse.controllers.warehouse_controller 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 | 47 | High / Critical |
| A05:2025 — Injection | 13 | High / Critical |
| A02:2025 — Security Misconfiguration | 6 | High / Critical |
| A08:2025 — Software or Data Integrity Failures | 1 | Medium |
Roadmap
Begin by addressing the single malicious dependency in REDACTED and the 162 low-coverage gaps, prioritizing constants.ts, add-order.dto.ts, and create-warehouse.dto.ts. Next, implement default-deny access controls with global authentication guards and explicit public opt-outs, while simultaneously encrypting sensitive data at rest using AES-256-GCM and managing keys in a secure vault. Finally, update the four outdated npm packages to maintain dependency hygiene and reduce security risks.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED. | +4.2 pts | Low | Malicious Dependencies |
| Resolve the 4 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (4). | +4.1 pts | Low | Dependency Hygiene |
| Resolve the 3 Deprecated finding(s) in Dependency Hygiene — start with package.json (3). | +3.2 pts | Low | Dependency Hygiene |
| Encrypt sensitive data at rest (AES-256-GCM through node:crypto createCipheriv, or a column-encryption layer such as typeorm-encrypted / prisma-field-encryption / MongoDB CSFLE) and manage keys in a vault (AWS KMS, Azure Key Vault, GCP KMS, HashiCorp Vault). Skip if delegated to infra (Postgres TDE, KMS, etc.). | +5.9 pts | Medium | Data Protection |
| Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. | +5.9 pts | Medium | Access Controls |
| Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). | +1.9 pts | Low | Static Analysis (SAST) |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +1.7 pts | Low | ADR Quality |
| Resolve the 162 Low coverage finding(s) in Code Coverage — start with constants.ts (2), add-order.dto.ts (2), create-warehouse.dto.ts (2). | +6.0 pts | High | Code Coverage |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 3.4 | Slop | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 5.1 | Mixed | IaC & Container Security: High IaC: REDACTED |
| package.json | 6.4 | Mixed | Dependency Hygiene: Deprecated: @types/cron |
| src/__relay__/outbox.mapper.ts | 6.5 | Mixed | Change Coupling: Boundary-crossing change coupling: outbox.mapper.ts ↔ warehouse.entity.ts |
| src/__relay__/relay.service.ts | 7.0 | Mixed | Cognitive Complexity: RelayService.handleCron (cognitive 21) |
| src/delivery/curiers/curier/controllers/curier.controller.ts | 7.0 | Mixed | Cohesion (LCOM4): Low cohesion: CurierController (LCOM4 6) |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/__lib__/ts-arch.ts | 8.5 | Near-clean | Cognitive Complexity: ts-arch.fileNamesAreValid (cognitive 16) |
| src/config.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/config.ts |
| src/__infrastructure__/context/constants.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/context/constants.ts |
| src/__infrastructure__/context/context-middleware.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/context/context-middleware.ts |
| src/__infrastructure__/context/decorator.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/context/decorator.ts |
| src/__infrastructure__/correlation/constants.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/correlation/constants.ts |
| src/__infrastructure__/correlation/correlation.service.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/correlation/correlation.service.ts |
| src/__infrastructure__/correlation/middleware.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/correlation/middleware.ts |
| src/__infrastructure__/uow/uow.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__infrastructure__/uow/uow.ts |
| src/__lib__/domain-message.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__lib__/domain-message.ts |
| src/__lib__/object-values.ts | 8.5 | Near-clean | Code Coverage: Low coverage: src/__lib__/object-values.ts |
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. 79 of 83 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 1.0 — 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 — 83 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, 348 of 379 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 282 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's source is written only in languages whose packages are published through a manifest, and no manifest in the tree makes a publication act: either there is no package manifest of any ecosystem (no package.json, pyproject.toml, setup.py, gemspec, Cargo.toml, pom.xml, build.gradle, composer.json, pubspec.yaml or mix.exs), or every one present declares in its package manager's own terms that it is not published (an npm package marked "private": true, a Cargo package with publish = false, a pubspec with publish_to: none, a Composer "project", a Poetry project with package-mode = false, or the "Private :: Do Not Upload" classifier). With no publication act there is no intentionally-exposed surface for API consistency to be judged over.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- 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 14 — a file the compose project references is missing) — env file .env not found: stat .env: no such file or directory; 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.
- R4 Test Coverage — 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. 136 further occurrence(s) are not listed individually; the score already reflects all 176.
- 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 log through no library that carries a message's values as fields (pino, winston, bunyan, tslog, LogTape, roarr; Python's logging, structlog; PHP's PSR-3 loggers), so its log calls cannot be judged, 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 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- 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
2 method(s) exceeded the cognitive complexity threshold of 15; the worst was RelayService.handleCron at 21.
What to do
- Bring the 2 bodies over 15 down to 15 or less in Cognitive Complexity — start with RelayService.handleCron (cognitive 21), ts-arch.fileNamesAreValid (cognitive 16). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 9.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
0 god class(es) detected.
D6 · Cohesion (LCOM4)
1 of 19 classes have LCOM4 above 3.
What to do
- Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with curier.controller.ts. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D8 · Code Coverage
Line coverage 4.8% — 162 file(s) below 50%. Measured from the JavaScript/TypeScript suite (jest via `npm ci --ignore-scripts` in the repository root).
What to do
- Resolve the 162 Low coverage finding(s) in Code Coverage — start with constants.ts (2), add-order.dto.ts (2), create-warehouse.dto.ts (2). — One of this dimension's main actionable groups (162 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
16 test methods: 16 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 16 `it`/`test` case(s) across 4 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 16 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `npm ci --ignore-scripts` in the repository root (16 tests)): measured (0 flaky).
D12 · Dependency Hygiene
19 outdated direct production npm dependency(ies) of 21 graded, 0 pinning defect(s), across 1 package.json (1 of them the product) and 1 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 3 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 4 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json (4). — One of this dimension's main actionable groups (4 recommendation-level).
- Resolve the 3 Deprecated finding(s) in Dependency Hygiene — start with package.json (3). — One of this dimension's main actionable groups (3 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 21 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 21 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 30 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 1 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. This repository publishes itself under UNLICENSED, 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/__saga__/registrator.controller.ts (6 of 8 changes were fixes); src/__relay__/relay.service.ts (6 of 8 changes were fixes); src/__saga__/registrator.service.ts (5 of 7 changes were fixes)
What to do
- Resolve the 5 Repeated repair finding(s) in Churn × Complexity Hotspots — start with registrator.controller.ts, relay.service.ts, registrator.service.ts. — One of this dimension's main actionable groups (5 warning-level).
D17 · Explicit Debt
0 deducted task-comment markers across 5076 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The root README is a well-structured DDD domain overview with event-storming schema, bounded-context module boundaries, and architectural pattern references (Domain model, Transaction script, Active Record), but it does not document the repository's installation, usage, or contribution guidance. The src/READMEs are directory-specific infrastructure modules (Relay, Accounting, Delivery) that describe their subdomains without a shared overview, leaving no single document covering what the project is for and how to run it.
What to do
- Improve Documentation Quality — currently 7.0/10. — The root README is a well-structured DDD domain overview with event-storming schema, bounded-context module boundaries, and architectural pattern references (Domain model, Transaction script, Active Record), but it does not document the repository's installation, usage, or contribution guidance. The src/READMEs are directory-specific infrastructure modules (Relay, Accounting, Delivery) that describe their subdomains without a shared overview, leaving no single document covering what the project is for and how to run it.
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)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
13 finding(s): 0 critical, 13 high, 0 medium, 0 low. 8 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens.
What to do
- Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 8 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 (8 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
47 finding(s): 3 critical, 27 high, 11 medium, 6 low.
What to do
- Resolve the 26 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (26). — One of this dimension's main actionable groups (26 issue-level).
- Resolve the 3 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
- Resolve the 1 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D31 · IaC & Container Security
6 finding(s): 0 critical, 2 high, 3 medium, 1 low.
What to do
- Resolve the 2 High IaC finding(s) in IaC & Container Security — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- Resolve the 3 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
D34 · Knowledge Freshness
16 of 16 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/__relay__/relay.service.ts. Counted over 16 of the 190 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 16 Orphaned file finding(s) in Knowledge Freshness — start with relay.service.ts, curier.controller.ts, domain-message.ts. — One of this dimension's main actionable groups (16 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: outbox.mapper.ts↔warehouse.entity.ts 60%
What to do
- Resolve the 1 Boundary-crossing change coupling finding(s) in Change Coupling — start with outbox.mapper.ts. — One of this dimension's main actionable groups (1 issue-level).
D43 · Malicious Dependencies
1 finding(s): 0 critical, 0 high, 1 medium, 0 low.
What to do
- Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
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 21 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
AX4 · Dependency direction
C1 · Data Protection
- No encryption usage (node:crypto createCipheriv, Web Crypto subtle.encrypt, crypto-js AES, tweetnacl/libsodium secretbox, a column-encryption layer such as typeorm-encrypted, prisma-field-encryption or mongoose-field-encryption, or MongoDB client-side field-level encryption) was found, and this repository persists personal data in the model cited here — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore. — src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts:10
What to do
- Encrypt sensitive data at rest (AES-256-GCM through node:crypto createCipheriv, or a column-encryption layer such as typeorm-encrypted / prisma-field-encryption / MongoDB CSFLE) and manage keys in a vault (AWS KMS, Azure Key Vault, GCP KMS, HashiCorp Vault). Skip if delegated to infra (Postgres TDE, KMS, etc.).
- 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
- This repository serves requests — NestFactory.create (src/main.ts:6) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — src/main.ts:6
What to do
- Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
DM1 · Aggregate boundaries
DM11 · Constructible invalid state
DM4 · Rich vs anemic model
- `CartPositionEntity` 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/cart/cart/domain/entities/cart-position.entity.ts:10
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `pay` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/cart/payment/api/external-payment-api.ts:11
What to do
- Remove the dead code that still moves this score: delete dead if(false) branches and either do the real async work or drop the async keyword from fake-async functions.
M1 · Documentation (README)
What to do
- 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.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
- A CI pipeline exists but no build step was matched — changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves.
What to do
- Add an explicit build step to your CI pipeline — your stack's own build command, or, if the pipeline delegates to a task runner, a build task that runner executes in CI — so every change is built before merge.
P2 · Observability
- `src/warehouse/order-management/warehouse/domain/interactors/add-order.interactor.ts` reports through `console.*` at line 19 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — src/warehouse/order-management/warehouse/domain/interactors/add-order.interactor.ts:19
What to do
- Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
- Consider OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) and a health-check endpoint (@godaddy/terminus or a /health route) for operability.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 1879 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.
- Dependabot is configured but does not watch `npm` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
What to do
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P7 · Outbound HTTP resilience
- `axios.post(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — src/cart/cart/api/external-saga-api.ts:11
What to do
- Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
P8 · Schema migrations
- TypeORM synchronize: true builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database — a renamed column is dropped and re-added rather than migrated. Adopt TypeORM migrations (`typeorm migration:generate` + `migrationsRun`), so every schema change is a versioned file applied the same way in every environment. — src/app.module.ts:60
What to do
- Replace TypeORM synchronize: true with TypeORM migrations (`typeorm migration:generate` + `migrationsRun`) so the production schema can evolve safely and reproducibly.
P9 · Domain vs controller coverage
- Domain coverage is 9%, against a bar of 50% for this row — the layer carrying the business rules is the least covered part of the codebase that matters most. Measured over the types this analyzer classifies as domain (aggregates, value objects, domain services), so code the classifier does not place in the domain is neither counted for nor against this figure.
What to do
- Raise unit-test coverage of the domain (aggregates, value objects, domain services) — that's where correctness matters most.
PF3 · Async & latency hygiene
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- 34 duplicated blocks under src/ have copies in at least two of the sibling directories __lib__, __relay__, __saga__, accounting, cart, delivery (+1 more sibling(s) not listed) — 11 of them are reported below, and 23 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 34 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 34 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 34 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/delivery/tracking/services/tracking.service.ts:9
- 5 duplicated blocks under src/delivery/ have copies in at least two of the sibling directories board, curiers — 0 of them are reported below, and 5 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 5 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/delivery/board/offer/dal/orm-entities/offer.orm-entity.ts:5
- src/accounting/reports/report/dal/report.repository.ts:17 · src/delivery/board/offer/dal/offer.repository.ts:13 — the two spans are one implementation copied and then locally edited — 198 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/accounting/reports/report/dal/report.repository.ts:17
- src/delivery/tracking/services/tracking.service.ts:9 · src/warehouse/tracking/services/tracking.service.ts:9 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — src/delivery/tracking/services/tracking.service.ts:9
- src/delivery/curiers/curiers.module.ts:35 · src/warehouse/order-management/order-managment.module.ts:22 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — src/delivery/curiers/curiers.module.ts:35
- src/cart/cart/controllers/dtos/response/saved-cart.response-dto.ts:4 · src/warehouse/order-management/warehouse/controllers/dtos/response/saved-warehouse.response-dto.ts:4 — 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/cart/cart/controllers/dtos/response/saved-cart.response-dto.ts:4
- src/delivery/tracking/api/external-tracking-api.ts:3 · src/warehouse/tracking/api/external-tracking-api.ts:3 — 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/delivery/tracking/api/external-tracking-api.ts:3
- src/__lib__/domain-message.ts:68 · src/__lib__/domain-message.ts:98 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/__lib__/domain-message.ts:68
- src/delivery/tracking/models/route.model.ts:3 · src/warehouse/tracking/models/delivery.model.ts:3 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — src/delivery/tracking/models/route.model.ts:3
- src/cart/cart/controllers/dtos/add-order.dto.ts:4 · src/warehouse/order-management/warehouse/controllers/dtos/add-order.dto.ts:4 — the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — src/cart/cart/controllers/dtos/add-order.dto.ts:4
- src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts:11 · src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts:11 — the two spans are one implementation copied and then locally edited — 65 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/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts:11
- src/delivery/curiers/curier/controllers/curier.controller.ts:68 · src/delivery/curiers/curier/controllers/curier.controller.ts:80 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — src/delivery/curiers/curier/controllers/curier.controller.ts:68
- src/__lib__/domain-message.ts:84 · src/__lib__/domain-message.ts:114 · src/accounting/reports/report/domain/entities/report-position.entity.ts:23 · src/delivery/board/offer/domain/entities/offer.entity.ts:29 · +2 more site(s) not listed — the 6 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/__lib__/domain-message.ts:84
- src/__lib__/domain-message.ts:83 · src/__lib__/domain-message.ts:113 · src/accounting/reports/report/domain/read-models/report.read-model.ts:46 · src/delivery/curiers/curier/domain/read-models/order.read-model.ts:18 — 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. — src/__lib__/domain-message.ts:83
- src/accounting/verification/controllers/verfication.controller.ts:6 · src/delivery/tracking/controllers/tracking.controller.ts:6 · src/warehouse/tracking/controllers/tracking.controller.ts:6 — 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/accounting/verification/controllers/verfication.controller.ts:6
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- (anonymous) has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/__relay__/relay.service.ts:23
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. (×40) — src/__relay__/relay.service.ts:1, src/delivery/curiers/curier/controllers/curier.controller.ts:1, src/__saga__/models/saga-step.model.ts:1, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
- 44 outdated package(s); JS/npm CVEs scored in D30
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
- test ✓ · lint ✓ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add `tsc --noEmit` as package.json scripts and run them in CI.
R7 · Dead Code
- Unreachable from the 1 application, 3 tooling and 4 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (1 application, 3 tooling, 4 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 (×8) — src/delivery/curiers/curier/domain/read-models/order.read-model.ts, src/warehouse/order-management/warehouse/domain/events/extend-order-period.event.ts, src/delivery/curiers/curier/domain/queries/find-curier-with-count-of-orders.query.ts, …
- no import path from any entry point (1 application, 3 tooling, 4 test roots considered), but 3 in-repo import(s) from 3 other file(s) do name it (src/delivery/curiers/curier/domain/ports/in/find-curiers-with-count-of-orders.in-port.ts, src/delivery/curiers/curier/domain/ports/out/find-curier-with-count-of-orders.out-port.ts, src/delivery/curiers/curier/domain/queries/find-curier-with-count-of-orders.query.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/delivery/curiers/curier/domain/read-models/curier-with-count-of-orders.read-model.ts
- no import path from any entry point (1 application, 3 tooling, 4 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/delivery/curiers/curier/domain/queries/find-curier-with-count-of-orders.query.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 (×2) — src/delivery/curiers/curier/domain/ports/in/find-curiers-with-count-of-orders.in-port.ts, src/delivery/curiers/curier/domain/ports/out/find-curier-with-count-of-orders.out-port.ts
- Nothing imports this binding — it is safe to review for removal. (×4) — src/__lib__/domain-message.ts:52, src/__lib__/domain-message.ts:96, src/__saga__/registrator.controller.ts:8, …
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
- Imported but not declared in any reachable package.json — installs work only by hoisting accident. — src/__infrastructure__/correlation/middleware.ts:2
- Declared in the root package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
- src/__saga__/models/compensation.model.ts → src/__saga__/models/saga-step.model.ts → src/__saga__/models/compensation.model.ts (one verified cycle inside a mutually-dependent group of 3 files) — src/__saga__/models/compensation.model.ts:10
- src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts → src/accounting/reports/report/dal/orm-entities/report.orm-entity.ts → src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts — src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts:8
- src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts → src/cart/cart/dal/orm-entities/cart.orm-entity.ts → src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts — src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts:8
- src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts → src/delivery/curiers/curier/dal/orm-entities/orders.orm-entity.ts → src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts — src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts:2
- src/warehouse/order-management/warehouse/dal/orm-entities/order.orm-entity.ts → src/warehouse/order-management/warehouse/dal/orm-entities/warehouse.orm-entity.ts → src/warehouse/order-management/warehouse/dal/orm-entities/order.orm-entity.ts — src/warehouse/order-management/warehouse/dal/orm-entities/order.orm-entity.ts:8
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture
- `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.) — src/main.ts:16
What to do
- 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
X2 · Cancellation propagation
- Only 0/1 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
- `createSaga` awaits `axios.post(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `axios.post(url, { signal })`. — src/cart/cart/api/external-saga-api.ts:10
What to do
- Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
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 | 60% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 58% | Adequate — gated by D26, R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 55% | Adequate — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 21% | Critical — gated by D8, R4, R8, P3, P5, P7, P8, P9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 24% | Critical — gated by D30, D43, C1, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 92% | Exemplary | Solid. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 2 check(s) recorded observations but carry no score
- D36 Supply-chain Provenance & Signing — 1 observation(s) recorded · The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — 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 — 51 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — Not applicable: NestJS makes a provider that injects a request-scoped one request-scoped itself (scope bubbles up the injection chain), and gives every consumer its own transient instance by contract.
- 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).
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) 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
- AX6 Interface segregation — no exported interface declares behaviour
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 14 — a file the compose project references is missing) — env file .env not found: stat .env: no such file or directory; 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 — single-contributor repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.ts), 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
- DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- 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
- 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 package.json, 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.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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 — 52 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
- Import cycle (2 files) src/__saga__/models/compensation.model.ts:10
- Import cycle (2 files) src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts:8
- Import cycle (2 files) src/cart/cart/dal/orm-entities/cart-position.orm-entity.ts:8
- Import cycle (2 files) src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts:2
- Import cycle (2 files) src/warehouse/order-management/warehouse/dal/orm-entities/order.orm-entity.ts:8
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Boundary-crossing change coupling: outbox.mapper.ts ↔ warehouse.entity.ts src/__relay__/outbox.mapper.ts:1
- Unlisted import 'express' src/__infrastructure__/correlation/middleware.ts:2
Serious — 271 finding(s)
- Low coverage: src/config.ts src/config.ts:1
- Low coverage: src/__infrastructure__/context/constants.ts src/__infrastructure__/context/constants.ts:1
- Low coverage: src/__infrastructure__/context/context-middleware.ts src/__infrastructure__/context/context-middleware.ts:1
- Low coverage: src/__infrastructure__/context/decorator.ts src/__infrastructure__/context/decorator.ts:1
- Low coverage: src/__infrastructure__/correlation/constants.ts src/__infrastructure__/correlation/constants.ts:1
- Low coverage: src/__infrastructure__/correlation/correlation.service.ts src/__infrastructure__/correlation/correlation.service.ts:1
- Low coverage: src/__infrastructure__/correlation/middleware.ts src/__infrastructure__/correlation/middleware.ts:1
- Low coverage: src/__infrastructure__/uow/uow.ts src/__infrastructure__/uow/uow.ts:1
- Low coverage: src/__lib__/domain-message.ts src/__lib__/domain-message.ts:1
- Low coverage: src/__lib__/object-values.ts src/__lib__/object-values.ts:1
- Low coverage: src/__relay__/message.orm-entity.ts src/__relay__/message.orm-entity.ts:1
- Low coverage: src/__relay__/outbox.mapper.ts src/__relay__/outbox.mapper.ts:1
- Low coverage: src/__relay__/relay.service.ts src/__relay__/relay.service.ts:1
- Low coverage: src/__saga__/registrator.controller.ts src/__saga__/registrator.controller.ts:1
- Low coverage: src/__saga__/registrator.service.ts src/__saga__/registrator.service.ts:1
- Low coverage: src/__saga__/saga-compensation.event.ts src/__saga__/saga-compensation.event.ts:1
- Low coverage: src/__saga__/saga-completed.event.ts src/__saga__/saga-completed.event.ts:1
- Low coverage: src/__saga__/models/compensation.model.ts src/__saga__/models/compensation.model.ts:1
- Low coverage: src/__saga__/models/saga-step.model.ts src/__saga__/models/saga-step.model.ts:1
- Low coverage: src/__saga__/models/saga.model.ts src/__saga__/models/saga.model.ts:1
- Low coverage: src/accounting/reports/report/controllers/report.controller.ts src/accounting/reports/report/controllers/report.controller.ts:1
- Low coverage: src/accounting/reports/report/controllers/dtos/update-report.dto.ts src/accounting/reports/report/controllers/dtos/update-report.dto.ts:1
- Low coverage: src/accounting/reports/report/controllers/dtos/response/saved-report.response-dto.ts src/accounting/reports/report/controllers/dtos/response/saved-report.response-dto.ts:1
- Low coverage: src/accounting/reports/report/dal/report.mapper.ts src/accounting/reports/report/dal/report.mapper.ts:1
- Low coverage: src/accounting/reports/report/dal/report.repository.ts src/accounting/reports/report/dal/report.repository.ts:1
- No test reaches this file src/__relay__/relay.service.ts:1
- No test reaches this file src/delivery/curiers/curier/controllers/curier.controller.ts:1
- No test reaches this file src/__saga__/models/saga-step.model.ts:1
- No test reaches this file src/delivery/board/offer/domain/entities/offer.entity.ts:1
- No test reaches this file src/__saga__/models/saga.model.ts:1
- No test reaches this file src/__saga__/registrator.service.ts:1
- No test reaches this file src/delivery/curiers/curiers.module.ts:1
- No test reaches this file src/accounting/reports/report/dal/report.repository.ts:1
- No test reaches this file src/warehouse/order-management/warehouse/dal/warehouse.repository.ts:1
- No test reaches this file src/delivery/curiers/curier/dal/curier.repository.ts:1
- No test reaches this file src/warehouse/order-management/warehouse/domain/entities/warehouse.entity.ts:1
- No test reaches this file src/accounting/reports/report/domain/entities/report.entity.ts:1
- No test reaches this file src/accounting/reports/report/domain/entities/report-position.entity.ts:1
- No test reaches this file src/app.module.ts:1
- No test reaches this file src/cart/payment/services/payment.service.ts:1
- No test reaches this file src/delivery/curiers/curier/dal/curier.mapper.ts:1
- No test reaches this file src/accounting/verification/services/verification.service.ts:1
- No test reaches this file src/warehouse/order-management/warehouse/controllers/warehouse.controller.ts:1
- No test reaches this file src/delivery/board/offer/dal/offer.repository.ts:1
- No test reaches this file src/delivery/curiers/curier/controllers/dtos/response/saved-curier.response-dto.ts:1
- No test reaches this file src/__relay__/message.orm-entity.ts:1
- No test reaches this file src/accounting/reports/reports.module.ts:1
- No test reaches this file src/warehouse/tracking/services/tracking.service.ts:1
- No test reaches this file src/accounting/reports/report/dal/report.mapper.ts:1
- No test reaches this file src/warehouse/order-management/order-managment.module.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Repeated repair: src/__saga__/registrator.controller.ts src/__saga__/registrator.controller.ts:14
- Repeated repair: src/__relay__/relay.service.ts src/__relay__/relay.service.ts:20
- Repeated repair: src/__saga__/registrator.service.ts src/__saga__/registrator.service.ts:20
- Repeated repair: src/cart/payment/api/external-payment-api.ts src/cart/payment/api/external-payment-api.ts:11
- Repeated repair: src/__saga__/models/saga.model.ts src/__saga__/models/saga.model.ts:69
- Deprecated: @types/cron package.json:56
- Deprecated: eslint package.json:63
- Deprecated: supertest package.json:71
- REDACTED
- REDACTED
- REDACTED
- Dead file (~19 LoC) src/cart/cart/controllers/dtos/add-order.dto.ts
- Dead file (~19 LoC) src/warehouse/order-management/warehouse/controllers/dtos/add-order.dto.ts
- Dead file (~9 LoC) src/cart/cart/controllers/dtos/create-warehouse.dto.ts
- Dead file (~9 LoC) src/cart/cart/controllers/dtos/update-order.dto.ts
- No data-protection/encryption src/delivery/curiers/curier/dal/orm-entities/curier.orm-entity.ts:10
- No authorization src/main.ts:6
- RelayService.handleCron (cognitive 21) src/__relay__/relay.service.ts:20
- ts-arch.fileNamesAreValid (cognitive 16) src/__lib__/ts-arch.ts:18
- REDACTED
- REDACTED
- REDACTED
- Low cohesion: CurierController (LCOM4 6) src/delivery/curiers/curier/controllers/curier.controller.ts:20
- Anemic entity: CartPositionEntity src/cart/cart/domain/entities/cart-position.entity.ts:10
- Fake-async — async method never awaits src/cart/payment/api/external-payment-api.ts:11
- Test suite runs only after the merge
- No DR/backup evidence
- Outbound HTTP without resilience src/cart/cart/api/external-saga-api.ts:11
- Schema created by TypeORM synchronize: true (no migration path) src/app.module.ts:60
- Low domain coverage
- Duplication concentrated across 7 sibling directories (34 clone groups) src/delivery/tracking/services/tracking.service.ts:9
- Duplication concentrated across 2 sibling directories (5 clone groups) src/delivery/board/offer/dal/orm-entities/offer.orm-entity.ts:5
- Duplicated block with local edits (38 matched lines × 2 locations) src/accounting/reports/report/dal/report.repository.ts:17
- Duplicated block (38 lines × 2 locations) src/delivery/tracking/services/tracking.service.ts:9
- Duplicated block (35 lines × 2 locations) src/delivery/curiers/curiers.module.ts:35
- Duplicated block (26 lines × 2 locations) src/cart/cart/controllers/dtos/response/saved-cart.response-dto.ts:4
- Duplicated block (24 lines × 2 locations) src/delivery/tracking/api/external-tracking-api.ts:3
- Duplicated block (22 lines × 2 locations) src/__lib__/domain-message.ts:68
- Duplicated block (18 lines × 2 locations) src/delivery/tracking/models/route.model.ts:3
- Duplicated block (14 lines × 2 locations) src/cart/cart/controllers/dtos/add-order.dto.ts:4
- Duplicated block with local edits (13 matched lines × 2 locations) src/accounting/reports/report/dal/orm-entities/report-position.orm-entity.ts:11
- Duplicated block (11 lines × 2 locations) src/delivery/curiers/curier/controllers/curier.controller.ts:68
- Duplicated block (9 lines × 6 locations) src/__lib__/domain-message.ts:84
- Duplicated block (9 lines × 4 locations) src/__lib__/domain-message.ts:83
- Duplicated block (9 lines × 3 locations) src/accounting/verification/controllers/verfication.controller.ts:6
- Complex function (anonymous) (cyclomatic 12, cognitive 20) src/__relay__/relay.service.ts:23
- Dependency Freshness
- No typecheck script
- Dead file (~26 LoC) src/delivery/curiers/curier/domain/read-models/order.read-model.ts
- Dead file (~24 LoC) src/warehouse/order-management/warehouse/domain/events/extend-order-period.event.ts
- Dead file (~22 LoC) src/delivery/curiers/curier/domain/queries/find-curier-with-count-of-orders.query.ts
- Dead file (~16 LoC) src/delivery/curiers/curier/domain/read-models/curier-with-count-of-orders.read-model.ts
- Dead file (~11 LoC) src/delivery/curiers/curier/domain/ports/in/find-curiers-with-count-of-orders.in-port.ts
- Dead file (~8 LoC) src/delivery/curiers/curier/domain/ports/in/create-order.in-port.ts
- Dead file (~7 LoC) src/delivery/curiers/curier/domain/ports/out/find-curier-with-count-of-orders.out-port.ts
- Unused dependency '@nestjs/testing'
- Unused dependency 'amqplib'
- Unused dependency 'async_hooks'
- Async function without AbortSignal: createSaga src/cart/cart/api/external-saga-api.ts:10
Minor — 41 finding(s)
- Orphaned file src/__relay__/relay.service.ts:1
- Orphaned file src/delivery/curiers/curier/controllers/curier.controller.ts:1
- Orphaned file src/__lib__/domain-message.ts:1
- Orphaned file src/delivery/curiers/curiers.module.ts:1
- Orphaned file src/delivery/curiers/curier/domain/entities/curier.entity.ts:1
- Orphaned file src/app.module.ts:1
- Orphaned file src/__saga__/registrator.service.ts:1
- Orphaned file src/delivery/curiers/curier/dal/curier.mapper.ts:1
- Orphaned file src/delivery/curiers/curier/dal/curier.repository.ts:1
- Orphaned file src/accounting/reports/report/dal/report.repository.ts:1
- Orphaned file src/warehouse/order-management/warehouse/dal/warehouse.repository.ts:1
- Orphaned file src/__saga__/models/saga-step.model.ts:1
- Orphaned file src/__lib__/ts-arch.ts:1
- Orphaned file src/accounting/reports/reports.module.ts:1
- Orphaned file src/cart/payment/services/payment.service.ts:1
- Orphaned file src/warehouse/order-management/order-managment.module.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Outdated (npm): @golevelup/nestjs-rabbitmq package.json:26
- Outdated (npm): @nestjs/config package.json:28
- Outdated (npm): @nestjs/schedule package.json:31
- Outdated (npm): @nestjs/swagger package.json:32
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- Orphaned files with no living knowledge
- No ADRs
- CI build step not evidenced
- Console output used as the logging channel src/warehouse/order-management/warehouse/domain/interactors/add-order.interactor.ts:19
- No SAST
- Unused export 'DomainSagaMessageAttributes' src/__lib__/domain-message.ts:52
- Unused export 'DomainCommand' src/__lib__/domain-message.ts:96
- Unused export 'CreateSagaDto' src/__saga__/registrator.controller.ts:8
- Unused export 'ReportApiDto' src/accounting/verification/api/external-verification-api.ts:3
- No app-layer HTTPS enforcement detected src/main.ts:16
- Not all async functions that make a request accept an AbortSignal
- Strict null checking is not enabled everywhere the repository type-checks
Minor — 15 finding(s)
- Outdated (npm): @nestjs/common
- Outdated (npm): @nestjs/core
- Outdated (npm): @nestjs/platform-express
- Outdated (npm): @nestjs/typeorm
- Outdated (npm): @types/lodash
- Outdated (npm): amqplib
- Outdated (npm): axios
- Outdated (npm): class-validator
- Outdated (npm): dotenv
- Outdated (npm): lodash
- Outdated (npm): pg
- Outdated (npm): rimraf
- Outdated (npm): rxjs
- Outdated (npm): typeorm
- Outdated (npm): ulid
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-031c994ea0b24dfb96b79090e75002b8/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-031c994ea0b24dfb96b79090e75002b8/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 13 | 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 | 47 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 6 | 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 | 1 | artifacts/raw/trivy-fs.json |