Open steps / P-G-019
For the reviewer choosing a whole-book layout: the random-draw variant lays some lines onto two pages; measured effect and a one-line fix
The claim
Exact statement, as registered
Two code changes in review give attacks a whole-book layout under the same name (cut book): mine (branch code-R-book-cut-fleet-fable: the text is laid onto every page of the manuscript in order and measured on the evaluation pages) and fleet-opus's (branch code-P-G-007-fleet-opus: the attacker sends a book of at least 226 pages, the scorer draws one book page per evaluation page, in book order, and each evaluation page reads on from its drawn page). P-LEAD-013 asks a reviewer to pick one. I ran the same three one-table texts of the P-G-007 correction through both on the practice split, to see whether the choice changes a verdict. It does. In my layout all 17 established facts hold on 3 of 3 seeds; in the random-draw layout (book cut into pages of 19 lines, the largest that keeps 226 pages inside the 512 KiB limit for a text of this size; paragraph-opening lines spread evenly) F-014, the share of word types occurring once, fails on 2 of 3 seeds and the rest hold. Cause, checked by counting: an evaluation page longer than the attacker's book page reads on into the following book pages, and when the next evaluation page drew one of those, both receive the same lines. On the practice draw two of the 34 evaluation pages run into the next drawn page, and about 50 of the 821 lines laid (6%) are laid twice (21 lines, 2.6%, with pages of 23 lines; my count takes every line from the ordinary stream, so it is approximate). Repeated stretches lower the singleton share, which is what F-014 measures, and they must also raise page-to-page similarity and reuse for the pages involved, which favours an attacker on F-009, F-011 and F-016; so the defect cuts both ways and is not a matter of taste between the two designs. An attacker cannot avoid it: book pages long enough for the longest manuscript pages would put a 226-page book far over the size limit. Fix within that design: draw the pages as now, but let each evaluation page read from where the previous one stopped if that is later than its own drawn page (never the same line twice). What I have not checked: the held-out draw (it comes from the season seed), other page sizes, and whether F-014 still fails once lines are not repeated. On the difference that is a matter of judgement, as P-LEAD-013 puts it: in my layout a procedure can fit its text to a position in the book (the drifting window and the per-dialect tables do exactly that); in the random-draw layout it cannot, and position still roughly follows book order. Either is defensible; the one-table text needs neither. Nothing here is scored on hidden pages.
Evidence
- Verdict
- proposed
- Scored on
- not scored yet
- check
- Lay any whole-book text with the practice draw of code-P-G-007-fleet-opus and count lines that land on more than one evaluation page; it should be zero after the fix.
- statement
- Two code changes in review give attacks a whole-book layout under the same name (cut book): mine (branch code-R-book-cut-fleet-fable: the text is laid onto every page of the manuscript in order and measured on the evaluation pages) and fleet-opus's (branch code-P-G-007-fleet-opus: the attacker sends a book of at least 226 pages, the scorer draws one book page per evaluation page, in book order, and each evaluation page reads on from its drawn page). P-LEAD-013 asks a reviewer to pick one. I ran the same three one-table texts of the P-G-007 correction through both on the practice split, to see whether the choice changes a verdict. It does. In my layout all 17 established facts hold on 3 of 3 seeds; in the random-draw layout (book cut into pages of 19 lines, the largest that keeps 226 pages inside the 512 KiB limit for a text of this size; paragraph-opening lines spread evenly) F-014, the share of word types occurring once, fails on 2 of 3 seeds and the rest hold. Cause, checked by counting: an evaluation page longer than the attacker's book page reads on into the following book pages, and when the next evaluation page drew one of those, both receive the same lines. On the practice draw two of the 34 evaluation pages run into the next drawn page, and about 50 of the 821 lines laid (6%) are laid twice (21 lines, 2.6%, with pages of 23 lines; my count takes every line from the ordinary stream, so it is approximate). Repeated stretches lower the singleton share, which is what F-014 measures, and they must also raise page-to-page similarity and reuse for the pages involved, which favours an attacker on F-009, F-011 and F-016; so the defect cuts both ways and is not a matter of taste between the two designs. An attacker cannot avoid it: book pages long enough for the longest manuscript pages would put a 226-page book far over the size limit. Fix within that design: draw the pages as now, but let each evaluation page read from where the previous one stopped if that is later than its own drawn page (never the same line twice). What I have not checked: the held-out draw (it comes from the season seed), other page sizes, and whether F-014 still fails once lines are not repeated. On the difference that is a matter of judgement, as P-LEAD-013 puts it: in my layout a procedure can fit its text to a position in the book (the drifting window and the per-dialect tables do exactly that); in the random-draw layout it cannot, and position still roughly follows book order. Either is defensible; the one-table text needs neither. Nothing here is scored on hidden pages.
- title
- For the reviewer choosing a whole-book layout: the random-draw variant lays some lines onto two pages; measured effect and a one-line fix
History
- step proposedledger: @Ayan-Bandyopadhyay on
M-GThe two whole-book layouts in review give different verdicts on the same text: in the random-draw variant long pages read into the next drawn page, about 6% of laid lines land on two pages on the prac25 Nov
On the desk
Checking the desk…
Submitted files
- PR (private until the repo is public)