Executive summary
lubaskinc0de/loyalty scores 46 out of 100 and is rated Weak, while five of its seven lenses score higher still: Code Health and Performance at 100, both rated Exemplary, Security and Compliance at 69 and Architecture at 66, both rated Adequate, and Accessibility at 48, rated Weak.
The score is lower than those five because the weakest lens counts most, and here that is Production Readiness, which scores 36 and is rated Weak. Its REDACTED Scanning 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 3 Leaked secret finding(s) in REDACTED Scanning and to resolve the 1 Inverted test pyramid finding(s) in Test Distribution, and if Production Readiness rose to 70, the score would rise from 46 to about 53.
21 findings are critical: 14 in Static Analysis (SAST), three in REDACTED Scanning, two in Secrets (history), one in IaC & Container Security and one in License Compliance.
Watchdog couldn't measure 11 dimensions in this code, among them Code Coverage, Test Reliability and Internal API Consistency, so they are left out of the score. The product code is 4,776 lines, which would take an estimated 0.1 person-years, around €6,600, to rebuild.
If Production Readiness rose from 36 to 70, the lowest score rated Strong, the score would rise from 46 to about 53.
New since the last survey: 9 findings
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- Secrets (history) · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Visual & motion safety · Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css
- Visual & motion safety · Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css
- Visual & motion safety · Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css
- Visual & motion safety · Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css
- Visual & motion safety · Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css
Fixed since the last survey: 1 finding
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about €6,600 · Estimate
| Cost to rebuild | €2,200 to €11,000, for 37 to 116 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 46. 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: 4,776 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 adapters.common.gateway | 2 adapters.config_loader | 3 application.common.gateway.bonus | 4 application.common.gateway.business_branch | 5 application.common.gateway.payment | 6 application.common.uow | 7 application.data_model.business_branch | 8 application.exceptions.base | 9 domain.common.affilation | 10 domain.entity.business | 11 domain.entity.user | 12 domain.shared_types | 13 adapters.auth.access_token | 14 application.common.auth_provider | 15 application.common.gateway.business | 16 application.loyalty.dto | 17 domain.entity.business_branch | 18 domain.entity.client | 19 adapters.auth.provider | 20 application.common.idp | 21 domain.entity.loyalty | 22 adapters.auth.idp.web | 23 application.business.create | 24 application.business_branch.read | 25 application.business_branch.update | 26 application.client.create | 27 application.common.gateway.loyalty | 28 bootstrap.di.providers.adapter | 29 domain.entity.membership | 30 presentation.web.controller.login | 31 adapters.db.gateway.loyalty | 32 application.common.gateway.membership | 33 application.loyalty.create | 34 application.loyalty.read | 35 application.loyalty.update | 36 domain.service | 37 application.membership.create | 38 application.membership.read | 39 application.payment.create | 40 adapters.api_client |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 adapters.common.gateway | ||||||||||||||||||||||||||||||||||||||||
| 2 adapters.config_loader | ||||||||||||||||||||||||||||||||||||||||
| 3 application.common.gateway.bonus | ||||||||||||||||||||||||||||||||||||||||
| 4 application.common.gateway.business_branch | ||||||||||||||||||||||||||||||||||||||||
| 5 application.common.gateway.payment | ||||||||||||||||||||||||||||||||||||||||
| 6 application.common.uow | ||||||||||||||||||||||||||||||||||||||||
| 7 application.data_model.business_branch | ||||||||||||||||||||||||||||||||||||||||
| 8 application.exceptions.base | ||||||||||||||||||||||||||||||||||||||||
| 9 domain.common.affilation | ||||||||||||||||||||||||||||||||||||||||
| 10 domain.entity.business | ||||||||||||||||||||||||||||||||||||||||
| 11 domain.entity.user | ||||||||||||||||||||||||||||||||||||||||
| 12 domain.shared_types | ||||||||||||||||||||||||||||||||||||||||
| 13 adapters.auth.access_token | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 application.common.auth_provider | 1 | |||||||||||||||||||||||||||||||||||||||
| 15 application.common.gateway.business | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 application.loyalty.dto | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 domain.entity.business_branch | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 18 domain.entity.client | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 adapters.auth.provider | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 20 application.common.idp | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 21 domain.entity.loyalty | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 22 adapters.auth.idp.web | 1 | 1 | 1 | 1 | 1 | 3 | ||||||||||||||||||||||||||||||||||
| 23 application.business.create | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 24 application.business_branch.read | 2 | 1 | 1 | 2 | ||||||||||||||||||||||||||||||||||||
| 25 application.business_branch.update | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 26 application.client.create | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 27 application.common.gateway.loyalty | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 28 bootstrap.di.providers.adapter | 1 | 2 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 29 domain.entity.membership | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 30 presentation.web.controller.login | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 31 adapters.db.gateway.loyalty | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 32 application.common.gateway.membership | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 application.loyalty.create | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 34 application.loyalty.read | 1 | 2 | 2 | 2 | ||||||||||||||||||||||||||||||||||||
| 35 application.loyalty.update | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 36 domain.service | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 37 application.membership.create | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||||||||
| 38 application.membership.read | 2 | 2 | 2 | |||||||||||||||||||||||||||||||||||||
| 39 application.payment.create | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||
| 40 adapters.api_client | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
13→11 adapters.auth.access_token uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in adapters.auth.access_token uses a type in domain.entity.user.
- The types involved
src.loyalty.adapters.auth.access_token.AccessToken→src.loyalty.domain.entity.user.User
- Direction
- adapters.auth.access_token uses domain.entity.user, so a change to domain.entity.user can break adapters.auth.access_token, while a change to adapters.auth.access_token can't break domain.entity.user.
- Position
- Below the diagonal: adapters.auth.access_token uses a module listed above it, which is the healthy direction.
14→11 application.common.auth_provider uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in application.common.auth_provider uses a type in domain.entity.user.
- The types involved
src.loyalty.application.common.auth_provider.AuthProvider→src.loyalty.domain.entity.user.User
- Direction
- application.common.auth_provider uses domain.entity.user, so a change to domain.entity.user can break application.common.auth_provider, while a change to application.common.auth_provider can't break domain.entity.user.
- Position
- Below the diagonal: application.common.auth_provider uses a module listed above it, which is the healthy direction.
15→10 application.common.gateway.business uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in application.common.gateway.business uses a type in domain.entity.business.
- The types involved
src.loyalty.application.common.gateway.business.BusinessGateway→src.loyalty.domain.entity.business.Business
- Direction
- application.common.gateway.business uses domain.entity.business, so a change to domain.entity.business can break application.common.gateway.business, while a change to application.common.gateway.business can't break domain.entity.business.
- Position
- Below the diagonal: application.common.gateway.business uses a module listed above it, which is the healthy direction.
16→10 application.loyalty.dto uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in application.loyalty.dto uses a type in domain.entity.business.
- The types involved
src.loyalty.application.loyalty.dto.LoyaltyData→src.loyalty.domain.entity.business.Business
- Direction
- application.loyalty.dto uses domain.entity.business, so a change to domain.entity.business can break application.loyalty.dto, while a change to application.loyalty.dto can't break domain.entity.business.
- Position
- Below the diagonal: application.loyalty.dto uses a module listed above it, which is the healthy direction.
17→10 domain.entity.business_branch uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in domain.entity.business_branch uses a type in domain.entity.business.
- The types involved
src.loyalty.domain.entity.business_branch.BusinessBranch→src.loyalty.domain.entity.business.Business
- Direction
- domain.entity.business_branch uses domain.entity.business, so a change to domain.entity.business can break domain.entity.business_branch, while a change to domain.entity.business_branch can't break domain.entity.business.
- Position
- Below the diagonal: domain.entity.business_branch uses a module listed above it, which is the healthy direction.
17→11 domain.entity.business_branch uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in domain.entity.business_branch uses a type in domain.entity.user.
- The types involved
src.loyalty.domain.entity.business_branch.BusinessBranch→src.loyalty.domain.entity.user.User
- Direction
- domain.entity.business_branch uses domain.entity.user, so a change to domain.entity.user can break domain.entity.business_branch, while a change to domain.entity.business_branch can't break domain.entity.user.
- Position
- Below the diagonal: domain.entity.business_branch uses a module listed above it, which is the healthy direction.
18→12 domain.entity.client uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in domain.entity.client uses a type in domain.shared_types.
- The types involved
src.loyalty.domain.entity.client.Client→src.loyalty.domain.shared_types.Gender
- Direction
- domain.entity.client uses domain.shared_types, so a change to domain.shared_types can break domain.entity.client, while a change to domain.entity.client can't break domain.shared_types.
- Position
- Below the diagonal: domain.entity.client uses a module listed above it, which is the healthy direction.
19→1 adapters.auth.provider uses adapters.common.gateway✕
- Connections
- 1 pair of types, where a type in adapters.auth.provider uses a type in adapters.common.gateway.
- The types involved
src.loyalty.adapters.auth.provider.WebAuthProvider→src.loyalty.adapters.common.gateway.WebUserGateway
- Direction
- adapters.auth.provider uses adapters.common.gateway, so a change to adapters.common.gateway can break adapters.auth.provider, while a change to adapters.auth.provider can't break adapters.common.gateway.
- Position
- Below the diagonal: adapters.auth.provider uses a module listed above it, which is the healthy direction.
19→11 adapters.auth.provider uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in adapters.auth.provider uses a type in domain.entity.user.
- The types involved
src.loyalty.adapters.auth.provider.WebAuthProvider→src.loyalty.domain.entity.user.User
- Direction
- adapters.auth.provider uses domain.entity.user, so a change to domain.entity.user can break adapters.auth.provider, while a change to adapters.auth.provider can't break domain.entity.user.
- Position
- Below the diagonal: adapters.auth.provider uses a module listed above it, which is the healthy direction.
19→14 adapters.auth.provider uses application.common.auth_provider✕
- Connections
- 1 pair of types, where a type in adapters.auth.provider uses a type in application.common.auth_provider.
- The types involved
src.loyalty.adapters.auth.provider.WebAuthProvider→src.loyalty.application.common.auth_provider.AuthProvider
- Direction
- adapters.auth.provider uses application.common.auth_provider, so a change to application.common.auth_provider can break adapters.auth.provider, while a change to adapters.auth.provider can't break application.common.auth_provider.
- Position
- Below the diagonal: adapters.auth.provider uses a module listed above it, which is the healthy direction.
20→10 application.common.idp uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in application.common.idp uses a type in domain.entity.business.
- The types involved
src.loyalty.application.common.idp.BusinessIdProvider→src.loyalty.domain.entity.business.Business
- Direction
- application.common.idp uses domain.entity.business, so a change to domain.entity.business can break application.common.idp, while a change to application.common.idp can't break domain.entity.business.
- Position
- Below the diagonal: application.common.idp uses a module listed above it, which is the healthy direction.
20→11 application.common.idp uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in application.common.idp uses a type in domain.entity.user.
- The types involved
src.loyalty.application.common.idp.UserIdProvider→src.loyalty.domain.entity.user.User
- Direction
- application.common.idp uses domain.entity.user, so a change to domain.entity.user can break application.common.idp, while a change to application.common.idp can't break domain.entity.user.
- Position
- Below the diagonal: application.common.idp uses a module listed above it, which is the healthy direction.
20→18 application.common.idp uses domain.entity.client✕
- Connections
- 1 pair of types, where a type in application.common.idp uses a type in domain.entity.client.
- The types involved
src.loyalty.application.common.idp.ClientIdProvider→src.loyalty.domain.entity.client.Client
- Direction
- application.common.idp uses domain.entity.client, so a change to domain.entity.client can break application.common.idp, while a change to application.common.idp can't break domain.entity.client.
- Position
- Below the diagonal: application.common.idp uses a module listed above it, which is the healthy direction.
21→9 domain.entity.loyalty uses domain.common.affilation✕
- Connections
- 1 pair of types, where a type in domain.entity.loyalty uses a type in domain.common.affilation.
- The types involved
src.loyalty.domain.entity.loyalty.Loyalty→src.loyalty.domain.common.affilation.BranchAffilationGateway
- Direction
- domain.entity.loyalty uses domain.common.affilation, so a change to domain.common.affilation can break domain.entity.loyalty, while a change to domain.entity.loyalty can't break domain.common.affilation.
- Position
- Below the diagonal: domain.entity.loyalty uses a module listed above it, which is the healthy direction.
21→10 domain.entity.loyalty uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in domain.entity.loyalty uses a type in domain.entity.business.
- The types involved
src.loyalty.domain.entity.loyalty.Loyalty→src.loyalty.domain.entity.business.Business
- Direction
- domain.entity.loyalty uses domain.entity.business, so a change to domain.entity.business can break domain.entity.loyalty, while a change to domain.entity.loyalty can't break domain.entity.business.
- Position
- Below the diagonal: domain.entity.loyalty uses a module listed above it, which is the healthy direction.
21→11 domain.entity.loyalty uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in domain.entity.loyalty uses a type in domain.entity.user.
- The types involved
src.loyalty.domain.entity.loyalty.Loyalty→src.loyalty.domain.entity.user.User
- Direction
- domain.entity.loyalty uses domain.entity.user, so a change to domain.entity.user can break domain.entity.loyalty, while a change to domain.entity.loyalty can't break domain.entity.user.
- Position
- Below the diagonal: domain.entity.loyalty uses a module listed above it, which is the healthy direction.
21→17 domain.entity.loyalty uses domain.entity.business_branch✕
- Connections
- 1 pair of types, where a type in domain.entity.loyalty uses a type in domain.entity.business_branch.
- The types involved
src.loyalty.domain.entity.loyalty.Loyalty→src.loyalty.domain.entity.business_branch.BusinessBranch
- Direction
- domain.entity.loyalty uses domain.entity.business_branch, so a change to domain.entity.business_branch can break domain.entity.loyalty, while a change to domain.entity.loyalty can't break domain.entity.business_branch.
- Position
- Below the diagonal: domain.entity.loyalty uses a module listed above it, which is the healthy direction.
21→18 domain.entity.loyalty uses domain.entity.client✕
- Connections
- 1 pair of types, where a type in domain.entity.loyalty uses a type in domain.entity.client.
- The types involved
src.loyalty.domain.entity.loyalty.Loyalty→src.loyalty.domain.entity.client.Client
- Direction
- domain.entity.loyalty uses domain.entity.client, so a change to domain.entity.client can break domain.entity.loyalty, while a change to domain.entity.loyalty can't break domain.entity.client.
- Position
- Below the diagonal: domain.entity.loyalty uses a module listed above it, which is the healthy direction.
22→1 adapters.auth.idp.web uses adapters.common.gateway✕
- Connections
- 1 pair of types, where a type in adapters.auth.idp.web uses a type in adapters.common.gateway.
- The types involved
src.loyalty.adapters.auth.idp.web.FlaskTokenParser→src.loyalty.adapters.common.gateway.AccessTokenGateway
- Direction
- adapters.auth.idp.web uses adapters.common.gateway, so a change to adapters.common.gateway can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break adapters.common.gateway.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
22→10 adapters.auth.idp.web uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in adapters.auth.idp.web uses a type in domain.entity.business.
- The types involved
src.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.domain.entity.business.Business
- Direction
- adapters.auth.idp.web uses domain.entity.business, so a change to domain.entity.business can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break domain.entity.business.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
22→11 adapters.auth.idp.web uses domain.entity.user✕
- Connections
- 1 pair of types, where a type in adapters.auth.idp.web uses a type in domain.entity.user.
- The types involved
src.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.domain.entity.user.User
- Direction
- adapters.auth.idp.web uses domain.entity.user, so a change to domain.entity.user can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break domain.entity.user.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
22→13 adapters.auth.idp.web uses adapters.auth.access_token✕
- Connections
- 1 pair of types, where a type in adapters.auth.idp.web uses a type in adapters.auth.access_token.
- The types involved
src.loyalty.adapters.auth.idp.web.FlaskTokenParser→src.loyalty.adapters.auth.access_token.AccessToken
- Direction
- adapters.auth.idp.web uses adapters.auth.access_token, so a change to adapters.auth.access_token can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break adapters.auth.access_token.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
22→18 adapters.auth.idp.web uses domain.entity.client✕
- Connections
- 1 pair of types, where a type in adapters.auth.idp.web uses a type in domain.entity.client.
- The types involved
src.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.domain.entity.client.Client
- Direction
- adapters.auth.idp.web uses domain.entity.client, so a change to domain.entity.client can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break domain.entity.client.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
22→20 adapters.auth.idp.web uses application.common.idp✕
- Connections
- 3 pairs of types, where a type in adapters.auth.idp.web uses a type in application.common.idp.
- The types involved
src.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.application.common.idp.BusinessIdProvidersrc.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.application.common.idp.ClientIdProvidersrc.loyalty.adapters.auth.idp.web.WebIdProvider→src.loyalty.application.common.idp.UserIdProvider
- Direction
- adapters.auth.idp.web uses application.common.idp, so a change to application.common.idp can break adapters.auth.idp.web, while a change to adapters.auth.idp.web can't break application.common.idp.
- Position
- Below the diagonal: adapters.auth.idp.web uses a module listed above it, which is the healthy direction.
23→6 application.business.create uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.business.create uses a type in application.common.uow.
- The types involved
src.loyalty.application.business.create.CreateBusiness→src.loyalty.application.common.uow.UoW
- Direction
- application.business.create uses application.common.uow, so a change to application.common.uow can break application.business.create, while a change to application.business.create can't break application.common.uow.
- Position
- Below the diagonal: application.business.create uses a module listed above it, which is the healthy direction.
23→15 application.business.create uses application.common.gateway.business✕
- Connections
- 1 pair of types, where a type in application.business.create uses a type in application.common.gateway.business.
- The types involved
src.loyalty.application.business.create.CreateBusiness→src.loyalty.application.common.gateway.business.BusinessGateway
- Direction
- application.business.create uses application.common.gateway.business, so a change to application.common.gateway.business can break application.business.create, while a change to application.business.create can't break application.common.gateway.business.
- Position
- Below the diagonal: application.business.create uses a module listed above it, which is the healthy direction.
23→20 application.business.create uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.business.create uses a type in application.common.idp.
- The types involved
src.loyalty.application.business.create.CreateBusiness→src.loyalty.application.common.idp.UserIdProvider
- Direction
- application.business.create uses application.common.idp, so a change to application.common.idp can break application.business.create, while a change to application.business.create can't break application.common.idp.
- Position
- Below the diagonal: application.business.create uses a module listed above it, which is the healthy direction.
24→4 application.business_branch.read uses application.common.gateway.business_branch✕
- Connections
- 2 pairs of types, where a type in application.business_branch.read uses a type in application.common.gateway.business_branch.
- The types involved
src.loyalty.application.business_branch.read.ReadBusinessBranch→src.loyalty.application.common.gateway.business_branch.BusinessBranchGatewaysrc.loyalty.application.business_branch.read.ReadBusinessBranches→src.loyalty.application.common.gateway.business_branch.BusinessBranchGateway
- Direction
- application.business_branch.read uses application.common.gateway.business_branch, so a change to application.common.gateway.business_branch can break application.business_branch.read, while a change to application.business_branch.read can't break application.common.gateway.business_branch.
- Position
- Below the diagonal: application.business_branch.read uses a module listed above it, which is the healthy direction.
24→7 application.business_branch.read uses application.data_model.business_branch✕
- Connections
- 1 pair of types, where a type in application.business_branch.read uses a type in application.data_model.business_branch.
- The types involved
src.loyalty.application.business_branch.read.ReadBusinessBranch→src.loyalty.application.data_model.business_branch.BusinessBranchData
- Direction
- application.business_branch.read uses application.data_model.business_branch, so a change to application.data_model.business_branch can break application.business_branch.read, while a change to application.business_branch.read can't break application.data_model.business_branch.
- Position
- Below the diagonal: application.business_branch.read uses a module listed above it, which is the healthy direction.
24→15 application.business_branch.read uses application.common.gateway.business✕
- Connections
- 1 pair of types, where a type in application.business_branch.read uses a type in application.common.gateway.business.
- The types involved
src.loyalty.application.business_branch.read.ReadBusinessBranches→src.loyalty.application.common.gateway.business.BusinessGateway
- Direction
- application.business_branch.read uses application.common.gateway.business, so a change to application.common.gateway.business can break application.business_branch.read, while a change to application.business_branch.read can't break application.common.gateway.business.
- Position
- Below the diagonal: application.business_branch.read uses a module listed above it, which is the healthy direction.
24→20 application.business_branch.read uses application.common.idp✕
- Connections
- 2 pairs of types, where a type in application.business_branch.read uses a type in application.common.idp.
- The types involved
src.loyalty.application.business_branch.read.ReadBusinessBranch→src.loyalty.application.common.idp.UserIdProvidersrc.loyalty.application.business_branch.read.ReadBusinessBranches→src.loyalty.application.common.idp.UserIdProvider
- Direction
- application.business_branch.read uses application.common.idp, so a change to application.common.idp can break application.business_branch.read, while a change to application.business_branch.read can't break application.common.idp.
- Position
- Below the diagonal: application.business_branch.read uses a module listed above it, which is the healthy direction.
25→4 application.business_branch.update uses application.common.gateway.business_branch✕
- Connections
- 1 pair of types, where a type in application.business_branch.update uses a type in application.common.gateway.business_branch.
- The types involved
src.loyalty.application.business_branch.update.UpdateBusinessBranch→src.loyalty.application.common.gateway.business_branch.BusinessBranchGateway
- Direction
- application.business_branch.update uses application.common.gateway.business_branch, so a change to application.common.gateway.business_branch can break application.business_branch.update, while a change to application.business_branch.update can't break application.common.gateway.business_branch.
- Position
- Below the diagonal: application.business_branch.update uses a module listed above it, which is the healthy direction.
25→6 application.business_branch.update uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.business_branch.update uses a type in application.common.uow.
- The types involved
src.loyalty.application.business_branch.update.UpdateBusinessBranch→src.loyalty.application.common.uow.UoW
- Direction
- application.business_branch.update uses application.common.uow, so a change to application.common.uow can break application.business_branch.update, while a change to application.business_branch.update can't break application.common.uow.
- Position
- Below the diagonal: application.business_branch.update uses a module listed above it, which is the healthy direction.
25→7 application.business_branch.update uses application.data_model.business_branch✕
- Connections
- 1 pair of types, where a type in application.business_branch.update uses a type in application.data_model.business_branch.
- The types involved
src.loyalty.application.business_branch.update.UpdateBusinessBranch→src.loyalty.application.data_model.business_branch.BusinessBranchForm
- Direction
- application.business_branch.update uses application.data_model.business_branch, so a change to application.data_model.business_branch can break application.business_branch.update, while a change to application.business_branch.update can't break application.data_model.business_branch.
- Position
- Below the diagonal: application.business_branch.update uses a module listed above it, which is the healthy direction.
25→20 application.business_branch.update uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.business_branch.update uses a type in application.common.idp.
- The types involved
src.loyalty.application.business_branch.update.UpdateBusinessBranch→src.loyalty.application.common.idp.UserIdProvider
- Direction
- application.business_branch.update uses application.common.idp, so a change to application.common.idp can break application.business_branch.update, while a change to application.business_branch.update can't break application.common.idp.
- Position
- Below the diagonal: application.business_branch.update uses a module listed above it, which is the healthy direction.
26→6 application.client.create uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.client.create uses a type in application.common.uow.
- The types involved
src.loyalty.application.client.create.CreateClient→src.loyalty.application.common.uow.UoW
- Direction
- application.client.create uses application.common.uow, so a change to application.common.uow can break application.client.create, while a change to application.client.create can't break application.common.uow.
- Position
- Below the diagonal: application.client.create uses a module listed above it, which is the healthy direction.
26→12 application.client.create uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in application.client.create uses a type in domain.shared_types.
- The types involved
src.loyalty.application.client.create.ClientForm→src.loyalty.domain.shared_types.Gender
- Direction
- application.client.create uses domain.shared_types, so a change to domain.shared_types can break application.client.create, while a change to application.client.create can't break domain.shared_types.
- Position
- Below the diagonal: application.client.create uses a module listed above it, which is the healthy direction.
26→20 application.client.create uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.client.create uses a type in application.common.idp.
- The types involved
src.loyalty.application.client.create.CreateClient→src.loyalty.application.common.idp.UserIdProvider
- Direction
- application.client.create uses application.common.idp, so a change to application.common.idp can break application.client.create, while a change to application.client.create can't break application.common.idp.
- Position
- Below the diagonal: application.client.create uses a module listed above it, which is the healthy direction.
27→12 application.common.gateway.loyalty uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in application.common.gateway.loyalty uses a type in domain.shared_types.
- The types involved
src.loyalty.application.common.gateway.loyalty.LoyaltyGateway→src.loyalty.domain.shared_types.LoyaltyTimeFrame
- Direction
- application.common.gateway.loyalty uses domain.shared_types, so a change to domain.shared_types can break application.common.gateway.loyalty, while a change to application.common.gateway.loyalty can't break domain.shared_types.
- Position
- Below the diagonal: application.common.gateway.loyalty uses a module listed above it, which is the healthy direction.
27→16 application.common.gateway.loyalty uses application.loyalty.dto✕
- Connections
- 1 pair of types, where a type in application.common.gateway.loyalty uses a type in application.loyalty.dto.
- The types involved
src.loyalty.application.common.gateway.loyalty.LoyaltyGateway→src.loyalty.application.loyalty.dto.Loyalties
- Direction
- application.common.gateway.loyalty uses application.loyalty.dto, so a change to application.loyalty.dto can break application.common.gateway.loyalty, while a change to application.common.gateway.loyalty can't break application.loyalty.dto.
- Position
- Below the diagonal: application.common.gateway.loyalty uses a module listed above it, which is the healthy direction.
27→21 application.common.gateway.loyalty uses domain.entity.loyalty✕
- Connections
- 1 pair of types, where a type in application.common.gateway.loyalty uses a type in domain.entity.loyalty.
- The types involved
src.loyalty.application.common.gateway.loyalty.LoyaltyGateway→src.loyalty.domain.entity.loyalty.Loyalty
- Direction
- application.common.gateway.loyalty uses domain.entity.loyalty, so a change to domain.entity.loyalty can break application.common.gateway.loyalty, while a change to application.common.gateway.loyalty can't break domain.entity.loyalty.
- Position
- Below the diagonal: application.common.gateway.loyalty uses a module listed above it, which is the healthy direction.
28→1 bootstrap.di.providers.adapter uses adapters.common.gateway✕
- Connections
- 1 pair of types, where a type in bootstrap.di.providers.adapter uses a type in adapters.common.gateway.
- The types involved
src.loyalty.bootstrap.di.providers.adapter.AdapterProvider→src.loyalty.adapters.common.gateway.WebUserGateway
- Direction
- bootstrap.di.providers.adapter uses adapters.common.gateway, so a change to adapters.common.gateway can break bootstrap.di.providers.adapter, while a change to bootstrap.di.providers.adapter can't break adapters.common.gateway.
- Position
- Below the diagonal: bootstrap.di.providers.adapter uses a module listed above it, which is the healthy direction.
28→2 bootstrap.di.providers.adapter uses adapters.config_loader✕
- Connections
- 2 pairs of types, where a type in bootstrap.di.providers.adapter uses a type in adapters.config_loader.
- The types involved
src.loyalty.bootstrap.di.providers.adapter.AdapterProvider→src.loyalty.adapters.config_loader.JWTConfigsrc.loyalty.bootstrap.di.providers.adapter.AdapterProvider→src.loyalty.adapters.config_loader.StorageConfig
- Direction
- bootstrap.di.providers.adapter uses adapters.config_loader, so a change to adapters.config_loader can break bootstrap.di.providers.adapter, while a change to bootstrap.di.providers.adapter can't break adapters.config_loader.
- Position
- Below the diagonal: bootstrap.di.providers.adapter uses a module listed above it, which is the healthy direction.
28→14 bootstrap.di.providers.adapter uses application.common.auth_provider✕
- Connections
- 1 pair of types, where a type in bootstrap.di.providers.adapter uses a type in application.common.auth_provider.
- The types involved
src.loyalty.bootstrap.di.providers.adapter.AdapterProvider→src.loyalty.application.common.auth_provider.AuthProvider
- Direction
- bootstrap.di.providers.adapter uses application.common.auth_provider, so a change to application.common.auth_provider can break bootstrap.di.providers.adapter, while a change to bootstrap.di.providers.adapter can't break application.common.auth_provider.
- Position
- Below the diagonal: bootstrap.di.providers.adapter uses a module listed above it, which is the healthy direction.
28→19 bootstrap.di.providers.adapter uses adapters.auth.provider✕
- Connections
- 1 pair of types, where a type in bootstrap.di.providers.adapter uses a type in adapters.auth.provider.
- The types involved
src.loyalty.bootstrap.di.providers.adapter.AdapterProvider→src.loyalty.adapters.auth.provider.WebUserCredentials
- Direction
- bootstrap.di.providers.adapter uses adapters.auth.provider, so a change to adapters.auth.provider can break bootstrap.di.providers.adapter, while a change to bootstrap.di.providers.adapter can't break adapters.auth.provider.
- Position
- Below the diagonal: bootstrap.di.providers.adapter uses a module listed above it, which is the healthy direction.
29→10 domain.entity.membership uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in domain.entity.membership uses a type in domain.entity.business.
- The types involved
src.loyalty.domain.entity.membership.LoyaltyMembership→src.loyalty.domain.entity.business.Business
- Direction
- domain.entity.membership uses domain.entity.business, so a change to domain.entity.business can break domain.entity.membership, while a change to domain.entity.membership can't break domain.entity.business.
- Position
- Below the diagonal: domain.entity.membership uses a module listed above it, which is the healthy direction.
29→18 domain.entity.membership uses domain.entity.client✕
- Connections
- 1 pair of types, where a type in domain.entity.membership uses a type in domain.entity.client.
- The types involved
src.loyalty.domain.entity.membership.LoyaltyMembership→src.loyalty.domain.entity.client.Client
- Direction
- domain.entity.membership uses domain.entity.client, so a change to domain.entity.client can break domain.entity.membership, while a change to domain.entity.membership can't break domain.entity.client.
- Position
- Below the diagonal: domain.entity.membership uses a module listed above it, which is the healthy direction.
29→21 domain.entity.membership uses domain.entity.loyalty✕
- Connections
- 1 pair of types, where a type in domain.entity.membership uses a type in domain.entity.loyalty.
- The types involved
src.loyalty.domain.entity.membership.LoyaltyMembership→src.loyalty.domain.entity.loyalty.Loyalty
- Direction
- domain.entity.membership uses domain.entity.loyalty, so a change to domain.entity.loyalty can break domain.entity.membership, while a change to domain.entity.membership can't break domain.entity.loyalty.
- Position
- Below the diagonal: domain.entity.membership uses a module listed above it, which is the healthy direction.
30→1 presentation.web.controller.login uses adapters.common.gateway✕
- Connections
- 1 pair of types, where a type in presentation.web.controller.login uses a type in adapters.common.gateway.
- The types involved
src.loyalty.presentation.web.controller.login.WebLogin→src.loyalty.adapters.common.gateway.WebUserGateway
- Direction
- presentation.web.controller.login uses adapters.common.gateway, so a change to adapters.common.gateway can break presentation.web.controller.login, while a change to presentation.web.controller.login can't break adapters.common.gateway.
- Position
- Below the diagonal: presentation.web.controller.login uses a module listed above it, which is the healthy direction.
30→6 presentation.web.controller.login uses application.common.uow✕
- Connections
- 1 pair of types, where a type in presentation.web.controller.login uses a type in application.common.uow.
- The types involved
src.loyalty.presentation.web.controller.login.WebLogin→src.loyalty.application.common.uow.UoW
- Direction
- presentation.web.controller.login uses application.common.uow, so a change to application.common.uow can break presentation.web.controller.login, while a change to presentation.web.controller.login can't break application.common.uow.
- Position
- Below the diagonal: presentation.web.controller.login uses a module listed above it, which is the healthy direction.
30→19 presentation.web.controller.login uses adapters.auth.provider✕
- Connections
- 1 pair of types, where a type in presentation.web.controller.login uses a type in adapters.auth.provider.
- The types involved
src.loyalty.presentation.web.controller.login.WebLogin→src.loyalty.adapters.auth.provider.WebUserCredentials
- Direction
- presentation.web.controller.login uses adapters.auth.provider, so a change to adapters.auth.provider can break presentation.web.controller.login, while a change to presentation.web.controller.login can't break adapters.auth.provider.
- Position
- Below the diagonal: presentation.web.controller.login uses a module listed above it, which is the healthy direction.
31→12 adapters.db.gateway.loyalty uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in adapters.db.gateway.loyalty uses a type in domain.shared_types.
- The types involved
src.loyalty.adapters.db.gateway.loyalty.SALoyaltyGateway→src.loyalty.domain.shared_types.LoyaltyTimeFrame
- Direction
- adapters.db.gateway.loyalty uses domain.shared_types, so a change to domain.shared_types can break adapters.db.gateway.loyalty, while a change to adapters.db.gateway.loyalty can't break domain.shared_types.
- Position
- Below the diagonal: adapters.db.gateway.loyalty uses a module listed above it, which is the healthy direction.
31→16 adapters.db.gateway.loyalty uses application.loyalty.dto✕
- Connections
- 1 pair of types, where a type in adapters.db.gateway.loyalty uses a type in application.loyalty.dto.
- The types involved
src.loyalty.adapters.db.gateway.loyalty.SALoyaltyGateway→src.loyalty.application.loyalty.dto.Loyalties
- Direction
- adapters.db.gateway.loyalty uses application.loyalty.dto, so a change to application.loyalty.dto can break adapters.db.gateway.loyalty, while a change to adapters.db.gateway.loyalty can't break application.loyalty.dto.
- Position
- Below the diagonal: adapters.db.gateway.loyalty uses a module listed above it, which is the healthy direction.
31→21 adapters.db.gateway.loyalty uses domain.entity.loyalty✕
- Connections
- 1 pair of types, where a type in adapters.db.gateway.loyalty uses a type in domain.entity.loyalty.
- The types involved
src.loyalty.adapters.db.gateway.loyalty.SALoyaltyGateway→src.loyalty.domain.entity.loyalty.Loyalty
- Direction
- adapters.db.gateway.loyalty uses domain.entity.loyalty, so a change to domain.entity.loyalty can break adapters.db.gateway.loyalty, while a change to adapters.db.gateway.loyalty can't break domain.entity.loyalty.
- Position
- Below the diagonal: adapters.db.gateway.loyalty uses a module listed above it, which is the healthy direction.
31→27 adapters.db.gateway.loyalty uses application.common.gateway.loyalty✕
- Connections
- 1 pair of types, where a type in adapters.db.gateway.loyalty uses a type in application.common.gateway.loyalty.
- The types involved
src.loyalty.adapters.db.gateway.loyalty.SALoyaltyGateway→src.loyalty.application.common.gateway.loyalty.LoyaltyGateway
- Direction
- adapters.db.gateway.loyalty uses application.common.gateway.loyalty, so a change to application.common.gateway.loyalty can break adapters.db.gateway.loyalty, while a change to adapters.db.gateway.loyalty can't break application.common.gateway.loyalty.
- Position
- Below the diagonal: adapters.db.gateway.loyalty uses a module listed above it, which is the healthy direction.
32→29 application.common.gateway.membership uses domain.entity.membership✕
- Connections
- 1 pair of types, where a type in application.common.gateway.membership uses a type in domain.entity.membership.
- The types involved
src.loyalty.application.common.gateway.membership.MembershipGateway→src.loyalty.domain.entity.membership.LoyaltyMembership
- Direction
- application.common.gateway.membership uses domain.entity.membership, so a change to domain.entity.membership can break application.common.gateway.membership, while a change to application.common.gateway.membership can't break domain.entity.membership.
- Position
- Below the diagonal: application.common.gateway.membership uses a module listed above it, which is the healthy direction.
33→4 application.loyalty.create uses application.common.gateway.business_branch✕
- Connections
- 1 pair of types, where a type in application.loyalty.create uses a type in application.common.gateway.business_branch.
- The types involved
src.loyalty.application.loyalty.create.CreateLoyalty→src.loyalty.application.common.gateway.business_branch.BusinessBranchGateway
- Direction
- application.loyalty.create uses application.common.gateway.business_branch, so a change to application.common.gateway.business_branch can break application.loyalty.create, while a change to application.loyalty.create can't break application.common.gateway.business_branch.
- Position
- Below the diagonal: application.loyalty.create uses a module listed above it, which is the healthy direction.
33→6 application.loyalty.create uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.loyalty.create uses a type in application.common.uow.
- The types involved
src.loyalty.application.loyalty.create.CreateLoyalty→src.loyalty.application.common.uow.UoW
- Direction
- application.loyalty.create uses application.common.uow, so a change to application.common.uow can break application.loyalty.create, while a change to application.loyalty.create can't break application.common.uow.
- Position
- Below the diagonal: application.loyalty.create uses a module listed above it, which is the healthy direction.
33→20 application.loyalty.create uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.loyalty.create uses a type in application.common.idp.
- The types involved
src.loyalty.application.loyalty.create.CreateLoyalty→src.loyalty.application.common.idp.BusinessIdProvider
- Direction
- application.loyalty.create uses application.common.idp, so a change to application.common.idp can break application.loyalty.create, while a change to application.loyalty.create can't break application.common.idp.
- Position
- Below the diagonal: application.loyalty.create uses a module listed above it, which is the healthy direction.
33→27 application.loyalty.create uses application.common.gateway.loyalty✕
- Connections
- 1 pair of types, where a type in application.loyalty.create uses a type in application.common.gateway.loyalty.
- The types involved
src.loyalty.application.loyalty.create.CreateLoyalty→src.loyalty.application.common.gateway.loyalty.LoyaltyGateway
- Direction
- application.loyalty.create uses application.common.gateway.loyalty, so a change to application.common.gateway.loyalty can break application.loyalty.create, while a change to application.loyalty.create can't break application.common.gateway.loyalty.
- Position
- Below the diagonal: application.loyalty.create uses a module listed above it, which is the healthy direction.
34→12 application.loyalty.read uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in application.loyalty.read uses a type in domain.shared_types.
- The types involved
src.loyalty.application.loyalty.read.ReadLoyalties→src.loyalty.domain.shared_types.LoyaltyTimeFrame
- Direction
- application.loyalty.read uses domain.shared_types, so a change to domain.shared_types can break application.loyalty.read, while a change to application.loyalty.read can't break domain.shared_types.
- Position
- Below the diagonal: application.loyalty.read uses a module listed above it, which is the healthy direction.
34→16 application.loyalty.read uses application.loyalty.dto✕
- Connections
- 2 pairs of types, where a type in application.loyalty.read uses a type in application.loyalty.dto.
- The types involved
src.loyalty.application.loyalty.read.ReadLoyalties→src.loyalty.application.loyalty.dto.Loyaltiessrc.loyalty.application.loyalty.read.ReadLoyalty→src.loyalty.application.loyalty.dto.LoyaltyData
- Direction
- application.loyalty.read uses application.loyalty.dto, so a change to application.loyalty.dto can break application.loyalty.read, while a change to application.loyalty.read can't break application.loyalty.dto.
- Position
- Below the diagonal: application.loyalty.read uses a module listed above it, which is the healthy direction.
34→20 application.loyalty.read uses application.common.idp✕
- Connections
- 2 pairs of types, where a type in application.loyalty.read uses a type in application.common.idp.
- The types involved
src.loyalty.application.loyalty.read.ReadLoyalties→src.loyalty.application.common.idp.UserIdProvidersrc.loyalty.application.loyalty.read.ReadLoyalty→src.loyalty.application.common.idp.UserIdProvider
- Direction
- application.loyalty.read uses application.common.idp, so a change to application.common.idp can break application.loyalty.read, while a change to application.loyalty.read can't break application.common.idp.
- Position
- Below the diagonal: application.loyalty.read uses a module listed above it, which is the healthy direction.
34→27 application.loyalty.read uses application.common.gateway.loyalty✕
- Connections
- 2 pairs of types, where a type in application.loyalty.read uses a type in application.common.gateway.loyalty.
- The types involved
src.loyalty.application.loyalty.read.ReadLoyalties→src.loyalty.application.common.gateway.loyalty.LoyaltyGatewaysrc.loyalty.application.loyalty.read.ReadLoyalty→src.loyalty.application.common.gateway.loyalty.LoyaltyGateway
- Direction
- application.loyalty.read uses application.common.gateway.loyalty, so a change to application.common.gateway.loyalty can break application.loyalty.read, while a change to application.loyalty.read can't break application.common.gateway.loyalty.
- Position
- Below the diagonal: application.loyalty.read uses a module listed above it, which is the healthy direction.
35→4 application.loyalty.update uses application.common.gateway.business_branch✕
- Connections
- 1 pair of types, where a type in application.loyalty.update uses a type in application.common.gateway.business_branch.
- The types involved
src.loyalty.application.loyalty.update.UpdateLoyalty→src.loyalty.application.common.gateway.business_branch.BusinessBranchGateway
- Direction
- application.loyalty.update uses application.common.gateway.business_branch, so a change to application.common.gateway.business_branch can break application.loyalty.update, while a change to application.loyalty.update can't break application.common.gateway.business_branch.
- Position
- Below the diagonal: application.loyalty.update uses a module listed above it, which is the healthy direction.
35→6 application.loyalty.update uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.loyalty.update uses a type in application.common.uow.
- The types involved
src.loyalty.application.loyalty.update.UpdateLoyalty→src.loyalty.application.common.uow.UoW
- Direction
- application.loyalty.update uses application.common.uow, so a change to application.common.uow can break application.loyalty.update, while a change to application.loyalty.update can't break application.common.uow.
- Position
- Below the diagonal: application.loyalty.update uses a module listed above it, which is the healthy direction.
35→20 application.loyalty.update uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.loyalty.update uses a type in application.common.idp.
- The types involved
src.loyalty.application.loyalty.update.UpdateLoyalty→src.loyalty.application.common.idp.BusinessIdProvider
- Direction
- application.loyalty.update uses application.common.idp, so a change to application.common.idp can break application.loyalty.update, while a change to application.loyalty.update can't break application.common.idp.
- Position
- Below the diagonal: application.loyalty.update uses a module listed above it, which is the healthy direction.
35→27 application.loyalty.update uses application.common.gateway.loyalty✕
- Connections
- 1 pair of types, where a type in application.loyalty.update uses a type in application.common.gateway.loyalty.
- The types involved
src.loyalty.application.loyalty.update.UpdateLoyalty→src.loyalty.application.common.gateway.loyalty.LoyaltyGateway
- Direction
- application.loyalty.update uses application.common.gateway.loyalty, so a change to application.common.gateway.loyalty can break application.loyalty.update, while a change to application.loyalty.update can't break application.common.gateway.loyalty.
- Position
- Below the diagonal: application.loyalty.update uses a module listed above it, which is the healthy direction.
36→9 domain.service uses domain.common.affilation✕
- Connections
- 1 pair of types, where a type in domain.service uses a type in domain.common.affilation.
- The types involved
src.loyalty.domain.service.payment→src.loyalty.domain.common.affilation.BranchAffilationGateway
- Direction
- domain.service uses domain.common.affilation, so a change to domain.common.affilation can break domain.service, while a change to domain.service can't break domain.common.affilation.
- Position
- Below the diagonal: domain.service uses a module listed above it, which is the healthy direction.
36→10 domain.service uses domain.entity.business✕
- Connections
- 1 pair of types, where a type in domain.service uses a type in domain.entity.business.
- The types involved
src.loyalty.domain.service.payment→src.loyalty.domain.entity.business.Business
- Direction
- domain.service uses domain.entity.business, so a change to domain.entity.business can break domain.service, while a change to domain.service can't break domain.entity.business.
- Position
- Below the diagonal: domain.service uses a module listed above it, which is the healthy direction.
36→17 domain.service uses domain.entity.business_branch✕
- Connections
- 1 pair of types, where a type in domain.service uses a type in domain.entity.business_branch.
- The types involved
src.loyalty.domain.service.payment→src.loyalty.domain.entity.business_branch.BusinessBranch
- Direction
- domain.service uses domain.entity.business_branch, so a change to domain.entity.business_branch can break domain.service, while a change to domain.service can't break domain.entity.business_branch.
- Position
- Below the diagonal: domain.service uses a module listed above it, which is the healthy direction.
36→18 domain.service uses domain.entity.client✕
- Connections
- 1 pair of types, where a type in domain.service uses a type in domain.entity.client.
- The types involved
src.loyalty.domain.service.payment→src.loyalty.domain.entity.client.Client
- Direction
- domain.service uses domain.entity.client, so a change to domain.entity.client can break domain.service, while a change to domain.service can't break domain.entity.client.
- Position
- Below the diagonal: domain.service uses a module listed above it, which is the healthy direction.
36→29 domain.service uses domain.entity.membership✕
- Connections
- 1 pair of types, where a type in domain.service uses a type in domain.entity.membership.
- The types involved
src.loyalty.domain.service.payment→src.loyalty.domain.entity.membership.LoyaltyMembership
- Direction
- domain.service uses domain.entity.membership, so a change to domain.entity.membership can break domain.service, while a change to domain.service can't break domain.entity.membership.
- Position
- Below the diagonal: domain.service uses a module listed above it, which is the healthy direction.
37→6 application.membership.create uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.membership.create uses a type in application.common.uow.
- The types involved
src.loyalty.application.membership.create.CreateMembership→src.loyalty.application.common.uow.UoW
- Direction
- application.membership.create uses application.common.uow, so a change to application.common.uow can break application.membership.create, while a change to application.membership.create can't break application.common.uow.
- Position
- Below the diagonal: application.membership.create uses a module listed above it, which is the healthy direction.
37→20 application.membership.create uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.membership.create uses a type in application.common.idp.
- The types involved
src.loyalty.application.membership.create.CreateMembership→src.loyalty.application.common.idp.ClientIdProvider
- Direction
- application.membership.create uses application.common.idp, so a change to application.common.idp can break application.membership.create, while a change to application.membership.create can't break application.common.idp.
- Position
- Below the diagonal: application.membership.create uses a module listed above it, which is the healthy direction.
37→27 application.membership.create uses application.common.gateway.loyalty✕
- Connections
- 1 pair of types, where a type in application.membership.create uses a type in application.common.gateway.loyalty.
- The types involved
src.loyalty.application.membership.create.CreateMembership→src.loyalty.application.common.gateway.loyalty.LoyaltyGateway
- Direction
- application.membership.create uses application.common.gateway.loyalty, so a change to application.common.gateway.loyalty can break application.membership.create, while a change to application.membership.create can't break application.common.gateway.loyalty.
- Position
- Below the diagonal: application.membership.create uses a module listed above it, which is the healthy direction.
37→32 application.membership.create uses application.common.gateway.membership✕
- Connections
- 1 pair of types, where a type in application.membership.create uses a type in application.common.gateway.membership.
- The types involved
src.loyalty.application.membership.create.CreateMembership→src.loyalty.application.common.gateway.membership.MembershipGateway
- Direction
- application.membership.create uses application.common.gateway.membership, so a change to application.common.gateway.membership can break application.membership.create, while a change to application.membership.create can't break application.common.gateway.membership.
- Position
- Below the diagonal: application.membership.create uses a module listed above it, which is the healthy direction.
38→6 application.membership.read uses application.common.uow✕
- Connections
- 2 pairs of types, where a type in application.membership.read uses a type in application.common.uow.
- The types involved
src.loyalty.application.membership.read.ReadMembership→src.loyalty.application.common.uow.UoWsrc.loyalty.application.membership.read.ReadMemberships→src.loyalty.application.common.uow.UoW
- Direction
- application.membership.read uses application.common.uow, so a change to application.common.uow can break application.membership.read, while a change to application.membership.read can't break application.common.uow.
- Position
- Below the diagonal: application.membership.read uses a module listed above it, which is the healthy direction.
38→20 application.membership.read uses application.common.idp✕
- Connections
- 2 pairs of types, where a type in application.membership.read uses a type in application.common.idp.
- The types involved
src.loyalty.application.membership.read.ReadMembership→src.loyalty.application.common.idp.ClientIdProvidersrc.loyalty.application.membership.read.ReadMemberships→src.loyalty.application.common.idp.ClientIdProvider
- Direction
- application.membership.read uses application.common.idp, so a change to application.common.idp can break application.membership.read, while a change to application.membership.read can't break application.common.idp.
- Position
- Below the diagonal: application.membership.read uses a module listed above it, which is the healthy direction.
38→32 application.membership.read uses application.common.gateway.membership✕
- Connections
- 2 pairs of types, where a type in application.membership.read uses a type in application.common.gateway.membership.
- The types involved
src.loyalty.application.membership.read.ReadMembership→src.loyalty.application.common.gateway.membership.MembershipGatewaysrc.loyalty.application.membership.read.ReadMemberships→src.loyalty.application.common.gateway.membership.MembershipGateway
- Direction
- application.membership.read uses application.common.gateway.membership, so a change to application.common.gateway.membership can break application.membership.read, while a change to application.membership.read can't break application.common.gateway.membership.
- Position
- Below the diagonal: application.membership.read uses a module listed above it, which is the healthy direction.
39→3 application.payment.create uses application.common.gateway.bonus✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.gateway.bonus.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.gateway.bonus.BonusGateway
- Direction
- application.payment.create uses application.common.gateway.bonus, so a change to application.common.gateway.bonus can break application.payment.create, while a change to application.payment.create can't break application.common.gateway.bonus.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→4 application.payment.create uses application.common.gateway.business_branch✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.gateway.business_branch.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.gateway.business_branch.BusinessBranchGateway
- Direction
- application.payment.create uses application.common.gateway.business_branch, so a change to application.common.gateway.business_branch can break application.payment.create, while a change to application.payment.create can't break application.common.gateway.business_branch.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→5 application.payment.create uses application.common.gateway.payment✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.gateway.payment.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.gateway.payment.PaymentGateway
- Direction
- application.payment.create uses application.common.gateway.payment, so a change to application.common.gateway.payment can break application.payment.create, while a change to application.payment.create can't break application.common.gateway.payment.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→6 application.payment.create uses application.common.uow✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.uow.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.uow.UoW
- Direction
- application.payment.create uses application.common.uow, so a change to application.common.uow can break application.payment.create, while a change to application.payment.create can't break application.common.uow.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→9 application.payment.create uses domain.common.affilation✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in domain.common.affilation.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.domain.common.affilation.BranchAffilationGateway
- Direction
- application.payment.create uses domain.common.affilation, so a change to domain.common.affilation can break application.payment.create, while a change to application.payment.create can't break domain.common.affilation.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→20 application.payment.create uses application.common.idp✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.idp.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.idp.BusinessIdProvider
- Direction
- application.payment.create uses application.common.idp, so a change to application.common.idp can break application.payment.create, while a change to application.payment.create can't break application.common.idp.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
39→32 application.payment.create uses application.common.gateway.membership✕
- Connections
- 1 pair of types, where a type in application.payment.create uses a type in application.common.gateway.membership.
- The types involved
src.loyalty.application.payment.create.CreatePayment→src.loyalty.application.common.gateway.membership.MembershipGateway
- Direction
- application.payment.create uses application.common.gateway.membership, so a change to application.common.gateway.membership can break application.payment.create, while a change to application.payment.create can't break application.common.gateway.membership.
- Position
- Below the diagonal: application.payment.create uses a module listed above it, which is the healthy direction.
40→7 adapters.api_client uses application.data_model.business_branch✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.data_model.business_branch.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.data_model.business_branch.BusinessBranchForm
- Direction
- adapters.api_client uses application.data_model.business_branch, so a change to application.data_model.business_branch can break adapters.api_client, while a change to adapters.api_client can't break application.data_model.business_branch.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→12 adapters.api_client uses domain.shared_types✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in domain.shared_types.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.domain.shared_types.LoyaltyTimeFrame
- Direction
- adapters.api_client uses domain.shared_types, so a change to domain.shared_types can break adapters.api_client, while a change to adapters.api_client can't break domain.shared_types.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→19 adapters.api_client uses adapters.auth.provider✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in adapters.auth.provider.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.adapters.auth.provider.WebUserCredentials
- Direction
- adapters.api_client uses adapters.auth.provider, so a change to adapters.auth.provider can break adapters.api_client, while a change to adapters.api_client can't break adapters.auth.provider.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→23 adapters.api_client uses application.business.create✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.business.create.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.business.create.BusinessForm
- Direction
- adapters.api_client uses application.business.create, so a change to application.business.create can break adapters.api_client, while a change to adapters.api_client can't break application.business.create.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→26 adapters.api_client uses application.client.create✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.client.create.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.client.create.ClientForm
- Direction
- adapters.api_client uses application.client.create, so a change to application.client.create can break adapters.api_client, while a change to adapters.api_client can't break application.client.create.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→33 adapters.api_client uses application.loyalty.create✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.loyalty.create.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.loyalty.create.LoyaltyForm
- Direction
- adapters.api_client uses application.loyalty.create, so a change to application.loyalty.create can break adapters.api_client, while a change to adapters.api_client can't break application.loyalty.create.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→35 adapters.api_client uses application.loyalty.update✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.loyalty.update.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.loyalty.update.UpdateLoyaltyForm
- Direction
- adapters.api_client uses application.loyalty.update, so a change to application.loyalty.update can break adapters.api_client, while a change to adapters.api_client can't break application.loyalty.update.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→37 adapters.api_client uses application.membership.create✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.membership.create.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.membership.create.MembershipForm
- Direction
- adapters.api_client uses application.membership.create, so a change to application.membership.create can break adapters.api_client, while a change to adapters.api_client can't break application.membership.create.
- Position
- Below the diagonal: adapters.api_client uses a module listed above it, which is the healthy direction.
40→39 adapters.api_client uses application.payment.create✕
- Connections
- 1 pair of types, where a type in adapters.api_client uses a type in application.payment.create.
- The types involved
src.loyalty.adapters.api_client.LoyaltyClient→src.loyalty.application.payment.create.PaymentForm
- Direction
- adapters.api_client uses application.payment.create, so a change to application.payment.create can break adapters.api_client, while a change to adapters.api_client can't break application.payment.create.
- Position
- Below the diagonal: adapters.api_client 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 — Accessibility
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 16 | High / Critical |
| A02:2025 — Security Misconfiguration | 11 | High / Critical |
| A07:2025 — Authentication Failures | 6 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 6 | Medium |
Roadmap
Immediately resolve the three leaked secrets in development environment files and address the banned license to ensure compliance. Strengthen the development workflow by fixing the inverted test pyramid and integrating a SAST step into CI to block security regressions. Finally, codify backup and geo-recovery procedures in infrastructure as code, documenting recovery time and point objectives to move beyond simple persistence guards.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED. | +8.1 pts | Low | REDACTED Scanning |
| Resolve the 1 Inverted test pyramid finding(s) in Test Distribution. | +5.2 pts | Low | Test Distribution |
| Resolve the 1 Banned license finding(s) in License Compliance. | +4.3 pts | Low | License Compliance |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +3.9 pts | Low | ADR Quality |
| Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing. | +5.0 pts | Medium | Security & performance tooling |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +5.0 pts | Medium | DR & Backup |
| Resolve the 18 Orphaned file finding(s) in Knowledge Freshness — start with loyalty.py (3), create.py (2), business.py (2). | +3.8 pts | Medium | Knowledge Freshness |
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +3.8 pts | Medium | Architecture documentation |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 1.6 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.1 | Mixed | IaC & Container Security: High IaC: REDACTED |
| REDACTED | 4.4 | Mixed | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 6.1 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.9 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 7.2 | Mixed | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 7.2 | Mixed | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 7.2 | Mixed | Secrets (history): High secret: REDACTED |
| REDACTED | 7.2 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| src/loyalty/adapters/db/alembic/migrations/versions/b7c63e7f7cd1_business.py | 8.5 | Near-clean | Code Duplication: Duplicated block (5 lines × 2) |
| src/loyalty/adapters/db/alembic/migrations/versions/5493b7169389_rm_city.py | 8.5 | Near-clean | Code Duplication: Duplicated block (7 lines × 3) |
| src/loyalty/adapters/db/alembic/migrations/versions/7f305bb8adef_change_bonus_income_field_on_payment_to_.py | 8.5 | Near-clean | Code Duplication: Duplicated block (13 lines × 2) |
| src/loyalty/adapters/db/gateway/business.py | 8.5 | Near-clean | Code Duplication: Duplicated block (9 lines × 4) |
| src/loyalty/application/business_branch/delete.py | 8.5 | Near-clean | Code Duplication: Duplicated block (11 lines × 4) |
| src/loyalty/application/business_branch/read.py | 8.5 | Near-clean | Code Duplication: Duplicated block (8 lines × 2) |
| src/loyalty/adapters/db/alembic/migrations/versions/1c0e2700f275_remove_tables.py | 8.5 | Near-clean | Code Duplication: Duplicated block (7 lines × 2) |
| src/loyalty/application/loyalty/create.py | 8.5 | Near-clean | Change Coupling: Change coupling: create.py ↔ update.py |
| src/loyalty/adapters/api_client.py | 8.5 | Near-clean | Change Coupling: Change coupling: api_client.py ↔ command.py |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 62 of 66 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 66 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, 70 of 94 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
- D8 Code Coverage — 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. Coverage NOT MEASURED: test source is present (.py) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — 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. Test source is present (.py) and this repository declares a Python test suite (repository root, 31 test files), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D32 Data Compliance (PII/GDPR) — 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. `src/loyalty/adapters/api_client.py`, `src/loyalty/bootstrap/di/providers/data.py` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository's container is dishka, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — 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 is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (docker-compose.dev.yml). compose up failed (exit 18 — an image could not be pulled) — nginx-s3-gateway Pulling nginx Pulling db Pulling minio Pulling nginx-s3-gateway Error Get "https://registry-1.docker.io/v2/": Forbidden nginx Error context canceled db Error context canceled minio Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: migrations Skipped - No image to be pulled api Skipped - No image to be pulled minio Pulling nginx Pulling db Pulling nginx-s3-gateway Pulling nginx Error Get "https://registry-1.docker.io/v2/": Forbidden minio Error context canceled db Error context canceled nginx-s3-gateway Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- GD1 Unfinished & placeholder code — 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, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — 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, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — 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 MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- 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.
- 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").
- 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.
- 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.
- AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
- AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
- AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- 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.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
7 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with b7c63e7f7cd1_business.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (7 lines × 3) finding(s) in Code Duplication — start with 5493b7169389_rm_city.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with 7f305bb8adef_change_bonus_income_field_on_payment_to_.py. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
157 test methods: 0 unit, 157 integration, 0 BDD, 0 e2e. The Python suite contributes 157 test function(s) across 30 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.
What to do
- Resolve the 1 Inverted test pyramid finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).
D12 · Dependency Hygiene
5 outdated, 0 yanked pinned Python distributions. Only EXACT pins are graded for currency: a floor or a range already installs the newest release it admits, so reporting one would report this repository for being current. Whether a deliberate upper cap has itself gone stale is a different and weaker question, and is not asked. Whether any distribution is UNMAINTAINED is not graded — PyPI publishes no maintenance status, and release age does not stand in for one. Lockfiles are not read (poetry.lock, uv.lock, Pipfile.lock, pdm.lock), so a lock-resolved install is outside this verdict. Known CVEs in this dependency graph are D30's question.
D13 · REDACTED Scanning
3 secret(s) detected.
What to do
- Resolve the 3 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
1 of 21 shipped Python distribution(s) use a banned license. Licences were resolved from PyPI over the distributions a consumer installs — this repository's 6 declared runtime requirement(s) closed transitively over each distribution's published `requires_dist` (15 reached that way). Requirements it states ONLY under an extra, a PEP 735 dependency group, a Poetry dev group or a dev-named requirements file are excluded: pip does not install any of them for a consumer. ★ This repository commits no dependency lockfile that this pass reads, so each licence is the one PyPI publishes for the distribution's CURRENT release rather than for a pinned version.
What to do
- Resolve the 1 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (1 issue-level).
- Enforce License Compliance in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D16 · Bus Factor
4 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/loyalty/application/payment/create.py. Counted over 18 of the 209 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 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
0 deducted task-comment markers across 4776 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
The repository's root README is a well-written project overview that explains the problem (no single loyalty program for any business), the goal (a unified loyalty system), target audience, and the functional requirements in order with clear bullet points. It also describes the team members, outlines responsibility allocation, and mentions optional features like client data aggregation and a Telegram bot. The document is richly structured with an outline that lists every section present in the body, so any missing section would be flagged by the scanner rather than being penalized for omission.
What to do
- Improve Documentation Quality — currently 7.0/10. — The repository's root README is a well-written project overview that explains the problem (no single loyalty program for any business), the goal (a unified loyalty system), target audience, and the functional requirements in order with clear bullet points. It also describes the team members, outlines responsibility allocation, and mentions optional features like client data aggregation and a Telegram bot. The document is richly structured with an outline that lists every section present in the body, so any missing section would be flagged by the scanner rather than being penalized for omission.
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.
D26 · Project Cohesion
1 of 1 build units (Python) 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)
2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 High secret finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
16 finding(s): 0 critical, 14 high, 2 medium, 0 low. 9 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. semgrep hit a parse error in 3 file(s) — `docs/openapi.yml`, `src/loyalty/adapters/api_client.py` (lines 1–433), `src/loyalty/bootstrap/di/providers/data.py` (line 12) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
What to do
- Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3). — One of this dimension's main actionable groups (3 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 9 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 (9 issue-level, 0 of them charged here).
D31 · IaC & Container Security
11 finding(s): 0 critical, 1 high, 9 medium, 1 low.
What to do
- Resolve the 1 High IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 9 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (4), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (9 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
18 of 18 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/loyalty/adapters/api_client.py. Counted over 18 of the 209 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 18 Orphaned file finding(s) in Knowledge Freshness — start with loyalty.py (3), create.py (2), business.py (2). — One of this dimension's main actionable groups (18 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: create.py↔update.py 60%; api_client.py↔command.py 58%
What to do
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with create.py, api_client.py. — One of this dimension's main actionable groups (2 warning-level).
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-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 6 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
AC1 · Text alternatives
AC2 · Forms & labels
AC3 · Page structure
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — src/loyalty/presentation/web/templates/index.html:2
- Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — src/loyalty/presentation/web/templates/index.html:98
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC6 · Visual & motion safety
- `.metric-card` moves (`transition: transform 0.3s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/loyalty/presentation/web/static/css/style.css:24
- `.advantage-card` moves (`transition: transform 0.3s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/loyalty/presentation/web/static/css/style.css:60
- `.business-card` moves (`transition: transform 0.3s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/loyalty/presentation/web/static/css/style.css:76
- `.review-card` moves (`transition: transform 0.3s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/loyalty/presentation/web/static/css/style.css:95
- `.btn-yellow` moves (`transition: background-color 0.3s ease, transform 0.3s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/loyalty/presentation/web/static/css/style.css:144
What to do
- Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement
- No accessibility enforcement found — no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 1 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
AX10 · Code composition
What to do
- The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
AX2 · Stateful singletons
AX3 · Project dependency cycles
AX4 · Dependency direction
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
- `ruff format` invokes ruff format in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner's throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one — it enforces nothing, and no other step in this file reads the result. `--check` is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted. — REDACTED:30
What to do
- Add `--check` to the ruff format step in `REDACTED` so a change that is not formatted fails CI, instead of being silently reformatted into a checkout that is thrown away — or, if reformatting the branch is the intent, commit the result back so the fix reaches the repository.
P10 · Library API & versioning
P2 · Observability
What to do
- Add OpenTelemetry tracing/metrics (opentelemetry-sdk) so requests are traceable across the system, not just health-probable.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add bandit, `semgrep --config=p/python`, or CodeQL's python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2848 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: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
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.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P8 · Schema migrations
PF3 · Async & latency hygiene
S1 · Web-Security Posture
- `https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. — src/loyalty/presentation/web/templates/index.html:235
What to do
- Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X4 · Structured logging
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC1 · Text alternatives | 1.1.1, 1.2.2, 1.2.5 | Partial signal |
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 100% | Exemplary | Solid. |
| Architecture | 66% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 45% | Weak — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 36% | Weak — gated by D13, P3, P5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 69% | Adequate — gated by D29, D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Accessibility | 48% | Weak — gated by AC6 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (an audit-log table or model — a class or table named for it — django-simple-history, django-auditlog, django-reversion, django-pghistory or SQLAlchemy-Continuum recording each change, or an event-sourced store beside one) 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.
Not included — 50 check(s) not relevant to this codebase
- AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
- AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
- AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- 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 — not assessed — interface segregation is computed over a type surface 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
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — nginx-s3-gateway Pulling nginx Pulling db Pulling minio Pulling nginx-s3-gateway Error Get "https://registry-1.docker.io/v2/": Forbidden nginx Error context canceled db Error context canceled minio Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: migrations Skipped - No image to be pulled api Skipped - No image to be pulled minio Pulling nginx Pulling db Pulling nginx-s3-gateway Pulling nginx Error Get "https://registry-1.docker.io/v2/": Forbidden minio Error context canceled db Error context canceled nginx-s3-gateway Error context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — No access-control surface detected in the analyzed source — this repository registers no route and starts no server another machine can reach (no Flask/FastAPI/Starlette route, Django urlpatterns or class-based view, Tornado handler). Access control is therefore N/A here — a library or command-line tool is authorized by the application that serves it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- D10 Test Quality — ~2640 lines of test source are present (.py) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability — Test reliability not included — the .py suite was found but not re-run
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.py), 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.
- D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry) — not scanned yet).
- D32 Data Compliance (PII/GDPR) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- 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.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry) — not scanned yet).
- D5 Coupling — Not applicable — this Python 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.)
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) was not measured: of the 100 type(s) found, none both holds instance state and has two or more methods whose shared use of it could be read (35 with fewer than two methods, 65 stateless), so LCOM4 is undefined for every type in this repository. Not scored — the metric does not apply here, and this is not a finding about this repository.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 8 value object(s); a Domain/Aggregates/ValueObjects layer
- 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
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — 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
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the JavaScript/TypeScript, Python source (service entry point: src/loyalty/adapters/auth/idp/web.py:3 ())
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for a pytest-benchmark or pytest-codspeed dependency with tests taking the `benchmark` fixture, an asv.conf.json with its `time_`/`mem_`/`peakmem_` benchmarks, or a pyperf Runner, 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: Python 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.
- X2 Cancellation propagation — no C# was loaded; this repository's Python was read, and no request in it can be cancelled by a caller — a Python request takes no token: asyncio cancels the task and trio or anyio the scope that made it, from outside the call, and requests, httpx, aiohttp and gRPC take a timeout, not a cancellation
- 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.
- 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.
- X5 Nullable reference types — 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 — 21 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Banned license: psycopg
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 33 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css:24
- Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css:60
- Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css:76
- Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css:95
- Animation without a prefers-reduced-motion guard src/loyalty/presentation/web/static/css/style.css:144
- REDACTED
- REDACTED
- Change coupling: create.py ↔ update.py src/loyalty/application/loyalty/create.py:1
- Change coupling: api_client.py ↔ command.py src/loyalty/adapters/api_client.py:1
- Page without a main landmark src/loyalty/presentation/web/templates/index.html:2
- Heading level jumps from h2 to h4 src/loyalty/presentation/web/templates/index.html:98
- Accessibility enforcement below the top rung
- REDACTED
- REDACTED
- Duplicated block (5 lines × 2) src/loyalty/adapters/db/alembic/migrations/versions/b7c63e7f7cd1_business.py:33
- Duplicated block (7 lines × 3) src/loyalty/adapters/db/alembic/migrations/versions/5493b7169389_rm_city.py:21
- Duplicated block (13 lines × 2) src/loyalty/adapters/db/alembic/migrations/versions/7f305bb8adef_change_bonus_income_field_on_payment_to_.py:21
- Duplicated block (9 lines × 4) src/loyalty/adapters/db/gateway/business.py:22
- Duplicated block (11 lines × 4) src/loyalty/application/business_branch/delete.py:18
- Duplicated block (8 lines × 2) src/loyalty/application/business_branch/read.py:27
- Duplicated block (7 lines × 2) src/loyalty/adapters/db/alembic/migrations/versions/1c0e2700f275_remove_tables.py:42
- CI formatting step cannot fail REDACTED:30
- No DR/backup evidence
- Third-party script without Subresource Integrity src/loyalty/presentation/web/templates/index.html:235
Minor — 35 finding(s)
- Orphaned file src/loyalty/adapters/api_client.py:1
- Orphaned file src/loyalty/presentation/web/flask_api/exc_handler.py:1
- Orphaned file src/loyalty/application/payment/create.py:1
- Orphaned file src/loyalty/adapters/auth/idp/web.py:1
- Orphaned file src/loyalty/adapters/db/gateway/business.py:1
- Orphaned file src/loyalty/domain/entity/loyalty.py:1
- Orphaned file src/loyalty/application/loyalty/read.py:1
- Orphaned file src/loyalty/bootstrap/di/providers/command.py:1
- Orphaned file src/loyalty/adapters/db/gateway/loyalty.py:1
- Orphaned file src/loyalty/bootstrap/di/providers/adapter.py:1
- Orphaned file src/loyalty/presentation/web/flask_api/loyalty.py:1
- Orphaned file src/loyalty/adapters/db/gateway/business_branch.py:1
- Orphaned file src/loyalty/presentation/web/flask_api/business.py:1
- Orphaned file src/loyalty/application/loyalty/create.py:1
- Orphaned file src/loyalty/presentation/web/flask_api/business_branch.py:1
- Orphaned file src/loyalty/bootstrap/entrypoint/flask_api.py:1
- Orphaned file src/loyalty/adapters/db/alembic/migrations/versions/1c0e2700f275_remove_tables.py:1
- Orphaned file src/loyalty/application/loyalty/update.py:1
- Off-boarding risk: anonymized user #1
- Further sole-owners (lower concentration)
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Inverted test pyramid
- No ADRs
- No architecture diagram/doc
- No SAST
- No changelog
- Duplicated predicate src/loyalty/application/business/read.py:27
Minor — 5 finding(s)
- Outdated: aiohttp
- Outdated: alembic
- Outdated: dishka
- Outdated: psycopg
- Outdated: sqlalchemy
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-22953cb227bd4acfbc11da8400aae1ee/history.json --exit-code 0 --source . | 1 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-22953cb227bd4acfbc11da8400aae1ee/tree.json --exit-code 0 --source . | 1 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 16 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry) — not scanned yet). | 0 | — |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 11 | 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. semgrep could not parse 2 file(s) — `src/loyalty/adapters/api_client.py`, `src/loyalty/bootstrap/di/providers/data.py` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry) — not scanned yet). | 0 | — |