Repository navigation
ci: the seal script keeps an unopened copy of each sealed pair in a private repository, which the final check will fall back to (#1565) - #1570
Merged
Conversation
DrunkOnJava
force-pushed
the
ci/1565-sealed-backup
branch
from
November 9, 2026 05:36
156418a to
3d018bf
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 05:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/ci/seal-holdout-pair.shnow uploads both files of a pair, unopened, to the private repositoryDrunkOnJava/rvt-rs-sealed, as<sha256>.rvtand<sha256>.ifcin itssealedrelease. The upload happens before the pair's row is added. The script refuses to upload unless that repository is private, and it checks each asset's digest against the hash in its name. The final 1.0 check, which does not exist yet, will fall back to those copies when a contributor's link no longer serves the file the row's hash names. The guard now fails on any committed file that names that repository, other than the seal script, the check and docs.Motivation
#1566 requires links that name a fixed version, but a contributor can still delete the repository behind one. The final check fetches each pair again, maybe months later, and a pair whose file is gone is lost. Griffin chose a private, unopened copy of each sealed pair on 2026-11-08. A pair's licence (Apache-2.0, MIT, CC BY 4.0 or CC0) is the contributor's declaration, which the check reads only as a label. The files also embed Autodesk's template families, which no contributor's licence covers. So the copies stay private and are never redistributed, and the script refuses a backup repository that is not private.
Changes
tools/ci/seal-holdout-pair.sh:gh release upload sealed -R DrunkOnJava/rvt-rs-sealed --clobber. An asset is named by its own hash, so replacing one only repeats a run that stopped before the row was added.gh repo view --json isPrivatemust readtrue, or nothing is uploaded or sealed (rvtReview: a visibility flip or a wrongBACKUPwould publish them, and a published upload cannot be recalled).digeston the release must besha256:followed by the hash in its own name, or nothing is sealed. This is exact and needs no download.tools/ci/check_sealed_holdout.py:BACKUP = "DrunkOnJava/rvt-rs-sealed". A tracked file that is not Markdown and namesrvt-rs-sealed, in any letter case, fails unless it is the seal script or the check. No workflow can be pointed at the copies without review seeing an exception added toALLOWED.tools/ci/test_check_sealed_holdout.py:BACKUPto another name), and also when the rule matches the fullDrunkOnJava/rvt-rs-sealedinstead of the bare name (rvtReview's mutation run).test_a_link_that_can_change_fails:releases/latest/download, ablob/page at a commit, a short hash, and a Zenodo concept DOI or record without/files/.docs/maintaining.md(sealed pairs section): what the copy is, when the final check uses it, that the guard covers its name, and a check before any pair is sealed that no GitHub App on the maintainer account is installed on every repository, since one would read the copies too.changelog.d/changed/1565-sealed-pairs-private-copy.md: the registry's fragment shipped in 0.16.1, so the copy has a fragment of its own.Testing
python3 tools/ci/test_check_sealed_holdout.py: 33 tests pass, and shellcheck is clean.python3 tools/ci/check_sealed_holdout.py: 0 listed, nothing named or pointed at.tools/ciwith its own empty registry, on the first commit (steps 1 to 3) and the second (steps 4 and 5), tested before the rebase onto 0.16.1 as28f2d07band156418a1. They are nowb21aba4eand76534a3c, and the rebase dropped only their edits to the fragment 0.16.1 released:fd755e18by Git LFS media, sealed with exit 0. The row holds the.rvt's known sha256c805df44…and its 33,718,272 bytes. The release heldc805df44….rvt(33,718,272 bytes) andd07c7462….ifc(20,392 bytes). The IFC, downloaded back, hashes tod07c7462…. Both test assets were then deleted, and the release is empty.BACKUP=DrunkOnJava/rvt-rs(public) downloaded and checked the same pair, then stopped with "not sealed: DrunkOnJava/rvt-rs is not private" (exit 1). Nothing was uploaded, no release was created there, and no row was added.sha256:c805df44…andsha256:d07c7462…, each equal to its name. They were deleted afterwards.modelo_bim, Projeto1,teste_export_2025, the AA house andExemplo_data. A 2026 export namesAutodesk Revit 26.2inFILE_NAME, but itsIfcApplicationwithin the first 64 KiB namesAutodesk Revit 2026.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None. The registry is empty.
The private repository
The repository is private, with the owner as its only collaborator, and holds a README and an empty
sealedrelease. Its Actions are disabled. GitHub offers no fork setting on a user-owned private repository, but only collaborators can fork one. Which of the account's installed GitHub Apps have access to all repositories, and so to this one, is not readable with the maintainer's token. That is noted for the owner.