Repository navigation
ci(keep-run-outputs): keep a cited Measure run's scorer outputs past GitHub's 90 days, in a commit refs/evidence/<run> points at (#2124) - #2137
Merged
Conversation
…GitHub's 90 days, in a commit refs/evidence/<run> points at (#2124)
…f, diagnostics whole and timings, from open models' folders only, and commit in the kept folder (#2124)
…tputs, and link citations to the kept files as plain text (#2124)
…kept scorer diff (#2124)
…, refuse a kept file naming a left-out folder, and drop held-out timing rows (#2124)
…of the scorer diff and refused by the scan too (#2124)
9 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 22, 2026
…ed Measure runs that still held artifacts (#2124) (#2138) ## Summary The five evidence pages cite 56 workflow runs. Of these, the 51 that still held artifacts are now kept past GitHub's 90 days, each in a commit of its own under `refs/evidence/<run id>`, made by `keep-run-outputs.yml` (#2137). This adds each kept run's commit to `research/kept-runs.tsv`, beside the 5 that had nothing left, and a sentence on `docs/evidence.md` that points to it. - **`research/kept-runs.tsv`:** run, commit, and what `KEPT.md` says was kept for each side (`head 1027 files for 31 models; base 1027 files for 31 models`, and so on), in run order. The commits are those the 51 runner jobs pushed, read back from `refs/evidence/*`. - **`docs/evidence.md`:** says which runs are kept, as of 2026-11-22, where, and how to read a kept file as plain text; a run cited later is kept by dispatching the workflow on it. The index's header says the same. Part of #2124. Linking each of the 83 citations to the kept file that holds its figure comes next, page by page, each figure found in its file before its link is added. ## Motivation #2124. With the index, a reader with a cited run id can open its kept copy today, before each citation has its own link. ## Changes - `research/kept-runs.tsv`: 51 rows. - `docs/evidence.md`: one paragraph. ## Testing Unit tests are banned in this repository: do not add them. - [x] All 51 `Keep run outputs` runs succeeded, and `git ls-remote origin 'refs/evidence/*'` lists 51 refs, whose commits are the index's. - [x] The pilot, 40156315852: its commit holds 2,055 files, has no parent and is `github-actions[bot]`'s, and its `KEPT.md` and `head/nordic-office-as-built/stair_bodies_vs_ifc.txt` open logged out at their raw URLs. - [x] `tools/ci/api-doc-ids.py` passes. ## Audit-honesty checklist - [x] Each row's "kept" cell is taken from that commit's `KEPT.md`, and all 51 read in one of the forms `KEPT.md` writes. - [x] No changelog fragment: repository records. - [x] No emojis, private paths or internal jargon. ## Legal and contribution hygiene - [x] Apache-2.0. - [x] No Autodesk proprietary content. - [x] No fixtures. ## Breaking changes None. Review: rvtReview, the maintainer session, wrote this change. As rvtDevelop is not running, it re-reads the diff and approves the change itself on a green head (Griffin, 2026-11-12).
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
The evidence pages cite workflow runs whose artifacts GitHub deletes 90 days after each ran; the first loses them on 2027-01-23 (#2124). This adds the way to keep what those citations read before the artifacts go:
.github/workflows/keep-run-outputs.yml, dispatch-only with a run id. It downloads a Measure run'smeasure-head,measure-base,measure-verdict,compare-scorer-diffandmeasure-timing, where each still exists. It keeps what the citations read in a commit of its own, with no parent, and pushes it torefs/evidence/<run id>.refs/headsandrefs/tagsis not fetched by a clone, so the kept outputs cost a clone nothing.https://raw.githubusercontent.com/DrunkOnJava/rvt-rs/<commit>/<path>(Griffin, 2026-11-22). That serves a commit's files with no warning. GitHub's own page for a commit on no branch and no tag says it "does not belong to any branch" (seen in a browser on an archived tip). A tag per run would avoid that, but every clone would carry the kept outputs: the 51 cited runs that still hold artifacts pack to 3.53 MiB together, on a 28.5 MB repository.tools/ci/keep-run-outputs.pychooses what is kept..txt, but not a probe's own output),ifc.sha256,diagnostics.json,timings.log, the witness observations, the outputs that read several models (areas_across_saves.txt), andcommit.txt. Also kept: the verdict whole, the timing table without its rows for held-out models, and the scorer diff without its sections for the folders left out below.timings.log, the runner's own files, the exports,info.json(a model's metadata, which can name the path it was saved at) and the MCP dumps.core-interior,einhoven,re1-*,nordic-*,r2025-*,sample-*,family-*), and from aspent-*pair the archive list still names as spent and no held-out list names. The held-out,rac_advancedand BIMcollab folders are left out. Any other folder stops the run.KEPT.mdsaying what was kept and from where. It fails on any match of the CI PII guard's patterns, read a second time with JSON's doubled backslashes made single so a Windows path indiagnostics.jsonis seen, and on the name of any folder left out, since a kept copy is public once pushed. The timing table names files, not folders, so its rows for a model a held-out list names are dropped by name.research/kept-runs.tsvlists each kept run and its commit. It starts with the 5 cited runs that hold nothing to keep: four Measure runs of 2026-11-03 that measured a held-out model in full while it was briefly spent, whose artifacts were deleted, and a Viewer tests run that lists no artifact.Only a
workflow_dispatchrun ofmeasure.ymlin this repository is kept: a pull request from a fork runs its ownmeasure.ymland controls its artifacts. An existing ref is never overwritten.Part of #2124. Once this is on
main, the cited runs that still hold artifacts are kept, the pilot first, and each citation is linked to its kept file.Motivation
#2124. The five pages cite a run at 83 places (a page line and a run; #2124 counted 86 mentions). Nearly all read a scorer's text. The others read a timing (
README.md), byte-identity, a base side's counts, the Areas gate's counts, and counts from the samples' export diagnostics. Each of those is checked below against a kept tree.Changes
.github/workflows/keep-run-outputs.yml: new.tools/ci/keep-run-outputs.py: new.research/kept-runs.tsv: new.Testing
Unit tests are banned in this repository: do not add them.
base64flag, one run at a time. 51 are kept, and together they pack to 3.53 MiB. Each commit has no parent and is the bot's. The other 5 are refused, and they are the 5 rowsresearch/kept-runs.tsvstarts with: the four Measure runs with no artifact left, and the Viewer tests run, which is not a Measure run. No run met a folder no rule knows, or a kept file naming a left-out folder. Run again on a run already kept, the step refuses, as the ref exists. Measure run 42003913780, for one, keeps 1,915 files for 93 models on each side.README.md):timing/timing.md, whose row gives 21202, 24252, 913 and 944;main's on 34 of 34 models" (docs/evidence.md): the 34ifc.sha256are the same on both sides;docs/evidence.md):base/nordic-office-as-built/psets_vs_ifc.txt, "Pset_MemberCommon.Span: 10003, equal 9996";docs/evidence.md):head/areas_across_saves.txt, the 25 Areas of each save of 2024 to 2027 with a body;docs/supported-profile.md), the BIM4LCA office's 30 area spaces:head/nordic-office-as-built/space_profiles_vs_ifc.txt, "area plan topology: 30, area within 0.1% 30, outline within 0.01 ft 30", and the same for the permit file;docs/status.md):exported/area_body_refusalsinhead/sample-2024-snowdon_towers_sample_architectural/diagnostics.json;docs/status.md): their keptdiagnostics.json,decoded/production_class_counts/Area101 and 7 andexported/body_sources/native_area_plan_topology96 and 2;docs/supported-profile.md):head/nordic-office-as-built/stair_bodies_vs_ifc.txt, each landing's volume beside Revit's.sample-*folders keeptimings.log,schema.txt,ifc.sha256,element_stage_counts.txtanddiagnostics.json. A sample'sdiagnostics.jsoncarries strings from the file: its file name, project name, storey names, a sample of material names and the build it was saved with, beside its counts. Itsschema.txtholds counts only.rac_advancedor BIMcollab folder: the scan refuses one anywhere in a kept tree, and all six pass. The scorer diff of 42003913780 loses the 7 sections that diff one. Across all 51 kept runs, theoriginal_pathandproject_nameof everydiagnostics.json, 150 distinct values, are the public models' own file and project names, and none is a path.C:\Users\...path in a scorer's.txt, the same path JSON-escaped in adiagnostics.json, and a scorer's.txtnaming aholdout-folder each stop the run. A folder no rule knows stops it. Aspent-folder a held-out list names is left out and counted inKEPT.mdwithout its name, beside a spent pair that is kept. A timing row for a held-out model is dropped. A clean folder passes.tools/ci/check-workflows.py: 0 errors, 0 warnings.zizmor --offline(1.32.0) on the new workflow: no findings.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Review: rvtReview, the maintainer session, wrote this change. As rvtDevelop is not running, it re-reads the diff and approves the change itself on a green head (Griffin, 2026-11-12).