Commit 87cd0a2
docs: the art check compares text, not bytes
The renderer's module docstring said a test can re-render and compare bytes.
That is not what happens. check_repo_art reads both sides with
Path.read_text, which applies universal-newline translation, so the comparison
is over text and a CRLF checkout passes either way.
The paragraph is the design rationale for check mode, so a reader deciding
whether to trust the gate reads exactly this claim. It now says what the check
does.
The byte-level reads are elsewhere and unchanged: the receipt records each
drawing's byte count and SHA-256 from read_bytes, which is why the art is
pinned to LF in .gitattributes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 6576b13 commit 87cd0a2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments