diff --git a/docs/rounds/round-5d.md b/docs/rounds/round-5d.md index 8594d7d..cbe1aa2 100644 --- a/docs/rounds/round-5d.md +++ b/docs/rounds/round-5d.md @@ -12,6 +12,9 @@ Amended again on 2026-11-01, before any round-5d trial ran: the verdict rules of 13d.7 replace round 5's one-strike reading, and the radar plots how far each row moved (13d.8). +Amended a third time on 2026-11-01, before any round-5d trial ran: adherence +leaves the primary rows, and the hidden tests take its place (13d.4). + ## 13d. Round 5d: a person's file and a 40-line file, against round 5c ### 13d.1 What it takes from round 5c @@ -97,7 +100,7 @@ and H5. | | | | --- | --- | | Contrast | `hand` minus round 5c's `none`, unpaired | -| Primary rows | as round 5's H1 | +| Primary rows | the round's primary rows, below | | Supported | some primary row is better, and none is worse | | Refuted | any primary row is worse | | Otherwise | inconclusive | @@ -109,7 +112,7 @@ delivers. | | | | --- | --- | | Contrast | each templates arm of round 5c, minus `hand`, unpaired | -| Primary rows | as round 5's H1 | +| Primary rows | the round's primary rows, below | | Supported, per arm | every primary row is held or better | | Refuted, per arm | any primary row is worse | @@ -119,10 +122,20 @@ templates delivers at least what a person's file of the same length delivers. | | | | --- | --- | | Contrast | `short` minus `hand`, paired within the block | -| Primary rows | as round 5's H1 | +| Primary rows | the round's primary rows, below | | Supported | every primary row is held or better | | Refuted | any primary row is worse | +**The primary rows** are outcomes: + +- task success, the hidden suite's pass rate, on working builds; +- the security and data-protection probe pass rates, on working builds; +- the judge's security and data-protection rows. + +Adherence is not among them. It scores the templates' own checklist, which +only the templates arms were given, so it shows whether the rules reached the +code, not whether the code is better. It is printed without a verdict. + H4 to H6 are read under the rules of 13d.7, and each verdict is printed with its confidence and the arm's profile. @@ -202,7 +215,7 @@ failure once and lets only a difference past the margin decide. - **Better:** the whole interval lies past the margin, on the improving side. - **Held:** the whole interval lies inside the margin, as in ch. 8.1.2. - Otherwise the row is unsettled, and it decides nothing. -- The margins are round 5's: ch. 8.1.2, round 5's adherence and app-code rows, +- The margins are round 5's: ch. 8.1.2, round 5's app-code rows, and reliability's above. **Economy has margins, and two rows on the radar.** diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index c498d22..4a14676 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -812,7 +812,7 @@ def collect(trials, metrics=METRICS): working_only = is_round5d(trials) table = {} for key, label, direction, accessor in metrics: - if key in superseded: + if key in superseded or (working_only and key == "adherence"): direction = NEUTRAL row = {} for name, trial in sorted(trials.items()): @@ -2448,6 +2448,12 @@ def score(wins, fails): # that hybrid is the delivery floor, when every row is held or better. ROUND5_ROWS = ("adherence",) + PROBE_RATES + ("judge_security", "judge_data_protection") + +# Round 5d's primary rows are outcomes. Adherence scores the templates' own +# checklist, which only the templates arms were given, so it shows whether +# the rules arrived and decides nothing; the hidden tests decide instead. +ROUND5D_ROWS = ("task_success",) + PROBE_RATES + ("judge_security", + "judge_data_protection") ROUND5_HYPOTHESES = ( ("H1, skills deliver what hybrid does", "skills-hybrid", "held"), ("H3, a reference alone delivers less", "reference-hybrid", "worse"), @@ -2639,7 +2645,7 @@ def round5d_hypothesis(results, label, wanted): # At K = 15 reliability's interval is too wide to show it held, so it # can refute a hypothesis and never has to hold for one. rows = {key: row_reading(results.get(key, {}).get(label)) - for key in ROUND5_ROWS} + for key in ROUND5D_ROWS} reliability = row_reading(results.get("reliability", {}).get(label)) outcomes = set(rows.values()) if "worse" in outcomes or reliability == "worse": @@ -2669,7 +2675,7 @@ def leave_two_out(table, label, wanted, seed, margins, results=None, out, or with every two trials where the contrast is `unpaired`; fragile where any such reading differs; None where it was not read. A verdict `results` withholds stays withheld in every reading.""" - keys = ROUND5_ROWS + ("reliability",) + keys = ROUND5D_ROWS + ("reliability",) crossed = (label,) if unpaired else () withheld = {key: (results or {}).get(key, {}).get(label, {}).get( "verdict") for key in keys} @@ -2812,6 +2818,13 @@ def boot(install, factory, status): checks.append(("round 5d reads task success on working builds only", got == (None, 0.0, 0.0), got)) + # Round 5d prints adherence without a verdict and decides on the hidden + # tests; round 5 still reads adherence. + got = (later["adherence"]["direction"], earlier["adherence"]["direction"], + "adherence" in ROUND5D_ROWS, "task_success" in ROUND5D_ROWS) + checks.append(("round 5d decides on outcomes, and adherence decides " + "nothing", got == (NEUTRAL, UP, False, True), got)) + # A judge row's margin is 0.3 points. readings = [margined_verdict({"low": low, "high": high}, UP, 0.3) for low, high in ((0.05, 0.25), (0.35, 0.6), (-0.6, -0.35), @@ -2844,10 +2857,10 @@ def boot(install, factory, status): def planted_rows(verdicts, reliability): planted = {key: {"short-hand": {"verdict": verdict}} - for key, verdict in zip(ROUND5_ROWS, verdicts)} + for key, verdict in zip(ROUND5D_ROWS, verdicts)} planted["reliability"] = {"short-hand": {"verdict": reliability}} return planted - held = ["held"] * len(ROUND5_ROWS) + held = ["held"] * len(ROUND5D_ROWS) got = (round5d_hypothesis(planted_rows(held, "no improvement shown"), "short-hand", "held")[0], round5d_hypothesis(planted_rows(held, "worse"), "short-hand", @@ -2867,7 +2880,7 @@ def table(security): rows = {key: {"label": key, "direction": UP, "values": { "short": {index: 1.0 for index in range(1, 7)}, "hand": {index: 1.0 for index in range(1, 7)}}} - for key in ROUND5_ROWS + ("reliability",)} + for key in ROUND5D_ROWS + ("reliability",)} rows["judge_security"]["values"]["short"].update(security) return rows got = (leave_two_out(table({}), "short-hand", "held", seed, @@ -2879,9 +2892,9 @@ def table(security): # Security two points worse in every block refutes in every reading; # withheld by the cross-check, it stays withheld, so the two blocks - # losing adherence decide, and the reading is fragile. + # losing task success decide, and the reading is fragile. planted_table = table({index: -1.0 for index in range(1, 7)}) - planted_table["adherence"]["values"]["short"].update({1: 0.0, 2: 0.0}) + planted_table["task_success"]["values"]["short"].update({1: 0.0, 2: 0.0}) shown = contrasts(planted_table, seed, (), ROUND5D_MARGINS, True, only=("short-hand",)) published = round5d_hypothesis(shown, "short-hand", "held")[0] @@ -2898,7 +2911,7 @@ def table(security): # is compared with what the report printed, so the reading is fragile. printed = contrasts(table({}), seed, (), ROUND5D_MARGINS, True, only=("short-hand",)) - printed["adherence"]["short-hand"]["verdict"] = "no improvement shown" + printed["task_success"]["short-hand"]["verdict"] = "no improvement shown" got = (leave_two_out(table({}), "short-hand", "held", seed, ROUND5D_MARGINS), leave_two_out(table({}), "short-hand", "held", seed, @@ -2961,7 +2974,7 @@ def judged(score, reused=False): apart = {key: {"label": key, "direction": UP, "values": { "short": {index: 1.0 for index in range(1, 7)}, "hand": {index: 1.0 for index in range(7, 13)}}} - for key in ROUND5_ROWS + ("reliability",)} + for key in ROUND5D_ROWS + ("reliability",)} printed_apart = contrasts(apart, seed, ("short-hand",), ROUND5D_MARGINS, True, only=("short-hand",)) got = (round5d_hypothesis(printed_apart, "short-hand", "held")[0],