mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1239
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1207
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:docs/history-manifest📝 Commits (1)
702e574history: a portable, hashed manifest of the old-pr tips and the old issue index (#563)📊 Changes
8 files changed (+668 additions, -0 deletions)
View changed files
📝
docs/README.md(+1 -0)➕
docs/history/README.md(+53 -0)➕
docs/history/issues.tsv(+136 -0)➕
docs/history/issues.tsv.sha256(+1 -0)➕
docs/history/old-pr.tsv(+252 -0)➕
docs/history/old-pr.tsv.sha256(+1 -0)➕
scripts/export_old_pr_manifest.py(+123 -0)➕
tests/test_export_old_pr_manifest.py(+101 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.