Repository navigation
ci: fresh held-out pairs for the 1.0 check are sealed in a registry no committed workflow or script may name (#1565) - #1566
Merged
Conversation
… own IFC4 export, and a row the check would fail; the docs say what the guard sees (#1565)
…all exits 2, and the docs say the project's release is the contributor's word (#1565)
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 04:09
…ck finds the same files (#1565)
This was referenced Nov 9, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
## Summary Release 0.16.1, the first published release of 0.16. The `v0.16.0` tag (on 2bb0f3b) was never published. Its publish run, [42559733687](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42559733687), stopped at the viewer load smoke test, which needed `rvt-elements` on its PATH, before crates.io, PyPI, the release page or ghcr.io. A tag cannot be moved, so #1569 fixed the workflow and 0.16.1 replaces 0.16.0. Everything under `[0.16.0]` ships in 0.16.1, with: - a door type's value block ending at the next native record, so the two `rac_basic` 2027 doors write their Width and Height (#1568, #1489, RE-373); - a roof drawn as its record box cutting no wall's top (#1476, #1471, RE-351); - the sealed registry for the 1.0 check's fresh held-out pairs (#1566, #1565); - RE-364's addendum on Revit 2015 to 2020 angled walls (#1567, #1535); - the publish workflow's fix and its dry run before a tag (#1569). ## Changes - Version 0.16.0 -> 0.16.1 in: - Cargo.toml; - rvt-py/Cargo.toml and its `=` pin; - rvt-mcp/Cargo.toml and its `=` pin; - rvt-wasm/Cargo.toml; - tools/stream_evidence/Cargo.toml's pin; - viewer/package.json; - CITATION.cff (version and date); - Cargo.lock and fuzz/Cargo.lock. - `python3 tools/release/changelog.py assemble`: 4 fragments go into `[0.16.1]`, with an introduction saying why 0.16.0 was not published. `[0.16.0]` gains one line saying the same. The introduction links 0.16.0's notes and "Upgrading from 0.15" at the `v0.16.1` tag, since the release page carries this section alone. It says to read 0.16.1 where those notes say 0.16.0: the IFC header, and the attestation's `--source-ref refs/tags/v0.16.1`. It also says this section's entries hold over the 0.16.0 notes on the 2027 doors and on what the release adds to the measured commit. - README: the latest release and the "after 0.16.1" fragments sentence. - `publish.yml`: the viewer smoke's comment gives its longest run, 15.8 minutes (v0.16.0's tag run), in place of 14.7. - 2daaa17 refreshes the Core Interior witness observations and verdicts, and the synthetic fixtures, from CI run [42565027784](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42565027784)'s artifacts at 772267d. Only `witness_version` (0.16.0 -> 0.16.1), the two verdict hashes and the fixtures' version strings (in `FILE_NAME` and `IFCAPPLICATION`) change. Replaying `tools/ci/witness-verdict.py` with CI's arguments passes for both artifacts, and every witness's replay matches. ## Testing - `python3 tools/ci/release_preflight.py check --event workflow_dispatch --ref-type branch --ref-name checkout --sha HEAD`: ok, version 0.16.1. - `python3 tools/release/changelog.py check`: ok. - The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on this branch at 772267d: [42564989175](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42564989175), success. The viewer artifact load smoke passed 54 tests and skipped 13, with none failed. The wheels, sdist, docs.rs preview, CLI smoke and all seven install-and-open jobs passed, and the four publish jobs skipped, as a dispatch does. The later commits change only the notes, witness files and fixtures. Of those, the workflow reads only CHANGELOG.md's `## [0.16.1]` heading, which they leave as it was, and the preflight run at 2daaa17 is ok, version 0.16.1. Unit tests: N/A. ## Audit-honesty checklist - [x] The changelog says 0.16.0 was never published and why, and that 0.16.1 carries everything in it. - [x] Each entry keeps its caveats. - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes None beyond 0.16.0's ("Upgrading from 0.15", read with 0.16.1 for 0.16.0).
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…rivate repository, which the final check will fall back to (#1565) (#1570) ## Summary `tools/ci/seal-holdout-pair.sh` now uploads both files of a pair, unopened, to the private repository `DrunkOnJava/rvt-rs-sealed`, as `<sha256>.rvt` and `<sha256>.ifc` in its `sealed` release. 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`: - Each downloaded file is kept under its sha256 until the pair check and the row check pass. - Then it is uploaded with `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. - Before the first upload, `gh repo view --json isPrivate` must read `true`, or nothing is uploaded or sealed (rvtReview: a visibility flip or a wrong `BACKUP` would publish them, and a published upload cannot be recalled). - Each asset's `digest` on the release must be `sha256:` followed by the hash in its own name, or nothing is sealed. This is exact and needs no download. - Only then is the local copy deleted and the row appended. A refused pair is never uploaded. - `tools/ci/check_sealed_holdout.py`: `BACKUP = "DrunkOnJava/rvt-rs-sealed"`. A tracked file that is not Markdown and names `rvt-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 to `ALLOWED`. - `tools/ci/test_check_sealed_holdout.py`: - A failure-first test of that rule: a workflow, a script and a scorer naming the repository each fail, and so does a script naming it under another owner. The test fails with the rule removed (checked by setting `BACKUP` to another name), and also when the rule matches the full `DrunkOnJava/rvt-rs-sealed` instead of the bare name (rvtReview's mutation run). - The seal-script-and-docs test now names the repository as well. - rvtReview's four link cases from #1566 join `test_a_link_that_can_change_fails`: `releases/latest/download`, a `blob/` 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. - End to end, in a scratch copy of `tools/ci` with 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 as `28f2d07b` and `156418a1`. They are now `b21aba4e` and `76534a3c`, and the rebase dropped only their edits to the fragment 0.16.1 released: 1. **A 404:** RE1 Mechanical's media link failed to download and exited 2. Nothing was uploaded or added. 2. **Not a 2025 export:** RE1 Mechanical (MIT) at its pinned raw commit was refused before any upload, because its IFC is IFC2X3 and names no Revit 2025. 3. **A real pair:** magnetar's Core Interior (MIT, Revit 2024, IFC4), at commit `fd755e18` by Git LFS media, sealed with exit 0. The row holds the `.rvt`'s known sha256 `c805df44…` and its 33,718,272 bytes. The release held `c805df44….rvt` (33,718,272 bytes) and `d07c7462….ifc` (20,392 bytes). The IFC, downloaded back, hashes to `d07c7462…`. Both test assets were then deleted, and the release is empty. 4. **Not private:** a copy of the script with `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. 5. **The head, private:** the same pair sealed with exit 0. The assets' digests read `sha256:c805df44…` and `sha256:d07c7462…`, each equal to its name. They were deleted afterwards. - The pair check passes the headers of six real Revit IFC4 and IFC4X3 exports of 2023 to 2026 at their own release: Core Interior, `modelo_bim`, Projeto1, `teste_export_2025`, the AA house and `Exemplo_data`. A 2026 export names `Autodesk Revit 26.2` in `FILE_NAME`, but its `IfcApplication` within the first 64 KiB names `Autodesk Revit 2026`. ## Audit-honesty checklist - [x] Docs and a new fragment describe the copy. - [x] No emojis, private paths or PII. No sealed URL or hash is committed. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. The copies hold only pairs declared under open licences, kept private because they also embed Autodesk's template families. ## 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 `sealed` release. 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.
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
W5 counts a held-out pair only when its first measurement, made before any fix, meets W4, W6 and W7. Since no model meets W6 and W7 yet, a fresh pair has to stay sealed until the final 1.0 check. Until now only a sentence said so: nothing listed sealed pairs, and nothing stopped a fetch script or a workflow from reading one. With 1.0 covering Revit 2024 to 2027 (#1561), W5 needs two fresh pairs per release, so this lands before any arrive.
research/sealed-holdout-models.tsv: the registry, empty. It holds release, name, both URLs, both sha256 and byte counts, licence, contributor and the date received.tools/ci/seal-holdout-pair.sh: seals a pair on arrival. It downloads both files to a temporary directory, hashes and counts them, deletes them and appends the row. It refuses a release outside 2024 to 2027, another licence, a name already sealed and a non-https URL. From the first 64 KiB of each file alone it also refuses:The row is judged by the check before it is added, so a duplicate or a bad field never reaches the registry. The project's own release is the contributor's word: only its OLE2 magic is checked.
tools/ci/check_sealed_holdout.py, a new PII guard step. It fails on:docs/maintaining.mdgains "Sealed held-out pairs", saying how a pair is received and what the final check will do; W5's cell points at the registry.What the guard cannot see, and the docs say so: a path built at run time, a glob over
research/, or a Measure run dispatched from an unreviewed branch. It holds what is committed, which review reads.The final check's Measure input, the registry's one reader still to come, is not added here. Its trigger is W4, W6 and W7 passing on the reference models, and the pull request that adds it must also add it to the guard's
ALLOWED, where review sees it.Testing
python3 tools/ci/test_check_sealed_holdout.py: 30 failure-first tests of the pure judgements, written to the ways a sealed pair could be read early or a non-pair sealed. Each of 16 mutations of the check fails them:python3 tools/ci/check_sealed_holdout.pyon this tree: 0 pairs, none named or pointed at by the other tracked files.changelog.py check,measured_numbers.py,api-doc-ids.pyandcheck-workflows.pypass;yaml.safe_loadreads ci.yml.Audit-honesty checklist
changelog.d/added/Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #1565, #408, #875, #1561. #1565 stays open for the final check's Measure input.