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
26 changes: 18 additions & 8 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,21 +621,31 @@ it, or the bar would move with the results.
| 3 | Never decides | Never in the verdict vector, a "nothing got worse" claim, or the escalation | FR-12-08 |
| 4 | Fixed for next time | A check worth deciding on is registered before the next run | — |

### 8.7.5 Withdrawn metrics
### 8.7.5 Withdrawn metrics and re-scores

A metric whose grader turns out to measure something else is withdrawn, not
reported.
A fault found in an instrument, such as the scorer, the hidden suite or the
environment they run in, is fixed and every trial re-scored. Only a fault a
re-score cannot repair, one in what the trial itself was asked, withdraws the
metric.

**Why**

- Numbers from a faulty instrument are known to be wrong; keeping them protects
nothing.
- Faults tend to be hunted where results disappoint, so the old verdicts stay
visible beside the new ones.

**Rules**

| # | Rule | In practice | Requirement |
| - | ---- | ----------- | ----------- |
| 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 |
| 1 | Record the fault first | The fault and its fix are written in an issue before any re-score is read | FR-12-10 |
| 2 | Validate the fix | The fixed instrument passes its own validation again: the hidden suite passes the reference in full and catches every mutation; a script passes its self-test | FR-12-10 |
| 3 | Every trial, never a subset | Each round that reads the faulty scores is re-scored in full; a root never mixes two suite revisions or two Pythons | FR-12-10 |
| 4 | Keep the old verdicts | A replaced report opens with a dated note naming the fault and the verdicts it replaces | FR-12-10 |
| 5 | Withdraw what cannot be fixed | Recorded in `tests/efficacy/withdrawn.json` against the grader's revision; the report names the metric and the reason, with no number, interval or verdict | FR-12-09 |

The re-score rule is ADR-021.
The decision is ADR-021.

## 8.8 Records

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/09-architecture-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +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 |
| [ADR-021](../decisions/021-rescore-after-an-instrument-fault.md) | An instrument fault is fixed, validated and every reading round re-scored in full, its report replaced with a dated note keeping the old verdicts | Accepted |

## 9.6 Decisions about the templates

Expand Down
3 changes: 1 addition & 2 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ when:
| FR-12-07 | Self-test | `report.py` "the report names each approach and its verdict in plain words"<br>`report.py` "a better primary and no worse answers Yes"<br>`report.py` "a worse primary answers Worse"<br>`report.py` "nothing separated answers No" |
| 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" |
| FR-12-10 | Self-test | `score.py` "a score on another Python refuses the root"<br>`report.py` "scores on two Pythons are refused"<br>`report.py` "a run graded by another revision withdraws nothing" |

## 13 Records and archive

Expand Down
84 changes: 0 additions & 84 deletions docs/decisions/021-rescore-after-an-environment-defect.md

This file was deleted.

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

# ADR-021: Re-score after an instrument fault

## Context

Two faults in the instruments turned up in round 5c, both after its report:

| Fault | What it did | Builds hit |
| ----- | ----------- | ---------- |
| Scored on Python 3.14, though the spec names 3.12 | Refused builds capped below 3.13 as not installing | `hybrid-3`, `inline-5`, `skills-4` |
| The hidden suite ran every module in one process | A build's sign-in lockout, tripped by the suite's own wrong-password tests, failed every later test that signs in | `skills-4`, `skills-10`, `hybrid-2`, `reference-4` |

The rule then in force, FR-12-10, said a corrected grader never re-grades the
same trials, and the metric is withdrawn instead. It was written for round 1's
change-task grader, whose fault lay in what the trial was asked: no re-grade
could repair it. Applied to a fault in the instrument, it would keep numbers
known to be wrong, and stop round 5d from grading round 5c's arms with the
same suite as its own.

## Decision

A fault found in an instrument is fixed, the fix validated, and every round
that reads the faulty scores re-scored in full, its report replaced with a
dated note that keeps the verdicts it replaces; a fault a re-score cannot
repair still withdraws the metric.

## Rationale

- An instrument fault makes the numbers wrong, not the trials: re-scoring the
same frozen trials under the same rules repairs them.
- Every trial is re-scored, so no trial or arm is picked for a second chance.
- Faults are found where results look wrong, and so far both helped the
templates arms once fixed. Recording the fault before the re-score is read,
validating the fix, and keeping the old verdicts in view guard against
choosing an outcome.

## Design

| # | Rule | In practice |
| - | ---- | ----------- |
| 1 | Record the fault first | An issue names the fault and its fix before any re-score is read |
| 2 | Validate the fix | The hidden suite passes the reference in full and catches every mutation; a script passes its self-test |
| 3 | All or nothing | Each round reading the faulty scores is re-scored in full; a root never mixes two suite revisions or two Pythons |
| 4 | Judge what was never judged | A build that installs only after the fix is judged as every other |
| 5 | Archive again | The re-scored round is archived and verified before its report is replaced |
| 6 | Keep the old verdicts | The replaced report opens with a dated note naming the fault and the verdicts it replaces |
| 7 | Withdraw only the unfixable | A fault in what the trial was asked withdraws the metric, as round 1's change-task pass rate was (ADR-009) |

## Alternatives considered

| # | Alternative | Outcome |
| - | ----------- | ------- |
| A | Fix, validate, re-score in full, replace the report with a dated note | 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 numbers the instrument got wrong |
| C | Withdraw the affected metrics, as FR-12-10 asked | Not chosen: it drops a round's deciding rows over a fault a re-score repairs |

## Consequences

| Consequence | Effect |
| ----------- | ------ |
| FR-12-10 | States this rule; FR-12-11 is merged into it |
| Round 5c | Its 2026-11-01 report is the Python 3.12 reading, archived as `rounds/2026-11-02-round-5c-py312b` |
| Round 5d | Re-scores round 5c's arms with the corrected hidden suite in its own root, so every contrast is graded by one suite (#116) |

## 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 |
| 2026-11-02 | The rule covers any instrument fault, and FR-12-11 merges into FR-12-10 | The hidden suite's shared process failed a locked-out build's later tests; the old FR-12-10 would have kept those numbers | #116 |
4 changes: 2 additions & 2 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@
| FR-12-07 | The benchmark shall give each approach Yes where a deciding measure is better and none worse, Worse where any is worse, and No where none moved. | Report |
| 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 |
| FR-12-10 | The benchmark shall fix a fault found in its instruments, validate the fix, re-score in full every round that reads the faulty scores, and replace each report with a dated note keeping the verdicts it replaces. | Scorer, Report, Owner |
| FR-12-11 | Removed: merged into FR-12-10. | - |

### 13 Records and archive

Expand Down
5 changes: 5 additions & 0 deletions docs/rounds/round-5d.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ the margins of round 5's H1.

Three things differ: the arms, the order, and a reuse of round 5c's `none`.

Amended 2026-11-02, before any round-5d trial: the hidden suite is the
revision that imports the build afresh for every test (#116), and round 5c's
reused trials are re-scored with it in round 5d's root, so every contrast is
graded by one suite (ADR-021).

### 13d.2 The arms

| Arm | Trials | Where they come from |
Expand Down
Loading