open_agh_chemistry_pl: record the 2026-10-06 rights-page recheck (no data change)

#87
by ppuzio - opened
data/open_agh_chemistry_pl/open_agh_chemistry_pl.license-evidence.json CHANGED
@@ -109,7 +109,31 @@
109
  "method": "read-only CDX lookups (web.archive.org/cdx/search/cdx); no Save Page Now request was made",
110
  "rights_pages": "no snapshot of any of the four rights-bearing URLs (/rpc/preview/handbooks/{29,1394,37,1893}/epub/light), of /rest/handbooks/{id}, or of anything under /rpc/preview/handbooks/",
111
  "landing_pages": "snapshots exist of /handbook/{id} (e.g. https://web.archive.org/web/20260510021229id_/https://epodreczniki.open.agh.edu.pl/handbook/29); the page is a ~3 kB shell with og: meta tags and no licence text, so it is not licence evidence",
112
- "consequence": "a later relabel of the rights pages cannot be ruled out from an archive; the current bytes are pinned by the sha256 values above. Generation dates of the EPUBs are 2025-12 to 2026-04 (Last-Modified headers)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  },
114
  "chain": [
115
  {
@@ -125,7 +149,7 @@
125
  },
126
  {
127
  "hop": "EPUB -> polish-dynaword",
128
- "basis": "src/build_open_agh_pl.py reads OEBPS/main.xhtml of the EPUB and fails closed on a missing by-sa/4.0 link, a missing \"Na tych samych warunkach\", a missing /handbook/{id} or an NC marker; rights_sha256 and epub_sha256 in books.json match the live bytes 4/4 on 2026-10-06",
129
  "mark": "V"
130
  }
131
  ],
 
109
  "method": "read-only CDX lookups (web.archive.org/cdx/search/cdx); no Save Page Now request was made",
110
  "rights_pages": "no snapshot of any of the four rights-bearing URLs (/rpc/preview/handbooks/{29,1394,37,1893}/epub/light), of /rest/handbooks/{id}, or of anything under /rpc/preview/handbooks/",
111
  "landing_pages": "snapshots exist of /handbook/{id} (e.g. https://web.archive.org/web/20260510021229id_/https://epodreczniki.open.agh.edu.pl/handbook/29); the page is a ~3 kB shell with og: meta tags and no licence text, so it is not licence evidence",
112
+ "consequence": "a later relabel of the rights pages cannot be ruled out from an archive; the bytes the build verified are pinned by the sha256 values above (book 37 has since been regenerated; see recheck). Generation dates of the EPUBs are 2025-12 to 2026-04 (Last-Modified headers)"
113
+ },
114
+ "recheck": {
115
+ "observed_at": "2026-10-06T10:22:38Z",
116
+ "method": "browser download of both EPUB variants of each book from its landing page (Paweł Puzio); the *_mathjax.epub file is the /epub/light payload that rights_page.url pins: for books 29, 1394 and 1893 it matches rights_page.epub_sha256 byte for byte",
117
+ "unchanged": [
118
+ 29,
119
+ 1394,
120
+ 1893
121
+ ],
122
+ "changed": [
123
+ {
124
+ "book_id": 37,
125
+ "file": "Podstawy_chemii_polimerów_mathjax.epub",
126
+ "epub_sha256": "aabf4a21561473bebe49f2beeeadeed93b1ce665f279a734ca572e798784541f",
127
+ "rights_sha256": "7283665b8b390d6f6482ce9545f58c7cd86c5b29d15c88674792f5f0c2ee3203",
128
+ "plain_variant_epub_sha256": "68a32725b8c0fd3b45b0e3ba4dab816de1d477b43309d5564a61d6492ddd582a",
129
+ "cause": "regenerated by the site: every zip member is dated 2026-10-06 10:11-10:12; same 260 members, 18 of them differ",
130
+ "quoted_licence_line": "Publikacja udostępniona jest na licencji Creative Commons Uznanie Autorstwa - Na tych samych warunkach 4.0.",
131
+ "licence_link": "https://creativecommons.org/licenses/by-sa/4.0/deed.pl",
132
+ "rights_page_diff": "cover year Kraków 2025 -> 2026; 'Autorzy:' -> 'Autorzy/Autorki:'; spacing after colons; the licence paragraph and its by-sa/4.0 link are unchanged; no NC marker, no \"3.0\" string",
133
+ "chapter_diff": "13 chapter files differ; a word-level diff shows list numbering, a cross-reference rendered as [10], bibliography formatting (Oprac. -> Red., added publisher names) and the generation timestamp; no change to the prose",
134
+ "dataset_effect": "none: rows are built from per-module HTML pinned by revision (src/build_open_agh_pl.py fetch_one), not from the EPUB; books.json and rights_page keep the bytes the build verified"
135
+ }
136
+ ]
137
  },
138
  "chain": [
139
  {
 
149
  },
150
  {
151
  "hop": "EPUB -> polish-dynaword",
152
+ "basis": "src/build_open_agh_pl.py reads OEBPS/main.xhtml of the EPUB and fails closed on a missing by-sa/4.0 link, a missing \"Na tych samych warunkach\", a missing /handbook/{id} or an NC marker; rights_sha256 and epub_sha256 in books.json matched the live bytes 4/4 at retrieval (2026-10-05 23:38 UTC); at the 2026-10-06 recheck 3/4 still match and book 37 was regenerated with the same licence line",
153
  "mark": "V"
154
  }
155
  ],
src/test_open_agh_chemistry_pl_contract.py CHANGED
@@ -54,3 +54,17 @@ def test_missing_wayback_snapshot_is_recorded_not_papered_over():
54
  assert "no snapshot" in wayback["rights_pages"]
55
  assert "no Save Page Now request" in wayback["method"]
56
  assert any("history of the rights pages" in item for item in EVIDENCE["not_checked"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  assert "no snapshot" in wayback["rights_pages"]
55
  assert "no Save Page Now request" in wayback["method"]
56
  assert any("history of the rights pages" in item for item in EVIDENCE["not_checked"])
57
+
58
+
59
+ def test_recheck_covers_every_book_and_keeps_the_licence_line():
60
+ recheck = EVIDENCE["recheck"]
61
+ pinned = {b["book_id"]: b["rights_page"] for b in EVIDENCE["books"]}
62
+ changed = {c["book_id"]: c for c in recheck["changed"]}
63
+ assert sorted(recheck["unchanged"] + list(changed)) == sorted(BOOK_IDS)
64
+ for book_id, entry in changed.items():
65
+ # a regenerated EPUB is recorded beside the pinned bytes, never in place of them
66
+ assert SHA256.fullmatch(entry["epub_sha256"]) and SHA256.fullmatch(entry["rights_sha256"])
67
+ assert entry["epub_sha256"] != pinned[book_id]["epub_sha256"]
68
+ assert entry["rights_sha256"] != pinned[book_id]["rights_sha256"]
69
+ assert entry["quoted_licence_line"] == pinned[book_id]["quoted_licence_line"]
70
+ assert entry["licence_link"] == pinned[book_id]["licence_link"]