From 2f9fe42d0f261757dbf6d6a70363d7af690b8e59 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Mon, 2 Nov 2026 10:11:59 +0200 Subject: [PATCH] docs(decisions): re-score a round scored outside its registered environment Round 5c was scored on Python 3.14, not the spec's 3.12, which refused three builds. ADR-021 sets the rule: such a round is re-scored in full in the registered environment, and its report replaced with a dated note that keeps the old verdicts. A grader whose logic is wrong is still withdrawn, never re-graded. FR-12-11 states it, traced to the checks that refuse scores from another Python. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF --- docs/architecture/08-crosscutting-concepts.md | 3 + .../architecture/09-architecture-decisions.md | 1 + docs/coverage.md | 1 + ...021-rescore-after-an-environment-defect.md | 84 +++++++++++++++++++ docs/requirements.md | 1 + 5 files changed, 90 insertions(+) create mode 100644 docs/decisions/021-rescore-after-an-environment-defect.md diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index e269a0e..1c091f6 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -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 diff --git a/docs/architecture/09-architecture-decisions.md b/docs/architecture/09-architecture-decisions.md index 2014c1b..664d8a0 100644 --- a/docs/architecture/09-architecture-decisions.md +++ b/docs/architecture/09-architecture-decisions.md @@ -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 diff --git a/docs/coverage.md b/docs/coverage.md index 18b742f..5616128 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -173,6 +173,7 @@ when: | FR-12-08 | Self-test | `report.py` "the report prints the section"
`report.py` "its row carries no verdict"
`report.py` "its row is not in the verdict vector"
`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"
`report.py` "its verdict vector row reads withdrawn"
`report.py` "the withdrawal section names it and why"
`report.py` "a run graded by another revision withdraws nothing"
`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"
`report.py` "scores on two Pythons are refused" | ## 13 Records and archive diff --git a/docs/decisions/021-rescore-after-an-environment-defect.md b/docs/decisions/021-rescore-after-an-environment-defect.md new file mode 100644 index 0000000..87f85f6 --- /dev/null +++ b/docs/decisions/021-rescore-after-an-environment-defect.md @@ -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 | diff --git a/docs/requirements.md b/docs/requirements.md index 84b3c3b..b24ec94 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -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