diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index 1c091f6..f572e29 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -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 diff --git a/docs/architecture/09-architecture-decisions.md b/docs/architecture/09-architecture-decisions.md index 664d8a0..ce1c31e 100644 --- a/docs/architecture/09-architecture-decisions.md +++ b/docs/architecture/09-architecture-decisions.md @@ -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 diff --git a/docs/coverage.md b/docs/coverage.md index 5616128..313f2d0 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -172,8 +172,7 @@ when: | FR-12-07 | Self-test | `report.py` "the report names each approach and its verdict in plain words"
`report.py` "a better primary and no worse answers Yes"
`report.py` "a worse primary answers Worse"
`report.py` "nothing separated answers No" | | 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" | +| FR-12-10 | Self-test | `score.py` "a score on another Python refuses the root"
`report.py` "scores on two Pythons are refused"
`report.py` "a run graded by another revision withdraws nothing" | ## 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 deleted file mode 100644 index 87f85f6..0000000 --- a/docs/decisions/021-rescore-after-an-environment-defect.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -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/decisions/021-rescore-after-an-instrument-fault.md b/docs/decisions/021-rescore-after-an-instrument-fault.md new file mode 100644 index 0000000..b9c90fa --- /dev/null +++ b/docs/decisions/021-rescore-after-an-instrument-fault.md @@ -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 | diff --git a/docs/requirements.md b/docs/requirements.md index b24ec94..f5323f2 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -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 diff --git a/docs/rounds/round-5d.md b/docs/rounds/round-5d.md index cbe1aa2..f2150a4 100644 --- a/docs/rounds/round-5d.md +++ b/docs/rounds/round-5d.md @@ -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 |