Executive summary
claudiosw/python-clean-architecture-example scores 59 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged. Watchdog judged it as a template, sample or demo, meant to be read or copied, so the dimensions about building, releasing and running a product don't apply, and its lenses are rated against a lower bar. The score itself is worked out as for any repository.
The weakest lens counts most in the score, and here that is Maturity, which scores 53 and is rated Adequate. Its Knowledge Freshness dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to resolve the 4 Orphaned file finding(s) in Knowledge Freshness and to resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness, and if Maturity rose to 70, the score would rise from 59 to about 63.
15 findings are critical: nine in Static Analysis (SAST), five in Dependency Vulnerabilities and one in License Compliance.
Watchdog couldn't measure 12 dimensions in this code, among them Code Coverage, Documentation Quality and Navigability, so they are left out of the score. The product code is 1,028 lines, which would take an estimated 0.1 person-years, around β¬2,400, to rebuild.
If Maturity rose from 53 to 70, the lowest score rated Strong, the score would rise from 59 to about 63.
New since the last survey: 3 findings
- Dependency Vulnerabilities Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Supply-chain Provenance & Signing Β· REDACTED
Fixed since the last survey: 3 findings
- Dependency Vulnerabilities Β· High CVE: [GHSA redacted] REDACTED
- Dependency Vulnerabilities Β· High CVE: [GHSA redacted] REDACTED
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about β¬2,400 Β· Estimate
| Cost to rebuild | β¬800 to β¬4,000, for 13 to 42 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.8 at a score of 59. 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 | Very small: 1,028 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture β module dependency graph
Architecture: which parts of the code depend on which
| uses β | 1 alembic | 2 alembic.versions | 3 src.app.cli_memory.interfaces.cli_memory_controller_interface | 4 src.app.cli_memory.views.create_profession_view | 5 src.app.flask_memory.blueprints | 6 src.app.flask_memory.interfaces.flask_memory_controller_interface | 7 src.app.flask_postgresql.blueprints | 8 src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface | 9 src.domain.entities.profession | 10 src.infra.db_models.db_base | 11 src.interactor.errors.error_classes | 12 src.interactor.interfaces.logger.logger | 13 src.interactor.validations.base_input_validator | 14 cli_memory_process_handler | 15 src.app.cli_memory.controllers.exit_controller | 16 src.app.flask_memory | 17 src.app.flask_memory.controllers.create_profession_controller | 18 src.app.flask_postgresql | 19 src.app.flask_postgresql.controllers.create_profession_controller | 20 src.infra.db_models.profession_db_model | 21 src.infra.loggers.logger_default | 22 src.interactor.dtos.create_profession_dtos | 23 src.interactor.interfaces.repositories.profession_repository | 24 src.interactor.validations.create_profession_validator | 25 src.app.cli_memory.controllers.create_profession_controller | 26 src.infra.repositories.profession_in_memory_repository | 27 src.infra.repositories.profession_postgresql_repository | 28 src.interactor.interfaces.presenters.create_profession_presenter | 29 src.app.cli_memory.presenters.create_profession_presenter | 30 src.app.flask_memory.presenters.create_profession_presenter | 31 src.app.flask_postgresql.presenters.create_profession_presenter | 32 src.interactor.use_cases.create_profession |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 alembic | ||||||||||||||||||||||||||||||||
| 2 alembic.versions | ||||||||||||||||||||||||||||||||
| 3 src.app.cli_memory.interfaces.cli_memory_controller_interface | ||||||||||||||||||||||||||||||||
| 4 src.app.cli_memory.views.create_profession_view | ||||||||||||||||||||||||||||||||
| 5 src.app.flask_memory.blueprints | ||||||||||||||||||||||||||||||||
| 6 src.app.flask_memory.interfaces.flask_memory_controller_interface | ||||||||||||||||||||||||||||||||
| 7 src.app.flask_postgresql.blueprints | ||||||||||||||||||||||||||||||||
| 8 src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface | ||||||||||||||||||||||||||||||||
| 9 src.domain.entities.profession | ||||||||||||||||||||||||||||||||
| 10 src.infra.db_models.db_base | ||||||||||||||||||||||||||||||||
| 11 src.interactor.errors.error_classes | ||||||||||||||||||||||||||||||||
| 12 src.interactor.interfaces.logger.logger | ||||||||||||||||||||||||||||||||
| 13 src.interactor.validations.base_input_validator | ||||||||||||||||||||||||||||||||
| 14 cli_memory_process_handler | 1 | 1 | ||||||||||||||||||||||||||||||
| 15 src.app.cli_memory.controllers.exit_controller | 1 | |||||||||||||||||||||||||||||||
| 16 src.app.flask_memory | 1 | |||||||||||||||||||||||||||||||
| 17 src.app.flask_memory.controllers.create_profession_controller | 1 | 1 | ||||||||||||||||||||||||||||||
| 18 src.app.flask_postgresql | 1 | |||||||||||||||||||||||||||||||
| 19 src.app.flask_postgresql.controllers.create_profession_controller | 1 | 1 | ||||||||||||||||||||||||||||||
| 20 src.infra.db_models.profession_db_model | 1 | |||||||||||||||||||||||||||||||
| 21 src.infra.loggers.logger_default | 1 | |||||||||||||||||||||||||||||||
| 22 src.interactor.dtos.create_profession_dtos | 1 | |||||||||||||||||||||||||||||||
| 23 src.interactor.interfaces.repositories.profession_repository | 1 | |||||||||||||||||||||||||||||||
| 24 src.interactor.validations.create_profession_validator | 1 | |||||||||||||||||||||||||||||||
| 25 src.app.cli_memory.controllers.create_profession_controller | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| 26 src.infra.repositories.profession_in_memory_repository | 1 | 1 | ||||||||||||||||||||||||||||||
| 27 src.infra.repositories.profession_postgresql_repository | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| 28 src.interactor.interfaces.presenters.create_profession_presenter | 1 | |||||||||||||||||||||||||||||||
| 29 src.app.cli_memory.presenters.create_profession_presenter | 1 | 1 | ||||||||||||||||||||||||||||||
| 30 src.app.flask_memory.presenters.create_profession_presenter | 1 | 1 | ||||||||||||||||||||||||||||||
| 31 src.app.flask_postgresql.presenters.create_profession_presenter | 1 | 1 | ||||||||||||||||||||||||||||||
| 32 src.interactor.use_cases.create_profession | 1 | 1 | 1 | 1 |
14β3 cli_memory_process_handler uses src.app.cli_memory.interfaces.cli_memory_controller_interface✕
- Connections
- 1 pair of types, where a type in cli_memory_process_handler uses a type in src.app.cli_memory.interfaces.cli_memory_controller_interface.
- The types involved
cli_memory_process_handler.CliMemoryProcessHandlerβsrc.app.cli_memory.interfaces.cli_memory_controller_interface.CliMemoryControllerInterface
- Direction
- cli_memory_process_handler uses src.app.cli_memory.interfaces.cli_memory_controller_interface, so a change to src.app.cli_memory.interfaces.cli_memory_controller_interface can break cli_memory_process_handler, while a change to cli_memory_process_handler can't break src.app.cli_memory.interfaces.cli_memory_controller_interface.
- Position
- Below the diagonal: cli_memory_process_handler uses a module listed above it, which is the healthy direction.
14β12 cli_memory_process_handler uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in cli_memory_process_handler uses a type in src.interactor.interfaces.logger.logger.
- The types involved
cli_memory_process_handler.CliMemoryProcessHandlerβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- cli_memory_process_handler uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break cli_memory_process_handler, while a change to cli_memory_process_handler can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: cli_memory_process_handler uses a module listed above it, which is the healthy direction.
15β3 src.app.cli_memory.controllers.exit_controller uses src.app.cli_memory.interfaces.cli_memory_controller_interface✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.controllers.exit_controller uses a type in src.app.cli_memory.interfaces.cli_memory_controller_interface.
- The types involved
src.app.cli_memory.controllers.exit_controller.ExitControllerβsrc.app.cli_memory.interfaces.cli_memory_controller_interface.CliMemoryControllerInterface
- Direction
- src.app.cli_memory.controllers.exit_controller uses src.app.cli_memory.interfaces.cli_memory_controller_interface, so a change to src.app.cli_memory.interfaces.cli_memory_controller_interface can break src.app.cli_memory.controllers.exit_controller, while a change to src.app.cli_memory.controllers.exit_controller can't break src.app.cli_memory.interfaces.cli_memory_controller_interface.
- Position
- Below the diagonal: src.app.cli_memory.controllers.exit_controller uses a module listed above it, which is the healthy direction.
16β12 src.app.flask_memory uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.app.flask_memory uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.app.flask_memory.create_flask_memory_appβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.app.flask_memory uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.app.flask_memory, while a change to src.app.flask_memory can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.app.flask_memory uses a module listed above it, which is the healthy direction.
17β6 src.app.flask_memory.controllers.create_profession_controller uses src.app.flask_memory.interfaces.flask_memory_controller_interface✕
- Connections
- 1 pair of types, where a type in src.app.flask_memory.controllers.create_profession_controller uses a type in src.app.flask_memory.interfaces.flask_memory_controller_interface.
- The types involved
src.app.flask_memory.controllers.create_profession_controller.CreateProfessionControllerβsrc.app.flask_memory.interfaces.flask_memory_controller_interface.FlaskMemoryControllerInterface
- Direction
- src.app.flask_memory.controllers.create_profession_controller uses src.app.flask_memory.interfaces.flask_memory_controller_interface, so a change to src.app.flask_memory.interfaces.flask_memory_controller_interface can break src.app.flask_memory.controllers.create_profession_controller, while a change to src.app.flask_memory.controllers.create_profession_controller can't break src.app.flask_memory.interfaces.flask_memory_controller_interface.
- Position
- Below the diagonal: src.app.flask_memory.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
17β12 src.app.flask_memory.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.app.flask_memory.controllers.create_profession_controller uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.app.flask_memory.controllers.create_profession_controller.CreateProfessionControllerβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.app.flask_memory.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.app.flask_memory.controllers.create_profession_controller, while a change to src.app.flask_memory.controllers.create_profession_controller can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.app.flask_memory.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
18β12 src.app.flask_postgresql uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.app.flask_postgresql uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.app.flask_postgresql.create_flask_postgresql_appβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.app.flask_postgresql uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.app.flask_postgresql, while a change to src.app.flask_postgresql can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.app.flask_postgresql uses a module listed above it, which is the healthy direction.
19β8 src.app.flask_postgresql.controllers.create_profession_controller uses src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface✕
- Connections
- 1 pair of types, where a type in src.app.flask_postgresql.controllers.create_profession_controller uses a type in src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface.
- The types involved
src.app.flask_postgresql.controllers.create_profession_controller.CreateProfessionControllerβsrc.app.flask_postgresql.interfaces.flask_postgresql_controller_interface.FlaskPostgresqlControllerInterface
- Direction
- src.app.flask_postgresql.controllers.create_profession_controller uses src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface, so a change to src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface can break src.app.flask_postgresql.controllers.create_profession_controller, while a change to src.app.flask_postgresql.controllers.create_profession_controller can't break src.app.flask_postgresql.interfaces.flask_postgresql_controller_interface.
- Position
- Below the diagonal: src.app.flask_postgresql.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
19β12 src.app.flask_postgresql.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.app.flask_postgresql.controllers.create_profession_controller uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.app.flask_postgresql.controllers.create_profession_controller.CreateProfessionControllerβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.app.flask_postgresql.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.app.flask_postgresql.controllers.create_profession_controller, while a change to src.app.flask_postgresql.controllers.create_profession_controller can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.app.flask_postgresql.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
20β10 src.infra.db_models.profession_db_model uses src.infra.db_models.db_base✕
- Connections
- 1 pair of types, where a type in src.infra.db_models.profession_db_model uses a type in src.infra.db_models.db_base.
- The types involved
src.infra.db_models.profession_db_model.ProfessionsDBModelβsrc.infra.db_models.db_base.Base
- Direction
- src.infra.db_models.profession_db_model uses src.infra.db_models.db_base, so a change to src.infra.db_models.db_base can break src.infra.db_models.profession_db_model, while a change to src.infra.db_models.profession_db_model can't break src.infra.db_models.db_base.
- Position
- Below the diagonal: src.infra.db_models.profession_db_model uses a module listed above it, which is the healthy direction.
21β12 src.infra.loggers.logger_default uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.infra.loggers.logger_default uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.infra.loggers.logger_default.LoggerDefaultβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.infra.loggers.logger_default uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.infra.loggers.logger_default, while a change to src.infra.loggers.logger_default can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.infra.loggers.logger_default uses a module listed above it, which is the healthy direction.
22β9 src.interactor.dtos.create_profession_dtos uses src.domain.entities.profession✕
- Connections
- 1 pair of types, where a type in src.interactor.dtos.create_profession_dtos uses a type in src.domain.entities.profession.
- The types involved
src.interactor.dtos.create_profession_dtos.CreateProfessionOutputDtoβsrc.domain.entities.profession.Profession
- Direction
- src.interactor.dtos.create_profession_dtos uses src.domain.entities.profession, so a change to src.domain.entities.profession can break src.interactor.dtos.create_profession_dtos, while a change to src.interactor.dtos.create_profession_dtos can't break src.domain.entities.profession.
- Position
- Below the diagonal: src.interactor.dtos.create_profession_dtos uses a module listed above it, which is the healthy direction.
23β9 src.interactor.interfaces.repositories.profession_repository uses src.domain.entities.profession✕
- Connections
- 1 pair of types, where a type in src.interactor.interfaces.repositories.profession_repository uses a type in src.domain.entities.profession.
- The types involved
src.interactor.interfaces.repositories.profession_repository.ProfessionRepositoryInterfaceβsrc.domain.entities.profession.Profession
- Direction
- src.interactor.interfaces.repositories.profession_repository uses src.domain.entities.profession, so a change to src.domain.entities.profession can break src.interactor.interfaces.repositories.profession_repository, while a change to src.interactor.interfaces.repositories.profession_repository can't break src.domain.entities.profession.
- Position
- Below the diagonal: src.interactor.interfaces.repositories.profession_repository uses a module listed above it, which is the healthy direction.
24β13 src.interactor.validations.create_profession_validator uses src.interactor.validations.base_input_validator✕
- Connections
- 1 pair of types, where a type in src.interactor.validations.create_profession_validator uses a type in src.interactor.validations.base_input_validator.
- The types involved
src.interactor.validations.create_profession_validator.CreateProfessionInputDtoValidatorβsrc.interactor.validations.base_input_validator.BaseInputValidator
- Direction
- src.interactor.validations.create_profession_validator uses src.interactor.validations.base_input_validator, so a change to src.interactor.validations.base_input_validator can break src.interactor.validations.create_profession_validator, while a change to src.interactor.validations.create_profession_validator can't break src.interactor.validations.base_input_validator.
- Position
- Below the diagonal: src.interactor.validations.create_profession_validator uses a module listed above it, which is the healthy direction.
25β3 src.app.cli_memory.controllers.create_profession_controller uses src.app.cli_memory.interfaces.cli_memory_controller_interface✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.controllers.create_profession_controller uses a type in src.app.cli_memory.interfaces.cli_memory_controller_interface.
- The types involved
src.app.cli_memory.controllers.create_profession_controller.CreateProfessionControllerβsrc.app.cli_memory.interfaces.cli_memory_controller_interface.CliMemoryControllerInterface
- Direction
- src.app.cli_memory.controllers.create_profession_controller uses src.app.cli_memory.interfaces.cli_memory_controller_interface, so a change to src.app.cli_memory.interfaces.cli_memory_controller_interface can break src.app.cli_memory.controllers.create_profession_controller, while a change to src.app.cli_memory.controllers.create_profession_controller can't break src.app.cli_memory.interfaces.cli_memory_controller_interface.
- Position
- Below the diagonal: src.app.cli_memory.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
25β12 src.app.cli_memory.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.controllers.create_profession_controller uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.app.cli_memory.controllers.create_profession_controller.CreateProfessionControllerβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.app.cli_memory.controllers.create_profession_controller uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.app.cli_memory.controllers.create_profession_controller, while a change to src.app.cli_memory.controllers.create_profession_controller can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.app.cli_memory.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
25β22 src.app.cli_memory.controllers.create_profession_controller uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.controllers.create_profession_controller uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.app.cli_memory.controllers.create_profession_controller.CreateProfessionControllerβsrc.interactor.dtos.create_profession_dtos.CreateProfessionInputDto
- Direction
- src.app.cli_memory.controllers.create_profession_controller uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.app.cli_memory.controllers.create_profession_controller, while a change to src.app.cli_memory.controllers.create_profession_controller can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.app.cli_memory.controllers.create_profession_controller uses a module listed above it, which is the healthy direction.
26β9 src.infra.repositories.profession_in_memory_repository uses src.domain.entities.profession✕
- Connections
- 1 pair of types, where a type in src.infra.repositories.profession_in_memory_repository uses a type in src.domain.entities.profession.
- The types involved
src.infra.repositories.profession_in_memory_repository.ProfessionInMemoryRepositoryβsrc.domain.entities.profession.Profession
- Direction
- src.infra.repositories.profession_in_memory_repository uses src.domain.entities.profession, so a change to src.domain.entities.profession can break src.infra.repositories.profession_in_memory_repository, while a change to src.infra.repositories.profession_in_memory_repository can't break src.domain.entities.profession.
- Position
- Below the diagonal: src.infra.repositories.profession_in_memory_repository uses a module listed above it, which is the healthy direction.
26β23 src.infra.repositories.profession_in_memory_repository uses src.interactor.interfaces.repositories.profession_repository✕
- Connections
- 1 pair of types, where a type in src.infra.repositories.profession_in_memory_repository uses a type in src.interactor.interfaces.repositories.profession_repository.
- The types involved
src.infra.repositories.profession_in_memory_repository.ProfessionInMemoryRepositoryβsrc.interactor.interfaces.repositories.profession_repository.ProfessionRepositoryInterface
- Direction
- src.infra.repositories.profession_in_memory_repository uses src.interactor.interfaces.repositories.profession_repository, so a change to src.interactor.interfaces.repositories.profession_repository can break src.infra.repositories.profession_in_memory_repository, while a change to src.infra.repositories.profession_in_memory_repository can't break src.interactor.interfaces.repositories.profession_repository.
- Position
- Below the diagonal: src.infra.repositories.profession_in_memory_repository uses a module listed above it, which is the healthy direction.
27β9 src.infra.repositories.profession_postgresql_repository uses src.domain.entities.profession✕
- Connections
- 1 pair of types, where a type in src.infra.repositories.profession_postgresql_repository uses a type in src.domain.entities.profession.
- The types involved
src.infra.repositories.profession_postgresql_repository.ProfessionPostgresqlRepositoryβsrc.domain.entities.profession.Profession
- Direction
- src.infra.repositories.profession_postgresql_repository uses src.domain.entities.profession, so a change to src.domain.entities.profession can break src.infra.repositories.profession_postgresql_repository, while a change to src.infra.repositories.profession_postgresql_repository can't break src.domain.entities.profession.
- Position
- Below the diagonal: src.infra.repositories.profession_postgresql_repository uses a module listed above it, which is the healthy direction.
27β20 src.infra.repositories.profession_postgresql_repository uses src.infra.db_models.profession_db_model✕
- Connections
- 1 pair of types, where a type in src.infra.repositories.profession_postgresql_repository uses a type in src.infra.db_models.profession_db_model.
- The types involved
src.infra.repositories.profession_postgresql_repository.ProfessionPostgresqlRepositoryβsrc.infra.db_models.profession_db_model.ProfessionsDBModel
- Direction
- src.infra.repositories.profession_postgresql_repository uses src.infra.db_models.profession_db_model, so a change to src.infra.db_models.profession_db_model can break src.infra.repositories.profession_postgresql_repository, while a change to src.infra.repositories.profession_postgresql_repository can't break src.infra.db_models.profession_db_model.
- Position
- Below the diagonal: src.infra.repositories.profession_postgresql_repository uses a module listed above it, which is the healthy direction.
27β23 src.infra.repositories.profession_postgresql_repository uses src.interactor.interfaces.repositories.profession_repository✕
- Connections
- 1 pair of types, where a type in src.infra.repositories.profession_postgresql_repository uses a type in src.interactor.interfaces.repositories.profession_repository.
- The types involved
src.infra.repositories.profession_postgresql_repository.ProfessionPostgresqlRepositoryβsrc.interactor.interfaces.repositories.profession_repository.ProfessionRepositoryInterface
- Direction
- src.infra.repositories.profession_postgresql_repository uses src.interactor.interfaces.repositories.profession_repository, so a change to src.interactor.interfaces.repositories.profession_repository can break src.infra.repositories.profession_postgresql_repository, while a change to src.infra.repositories.profession_postgresql_repository can't break src.interactor.interfaces.repositories.profession_repository.
- Position
- Below the diagonal: src.infra.repositories.profession_postgresql_repository uses a module listed above it, which is the healthy direction.
28β22 src.interactor.interfaces.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.interactor.interfaces.presenters.create_profession_presenter uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.interactor.interfaces.presenters.create_profession_presenter.CreateProfessionPresenterInterfaceβsrc.interactor.dtos.create_profession_dtos.CreateProfessionOutputDto
- Direction
- src.interactor.interfaces.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.interactor.interfaces.presenters.create_profession_presenter, while a change to src.interactor.interfaces.presenters.create_profession_presenter can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.interactor.interfaces.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
29β22 src.app.cli_memory.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.presenters.create_profession_presenter uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.app.cli_memory.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.dtos.create_profession_dtos.CreateProfessionOutputDto
- Direction
- src.app.cli_memory.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.app.cli_memory.presenters.create_profession_presenter, while a change to src.app.cli_memory.presenters.create_profession_presenter can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.app.cli_memory.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
29β28 src.app.cli_memory.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter✕
- Connections
- 1 pair of types, where a type in src.app.cli_memory.presenters.create_profession_presenter uses a type in src.interactor.interfaces.presenters.create_profession_presenter.
- The types involved
src.app.cli_memory.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.interfaces.presenters.create_profession_presenter.CreateProfessionPresenterInterface
- Direction
- src.app.cli_memory.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter, so a change to src.interactor.interfaces.presenters.create_profession_presenter can break src.app.cli_memory.presenters.create_profession_presenter, while a change to src.app.cli_memory.presenters.create_profession_presenter can't break src.interactor.interfaces.presenters.create_profession_presenter.
- Position
- Below the diagonal: src.app.cli_memory.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
30β22 src.app.flask_memory.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.app.flask_memory.presenters.create_profession_presenter uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.app.flask_memory.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.dtos.create_profession_dtos.CreateProfessionOutputDto
- Direction
- src.app.flask_memory.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.app.flask_memory.presenters.create_profession_presenter, while a change to src.app.flask_memory.presenters.create_profession_presenter can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.app.flask_memory.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
30β28 src.app.flask_memory.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter✕
- Connections
- 1 pair of types, where a type in src.app.flask_memory.presenters.create_profession_presenter uses a type in src.interactor.interfaces.presenters.create_profession_presenter.
- The types involved
src.app.flask_memory.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.interfaces.presenters.create_profession_presenter.CreateProfessionPresenterInterface
- Direction
- src.app.flask_memory.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter, so a change to src.interactor.interfaces.presenters.create_profession_presenter can break src.app.flask_memory.presenters.create_profession_presenter, while a change to src.app.flask_memory.presenters.create_profession_presenter can't break src.interactor.interfaces.presenters.create_profession_presenter.
- Position
- Below the diagonal: src.app.flask_memory.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
31β22 src.app.flask_postgresql.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.app.flask_postgresql.presenters.create_profession_presenter uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.app.flask_postgresql.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.dtos.create_profession_dtos.CreateProfessionOutputDto
- Direction
- src.app.flask_postgresql.presenters.create_profession_presenter uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.app.flask_postgresql.presenters.create_profession_presenter, while a change to src.app.flask_postgresql.presenters.create_profession_presenter can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.app.flask_postgresql.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
31β28 src.app.flask_postgresql.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter✕
- Connections
- 1 pair of types, where a type in src.app.flask_postgresql.presenters.create_profession_presenter uses a type in src.interactor.interfaces.presenters.create_profession_presenter.
- The types involved
src.app.flask_postgresql.presenters.create_profession_presenter.CreateProfessionPresenterβsrc.interactor.interfaces.presenters.create_profession_presenter.CreateProfessionPresenterInterface
- Direction
- src.app.flask_postgresql.presenters.create_profession_presenter uses src.interactor.interfaces.presenters.create_profession_presenter, so a change to src.interactor.interfaces.presenters.create_profession_presenter can break src.app.flask_postgresql.presenters.create_profession_presenter, while a change to src.app.flask_postgresql.presenters.create_profession_presenter can't break src.interactor.interfaces.presenters.create_profession_presenter.
- Position
- Below the diagonal: src.app.flask_postgresql.presenters.create_profession_presenter uses a module listed above it, which is the healthy direction.
32β12 src.interactor.use_cases.create_profession uses src.interactor.interfaces.logger.logger✕
- Connections
- 1 pair of types, where a type in src.interactor.use_cases.create_profession uses a type in src.interactor.interfaces.logger.logger.
- The types involved
src.interactor.use_cases.create_profession.CreateProfessionUseCaseβsrc.interactor.interfaces.logger.logger.LoggerInterface
- Direction
- src.interactor.use_cases.create_profession uses src.interactor.interfaces.logger.logger, so a change to src.interactor.interfaces.logger.logger can break src.interactor.use_cases.create_profession, while a change to src.interactor.use_cases.create_profession can't break src.interactor.interfaces.logger.logger.
- Position
- Below the diagonal: src.interactor.use_cases.create_profession uses a module listed above it, which is the healthy direction.
32β22 src.interactor.use_cases.create_profession uses src.interactor.dtos.create_profession_dtos✕
- Connections
- 1 pair of types, where a type in src.interactor.use_cases.create_profession uses a type in src.interactor.dtos.create_profession_dtos.
- The types involved
src.interactor.use_cases.create_profession.CreateProfessionUseCaseβsrc.interactor.dtos.create_profession_dtos.CreateProfessionInputDto
- Direction
- src.interactor.use_cases.create_profession uses src.interactor.dtos.create_profession_dtos, so a change to src.interactor.dtos.create_profession_dtos can break src.interactor.use_cases.create_profession, while a change to src.interactor.use_cases.create_profession can't break src.interactor.dtos.create_profession_dtos.
- Position
- Below the diagonal: src.interactor.use_cases.create_profession uses a module listed above it, which is the healthy direction.
32β23 src.interactor.use_cases.create_profession uses src.interactor.interfaces.repositories.profession_repository✕
- Connections
- 1 pair of types, where a type in src.interactor.use_cases.create_profession uses a type in src.interactor.interfaces.repositories.profession_repository.
- The types involved
src.interactor.use_cases.create_profession.CreateProfessionUseCaseβsrc.interactor.interfaces.repositories.profession_repository.ProfessionRepositoryInterface
- Direction
- src.interactor.use_cases.create_profession uses src.interactor.interfaces.repositories.profession_repository, so a change to src.interactor.interfaces.repositories.profession_repository can break src.interactor.use_cases.create_profession, while a change to src.interactor.use_cases.create_profession can't break src.interactor.interfaces.repositories.profession_repository.
- Position
- Below the diagonal: src.interactor.use_cases.create_profession uses a module listed above it, which is the healthy direction.
32β28 src.interactor.use_cases.create_profession uses src.interactor.interfaces.presenters.create_profession_presenter✕
- Connections
- 1 pair of types, where a type in src.interactor.use_cases.create_profession uses a type in src.interactor.interfaces.presenters.create_profession_presenter.
- The types involved
src.interactor.use_cases.create_profession.CreateProfessionUseCaseβsrc.interactor.interfaces.presenters.create_profession_presenter.CreateProfessionPresenterInterface
- Direction
- src.interactor.use_cases.create_profession uses src.interactor.interfaces.presenters.create_profession_presenter, so a change to src.interactor.interfaces.presenters.create_profession_presenter can break src.interactor.use_cases.create_profession, while a change to src.interactor.use_cases.create_profession can't break src.interactor.interfaces.presenters.create_profession_presenter.
- Position
- Below the diagonal: src.interactor.use_cases.create_profession uses a module listed above it, which is the healthy direction.
At a glance β Code Health
At a glance β Architecture
At a glance β Maturity
At a glance β Readiness
At a glance β Security
At a glance β Domain Modelling
Security & Compliance β OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 β Software Supply Chain Failures | 20 | High / Critical |
| A05:2025 β Injection | 11 | High / Critical |
Roadmap
Begin by resolving orphaned files in the codebase, specifically targeting profession_postgresql_repository.py, create_flask_postgresql_app.py, and cli_memory_process_handler.py, followed by addressing any remaining orphaned knowledge entries. Next, document significant design decisions in a structured ADR format within a dedicated folder to preserve architectural context. Finally, integrate static analysis tooling into the CI pipeline to block security regressions and resolve any banned license compliance issues.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 4 Orphaned file finding(s) in Knowledge Freshness β start with profession_postgresql_repository.py, create_flask_postgresql_app.py, cli_memory_process_handler.py. | +5.8 pts | Low | Knowledge Freshness |
| Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. | +2.8 pts | Low | Knowledge Freshness |
| Resolve the 1 Banned license finding(s) in License Compliance. | +2.5 pts | Low | License Compliance |
| 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. | +4.7 pts | Medium | Architecture documentation |
| Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack β so a security regression fails the build instead of landing. | +4.4 pts | Medium | Security & performance tooling |
| Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where Watchdog can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it. | +2.0 pts | Medium | Deployment & Rollback |
| 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. | +1.5 pts | Medium | Documentation (README) |
| Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services. | +1.0 pts | Medium | Rich vs anemic model |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.4 | Slop | Dependency Vulnerabilities: Critical vulnerability: REDACTED |
| REDACTED | 0.9 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/app/flask_memory/controllers/create_profession_controller.py | 7.8 | Near-clean | Code Duplication: Duplicated block (13 lines × 2) |
| src/app/flask_memory/create_flask_memory_app.py | 8.5 | Near-clean | Code Duplication: Duplicated block (23β24 lines × 2) |
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. 59 of 61 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 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 β 61 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, 35 of 114 do; the remainder are repo-wide signals β a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it β Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled Β· advisory β not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score β and this report, byte for byte β is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | β deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | β deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | β deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | β deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | β deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 Β· 0.31.0 | β deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 Β· 0.69.3 | β deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming β sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | β LLM Β· sampled Β· advisory |
Run transparency β what happened this run
- D8 Code Coverage β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here β but this repository measures it: a coverage step in CI (`pytest --cov`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.py), so the analyzer could not read the number β a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures β then the real number is read on the next scan.
- D16 Bus Factor β not measured this run β This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository β bus factor is not applicable (1 contributor(s) across 106 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
- D19 Documentation Quality β LLM provider failed β The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
- D22 Internal API Consistency β not measured this run β This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. This repository's source is written only in languages whose packages are published through a manifest, and no manifest in the tree makes a publication act: either there is no package manifest of any ecosystem (no package.json, pyproject.toml, setup.py, gemspec, Cargo.toml, pom.xml, build.gradle, composer.json, pubspec.yaml or mix.exs), or every one present declares in its package manager's own terms that it is not published (an npm package marked "private": true, a Cargo package with publish = false, a pubspec with publish_to: none, a Composer "project", a Poetry project with package-mode = false, or the "Private :: Do Not Upload" classifier). With no publication act there is no intentionally-exposed surface for API consistency to be judged over.
- D27 Navigability β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- AX6 Interface segregation β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach β not a finding that the repository is free of what this check looks for.
- C1 Data Protection β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach β not a finding that the repository lacks personal data controls.
- DM9 Scattered domain decisions β measured, with a gap in what it reached β Watchdog measured this, but not all of it. What it did not reach is a gap on our side β a collector, parser or image we have not built yet β so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Arm two tells a construction that PRODUCES a measurement from one that merely passes it along, and this repository's frontend does not compute that fact. A measurement built independently in two places would not appear above.
- GD1 Unfinished & placeholder code β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach β not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach β not a finding that the repository is free of what this check looks for.
- M3 Folder & project structure β measured, with a gap in what it reached β Watchdog measured this, but not all of it. What it did not reach is a gap on our side β a collector, parser or image we have not built yet β so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Whether the tests sit apart from production code is not visible here, because the suite is not in a form this pass reads. The test-separation credit is granted rather than withheld: this is a gap in the analyzer's language coverage, not a finding about the repository's tests. You can widen what we reach: keep the test surface somewhere a reader can find it without opening a binary β an exported/checked-in test source tree beside the production code makes the suite reviewable, diffable and discoverable by tooling.
- 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. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach β not a finding that the repository lacks web-security controls.
- X16 Unfloored truncation loop β 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, PHP, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala or Kotlin was found in this repository, 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.
- X18 Disposal-pattern correctness β 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, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala or PHP was found in this repository, 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.
- X29 Per-element action decided by a fixed element β 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, Rust, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach β not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach β not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap β a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically β it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type β a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module β one class/IIFE β earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity β an in-process token-stream comparison over sliding windows, with type-aware normalization β so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED β its repetition is the tool's, not the team's β so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies β runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- 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.
- 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.
- D11 Test Reliability: Flakiness is inferred from history/markers β Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles β a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree β a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy β mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history β a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual β undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded β it is never the team's dead code to delete.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample β it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project β a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns β a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) β it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases β a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned REDACTED, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension β code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS β files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen β a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen β a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics β a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body β a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain β infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present β it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see β only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
The LLM boundary
Dimensions
D1 Β· Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 Β· Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 Β· God Classes
0 god class(es) detected.
D4 Β· Code Duplication
3 duplicated block group(s) detected.
What to do
- Resolve the 1 Duplicated block (23β24 lines × 2) finding(s) in Code Duplication β start with create_flask_memory_app.py. β One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (13 lines × 2) finding(s) in Code Duplication β start with create_profession_controller.py. β One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicated block (8 lines × 2) finding(s) in Code Duplication β start with create_profession_controller.py. β One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Verified β provenance only; does not change the score.
D5 Β· Coupling
9 production modules (source-import), 0 dependency cycle(s), 0 unstable depended-on module(s). No manifest declares this repository's modules, so the modules are its top-level source directories and the edges the imports between them; 1 module(s) off the main sequence, with abstractness counted on 6 of the 9 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. β One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D6 Β· Cohesion (LCOM4)
0 of 7 classes have LCOM4 above 3.
D9 Β· Test Distribution
39 test methods: 39 unit, 0 integration, 0 BDD, 0 e2e. The Python suite contributes 39 test function(s) across 18 file(s) declaring at least one β every `def testβ¦` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.
D11 Β· Test Reliability
0 flaky across 1 measured tier(s). Python (repository root, 18 test files): measured (0 flaky).
D12 Β· Dependency Hygiene
68 outdated, 0 yanked pinned Python distributions. 74 of 75 shipped distributions were graded against pypi.org (1 not published there, 0 declared without an exact pin, which installs the newest release the declaration admits and so cannot be behind one). Only EXACT pins are graded for currency: a floor or a range already installs the newest release it admits, so reporting one would report this repository for being current. Whether a deliberate upper cap has itself gone stale is a different and weaker question, and is not asked. Whether any distribution is UNMAINTAINED is not graded β PyPI publishes no maintenance status, and release age does not stand in for one. Lockfiles are not read (poetry.lock, uv.lock, Pipfile.lock, pdm.lock), so a lock-resolved install is outside this verdict. Known CVEs in this dependency graph are D30's question.
What to do
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Verified β provenance only; does not change the score.
D13 Β· Secret Scanning
Secret scan ran and found no leaked secrets.
D14 Β· License Compliance
1 of 80 shipped Python distribution(s) use a banned license. Licences were resolved from PyPI over the distributions a consumer installs β this repository's 75 declared runtime requirement(s) closed transitively over each distribution's published `requires_dist` (6 reached that way). Requirements it states ONLY under an extra, a PEP 735 dependency group, a Poetry dev group or a dev-named requirements file are excluded: pip does not install any of them for a consumer. β This repository commits no dependency lockfile that this pass reads, so each licence is the one PyPI publishes for the distribution's CURRENT release rather than for a pinned version. 14 of them publish no licence on PyPI this pass can read; that is missing data, not a violation, and none of them is charged.
What to do
- Resolve the 1 Banned license finding(s) in License Compliance. β One of this dimension's main actionable groups (1 issue-level).
- Enforce License Compliance in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Verified β provenance only; does not change the score.
D15 Β· Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 Β· Explicit Debt
0 deducted task-comment markers across 1028 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.
D21 Β· Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 Β· Project Cohesion
0 of 1 build units (Python) flagged as possibly oversized/incoherent.
D28 Β· Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 Β· Static Analysis (SAST)
11 finding(s): 0 critical, 9 high, 2 medium, 0 low. 8 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` β one pinning decision is charged once, not once per lens.
What to do
- Resolve the 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 8 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. β One of this dimension's main actionable groups (8 issue-level, 0 of them charged here).
D30 Β· Dependency Vulnerabilities
14 finding(s): 1 critical, 4 high, 9 medium, 0 low.
What to do
- Resolve the 9 Medium CVE finding(s) in Dependency Vulnerabilities β start with REDACTED (9). β One of this dimension's main actionable groups (9 warning-level).
- Resolve the 4 High CVE finding(s) in Dependency Vulnerabilities β start with REDACTED (4). β One of this dimension's main actionable groups (4 issue-level).
- Resolve the 1 Critical vulnerability finding(s) in Dependency Vulnerabilities β start with REDACTED. β One of this dimension's main actionable groups (1 issue-level).
D34 Β· Knowledge Freshness
4 of 4 significant source file(s) are orphaned β their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/infra/repositories/profession_postgresql_repository.py. Counted over 4 of the 67 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 4 Orphaned file finding(s) in Knowledge Freshness β start with profession_postgresql_repository.py, create_flask_postgresql_app.py, cli_memory_process_handler.py. β One of this dimension's main actionable groups (4 recommendation-level).
- Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. β One of this dimension's main actionable groups (1 recommendation-level).
D35 Β· Change Coupling
No strong hidden change-coupling between production files.
D36 Β· Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. β One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing β start with REDACTED. β One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. β One of this dimension's main actionable groups (1 recommendation-level).
D43 Β· Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 Β· Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 75 dependency declaration(s). This dimension reads what the repository says about ITSELF β a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 Β· Code composition
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.
AX2 Β· Stateful singletons
AX3 Β· Project dependency cycles
AX4 Β· Dependency direction
DM1 Β· Aggregate boundaries
DM11 Β· Constructible invalid state
DM12 Β· Ambient inputs in the domain
DM4 Β· Rich vs anemic model
- `ProfessionsDBModel` is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) β the business logic lives in a service. β src/infra/db_models/profession_db_model.py:12
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM6 Β· Domain β infrastructure boundary
DM8 Β· Value-object opportunities
DM9 Β· Scattered domain decisions
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.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 Β· Folder & project structure
M4 Β· Documentation accuracy
- README.md links to `https//www.linkedin.com/pulse/implementation-clean-architecture-python-part-4-adding-watanabe/`, but `https/www.linkedin.com/pulse/implementation-clean-architecture-python-part-4-adding-watanabe` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. β README.md:11
What to do
- Reconcile the README with reality: README.md links to `https//www.linkedin.com/pulse/implementation-clean-architecture-python-part-4-adding-watanabe/`, but `https/www.linkedin.com/pulse/implementation-clean-architecture-python-part-4-adding-watanabe` does not exist.
P1 Β· CI/CD gates
P2 Β· Observability
What to do
- Consider OpenTelemetry tracing/metrics (opentelemetry-sdk) and a health-check endpoint (a /health route) for operability.
P3 Β· Security & performance tooling
- No static application security testing detected. For this repository's stack, add bandit, `semgrep --config=p/python`, or CodeQL's python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2475 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen β if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack β so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 Β· Deployment & Rollback
What to do
- Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where Watchdog can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
P8 Β· Schema migrations
X1 Β· Async correctness
X12 Β· Unreachable branch
X13 Β· Undrained process stream
X14 Β· Bypassable address classification
X15 Β· Unvalidated length from an untrusted reader
X17 Β· Uncapped recursion over a caller-supplied document
X19 Β· Unrestored process-global state
X21 Β· Side-effecting pattern guard
X22 Β· Contradicted release guard
X23 Β· Unguarded diagnostic materialisation
X24 Β· Document value interpolated into markup unescaped
X25 Β· Inert configuration knob
X26 Β· Unsynchronised callback handoff
X27 Β· Collection changed while being enumerated
X28 Β· Index access outside its own emptiness guard
X3 Β· Exception handling
X30 Β· Support guard that admits what it rejects
X4 Β· Structured logging
Reference β by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 100% | Exemplary | Strongest area. |
| Architecture | 69% | Strong | Solid. |
| Maturity | 53% | Adequate β gated by D34, M2 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Readiness | 54% | Adequate β gated by P3 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Security | 70% | Adequate β gated by D36 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Domain Modelling | 77% | Adequate β gated by DM4 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
Unscored β 1 check(s) recorded observations but carry no score
- P12 CI test-gate honesty β 1 observation(s) recorded Β· Reported, not scored β this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
Not evidenced β 2 control(s) we could not find positive evidence for
- P5 DR & Backup β not evidenced β repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P6 Release Hygiene β not evidenced β no changelog, version stamp or semver release tag in the repo
Not included β 66 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 Python 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.
- AX5 Architecture & structure β not assessed β architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation β not assessed β interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion β not applicable β not a vertical-slice architecture
- AX8 Test isolation β no test/production split to check
- AX9 CQS / query purity β no CQRS query handlers detected β query purity is not applicable to this codebase
- 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 β Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls β No access-control surface detected in the analyzed source β this repository registers no route and starts no server another machine can reach (no Flask/FastAPI/Starlette route, Django urlpatterns or class-based view, Tornado handler). Access control is therefore N/A here β a library or command-line tool is authorized by the application that serves it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- C3 Audit Trail β No personal data detected in a persisted data model β no PII-named field (email, first_name, date_of_birth, phone, β¦) or stored credential in a Django, SQLAlchemy, SQLModel, Peewee, Tortoise or MongoEngine model, a migration or a SQL schema β and no database or data-store client (Django ORM, SQLAlchemy, psycopg, PyMongo, β¦) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store 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, first_name, date_of_birth, phone, β¦) or stored credential on a Django, SQLAlchemy, SQLModel, Peewee, Tortoise or mongoengine model, in a migration or in a SQL schema β and no database or data-store client (django.db, sqlalchemy, psycopg2, pymongo, sqlite3, β¦) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights β No personal data detected in a persisted data model β no PII-named field (email, first_name, date_of_birth, phone, β¦) or stored credential on a Django, SQLAlchemy, SQLModel, Peewee, Tortoise or mongoengine model, in a migration or in a SQL schema β and no database or data-store client (django.db, sqlalchemy, psycopg2, pymongo, sqlite3, β¦) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D10 Test Quality β ~964 lines of test source are present (.py) but no test cases reached the test census for this repository β no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise β so skipped/assertion-free tests couldn't be counted. Not scored β this is a gap in the analyzer, not a finding about this repository.
- D16 Bus Factor β single-contributor repository β bus factor is not applicable
- D18 Solution Shape β D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D19 Documentation Quality β LLM evaluation failed
- D20 ADR Quality β N/A β this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
- D22 Internal API Consistency β No intentionally-exposed public API to evaluate for consistency.
- 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. Aggregate roots were found in only one source directory (infra), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (β₯2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it β e.g. `architecture:` β `contexts:` β `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value β No inline comments to assess β comment value is not applicable here.
- D25 ADR Conformance β no ADRs to check
- D27 Navigability β D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.py), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D31 IaC & Container Security β No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) β No personal data was found crossing a boundary the PII/GDPR ruleset checks β nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D37 Vulnerability-disclosure Policy β No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency β D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement β No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement β No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement β No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity β no checkable ADRs, and no project-reference graph for the cycle pass to read β so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage β Coverage not included β suite not readable by the collector
- DM10 One transaction, one aggregate β no repository writes detected β no operation to judge against the one-aggregate rule
- DM2 Strongly-typed ids β no id-bearing domain types detected β strongly-typed-id adoption not assessable
- DM3 Integration-event coupling β no integration events detected β coupling check not applicable
- DM5 Encapsulated state β no domain entities found β DM5 grades how entities protect their state, and this repository declares none
- DM7 Repository granularity β no repository abstraction detected (e.g. uses a document session)
- ED1 Event-Driven β not scored β this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency β no mutating command handlers or message consumers detected β idempotency check not applicable
- ES1 Event Sourcing β not scored β this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code β no source files were read β this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs β not analysed β these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P7 Outbound HTTP resilience β no outbound HTTP usage detected β no HTTP client call or construction in the Python source (service entry point: src/app/flask_memory/create_flask_memory_app.py:3 ())
- P9 Domain vs controller coverage β no coverage report found on disk β produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline β Not applicable: no benchmark suite was found. This check searched for 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: Python runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path β no pools, stack allocation or value types β so allocation awareness is not something this code can be rated on.
- PF3 Async & latency hygiene β Not applicable: this repository declares no async functions, so there is no asynchronous code for a blocking call to stall.
- S1 Web-Security Posture β Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- X10 Duplicated predicate β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- X16 Unfloored truncation loop β 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
- X18 Disposal-pattern correctness β 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
- X2 Cancellation propagation β no C# was loaded; this repository's Python was read, and no request in it can be cancelled by a caller β a Python request takes no token: asyncio cancels the task and trio or anyio the scope that made it, from outside the call, and requests, httpx, aiohttp and gRPC take a timeout, not a cancellation
- X20 Mistyped argument guard β This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception β .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X29 Per-element action decided by a fixed element β 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
- X32 Type resolved by simple name across every loaded assembly β This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X5 Nullable reference types β not analysed β these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A β Findings (grouped)
Critical β 15 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Banned license: pylint
- REDACTED
- REDACTED
Serious β 19 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (23β24 lines × 2) src/app/flask_memory/create_flask_memory_app.py:31
- Duplicated block (13 lines × 2) src/app/flask_memory/controllers/create_profession_controller.py:24
- Duplicated block (8 lines × 2) src/app/flask_memory/controllers/create_profession_controller.py:39
- Off the main sequence: src/domain
- Anemic entity: ProfessionsDBModel src/infra/db_models/profession_db_model.py:12
- Coverage collected but not gated
Minor β 12 finding(s)
- Orphaned file src/infra/repositories/profession_postgresql_repository.py:1
- Orphaned file src/app/flask_postgresql/create_flask_postgresql_app.py:1
- Orphaned file cli_memory_process_handler.py:1
- Orphaned file alembic/env.py:1
- Orphaned files with no living knowledge
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- README/code drift README.md:11
- No SAST
Minor β 68 finding(s)
- Outdated: alabaster
- Outdated: alembic
- Outdated: astroid
- Outdated: babel
- Outdated: blinker
- Outdated: cerberus
- Outdated: certifi
- Outdated: cfgv
- Outdated: charset-normalizer
- Outdated: click
- Outdated: coverage
- Outdated: dill
- Outdated: distlib
- Outdated: docutils
- Outdated: exceptiongroup
- Outdated: filelock
- Outdated: flask
- Outdated: greenlet
- Outdated: identify
- Outdated: idna
- Outdated: imagesize
- Outdated: importlib-metadata
- Outdated: iniconfig
- Outdated: isort
- Outdated: itsdangerous
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-2ace22a9135b4ce5a8169a7ebec4cce0/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-2ace22a9135b4ce5a8169a7ebec4cce0/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 . | 11 | artifacts/raw/semgrep.json |
| D30 Β· Dependency Vulnerabilities | osv-scanner | β | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 14 | artifacts/raw/osv-scanner.json |
| D31 Β· IaC & Container Security | trivy | β | trivy: not applicable β No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | β |
| D32 Β· Data Compliance (PII/GDPR) | semgrep | β | semgrep: not applicable β No personal data was found crossing a boundary the PII/GDPR ruleset checks β nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | β |
| D37 Β· Vulnerability-disclosure Policy | disclosure | β | disclosure: not applicable β No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | β |
| D40 Β· Network Egress Confinement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | β |
| D41 Β· Kernel & Syscall Confinement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | β |
| D42 Β· Runtime Threat Enforcement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | β |
| D43 Β· Malicious Dependencies | osv-scanner | β | osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . | 0 | artifacts/raw/osv-scanner.json |