From 983e37b1ea17fcd9beb00565984ad89d67db2913 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sat, 14 Nov 2026 17:33:03 +0200 Subject: [PATCH 1/5] feat(efficacy): from round 6, verdicts and the screen read the ISO radar An arm's verdict against none now reads the ISO radar's markers: worse on any axis worse, better on one better with none worse. Round 6's screen ranks candidates by axes better, then cost. The record's first table is the ISO radar's. `report.py --iso` reads a pilot round this way as a post-hoc draft, never under docs/audits/, and keeps its aggregate as aggregate-iso.json beside the registered one. ADR-024 records the decision; FR-12-16 to FR-12-18 and their checks. Closes #165 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/architecture/08-crosscutting-concepts.md | 20 +- .../architecture/09-architecture-decisions.md | 1 + docs/coverage.md | 3 + docs/decisions/023-the-iso-radar.md | 1 + .../024-verdicts-read-the-iso-radar.md | 76 ++++ docs/requirements.md | 5 +- tests/efficacy/report.py | 341 ++++++++++++++++-- 7 files changed, 406 insertions(+), 41 deletions(-) create mode 100644 docs/decisions/024-verdicts-read-the-iso-radar.md diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index 32f422b..1632bdc 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -621,13 +621,19 @@ sub-scores per axis. The decision is ADR-023. - What it did better and worse than `none`, by radar axis. - Reliability: how many runs fell short, and how many would not start. - Cost: dollars per run. -- Its verdict from the deciding measures, the hidden tests, both probe sets - and the judge's five primaries: **Yes** where one is better and none - worse, **Worse** where any is worse, **No** where none moved. - -The radar and the words describe the verdicts and decide nothing. Every -claim rests on a row of the appendix or the record. What the report opens -with is ADR-013. +- Its verdict. In the pilot rounds it reads the deciding measures, the + hidden tests, both probe sets and the judge's five primaries. From round 6 + it reads the ISO radar's axes (FR-12-16). Either way: **Yes** where one is + better and none worse, **Worse** where any is worse, **No** where none + moved. + +In the pilot rounds the radar and the words describe the verdicts and +decide nothing. From round 6 the verdict reads the radar's own markers, so +the two cannot disagree; an axis no target measures is not read. Round 6's +arms are screened on the same axes (FR-12-17). A pilot round read by the +ISO radar is a post-hoc draft (FR-12-18). Every claim rests on a row of the +appendix or the record. What the report opens with is ADR-013; the verdict +on the axes is ADR-024. ### 8.7.4 Checks declared after a run diff --git a/docs/architecture/09-architecture-decisions.md b/docs/architecture/09-architecture-decisions.md index cbf5a10..7462f04 100644 --- a/docs/architecture/09-architecture-decisions.md +++ b/docs/architecture/09-architecture-decisions.md @@ -61,6 +61,7 @@ report shows first. | [ADR-013](../decisions/013-what-the-report-opens-with.md) | The report opens with the finding table, and keeps the score table only for contrasts between two files | Accepted | | [ADR-015](../decisions/015-contrasts-and-verdicts.md) | A contrast gets a verdict only when both its arms run in the same round | Accepted | | [ADR-023](../decisions/023-the-iso-radar.md) | From round 6 the radar reads ISO/IEC 25010:2023: eight axes, each the share of its targets met against `none`, a marker only past the axis's margin, the cost shown above | Accepted | +| [ADR-024](../decisions/024-verdicts-read-the-iso-radar.md) | From round 6 an arm's verdict and round 6's screen read the ISO radar's axes; a pilot round read by them is a post-hoc draft | Accepted | ## 9.5 Running and keeping a round diff --git a/docs/coverage.md b/docs/coverage.md index ee3f09d..43f3895 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -176,6 +176,9 @@ when: | FR-12-13 | Self-test | `report.py` "round 5e reads under round 5d's rules, against its own registration, owing its own arms' blocks"
`report.py` "round 5e's contrasts are declared: each map arm against none and every reused arm, and the skill against the file"
`report.py` "H7 to H9 are supported when every row is held or better, refuted by any worse row, reliability's included"
`report.py` "the plain report asks round 5e's questions, not round 5d's"
`report.py` "the plain report qualifies H7's answer with what the map's use says" | | FR-12-14 | Self-test | `report.py` "the map's use counts each template read or skill loaded, with its turn, and those before the first write"
`report.py` "an arm's map is its skills or its vendored chain, and the bare arm has none"
`report.py` "a shell command that writes counts as the first write, a template off the map is not counted, and a trial that never wrote says nothing about reading up front"
`report.py` "every trial's reads are listed with their turns"
`report.py` "the aggregate keeps each trial's map use"
`report.py` "a shell read of a template counts, a redirection to the null device or into another stream is no write, an edit in place or a download is one, and a brace list expands"
`report.py` "with no trial that wrote, the note beside H7 withholds the reading"
`report.py` "quoted text is no shell operator, and a path a shell command lists or tests is not read"
`report.py` "a shell command is read one simple command at a time: every operand of a reading command counts, and a verb in an argument is no command"
`report.py` "a subagent's reads count at the turn that delegated, and a wildcard stands for every template of the map it matches"
`report.py` "a map no trial read is said to be ignored, not read on demand"
`report.py` "a trial that read and never wrote beside one that wrote and never read shows no on-demand reading"
`report.py` "each subagent is charged to the turn that started it, and a separator inside quotes splits no command"
`report.py` "a read before the writing command of one shell call comes before the write, a here-document body is no command, and a backslash continues a line"
`report.py` "a skills arm's shell write counts, a redirection after a here-document opener stays, a subagent is charged to the delegating message, and a search's pattern is no file"
`report.py` "a subagent pointing at the previous delegation's result is charged to its own delegation, a quoted pattern is one operand, a path follows the call's directory change, a wildcard stands for no slash, a loop's files are read by the body's command that reads its variable, a flag names a search's pattern, and a quoted null device is no write" | | FR-12-15 | Self-test | `report.py` "the screen drops an arm worse than none on a deciding row, ranks the rest by rows better and then by cost, and keeps four"
`report.py` "the screen names the arms round 6 runs"
`report.py` "the screen names no arm for round 6 while the run is short of its K"
`report.py` "a reused arm short of its K holds the screen as a fresh one does"
`report.py` "a deciding row not computed yet holds the screen"
`report.py` "a candidate out on a row read worse holds the screen for no unread row"
`report.py` "the screen ranks what it holds and names no arm for round 6 while a candidate is missing" | +| FR-12-16 | Self-test | `report.py` "an ISO-read arm's verdict is worse on an axis worse, better on one better with none worse, and no clear gain otherwise"
`report.py` "the plain words name the axes behind an ISO-read verdict"
`report.py` "the summary's axis table of an ISO-read run is the ISO radar's, marked as the chart is" | +| FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"
`report.py` "an axis no target measures neither holds nor moves the ISO screen"
`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" | +| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide" | ## 13 Records and archive diff --git a/docs/decisions/023-the-iso-radar.md b/docs/decisions/023-the-iso-radar.md index 88803d5..965907b 100644 --- a/docs/decisions/023-the-iso-radar.md +++ b/docs/decisions/023-the-iso-radar.md @@ -88,3 +88,4 @@ split; `#N` is in this repository; a dash means none. | Date | Change | Why | Issue | | ---- | ------ | --- | ----- | | 2026-11-04 | From round 6 the radar reads ISO/IEC 25010:2023: eight axes, the share of targets met, markers past a margin, cost above | The pilot's radars read the benchmark's rows, not the software's qualities; the spike in #118 settled the chart | #121 | +| 2026-11-14 | Rule 10 and alternative E: from round 6 the verdict in the text reads the radar's markers, as ADR-024 decides | Round 5e read by the radar showed the verdict and the chart disagreeing | #165 | diff --git a/docs/decisions/024-verdicts-read-the-iso-radar.md b/docs/decisions/024-verdicts-read-the-iso-radar.md new file mode 100644 index 0000000..a22cbde --- /dev/null +++ b/docs/decisions/024-verdicts-read-the-iso-radar.md @@ -0,0 +1,76 @@ +--- +id: "024" +status: Accepted +date: 2026-11-14 +category: report +supersedes: [] +superseded_by: [] +--- + +# ADR-024: From round 6, verdicts and the screen read the ISO radar + +## Context + +ADR-023 gave round 6 the ISO radar but kept the verdict on round 5d's +deciding rows: the hidden tests, both probe sets and the judge's five +primaries. Round 5e read by the ISO radar showed the two parting ways. The +radar marked no axis better for `lazyskills`, whose verdict still read +better, and three axes better for `hybrid`, whose verdict rested on the +security checks alone. A reader sees the chart first, so a verdict that +says something else reads as a contradiction. The same rows also drive +round 5d's screen of round 6's arms (13d.9). + +## Decision + +From round 6 an arm's verdict against `none` is read from the ISO radar's +axes, and round 6's arms are screened on those axes; the pilot rounds keep +the rules they registered, and a pilot round read by the ISO radar is a +draft that says it is post hoc. + +## Rationale + +- The chart and the verdict read the same markers, so they cannot disagree. +- The axes are the software's qualities, not the benchmark's rows; a + verdict on them says what a reader asks. +- Each axis already has a margin sized from the pilot's noise (ADR-023, + rule 7), so a verdict on the axes moves only past that margin. + +## Design + +| # | Rule | In practice | +| - | ---- | ----------- | +| 1 | Worse on any axis worse | One ▽ makes the verdict **Worse**, whatever the rest gained | +| 2 | Better on an axis better, none worse | At least one ▲ and no ▽ is **Yes** | +| 3 | No clear gain otherwise | Every axis read within its margin is **No** | +| 4 | An axis not measured is not read | Compatibility, with no target yet, neither helps nor hurts; with no axis read at all the verdict is not measured | +| 5 | Cost is shown, not counted | It stays above each radar, as ADR-023 has it | +| 6 | The screen reads the axes | Out on an axis worse; the rest ranked by axes better, then by mean cost; the top four go on, as 13d.9 had it for its rows | +| 7 | An unmeasured axis never holds the screen | An axis no target reaches would hold it for good; a run short of its K still holds it | +| 8 | The summary's table is the radar's | The record's first table lists the ISO axes, each arm's share and marker, not the pilot's clusters | +| 9 | A pilot round is read post hoc | `report.py --iso` writes a draft only, never under `docs/audits/`, opens with a note that the rules came after the results, and keeps its aggregate as `aggregate-iso.json` beside the registered one | + +## Alternatives considered + +| # | Alternative | Outcome | +| - | ----------- | ------- | +| A | Verdict and screen on the ISO axes | Chosen | +| B | Keep the deciding rows, as ADR-023 had it | Why not: the radar and the verdict disagree on the same page | +| C | Show both, the rows' verdict beside the axes | Why not: two verdicts per arm leave the reader to pick one | +| D | Count the axes better minus worse | Why not: one axis worse would be outweighed by two better, and a loss on one quality is not bought back by another | + +## Consequences + +| Consequence | Effect | +| ----------- | ------ | +| ADR-023's rule 10 changes | The radar still carries no verdict word, but from round 6 the verdict in the text reads its markers | +| Round 6's arms are chosen post hoc | Round 5e read by the ISO radar ranks `hybrid`, `inline`, `lazyref` and `hand` first, against `reference`, `skills`, `lazyskills` and `lazyref` by 13d.9. The axes were chosen after round 5e's results were seen, so the pick is a selection, not a finding: round 6 runs the four fresh and paired | +| Round 5e's report stands | Its verdicts and its screen under 13d.9 are its registered reading; the post-hoc ISO page describes it and decides nothing | +| Thin axes weigh as much as full ones | Performance and Flexibility rest on one or two targets each until the probes for them land (#119); a move on one counts as a move on Security | + +## History + +Every change to this decision, oldest first. `#N` is in this repository. + +| Date | Change | Why | Issue | +| ---- | ------ | --- | ----- | +| 2026-11-14 | From round 6 verdicts and the screen read the ISO radar's axes | Round 5e read by the ISO radar showed the radar and the verdict disagreeing; the owner chose the axes | #165 | diff --git a/docs/requirements.md b/docs/requirements.md index a783487..d692ad3 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -175,7 +175,7 @@ | FR-12-04 | The benchmark shall print a neutral row without a verdict. | Report | | FR-12-05 | The benchmark shall write a report, an appendix and a record for each round, each linking the next. | Report | | FR-12-06 | The benchmark shall draw one radar panel per file arm against `none`, in both themes, each axis better minus worse over its rows with a verdict. | Report | -| 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-07 | In the pilot rounds 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 | Removed: rounds 1 and 2's security checks, declared after their runs, were printed apart; from round 3 every check is a probe declared before the run, and those rounds are retired. | - | | 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 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 | @@ -184,6 +184,9 @@ | FR-12-13 | The benchmark shall read round 5e's H7 to H9 under round 5d's rules, each a map arm against the arm it answers, unpaired where the arms ran in different rounds. | Report | | FR-12-14 | The benchmark shall count, per trial of an arm whose file points at the templates, each template read from the vendored copy or loaded as a skill, the turn it happened at, and how many came before the trial's first write to a file of its own. | Report | | FR-12-15 | The benchmark shall screen round 6's candidates against `none` as round 5d registers: out on a deciding row worse, the rest ranked by rows better and then by mean cost, the top four kept. | Report | +| FR-12-16 | From round 6 the benchmark shall give each approach its verdict from the ISO radar's axes: Yes where an axis is better and none worse, Worse where any is worse, No where none moved; and the summary's axis table shall be the ISO radar's. | Report | +| FR-12-17 | The benchmark shall screen round 6's candidates on the ISO radar's axes: out on an axis worse, the rest ranked by axes better and then by mean cost, the top four kept; an axis no target measures shall neither hold nor move it. | Report | +| FR-12-18 | The benchmark shall read a pilot round by the ISO radar only as a draft that says it is post hoc, never under `docs/audits/`, and keep its aggregate beside the registered one. | Report | ### 13 Records and archive diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index 9779a56..aa33048 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -1741,6 +1741,8 @@ def write_report(root, trials, table, results, seed, out_dir, "fixed before any trial ran, in the " "solid-ai-benchmark repository.") lines.append("") + if iso and is_round5(trials): + lines.extend([POSTHOC_ISO_NOTE, ""]) if k < FEWEST_DECIDING: lines.append("**Every interval below is descriptive.** At K = %d no " "arrangement of paired differences reaches conventional " @@ -1834,7 +1836,7 @@ def write_report(root, trials, table, results, seed, out_dir, lines.append("") if is_round5e(trials): lines.extend(round5e_section(root, trials, table, results, seed, - margins_of(trials), uses)) + margins_of(trials), uses, iso)) lines.append("") lines.append("## Raw numbers, per trial") @@ -2123,6 +2125,22 @@ def vector_lines(results, active): "and data protection. One of them clearly worse makes the verdict " "worse, whatever the rest gained.") +# Said at the top of a pilot round read by the ISO radar, which only a +# draft may do. +POSTHOC_ISO_NOTE = ( + "**A post-hoc reading.** This round registered other rules. This page " + "reads it by the ISO radar, chosen after its results were seen, so it " + "describes the round and decides nothing; the round's own report keeps " + "its verdicts.") + +# What the verdict looks at in a run read with the ISO radar, whose axes +# decide. +PLAIN_ISO_VERDICT_RULE = ( + "Each verdict reads the radar's axes. One axis clearly worse than " + "no rules file makes the verdict worse, whatever the rest gained; one " + "clearly better, with none worse, makes it better. Cost is shown, not " + "counted.") + # Round 5's questions, as a reader would ask them. PLAIN_QUESTIONS = { "skills-hybrid": "Does the skills approach do as well as the hybrid " @@ -2177,15 +2195,41 @@ def iso_axis_moves(iso, name): return moves +def iso_answer(iso, name): + """One word from the ISO radar's markers for one contrast: Worse where + an axis reads worse, Yes where one reads better and none worse, No + where every axis read stays within its margin, Not measured where no + axis could be read.""" + moves = [value for _, value in iso_axis_moves(iso, name) + if value is not None] + if not moves: + return "Not measured" + if -1.0 in moves: + return "Worse" + if 1.0 in moves: + return "Yes" + return "No" + + +def arm_answer(results, name, iso=None): + """An arm's verdict against the bare arm, as one word.""" + # A run read with the ISO radar is judged by the axes the radar draws, + # so the chart and the verdict cannot say two things; a pilot run keeps + # the deciding rows it registered. + if iso: + return iso_answer(iso, name) + return answer([results[key][name]["verdict"] for key in ANSWERED]) + + def plain_arm_lines(trials, table, results, arm, length, iso=None): """One approach against the bare arm, in plain words: what it did better, what it did worse with the numbers a reader would ask for, and - its verdict. With `iso`, the axes are the ISO radar's, as its markers - read them, and the cost gets a line of its own.""" + its verdict. With `iso`, the axes and the verdict are the ISO radar's, + as its markers read them, and the cost gets a line of its own.""" name = "%s-%s" % (arm, BARE) scores = (iso_axis_moves(iso, name) if iso else cluster_scores(results, name)) - verdict = answer([results[key][name]["verdict"] for key in ANSWERED]) + verdict = arm_answer(results, name, iso) better = [PLAIN_AXES.get(axis, axis.lower()) for axis, value in scores if value is not None and value > 0] # The runs that fell short are counted whatever the reliability axis @@ -2248,10 +2292,33 @@ def plain_arm_lines(trials, table, results, arm, length, iso=None): if shortfall and not noted: lines.append("- Noted, though reliability was not clearly worse " "overall: %s." % ", ".join(shortfall)) - lines.extend(["", plain_verdict(results, name, verdict)]) + lines.extend(["", iso_plain_verdict(iso, name, verdict) if iso + else plain_verdict(results, name, verdict)]) return lines +def iso_plain_verdict(iso, name, verdict): + """A verdict read from the ISO radar in plain words, naming the axes + behind it.""" + moves = iso_axis_moves(iso, name) + + def moved(value): + return [PLAIN_AXES.get(axis, axis.lower()) for axis, move in moves + if move == value] + if verdict == "Worse": + return "**Verdict: worse**, on %s." % spoken(moved(-1.0)) + if verdict == "Yes": + return ("**Verdict: better**, on %s, with no axis worse." + % spoken(moved(1.0))) + if verdict == "No": + return "**Verdict: no clear gain.** No axis moved clearly." + if any(iso[1].get("iso:" + axis, {}).get(name, {}).get("verdict") + == CROSSING_VERDICT for axis, _ in ISO_AXES): + return ("**Verdict: not given.** Its runs come from an earlier round, " + "and comparing them with this round's would mix two rounds.") + return "**Verdict: not measured.** Too few runs were scored to compare it." + + def plain_verdict(results, name, verdict): """A verdict in plain words, naming the deciding measures behind it.""" def moved(direction): @@ -2336,6 +2403,8 @@ def plain_report_lines(root, trials, table, results, radar, appendix, k, "at all (`%s`). Each radar compares one approach with `%s`." % (times(runs, [arm for arm in runs if arm != BARE]), times(runs, [BARE]), BARE, BARE), ""] + if iso and is_round5(trials): + lines.extend([POSTHOC_ISO_NOTE, ""]) if radar: for theme, image in sorted(radar.items()): lines.append("![Radar per approach](%s#gh-%s-mode-only)" @@ -2346,7 +2415,8 @@ def plain_report_lines(root, trials, table, results, radar, appendix, k, "the ring means the approach did better on that axis, " "inside it means worse. Each axis groups several " "measurements; the appendix lists them." % BARE, "", - "## Each approach", "", PLAIN_VERDICT_RULE, ""]) + "## Each approach", "", + PLAIN_ISO_VERDICT_RULE if iso else PLAIN_VERDICT_RULE, ""]) for arm in arms: lines.extend(plain_arm_lines(trials, table, results, arm, context_lines(arm), iso)) @@ -3584,13 +3654,16 @@ def h7_note(rows): SCREEN_ROWS = ROUND5D_ROWS + ("reliability",) -def round6_screen(trials, table, results): +def round6_screen(trials, table, results, iso=None): """Each candidate against the bare arm: out where a deciding row reads worse, the rest ranked by rows better and then by mean cost, the top four going on to round 6 once every candidate is read and the run is whole. A candidate the run holds no trial of is named as missing, and nothing goes on until it is read too, nor while the run is short of - its K: a short run decides nothing.""" + its K: a short run decides nothing. With `iso`, the ISO radar's axes + stand in for the deciding rows.""" + if iso: + return iso_screen(trials, table, iso) rows = [] missing = [] @@ -3617,6 +3690,38 @@ def round6_screen(trials, table, results): if reading == "better"), "cost": arm_mean(table, "cost_usd", arm), "rank": None, "round6": False}) + return screen_ranked(trials, rows, missing) + + +def iso_screen(trials, table, iso): + """The screen on the ISO radar's axes: each candidate out where an + axis reads worse than the bare arm, the rest ranked by axes better and + then by mean cost, under the same holds as the deciding rows' screen.""" + rows = [] + missing = [] + present = {arm_of(name) for name in trials} + for arm in SCREEN_CANDIDATES: + if arm not in present or BARE not in present: + missing.append(arm) + continue + moves = iso_axis_moves(iso, "%s-%s" % (arm, BARE)) + + # An axis with no reading, such as one no target measures, is + # neither better nor worse. It cannot hold the screen, since an axis + # the instruments do not reach would hold it for good; a short run + # still holds it through what the run owes. + rows.append({"arm": arm, "unread": [], + "worse": [axis for axis, move in moves if move == -1.0], + "better": sum(1 for _, move in moves if move == 1.0), + "cost": arm_mean(table, "cost_usd", arm), + "rank": None, "round6": False}) + return screen_ranked(trials, rows, missing) + + +def screen_ranked(trials, rows, missing): + """The screen's rows ranked: a candidate with nothing worse ranks by + how much reads better, then by mean cost, and the top four go on once + no candidate is missing, the run owes nothing and nothing is unread.""" kept = [row for row in rows if not row["worse"]] kept.sort(key=lambda row: (-row["better"], row["cost"] if row["cost"] is not None else float("inf"))) @@ -3659,17 +3764,28 @@ def screen_owed(trials): return owed -def screen_lines(trials, table, results): +def screen_lines(trials, table, results, iso=None): """The screen as a table, and the arms round 6 runs, or the candidates - still to be read before it names them.""" - rows, missing = round6_screen(trials, table, results) - lines = ["### Round 6's arms, by the screen of 13d.9", "", - "Each candidate is read against `%s` by the rules of 13d.7. An " - "arm worse on a deciding row is out; the rest rank by how many " - "rows read better, then by mean cost. The screen decides which " - "arms run again, not which arm is better." % BARE, "", - "| Arm | Rows better | Rows worse | Mean cost | Screen |", - "| --- | --- | --- | --- | --- |"] + still to be read before it names them. With `iso`, it reads the ISO + radar's axes.""" + rows, missing = round6_screen(trials, table, results, iso) + if iso: + lines = ["### Round 6's arms, by the ISO radar's axes", "", + "Each candidate is read against `%s` on the radar's axes. " + "An arm worse on an axis is out; the rest rank by how many " + "axes read better, then by mean cost. The screen decides " + "which arms run again, not which arm is better." % BARE, "", + "| Arm | Axes better | Axes worse | Mean cost | Screen |", + "| --- | --- | --- | --- | --- |"] + else: + lines = ["### Round 6's arms, by the screen of 13d.9", "", + "Each candidate is read against `%s` by the rules of 13d.7. " + "An arm worse on a deciding row is out; the rest rank by how " + "many rows read better, then by mean cost. The screen " + "decides which arms run again, not which arm is better." + % BARE, "", + "| Arm | Rows better | Rows worse | Mean cost | Screen |", + "| --- | --- | --- | --- | --- |"] for row in rows: if row["worse"]: screen = "out: %s worse" % ", ".join( @@ -3707,9 +3823,11 @@ def screen_lines(trials, table, results): return lines -def round5e_section(root, trials, table, results, seed, margins, uses=None): +def round5e_section(root, trials, table, results, seed, margins, uses=None, + iso=None): """Round 5e's answer: round 5d's reading of H7 to H9, how each trial - used its map, and the screen for round 6.""" + used its map, and the screen for round 6, on the ISO radar's axes + where `iso` is given.""" lines = round5d_section(trials, table, results, seed, margins, ROUND5E_HYPOTHESES, "## Round 5e: the templates on demand") @@ -3717,7 +3835,7 @@ def round5e_section(root, trials, table, results, seed, margins, uses=None): lines.extend(map_use_lines( trials, map_uses(root, trials) if uses is None else uses)) lines.append("") - lines.extend(screen_lines(trials, table, results)) + lines.extend(screen_lines(trials, table, results, iso)) return lines @@ -4370,6 +4488,101 @@ def stamped(kind, message_id, uuid, *blocks): and "out: %s worse" % SHORT["task_success"] in text, text.splitlines()[-1])) + # The same run on the ISO radar's axes: hybrid better on two axes; + # skills, inline and lazyref on one each, by cost; reference out on one + # worse; Compatibility, which no target measures, read for no arm. + axes = {"iso:" + axis: {"%s-none" % arm: {"verdict": "held"} + for arm in SCREEN_CANDIDATES} + for axis, _ in ISO_AXES} + for contrast in axes["iso:Compatibility"].values(): + contrast["verdict"] = "not computed" + for axis, arm, verdict in (("Reliability", "hybrid", "better"), + ("Security", "hybrid", "better"), + ("Reliability", "inline", "better"), + ("Security", "skills", "better"), + ("Maintainability", "lazyref", "better"), + ("Maintainability", "reference", "worse")): + axes["iso:" + axis]["%s-none" % arm]["verdict"] = verdict + iso = ({}, axes, ()) + iso_rows, missing = round6_screen(held, table, results, iso) + iso_ranks = {row["arm"]: (row["rank"], row["round6"], row["worse"]) + for row in iso_rows} + checks.append(("the ISO screen drops an arm worse on an axis, ranks the " + "rest by axes better and then by cost, and keeps four", + not missing + and iso_ranks == {"hybrid": (1, True, []), + "skills": (2, True, []), + "inline": (3, True, []), + "lazyref": (4, True, []), + "hand": (5, False, []), + "short": (6, False, []), + "lazyskills": (7, False, []), + "reference": (None, False, + ["Maintainability"])}, + iso_ranks)) + checks.append(("an axis no target measures neither holds nor moves the " + "ISO screen", + all(row["unread"] == [] for row in iso_rows) + and any(row["round6"] for row in iso_rows), + [(row["arm"], row["unread"]) for row in iso_rows])) + iso_text = "\n".join(screen_lines(held, table, results, iso)) + checks.append(("the ISO screen names the arms round 6 runs and the axis " + "that put one out", + "by the ISO radar's axes" in iso_text + and "Round 6 runs `none` and `hybrid`, `skills`, `inline` " + "and `lazyref`." in iso_text + and "out: Maintainability worse" in iso_text, + iso_text.splitlines()[-1])) + + # Skills holds every deciding row but is better on an ISO axis, so the + # two rules part on it; a contrast no axis reads is not measured. + axes["iso:Security"]["hand-none"]["verdict"] = "worse" + axes["iso:Reliability"]["hand-none"]["verdict"] = "better" + blank = ({}, {"iso:" + axis: {"short-none": {"verdict": "not computed"}} + for axis, _ in ISO_AXES}, ()) + rows = {key: {"skills-none": {"verdict": "held"}} for key in ANSWERED} + got = (arm_answer(rows, "skills-none"), + arm_answer(rows, "skills-none", iso), + iso_answer(iso, "hybrid-none"), iso_answer(iso, "hand-none"), + iso_answer(iso, "short-none"), iso_answer(blank, "short-none")) + checks.append(("an ISO-read arm's verdict is worse on an axis worse, " + "better on one better with none worse, and no clear gain " + "otherwise", + got == ("No", "Yes", "Yes", "Worse", "No", "Not measured"), + got)) + got = (iso_plain_verdict(iso, "hybrid-none", "Yes"), + iso_plain_verdict(iso, "hand-none", "Worse"), + iso_plain_verdict(iso, "short-none", "No")) + checks.append(("the plain words name the axes behind an ISO-read verdict", + got == ("**Verdict: better**, on reliability and security, " + "with no axis worse.", + "**Verdict: worse**, on security.", + "**Verdict: no clear gain.** No axis moved " + "clearly."), got)) + shares = {"iso:" + axis: {"values": {"none": {1: 50.0}, + "hybrid": {1: 80.0}}} + for axis, _ in ISO_AXES} + shares["iso:Compatibility"] = {"values": {}} + axes["iso:Reliability"]["hybrid-none"]["mean"] = 30.0 + axes["iso:Security"]["hybrid-none"]["mean"] = 30.0 + got = iso_radar_table((shares, axes, ()), ["hybrid"]) + checks.append(("the summary's axis table of an ISO-read run is the ISO " + "radar's, marked as the chart is", + "| Reliability | 50 % | 80 % ▲ +30 |" in got + and "| Usability | 50 % | 80 % ● |" in got + and "| Compatibility | not measured | not measured |" + in got and not any("Economy" in line for line in got), + got)) + audits = os.path.join(tempfile.gettempdir(), *AUDITS) + got = (posthoc_iso_problem(True, audits) is not None, + posthoc_iso_problem(True, tempfile.gettempdir()), + posthoc_iso_problem(False, audits), + aggregate_name(True), aggregate_name(False)) + checks.append(("a pilot round read by the ISO radar is only a draft, and " + "keeps its aggregate beside the registered one", + got == (True, None, None, "aggregate-iso.json", + "aggregate.json"), got)) + # The plain report answers the latest round's questions: with round # 5e's arms present, H7 to H9, and not round 5d's. design = {"none": 3, "reference": 3, "skills": 3, "hand": 3, @@ -4399,6 +4612,13 @@ def stamped(kind, message_id, uuid, *blocks): and qualified.find("compares a map ignored") > qualified.find(PLAIN_QUESTIONS["lazyref-reference"]), qualified[qualified.find("## The questions"):][:500])) + posthoc = " ".join(rendered_plain(run, 20260912, iso=True).split()) + checks.append(("a pilot round read by the ISO radar says it is post hoc " + "and that its axes decide", + " ".join(POSTHOC_ISO_NOTE.split()) in posthoc + and " ".join(PLAIN_ISO_VERDICT_RULE.split()) in posthoc + and " ".join(POSTHOC_ISO_NOTE.split()) not in plain, + posthoc[:600])) return checks @@ -5400,6 +5620,29 @@ def radar_table(results, arms): return lines +def iso_radar_table(iso, arms): + """The ISO radar as a table, one row per axis and a column per arm, + each cell the axis's share with its marker as the chart labels it, + and the bare arm's share beside: the radar's text view.""" + lines = ["| Axis | `%s` | %s |" % (BARE, " | ".join( + "`%s`" % arm for arm in arms)), + "| --- | --- | %s |" % " | ".join("---" for _ in arms)] + for axis, _ in ISO_AXES: + key = "iso:" + axis + bare = arm_mean(iso[0], key, BARE) + cells = [] + for arm in arms: + score = arm_mean(iso[0], key, arm) + contrast = iso[1].get(key, {}).get("%s-%s" % (arm, BARE), {}) + marker = (iso_marker(contrast) if score is not None + and bare is not None else None) + cells.append(axis_reading(score, marker, contrast.get("mean"))) + lines.append("| %s | %s | %s |" % ( + axis, NOT_MEASURED if bare is None else "%d %%" % round(bare), + " | ".join(cells))) + return lines + + def axis_score(value): """An axis score as the radar's table prints it: signed, two places, zero unsigned, a dash where the axis has no verdict.""" @@ -6105,7 +6348,7 @@ def executive_section(trials, table, results, withdrawn=None, lost=(), else RADAR_READING, ""]) else: lines.extend(["No radar was drawn for this run.", ""]) - lines.extend(finding_lines(trials, table, results, active)) + lines.extend(finding_lines(trials, table, results, active, iso)) scored = between_files(results, active) if scored: lines.extend(["", scored]) @@ -6113,8 +6356,9 @@ def executive_section(trials, table, results, withdrawn=None, lost=(), return lines -def finding_lines(trials, table, results, active): - """The finding table, its why-lines and its reading.""" +def finding_lines(trials, table, results, active, iso=None): + """The finding table, its why-lines and its reading. With `iso`, each + verdict reads the ISO radar's axes.""" names = ["%s-%s" % (treatment, baseline) for treatment, baseline in active if baseline == BARE] if not names: @@ -6123,15 +6367,15 @@ def finding_lines(trials, table, results, active): "none in this run yet." % BARE] arms = [name.split("-")[0] for name in names] lengths = {arm: context_lines(arm) for arm in arms} - answers = {arm: answer([results[key][name]["verdict"] - for key in ANSWERED]) + answers = {arm: arm_answer(results, name, iso) for arm, name in zip(arms, names)} # One row per arm, the bare arm first as the line every other is read # against, then the files from the cheapest to the dearest. ranked = by_cost(table, arms) lines = ["## Arms against `%s`" % BARE, ""] - lines.extend(radar_table(results, ranked)) + lines.extend(iso_radar_table(iso, ranked) if iso + else radar_table(results, ranked)) lines.extend(["", "| Arm | File | Verdict vs `%s` | %s |" % (BARE, " | ".join(heading @@ -6451,6 +6695,10 @@ def parse_args(argv): help="also write a post-hoc page reading the round " "by round 5d's rules; its registered verdicts " "stand") + parser.add_argument("--iso", action="store_true", + help="read a pilot round by the ISO radar: its " + "radar, verdicts and screen, as a draft only; " + "its registered verdicts stand") parser.add_argument("--self-test", action="store_true", help="check the verdict rule against worked cases; " "read no run") @@ -6884,8 +7132,9 @@ def rendered_appendix(trials, seed): return text -def rendered_plain(trials, seed, uses=None): - """The plain report a planted run renders, as text.""" +def rendered_plain(trials, seed, uses=None, iso=False): + """The plain report a planted run renders, as text; with `iso`, read + by the ISO radar as `--iso` reads a pilot round.""" table = collect(trials) results = round_contrasts(trials, table, seed) scratch = os.path.join(tempfile.gettempdir(), @@ -6893,7 +7142,8 @@ def rendered_plain(trials, seed, uses=None): shutil.rmtree(scratch, ignore_errors=True) os.makedirs(scratch) target = write_report(scratch, trials, table, results, seed, - out_dir=scratch, uses=uses) + out_dir=scratch, uses=uses, + iso=iso_reading(trials, seed) if iso else None) with io.open(target, encoding="utf-8") as handle: text = handle.read() shutil.rmtree(scratch, ignore_errors=True) @@ -8020,6 +8270,24 @@ def is_record(out_dir): return parts[-len(AUDITS):] == list(AUDITS) +def posthoc_iso_problem(posthoc_iso, out_dir): + """Why a pilot round read by the ISO radar may not be written to + `out_dir`, or None where it may.""" + # Its rules were chosen after its results were seen, so it may describe + # the round but never stand as the round's record. + if posthoc_iso and is_record(out_dir): + return ("--iso reads a pilot round by rules it did not register, so " + "it writes only a draft; name --out-dir outside docs/audits/") + return None + + +def aggregate_name(posthoc_iso): + """The file in the scoring area that keeps the reading's aggregate.""" + # The registered reading's aggregate is the one its record cites, so a + # post-hoc reading keeps its own beside it rather than over it. + return "aggregate-iso.json" if posthoc_iso else "aggregate.json" + + def main(argv): options = parse_args(argv) if options.templates: @@ -8044,6 +8312,12 @@ def main(argv): print("refused: %s, or name --out-dir for a draft" % error) return 2 + posthoc_iso = options.iso and not iso_rules(trials) + problem = posthoc_iso_problem(posthoc_iso, out_dir) + if problem: + print("refused: %s" % problem) + return 2 + # A report under docs/audits/ is the round's record, so it is written only # from a round archived as it stands; anywhere else it is a draft. if is_record(out_dir): @@ -8128,13 +8402,14 @@ def main(argv): return 2 check = cross_check(trials, other, options.seed) disagree(results, check) - iso = (iso_reading(trials, options.seed, withdrawn) if iso_rules(trials) - else None) + iso = (iso_reading(trials, options.seed, withdrawn) + if iso_rules(trials) or posthoc_iso else None) uses = map_uses(options.root, trials) if is_round5e(trials) else None target = write_report(options.root, trials, table, results, options.seed, out_dir, withdrawn, check, iso, uses) - with io.open(os.path.join(scoring_area(options.root), "aggregate.json"), + with io.open(os.path.join(scoring_area(options.root), + aggregate_name(posthoc_iso)), "w", encoding="utf-8") as handle: json.dump(aggregate(options.seed, trials, table, results, withdrawn, check, iso, uses), handle, indent=2, From 9353023b8922f5c4ddb5d5c9a7ebd7105f28b78d Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sat, 14 Nov 2026 17:38:49 +0200 Subject: [PATCH 2/5] fix(efficacy): an --iso draft is refused anywhere under docs/audits/ Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/coverage.md | 2 +- tests/efficacy/report.py | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/coverage.md b/docs/coverage.md index 43f3895..bd86827 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -178,7 +178,7 @@ when: | FR-12-15 | Self-test | `report.py` "the screen drops an arm worse than none on a deciding row, ranks the rest by rows better and then by cost, and keeps four"
`report.py` "the screen names the arms round 6 runs"
`report.py` "the screen names no arm for round 6 while the run is short of its K"
`report.py` "a reused arm short of its K holds the screen as a fresh one does"
`report.py` "a deciding row not computed yet holds the screen"
`report.py` "a candidate out on a row read worse holds the screen for no unread row"
`report.py` "the screen ranks what it holds and names no arm for round 6 while a candidate is missing" | | FR-12-16 | Self-test | `report.py` "an ISO-read arm's verdict is worse on an axis worse, better on one better with none worse, and no clear gain otherwise"
`report.py` "the plain words name the axes behind an ISO-read verdict"
`report.py` "the summary's axis table of an ISO-read run is the ISO radar's, marked as the chart is" | | FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"
`report.py` "an axis no target measures neither holds nor moves the ISO screen"
`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" | -| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide" | +| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/audits/, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide" | ## 13 Records and archive diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index aa33048..6fd9d25 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -4575,12 +4575,15 @@ def stamped(kind, message_id, uuid, *blocks): got)) audits = os.path.join(tempfile.gettempdir(), *AUDITS) got = (posthoc_iso_problem(True, audits) is not None, + posthoc_iso_problem(True, os.path.join(audits, "iso-draft")) + is not None, posthoc_iso_problem(True, tempfile.gettempdir()), posthoc_iso_problem(False, audits), aggregate_name(True), aggregate_name(False)) - checks.append(("a pilot round read by the ISO radar is only a draft, and " - "keeps its aggregate beside the registered one", - got == (True, None, None, "aggregate-iso.json", + checks.append(("a pilot round read by the ISO radar is only a draft, " + "never in or under docs/audits/, and keeps its aggregate " + "beside the registered one", + got == (True, True, None, None, "aggregate-iso.json", "aggregate.json"), got)) # The plain report answers the latest round's questions: with round @@ -8274,8 +8277,12 @@ def posthoc_iso_problem(posthoc_iso, out_dir): """Why a pilot round read by the ISO radar may not be written to `out_dir`, or None where it may.""" # Its rules were chosen after its results were seen, so it may describe - # the round but never stand as the round's record. - if posthoc_iso and is_record(out_dir): + # the round but never stand as the round's record, nor sit anywhere + # among the records where it could be read as one. + parts = os.path.normcase(os.path.abspath(out_dir)).split(os.sep) + among = any(parts[index:index + len(AUDITS)] == list(AUDITS) + for index in range(len(parts))) + if posthoc_iso and among: return ("--iso reads a pilot round by rules it did not register, so " "it writes only a draft; name --out-dir outside docs/audits/") return None From d05f42ebcd81189e2d7a6b2ec5e4fbd882f48b4b Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sat, 14 Nov 2026 17:44:23 +0200 Subject: [PATCH 3/5] fix(efficacy): a run read by the ISO radar refuses a cross-check Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/coverage.md | 2 +- docs/requirements.md | 2 +- tests/efficacy/report.py | 21 ++++++++++++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/coverage.md b/docs/coverage.md index bd86827..51a5269 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -178,7 +178,7 @@ when: | FR-12-15 | Self-test | `report.py` "the screen drops an arm worse than none on a deciding row, ranks the rest by rows better and then by cost, and keeps four"
`report.py` "the screen names the arms round 6 runs"
`report.py` "the screen names no arm for round 6 while the run is short of its K"
`report.py` "a reused arm short of its K holds the screen as a fresh one does"
`report.py` "a deciding row not computed yet holds the screen"
`report.py` "a candidate out on a row read worse holds the screen for no unread row"
`report.py` "the screen ranks what it holds and names no arm for round 6 while a candidate is missing" | | FR-12-16 | Self-test | `report.py` "an ISO-read arm's verdict is worse on an axis worse, better on one better with none worse, and no clear gain otherwise"
`report.py` "the plain words name the axes behind an ISO-read verdict"
`report.py` "the summary's axis table of an ISO-read run is the ISO radar's, marked as the chart is" | | FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"
`report.py` "an axis no target measures neither holds nor moves the ISO screen"
`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" | -| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/audits/, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide" | +| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/audits/, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide"
`report.py` "a run read by the ISO radar refuses a cross-check, whose withheld rows its markers would still count" | ## 13 Records and archive diff --git a/docs/requirements.md b/docs/requirements.md index d692ad3..2a4bc42 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -186,7 +186,7 @@ | FR-12-15 | The benchmark shall screen round 6's candidates against `none` as round 5d registers: out on a deciding row worse, the rest ranked by rows better and then by mean cost, the top four kept. | Report | | FR-12-16 | From round 6 the benchmark shall give each approach its verdict from the ISO radar's axes: Yes where an axis is better and none worse, Worse where any is worse, No where none moved; and the summary's axis table shall be the ISO radar's. | Report | | FR-12-17 | The benchmark shall screen round 6's candidates on the ISO radar's axes: out on an axis worse, the rest ranked by axes better and then by mean cost, the top four kept; an axis no target measures shall neither hold nor move it. | Report | -| FR-12-18 | The benchmark shall read a pilot round by the ISO radar only as a draft that says it is post hoc, never under `docs/audits/`, and keep its aggregate beside the registered one. | Report | +| FR-12-18 | The benchmark shall read a pilot round by the ISO radar only as a draft that says it is post hoc, never under `docs/audits/`, and keep its aggregate beside the registered one; a run read by the ISO radar shall take no cross-check. | Report | ### 13 Records and archive diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index 6fd9d25..5f86dcc 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -4585,6 +4585,11 @@ def stamped(kind, message_id, uuid, *blocks): "beside the registered one", got == (True, True, None, None, "aggregate-iso.json", "aggregate.json"), got)) + got = (iso_cross_problem(True, "C:/other-root") is not None, + iso_cross_problem(True, None), iso_cross_problem(False, "x")) + checks.append(("a run read by the ISO radar refuses a cross-check, whose " + "withheld rows its markers would still count", + got == (True, None, None), got)) # The plain report answers the latest round's questions: with round # 5e's arms present, H7 to H9, and not round 5d's. @@ -8288,6 +8293,18 @@ def posthoc_iso_problem(posthoc_iso, out_dir): return None +def iso_cross_problem(iso_read, cross): + """Why a run read by the ISO radar may not take a cross-check, or + None where it may.""" + # The ISO radar's markers, which decide its verdicts, read the round's + # own judge alone; a second judge's disagreements would withhold rows + # the markers still count. Every round the ISO radar reads has one judge. + if iso_read and cross: + return ("the ISO radar's verdicts read the round's own judge alone, " + "so a run read by it takes no --cross-check") + return None + + def aggregate_name(posthoc_iso): """The file in the scoring area that keeps the reading's aggregate.""" # The registered reading's aggregate is the one its record cites, so a @@ -8320,7 +8337,9 @@ def main(argv): return 2 posthoc_iso = options.iso and not iso_rules(trials) - problem = posthoc_iso_problem(posthoc_iso, out_dir) + problem = (posthoc_iso_problem(posthoc_iso, out_dir) + or iso_cross_problem(iso_rules(trials) or posthoc_iso, + options.cross_check)) if problem: print("refused: %s" % problem) return 2 From 1159e9ee5bed6e67d6d7ee9459df60f56e63b783 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:30:35 +0200 Subject: [PATCH 4/5] docs(decisions): round 6 runs the scripted arms, whichever screen reads 5e Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/decisions/024-verdicts-read-the-iso-radar.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/decisions/024-verdicts-read-the-iso-radar.md b/docs/decisions/024-verdicts-read-the-iso-radar.md index a22cbde..2ae5d61 100644 --- a/docs/decisions/024-verdicts-read-the-iso-radar.md +++ b/docs/decisions/024-verdicts-read-the-iso-radar.md @@ -63,7 +63,7 @@ draft that says it is post hoc. | Consequence | Effect | | ----------- | ------ | | ADR-023's rule 10 changes | The radar still carries no verdict word, but from round 6 the verdict in the text reads its markers | -| Round 6's arms are chosen post hoc | Round 5e read by the ISO radar ranks `hybrid`, `inline`, `lazyref` and `hand` first, against `reference`, `skills`, `lazyskills` and `lazyref` by 13d.9. The axes were chosen after round 5e's results were seen, so the pick is a selection, not a finding: round 6 runs the four fresh and paired | +| The post-hoc pick does not choose round 6's arms | Round 5e read by the ISO radar ranks `hybrid`, `inline`, `lazyref` and `hand` first, against `reference`, `skills`, `lazyskills` and `lazyref` by 13d.9. Round 6 runs only arms a script builds (#167): of round 5e's, `reference`, `skills`, `lazyref` and `lazyskills`, which pass either screen, so no rule chosen after the results picks them. `short` and `hand` are dropped, and `inline` and `hybrid` rebuilt by a script are new arms with no round-5e reading | | Round 5e's report stands | Its verdicts and its screen under 13d.9 are its registered reading; the post-hoc ISO page describes it and decides nothing | | Thin axes weigh as much as full ones | Performance and Flexibility rest on one or two targets each until the probes for them land (#119); a move on one counts as a move on Security | @@ -74,3 +74,4 @@ Every change to this decision, oldest first. `#N` is in this repository. | Date | Change | Why | Issue | | ---- | ------ | --- | ----- | | 2026-11-14 | From round 6 verdicts and the screen read the ISO radar's axes | Round 5e read by the ISO radar showed the radar and the verdict disagreeing; the owner chose the axes | #165 | +| 2026-11-15 | Round 6's arms are the scripted ones, whichever screen reads round 5e | A file a model writes changes on every generation; the owner kept only arms a script builds | #167 | From b10eecb0bc9d2cc02e69349c18e276bf689bcc03 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:38:05 +0200 Subject: [PATCH 5/5] fix(efficacy): an ISO axis with targets but no reading holds the screen Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3 --- docs/coverage.md | 2 +- docs/requirements.md | 2 +- tests/efficacy/report.py | 35 ++++++++++++++++++++++++++++++----- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/docs/coverage.md b/docs/coverage.md index 51a5269..48b3b14 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -177,7 +177,7 @@ when: | FR-12-14 | Self-test | `report.py` "the map's use counts each template read or skill loaded, with its turn, and those before the first write"
`report.py` "an arm's map is its skills or its vendored chain, and the bare arm has none"
`report.py` "a shell command that writes counts as the first write, a template off the map is not counted, and a trial that never wrote says nothing about reading up front"
`report.py` "every trial's reads are listed with their turns"
`report.py` "the aggregate keeps each trial's map use"
`report.py` "a shell read of a template counts, a redirection to the null device or into another stream is no write, an edit in place or a download is one, and a brace list expands"
`report.py` "with no trial that wrote, the note beside H7 withholds the reading"
`report.py` "quoted text is no shell operator, and a path a shell command lists or tests is not read"
`report.py` "a shell command is read one simple command at a time: every operand of a reading command counts, and a verb in an argument is no command"
`report.py` "a subagent's reads count at the turn that delegated, and a wildcard stands for every template of the map it matches"
`report.py` "a map no trial read is said to be ignored, not read on demand"
`report.py` "a trial that read and never wrote beside one that wrote and never read shows no on-demand reading"
`report.py` "each subagent is charged to the turn that started it, and a separator inside quotes splits no command"
`report.py` "a read before the writing command of one shell call comes before the write, a here-document body is no command, and a backslash continues a line"
`report.py` "a skills arm's shell write counts, a redirection after a here-document opener stays, a subagent is charged to the delegating message, and a search's pattern is no file"
`report.py` "a subagent pointing at the previous delegation's result is charged to its own delegation, a quoted pattern is one operand, a path follows the call's directory change, a wildcard stands for no slash, a loop's files are read by the body's command that reads its variable, a flag names a search's pattern, and a quoted null device is no write" | | FR-12-15 | Self-test | `report.py` "the screen drops an arm worse than none on a deciding row, ranks the rest by rows better and then by cost, and keeps four"
`report.py` "the screen names the arms round 6 runs"
`report.py` "the screen names no arm for round 6 while the run is short of its K"
`report.py` "a reused arm short of its K holds the screen as a fresh one does"
`report.py` "a deciding row not computed yet holds the screen"
`report.py` "a candidate out on a row read worse holds the screen for no unread row"
`report.py` "the screen ranks what it holds and names no arm for round 6 while a candidate is missing" | | FR-12-16 | Self-test | `report.py` "an ISO-read arm's verdict is worse on an axis worse, better on one better with none worse, and no clear gain otherwise"
`report.py` "the plain words name the axes behind an ISO-read verdict"
`report.py` "the summary's axis table of an ISO-read run is the ISO radar's, marked as the chart is" | -| FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"
`report.py` "an axis no target measures neither holds nor moves the ISO screen"
`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" | +| FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"
`report.py` "an axis no target measures neither holds nor moves the ISO screen"
`report.py` "an axis that lists targets but has no reading yet holds the ISO screen"
`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" | | FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/audits/, and keeps its aggregate beside the registered one"
`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide"
`report.py` "a run read by the ISO radar refuses a cross-check, whose withheld rows its markers would still count" | ## 13 Records and archive diff --git a/docs/requirements.md b/docs/requirements.md index 2a4bc42..c512cc7 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -185,7 +185,7 @@ | FR-12-14 | The benchmark shall count, per trial of an arm whose file points at the templates, each template read from the vendored copy or loaded as a skill, the turn it happened at, and how many came before the trial's first write to a file of its own. | Report | | FR-12-15 | The benchmark shall screen round 6's candidates against `none` as round 5d registers: out on a deciding row worse, the rest ranked by rows better and then by mean cost, the top four kept. | Report | | FR-12-16 | From round 6 the benchmark shall give each approach its verdict from the ISO radar's axes: Yes where an axis is better and none worse, Worse where any is worse, No where none moved; and the summary's axis table shall be the ISO radar's. | Report | -| FR-12-17 | The benchmark shall screen round 6's candidates on the ISO radar's axes: out on an axis worse, the rest ranked by axes better and then by mean cost, the top four kept; an axis no target measures shall neither hold nor move it. | Report | +| FR-12-17 | The benchmark shall screen round 6's candidates on the ISO radar's axes: out on an axis worse, the rest ranked by axes better and then by mean cost, the top four kept; an axis no target measures shall neither hold nor move it, and an axis that lists targets but has no reading yet shall hold it. | Report | | FR-12-18 | The benchmark shall read a pilot round by the ISO radar only as a draft that says it is post hoc, never under `docs/audits/`, and keep its aggregate beside the registered one; a run read by the ISO radar shall take no cross-check. | Report | ### 13 Records and archive diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index 5f86dcc..045337e 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -3706,11 +3706,13 @@ def iso_screen(trials, table, iso): continue moves = iso_axis_moves(iso, "%s-%s" % (arm, BARE)) - # An axis with no reading, such as one no target measures, is - # neither better nor worse. It cannot hold the screen, since an axis - # the instruments do not reach would hold it for good; a short run - # still holds it through what the run owes. - rows.append({"arm": arm, "unread": [], + # An axis with no reading is neither better nor worse. One that + # lists targets is waiting on its measurements, so it holds the + # screen; one with no target, which the instruments do not reach, + # would hold it for good, so it does not. + rows.append({"arm": arm, + "unread": [axis for axis, move in moves + if move is None and iso_targeted(axis)], "worse": [axis for axis, move in moves if move == -1.0], "better": sum(1 for _, move in moves if move == 1.0), "cost": arm_mean(table, "cost_usd", arm), @@ -3718,6 +3720,11 @@ def iso_screen(trials, table, iso): return screen_ranked(trials, rows, missing) +def iso_targeted(axis): + """Whether any sub-characteristic of an ISO axis lists a target.""" + return any(targets for _, targets in dict(ISO_AXES)[axis]) + + def screen_ranked(trials, rows, missing): """The screen's rows ranked: a candidate with nothing worse ranks by how much reads better, then by mean cost, and the top four go on once @@ -4534,6 +4541,24 @@ def stamped(kind, message_id, uuid, *blocks): and "out: Maintainability worse" in iso_text, iso_text.splitlines()[-1])) + # The security scores not in yet: Security lists targets, so the + # screen waits on it and names no arm, though every trial is in. + pending = {key: {label: dict(contrast) for label, contrast + in by_label.items()} for key, by_label in axes.items()} + for contrast in pending["iso:Security"].values(): + contrast["verdict"] = "not computed" + pending_iso = ({}, pending, ()) + pending_rows, _ = round6_screen(held, table, results, pending_iso) + pending_text = "\n".join(screen_lines(held, table, results, pending_iso)) + checks.append(("an axis that lists targets but has no reading yet holds " + "the ISO screen", + not any(row["round6"] for row in pending_rows) + and "`hybrid`'s Security" in pending_text + and "names no arms for round 6 yet" in pending_text + and all(row["unread"] in ([], ["Security"]) + for row in pending_rows), + pending_text.splitlines()[-1])) + # Skills holds every deciding row but is better on an ISO axis, so the # two rules part on it; a contrast no axis reads is not measured. axes["iso:Security"]["hand-none"]["verdict"] = "worse"