history: a portable, hashed manifest of the old-pr tips and the old issue index (#563) #1207
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1207"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T20:17:12Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143232751 (ID
HISTORY-RADICLE-MANIFEST; for #563)#563 asks for the original repository's history to be preserved somewhere other than one host. Right now the surviving parts are 251
old-pr/*branches (#17) and the 135-title issue index (#18) -- both still only on GitHub. This makes the record portable and checkable without it.What
docs/history/old-pr.tsv: the 251 branch tips asnumber,tip,author_date,author,subject, sorted numerically, withold-pr.tsv.sha256beside it.docs/history/issues.tsv: the same for the 135 indexed issues (number,title,author,labels) with its own hash.docs/history/README.md: the format, why the fields are hashes and commit dates rather than a generation timestamp, what a different hash means, what is not recoverable (discussions, reviews, issue text), and the Radicle steps (rad patch openper branch /rad issue openper row, citing the file hash).scripts/export_old_pr_manifest.py: regenerates either file fromgit for-each-refor the #18 table; rejects a ref whose SHA or number is malformed, a duplicated number and an input with no rows, so a broken export cannot pass silently.tests/test_export_old_pr_manifest.py: five synthetic tests in a throwaway repo (numeric order beats ref order, a tab in a subject stays a field, the sha256 line matches the bytes, repeated runs are byte-identical, both no-input cases fail).The bug the tests caught
My first version split each ref line on every tab, so a subject containing one was truncated at it. The test that writes a tab in the subject found it, and the split is now limited to the four fixed fields.
Tested
python -I tests/test_export_old_pr_manifest.py-> OK (5 tests);compileall-> 0.check_no_game_data.pyover every new file -> exit 0;tests/test_docs_links.pyandtests/test_docs_table_rows.py-> OK.Docs and one standard-library script; nothing of the game, no network at test time.
GPUs tested: n/a
AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)
Checklist
Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Review: COMMENTED
I ran this PR's exporter on the UTF-8 text of issue #18 and compared all 135 rows by old issue number. Seven titles differed. Reading their UTF-8 bytes as CP850 reproduced each difference exactly (for example, the arrow in old issue 313). Applying the suggestions below made both files byte-for-byte identical to the fresh export. All five exporter tests passed.
Please apply the seven title suggestions and the SHA-256 update in one batch so the checksum matches the TSV.
Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 5Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 20Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 33Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 81Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 107Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:24Z.
Code review location:
docs/history/issues.tsv; line 114Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:25Z.
Code review location:
docs/history/issues.tsv; line 115Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T20:31:25Z.
Code review location:
docs/history/issues.tsv.sha256; line 1Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T07:46:52Z.
Red/green: 5 failures on main, 5 passed with this PR.
Full suite with this PR merged together with seven others in one batch matches main (pytest, translator suite, ctest without the game) on Windows 11 with an RTX 4060, except xmem_write_watch, a test that depends on free host memory and has also failed on plain main.
AI-assisted (Claude Code, Claude Opus 5.5). Thank you!