history: a portable, hashed manifest of the old-pr tips and the old issue index (#563) #1207
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1207
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/history-manifest"
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?
Pull request successfully merged and closed
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
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!