Executive summary
⚠ A critical security finding caps this grade — resolve it before relying on the score below; see the Security lens.
Preview (pre-1.0). This repo hasn't declared a stable release, so it's judged against a relaxed, pre-production bar.
The system holds a 68% health score, marking it as a workable asset carrying real risk. While the codebase is structurally sound and logically mature, its operational readiness is critically low. This gap creates a fragile foundation where daily changes are slower and more expensive than they need to be, exposing the business to preventable outages and security regressions. The value tied up here is significant, with a rebuild cost of approximately €87,000, yet the immediate priority is not reconstruction but stabilization of the operational layer.
The most pressing theme is operational fragility. With a readiness score of just 51%, the system lacks the safety nets required for reliable production use. There is no automated security scanning in the pipeline, meaning defects slip through to production rather than being caught early. Furthermore, the absence of documented disaster recovery procedures and strict promotion gates leaves the business vulnerable to data loss and unauthorized changes. This exposure translates directly into higher costs, as fixing issues in production is exponentially more expensive than preventing them in development.
A second theme is the velocity tax on every change. Although the code itself is clean, the lack of automated safeguards and clear operational maturity forces engineers to spend extra time on manual verification and risk mitigation. This inefficiency compounds with every modification, slowing down feature delivery and increasing the likelihood of human error. The cost of this drag is substantial, effectively taxing the team’s capacity to innovate and respond to market needs.
On the positive side, the code quality and domain modeling are excellent, indicating that the core logic is well-understood and maintainable. The system is not a rewrite candidate; it is a solid foundation that needs better operational guardrails. To maximize leverage, the team should immediately integrate static application security testing into the continuous integration pipeline. This single action pays for itself quickly by preventing security regressions and should be followed by codifying backup and recovery procedures. This focused approach addresses the highest risks with minimal effort, securing the system’s future stability.
Raise Readiness 51 → 70 (the Healthy floor) ⇒ headline 68 → ~76.
Rebuild cost & value ~ Modeled — €29,000–€150,000
| Cost to rebuild | €29,000–€150,000 |
|---|---|
| Domain complexity | REDACTED |
| Quality factor | 0.9× (at 68% quality) |
| Size & shape | Medium · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~0.6 person-years of build effort (about ~€87,000 to rebuild). Its weakest lens is Readiness at 51% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency matrix
| depends on → | 1 examples.chatbot_with_guardrails.domain.services.chatbot_service | 2 examples.chatbot_with_memory.domain.services.chatbot_memory_service | 3 examples.simple_chatbot.domain.services.chatbot_service | 4 examples.url_shortener.domain.services.link_service | 5 examples.web_search_chatbot.domain.services.chatbot_service | 6 examples.webhook_receiver.domain.services.webhook_event_service | 7 src._core.application.dtos.base_payload | 8 src._core.application.dtos.base_request | 9 src._core.application.dtos.base_response | 10 src._core.domain.dtos.rag | 11 src._core.domain.value_objects.value_object | 12 src._core.exceptions.base_exception | 13 src._core.infrastructure.admin.audit.dtos.audit_log_dto | 14 src._core.infrastructure.persistence.rdb.database | 15 src._core.infrastructure.vectors.vector_model | 16 src.admin_identity.domain.dtos.admin_identity_dto | 17 src.ai_usage.domain.dtos.ai_usage_dto | 18 src.auth.domain.dtos.auth_dto | 19 src.classification.domain.dtos.classification_dto | 20 src.docs.domain.services.document_service | 21 src.user.domain.dtos.user_dto | 22 examples.blog.post.interface.server.schemas.post_schema | 23 src._core.domain.validation | 24 src._core.domain.value_objects.agent_usage_record | 25 src._core.domain.value_objects.dynamo_key | 26 src._core.domain.value_objects.vector_query | 27 src.admin_identity.domain.services.admin_auth_service | 28 src.admin_identity.domain.services.admin_identity_service | 29 src.admin_identity.interface.server.schemas.admin_auth_schema | 30 src.ai_usage.interface.server.schemas.ai_usage_schema | 31 src.auth.domain.services.auth_service | 32 src.auth.interface.server.schemas.auth_schema | 33 src.docs.interface.server.routers | 34 src.user.interface.server.schemas.user_schema | 35 examples.blog.post.domain.services.post_service | 36 src.admin_identity.application.use_cases.admin_account_use_case | 37 src.admin_identity.application.use_cases.admin_auth_use_case | 38 src.ai_usage.domain.services.ai_usage_service | 39 src.auth.application.use_cases.auth_use_case | 40 src.user.domain.services.user_service |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 examples.chatbot_with_guardrails.domain.services.chatbot_service | ||||||||||||||||||||||||||||||||||||||||
| 2 examples.chatbot_with_memory.domain.services.chatbot_memory_service | ||||||||||||||||||||||||||||||||||||||||
| 3 examples.simple_chatbot.domain.services.chatbot_service | ||||||||||||||||||||||||||||||||||||||||
| 4 examples.url_shortener.domain.services.link_service | ||||||||||||||||||||||||||||||||||||||||
| 5 examples.web_search_chatbot.domain.services.chatbot_service | ||||||||||||||||||||||||||||||||||||||||
| 6 examples.webhook_receiver.domain.services.webhook_event_service | ||||||||||||||||||||||||||||||||||||||||
| 7 src._core.application.dtos.base_payload | ||||||||||||||||||||||||||||||||||||||||
| 8 src._core.application.dtos.base_request | ||||||||||||||||||||||||||||||||||||||||
| 9 src._core.application.dtos.base_response | ||||||||||||||||||||||||||||||||||||||||
| 10 src._core.domain.dtos.rag | ||||||||||||||||||||||||||||||||||||||||
| 11 src._core.domain.value_objects.value_object | ||||||||||||||||||||||||||||||||||||||||
| 12 src._core.exceptions.base_exception | ||||||||||||||||||||||||||||||||||||||||
| 13 src._core.infrastructure.admin.audit.dtos.audit_log_dto | ||||||||||||||||||||||||||||||||||||||||
| 14 src._core.infrastructure.persistence.rdb.database | ||||||||||||||||||||||||||||||||||||||||
| 15 src._core.infrastructure.vectors.vector_model | ||||||||||||||||||||||||||||||||||||||||
| 16 src.admin_identity.domain.dtos.admin_identity_dto | ||||||||||||||||||||||||||||||||||||||||
| 17 src.ai_usage.domain.dtos.ai_usage_dto | ||||||||||||||||||||||||||||||||||||||||
| 18 src.auth.domain.dtos.auth_dto | ||||||||||||||||||||||||||||||||||||||||
| 19 src.classification.domain.dtos.classification_dto | ||||||||||||||||||||||||||||||||||||||||
| 20 src.docs.domain.services.document_service | ||||||||||||||||||||||||||||||||||||||||
| 21 src.user.domain.dtos.user_dto | ||||||||||||||||||||||||||||||||||||||||
| 22 examples.blog.post.interface.server.schemas.post_schema | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 23 src._core.domain.validation | 1 | |||||||||||||||||||||||||||||||||||||||
| 24 src._core.domain.value_objects.agent_usage_record | 1 | |||||||||||||||||||||||||||||||||||||||
| 25 src._core.domain.value_objects.dynamo_key | 2 | |||||||||||||||||||||||||||||||||||||||
| 26 src._core.domain.value_objects.vector_query | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 src.admin_identity.domain.services.admin_auth_service | 3 | |||||||||||||||||||||||||||||||||||||||
| 28 src.admin_identity.domain.services.admin_identity_service | 3 | |||||||||||||||||||||||||||||||||||||||
| 29 src.admin_identity.interface.server.schemas.admin_auth_schema | 3 | 3 | ||||||||||||||||||||||||||||||||||||||
| 30 src.ai_usage.interface.server.schemas.ai_usage_schema | 1 | 3 | ||||||||||||||||||||||||||||||||||||||
| 31 src.auth.domain.services.auth_service | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 32 src.auth.interface.server.schemas.auth_schema | 4 | 2 | ||||||||||||||||||||||||||||||||||||||
| 33 src.docs.interface.server.routers | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 34 src.user.interface.server.schemas.user_schema | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 35 examples.blog.post.domain.services.post_service | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 src.admin_identity.application.use_cases.admin_account_use_case | 2 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 37 src.admin_identity.application.use_cases.admin_auth_use_case | 3 | 1 | 1 | 4 | ||||||||||||||||||||||||||||||||||||
| 38 src.ai_usage.domain.services.ai_usage_service | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 src.auth.application.use_cases.auth_use_case | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||||||||||||
| 40 src.user.domain.services.user_service | 1 | 2 |
22→8 examples.blog.post.interface.server.schemas.post_schema depends on src._core.application.dtos.base_request✕
- Type pairs
- 2 distinct (type in examples.blog.post.interface.server.schemas.post_schema → type in src._core.application.dtos.base_request) references.
- Which types
examples.blog.post.interface.server.schemas.post_schema.CreatePostRequest→src._core.application.dtos.base_request.BaseRequestexamples.blog.post.interface.server.schemas.post_schema.UpdatePostRequest→src._core.application.dtos.base_request.BaseRequest
- Direction
- examples.blog.post.interface.server.schemas.post_schema uses src._core.application.dtos.base_request. Changing src._core.application.dtos.base_request can break examples.blog.post.interface.server.schemas.post_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→9 examples.blog.post.interface.server.schemas.post_schema depends on src._core.application.dtos.base_response✕
- Type pairs
- 1 distinct (type in examples.blog.post.interface.server.schemas.post_schema → type in src._core.application.dtos.base_response) reference.
- Which types
examples.blog.post.interface.server.schemas.post_schema.PostResponse→src._core.application.dtos.base_response.BaseResponse
- Direction
- examples.blog.post.interface.server.schemas.post_schema uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break examples.blog.post.interface.server.schemas.post_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→12 src._core.domain.validation depends on src._core.exceptions.base_exception✕
- Type pairs
- 1 distinct (type in src._core.domain.validation → type in src._core.exceptions.base_exception) reference.
- Which types
src._core.domain.validation.ValidationFailed→src._core.exceptions.base_exception.BaseCustomException
- Direction
- src._core.domain.validation uses src._core.exceptions.base_exception. Changing src._core.exceptions.base_exception can break src._core.domain.validation, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→11 src._core.domain.value_objects.agent_usage_record depends on src._core.domain.value_objects.value_object✕
- Type pairs
- 1 distinct (type in src._core.domain.value_objects.agent_usage_record → type in src._core.domain.value_objects.value_object) reference.
- Which types
src._core.domain.value_objects.agent_usage_record.AgentUsageRecord→src._core.domain.value_objects.value_object.ValueObject
- Direction
- src._core.domain.value_objects.agent_usage_record uses src._core.domain.value_objects.value_object. Changing src._core.domain.value_objects.value_object can break src._core.domain.value_objects.agent_usage_record, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→11 src._core.domain.value_objects.dynamo_key depends on src._core.domain.value_objects.value_object✕
- Type pairs
- 2 distinct (type in src._core.domain.value_objects.dynamo_key → type in src._core.domain.value_objects.value_object) references.
- Which types
src._core.domain.value_objects.dynamo_key.DynamoKey→src._core.domain.value_objects.value_object.ValueObjectsrc._core.domain.value_objects.dynamo_key.SortKeyCondition→src._core.domain.value_objects.value_object.ValueObject
- Direction
- src._core.domain.value_objects.dynamo_key uses src._core.domain.value_objects.value_object. Changing src._core.domain.value_objects.value_object can break src._core.domain.value_objects.dynamo_key, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→11 src._core.domain.value_objects.vector_query depends on src._core.domain.value_objects.value_object✕
- Type pairs
- 1 distinct (type in src._core.domain.value_objects.vector_query → type in src._core.domain.value_objects.value_object) reference.
- Which types
src._core.domain.value_objects.vector_query.VectorQuery→src._core.domain.value_objects.value_object.ValueObject
- Direction
- src._core.domain.value_objects.vector_query uses src._core.domain.value_objects.value_object. Changing src._core.domain.value_objects.value_object can break src._core.domain.value_objects.vector_query, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→16 src.admin_identity.domain.services.admin_auth_service depends on src.admin_identity.domain.dtos.admin_identity_dto✕
- Type pairs
- 3 distinct (type in src.admin_identity.domain.services.admin_auth_service → type in src.admin_identity.domain.dtos.admin_identity_dto) references.
- Which types
src.admin_identity.domain.services.admin_auth_service.AdminAuthService→src.admin_identity.domain.dtos.admin_identity_dto.AdminIdentityDTOsrc.admin_identity.domain.services.admin_auth_service.AdminAuthService→src.admin_identity.domain.dtos.admin_identity_dto.AdminRefreshTokenDTOsrc.admin_identity.domain.services.admin_auth_service.AdminAuthService→src.admin_identity.domain.dtos.admin_identity_dto.AdminTokenConfig
- Direction
- src.admin_identity.domain.services.admin_auth_service uses src.admin_identity.domain.dtos.admin_identity_dto. Changing src.admin_identity.domain.dtos.admin_identity_dto can break src.admin_identity.domain.services.admin_auth_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→16 src.admin_identity.domain.services.admin_identity_service depends on src.admin_identity.domain.dtos.admin_identity_dto✕
- Type pairs
- 3 distinct (type in src.admin_identity.domain.services.admin_identity_service → type in src.admin_identity.domain.dtos.admin_identity_dto) references.
- Which types
src.admin_identity.domain.services.admin_identity_service.AdminIdentityService→src.admin_identity.domain.dtos.admin_identity_dto.AdminIdentityDTOsrc.admin_identity.domain.services.admin_identity_service.AdminIdentityService→src.admin_identity.domain.dtos.admin_identity_dto.BootstrapAdminDTOsrc.admin_identity.domain.services.admin_identity_service.AdminIdentityService→src.admin_identity.domain.dtos.admin_identity_dto.CreateAdminAccountDTO
- Direction
- src.admin_identity.domain.services.admin_identity_service uses src.admin_identity.domain.dtos.admin_identity_dto. Changing src.admin_identity.domain.dtos.admin_identity_dto can break src.admin_identity.domain.services.admin_identity_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→8 src.admin_identity.interface.server.schemas.admin_auth_schema depends on src._core.application.dtos.base_request✕
- Type pairs
- 3 distinct (type in src.admin_identity.interface.server.schemas.admin_auth_schema → type in src._core.application.dtos.base_request) references.
- Which types
src.admin_identity.interface.server.schemas.admin_auth_schema.AdminLoginRequest→src._core.application.dtos.base_request.BaseRequestsrc.admin_identity.interface.server.schemas.admin_auth_schema.AdminLogoutRequest→src._core.application.dtos.base_request.BaseRequestsrc.admin_identity.interface.server.schemas.admin_auth_schema.AdminRefreshTokenRequest→src._core.application.dtos.base_request.BaseRequest
- Direction
- src.admin_identity.interface.server.schemas.admin_auth_schema uses src._core.application.dtos.base_request. Changing src._core.application.dtos.base_request can break src.admin_identity.interface.server.schemas.admin_auth_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→9 src.admin_identity.interface.server.schemas.admin_auth_schema depends on src._core.application.dtos.base_response✕
- Type pairs
- 3 distinct (type in src.admin_identity.interface.server.schemas.admin_auth_schema → type in src._core.application.dtos.base_response) references.
- Which types
src.admin_identity.interface.server.schemas.admin_auth_schema.AdminResponse→src._core.application.dtos.base_response.BaseResponsesrc.admin_identity.interface.server.schemas.admin_auth_schema.AdminTokenPairData→src._core.application.dtos.base_response.BaseResponsesrc.admin_identity.interface.server.schemas.admin_auth_schema.AdminTokenPairResponse→src._core.application.dtos.base_response.BaseResponse
- Direction
- src.admin_identity.interface.server.schemas.admin_auth_schema uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break src.admin_identity.interface.server.schemas.admin_auth_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→8 src.ai_usage.interface.server.schemas.ai_usage_schema depends on src._core.application.dtos.base_request✕
- Type pairs
- 1 distinct (type in src.ai_usage.interface.server.schemas.ai_usage_schema → type in src._core.application.dtos.base_request) reference.
- Which types
src.ai_usage.interface.server.schemas.ai_usage_schema.CreateAiUsageRequest→src._core.application.dtos.base_request.BaseRequest
- Direction
- src.ai_usage.interface.server.schemas.ai_usage_schema uses src._core.application.dtos.base_request. Changing src._core.application.dtos.base_request can break src.ai_usage.interface.server.schemas.ai_usage_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→9 src.ai_usage.interface.server.schemas.ai_usage_schema depends on src._core.application.dtos.base_response✕
- Type pairs
- 3 distinct (type in src.ai_usage.interface.server.schemas.ai_usage_schema → type in src._core.application.dtos.base_response) references.
- Which types
src.ai_usage.interface.server.schemas.ai_usage_schema.AiUsageByOrgResponse→src._core.application.dtos.base_response.BaseResponsesrc.ai_usage.interface.server.schemas.ai_usage_schema.AiUsageResponse→src._core.application.dtos.base_response.BaseResponsesrc.ai_usage.interface.server.schemas.ai_usage_schema.AiUsageSummaryResponse→src._core.application.dtos.base_response.BaseResponse
- Direction
- src.ai_usage.interface.server.schemas.ai_usage_schema uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break src.ai_usage.interface.server.schemas.ai_usage_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→18 src.auth.domain.services.auth_service depends on src.auth.domain.dtos.auth_dto✕
- Type pairs
- 2 distinct (type in src.auth.domain.services.auth_service → type in src.auth.domain.dtos.auth_dto) references.
- Which types
src.auth.domain.services.auth_service.AuthService→src.auth.domain.dtos.auth_dto.AuthTokenConfigsrc.auth.domain.services.auth_service.AuthService→src.auth.domain.dtos.auth_dto.RefreshTokenDTO
- Direction
- src.auth.domain.services.auth_service uses src.auth.domain.dtos.auth_dto. Changing src.auth.domain.dtos.auth_dto can break src.auth.domain.services.auth_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→21 src.auth.domain.services.auth_service depends on src.user.domain.dtos.user_dto✕
- Type pairs
- 1 distinct (type in src.auth.domain.services.auth_service → type in src.user.domain.dtos.user_dto) reference.
- Which types
src.auth.domain.services.auth_service.AuthService→src.user.domain.dtos.user_dto.UserDTO
- Direction
- src.auth.domain.services.auth_service uses src.user.domain.dtos.user_dto. Changing src.user.domain.dtos.user_dto can break src.auth.domain.services.auth_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→8 src.auth.interface.server.schemas.auth_schema depends on src._core.application.dtos.base_request✕
- Type pairs
- 4 distinct (type in src.auth.interface.server.schemas.auth_schema → type in src._core.application.dtos.base_request) references.
- Which types
src.auth.interface.server.schemas.auth_schema.LoginRequest→src._core.application.dtos.base_request.BaseRequestsrc.auth.interface.server.schemas.auth_schema.LogoutRequest→src._core.application.dtos.base_request.BaseRequestsrc.auth.interface.server.schemas.auth_schema.RefreshTokenRequest→src._core.application.dtos.base_request.BaseRequestsrc.auth.interface.server.schemas.auth_schema.RegisterRequest→src._core.application.dtos.base_request.BaseRequest
- Direction
- src.auth.interface.server.schemas.auth_schema uses src._core.application.dtos.base_request. Changing src._core.application.dtos.base_request can break src.auth.interface.server.schemas.auth_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→9 src.auth.interface.server.schemas.auth_schema depends on src._core.application.dtos.base_response✕
- Type pairs
- 2 distinct (type in src.auth.interface.server.schemas.auth_schema → type in src._core.application.dtos.base_response) references.
- Which types
src.auth.interface.server.schemas.auth_schema.TokenPairData→src._core.application.dtos.base_response.BaseResponsesrc.auth.interface.server.schemas.auth_schema.TokenPairResponse→src._core.application.dtos.base_response.BaseResponse
- Direction
- src.auth.interface.server.schemas.auth_schema uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break src.auth.interface.server.schemas.auth_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→9 src.docs.interface.server.routers depends on src._core.application.dtos.base_response✕
- Type pairs
- 1 distinct (type in src.docs.interface.server.routers → type in src._core.application.dtos.base_response) reference.
- Which types
src.docs.interface.server.routers.docs_router→src._core.application.dtos.base_response.SuccessResponse
- Direction
- src.docs.interface.server.routers uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break src.docs.interface.server.routers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→20 src.docs.interface.server.routers depends on src.docs.domain.services.document_service✕
- Type pairs
- 1 distinct (type in src.docs.interface.server.routers → type in src.docs.domain.services.document_service) reference.
- Which types
src.docs.interface.server.routers.docs_router→src.docs.domain.services.document_service.DocumentService
- Direction
- src.docs.interface.server.routers uses src.docs.domain.services.document_service. Changing src.docs.domain.services.document_service can break src.docs.interface.server.routers, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→8 src.user.interface.server.schemas.user_schema depends on src._core.application.dtos.base_request✕
- Type pairs
- 2 distinct (type in src.user.interface.server.schemas.user_schema → type in src._core.application.dtos.base_request) references.
- Which types
src.user.interface.server.schemas.user_schema.CreateUserRequest→src._core.application.dtos.base_request.BaseRequestsrc.user.interface.server.schemas.user_schema.UpdateUserRequest→src._core.application.dtos.base_request.BaseRequest
- Direction
- src.user.interface.server.schemas.user_schema uses src._core.application.dtos.base_request. Changing src._core.application.dtos.base_request can break src.user.interface.server.schemas.user_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→9 src.user.interface.server.schemas.user_schema depends on src._core.application.dtos.base_response✕
- Type pairs
- 1 distinct (type in src.user.interface.server.schemas.user_schema → type in src._core.application.dtos.base_response) reference.
- Which types
src.user.interface.server.schemas.user_schema.UserResponse→src._core.application.dtos.base_response.BaseResponse
- Direction
- src.user.interface.server.schemas.user_schema uses src._core.application.dtos.base_response. Changing src._core.application.dtos.base_response can break src.user.interface.server.schemas.user_schema, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→22 examples.blog.post.domain.services.post_service depends on examples.blog.post.interface.server.schemas.post_schema✕
- Type pairs
- 1 distinct (type in examples.blog.post.domain.services.post_service → type in examples.blog.post.interface.server.schemas.post_schema) reference.
- Which types
examples.blog.post.domain.services.post_service.PostService→examples.blog.post.interface.server.schemas.post_schema.CreatePostRequest
- Direction
- examples.blog.post.domain.services.post_service uses examples.blog.post.interface.server.schemas.post_schema. Changing examples.blog.post.interface.server.schemas.post_schema can break examples.blog.post.domain.services.post_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→16 src.admin_identity.application.use_cases.admin_account_use_case depends on src.admin_identity.domain.dtos.admin_identity_dto✕
- Type pairs
- 2 distinct (type in src.admin_identity.application.use_cases.admin_account_use_case → type in src.admin_identity.domain.dtos.admin_identity_dto) references.
- Which types
src.admin_identity.application.use_cases.admin_account_use_case.AdminAccountUseCase→src.admin_identity.domain.dtos.admin_identity_dto.AdminIdentityDTOsrc.admin_identity.application.use_cases.admin_account_use_case.AdminAccountUseCase→src.admin_identity.domain.dtos.admin_identity_dto.CreateAdminAccountDTO
- Direction
- src.admin_identity.application.use_cases.admin_account_use_case uses src.admin_identity.domain.dtos.admin_identity_dto. Changing src.admin_identity.domain.dtos.admin_identity_dto can break src.admin_identity.application.use_cases.admin_account_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→27 src.admin_identity.application.use_cases.admin_account_use_case depends on src.admin_identity.domain.services.admin_auth_service✕
- Type pairs
- 1 distinct (type in src.admin_identity.application.use_cases.admin_account_use_case → type in src.admin_identity.domain.services.admin_auth_service) reference.
- Which types
src.admin_identity.application.use_cases.admin_account_use_case.AdminAccountUseCase→src.admin_identity.domain.services.admin_auth_service.AdminAuthService
- Direction
- src.admin_identity.application.use_cases.admin_account_use_case uses src.admin_identity.domain.services.admin_auth_service. Changing src.admin_identity.domain.services.admin_auth_service can break src.admin_identity.application.use_cases.admin_account_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→28 src.admin_identity.application.use_cases.admin_account_use_case depends on src.admin_identity.domain.services.admin_identity_service✕
- Type pairs
- 1 distinct (type in src.admin_identity.application.use_cases.admin_account_use_case → type in src.admin_identity.domain.services.admin_identity_service) reference.
- Which types
src.admin_identity.application.use_cases.admin_account_use_case.AdminAccountUseCase→src.admin_identity.domain.services.admin_identity_service.AdminIdentityService
- Direction
- src.admin_identity.application.use_cases.admin_account_use_case uses src.admin_identity.domain.services.admin_identity_service. Changing src.admin_identity.domain.services.admin_identity_service can break src.admin_identity.application.use_cases.admin_account_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→16 src.admin_identity.application.use_cases.admin_auth_use_case depends on src.admin_identity.domain.dtos.admin_identity_dto✕
- Type pairs
- 3 distinct (type in src.admin_identity.application.use_cases.admin_auth_use_case → type in src.admin_identity.domain.dtos.admin_identity_dto) references.
- Which types
src.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.domain.dtos.admin_identity_dto.AdminIdentityDTOsrc.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.domain.dtos.admin_identity_dto.AdminSessionDTOsrc.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.domain.dtos.admin_identity_dto.AdminTokenConfig
- Direction
- src.admin_identity.application.use_cases.admin_auth_use_case uses src.admin_identity.domain.dtos.admin_identity_dto. Changing src.admin_identity.domain.dtos.admin_identity_dto can break src.admin_identity.application.use_cases.admin_auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→27 src.admin_identity.application.use_cases.admin_auth_use_case depends on src.admin_identity.domain.services.admin_auth_service✕
- Type pairs
- 1 distinct (type in src.admin_identity.application.use_cases.admin_auth_use_case → type in src.admin_identity.domain.services.admin_auth_service) reference.
- Which types
src.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.domain.services.admin_auth_service.AdminAuthService
- Direction
- src.admin_identity.application.use_cases.admin_auth_use_case uses src.admin_identity.domain.services.admin_auth_service. Changing src.admin_identity.domain.services.admin_auth_service can break src.admin_identity.application.use_cases.admin_auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→28 src.admin_identity.application.use_cases.admin_auth_use_case depends on src.admin_identity.domain.services.admin_identity_service✕
- Type pairs
- 1 distinct (type in src.admin_identity.application.use_cases.admin_auth_use_case → type in src.admin_identity.domain.services.admin_identity_service) reference.
- Which types
src.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.domain.services.admin_identity_service.AdminIdentityService
- Direction
- src.admin_identity.application.use_cases.admin_auth_use_case uses src.admin_identity.domain.services.admin_identity_service. Changing src.admin_identity.domain.services.admin_identity_service can break src.admin_identity.application.use_cases.admin_auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→29 src.admin_identity.application.use_cases.admin_auth_use_case depends on src.admin_identity.interface.server.schemas.admin_auth_schema✕
- Type pairs
- 4 distinct (type in src.admin_identity.application.use_cases.admin_auth_use_case → type in src.admin_identity.interface.server.schemas.admin_auth_schema) references.
- Which types
src.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.interface.server.schemas.admin_auth_schema.AdminLoginRequestsrc.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.interface.server.schemas.admin_auth_schema.AdminLogoutRequestsrc.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.interface.server.schemas.admin_auth_schema.AdminRefreshTokenRequestsrc.admin_identity.application.use_cases.admin_auth_use_case.AdminAuthUseCase→src.admin_identity.interface.server.schemas.admin_auth_schema.AdminTokenPairData
- Direction
- src.admin_identity.application.use_cases.admin_auth_use_case uses src.admin_identity.interface.server.schemas.admin_auth_schema. Changing src.admin_identity.interface.server.schemas.admin_auth_schema can break src.admin_identity.application.use_cases.admin_auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→17 src.ai_usage.domain.services.ai_usage_service depends on src.ai_usage.domain.dtos.ai_usage_dto✕
- Type pairs
- 1 distinct (type in src.ai_usage.domain.services.ai_usage_service → type in src.ai_usage.domain.dtos.ai_usage_dto) reference.
- Which types
src.ai_usage.domain.services.ai_usage_service.AiUsageService→src.ai_usage.domain.dtos.ai_usage_dto.AiUsageDTO
- Direction
- src.ai_usage.domain.services.ai_usage_service uses src.ai_usage.domain.dtos.ai_usage_dto. Changing src.ai_usage.domain.dtos.ai_usage_dto can break src.ai_usage.domain.services.ai_usage_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→24 src.ai_usage.domain.services.ai_usage_service depends on src._core.domain.value_objects.agent_usage_record✕
- Type pairs
- 1 distinct (type in src.ai_usage.domain.services.ai_usage_service → type in src._core.domain.value_objects.agent_usage_record) reference.
- Which types
src.ai_usage.domain.services.ai_usage_service.AiUsageService→src._core.domain.value_objects.agent_usage_record.AgentUsageRecord
- Direction
- src.ai_usage.domain.services.ai_usage_service uses src._core.domain.value_objects.agent_usage_record. Changing src._core.domain.value_objects.agent_usage_record can break src.ai_usage.domain.services.ai_usage_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→30 src.ai_usage.domain.services.ai_usage_service depends on src.ai_usage.interface.server.schemas.ai_usage_schema✕
- Type pairs
- 1 distinct (type in src.ai_usage.domain.services.ai_usage_service → type in src.ai_usage.interface.server.schemas.ai_usage_schema) reference.
- Which types
src.ai_usage.domain.services.ai_usage_service.AiUsageService→src.ai_usage.interface.server.schemas.ai_usage_schema.CreateAiUsageRequest
- Direction
- src.ai_usage.domain.services.ai_usage_service uses src.ai_usage.interface.server.schemas.ai_usage_schema. Changing src.ai_usage.interface.server.schemas.ai_usage_schema can break src.ai_usage.domain.services.ai_usage_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→18 src.auth.application.use_cases.auth_use_case depends on src.auth.domain.dtos.auth_dto✕
- Type pairs
- 1 distinct (type in src.auth.application.use_cases.auth_use_case → type in src.auth.domain.dtos.auth_dto) reference.
- Which types
src.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.domain.dtos.auth_dto.AuthTokenConfig
- Direction
- src.auth.application.use_cases.auth_use_case uses src.auth.domain.dtos.auth_dto. Changing src.auth.domain.dtos.auth_dto can break src.auth.application.use_cases.auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→21 src.auth.application.use_cases.auth_use_case depends on src.user.domain.dtos.user_dto✕
- Type pairs
- 1 distinct (type in src.auth.application.use_cases.auth_use_case → type in src.user.domain.dtos.user_dto) reference.
- Which types
src.auth.application.use_cases.auth_use_case.AuthUseCase→src.user.domain.dtos.user_dto.UserDTO
- Direction
- src.auth.application.use_cases.auth_use_case uses src.user.domain.dtos.user_dto. Changing src.user.domain.dtos.user_dto can break src.auth.application.use_cases.auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→31 src.auth.application.use_cases.auth_use_case depends on src.auth.domain.services.auth_service✕
- Type pairs
- 1 distinct (type in src.auth.application.use_cases.auth_use_case → type in src.auth.domain.services.auth_service) reference.
- Which types
src.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.domain.services.auth_service.AuthService
- Direction
- src.auth.application.use_cases.auth_use_case uses src.auth.domain.services.auth_service. Changing src.auth.domain.services.auth_service can break src.auth.application.use_cases.auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→32 src.auth.application.use_cases.auth_use_case depends on src.auth.interface.server.schemas.auth_schema✕
- Type pairs
- 5 distinct (type in src.auth.application.use_cases.auth_use_case → type in src.auth.interface.server.schemas.auth_schema) references.
- Which types
src.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.interface.server.schemas.auth_schema.LoginRequestsrc.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.interface.server.schemas.auth_schema.LogoutRequestsrc.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.interface.server.schemas.auth_schema.RefreshTokenRequestsrc.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.interface.server.schemas.auth_schema.RegisterRequestsrc.auth.application.use_cases.auth_use_case.AuthUseCase→src.auth.interface.server.schemas.auth_schema.TokenPairData
- Direction
- src.auth.application.use_cases.auth_use_case uses src.auth.interface.server.schemas.auth_schema. Changing src.auth.interface.server.schemas.auth_schema can break src.auth.application.use_cases.auth_use_case, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→21 src.user.domain.services.user_service depends on src.user.domain.dtos.user_dto✕
- Type pairs
- 1 distinct (type in src.user.domain.services.user_service → type in src.user.domain.dtos.user_dto) reference.
- Which types
src.user.domain.services.user_service.UserService→src.user.domain.dtos.user_dto.UserDTO
- Direction
- src.user.domain.services.user_service uses src.user.domain.dtos.user_dto. Changing src.user.domain.dtos.user_dto can break src.user.domain.services.user_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→34 src.user.domain.services.user_service depends on src.user.interface.server.schemas.user_schema✕
- Type pairs
- 2 distinct (type in src.user.domain.services.user_service → type in src.user.interface.server.schemas.user_schema) references.
- Which types
src.user.domain.services.user_service.UserService→src.user.interface.server.schemas.user_schema.CreateUserRequestsrc.user.domain.services.user_service.UserService→src.user.interface.server.schemas.user_schema.UpdateUserRequest
- Direction
- src.user.domain.services.user_service uses src.user.interface.server.schemas.user_schema. Changing src.user.interface.server.schemas.user_schema can break src.user.domain.services.user_service, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
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:2021 — Injection | 23 | REDACTED / Critical |
| A05:2021 — Security Misconfiguration | 13 | REDACTED / Critical |
| A06:2021 — Vulnerable & Outdated Components | 8 | REDACTED / Critical |
Roadmap
First, integrate static security analysis into the CI pipeline to block security regressions at build time. Second, formalize disaster recovery by codifying backups and geo-recovery in infrastructure as code, while documenting recovery time and point objectives. Third, enforce production deployment gates with required approvals to ensure controlled releases. Finally, resolve the single banned license finding and update the README with a quick-start guide to improve onboarding and compliance.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| 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. | +14.7 pts | Medium | Security & performance tooling |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +14.7 pts | Medium | DR & Backup |
| Add an approval/environment gate (required reviewers / protection rules) before production promotion. | +9.3 pts | Medium | Deployment & Rollback |
| Resolve the 1 Banned license finding(s) in License Compliance. | +4.6 pts | Low | License Compliance |
| Add a build/run (quick start) section to the root README — the first thing a newcomer needs. | +1.5 pts | Medium | Documentation (README) |
| Grow the ADR log (currently 2) — reach 8 to raise the maturity tier; document significant decisions as they're made. | +1.5 pts | Medium | Architecture documentation |
| Resolve the 2 Documentation finding(s) in Documentation Quality — start with README.md (2). | +0.5 pts | Low | Documentation Quality |
| Resolve the 4 REDACTED CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). | +0.1 pts | Low | Dependency Vulnerabilities |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 1.3 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): REDACTED: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): REDACTED: REDACTED |
| REDACTED | 5.1 | Mixed | IaC & Container Security: REDACTED IaC: REDACTED |
| REDACTED | 5.8 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.9 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| REDACTED | 6.9 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| tools/governor_state_doctor.py | 7.0 | Near-clean | Cognitive Complexity: governor_state_doctor.check_hook_command_canaries (cognitive 24) |
| .antigravity/hooks/stop-sync-reminder.py | 7.0 | Near-clean | Code Duplication: Members sharing a duplicated core (4 members, 50+ identical tokens) |
| src/_core/config.py | 7.1 | Near-clean | Cyclomatic Complexity: Settings._validate_environment_safety (cyclomatic 101) |
| .antigravity/hooks/post-tool-format.py | 7.1 | Near-clean | Cyclomatic Complexity: post-tool-format._extract_exit_code (cyclomatic 19) |
| tools/check_governor_footer.py | 7.4 | Near-clean | Cyclomatic Complexity: check_governor_footer.parse_footer (cyclomatic 22) |
| migrations/env_utils.py | 7.4 | Near-clean | Cyclomatic Complexity: env_utils.load_models (cyclomatic 16) |
| src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py | 7.4 | Near-clean | Cyclomatic Complexity: BaseDynamoRepository.query_items (cyclomatic 16) |
| tools/check_harness_hook_surface.py | 7.4 | Near-clean | Cognitive Complexity: check_harness_hook_surface.check_root (cognitive 23) |
| src/admin_identity/domain/services/admin_auth_service.py | 7.4 | Near-clean | Code Duplication: Duplicated block (6 lines × 2) |
| src/admin_identity/infrastructure/repositories/admin_identity_repository.py | 7.4 | Near-clean | Code Duplication: Duplicated block (9 lines × 2) |
| .agents/shared/work_ledger.py | 7.8 | Near-clean | Cyclomatic Complexity: work_ledger.build_session_summary (cyclomatic 24) |
| tools/check_language_policy.py | 7.8 | Near-clean | Cyclomatic Complexity: check_language_policy.find_violations (cyclomatic 16) |
| migrations/dynamodb/scanner.py | 7.8 | Near-clean | Cognitive Complexity: scanner.scan_dynamo_models (cognitive 25) |
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. 34 of 38 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 38 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, 149 of 154 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.py) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.py) and this repository declares a Python test suite (repository root, 164 test files), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 12 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (11 contributor(s) across 1207 commit(s) sampled, automation and bot accounts excluded). One of them holds 95% of the history; the other 10 hold 0.5% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: D22 has no public-API collector for any other ecosystem, and the remedy is to write one — no change to the scan image can close it.
- AX3 Project dependency cycles — 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 which project references which — facts that live in .csproj references. This repository either commits no MSBuild project at all (its C# may still have been parsed as syntax-only projects, which carry no references between them) or its projects failed to load, so there was no graph to read. That is a gap in this analyzer's reach — not a finding that the repository is free of what this check looks for.
- AX4 Dependency direction — 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 direction each project reference points — facts that live in .csproj references. This repository either commits no MSBuild project at all (its C# may still have been parsed as syntax-only projects, which carry no references between them) or its projects failed to load, so there was no graph to read. That is a gap in this analyzer's reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX8 Test isolation — 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 which projects are test projects, and what they reference — facts that live in .csproj references. This repository either commits no MSBuild project at all (its C# may still have been parsed as syntax-only projects, which carry no references between them) or its projects failed to load, so there was no graph to read. That is a gap in this analyzer's reach — not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — 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 audit 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 audit controls.
- C4 Data Retention — 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 retention 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 retention controls.
- C5 Data-Subject Rights — 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 data-subject rights 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 data-subject rights controls.
- DM9 Scattered domain decisions — 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. Not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither.
- ED5 Idempotency — 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 finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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.
- X1 Async 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X12 Unreachable branch — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X13 Undrained process stream — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X14 Bypassable address classification — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X15 Unvalidated length from an untrusted reader — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X17 Uncapped recursion over a caller-supplied document — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X19 Unrestored process-global state — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X20 Mistyped argument guard — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X21 Side-effecting pattern guard — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X22 Contradicted release guard — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X23 Unguarded diagnostic materialisation — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X24 Document value interpolated into markup unescaped — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X25 Inert configuration knob — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X26 Unsynchronised callback handoff — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X27 Collection changed while being enumerated — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X28 Index access outside its own emptiness guard — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X3 Exception handling — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X30 Support guard that admits what it rejects — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X32 Type resolved by simple name across every loaded assembly — 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 implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
- 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 is implemented over the C# syntax tree, and no C# was loaded on this run, 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.
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.
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
7 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was Settings._validate_environment_safety at 101.
What to do
- Resolve the 1 Settings._validate_environment_safety (cyclomatic 101) finding(s) in Cyclomatic Complexity — start with config.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 work_ledger.build_session_summary (cyclomatic 24) finding(s) in Cyclomatic Complexity — start with work_ledger.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 check_governor_footer.parse_footer (cyclomatic 22) finding(s) in Cyclomatic Complexity — start with check_governor_footer.py. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
23 method(s) exceeded the cognitive complexity threshold of 15; the worst was Settings._validate_environment_safety at 122.
What to do
- Resolve the 1 Settings._validate_environment_safety (cognitive 122) finding(s) in Cognitive Complexity — start with config.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 post-tool-format._extract_exit_code (cognitive 36) finding(s) in Cognitive Complexity — start with post-tool-format.py. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 check_language_policy.find_violations (cognitive 32) finding(s) in Cognitive Complexity — start with check_language_policy.py. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
2 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 2 FileTooLong finding(s) in God Classes — start with config.py, governor_state_doctor.py. — One of this dimension's main actionable groups (2 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
55 duplicated block group(s) detected. A further 2 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 6 of the 57 are in trees this repository does not ship — vendored, example/demo, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
What to do
- Resolve the 5 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with completion_gate.py, document_chunk_in_memory_store.py, exceptions.py. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 3 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with governor_state_doctor.py, discord_notification_adapter.py, admin_identity_repository.py. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with admin_auth_service.py (3). — One of this dimension's main actionable groups (3 warning-level).
D7 · Architectural Integrity
All 1 mechanizable ADR(s) are enforced: 1 by analyzers, 0 by tests. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
D9 · Test Distribution
1679 test methods: 1535 unit, 95 integration, 0 BDD, 49 e2e. The Python suite contributes 1679 test function(s) across 163 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.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
1 of 42 shipped Python distribution(s) use a banned license. Licences were resolved from PyPI over the distributions a consumer installs — this repository's 12 declared runtime requirement(s) closed transitively over each distribution's published `requires_dist` (30 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. 2 of them publish no licence on PyPI this pass can read; that is missing data, not a violation, and none of them is charged. This repository publishes itself under MIT, which is its own choice and is not judged here.
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
Top hotspots: src/_core/config.py (10×101=1010); tools/check_doc_links.py (5×15=75); tools/governor_state_doctor.py (5×15=75) Repeated repair below the complexity floor: src/_apps/server/bootstrap.py (4 of 7 changes were fixes); src/_apps/admin/pages/dashboard.py (4 of 6 changes were fixes); src/_core/infrastructure/http/body_size_middleware.py (4 of 6 changes were fixes)
What to do
- Resolve the 10 Hotspot finding(s) in Churn × Complexity Hotspots — start with completion_gate.py (3), config.py, check_doc_links.py. — One of this dimension's main actionable groups (10 warning-level).
- Resolve the 4 Repeated repair finding(s) in Churn × Complexity Hotspots — start with bootstrap.py, dashboard.py, body_size_middleware.py. — One of this dimension's main actionable groups (4 warning-level).
D17 · Explicit Debt
0 deducted task-comment markers across 24586 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
D19 · Documentation Quality
FastAPI Agent Blueprint documentation is clear and complete: a strong logo banner plus an overview page that states what the project is and why it matters (a modular backend to run your application, a shared collaboration harness), links to a full table of contents for quickstart, ai-collaboration-harness, why-this-blueprint, and Korean localization; examples are well written with copy-paste runnable code showing exactly how to install, run, and test each example, including the copy-flow-without-schema-step nuance; there is an architecture/README.md doc set that covers adoption, compatibility, reference, operations, and architecture decisions. The visible content is exemplary. The project's documentation is comprehensive and well-structured: the README files alone at 15 documents cover a clear domain-coupling rationale (Protocol-based cross-domain DIP), security artefacts, an architecture decision history directory, a governor review log, a reference guide with local development, quickstart, and frontend handoff; the architecture/Docs markdown set of 134 covers ADRs, process governance, and detailed compatibility tables. The content is well ordered by theme (domain-coupling rationale -> security -> historical decisions -> reference -> quickstart -> frontend) and each document's outline confirms present sections are named in the visible text. This project is well documented with a strong README and architecture/Docs set: the main README (FastAPI Agent Blueprint) gives an overview of what it does, two adoption guides (greenfield template and partial import into existing FastAPI projects), and a detailed comparison.md evaluating backend foundations and collaboration workflows. The canonical demo walkthrough in README.ko.md is thorough with prerequisites, step-by-step booting, CRUD auth, RAG pipeline, NiceGUI admin, background workers, OTEL traces, tests, and next steps. A companion architecture/Docs set (134 markdown files) covers adoption paths, shared rules, tool-specific hooks, MCP/.mcp.json setup, and the full CI/License badges plus a star badge on GitHub.
D20 · ADR Quality
Evaluated 2 ADR(s) individually; mean quality 9.5/10 (consistently complete and clear). 0 flagged with a specific gap.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
23 finding(s): 0 critical, 23 high, 0 medium, 0 low. 22 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. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) charged to Static Analysis (SAST) — the other 22 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (23 issue-level, 1 of them charged here).
D30 · Dependency Vulnerabilities
8 finding(s): 1 critical, 5 high, 2 medium, 0 low.
What to do
- Resolve the 4 REDACTED 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 CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D31 · IaC & Container Security
13 finding(s): 0 critical, 1 high, 12 medium, 0 low.
What to do
- Resolve the 1 REDACTED IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 12 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (7), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (12 warning-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 105 of the 374 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 12 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, 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
AX5 · Architecture & structure
DM1 · Aggregate boundaries
DM11 · Constructible invalid state
DM12 · Ambient inputs in the domain
DM6 · Domain ↔ infrastructure boundary
DM8 · Value-object opportunities
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Add a 'Testing' section to the root README — how to run the test suite.
M2 · Architecture documentation
What to do
- Grow the ADR log (currently 2) — reach 8 to raise the maturity tier; document significant decisions as they're made.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
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 15273 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.
P4 · Deployment & Rollback
What to do
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P6 · Release Hygiene
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 89% | Exemplary | Solid. |
| Architecture | 77% | Strong | Solid. |
| Maturity | 82% | Strong | Solid. |
| Readiness | 51% | Adequate — gated by P3, P5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 89% | Exemplary | Solid. |
| Domain Modelling | 100% | Exemplary | Strongest area. |
Not evidenced — 3 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit 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 audit 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.
- C4 Data Retention — Not assessed: these retention 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 retention 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.
- C5 Data-Subject Rights — Not assessed: these data-subject rights 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 data-subject rights 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.
Not included — 85 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 — no DI registrations detected
- AX2 Stateful singletons — no singleton implementations detected
- AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph 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
- AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over a project-reference graph 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 — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) 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
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D10 Test Quality — ~27309 lines of test source are present (.py) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability — Test reliability not included — no .py test runner
- D12 Dependency Hygiene — Not scored — 12 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — Production source is present (.py) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. 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 — none of 2 ADRs are conformance-checkable — unverifiable.
- D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
- D27 Navigability — symbol resolution incomplete — navigability not assessed
- 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.
- D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- 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.
- D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a CS/VB/GO/SCALA/SWIFT/DART class graph, and this repository's production source is .py, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
- 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
- DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
- DM5 Encapsulated state — no domain entities found — DM5 grades how entities protect their state, and this repository declares none
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- DM9 Scattered domain decisions — not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- 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# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
- P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
- P8 Schema migrations — not assessed — schema-migration practice is read from 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
- 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 — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
- 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.
- X1 Async 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
- X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X3 Exception handling — 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
- X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- 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
- 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 — 31 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Banned license: psycopg
- REDACTED
- REDACTED
- REDACTED
Serious — 119 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Hotspot: src/_core/config.py src/_core/config.py:551
- Hotspot: tools/check_doc_links.py tools/check_doc_links.py:408
- Hotspot: tools/governor_state_doctor.py tools/governor_state_doctor.py:583
- Hotspot: .agents/shared/work_ledger.py .agents/shared/work_ledger.py:372
- Hotspot: src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py:150
- Hotspot: .claude/hooks/completion_gate.py .claude/hooks/completion_gate.py:168
- Hotspot: tools/check_governor_footer.py tools/check_governor_footer.py:208
- Hotspot: .antigravity/hooks/post-tool-format.py .antigravity/hooks/post-tool-format.py:124
- Hotspot: .antigravity/hooks/completion_gate.py .antigravity/hooks/completion_gate.py:94
- Hotspot: .codex/hooks/completion_gate.py .codex/hooks/completion_gate.py:153
- Duplicated block (10 lines × 2) .antigravity/hooks/completion_gate.py:82
- Duplicated block (10 lines × 2) src/docs/infrastructure/vectors/document_chunk_in_memory_store.py:31
- Duplicated block (10 lines × 2) src/_core/infrastructure/embedding/exceptions.py:30
- Duplicated block (10 lines × 2) src/admin_identity/infrastructure/repositories/admin_identity_repository.py:110
- Duplicated block (10 lines × 2) examples/url_shortener/infrastructure/repositories/link_repository.py:23
- Repeated repair: src/_apps/server/bootstrap.py src/_apps/server/bootstrap.py:148
- Repeated repair: src/_apps/admin/pages/dashboard.py src/_apps/admin/pages/dashboard.py:143
- Repeated repair: src/_core/infrastructure/http/body_size_middleware.py src/_core/infrastructure/http/body_size_middleware.py:132
- Repeated repair: src/_core/infrastructure/admin/theme.py src/_core/infrastructure/admin/theme.py:586
- Duplicated block (9 lines × 2) tools/governor_state_doctor.py:679
- Duplicated block (9 lines × 2) src/_core/infrastructure/notification/discord_notification_adapter.py:13
- Duplicated block (9 lines × 2) src/admin_identity/infrastructure/repositories/admin_identity_repository.py:37
- Duplicated block (6 lines × 2) src/admin_identity/domain/services/admin_auth_service.py:57
- Duplicated block (6 lines × 2) src/admin_identity/domain/services/admin_auth_service.py:88
- Duplicated block (6 lines × 2) src/admin_identity/domain/services/admin_auth_service.py:145
- FileTooLong: _core/config.py src/_core/config.py
- FileTooLong: tools/governor_state_doctor.py tools/governor_state_doctor.py
- REDACTED
- REDACTED
- Duplicated block (17 lines × 2) .antigravity/hooks/_shared.py:117
- Duplicated block (17 lines × 2) migrations/versions/0002_add_ai_usage_log.py:98
- Duplicated block (15–16 lines × 2) migrations/versions/0006_user_admin_permissions.py:24
- Duplicated block (15–16 lines × 2) src/_apps/server/bootstrap.py:149
- Duplicated block (13 lines × 2) src/_core/config.py:656
- Duplicated block (13 lines × 2) examples/chatbot_with_memory/infrastructure/chatbot/pydantic_ai_chatbot_memory.py:17
- Duplicated block (12 lines × 2) .antigravity/hooks/verify_first.py:62
- Duplicated block (12 lines × 2) src/_core/domain/value_objects/agent_usage_record.py:75
- Duplicated block (11 lines × 2) tools/governor_state_doctor.py:470
- Duplicated block (11 lines × 2) src/_core/infrastructure/persistence/nosql/dynamodb/dynamodb_client.py:57
- Duplicated block (7 lines × 2) src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py:300
- Duplicated block (7 lines × 2) src/admin_identity/application/use_cases/admin_auth_use_case.py:96
- Duplicated block (5 lines × 3) src/ai_usage/interface/admin/pages/ai_usage_page.py:47
- Duplicated block (5 lines × 3) src/ai_usage/interface/admin/pages/ai_usage_page.py:98
- Duplicated block (5 lines × 2) migrations/versions/0001_baseline_current_rdb_schema.py:33
- Duplicated block (5 lines × 2) examples/blog/author/interface/server/routers/author_router.py:43
- Settings._validate_environment_safety (cyclomatic 101) src/_core/config.py:551
- work_ledger.build_session_summary (cyclomatic 24) .agents/shared/work_ledger.py:372
- check_governor_footer.parse_footer (cyclomatic 22) tools/check_governor_footer.py:208
- post-tool-format._extract_exit_code (cyclomatic 19) .antigravity/hooks/post-tool-format.py:124
- env_utils.load_models (cyclomatic 16) migrations/env_utils.py:17
- BaseDynamoRepository.query_items (cyclomatic 16) src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py:150
- check_language_policy.find_violations (cyclomatic 16) tools/check_language_policy.py:317
- Settings._validate_environment_safety (cognitive 122) src/_core/config.py:551
- post-tool-format._extract_exit_code (cognitive 36) .antigravity/hooks/post-tool-format.py:124
- check_language_policy.find_violations (cognitive 32) tools/check_language_policy.py:317
- work_ledger.build_session_summary (cognitive 27) .agents/shared/work_ledger.py:372
- env_utils.load_models (cognitive 27) migrations/env_utils.py:17
- check_governor_footer.parse_footer (cognitive 27) tools/check_governor_footer.py:208
- scanner.scan_dynamo_models (cognitive 25) migrations/dynamodb/scanner.py:17
- scanner.scan_s3vector_models (cognitive 25) migrations/s3vectors/scanner.py:17
- governor_state_doctor.check_hook_command_canaries (cognitive 24) tools/governor_state_doctor.py:583
- check_harness_hook_surface.check_root (cognitive 23) tools/check_harness_hook_surface.py:90
- check_doc_links.extract_links (cognitive 22) tools/check_doc_links.py:209
- check_governor_footer._validate_value (cognitive 22) tools/check_governor_footer.py:149
- post-tool-format._extract_exit_code (cognitive 21) .codex/hooks/post-tool-format.py:51
- BaseDynamoRepository.query_items (cognitive 21) src/_core/infrastructure/persistence/nosql/dynamodb/base_dynamo_repository.py:150
- code_safety.check_code_safety (cognitive 20) .agents/shared/governor/code_safety.py:100
- check_harness_hook_surface._json_hook_commands (cognitive 20) tools/check_harness_hook_surface.py:46
- governor_state_doctor.check_hook_interpreter (cognitive 20) tools/governor_state_doctor.py:356
- user-prompt-submit._extract_prompt (cognitive 19) .antigravity/hooks/user-prompt-submit.py:29
- governor_state_doctor._collect_hook_commands (cognitive 19) tools/governor_state_doctor.py:332
- DynamoDBMigrator._create_table (cognitive 18) migrations/dynamodb/migrator.py:54
- DocLinkChecker._check_link (cognitive 18) tools/check_doc_links.py:408
- post-tool-format._shell_text_outcome (cognitive 16) .antigravity/hooks/post-tool-format.py:67
- layout.admin_layout (cognitive 16) src/_core/infrastructure/admin/layout.py:64
- REDACTED
- Edited copy of a member (23 corresponding lines) migrations/versions/0004_add_auth_refresh_tokens.py:22
- Members sharing a duplicated core (4 members, 50+ identical tokens) .antigravity/hooks/stop-sync-reminder.py:74
- Duplicated block (31–46 lines × 2) .antigravity/hooks/stop-sync-reminder.py:138
- Duplicated block (16–45 lines × 2) .antigravity/hooks/stop-sync-reminder.py:132
- Duplicated block (37–40 lines × 2) .antigravity/hooks/stop-sync-reminder.py:216
- Duplicated block (25–35 lines × 2) .antigravity/hooks/stop-sync-reminder.py:104
- Duplicated block (30–34 lines × 3) .antigravity/hooks/completion_gate.py:100
- Duplicated block (28–31 lines × 2) .antigravity/hooks/stop-sync-reminder.py:185
- Duplicated block (25 lines × 2) migrations/dynamodb/scanner.py:29
- Duplicated block (20–23 lines × 2) .antigravity/hooks/stop-sync-reminder.py:74
- Duplicated block (19 lines × 2) .antigravity/hooks/verify_first.py:77
- Duplicated block (18 lines × 2) .antigravity/hooks/post-tool-format.py:21
- Duplicated block (16–18 lines × 2) migrations/versions/0004_add_auth_refresh_tokens.py:29
- Duplicated block (15–18 lines × 2) src/_core/infrastructure/rag/pydantic_ai_answer_agent.py:135
- Duplicated block (15–17 lines × 2) src/_core/config.py:801
- Duplicated block (14–16 lines × 2) .antigravity/hooks/post-tool-format.py:178
- Duplicated block (13–15 lines × 2) migrations/dynamodb/cli.py:36
- Duplicated block (12–15 lines × 2) migrations/env_utils.py:50
- Duplicated block (12–14 lines × 2) src/_core/config.py:671
- Duplicated block (12–13 lines × 2) src/_apps/admin/pages/accounts.py:74
- Duplicated block (12 lines × 4) .antigravity/hooks/stop-sync-reminder.py:79
- Duplicated block (10 lines × 3) src/_core/infrastructure/persistence/rdb/base_repository.py:98
- Duplicated block (8–10 lines × 2) tools/check_harness_hook_surface.py:97
- Duplicated block (7–10 lines × 3) tools/governor_state_doctor.py:171
- Duplicated block (6–8 lines × 2) migrations/dynamodb/migrator.py:56
- Duplicated block (8 lines × 2) tools/governor_state_doctor.py:661
- Duplicated block (8 lines × 4) src/admin_identity/infrastructure/repositories/admin_identity_repository.py:48
- Duplicated block (17–27 lines × 3) examples/chatbot_with_guardrails/domain/services/chatbot_service.py:31
- Duplicated block (35 lines × 3) examples/chatbot_with_guardrails/interface/server/routers/chatbot_router.py:34
- Duplicated block (14 lines × 2) examples/simple_chatbot/infrastructure/chatbot/stub_chatbot.py:28
- No DR/backup evidence
Minor — 4 finding(s)
- Documentation: no project overview README.md
- Documentation: no installation or build instructions README.md
- REDACTED
- No SAST
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-2a703e4148384377abdb216a10473e4c/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-2a703e4148384377abdb216a10473e4c/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 . | 23 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive . | 8 | artifacts/raw/osv-scanner.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 13 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| 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 . | 0 | artifacts/raw/osv-scanner.json |