Executive summary
debasishg/tradeio scores 45 out of 100 and is rated Weak, while five of its seven lenses score higher still: Architecture at 86, Code Health at 74 and Security and Compliance at 66, all rated Adequate, and Domain Modelling at 79 and Performance at 70, both rated Strong.
The score is lower than those five because the weakest lens counts most, and here that is Maturity, which scores 31 and is rated Weak. Its Knowledge Freshness dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to resolve the 1 No ADRs found finding(s) in ADR Quality and to resolve the 2 Documentation finding(s) in Documentation Quality, and if Maturity rose to 70, the score would rise from 45 to about 56.
24 findings are critical: ten in Domain ↔ infrastructure boundary, seven in REDACTED Scanning, four in Secrets (history), two in Static Analysis (SAST) and one in Dependency Vulnerabilities.
Watchdog couldn't measure 9 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 4,670 lines, which would take an estimated 0.1 person-years, around €6,200, to rebuild.
If Maturity rose from 31 to 70, the lowest score rated Strong, the score would rise from 45 to about 56.
New since the last survey: 5 findings
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- REDACTED Scanning · REDACTED
- Supply-chain Provenance & Signing · REDACTED
Fixed since the last survey: 1 finding
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about €6,200 · Estimate
| Cost to rebuild | €2,100 to €10,000, for 35 to 110 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 45. 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,670 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 NewtypeRefinedOps | 2 config.config | 3 config.environments | 4 ext.derevo.Derive | 5 model.account | 6 model.healthcheck | 7 model.market | 8 model.user | 9 auth | 10 config | 11 config.environments.AppEnvironment | 12 ext.derevo | 13 http.auth.users | 14 model.account.AccountType | 15 model.balance | 16 model.healthcheck.Status | 17 model.market.Market | 18 model.order | 19 modules | 20 resources | 21 services.healthcheck | 22 ext.ciris | 23 ext.http4s | 24 model.instrument | 25 model.order.BuySell | 26 optics | 27 model.execution | 28 model.instrument.InstrumentType | 29 model.trade | 30 tradex.domain | 31 Exchange | 32 model | 33 model.trade.TaxFeeId | 34 repository | 35 services.accounting | 36 services.trading | 37 http.routes | 38 http.routes.admin | 39 programs | 40 http.routes.secured |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 NewtypeRefinedOps | ||||||||||||||||||||||||||||||||||||||||
| 2 config.config | ||||||||||||||||||||||||||||||||||||||||
| 3 config.environments | ||||||||||||||||||||||||||||||||||||||||
| 4 ext.derevo.Derive | ||||||||||||||||||||||||||||||||||||||||
| 5 model.account | ||||||||||||||||||||||||||||||||||||||||
| 6 model.healthcheck | ||||||||||||||||||||||||||||||||||||||||
| 7 model.market | ||||||||||||||||||||||||||||||||||||||||
| 8 model.user | ||||||||||||||||||||||||||||||||||||||||
| 9 auth | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 10 config | 2 | |||||||||||||||||||||||||||||||||||||||
| 11 config.environments.AppEnvironment | 2 | |||||||||||||||||||||||||||||||||||||||
| 12 ext.derevo | 1 | |||||||||||||||||||||||||||||||||||||||
| 13 http.auth.users | 5 | |||||||||||||||||||||||||||||||||||||||
| 14 model.account.AccountType | 3 | |||||||||||||||||||||||||||||||||||||||
| 15 model.balance | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 model.healthcheck.Status | 2 | |||||||||||||||||||||||||||||||||||||||
| 17 model.market.Market | 5 | |||||||||||||||||||||||||||||||||||||||
| 18 model.order | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 19 modules | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 resources | 2 | |||||||||||||||||||||||||||||||||||||||
| 21 services.healthcheck | 1 | |||||||||||||||||||||||||||||||||||||||
| 22 ext.ciris | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 ext.http4s | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 model.instrument | 1 | |||||||||||||||||||||||||||||||||||||||
| 25 model.order.BuySell | 2 | |||||||||||||||||||||||||||||||||||||||
| 26 optics | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 model.execution | 1 | 1 | 4 | 1 | ||||||||||||||||||||||||||||||||||||
| 28 model.instrument.InstrumentType | 3 | |||||||||||||||||||||||||||||||||||||||
| 29 model.trade | 2 | 2 | 1 | 4 | 1 | |||||||||||||||||||||||||||||||||||
| 30 tradex.domain | 1 | 1 | 3 | 1 | 2 | 1 | ||||||||||||||||||||||||||||||||||
| 31 Exchange | 1 | 2 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 32 model | 1 | 3 | ||||||||||||||||||||||||||||||||||||||
| 33 model.trade.TaxFeeId | 4 | |||||||||||||||||||||||||||||||||||||||
| 34 repository | 12 | 2 | 9 | 2 | 2 | 8 | 6 | 9 | 3 | 6 | ||||||||||||||||||||||||||||||
| 35 services.accounting | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 36 services.trading | 2 | 1 | 1 | 4 | 3 | 1 | ||||||||||||||||||||||||||||||||||
| 37 http.routes | 1 | 1 | 6 | |||||||||||||||||||||||||||||||||||||
| 38 http.routes.admin | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 39 programs | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 40 http.routes.secured | 1 | 1 | 1 | 1 |
9→2 auth uses config.config✕
- Connections
- 1 pair of types, where a type in auth uses a type in config.config.
- The types involved
tradex.domain.auth.JwtExpire→tradex.domain.config.config.TokenExpiration
- Direction
- auth uses config.config, so a change to config.config can break auth, while a change to auth can't break config.config.
- Position
- Below the diagonal: auth uses a module listed above it, which is the healthy direction.
9→8 auth uses model.user✕
- Connections
- 2 pairs of types, where a type in auth uses a type in model.user.
- The types involved
tradex.domain.auth.Crypto→tradex.domain.model.user.EncryptedPasswordtradex.domain.auth.Crypto→tradex.domain.model.user.Password
- Direction
- auth uses model.user, so a change to model.user can break auth, while a change to auth can't break model.user.
- Position
- Below the diagonal: auth uses a module listed above it, which is the healthy direction.
10→2 config uses config.config✕
- Connections
- 2 pairs of types, where a type in config uses a type in config.config.
- The types involved
tradex.domain.config.load→tradex.domain.config.config.AppConfigtradex.domain.config.load→tradex.domain.config.config.RedisURI
- Direction
- config uses config.config, so a change to config.config can break config, while a change to config can't break config.config.
- Position
- Below the diagonal: config uses a module listed above it, which is the healthy direction.
11→3 config.environments.AppEnvironment uses config.environments✕
- Connections
- 2 pairs of types, where a type in config.environments.AppEnvironment uses a type in config.environments.
- The types involved
tradex.domain.config.environments.AppEnvironment.Prod→tradex.domain.config.environments.AppEnvironmenttradex.domain.config.environments.AppEnvironment.Test→tradex.domain.config.environments.AppEnvironment
- Direction
- config.environments.AppEnvironment uses config.environments, so a change to config.environments can break config.environments.AppEnvironment, while a change to config.environments.AppEnvironment can't break config.environments.
- Position
- Below the diagonal: config.environments.AppEnvironment uses a module listed above it, which is the healthy direction.
12→4 ext.derevo uses ext.derevo.Derive✕
- Connections
- 1 pair of types, where a type in ext.derevo uses a type in ext.derevo.Derive.
- The types involved
tradex.domain.ext.derevo.Derive→tradex.domain.ext.derevo.Derive.OnlyNewtypes
- Direction
- ext.derevo uses ext.derevo.Derive, so a change to ext.derevo.Derive can break ext.derevo, while a change to ext.derevo can't break ext.derevo.Derive.
- Position
- Below the diagonal: ext.derevo uses a module listed above it, which is the healthy direction.
13→8 http.auth.users uses model.user✕
- Connections
- 5 pairs of types, where a type in http.auth.users uses a type in model.user.
- The types involved
tradex.domain.http.auth.users.User→tradex.domain.model.user.UserIdtradex.domain.http.auth.users.User→tradex.domain.model.user.UserNametradex.domain.http.auth.users.UserWithPassword→tradex.domain.model.user.EncryptedPasswordtradex.domain.http.auth.users.UserWithPassword→tradex.domain.model.user.UserIdtradex.domain.http.auth.users.UserWithPassword→tradex.domain.model.user.UserName
- Direction
- http.auth.users uses model.user, so a change to model.user can break http.auth.users, while a change to http.auth.users can't break model.user.
- Position
- Below the diagonal: http.auth.users uses a module listed above it, which is the healthy direction.
14→5 model.account.AccountType uses model.account✕
- Connections
- 3 pairs of types, where a type in model.account.AccountType uses a type in model.account.
- The types involved
tradex.domain.model.account.AccountType.Both→tradex.domain.model.account.AccountTypetradex.domain.model.account.AccountType.Settlement→tradex.domain.model.account.AccountTypetradex.domain.model.account.AccountType.Trading→tradex.domain.model.account.AccountType
- Direction
- model.account.AccountType uses model.account, so a change to model.account can break model.account.AccountType, while a change to model.account.AccountType can't break model.account.
- Position
- Below the diagonal: model.account.AccountType uses a module listed above it, which is the healthy direction.
15→5 model.balance uses model.account✕
- Connections
- 1 pair of types, where a type in model.balance uses a type in model.account.
- The types involved
tradex.domain.model.balance.Balance→tradex.domain.model.account.AccountNo
- Direction
- model.balance uses model.account, so a change to model.account can break model.balance, while a change to model.balance can't break model.account.
- Position
- Below the diagonal: model.balance uses a module listed above it, which is the healthy direction.
16→6 model.healthcheck.Status uses model.healthcheck✕
- Connections
- 2 pairs of types, where a type in model.healthcheck.Status uses a type in model.healthcheck.
- The types involved
tradex.domain.model.healthcheck.Status.Okay→tradex.domain.model.healthcheck.Statustradex.domain.model.healthcheck.Status.Unreachable→tradex.domain.model.healthcheck.Status
- Direction
- model.healthcheck.Status uses model.healthcheck, so a change to model.healthcheck can break model.healthcheck.Status, while a change to model.healthcheck.Status can't break model.healthcheck.
- Position
- Below the diagonal: model.healthcheck.Status uses a module listed above it, which is the healthy direction.
17→7 model.market.Market uses model.market✕
- Connections
- 5 pairs of types, where a type in model.market.Market uses a type in model.market.
- The types involved
tradex.domain.model.market.Market.HongKong→tradex.domain.model.market.Markettradex.domain.model.market.Market.NewYork→tradex.domain.model.market.Markettradex.domain.model.market.Market.Other→tradex.domain.model.market.Markettradex.domain.model.market.Market.Singapore→tradex.domain.model.market.Markettradex.domain.model.market.Market.Tokyo→tradex.domain.model.market.Market
- Direction
- model.market.Market uses model.market, so a change to model.market can break model.market.Market, while a change to model.market.Market can't break model.market.
- Position
- Below the diagonal: model.market.Market uses a module listed above it, which is the healthy direction.
18→5 model.order uses model.account✕
- Connections
- 1 pair of types, where a type in model.order uses a type in model.account.
- The types involved
tradex.domain.model.order.Order→tradex.domain.model.account.AccountNo
- Direction
- model.order uses model.account, so a change to model.account can break model.order, while a change to model.order can't break model.account.
- Position
- Below the diagonal: model.order uses a module listed above it, which is the healthy direction.
18→24 model.order uses model.instrument part of a loop✕
- Connections
- 1 pair of types, where a type in model.order uses a type in model.instrument.
- The types involved
tradex.domain.model.order.LineItem→tradex.domain.model.instrument.ISINCode
- Direction
- model.order uses model.instrument, so a change to model.instrument can break model.order, while a change to model.order can't break model.instrument.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→2 modules uses config.config✕
- Connections
- 1 pair of types, where a type in modules uses a type in config.config.
- The types involved
tradex.domain.modules.Security→tradex.domain.config.config.AppConfig
- Direction
- modules uses config.config, so a change to config.config can break modules, while a change to modules can't break config.config.
- Position
- Below the diagonal: modules uses a module listed above it, which is the healthy direction.
20→2 resources uses config.config✕
- Connections
- 2 pairs of types, where a type in resources uses a type in config.config.
- The types involved
tradex.domain.resources.MkHttpClient→tradex.domain.config.config.HttpClientConfigtradex.domain.resources.MkHttpServer→tradex.domain.config.config.HttpServerConfig
- Direction
- resources uses config.config, so a change to config.config can break resources, while a change to resources can't break config.config.
- Position
- Below the diagonal: resources uses a module listed above it, which is the healthy direction.
21→6 services.healthcheck uses model.healthcheck✕
- Connections
- 1 pair of types, where a type in services.healthcheck uses a type in model.healthcheck.
- The types involved
tradex.domain.services.healthcheck.HealthCheck→tradex.domain.model.healthcheck.AppStatus
- Direction
- services.healthcheck uses model.healthcheck, so a change to model.healthcheck can break services.healthcheck, while a change to services.healthcheck can't break model.healthcheck.
- Position
- Below the diagonal: services.healthcheck uses a module listed above it, which is the healthy direction.
22→12 ext.ciris uses ext.derevo✕
- Connections
- 1 pair of types, where a type in ext.ciris uses a type in ext.derevo.
- The types involved
tradex.domain.ext.ciris.configDecoder→tradex.domain.ext.derevo.Derive
- Direction
- ext.ciris uses ext.derevo, so a change to ext.derevo can break ext.ciris, while a change to ext.ciris can't break ext.derevo.
- Position
- Below the diagonal: ext.ciris uses a module listed above it, which is the healthy direction.
23→12 ext.http4s uses ext.derevo✕
- Connections
- 1 pair of types, where a type in ext.http4s uses a type in ext.derevo.
- The types involved
tradex.domain.ext.http4s.queryParam→tradex.domain.ext.derevo.Derive
- Direction
- ext.http4s uses ext.derevo, so a change to ext.derevo can break ext.http4s, while a change to ext.http4s can't break ext.derevo.
- Position
- Below the diagonal: ext.http4s uses a module listed above it, which is the healthy direction.
24→18 model.instrument uses model.order✕
- Connections
- 1 pair of types, where a type in model.instrument uses a type in model.order.
- The types involved
tradex.domain.model.instrument.Instrument→tradex.domain.model.order.UnitPrice
- Direction
- model.instrument uses model.order, so a change to model.order can break model.instrument, while a change to model.instrument can't break model.order.
- Position
- Below the diagonal: model.instrument uses a module listed above it, which is the healthy direction.
25→18 model.order.BuySell uses model.order✕
- Connections
- 2 pairs of types, where a type in model.order.BuySell uses a type in model.order.
- The types involved
tradex.domain.model.order.BuySell.Buy→tradex.domain.model.order.BuySelltradex.domain.model.order.BuySell.Sell→tradex.domain.model.order.BuySell
- Direction
- model.order.BuySell uses model.order, so a change to model.order can break model.order.BuySell, while a change to model.order.BuySell can't break model.order.
- Position
- Below the diagonal: model.order.BuySell uses a module listed above it, which is the healthy direction.
26→12 optics uses ext.derevo✕
- Connections
- 1 pair of types, where a type in optics uses a type in ext.derevo.
- The types involved
tradex.domain.optics.uuid→tradex.domain.ext.derevo.Derive
- Direction
- optics uses ext.derevo, so a change to ext.derevo can break optics, while a change to optics can't break ext.derevo.
- Position
- Below the diagonal: optics uses a module listed above it, which is the healthy direction.
27→5 model.execution uses model.account✕
- Connections
- 1 pair of types, where a type in model.execution uses a type in model.account.
- The types involved
tradex.domain.model.execution.Execution→tradex.domain.model.account.AccountNo
- Direction
- model.execution uses model.account, so a change to model.account can break model.execution, while a change to model.execution can't break model.account.
- Position
- Below the diagonal: model.execution uses a module listed above it, which is the healthy direction.
27→7 model.execution uses model.market✕
- Connections
- 1 pair of types, where a type in model.execution uses a type in model.market.
- The types involved
tradex.domain.model.execution.Execution→tradex.domain.model.market.Market
- Direction
- model.execution uses model.market, so a change to model.market can break model.execution, while a change to model.execution can't break model.market.
- Position
- Below the diagonal: model.execution uses a module listed above it, which is the healthy direction.
27→18 model.execution uses model.order✕
- Connections
- 4 pairs of types, where a type in model.execution uses a type in model.order.
- The types involved
tradex.domain.model.execution.Execution→tradex.domain.model.order.BuySelltradex.domain.model.execution.Execution→tradex.domain.model.order.OrderNotradex.domain.model.execution.Execution→tradex.domain.model.order.Quantitytradex.domain.model.execution.Execution→tradex.domain.model.order.UnitPrice
- Direction
- model.execution uses model.order, so a change to model.order can break model.execution, while a change to model.execution can't break model.order.
- Position
- Below the diagonal: model.execution uses a module listed above it, which is the healthy direction.
27→24 model.execution uses model.instrument✕
- Connections
- 1 pair of types, where a type in model.execution uses a type in model.instrument.
- The types involved
tradex.domain.model.execution.Execution→tradex.domain.model.instrument.ISINCode
- Direction
- model.execution uses model.instrument, so a change to model.instrument can break model.execution, while a change to model.execution can't break model.instrument.
- Position
- Below the diagonal: model.execution uses a module listed above it, which is the healthy direction.
28→24 model.instrument.InstrumentType uses model.instrument✕
- Connections
- 3 pairs of types, where a type in model.instrument.InstrumentType uses a type in model.instrument.
- The types involved
tradex.domain.model.instrument.InstrumentType.CCY→tradex.domain.model.instrument.InstrumentTypetradex.domain.model.instrument.InstrumentType.Equity→tradex.domain.model.instrument.InstrumentTypetradex.domain.model.instrument.InstrumentType.FixedIncome→tradex.domain.model.instrument.InstrumentType
- Direction
- model.instrument.InstrumentType uses model.instrument, so a change to model.instrument can break model.instrument.InstrumentType, while a change to model.instrument.InstrumentType can't break model.instrument.
- Position
- Below the diagonal: model.instrument.InstrumentType uses a module listed above it, which is the healthy direction.
29→5 model.trade uses model.account✕
- Connections
- 2 pairs of types, where a type in model.trade uses a type in model.account.
- The types involved
tradex.domain.model.trade.GenerateTradeFrontOfficeInput→tradex.domain.model.account.AccountNotradex.domain.model.trade.Trade→tradex.domain.model.account.AccountNo
- Direction
- model.trade uses model.account, so a change to model.account can break model.trade, while a change to model.trade can't break model.account.
- Position
- Below the diagonal: model.trade uses a module listed above it, which is the healthy direction.
29→7 model.trade uses model.market✕
- Connections
- 2 pairs of types, where a type in model.trade uses a type in model.market.
- The types involved
tradex.domain.model.trade.GenerateTradeFrontOfficeInput→tradex.domain.model.market.Markettradex.domain.model.trade.Trade→tradex.domain.model.market.Market
- Direction
- model.trade uses model.market, so a change to model.market can break model.trade, while a change to model.trade can't break model.market.
- Position
- Below the diagonal: model.trade uses a module listed above it, which is the healthy direction.
29→8 model.trade uses model.user✕
- Connections
- 1 pair of types, where a type in model.trade uses a type in model.user.
- The types involved
tradex.domain.model.trade.Trade→tradex.domain.model.user.UserId
- Direction
- model.trade uses model.user, so a change to model.user can break model.trade, while a change to model.trade can't break model.user.
- Position
- Below the diagonal: model.trade uses a module listed above it, which is the healthy direction.
29→18 model.trade uses model.order✕
- Connections
- 4 pairs of types, where a type in model.trade uses a type in model.order.
- The types involved
tradex.domain.model.trade.GenerateTradeFrontOfficeInput→tradex.domain.model.order.FrontOfficeOrdertradex.domain.model.trade.Trade→tradex.domain.model.order.BuySelltradex.domain.model.trade.Trade→tradex.domain.model.order.Quantitytradex.domain.model.trade.Trade→tradex.domain.model.order.UnitPrice
- Direction
- model.trade uses model.order, so a change to model.order can break model.trade, while a change to model.trade can't break model.order.
- Position
- Below the diagonal: model.trade uses a module listed above it, which is the healthy direction.
29→24 model.trade uses model.instrument✕
- Connections
- 1 pair of types, where a type in model.trade uses a type in model.instrument.
- The types involved
tradex.domain.model.trade.Trade→tradex.domain.model.instrument.ISINCode
- Direction
- model.trade uses model.instrument, so a change to model.instrument can break model.trade, while a change to model.trade can't break model.instrument.
- Position
- Below the diagonal: model.trade uses a module listed above it, which is the healthy direction.
30→1 tradex.domain uses NewtypeRefinedOps✕
- Connections
- 1 pair of types, where a type in tradex.domain uses a type in NewtypeRefinedOps.
- The types involved
tradex.domain.NewtypeRefinedOps→tradex.domain.NewtypeRefinedOps.NewtypeRefinedPartiallyApplied
- Direction
- tradex.domain uses NewtypeRefinedOps, so a change to NewtypeRefinedOps can break tradex.domain, while a change to tradex.domain can't break NewtypeRefinedOps.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
30→5 tradex.domain uses model.account✕
- Connections
- 1 pair of types, where a type in tradex.domain uses a type in model.account.
- The types involved
tradex.domain.TradingExchange→tradex.domain.model.account.AccountNo
- Direction
- tradex.domain uses model.account, so a change to model.account can break tradex.domain, while a change to tradex.domain can't break model.account.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
30→18 tradex.domain uses model.order✕
- Connections
- 3 pairs of types, where a type in tradex.domain uses a type in model.order.
- The types involved
tradex.domain.AppData→tradex.domain.model.order.Ordertradex.domain.TradingExchange→tradex.domain.model.order.Ordertradex.domain.TradingExchange→tradex.domain.model.order.OrderNo
- Direction
- tradex.domain uses model.order, so a change to model.order can break tradex.domain, while a change to tradex.domain can't break model.order.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
30→22 tradex.domain uses ext.ciris✕
- Connections
- 1 pair of types, where a type in tradex.domain uses a type in ext.ciris.
- The types involved
tradex.domain.OrphanInstances→tradex.domain.ext.ciris.Decoder
- Direction
- tradex.domain uses ext.ciris, so a change to ext.ciris can break tradex.domain, while a change to tradex.domain can't break ext.ciris.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
30→27 tradex.domain uses model.execution✕
- Connections
- 2 pairs of types, where a type in tradex.domain uses a type in model.execution.
- The types involved
tradex.domain.AppData→tradex.domain.model.execution.Executiontradex.domain.TradingExchange→tradex.domain.model.execution.Execution
- Direction
- tradex.domain uses model.execution, so a change to model.execution can break tradex.domain, while a change to tradex.domain can't break model.execution.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
30→29 tradex.domain uses model.trade✕
- Connections
- 1 pair of types, where a type in tradex.domain uses a type in model.trade.
- The types involved
tradex.domain.TradingExchange→tradex.domain.model.trade.Trade
- Direction
- tradex.domain uses model.trade, so a change to model.trade can break tradex.domain, while a change to tradex.domain can't break model.trade.
- Position
- Below the diagonal: tradex.domain uses a module listed above it, which is the healthy direction.
31→5 Exchange uses model.account✕
- Connections
- 1 pair of types, where a type in Exchange uses a type in model.account.
- The types involved
tradex.domain.Exchange.ApplicationState→tradex.domain.model.account.AccountNo
- Direction
- Exchange uses model.account, so a change to model.account can break Exchange, while a change to Exchange can't break model.account.
- Position
- Below the diagonal: Exchange uses a module listed above it, which is the healthy direction.
31→18 Exchange uses model.order✕
- Connections
- 2 pairs of types, where a type in Exchange uses a type in model.order.
- The types involved
tradex.domain.Exchange.ApplicationState→tradex.domain.model.order.Ordertradex.domain.Exchange.ApplicationState→tradex.domain.model.order.Quantity
- Direction
- Exchange uses model.order, so a change to model.order can break Exchange, while a change to Exchange can't break model.order.
- Position
- Below the diagonal: Exchange uses a module listed above it, which is the healthy direction.
31→24 Exchange uses model.instrument✕
- Connections
- 1 pair of types, where a type in Exchange uses a type in model.instrument.
- The types involved
tradex.domain.Exchange.ApplicationState→tradex.domain.model.instrument.ISINCode
- Direction
- Exchange uses model.instrument, so a change to model.instrument can break Exchange, while a change to Exchange can't break model.instrument.
- Position
- Below the diagonal: Exchange uses a module listed above it, which is the healthy direction.
31→27 Exchange uses model.execution✕
- Connections
- 1 pair of types, where a type in Exchange uses a type in model.execution.
- The types involved
tradex.domain.Exchange.ApplicationState→tradex.domain.model.execution.Execution
- Direction
- Exchange uses model.execution, so a change to model.execution can break Exchange, while a change to Exchange can't break model.execution.
- Position
- Below the diagonal: Exchange uses a module listed above it, which is the healthy direction.
31→29 Exchange uses model.trade✕
- Connections
- 1 pair of types, where a type in Exchange uses a type in model.trade.
- The types involved
tradex.domain.Exchange.ApplicationState→tradex.domain.model.trade.Trade
- Direction
- Exchange uses model.trade, so a change to model.trade can break Exchange, while a change to Exchange can't break model.trade.
- Position
- Below the diagonal: Exchange uses a module listed above it, which is the healthy direction.
32→7 model uses model.market✕
- Connections
- 1 pair of types, where a type in model uses a type in model.market.
- The types involved
tradex.domain.model.trade→tradex.domain.model.market.Market
- Direction
- model uses model.market, so a change to model.market can break model, while a change to model can't break model.market.
- Position
- Below the diagonal: model uses a module listed above it, which is the healthy direction.
32→29 model uses model.trade✕
- Connections
- 3 pairs of types, where a type in model uses a type in model.trade.
- The types involved
tradex.domain.model.trade→tradex.domain.model.trade.TaxFeeIdtradex.domain.model.trade→tradex.domain.model.trade.Tradetradex.domain.model.trade→tradex.domain.model.trade.TradeTaxFee
- Direction
- model uses model.trade, so a change to model.trade can break model, while a change to model can't break model.trade.
- Position
- Below the diagonal: model uses a module listed above it, which is the healthy direction.
33→29 model.trade.TaxFeeId uses model.trade✕
- Connections
- 4 pairs of types, where a type in model.trade.TaxFeeId uses a type in model.trade.
- The types involved
tradex.domain.model.trade.TaxFeeId.Commission→tradex.domain.model.trade.TaxFeeIdtradex.domain.model.trade.TaxFeeId.Surcharge→tradex.domain.model.trade.TaxFeeIdtradex.domain.model.trade.TaxFeeId.TradeTax→tradex.domain.model.trade.TaxFeeIdtradex.domain.model.trade.TaxFeeId.VAT→tradex.domain.model.trade.TaxFeeId
- Direction
- model.trade.TaxFeeId uses model.trade, so a change to model.trade can break model.trade.TaxFeeId, while a change to model.trade.TaxFeeId can't break model.trade.
- Position
- Below the diagonal: model.trade.TaxFeeId uses a module listed above it, which is the healthy direction.
34→5 repository uses model.account✕
- Connections
- 12 pairs of types, where a type in repository uses a type in model.account.
- The types involved
tradex.domain.repository.AccountRepository→tradex.domain.model.account.Accounttradex.domain.repository.AccountRepository→tradex.domain.model.account.AccountNotradex.domain.repository.AccountRepository→tradex.domain.model.account.AccountTypetradex.domain.repository.AccountRepositorySQL→tradex.domain.model.account.Accounttradex.domain.repository.AccountRepositorySQL→tradex.domain.model.account.AccountNotradex.domain.repository.AccountRepositorySQL→tradex.domain.model.account.AccountTypetradex.domain.repository.BalanceRepository→tradex.domain.model.account.AccountNotradex.domain.repository.BalanceRepositorySQL→tradex.domain.model.account.AccountNotradex.domain.repository.DBUtils→tradex.domain.model.account.Accounttradex.domain.repository.TradeRepository→tradex.domain.model.account.AccountNotradex.domain.repository.codecs→tradex.domain.model.account.AccountNametradex.domain.repository.codecs→tradex.domain.model.account.AccountNo
- Direction
- repository uses model.account, so a change to model.account can break repository, while a change to repository can't break model.account.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→7 repository uses model.market✕
- Connections
- 2 pairs of types, where a type in repository uses a type in model.market.
- The types involved
tradex.domain.repository.TradeRepository→tradex.domain.model.market.Markettradex.domain.repository.codecs→tradex.domain.model.market.Market
- Direction
- repository uses model.market, so a change to model.market can break repository, while a change to repository can't break model.market.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→8 repository uses model.user✕
- Connections
- 9 pairs of types, where a type in repository uses a type in model.user.
- The types involved
tradex.domain.repository.Auth→tradex.domain.model.user.Passwordtradex.domain.repository.Auth→tradex.domain.model.user.UserNametradex.domain.repository.UserRepository→tradex.domain.model.user.EncryptedPasswordtradex.domain.repository.UserRepository→tradex.domain.model.user.UserIdtradex.domain.repository.UserRepository→tradex.domain.model.user.UserNametradex.domain.repository.UserRepositorySQL→tradex.domain.model.user.UserNametradex.domain.repository.codecs→tradex.domain.model.user.EncryptedPasswordtradex.domain.repository.codecs→tradex.domain.model.user.UserIdtradex.domain.repository.codecs→tradex.domain.model.user.UserName
- Direction
- repository uses model.user, so a change to model.user can break repository, while a change to repository can't break model.user.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→13 repository uses http.auth.users✕
- Connections
- 2 pairs of types, where a type in repository uses a type in http.auth.users.
- The types involved
tradex.domain.repository.UserRepository→tradex.domain.http.auth.users.Usertradex.domain.repository.UserRepositorySQL→tradex.domain.http.auth.users.User
- Direction
- repository uses http.auth.users, so a change to http.auth.users can break repository, while a change to repository can't break http.auth.users.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→15 repository uses model.balance✕
- Connections
- 2 pairs of types, where a type in repository uses a type in model.balance.
- The types involved
tradex.domain.repository.BalanceRepository→tradex.domain.model.balance.Balancetradex.domain.repository.BalanceRepositorySQL→tradex.domain.model.balance.Balance
- Direction
- repository uses model.balance, so a change to model.balance can break repository, while a change to repository can't break model.balance.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→18 repository uses model.order✕
- Connections
- 8 pairs of types, where a type in repository uses a type in model.order.
- The types involved
tradex.domain.repository.OrderRepository→tradex.domain.model.order.Ordertradex.domain.repository.OrderRepository→tradex.domain.model.order.OrderNotradex.domain.repository.OrderRepositorySQL→tradex.domain.model.order.LineItemtradex.domain.repository.OrderRepositorySQL→tradex.domain.model.order.Ordertradex.domain.repository.OrderRepositorySQL→tradex.domain.model.order.OrderNotradex.domain.repository.codecs→tradex.domain.model.order.OrderNotradex.domain.repository.codecs→tradex.domain.model.order.Quantitytradex.domain.repository.codecs→tradex.domain.model.order.UnitPrice
- Direction
- repository uses model.order, so a change to model.order can break repository, while a change to repository can't break model.order.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→22 repository uses ext.ciris✕
- Connections
- 6 pairs of types, where a type in repository uses a type in ext.ciris.
- The types involved
tradex.domain.repository.AccountRepositorySQL→tradex.domain.ext.ciris.Decodertradex.domain.repository.BalanceRepositorySQL→tradex.domain.ext.ciris.Decodertradex.domain.repository.InstrumentRepositorySQL→tradex.domain.ext.ciris.Decodertradex.domain.repository.OrderRepositorySQL→tradex.domain.ext.ciris.Decodertradex.domain.repository.TradeRepositorySQL→tradex.domain.ext.ciris.Decodertradex.domain.repository.UserRepositorySQL→tradex.domain.ext.ciris.Decoder
- Direction
- repository uses ext.ciris, so a change to ext.ciris can break repository, while a change to repository can't break ext.ciris.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→24 repository uses model.instrument✕
- Connections
- 9 pairs of types, where a type in repository uses a type in model.instrument.
- The types involved
tradex.domain.repository.InstrumentRepository→tradex.domain.model.instrument.ISINCodetradex.domain.repository.InstrumentRepository→tradex.domain.model.instrument.Instrumenttradex.domain.repository.InstrumentRepository→tradex.domain.model.instrument.InstrumentTypetradex.domain.repository.InstrumentRepositorySQL→tradex.domain.model.instrument.ISINCodetradex.domain.repository.InstrumentRepositorySQL→tradex.domain.model.instrument.Instrumenttradex.domain.repository.InstrumentRepositorySQL→tradex.domain.model.instrument.InstrumentTypetradex.domain.repository.codecs→tradex.domain.model.instrument.ISINCodetradex.domain.repository.codecs→tradex.domain.model.instrument.InstrumentNametradex.domain.repository.codecs→tradex.domain.model.instrument.LotSize
- Direction
- repository uses model.instrument, so a change to model.instrument can break repository, while a change to repository can't break model.instrument.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→27 repository uses model.execution✕
- Connections
- 3 pairs of types, where a type in repository uses a type in model.execution.
- The types involved
tradex.domain.repository.ExecutionRepository→tradex.domain.model.execution.Executiontradex.domain.repository.ExecutionRepositorySQL→tradex.domain.model.execution.Executiontradex.domain.repository.codecs→tradex.domain.model.execution.ExecutionReferenceNo
- Direction
- repository uses model.execution, so a change to model.execution can break repository, while a change to repository can't break model.execution.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
34→29 repository uses model.trade✕
- Connections
- 6 pairs of types, where a type in repository uses a type in model.trade.
- The types involved
tradex.domain.repository.TradeRepository→tradex.domain.model.trade.Tradetradex.domain.repository.TradeRepositorySQL→tradex.domain.model.trade.Tradetradex.domain.repository.TradeRepositorySQL→tradex.domain.model.trade.TradeReferenceNotradex.domain.repository.TradeRepositorySQL→tradex.domain.model.trade.TradeTaxFeetradex.domain.repository.codecs→tradex.domain.model.trade.TaxFeeIdtradex.domain.repository.codecs→tradex.domain.model.trade.TradeReferenceNo
- Direction
- repository uses model.trade, so a change to model.trade can break repository, while a change to repository can't break model.trade.
- Position
- Below the diagonal: repository uses a module listed above it, which is the healthy direction.
35→5 services.accounting uses model.account✕
- Connections
- 1 pair of types, where a type in services.accounting uses a type in model.account.
- The types involved
tradex.domain.services.accounting.Accounting→tradex.domain.model.account.AccountNo
- Direction
- services.accounting uses model.account, so a change to model.account can break services.accounting, while a change to services.accounting can't break model.account.
- Position
- Below the diagonal: services.accounting uses a module listed above it, which is the healthy direction.
35→15 services.accounting uses model.balance✕
- Connections
- 1 pair of types, where a type in services.accounting uses a type in model.balance.
- The types involved
tradex.domain.services.accounting.Accounting→tradex.domain.model.balance.Balance
- Direction
- services.accounting uses model.balance, so a change to model.balance can break services.accounting, while a change to services.accounting can't break model.balance.
- Position
- Below the diagonal: services.accounting uses a module listed above it, which is the healthy direction.
35→29 services.accounting uses model.trade✕
- Connections
- 1 pair of types, where a type in services.accounting uses a type in model.trade.
- The types involved
tradex.domain.services.accounting.Accounting→tradex.domain.model.trade.Trade
- Direction
- services.accounting uses model.trade, so a change to model.trade can break services.accounting, while a change to services.accounting can't break model.trade.
- Position
- Below the diagonal: services.accounting uses a module listed above it, which is the healthy direction.
36→5 services.trading uses model.account✕
- Connections
- 2 pairs of types, where a type in services.trading uses a type in model.account.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.account.Accounttradex.domain.services.trading.Trading→tradex.domain.model.account.AccountNo
- Direction
- services.trading uses model.account, so a change to model.account can break services.trading, while a change to services.trading can't break model.account.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
36→7 services.trading uses model.market✕
- Connections
- 1 pair of types, where a type in services.trading uses a type in model.market.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.market.Market
- Direction
- services.trading uses model.market, so a change to model.market can break services.trading, while a change to services.trading can't break model.market.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
36→8 services.trading uses model.user✕
- Connections
- 1 pair of types, where a type in services.trading uses a type in model.user.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.user.UserId
- Direction
- services.trading uses model.user, so a change to model.user can break services.trading, while a change to services.trading can't break model.user.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
36→18 services.trading uses model.order✕
- Connections
- 4 pairs of types, where a type in services.trading uses a type in model.order.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.order.FrontOfficeOrdertradex.domain.services.trading.Trading→tradex.domain.model.order.Ordertradex.domain.services.trading.ordering→tradex.domain.model.order.FrontOfficeOrdertradex.domain.services.trading.ordering→tradex.domain.model.order.Order
- Direction
- services.trading uses model.order, so a change to model.order can break services.trading, while a change to services.trading can't break model.order.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
36→27 services.trading uses model.execution✕
- Connections
- 3 pairs of types, where a type in services.trading uses a type in model.execution.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.execution.Executiontradex.domain.services.trading.executing→tradex.domain.model.execution.ExchangeExecutiontradex.domain.services.trading.executing→tradex.domain.model.execution.Execution
- Direction
- services.trading uses model.execution, so a change to model.execution can break services.trading, while a change to services.trading can't break model.execution.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
36→29 services.trading uses model.trade✕
- Connections
- 1 pair of types, where a type in services.trading uses a type in model.trade.
- The types involved
tradex.domain.services.trading.Trading→tradex.domain.model.trade.Trade
- Direction
- services.trading uses model.trade, so a change to model.trade can break services.trading, while a change to services.trading can't break model.trade.
- Position
- Below the diagonal: services.trading uses a module listed above it, which is the healthy direction.
37→13 http.routes uses http.auth.users✕
- Connections
- 1 pair of types, where a type in http.routes uses a type in http.auth.users.
- The types involved
tradex.domain.http.routes.LogoutRoutes→tradex.domain.http.auth.users.CommonUser
- Direction
- http.routes uses http.auth.users, so a change to http.auth.users can break http.routes, while a change to http.routes can't break http.auth.users.
- Position
- Below the diagonal: http.routes uses a module listed above it, which is the healthy direction.
37→21 http.routes uses services.healthcheck✕
- Connections
- 1 pair of types, where a type in http.routes uses a type in services.healthcheck.
- The types involved
tradex.domain.http.routes.HealthRoutes→tradex.domain.services.healthcheck.HealthCheck
- Direction
- http.routes uses services.healthcheck, so a change to services.healthcheck can break http.routes, while a change to http.routes can't break services.healthcheck.
- Position
- Below the diagonal: http.routes uses a module listed above it, which is the healthy direction.
37→34 http.routes uses repository✕
- Connections
- 6 pairs of types, where a type in http.routes uses a type in repository.
- The types involved
tradex.domain.http.routes.AccountRoutes→tradex.domain.repository.AccountRepositorytradex.domain.http.routes.BalanceRoutes→tradex.domain.repository.BalanceRepositorytradex.domain.http.routes.LoginRoutes→tradex.domain.repository.Authtradex.domain.http.routes.LogoutRoutes→tradex.domain.repository.Authtradex.domain.http.routes.TradeRoutes→tradex.domain.repository.TradeRepositorytradex.domain.http.routes.UserRoutes→tradex.domain.repository.Auth
- Direction
- http.routes uses repository, so a change to repository can break http.routes, while a change to http.routes can't break repository.
- Position
- Below the diagonal: http.routes uses a module listed above it, which is the healthy direction.
38→13 http.routes.admin uses http.auth.users✕
- Connections
- 2 pairs of types, where a type in http.routes.admin uses a type in http.auth.users.
- The types involved
tradex.domain.http.routes.admin.AdminAccountRoutes→tradex.domain.http.auth.users.AdminUsertradex.domain.http.routes.admin.AdminInstrumentRoutes→tradex.domain.http.auth.users.AdminUser
- Direction
- http.routes.admin uses http.auth.users, so a change to http.auth.users can break http.routes.admin, while a change to http.routes.admin can't break http.auth.users.
- Position
- Below the diagonal: http.routes.admin uses a module listed above it, which is the healthy direction.
38→34 http.routes.admin uses repository✕
- Connections
- 2 pairs of types, where a type in http.routes.admin uses a type in repository.
- The types involved
tradex.domain.http.routes.admin.AdminAccountRoutes→tradex.domain.repository.AccountRepositorytradex.domain.http.routes.admin.AdminInstrumentRoutes→tradex.domain.repository.InstrumentRepository
- Direction
- http.routes.admin uses repository, so a change to repository can break http.routes.admin, while a change to http.routes.admin can't break repository.
- Position
- Below the diagonal: http.routes.admin uses a module listed above it, which is the healthy direction.
39→8 programs uses model.user✕
- Connections
- 1 pair of types, where a type in programs uses a type in model.user.
- The types involved
tradex.domain.programs.GenerateTrade→tradex.domain.model.user.UserId
- Direction
- programs uses model.user, so a change to model.user can break programs, while a change to programs can't break model.user.
- Position
- Below the diagonal: programs uses a module listed above it, which is the healthy direction.
39→14 programs uses model.account.AccountType✕
- Connections
- 1 pair of types, where a type in programs uses a type in model.account.AccountType.
- The types involved
tradex.domain.programs.GenerateTrade→tradex.domain.model.account.AccountType.Trading
- Direction
- programs uses model.account.AccountType, so a change to model.account.AccountType can break programs, while a change to programs can't break model.account.AccountType.
- Position
- Below the diagonal: programs uses a module listed above it, which is the healthy direction.
39→18 programs uses model.order✕
- Connections
- 1 pair of types, where a type in programs uses a type in model.order.
- The types involved
tradex.domain.programs.orderGenerator→tradex.domain.model.order.FrontOfficeOrder
- Direction
- programs uses model.order, so a change to model.order can break programs, while a change to programs can't break model.order.
- Position
- Below the diagonal: programs uses a module listed above it, which is the healthy direction.
39→29 programs uses model.trade✕
- Connections
- 1 pair of types, where a type in programs uses a type in model.trade.
- The types involved
tradex.domain.programs.GenerateTrade→tradex.domain.model.trade.GenerateTradeFrontOfficeInput
- Direction
- programs uses model.trade, so a change to model.trade can break programs, while a change to programs can't break model.trade.
- Position
- Below the diagonal: programs uses a module listed above it, which is the healthy direction.
39→35 programs uses services.accounting✕
- Connections
- 1 pair of types, where a type in programs uses a type in services.accounting.
- The types involved
tradex.domain.programs.GenerateTrade→tradex.domain.services.accounting.Accounting
- Direction
- programs uses services.accounting, so a change to services.accounting can break programs, while a change to programs can't break services.accounting.
- Position
- Below the diagonal: programs uses a module listed above it, which is the healthy direction.
40→13 http.routes.secured uses http.auth.users✕
- Connections
- 1 pair of types, where a type in http.routes.secured uses a type in http.auth.users.
- The types involved
tradex.domain.http.routes.secured.GenerateTradeRoutes→tradex.domain.http.auth.users.CommonUser
- Direction
- http.routes.secured uses http.auth.users, so a change to http.auth.users can break http.routes.secured, while a change to http.routes.secured can't break http.auth.users.
- Position
- Below the diagonal: http.routes.secured uses a module listed above it, which is the healthy direction.
40→14 http.routes.secured uses model.account.AccountType✕
- Connections
- 1 pair of types, where a type in http.routes.secured uses a type in model.account.AccountType.
- The types involved
tradex.domain.http.routes.secured.GenerateTradeRoutes→tradex.domain.model.account.AccountType.Trading
- Direction
- http.routes.secured uses model.account.AccountType, so a change to model.account.AccountType can break http.routes.secured, while a change to http.routes.secured can't break model.account.AccountType.
- Position
- Below the diagonal: http.routes.secured uses a module listed above it, which is the healthy direction.
40→35 http.routes.secured uses services.accounting✕
- Connections
- 1 pair of types, where a type in http.routes.secured uses a type in services.accounting.
- The types involved
tradex.domain.http.routes.secured.GenerateTradeRoutes→tradex.domain.services.accounting.Accounting
- Direction
- http.routes.secured uses services.accounting, so a change to services.accounting can break http.routes.secured, while a change to http.routes.secured can't break services.accounting.
- Position
- Below the diagonal: http.routes.secured uses a module listed above it, which is the healthy direction.
40→39 http.routes.secured uses programs✕
- Connections
- 1 pair of types, where a type in http.routes.secured uses a type in programs.
- The types involved
tradex.domain.http.routes.secured.GenerateTradeRoutes→tradex.domain.programs.GenerateTrade
- Direction
- http.routes.secured uses programs, so a change to programs can break http.routes.secured, while a change to http.routes.secured can't break programs.
- Position
- Below the diagonal: http.routes.secured uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A07:2025 — Authentication Failures | 12 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 7 | High / Critical |
| A05:2025 — Injection | 3 | High / Critical |
Roadmap
Immediately address security risks by removing seven leaked secrets from files such as REDACTED and REDACTED, and resolve eighteen orphaned code files in the knowledge base, beginning with TradingExchange.scala. Strengthen project governance by creating an Architectural Decision Record for the first time and updating the README to improve documentation quality. Finally, establish a dedicated folder to systematically record all significant design decisions with their dates, contexts, and consequences.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +10.4 pts | Low | ADR Quality |
| Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). | +8.7 pts | Low | Documentation Quality |
| Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (5), REDACTED (2). | +7.8 pts | Low | REDACTED Scanning |
| Resolve the 18 Orphaned file finding(s) in Knowledge Freshness — start with TradingExchange.scala, AccountRepository.scala, trading.scala. | +11.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. | +8.5 pts | Medium | Architecture documentation |
| Expand the README with getting-started, architecture overview and a project map. | +6.6 pts | Medium | Documentation (README) |
| Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally. | +3.6 pts | Medium | Security & performance tooling |
| Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. | +1.2 pts | Low | Knowledge Freshness |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 3.0 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 5.1 | Mixed | Dependency Vulnerabilities: High CVE: REDACTED |
| modules/core/src/main/scala/tradex/domain/TradingExchange.scala | 7.4 | Mixed | Cyclomatic Complexity: Exchange.create (cyclomatic 40) |
| modules/core/src/main/scala/tradex/domain/services/trading/trading.scala | 7.8 | Mixed | Cognitive Complexity: Trading.make (cognitive 18) |
| modules/core/src/main/scala/tradex/domain/modules/Security.scala | 8.5 | Near-clean | Cognitive Complexity: Security.make (cognitive 21) |
| modules/core/src/main/scala/tradex/domain/repository/Auth.scala | 8.5 | Near-clean | Cognitive Complexity: Auth.make (cognitive 18) |
| README.md | 9.3 | Near-clean | Documentation Quality: Documentation: no installation or build instructions |
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. 58 of 62 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.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 62 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, 57 of 74 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- 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 (.scala) 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 (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) 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 (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) 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 (.scala) and this repository declares an sbt build (repository root, 7 test files), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D12 Dependency Hygiene — 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 repository's dependency manifests WERE read and their pinning discipline assessed; what went unanswered is the currency half, because repo1.maven.org — the registry that answers it — was asked and did not reply (HTTP 429 Too Many Requests from https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/maven-metadata.xml). This is OUR side and it is an ENVIRONMENT fault, not a missing collector: the collector exists and ran. An HTTP 403 here is what this scan's egress allowlist returns for a host that is not on it, so the remedy is to add repo1.maven.org to the allowlist and re-run — not to build anything.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. All 18 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness). Counted over 18 of the 69 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (build.sbt), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
- 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.
- AX2 Stateful singletons — 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 singletons in C#, Spring/JSR-330/CDI singletons in Java and Kotlin, module state in Python request handlers, handler state in Go and Swift, Play controllers, Cask routes, Scalatra servlets, Finatra controllers, Akka/Pekko HTTP routes and JSR-330 singletons in Scala, Rails, Sinatra, Grape, Roda and Hanami handlers and Rack apps in Ruby, and module state in F# request handlers (Giraffe, Saturn, Falco, Oxpecker and Suave handlers and ASP.NET Core controllers) only, and this repository's product is written in Scala (http4s), which was left unread, 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.
- 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.
- C2 Access Controls — 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 authorization 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 authorization controls.
- DM9 Scattered domain decisions — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Arm one resolves each comparison operand to the domain member it judges, and that binding exists only in a Roslyn compilation, which this run did not load. Arm two ran over the neutral model because this repository's frontend declares whether each construction is produced or passed. A rule decided in two places would not appear above.
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.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- 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.
- 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").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- 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
1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was Exchange.create at 40.
What to do
- Bring the 1 body over 15 down to 15 or less in Cyclomatic Complexity — start with Exchange.create (cyclomatic 40). — Refactoring it lifts Cyclomatic Complexity from 8.9 to about 10.0/10.
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
4 method(s) exceeded the cognitive complexity threshold of 15; the worst was Exchange.create at 56.
What to do
- Bring the 1 body over 30 down to 30 or less in Cognitive Complexity — start with Exchange.create (cognitive 56). — Refactoring it lifts Cognitive Complexity from 7.8 to about 8.7/10.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
0 god class(es) detected.
D4 · Code Duplication
2 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (16 lines × 2) finding(s) in Code Duplication — start with trading.scala. — 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 TradingExchange.scala. — 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.
D5 · Coupling
3 production modules (sbt), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; a dependsOn spread (deps: _*) and a project whose directory a helper computes are not visible there; 1 module(s) off the main sequence, with abstractness counted on 1 of the 3 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D9 · Test Distribution
26 test methods: 18 unit, 8 integration, 0 BDD, 0 e2e. The Scala suite contributes 26 test case(s) across 8 file(s) in a test source set declaring at least one — every `test("…")`, `it("…")`, `property("…")` and `"…" in {…}` registration and every JUnit `@Test`, which is how munit, ScalaTest, utest, ZIO Test and specs2 declare a case; a case registered under a computed name is not counted, so this is a floor. Its tier split is INFERRED from paths and file names, except sbt's src/it source set, which the build declares.
D13 · REDACTED Scanning
4 secret(s) detected.
What to do
- Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (5), REDACTED (2). — One of this dimension's main actionable groups (7 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.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 4670 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 single README is a one-line description of tradeio (the project name) with no installation, build, or usage guidance. It links to an external book but does not explain how to run the codebase locally.
What to do
- Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). — One of this dimension's main actionable groups (2 recommendation-level).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
1 of 1 build units (sbt) 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)
4 finding(s): 0 critical, 4 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 4 REDACTED finding(s) in Secrets (history) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 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)
3 finding(s): 0 critical, 2 high, 1 medium, 0 low. 2 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
- No action in Static Analysis (SAST) — all 2 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 (2 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
2 finding(s): 0 critical, 1 high, 1 medium, 0 low.
What to do
- Resolve the 1 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-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 modules/core/src/main/scala/tradex/domain/TradingExchange.scala. Counted over 18 of the 69 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 TradingExchange.scala, AccountRepository.scala, trading.scala. — 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
No strong hidden change-coupling between production files.
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).
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX6 · Interface segregation
DM12 · Ambient inputs in the domain
DM6 · Domain ↔ infrastructure boundary
- `Account` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/account.scala:59
- `Balance` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/balance.scala:14
- `Execution` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/execution.scala:28
- `Instrument` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/instrument.scala:68
- `LineItem` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/order.scala:53
- `Order` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/order.scala:62
- `FrontOfficeOrder` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/order.scala:70
- `Trade` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/trade.scala:98
- `TradeTaxFee` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/trade.scala:114
- `User` (domain) — a transport codec (circe/derevo/spray/…) is derived directly on the domain entity — the type knows its own wire representation. Invert the dependency: keep the domain core free of framework/transport types (derive codecs on a boundary DTO; express infra behind a domain-owned port). — modules/core/src/main/scala/tradex/domain/model/user.scala:52
What to do
- Invert domain→infrastructure dependencies: declare interfaces in the domain, implement them in infrastructure (Dependency Inversion).
DM8 · Value-object opportunities
DM9 · Scattered domain decisions
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
M1 · Documentation (README)
- The root README is 24 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers.
What to do
- Expand the README with getting-started, architecture overview and a project map.
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
- README claims purely functional domain models but no Pure/Functional module exists — searched for: `Pure`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong. — README.md:1
What to do
- Reconcile the README with reality: README claims purely functional domain models but no Pure/Functional module exists.
P1 · CI/CD gates
P3 · Security & performance tooling
What to do
- Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
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.
PF3 · Async & latency hygiene
- `run` is async and calls unsafeRunSync — a blocking call inside async code stalls the execution-context thread, and every future or fiber scheduled on it for as long as it runs. (×2) — modules/core/src/main/scala/tradex/domain/Main.scala:18, modules/core/src/main/scala/tradex/domain/TradingExchange.scala:25
What to do
- Scala: compose the Future or effect (map/flatMap, a for-comprehension) instead of Await.result or unsafeRunSync, and wrap unavoidable blocking calls in blocking { } (Future), IO.blocking or ZIO.attemptBlocking.
S1 · Web-Security Posture
- This repository runs an HTTP server and nothing in its Scala source or committed configuration secures the transport: no HTTPS served (akka/pekko-http `ConnectionContext.httpsServer`/`enableHttps`, an http4s builder's `withTLS`, Jetty's `SslContextFactory`, zio-http's `SSLConfig`, Play's `https.port`), no `Strict-Transport-Security` header, HSTS middleware or Play `RedirectHttpsFilter`, no `X-Forwarded-Proto` read or Play `play.http.forwarded.trustedProxies` for a TLS-terminating proxy — so its traffic may cross the network in clear text. (−2.0 on this card.) The server: modules/core/src/main/scala/tradex/domain/resources/MkHttpServer.scala:8 — `EmberServerBuilder`.
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is set on a response this repository's Scala server sends — defense in depth, even when a proxy could set them. (−2.0 on this card.) The server: modules/core/src/main/scala/tradex/domain/resources/MkHttpServer.scala:8 — `EmberServerBuilder`.
What to do
- Secure the server's transport: serve TLS itself (akka/pekko-http `ConnectionContext.httpsServer(sslContext)` with `newServerAt(…).enableHttps(…)`, an http4s server builder's `withTLS(…)`, Play's `https.port`), or run it behind a TLS-terminating proxy and trust it (`X-Forwarded-Proto`; Play `play.http.forwarded.trustedProxies`); send `Strict-Transport-Security` once it is HTTPS-only (http4s `HSTS(…)`, Play `RedirectHttpsFilter`).
- Set security response headers on what the server sends — keep Play's `SecurityHeadersFilter` enabled, wrap akka/pekko-http routes in `respondWithHeaders(RawHeader("X-Content-Type-Options", "nosniff"), …)`, or add an http4s middleware that sets `Content-Security-Policy`, `X-Content-Type-Options` and a frame policy on every response.
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
X20 · Mistyped argument guard
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
X5 · Nullable reference types
- No build over this repository's 65 Scala product file(s) passes `-Yexplicit-nulls`, enables WartRemover's `Null` wart or runs Scalafix's `DisableSyntax.noNulls`, so every reference type admits null and nothing reports a `null` written into the code or returned from a Java API — the first one to reach a method call is a `NullPointerException`. `Option` by convention is a habit no tool here holds the code to.
What to do
- On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`. Then pay the assertions down rather than adding to them: each `.nn` is a null the compiler could not rule out — wrap the Java value in `Option(…)` at the boundary, pattern-match on `null` once there, or change the API so the null cannot arrive; an `unsafeNulls` import switches the checking off for everything after it.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 74% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 86% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 31% | Weak — gated by D34, M1, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 41% | Weak — gated by D13, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 66% | Adequate — gated by D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 79% | Strong | Strongest area. |
| Performance | 70% | Strong | Solid. |
Unscored — 1 check(s) recorded observations but carry no score
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced — 5 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 Slick table, a case class or a SQL migration's table named for it — Hibernate Envers' @Audited, a JPA entity listener, Hibernate event listener or jOOQ RecordListener that records each change, or an event-sourced journal 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.
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 61 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — Not applicable: this repository's Scala imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — not 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
- 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
- AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
- 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 — Not assessed: these authorization 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 authorization 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.
- D10 Test Quality — ~1467 lines of test source are present (.scala) 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 .scala suite was found but not re-run
- D12 Dependency Hygiene — Dependency currency not established — repo1.maven.org did not answer
- D14 License Compliance — Not scored — this repository's 35 pinned sbt dependency coordinate(s) were read from its 3 sbt build file(s), but Maven Central could not be asked for the licence of 35 of them (HTTP 429 Too Many Requests from https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.pom), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
- D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- 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 (.scala), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- 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.
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) was not measured: of the 89 type(s) found, none both holds instance state and has two or more methods whose shared use of it could be read (68 with fewer than two methods, 21 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 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
- DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
- DM11 Constructible invalid state — no entities detected — construction-time invariants not assessable
- DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
- DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- P2 Observability — This repository's JVM source (1 module(s), 67 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) 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 `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, 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: allocation awareness is rated where code engineers for it — at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Scala code has 5,398 production line(s), 0 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X2 Cancellation propagation — no C# was loaded; this repository's Scala was read, and no request in it can be cancelled by a caller — a Scala request takes no token: a Future cannot be cancelled, and cats-effect, ZIO and Monix interrupt the fiber that made the request from outside the call, not through a parameter
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Scala was read, and it logs through none that an interpolated message defeats: scala-logging takes an `s"…"` message apart into SLF4J's pattern and arguments at compile time, and log4s, grizzled-slf4j, Play's Logger, Akka's LoggingAdapter, sbt's Logger and Spark's Logging take one finished message (as log4net does in C#). Calls made straight through SLF4J (`org.slf4j.Logger`) would be judged.
- 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 — 24 finding(s)
- Domain depends on infrastructure: Account modules/core/src/main/scala/tradex/domain/model/account.scala:59
- Domain depends on infrastructure: Balance modules/core/src/main/scala/tradex/domain/model/balance.scala:14
- Domain depends on infrastructure: Execution modules/core/src/main/scala/tradex/domain/model/execution.scala:28
- Domain depends on infrastructure: Instrument modules/core/src/main/scala/tradex/domain/model/instrument.scala:68
- Domain depends on infrastructure: LineItem modules/core/src/main/scala/tradex/domain/model/order.scala:53
- Domain depends on infrastructure: Order modules/core/src/main/scala/tradex/domain/model/order.scala:62
- Domain depends on infrastructure: FrontOfficeOrder modules/core/src/main/scala/tradex/domain/model/order.scala:70
- Domain depends on infrastructure: Trade modules/core/src/main/scala/tradex/domain/model/trade.scala:98
- Domain depends on infrastructure: TradeTaxFee modules/core/src/main/scala/tradex/domain/model/trade.scala:114
- Domain depends on infrastructure: User modules/core/src/main/scala/tradex/domain/model/user.scala:52
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 15 finding(s)
- Sync-over-async blocking modules/core/src/main/scala/tradex/domain/Main.scala:18
- Sync-over-async blocking modules/core/src/main/scala/tradex/domain/TradingExchange.scala:25
- Exchange.create (cyclomatic 40) modules/core/src/main/scala/tradex/domain/TradingExchange.scala:116
- Exchange.create (cognitive 56) modules/core/src/main/scala/tradex/domain/TradingExchange.scala:116
- Security.make (cognitive 21) modules/core/src/main/scala/tradex/domain/modules/Security.scala:21
- Auth.make (cognitive 18) modules/core/src/main/scala/tradex/domain/repository/Auth.scala:57
- Trading.make (cognitive 18) modules/core/src/main/scala/tradex/domain/services/trading/trading.scala:107
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (16 lines × 2) modules/core/src/main/scala/tradex/domain/services/trading/trading.scala:136
- Duplicated block (13 lines × 2) modules/core/src/main/scala/tradex/domain/TradingExchange.scala:364
- Off the main sequence: core
- Test suite runs only after the merge
Minor — 35 finding(s)
- Orphaned file modules/core/src/main/scala/tradex/domain/TradingExchange.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/AccountRepository.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/services/trading/trading.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/TradeRepository.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/instrument.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/account.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/OrderRepository.scala:1
- Orphaned file REDACTED:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/trade.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/order.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/execution.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/InstrumentRepository.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/Auth.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/model/user.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/modules/HttpApi.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/BalanceRepository.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/data.scala:1
- Orphaned file modules/core/src/main/scala/tradex/domain/repository/codecs.scala:1
- Documentation: no installation or build instructions README.md
- Documentation: no usage examples README.md
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- Orphaned files with no living knowledge
- REDACTED
- REDACTED
- REDACTED
- Thin README
- No ADRs
- No architecture diagram/doc
- README/code drift README.md:1
- No changelog
- No app-layer HTTPS enforcement detected
- No security response headers detected
- Scala's null is not held to the type system everywhere
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-c8792e03380742cabe87469908fd107f/history.json --exit-code 0 --source . | 5 | 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-c8792e03380742cabe87469908fd107f/tree.json --exit-code 0 --source . | 5 | 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 . | 3 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-624d687692c84f01a3b980b72e216670 | 2 | artifacts/raw/osv-scanner.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| 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 | osv-scanner | — | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-624d687692c84f01a3b980b72e216670 | 0 | artifacts/raw/osv-scanner.json |