From 79210ed7622f57c1c9327684c6f1601a9f21975e Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Tue, 8 Sep 2026 22:02:04 -0400 Subject: [PATCH] docs(proficiency): fix the peer_rate docstring indentation and invisible spaces Review fixes on 9c7119a. No behaviour change -- docstring text only, full suite still 1806. Item 2 of the numbered list had lost its indentation, sitting at column 0 while items 1 and 3 sit at 4, with continuation lines at 8 instead of 7. More worth having: four U+202F NARROW NO-BREAK SPACE characters had been inserted around the operators in the formula. They render identically to a plain space, so they are invisible in review and in any diff -- found only by enumerating non-ASCII codepoints in the file. Replaced with plain spaces. Sigma, the multiplication sign and the dashes are kept: those are deliberate and legible. The distinction is the point -- a character you can see is a choice, a character you cannot see is a hazard, and this repo has just spent a session on exactly that failure mode (see plans/text-integrity-audit.md, whose fixtures were converted to \u escapes for the same reason). Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01VRQXz5SYZYVWscxS1QqF6U --- src/proficiency_outcome.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/proficiency_outcome.py b/src/proficiency_outcome.py index 562deea..6304a64 100644 --- a/src/proficiency_outcome.py +++ b/src/proficiency_outcome.py @@ -72,10 +72,10 @@ def recompute_category( For each row: 1. Re-compute benchmark via ``blend()`` on stored leaderboard / self_eval components. If neither component exists the row skips the conversion. -2. Collect *all* rows with ``outcome_samples > 0`` and compute the - category-level *peer_rate* (sample-weighted pooled rate: - Σoutcome_samples × outcome_score / Σoutcome_samples) and - *peer_benchmark* (mean benchmark_score over the same set). + 2. Collect *all* rows with ``outcome_samples > 0`` and compute the + category-level *peer_rate* (sample-weighted pooled rate: + Σoutcome_samples × outcome_score / Σoutcome_samples) and + *peer_benchmark* (mean benchmark_score over the same set). 3. Call ``expected_success_rate`` per row with the benchmark, outcome, and peer statistics. Write the final ``blended_score`` and ``source``. """ -- 2.49.1