Each dimension is scored against a written rubric. The rubric divides the range from 0 to 100 into ten bands of ten points, from Critical (0 to 10) to Exceptional (91 to 100). Each band lists observable criteria. The model checks the bands from the top down and places the score in the highest band whose criteria are mostly satisfied, then adjusts within the band for partial matches.
Two rules reduce noise. When the evidence sits between two adjacent values, the lower is chosen. Dimension scores are rounded to multiples of 5. The model is told to score only on evidence it can point to in the code, not on general impression.
After the model has scored, code applies ceilings and floors from the static evidence. They are noted under each dimension below and described in Model output and its constraints. When an analysis framework is selected for a dimension, the framework's rubric replaces the default rubric for that dimension.
Security#
- Raises the score
- No secrets in code, with secrets held in a vault or key management service; schema validation on all inputs; parameterised queries throughout; authentication and role-based authorisation implemented correctly; HTTPS enforced; security headers such as CSP and HSTS; dependency scanning and static or dynamic security testing in CI.
- Lowers the score
- Hardcoded API keys or passwords; secrets in configuration files; endpoints without input validation; possible SQL or other injection; weak, inconsistent or missing authentication.
- Static bounds
- Many findings from the security pattern scanner cap the score. No findings, or very few, set a floor.
Code Quality#
- Raises the score
- Linter and formatter configured and enforced in CI; consistent style; short functions and low cyclomatic complexity; clear separation of concerns, with dependency injection at the top of the scale; little or no duplicated code.
- Lowers the score
- No linter; inconsistent naming and style; long functions; high coupling between modules; copy-paste duplication; code that is hard to read or has no discernible structure.
- Static bounds
- Without linter configuration the score cannot reach the upper bands. A high average cyclomatic complexity lowers the cap further. A low average complexity sets a floor. Complexity is measured for Python code.
Dependencies#
- Raises the score
- Dependencies current to the latest minor or patch version; no known vulnerabilities; a committed lockfile; a small dependency tree; reviewed licences; automated update tooling such as Dependabot or Renovate; vulnerability scanning in CI.
- Lowers the score
- Dependencies one or more major versions behind; known vulnerabilities, with the score falling as severity rises; no lockfile or a stale one; an excessive dependency tree; abandoned or unmaintained packages.
- Static bounds
- None. The score rests on the rubric.
Documentation#
- Raises the score
- A README covering setup, usage, architecture and troubleshooting; API documentation (for example OpenAPI) that is current; comments on complex logic; a contributing guide; architecture decision records or design documents; documentation checked in CI.
- Lowers the score
- No README, a stub, or one that is outdated; no API documentation; sparse comments; information that no longer matches the code.
- Static bounds
- Without a README the score is capped at a low value. With one, a modest floor applies.
Observability#
- Raises the score
- Structured logging with correlation identifiers; health check endpoints; exposed metrics (Prometheus or similar); distributed tracing (OpenTelemetry or similar); configured alerting with runbooks; documented service level objectives.
- Lowers the score
- Only print or console statements; no health checks; no metrics; noisy or absent logging that leaves the system hard to debug in production.
- Static bounds
- Without CI configuration the score is capped. With it, a modest floor applies. CI is used here as evidence of operational practice.
Test Coverage#
- Raises the score
- Unit, integration and end-to-end tests; tests that run in CI, at the top of the scale with coverage gates; appropriate mocking; edge cases covered; mutation or property-based testing at the top of the scale.
- Lowers the score
- No tests, or tests that cannot run; a few scattered or trivial tests; broken or skipped tests; tests not run in CI.
- Static bounds
- With no test files the score is capped at a low value, and a low test-to-source ratio caps it at an intermediate level. A high ratio sets a floor.
The rubric for this dimension refers to coverage percentages. Codeego does not run your tests, so these percentages are estimated from the tests present and the code they exercise, not measured. The static bound uses the ratio of test files to source files.
Error Handling#
- Raises the score
- A consistent handling pattern with a custom exception hierarchy; graceful degradation; retries with exponential backoff and jitter on external calls; circuit breakers; structured error responses that do not reveal internal details.
- Lowers the score
- Unhandled exceptions; inconsistent patterns; stack traces returned to users; crashes on common or edge-case paths; errors that are not logged.
- Static bounds
- None. The score rests on the rubric.