The production readiness score

How the seven dimension scores and the overall production readiness score are produced, what the levels mean, and how analysis frameworks change the weighting.

The production readiness score summarises how far a codebase is from being safe and practical to run and maintain in production. It is built from seven dimension scores, each on a scale from 0 to 100. The overall score is derived from the seven; it is not judged separately.

Each dimension score starts as a proposal by a large language model, made against a written rubric. Code then compares the proposal with static measurements and moves it if the evidence requires. The overall score is computed from the resulting values.

Measured evidenceStatic metrics computed by tools
Model judgementProposed score per dimension, against a rubric
CalibrationCeilings and floors derived from the evidence
Dimension scoresSeven values from 0 to 100
Overall scoreMean of the dimensions, weighted if frameworks apply
From measured evidence and model judgement to the overall score.

The seven dimensions#

DimensionWhat it measures
SecurityProtection against common attacks: secrets handling, input validation, injection safety, authentication and authorisation, transport security.
Code QualityMaintainability: style consistency, linting, function size, complexity, separation of concerns, duplication.
DependenciesHealth of third-party components: currency, known vulnerabilities, lockfiles, size of the dependency tree.
DocumentationWhether a new engineer can set up, use and understand the system: README, API documentation, inline comments, design records.
ObservabilityWhether the system can be monitored and debugged in production: logging, health checks, metrics, tracing, alerting.
Test CoverageExtent and quality of automated tests: unit, integration and end-to-end tests, and whether they run in CI.
Error HandlingBehaviour under failure: consistent handling, retries, graceful degradation, and not leaking internal details.
Dimension names as they appear in the reports.

The criteria for each dimension are listed in Dimension rubrics.

Levels#

Each score, overall or per dimension, is shown with a level. The levels are fixed ranges of the score:

LevelScore range
Excellent80 to 100
Good60 to 79
Fair50 to 59
Weak0 to 49

The rubric that the model scores against uses finer bands of ten points with their own names. Those bands guide the choice of a number; the levels above are what the app and reports display.

How the overall score is calculated#

By default, the overall score is the arithmetic mean of the seven calibrated dimension scores, rounded to the nearest whole number. Every dimension counts equally.

When an analysis framework is selected, the dimension it covers is given extra weight in the mean. With an emphasis of 1.5, for example, that dimension counts one and a half times while each of the other six counts once. The result is a weighted mean that tilts the overall score towards the area you chose. The seven dimension scores themselves are not changed by the weighting, so the radar chart and the dimension table show the same values whether or not a framework is selected.

Reading the score#

  • Read the dimension scores before the overall score. A mean can hide one weak dimension behind several strong ones.
  • Read the findings for a dimension before acting on its score. The findings give the reasons, with file references.
  • Compare scores between assessments with the tolerance described in Determinism and reproducibility. A difference of a few points is not in itself evidence of a change.