Executive summary
4lessandrodev/rich-domain scores 65 out of 100 and is rated Adequate, while five of its six lenses score higher still: Performance at 100, rated Exemplary, Architecture and Code Health at 89, both rated Strong, and Production Readiness at 74 and Security and Compliance at 66, both rated Adequate.
The score is lower than those five because the weakest lens counts most, and here that is Maturity, which scores 54 and is rated Adequate. Its Architecture documentation 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 Documentation finding(s) in Documentation Quality and to record your significant design decisions, and if Maturity rose to 70, the score would rise from 65 to about 72.
17 findings are critical: 12 in Dependency Vulnerabilities, three in Static Analysis (SAST), one in Circular Imports and one in Test Quality.
Watchdog couldn't measure 6 dimensions in this code, among them License Compliance, Internal API Consistency and Platform End-of-Life, so they are left out of the score. The product code is 4,102 lines, which would take an estimated 0.1 person-years, around €13,000, to rebuild.
If Maturity rose from 54 to 70, the lowest score rated Strong, the score would rise from 65 to about 72.
New since the last survey: 4 findings
- Static Analysis (SAST) · REDACTED
- Static Analysis (SAST) · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Large Files · lib/types.ts: 555 lines of code lib/types.ts
Fixed since the last survey: 1 finding
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about €13,000 · Estimate
| Cost to rebuild | €4,200 to €21,000, for 70 to 224 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.9 at a score of 65. 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,102 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 lib.types-util | 2 lib.utils.validator | 3 lib.types | 4 lib.utils.util | 5 lib.core.auto-mapper | 6 lib.core.base-getters-and-setters | 7 lib.core.browser-event-manager | 8 lib.core.context | 9 lib.core.events | 10 lib.core.id | 11 lib.core.iterator | 12 lib.core.result | 13 lib.core.server-event-manager | 14 lib.utils | 15 lib.core.value-object | 16 example | 17 lib.core | 18 lib.core.entity-getters-and-setters | 19 lib.core.entity | 20 lib.core.aggregate |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 lib.types-util | ||||||||||||||||||||
| 2 lib.utils.validator | ||||||||||||||||||||
| 3 lib.types | 5 | |||||||||||||||||||
| 4 lib.utils.util | 1 | |||||||||||||||||||
| 5 lib.core.auto-mapper | 1 | 3 | 1 | |||||||||||||||||
| 6 lib.core.base-getters-and-setters | 1 | 4 | 1 | 1 | ||||||||||||||||
| 7 lib.core.browser-event-manager | 1 | |||||||||||||||||||
| 8 lib.core.context | 1 | |||||||||||||||||||
| 9 lib.core.events | 3 | |||||||||||||||||||
| 10 lib.core.id | 1 | |||||||||||||||||||
| 11 lib.core.iterator | 2 | |||||||||||||||||||
| 12 lib.core.result | 5 | |||||||||||||||||||
| 13 lib.core.server-event-manager | 1 | |||||||||||||||||||
| 14 lib.utils | 2 | |||||||||||||||||||
| 15 lib.core.value-object | 3 | 1 | 1 | 1 | 1 | |||||||||||||||
| 16 example | 1 | 1 | ||||||||||||||||||
| 17 lib.core | 5 | 1 | ||||||||||||||||||
| 18 lib.core.entity-getters-and-setters | 1 | 4 | 1 | 1 | ||||||||||||||||
| 19 lib.core.entity | 3 | 1 | 1 | 1 | 1 | |||||||||||||||
| 20 lib.core.aggregate | 8 | 1 | 1 | 1 |
3→16 lib.types uses example part of a loop✕
- Connections
- 5 pairs of types, where a type in lib.types uses a type in example.
- The types involved
lib.types._Aggregate→example.Propslib.types._AutoMapper→example.Propslib.types._BaseGettersAndSetters→example.Propslib.types._Entity→example.Propslib.types._ValueObject→example.Props
- Direction
- lib.types uses example, so a change to example can break lib.types, while a change to lib.types can't break example.
- 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.
4→2 lib.utils.util uses lib.utils.validator✕
- Connections
- 1 pair of types, where a type in lib.utils.util uses a type in lib.utils.validator.
- The types involved
lib.utils.util.Utils→lib.utils.validator.Validator
- Direction
- lib.utils.util uses lib.utils.validator, so a change to lib.utils.validator can break lib.utils.util, while a change to lib.utils.util can't break lib.utils.validator.
- Position
- Below the diagonal: lib.utils.util uses a module listed above it, which is the healthy direction.
5→2 lib.core.auto-mapper uses lib.utils.validator✕
- Connections
- 1 pair of types, where a type in lib.core.auto-mapper uses a type in lib.utils.validator.
- The types involved
lib.core.auto-mapper.AutoMapper→lib.utils.validator.Validator
- Direction
- lib.core.auto-mapper uses lib.utils.validator, so a change to lib.utils.validator can break lib.core.auto-mapper, while a change to lib.core.auto-mapper can't break lib.utils.validator.
- Position
- Below the diagonal: lib.core.auto-mapper uses a module listed above it, which is the healthy direction.
5→3 lib.core.auto-mapper uses lib.types✕
- Connections
- 3 pairs of types, where a type in lib.core.auto-mapper uses a type in lib.types.
- The types involved
lib.core.auto-mapper.AutoMapper→lib.types._AutoMapperlib.core.auto-mapper.AutoMapper→lib.types._Entitylib.core.auto-mapper.AutoMapper→lib.types._ValueObject
- Direction
- lib.core.auto-mapper uses lib.types, so a change to lib.types can break lib.core.auto-mapper, while a change to lib.core.auto-mapper can't break lib.types.
- Position
- Below the diagonal: lib.core.auto-mapper uses a module listed above it, which is the healthy direction.
5→16 lib.core.auto-mapper uses example part of a loop✕
- Connections
- 1 pair of types, where a type in lib.core.auto-mapper uses a type in example.
- The types involved
lib.core.auto-mapper.AutoMapper→example.Props
- Direction
- lib.core.auto-mapper uses example, so a change to example can break lib.core.auto-mapper, while a change to lib.core.auto-mapper can't break example.
- 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.
6→2 lib.core.base-getters-and-setters uses lib.utils.validator✕
- Connections
- 1 pair of types, where a type in lib.core.base-getters-and-setters uses a type in lib.utils.validator.
- The types involved
lib.core.base-getters-and-setters.BaseGettersAndSetters→lib.utils.validator.Validator
- Direction
- lib.core.base-getters-and-setters uses lib.utils.validator, so a change to lib.utils.validator can break lib.core.base-getters-and-setters, while a change to lib.core.base-getters-and-setters can't break lib.utils.validator.
- Position
- Below the diagonal: lib.core.base-getters-and-setters uses a module listed above it, which is the healthy direction.
6→3 lib.core.base-getters-and-setters uses lib.types✕
- Connections
- 4 pairs of types, where a type in lib.core.base-getters-and-setters uses a type in lib.types.
- The types involved
lib.core.base-getters-and-setters.BaseGettersAndSetters→lib.types.CreateManyDomainlib.core.base-getters-and-setters.BaseGettersAndSetters→lib.types.Settingslib.core.base-getters-and-setters.BaseGettersAndSetters→lib.types._BaseGettersAndSetterslib.core.base-getters-and-setters.BaseGettersAndSetters→lib.types._VoSettings
- Direction
- lib.core.base-getters-and-setters uses lib.types, so a change to lib.types can break lib.core.base-getters-and-setters, while a change to lib.core.base-getters-and-setters can't break lib.types.
- Position
- Below the diagonal: lib.core.base-getters-and-setters uses a module listed above it, which is the healthy direction.
6→4 lib.core.base-getters-and-setters uses lib.utils.util✕
- Connections
- 1 pair of types, where a type in lib.core.base-getters-and-setters uses a type in lib.utils.util.
- The types involved
lib.core.base-getters-and-setters.BaseGettersAndSetters→lib.utils.util.Utils
- Direction
- lib.core.base-getters-and-setters uses lib.utils.util, so a change to lib.utils.util can break lib.core.base-getters-and-setters, while a change to lib.core.base-getters-and-setters can't break lib.utils.util.
- Position
- Below the diagonal: lib.core.base-getters-and-setters uses a module listed above it, which is the healthy direction.
6→16 lib.core.base-getters-and-setters uses example part of a loop✕
- Connections
- 1 pair of types, where a type in lib.core.base-getters-and-setters uses a type in example.
- The types involved
lib.core.base-getters-and-setters.BaseGettersAndSetters→example.Props
- Direction
- lib.core.base-getters-and-setters uses example, so a change to example can break lib.core.base-getters-and-setters, while a change to lib.core.base-getters-and-setters can't break example.
- 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.
7→3 lib.core.browser-event-manager uses lib.types✕
- Connections
- 1 pair of types, where a type in lib.core.browser-event-manager uses a type in lib.types.
- The types involved
lib.core.browser-event-manager.BrowserEventManager→lib.types.EventManager
- Direction
- lib.core.browser-event-manager uses lib.types, so a change to lib.types can break lib.core.browser-event-manager, while a change to lib.core.browser-event-manager can't break lib.types.
- Position
- Below the diagonal: lib.core.browser-event-manager uses a module listed above it, which is the healthy direction.
8→3 lib.core.context uses lib.types✕
- Connections
- 1 pair of types, where a type in lib.core.context uses a type in lib.types.
- The types involved
lib.core.context.Context→lib.types.EventManager
- Direction
- lib.core.context uses lib.types, so a change to lib.types can break lib.core.context, while a change to lib.core.context can't break lib.types.
- Position
- Below the diagonal: lib.core.context uses a module listed above it, which is the healthy direction.
9→3 lib.core.events uses lib.types✕
- Connections
- 3 pairs of types, where a type in lib.core.events uses a type in lib.types.
- The types involved
lib.core.events.TsEvents→lib.types.Handlerlib.core.events.TsEvents→lib.types.Metricslib.core.events.TsEvents→lib.types.Options
- Direction
- lib.core.events uses lib.types, so a change to lib.types can break lib.core.events, while a change to lib.core.events can't break lib.types.
- Position
- Below the diagonal: lib.core.events uses a module listed above it, which is the healthy direction.
10→3 lib.core.id uses lib.types✕
- Connections
- 1 pair of types, where a type in lib.core.id uses a type in lib.types.
- The types involved
lib.core.id.ID→lib.types.UID
- Direction
- lib.core.id uses lib.types, so a change to lib.types can break lib.core.id, while a change to lib.core.id can't break lib.types.
- Position
- Below the diagonal: lib.core.id uses a module listed above it, which is the healthy direction.
11→3 lib.core.iterator uses lib.types✕
- Connections
- 2 pairs of types, where a type in lib.core.iterator uses a type in lib.types.
- The types involved
lib.core.iterator.Iterator→lib.types.ITeratorConfiglib.core.iterator.Iterator→lib.types._Iterator
- Direction
- lib.core.iterator uses lib.types, so a change to lib.types can break lib.core.iterator, while a change to lib.core.iterator can't break lib.types.
- Position
- Below the diagonal: lib.core.iterator uses a module listed above it, which is the healthy direction.
12→3 lib.core.result uses lib.types✕
- Connections
- 5 pairs of types, where a type in lib.core.result uses a type in lib.types.
- The types involved
lib.core.result.Result→lib.types.ICommandlib.core.result.Result→lib.types.ResultExecutelib.core.result.Result→lib.types.ResultObjectlib.core.result.Result→lib.types._Iteratorlib.core.result.Result→lib.types._Result
- Direction
- lib.core.result uses lib.types, so a change to lib.types can break lib.core.result, while a change to lib.core.result can't break lib.types.
- Position
- Below the diagonal: lib.core.result uses a module listed above it, which is the healthy direction.
13→3 lib.core.server-event-manager uses lib.types✕
- Connections
- 1 pair of types, where a type in lib.core.server-event-manager uses a type in lib.types.
- The types involved
lib.core.server-event-manager.ServerEventManager→lib.types.EventManager
- Direction
- lib.core.server-event-manager uses lib.types, so a change to lib.types can break lib.core.server-event-manager, while a change to lib.core.server-event-manager can't break lib.types.
- Position
- Below the diagonal: lib.core.server-event-manager uses a module listed above it, which is the healthy direction.
14→3 lib.utils uses lib.types✕
- Connections
- 2 pairs of types, where a type in lib.utils uses a type in lib.types.
- The types involved
lib.utils.decrement-time.util→lib.types.Unitlib.utils.increment-time.util→lib.types.Unit
- Direction
- lib.utils uses lib.types, so a change to lib.types can break lib.utils, while a change to lib.utils can't break lib.types.
- Position
- Below the diagonal: lib.utils uses a module listed above it, which is the healthy direction.
15→3 lib.core.value-object uses lib.types✕
- Connections
- 3 pairs of types, where a type in lib.core.value-object uses a type in lib.types.
- The types involved
lib.core.value-object.ValueObject→lib.types._Resultlib.core.value-object.ValueObject→lib.types._ValueObjectlib.core.value-object.ValueObject→lib.types._VoSettings
- Direction
- lib.core.value-object uses lib.types, so a change to lib.types can break lib.core.value-object, while a change to lib.core.value-object can't break lib.types.
- Position
- Below the diagonal: lib.core.value-object uses a module listed above it, which is the healthy direction.
15→5 lib.core.value-object uses lib.core.auto-mapper✕
- Connections
- 1 pair of types, where a type in lib.core.value-object uses a type in lib.core.auto-mapper.
- The types involved
lib.core.value-object.ValueObject→lib.core.auto-mapper.AutoMapper
- Direction
- lib.core.value-object uses lib.core.auto-mapper, so a change to lib.core.auto-mapper can break lib.core.value-object, while a change to lib.core.value-object can't break lib.core.auto-mapper.
- Position
- Below the diagonal: lib.core.value-object uses a module listed above it, which is the healthy direction.
15→6 lib.core.value-object uses lib.core.base-getters-and-setters✕
- Connections
- 1 pair of types, where a type in lib.core.value-object uses a type in lib.core.base-getters-and-setters.
- The types involved
lib.core.value-object.ValueObject→lib.core.base-getters-and-setters.BaseGettersAndSetters
- Direction
- lib.core.value-object uses lib.core.base-getters-and-setters, so a change to lib.core.base-getters-and-setters can break lib.core.value-object, while a change to lib.core.value-object can't break lib.core.base-getters-and-setters.
- Position
- Below the diagonal: lib.core.value-object uses a module listed above it, which is the healthy direction.
15→12 lib.core.value-object uses lib.core.result✕
- Connections
- 1 pair of types, where a type in lib.core.value-object uses a type in lib.core.result.
- The types involved
lib.core.value-object.ValueObject→lib.core.result.Result
- Direction
- lib.core.value-object uses lib.core.result, so a change to lib.core.result can break lib.core.value-object, while a change to lib.core.value-object can't break lib.core.result.
- Position
- Below the diagonal: lib.core.value-object uses a module listed above it, which is the healthy direction.
15→16 lib.core.value-object uses example part of a loop✕
- Connections
- 1 pair of types, where a type in lib.core.value-object uses a type in example.
- The types involved
lib.core.value-object.ValueObject→example.Props
- Direction
- lib.core.value-object uses example, so a change to example can break lib.core.value-object, while a change to lib.core.value-object can't break example.
- 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.
16→12 example uses lib.core.result✕
- Connections
- 1 pair of types, where a type in example uses a type in lib.core.result.
- The types involved
example.MyValueObject→lib.core.result.Result
- Direction
- example uses lib.core.result, so a change to lib.core.result can break example, while a change to example can't break lib.core.result.
- Position
- Below the diagonal: example uses a module listed above it, which is the healthy direction.
16→15 example uses lib.core.value-object✕
- Connections
- 1 pair of types, where a type in example uses a type in lib.core.value-object.
- The types involved
example.MyValueObject→lib.core.value-object.ValueObject
- Direction
- example uses lib.core.value-object, so a change to lib.core.value-object can break example, while a change to example can't break lib.core.value-object.
- Position
- Below the diagonal: example uses a module listed above it, which is the healthy direction.
17→3 lib.core uses lib.types✕
- Connections
- 5 pairs of types, where a type in lib.core uses a type in lib.types.
- The types involved
lib.core.create-many-domain-instance→lib.types.CreateManyDomainlib.core.create-many-domain-instance→lib.types.CreateManyResultlib.core.create-many-domain-instance→lib.types._ManyDatalib.core.fail→lib.types._Resultlib.core.ok→lib.types._Result
- Direction
- lib.core uses lib.types, so a change to lib.types can break lib.core, while a change to lib.core can't break lib.types.
- Position
- Below the diagonal: lib.core uses a module listed above it, which is the healthy direction.
17→16 lib.core uses example✕
- Connections
- 1 pair of types, where a type in lib.core uses a type in example.
- The types involved
lib.core.create-many-domain-instance→example.Props
- Direction
- lib.core uses example, so a change to example can break lib.core, while a change to lib.core can't break example.
- Position
- Below the diagonal: lib.core uses a module listed above it, which is the healthy direction.
18→2 lib.core.entity-getters-and-setters uses lib.utils.validator✕
- Connections
- 1 pair of types, where a type in lib.core.entity-getters-and-setters uses a type in lib.utils.validator.
- The types involved
lib.core.entity-getters-and-setters.GettersAndSetters→lib.utils.validator.Validator
- Direction
- lib.core.entity-getters-and-setters uses lib.utils.validator, so a change to lib.utils.validator can break lib.core.entity-getters-and-setters, while a change to lib.core.entity-getters-and-setters can't break lib.utils.validator.
- Position
- Below the diagonal: lib.core.entity-getters-and-setters uses a module listed above it, which is the healthy direction.
18→3 lib.core.entity-getters-and-setters uses lib.types✕
- Connections
- 4 pairs of types, where a type in lib.core.entity-getters-and-setters uses a type in lib.types.
- The types involved
lib.core.entity-getters-and-setters.GettersAndSetters→lib.types.CreateManyDomainlib.core.entity-getters-and-setters.GettersAndSetters→lib.types.IParentNamelib.core.entity-getters-and-setters.GettersAndSetters→lib.types.Settingslib.core.entity-getters-and-setters.GettersAndSetters→lib.types._EntityGettersAndSetters
- Direction
- lib.core.entity-getters-and-setters uses lib.types, so a change to lib.types can break lib.core.entity-getters-and-setters, while a change to lib.core.entity-getters-and-setters can't break lib.types.
- Position
- Below the diagonal: lib.core.entity-getters-and-setters uses a module listed above it, which is the healthy direction.
18→4 lib.core.entity-getters-and-setters uses lib.utils.util✕
- Connections
- 1 pair of types, where a type in lib.core.entity-getters-and-setters uses a type in lib.utils.util.
- The types involved
lib.core.entity-getters-and-setters.GettersAndSetters→lib.utils.util.Utils
- Direction
- lib.core.entity-getters-and-setters uses lib.utils.util, so a change to lib.utils.util can break lib.core.entity-getters-and-setters, while a change to lib.core.entity-getters-and-setters can't break lib.utils.util.
- Position
- Below the diagonal: lib.core.entity-getters-and-setters uses a module listed above it, which is the healthy direction.
18→16 lib.core.entity-getters-and-setters uses example✕
- Connections
- 1 pair of types, where a type in lib.core.entity-getters-and-setters uses a type in example.
- The types involved
lib.core.entity-getters-and-setters.GettersAndSetters→example.Props
- Direction
- lib.core.entity-getters-and-setters uses example, so a change to example can break lib.core.entity-getters-and-setters, while a change to lib.core.entity-getters-and-setters can't break example.
- Position
- Below the diagonal: lib.core.entity-getters-and-setters uses a module listed above it, which is the healthy direction.
19→3 lib.core.entity uses lib.types✕
- Connections
- 3 pairs of types, where a type in lib.core.entity uses a type in lib.types.
- The types involved
lib.core.entity.Entity→lib.types.Settingslib.core.entity.Entity→lib.types.UIDlib.core.entity.Entity→lib.types._Entity
- Direction
- lib.core.entity uses lib.types, so a change to lib.types can break lib.core.entity, while a change to lib.core.entity can't break lib.types.
- Position
- Below the diagonal: lib.core.entity uses a module listed above it, which is the healthy direction.
19→5 lib.core.entity uses lib.core.auto-mapper✕
- Connections
- 1 pair of types, where a type in lib.core.entity uses a type in lib.core.auto-mapper.
- The types involved
lib.core.entity.Entity→lib.core.auto-mapper.AutoMapper
- Direction
- lib.core.entity uses lib.core.auto-mapper, so a change to lib.core.auto-mapper can break lib.core.entity, while a change to lib.core.entity can't break lib.core.auto-mapper.
- Position
- Below the diagonal: lib.core.entity uses a module listed above it, which is the healthy direction.
19→12 lib.core.entity uses lib.core.result✕
- Connections
- 1 pair of types, where a type in lib.core.entity uses a type in lib.core.result.
- The types involved
lib.core.entity.Entity→lib.core.result.Result
- Direction
- lib.core.entity uses lib.core.result, so a change to lib.core.result can break lib.core.entity, while a change to lib.core.entity can't break lib.core.result.
- Position
- Below the diagonal: lib.core.entity uses a module listed above it, which is the healthy direction.
19→16 lib.core.entity uses example✕
- Connections
- 1 pair of types, where a type in lib.core.entity uses a type in example.
- The types involved
lib.core.entity.Entity→example.Props
- Direction
- lib.core.entity uses example, so a change to example can break lib.core.entity, while a change to lib.core.entity can't break example.
- Position
- Below the diagonal: lib.core.entity uses a module listed above it, which is the healthy direction.
19→18 lib.core.entity uses lib.core.entity-getters-and-setters✕
- Connections
- 1 pair of types, where a type in lib.core.entity uses a type in lib.core.entity-getters-and-setters.
- The types involved
lib.core.entity.Entity→lib.core.entity-getters-and-setters.GettersAndSetters
- Direction
- lib.core.entity uses lib.core.entity-getters-and-setters, so a change to lib.core.entity-getters-and-setters can break lib.core.entity, while a change to lib.core.entity can't break lib.core.entity-getters-and-setters.
- Position
- Below the diagonal: lib.core.entity uses a module listed above it, which is the healthy direction.
20→3 lib.core.aggregate uses lib.types✕
- Connections
- 8 pairs of types, where a type in lib.core.aggregate uses a type in lib.types.
- The types involved
lib.core.aggregate.Aggregate→lib.types.EventHandlerlib.core.aggregate.Aggregate→lib.types.EventManagerlib.core.aggregate.Aggregate→lib.types.EventMetricslib.core.aggregate.Aggregate→lib.types.Handlerlib.core.aggregate.Aggregate→lib.types.Optionslib.core.aggregate.Aggregate→lib.types.Settingslib.core.aggregate.Aggregate→lib.types.UIDlib.core.aggregate.Aggregate→lib.types._Aggregate
- Direction
- lib.core.aggregate uses lib.types, so a change to lib.types can break lib.core.aggregate, while a change to lib.core.aggregate can't break lib.types.
- Position
- Below the diagonal: lib.core.aggregate uses a module listed above it, which is the healthy direction.
20→12 lib.core.aggregate uses lib.core.result✕
- Connections
- 1 pair of types, where a type in lib.core.aggregate uses a type in lib.core.result.
- The types involved
lib.core.aggregate.Aggregate→lib.core.result.Result
- Direction
- lib.core.aggregate uses lib.core.result, so a change to lib.core.result can break lib.core.aggregate, while a change to lib.core.aggregate can't break lib.core.result.
- Position
- Below the diagonal: lib.core.aggregate uses a module listed above it, which is the healthy direction.
20→16 lib.core.aggregate uses example✕
- Connections
- 1 pair of types, where a type in lib.core.aggregate uses a type in example.
- The types involved
lib.core.aggregate.Aggregate→example.Props
- Direction
- lib.core.aggregate uses example, so a change to example can break lib.core.aggregate, while a change to lib.core.aggregate can't break example.
- Position
- Below the diagonal: lib.core.aggregate uses a module listed above it, which is the healthy direction.
20→19 lib.core.aggregate uses lib.core.entity✕
- Connections
- 1 pair of types, where a type in lib.core.aggregate uses a type in lib.core.entity.
- The types involved
lib.core.aggregate.Aggregate→lib.core.entity.Entity
- Direction
- lib.core.aggregate uses lib.core.entity, so a change to lib.core.entity can break lib.core.aggregate, while a change to lib.core.aggregate can't break lib.core.entity.
- Position
- Below the diagonal: lib.core.aggregate 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 — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 16 | High / Critical |
| A05:2025 — Injection | 7 | High / Critical |
| A02:2025 — Security Misconfiguration | 1 | Medium |
Roadmap
Begin by documenting significant design decisions in a dedicated folder and updating the README to explain how to run tests. Next, address the missing vulnerability disclosure contact and resolve the twelve high-severity dependency vulnerabilities, starting with the REDACTED file. Finally, review and improve the overall documentation quality to ensure clarity and completeness.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. | +8.1 pts | Low | Documentation Quality |
| 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. | +9.3 pts | Medium | Architecture documentation |
| Resolve the 1 REDACTED finding(s) in Vulnerability-disclosure Policy. | +2.7 pts | Low | Vulnerability-disclosure Policy |
| 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. | +4.2 pts | Medium | Documentation (README) |
| Resolve the 12 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (12). | +2.7 pts | Medium | Dependency Vulnerabilities |
| Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing. | +2.1 pts | Medium | Security & performance tooling |
| Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. | +1.0 pts | Low | Static Analysis (SAST) |
| Resolve the 1 No assertions (empty test) finding(s) in Test Quality — start with aggregate.spec.ts. | +0.7 pts | Low | Test Quality |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 2.1 | Slop | Static Analysis (SAST): High: REDACTED |
| tests/core/aggregate.spec.ts | 6.5 | Mixed | Test Quality: No assertions (empty test): should add a new event to the aggregate |
| lib/core/auto-mapper.ts | 7.2 | Mixed | Cyclomatic Complexity: AutoMapper.valueObjectToObj (cyclomatic 28) |
| lib/utils/validator.ts | 7.2 | Mixed | Cyclomatic Complexity: Validator.string (cyclomatic 23) |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| lib/core/entity-getters-and-setters.ts | 7.8 | Mixed | Cognitive Complexity: GettersAndSetters.set (cognitive 18) |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 7.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| lib/core/iterator.ts | 8.5 | Near-clean | Code Coverage: Low coverage: lib/core/iterator.ts |
| README.md | 9.5 | Near-clean | Documentation Quality: Documentation: no project overview |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 62 of 65 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 65 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, 82 of 90 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
- D12 Dependency Hygiene — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's 1 package.json manifest(s) and its 1 committed lockfile(s) WERE read; what went unanswered is the currency half, because it grades the production `dependencies` a lockfile resolves and these manifests declare none — only 8 devDependencies, which D12 does not grade. So registry.npmjs.org was never asked, and there was nothing here for it to grade. This is a true statement about the repository and NOT a gap on our side: the lockfile was resolved, and no reader we could write would find a production dependency in it.
- D14 License Compliance — 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 declares no npm dependency a consumer installs, but 14 path(s) its package.json says it ships are not in the checkout (`core/*`, `index.d.ts`, `index.d.ts.map`, `index.js`, `index.js.map`) — they are built at publish time, and a bundler can inline `devDependencies` into them. What a package ships is not only what it declares: a devDependency bundled into build output ships under its own licence, and this pass has no reader for build output. So whether there is a licence to grade here was not established — a missing collector, not a statement about this repository.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (4 contributor(s) across 657 commit(s) sampled, automation and bot accounts excluded). One of them holds 98% of the history; the other 3 hold 0.7% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- 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 (package.json), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict. For npm the surface is what a published package.json's entry points (exports, main, module, types) export, followed through the source; an entry that names build output the tree does not commit (dist/, build/) is not followed back to source, because only a tsconfig outDir/rootDir pair states that mapping and a bundler's input lives in executable configuration this engine does not evaluate.
- D44 Platform End-of-Life — 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 dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
- P5 DR & Backup — 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. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and none applies: this repository publishes a library and deploys nothing (no container, IaC or deployment manifest), so it holds no runtime state of its own. Any data-access dependency it declares is the store it is a CLIENT for, not one it operates. The DR control belongs to whoever runs that data.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 43 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled certificate validation and obsolete TLS versions, and none was found. The server controls this dimension also scores were not assessed, so no score is given.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- 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.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- 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.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- 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
5 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was AutoMapper.valueObjectToObj at 28.
What to do
- Bring the 5 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with AutoMapper.valueObjectToObj (cyclomatic 28), AutoMapper.entityToObj (cyclomatic 24), Validator.string (cyclomatic 23). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cyclomatic Complexity from 8.8 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- 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
5 method(s) exceeded the cognitive complexity threshold of 15; the worst was AutoMapper.valueObjectToObj at 25.
What to do
- Bring the 5 bodies over 15 down to 15 or less in Cognitive Complexity — start with AutoMapper.valueObjectToObj (cognitive 25), Validator.string (cognitive 19), AutoMapper.entityToObj (cognitive 18). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cognitive Complexity from 8.9 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
0 god class(es) detected.
D6 · Cohesion (LCOM4)
0 of 9 classes have LCOM4 above 3.
D8 · Code Coverage
Line coverage 91.9% — 1 file(s) below 50%. Measured from the JavaScript/TypeScript suite (jest via `yarn install --frozen-lockfile --ignore-scripts` in the repository root).
What to do
- Resolve the 1 Low coverage finding(s) in Code Coverage — start with iterator.ts. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
741 test methods: 741 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 741 `it`/`test` case(s) across 33 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
0 skipped, 2 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 741 tests.
What to do
- Resolve the 1 No assertions (empty test) finding(s) in Test Quality — start with aggregate.spec.ts. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 No assertions finding(s) in Test Quality — start with aggregate.spec.ts. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `yarn install --frozen-lockfile --ignore-scripts` in the repository root (740 tests)): measured (0 flaky).
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 4102 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 self-contained marketing document for the package rich-domain, which claims domain-driven design (DDD) expertise but does not explain what it actually builds or how to use its contents. It shows badges and links to npm stars/dependabot/last-commit, plus an untagged shell block that appears to show commands to type; none of these are the real documentation for a DDD library. The README is rich in outline (About the lib / Simple App Example / Documentation / Folders / Core / ...) but it never explains what the project does or how to run its examples, so the overview and usage sections are missing.
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
0 of 1 build units (npm) flagged as possibly oversized/incoherent.
D27 · Navigability
46 % of calls cross a namespace and 8 % go through an interface, but 45 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What to do
- Resolve the 1 Scattered collaborators finding(s) in Navigability. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
7 finding(s): 0 critical, 3 high, 4 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 issue-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 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
16 finding(s): 0 critical, 12 high, 2 medium, 2 low.
What to do
- Resolve the 12 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (12). — One of this dimension's main actionable groups (12 issue-level).
- Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Low CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 recommendation-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 21 of the 44 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is present but lists no reporting contact.
What to do
- Resolve the 1 REDACTED finding(s) in Vulnerability-disclosure Policy. — 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.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX6 · Interface segregation
- `_Iterator` declares 19 required operations: `hasNext`, `hasPrev`, `next`, `prev`, `first`, `last`, `isEmpty`, `toFirst`, `toLast`, `toArray`, `clear`, `addToEnd`, `add`, `addToStart`, `removeLast`, `removeFirst`, `total`, `clone`, `removeItem`. Counted over its REQUIRED operations — a method signature or a function-typed property with no `?`, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — lib/types.ts:162
What to do
- Split fat interfaces into focused role-interfaces so clients depend only on what they use.
GD1 · Unfinished & placeholder code
- A shipped function's whole body still throws a "not implemented" error — generated scaffolding that was never completed. Implement it or remove the dead surface. (×2) — lib/core/entity.ts:137, lib/core/value-object.ts:148
What to do
- Finish or delete the functions that still throw "not implemented", and replace placeholder text before shipping.
IC1 · Incompleteness & stubs
- `init` throws an exception whose message says it isn't finished — a not-implemented stub wearing an ordinary exception. Implement it or remove it. (×2) — lib/core/entity.ts:137, lib/core/value-object.ts:148
What to do
- Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
M1 · Documentation (README)
What to do
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P10 · Library API & versioning
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 1236 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
- Dependabot is configured but does not watch `github-actions` — add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene
PF3 · Async & latency hygiene
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- lib/core/entity-getters-and-setters.ts:126 · lib/core/entity-getters-and-setters.ts:184 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — lib/core/entity-getters-and-setters.ts:126
- REDACTED:48 · REDACTED:49 — the two spans are one implementation copied and then locally edited — 278 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:48
- lib/core/auto-mapper.ts:36 · lib/core/auto-mapper.ts:149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — lib/core/auto-mapper.ts:36
- lib/core/entity.ts:60 · lib/core/value-object.ts:111 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — lib/core/entity.ts:60
- lib/core/iterator.ts:91 · lib/core/iterator.ts:115 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — lib/core/iterator.ts:91
- lib/utils/divide-number.util.ts:26 · lib/utils/multiply-number.util.ts:27 · lib/utils/subtract-number.util.ts:29 · lib/utils/sum-number.util.ts:28 — the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — lib/utils/divide-number.util.ts:26
- lib/utils/decrement-time.util.ts:25 · lib/utils/increment-time.util.ts:25 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — lib/utils/decrement-time.util.ts:25
- lib/core/aggregate.ts:146 · lib/core/value-object.ts:151 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — lib/core/aggregate.ts:146
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity
- (top-level) has cyclomatic complexity 21 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/base-getters-and-setters.ts:1
- (top-level) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/entity.ts:1
- (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/auto-mapper.ts:180
- (anonymous) has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/entity-getters-and-setters.ts:126
- (top-level) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/aggregate.ts:1
- (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — lib/core/auto-mapper.ts:77
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- lib/types.ts has 555 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — lib/types.ts:1
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
R6 · Tooling
- test ✓ · lint ✗ · typecheck ✓ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add eslint as package.json scripts and run them in CI.
R7 · Dead Code
- Nothing ultimately consumes this binding: its only referrer is the re-export in lib/core/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in lib/core/index.ts in the same commit, or the barrel will import a name that no longer exists. (×5) — lib/core/aggregate.ts:180, lib/core/crypto.ts:54, lib/core/id.ts:179, …
- Nothing ultimately consumes this binding: its only referrer is the re-export in lib/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in lib/index.ts in the same commit, or the barrel will import a name that no longer exists. (×8) — lib/types.ts:112, lib/types.ts:123, lib/types.ts:193, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
R9 · Circular Imports
- lib/core/aggregate.ts → lib/core/context.ts → REDACTED → lib/types.ts → lib/core/index.ts → lib/core/aggregate.ts (one verified cycle inside a mutually-dependent group of 17 files) — lib/core/aggregate.ts:7
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- ~1.3 `!` null assertions per 1k TypeScript source lines — 6 assertion(s) across the 4553 source line(s) of the 43 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: lib/core/aggregate.ts (3), lib/core/value-object.ts (2), lib/core/entity.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 89% | Strong | Solid. |
| Architecture | 89% | Strong | Solid. |
| Maturity | 54% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 74% | Adequate — gated by P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 66% | Adequate — gated by D30 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 3 check(s) recorded observations but carry no score
- D12 Dependency Hygiene — 6 observation(s) recorded · Dependency currency not established — this repository declares no production dependency to grade
- D36 Supply-chain Provenance & Signing — 1 observation(s) recorded · The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- X10 Duplicated predicate — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
- 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 — 62 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 TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — Not applicable: TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- 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.
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
- C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server (no Express, Fastify, Koa, Hono, NestJS or similar app, no Next.js/SvelteKit/Nuxt server route, no edge function), creates no Supabase tables and talks to no hosted backend. Access control is therefore N/A here — a browser application or library is authorized by the server it calls, not by itself; a client-side route guard hides a page and authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
- D14 License Compliance — Shipped build output's licences not graded — D14 does not read what a bundler inlines
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
- 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
- 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.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D4 Code Duplication — This repository's production source (.ts) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 value object(s))
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P2 Observability — This repository's JavaScript/TypeScript source (1 module(s), 43 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 JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — coverage data present for 41 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
- R5 Dependency Freshness — uses a yarn lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D30 (Dependency Vulnerabilities), which answers every ecosystem
- S1 Web-Security Posture — Not assessed: 43 JavaScript/TypeScript file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. That half of the dimension is clean, but it is not scored on its own: a C# repository with the same clean reading is scored on its server controls as well, or is N/A for having no web surface, and neither can be decided here. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 17 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No assertions (empty test): should add a new event to the aggregate tests/core/aggregate.spec.ts:601
- REDACTED
- Import cycle (5 files) lib/core/aggregate.ts:7
Serious — 39 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Unfinished stub — throws a "not implemented" error lib/core/entity.ts:137
- Unfinished stub — throws a "not implemented" error lib/core/value-object.ts:148
- Unfinished stub — throws a "not implemented" exception lib/core/entity.ts:137
- Unfinished stub — throws a "not implemented" exception lib/core/value-object.ts:148
- Duplicated block (10 lines × 2 locations) lib/core/entity.ts:60
- Duplicated block (10 lines × 2 locations) lib/core/iterator.ts:91
- AutoMapper.valueObjectToObj (cyclomatic 28) lib/core/auto-mapper.ts:25
- AutoMapper.entityToObj (cyclomatic 24) lib/core/auto-mapper.ts:128
- Validator.string (cyclomatic 23) lib/utils/validator.ts:195
- Validator.number (cyclomatic 21) lib/utils/validator.ts:176
- Validator.date (cyclomatic 16) lib/utils/validator.ts:226
- No assertions: should dispatch the specified event tests/core/aggregate.spec.ts:568
- AutoMapper.valueObjectToObj (cognitive 25) lib/core/auto-mapper.ts:25
- Validator.string (cognitive 19) lib/utils/validator.ts:195
- AutoMapper.entityToObj (cognitive 18) lib/core/auto-mapper.ts:128
- GettersAndSetters.set (cognitive 18) lib/core/entity-getters-and-setters.ts:111
- GettersAndSetters.change (cognitive 18) lib/core/entity-getters-and-setters.ts:184
- REDACTED
- Low coverage: lib/core/iterator.ts lib/core/iterator.ts:1
- Duplicated block (35 lines × 2 locations) lib/core/entity-getters-and-setters.ts:126
- Duplicated block with local edits (31 matched lines × 2 locations) REDACTED:48
- Duplicated block (12 lines × 2 locations) lib/core/auto-mapper.ts:36
- Duplicated block (9 lines × 4 locations) lib/utils/divide-number.util.ts:26
- Duplicated block (6 lines × 2 locations) lib/utils/decrement-time.util.ts:25
- Duplicated block (5 lines × 2 locations) lib/core/aggregate.ts:146
- Complex function (top-level) (cyclomatic 21, cognitive 23) lib/core/base-getters-and-setters.ts:1
- Complex function (top-level) (cyclomatic 17, cognitive 16) lib/core/entity.ts:1
- Complex function (anonymous) (cyclomatic 14, cognitive 13) lib/core/auto-mapper.ts:180
- Complex function (anonymous) (cyclomatic 13, cognitive 18) lib/core/entity-getters-and-setters.ts:126
- Complex function (top-level) (cyclomatic 11, cognitive 10) lib/core/aggregate.ts:1
- Complex function (anonymous) (cyclomatic 11, cognitive 10) lib/core/auto-mapper.ts:77
- lib/types.ts: 555 lines of code lib/types.ts:1
- No lint script
Minor — 33 finding(s)
- Deprecated: flatten REDACTED:1528
- Deprecated: glob REDACTED:1604
- Deprecated: glob REDACTED:1616
- Deprecated: inflight REDACTED:1707
- Deprecated: is-relative-path REDACTED:1779
- Deprecated: rimraf REDACTED:2792
- Duplicated predicate lib/core/entity.ts:127
- Duplicated predicate lib/core/entity.ts:61
- Duplicated predicate lib/core/entity.ts:64
- Duplicated predicate lib/core/fail.ts:89
- Unused export 'default' lib/core/aggregate.ts:180
- Unused export 'default' lib/core/crypto.ts:54
- Unused export 'default' lib/core/value-object.ts:167
- REDACTED
- REDACTED
- Fat interface: _Iterator (19 required operations) lib/types.ts:162
- Documentation: no project overview README.md
- Scattered collaborators
- REDACTED
- No ADRs
- No architecture diagram/doc
- No SAST
- Unused export 'Uid' lib/core/id.ts:179
- Unused export 'Combine' lib/core/result.ts:190
- Unused export 'IResult' lib/types.ts:112
- Unused export 'HandlerPayload' lib/types.ts:123
- Unused export 'ResultOptions' lib/types.ts:193
- Unused export 'IUseCase' lib/types.ts:215
- Unused export 'UseCase' lib/types.ts:216
- Unused export '_Proxy' lib/types.ts:224
- Unused export 'PropsValidation' lib/types.ts:314
- Unused export 'IAdapter' lib/types.ts:331
- Null assertions (`!`) reduce the strict null checking score
Minor — 1 finding(s)
- Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (the committed lockfile resolved no direct production dependency)
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-a6c0543f0a3b454bac58db649c93f4fe/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-a6c0543f0a3b454bac58db649c93f4fe/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 7 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 16 | artifacts/raw/trivy-fs.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 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |