Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ reported.
| 1 | Withdrawn by revision | Recorded in `tests/efficacy/withdrawn.json` against the grader's revision; every run that revision graded loses the metric, others keep it | FR-12-09 |
| 2 | Named, not shown | The report names the metric and the reason, with no number, interval or verdict | FR-12-09 |
| 3 | No re-grade | A corrected grader never re-grades the same trials; it is fixed before the next run | FR-12-10 |
| 4 | Except a wrong environment | A round scored outside its registered environment, such as on another Python than the spec's, is re-scored in full and its report replaced, keeping the old verdicts in a dated note | FR-12-11 |

The re-score rule is ADR-021.

## 8.8 Records

Expand Down
1 change: 1 addition & 0 deletions docs/architecture/09-architecture-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ kept.
| [ADR-017](../decisions/017-a-rounds-registration.md) | A round registers its spec by content, and the harness and the report refuse a trial built from other content | Accepted |
| [ADR-019](../decisions/019-archive-before-the-report.md) | A round is archived to `braboj/tariff-runs` and verified by restoring it before its report is written | Accepted |
| [ADR-020](../decisions/020-trial-isolation.md) | A trial is fenced by deny rules and excluded by its transcript, in a pen of its own; a reach voids it | Accepted |
| [ADR-021](../decisions/021-rescore-after-an-environment-defect.md) | A round scored outside its registered environment is re-scored in full, and its report replaced with a dated note keeping the old verdicts | Accepted |

## 9.6 Decisions about the templates

Expand Down
1 change: 1 addition & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ when:
| FR-12-08 | Self-test | `report.py` "the report prints the section"<br>`report.py` "its row carries no verdict"<br>`report.py` "its row is not in the verdict vector"<br>`report.py` "no after-the-results check is a verdict metric" |
| FR-12-09 | Self-test | `report.py` "withdrawal blanks every value of the row"<br>`report.py` "its verdict vector row reads withdrawn"<br>`report.py` "the withdrawal section names it and why"<br>`report.py` "a run graded by another revision withdraws nothing"<br>`report.py` "a metric not withdrawn keeps its verdict" |
| FR-12-10 | Untestable | A working rule; a re-grade and a first grade leave the same record. |
| FR-12-11 | Self-test | `score.py` "a score on another Python refuses the root"<br>`report.py` "scores on two Pythons are refused" |

## 13 Records and archive

Expand Down
84 changes: 84 additions & 0 deletions docs/decisions/021-rescore-after-an-environment-defect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
id: "021"
status: Accepted
date: 2026-11-02
category: process
supersedes: []
superseded_by: []
---

# ADR-021: Re-score after an environment defect

## Context

Round 5c was scored on Python 3.14.8, though its spec names Python 3.12. The
scorer refused three builds that capped `requires-python` below 3.13, and the
registered report read them as builds that would not install.

Two kinds of scoring fault had to be told apart:

- **A grader that measures something else:** its logic is wrong, such as round
1's change-task grader driving names the prompt never gave. The metric is
withdrawn and the same trials are never re-graded (ADR-009).
- **A grader run outside the registered environment:** its logic is right, but
it ran on another interpreter than the spec's. The trials and the rules are
unchanged; only the ruler was the wrong one.

Re-scored on Python 3.12, with the three builds judged for the first time, the
verdicts moved:

| Question | Registered (3.14) | Re-scored (3.12) |
| -------- | ----------------- | ---------------- |
| `hybrid` against no file | Worse | Better |
| `inline` against no file | No clear gain | Better |
| H3, a reference alone delivers less | Not settled | Yes |

## Decision

A round scored outside its registered environment is re-scored in full in that
environment, and its report replaced, with a dated note that keeps the verdicts
it replaces.

## Rationale

- The environment is part of what a round registers: the spec names the Python
every build is scored on. A build refused by another interpreter measures the
scorer, not the agent.
- Every trial is re-scored, not only the refused ones, so no trial is picked
for a second chance.
- The trials, the rules and the verdict rule stay as registered, so no result
is chosen after seeing it; the old verdicts stay visible in the note.

## Design

| # | Rule | In practice |
| - | ---- | ----------- |
| 1 | Only an environment defect qualifies | Another interpreter or tool lock than the registered one; a grader whose logic is wrong is withdrawn instead |
| 2 | All or nothing | Every trial of the round is re-scored; the report refuses scores from two interpreters |
| 3 | Judge what was never judged | A build that installs only after the fix is judged as every other, at the round's judge and repeats |
| 4 | Archive again | The re-scored round is archived and verified before its report is replaced |
| 5 | Keep the old verdicts | The replaced report opens with a dated note naming the defect and the verdicts it replaces |

## Alternatives considered

| # | Alternative | Outcome |
| - | ----------- | ------- |
| A | Re-score in full and replace the report | Chosen |
| B | Keep the registered report, and add the re-score as a post-hoc reading beside it | Not chosen: the registered verdicts rest on three refusals the spec rules out |
| C | Withdraw install and task success for the round | Not chosen: it drops the round's deciding row over a fault in the scorer, not in the grader's logic |

## Consequences

| Consequence | Effect |
| ----------- | ------ |
| FR-12-11 | States the rule; FR-12-10 still forbids re-grading with a corrected grader |
| Round 5c | Its 2026-11-01 report is the Python 3.12 reading, archived as `rounds/2026-11-02-round-5c-py312b` |
| Round 5d | Reads round 5c's `none` from the re-scored root |

## History

Every change to this decision, oldest first:

| Date | Change | Why | Issue |
| ---- | ------ | --- | ----- |
| 2026-11-02 | Round 5c is re-scored on Python 3.12 and its report replaced, keeping the old verdicts in a dated note | It was scored on Python 3.14, which refused three builds the spec's Python installs | #100, #101, #103 |
1 change: 1 addition & 0 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
| FR-12-08 | The benchmark shall print a check declared after a run in its own section, with no verdict, outside the verdict vector. | Report |
| FR-12-09 | The benchmark shall blank a withdrawn metric on every run its grader's revision graded, and keep it on the others. | Report |
| FR-12-10 | The benchmark shall never re-grade, with a corrected grader, the trials its earlier revision graded. | Owner |
| FR-12-11 | The benchmark shall re-score in full, in the registered environment, a round scored outside it, and replace its report with a dated note keeping the verdicts it replaces. | Scorer, Owner |

### 13 Records and archive

Expand Down
Loading