[PR #1207] history: a portable, hashed manifest of the old-pr tips and the old issue index (#563) #1239

Open
opened 2026-11-26 20:20:33 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 702e574 history: 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 as number, tip, author_date, author, subject, sorted numerically, with old-pr.tsv.sha256 beside 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 open per branch / rad issue open per row, citing the file hash).
  • scripts/export_old_pr_manifest.py: regenerates either file from git for-each-ref or 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.py over every new file -> exit 0; tests/test_docs_links.py and tests/test_docs_table_rows.py -> OK.
  • Both manifests regenerated from the real refs and the real #18 table: 251 and 135 rows, and a second run gives the same hashes.

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

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (No translator change.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1207 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/history-manifest` --- ### 📝 Commits (1) - [`702e574`](https://github.com/ubiquitarianism/leonida/commit/702e574c83a01a4e866d9c27a8d2c3b5461cfb0c) history: a portable, hashed manifest of the old-pr tips and the old issue index (#563) ### 📊 Changes **8 files changed** (+668 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 as `number`, `tip`, `author_date`, `author`, `subject`, sorted numerically, with `old-pr.tsv.sha256` beside 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 open` per branch / `rad issue open` per row, citing the file hash). - `scripts/export_old_pr_manifest.py`: regenerates either file from `git for-each-ref` or 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.py` over every new file -> exit 0; `tests/test_docs_links.py` and `tests/test_docs_table_rows.py` -> OK. - Both manifests regenerated from the real refs and the real #18 table: 251 and 135 rows, and a second run gives the same hashes. 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 - [x] Based on current main and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption (CONTRIBUTING.md). - [ ] A new translator rule is in the contract table of docs/design.md. (No translator change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1239
No description provided.