Repository navigation
feat(reader): present pinned Anna word-boundary results - #453
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Review of exact HEAD b629e80ac446bd6655e2cfde9d7a85731d690aa7 — REQUEST_CHANGES (one acceptance blocker).
The source-backed table is correct as authored, and the canonical seven-variant JSON, the
21 value attributes, source identity, provenance and M2 0/5 boundaries agree.
All 23 observed exact-head workflow runs succeeded, including Reader and Pages
artifact construction; the Pages deployment job was skipped. I did not rerun
Python tests or perform browser/print visual acceptance.
Blocking: the numeric regression checks metadata but not what readers see.
In tests/test_word_density_reader.py, _assert_probe_matches_frozen
extracts only the data-probe attributes and value attributes; it never
inspects the human-visible content of the <data> cells. Thus changing
<data data-probe="split_ascii_hyphen:word_count" value="270969">270 969</data>
to the same element with visible text 270 968 leaves all 21 extracted
pairs identical to the frozen JSON, even though the Reader now publishes a
false word count. I reproduced this exact one-character mutation in the
current HTML and confirmed the 21-pair comparison still succeeds; I did
not run the whole Python suite on a modified checkout. The existing
adversarial regression only changes the attribute, not the visible number.
Please bind each rendered numeric cell's visible text (including grouping,
decimal comma and signs) to its canonical value/frozen count and add
a negative test that corrupts only the rendered text. This is in scope:
the PR explicitly promises that all 21 published values are verified.
The chart labels should also remain consistent with those counts.
No new research, metric definitions or deployment claims are needed.
Non-blocking: the new README "Explore in the Russian Reader" relative
Markdown link opens the HTML file on GitHub, not the rendered Pages route;
consider making that user-facing destination explicit when it is verified.
drevendev
left a comment
There was a problem hiding this comment.
Review of exact HEAD aefbdef9a9b1e4c91f0c961b9394f74e771530c5 — APPROVE.
The previous blocking visible-number regression gap is resolved. The new assertion compares all 21 public <data> text values to their canonical frozen value attributes (grouped integers, signed changes, decimal commas and six-place rates); negative cases now alter only human-visible counts/rates. It also checks chart labels, bar directions, common-max widths, source metadata and the frozen run reference. I independently cross-checked the exact-head HTML and immutable JSON: 7 variants, 21/21 published numeric cells, 3/3 chart labels and widths match. A visible-only one-digit mutation was distinguishable without altering the machine-readable value.
The source provenance and scientific boundaries remain intact: 239 pinned revisions, normalized source SHA-256 1dcf2af815f6288099f77a038d873690fb0dc72edf81d2094fd29f3d5a30c205, independent one-factor probes, DIAGNOSTIC_ONLY, FantLab input UNKNOWN, M2 0/5. No manuscript prose is published by this change.
All 23 retrieved exact-head workflow runs completed successfully. The relevant Reader, Pages verify/build and frozen-diagnostic jobs passed (GitHub Actions runs 42344594769, 42344594824 and 42344594755). The Pages deployment job was skipped, not passed. Python/browser/print tests were not independently rerun in this review; public deployment and visual acceptance are not verified.
Content judgement only; this approval does not certify live-site publication, FantLab parity or completion of Issues #281/#283. No blocking defect remains in this PR's bounded source/Reader contract.
Refs #281 and #283 (partial).
Product outcome
Verification / acceptance gates