DRILLS.ai · Chapter 07
The score computed by code
The model qualifies the requirements. The percentage and the decision are computed in Python. This chapter gives the exact formula, an example, and what the score does not say.
The concept
A score is computed by a formula you can explain and test. You do not ask the model for a percentage.
The formula
The score only takes requirements of kind skill.
| Priority | Weight | Evidence status | Credit |
|---|---|---|---|
core |
3 | documented |
1 |
important |
2 | partial |
0.5 |
supporting |
1 | not_documented |
0 |
score = round(100 × sum(weight × credit) / sum(weight))
A teaching example, not a real candidate: core Python, documented (3 × 1), important API integration, partial (2 × 0.5), supporting framework, not documented (1 × 0). The score is round(100 × 4/6) = 67.
The decision
review_scope: no score, if the role is out of scope or uncertain, or if there is no SkillAn instruction sheet the assistant loads only when the task matches. It's judged by the difference it makes, with evidence.See in the glossary → to assess.prepare: the score reaches 60, everycoreskill is documented, and so is every EligibilityAn administrative condition of a posting (right to work, internship agreement, graduation date), separate from skills: a good score does not settle it.See in the glossary → condition.strengthen: every other case where a score exists.
So the 60 threshold is not enough if a core skill or an eligibility condition remains undocumented. Even then, the candidate can still prepare their documents.
From the repository (code written with the help of ChatGPT and Codex):
def calculate_match(requirements: list[Requirement], scope: str) -> tuple[int | None, str]:
skills = [item for item in requirements if item.kind == "skill"]
weights = {"core": 3, "important": 2, "supporting": 1}
coverage = {"documented": 1, "partial": 0.5, "not_documented": 0}
total = sum(weights[item.priority] for item in skills)
score = round(100 * sum(weights[item.priority] * coverage[item.status] for item in skills) / total) if total else None
if scope != "in_scope":
score = None
unresolved_core = any(item.priority == "core" and item.status != "documented" for item in skills)
unresolved_eligibility = any(item.kind == "eligibility" and item.status != "documented" for item in requirements)
decision = "review_scope" if score is None else (
"prepare" if score >= 60 and not unresolved_core and not unresolved_eligibility else "strengthen"
)
return score, decision
What the screen must show
The score and the conditions are shown together. A 0 is shown as 0. A condition to check does not erase the percentage: that was a bug, fixed on October 26. An out-of-scope role does not get an invented percentage to fill the screen.
The reproducibility limit
The formula is deterministic for a given list of requirements. But extracting the requirements, their priority and their status come from the model, and can change from one analysis to the next. The threshold and the weights are heuristics, not a validated business grid.
What I keep
- The model judges, code computes: the formula can be tested without a network.
- A skill and an administrative condition are not mixed in one number.
- It is a Coverage scoreA percentage computed in code from the skills asked for and the evidence found. It measures documented coverage, never a chance of being hired.See in the glossary →: it measures documented coverage, never a chance of being hired.
The defense question
Why doesn’t a high score settle an internship condition?
Because eligibility conditions are not in the score: only skills are. An undocumented condition blocks the prepare decision, whatever the percentage.
What can still vary from one run to the next?
The requirements themselves: their list, priority and status come from the model. The formula does not.